Skip to content

Commit 82ffa3c

Browse files
inwardvesselgregkh
authored andcommitted
x86/mce: Make sure CMCI banks are cleared during shutdown on Intel
commit 30ad231 upstream. CMCI banks are not cleared during shutdown on Intel CPUs. As a side effect, when a kexec is performed, CPUs coming back online are unable to rediscover/claim these occupied banks which breaks MCE reporting. Clear the CPU ownership during shutdown via cmci_clear() so the banks can be reclaimed and MCE reporting will become functional once more. [ bp: Massage commit message. ] Reported-by: Aijay Adams <aijay@meta.com> Signed-off-by: JP Kobryn <inwardvessel@gmail.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Tony Luck <tony.luck@intel.com> Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com> Cc: <stable@kernel.org> Link: https://lore.kernel.org/20250627174935.95194-1-inwardvessel@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 94cd68a commit 82ffa3c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/x86/kernel/cpu/mce/intel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ void mce_intel_feature_init(struct cpuinfo_x86 *c)
500500
void mce_intel_feature_clear(struct cpuinfo_x86 *c)
501501
{
502502
intel_clear_lmce();
503+
cmci_clear();
503504
}
504505

505506
bool intel_filter_mce(struct mce *m)

0 commit comments

Comments
 (0)