]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/mce: Make sure CMCI banks are cleared during shutdown on Intel
authorJP Kobryn <inwardvessel@gmail.com>
Fri, 27 Jun 2025 17:49:35 +0000 (10:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:27:57 +0000 (18:27 +0200)
commit7c0366ccdcce76dea7e7541761c9002a9ada9355
treec4383e4ccce981c3074701b9e951b511401600d9
parent8f7851a98c6ee3299aefa7366b910c4e90445ce5
x86/mce: Make sure CMCI banks are cleared during shutdown on Intel

commit 30ad231a5029bfa16e46ce868497b1a5cdd3c24d 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>
arch/x86/kernel/cpu/mce/intel.c