linux-loongson/arch/x86/kernel/cpu/mce
JP Kobryn 30ad231a50 x86/mce: Make sure CMCI banks are cleared during shutdown on Intel
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
2025-06-28 12:45:48 +02:00
..
amd.c x86/mce/amd: Fix threshold limit reset 2025-06-27 13:16:23 +02:00
apei.c x86/mce/apei: Handle variable SMCA BERT record size 2024-10-31 10:45:59 +01:00
core.c x86/mce: Ensure user polling settings are honored when restarting timer 2025-06-27 12:41:44 +02:00
dev-mcelog.c x86/mce/mcelog: Use xchg() to get and clear the flags 2024-10-28 14:07:47 +01:00
genpool.c x86/mce: Make four functions return bool 2024-12-30 22:06:36 +01:00
inject.c Merge branch 'x86/msr' into x86/core, to resolve conflicts 2025-05-13 10:42:06 +02:00
intel.c x86/mce: Make sure CMCI banks are cleared during shutdown on Intel 2025-06-28 12:45:48 +02:00
internal.h x86/msr: Rename 'mce_rdmsrl()' to 'mce_rdmsrq()' 2025-04-10 11:59:09 +02:00
Makefile thermal: Move therm_throt there from x86/mce 2021-02-08 11:43:20 +01:00
p5.c x86/mce: Get rid of machine_check_vector 2021-09-23 11:15:49 +02:00
severity.c x86/mce: use is_copy_from_user() to determine copy-from-user context 2025-03-17 22:07:05 -07:00
threshold.c x86/mce/threshold: Remove the redundant this_cpu_dec_return() 2024-12-30 19:45:03 +01:00
winchip.c x86/mce: Get rid of machine_check_vector 2021-09-23 11:15:49 +02:00