]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/mce: Define BSP-only SMCA init
authorYazen Ghannam <yazen.ghannam@amd.com>
Mon, 8 Sep 2025 15:40:32 +0000 (15:40 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 11 Sep 2025 10:22:50 +0000 (12:22 +0200)
commitc6e465b8d45a1bc717d196ee769ee5a9060de8e2
tree31106932b80e2ce47705b5da949d5272933182f3
parent669ce4984b729ad5b4c6249d4a8721ae52398bfb
x86/mce: Define BSP-only SMCA init

Currently, on AMD systems, MCA interrupt handler functions are set during CPU
init. However, the functions only need to be set once for the whole system.

Assign the handlers only during BSP init. Do so only for SMCA systems to
maintain the old behavior for legacy systems.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
Link: https://lore.kernel.org/20250908-wip-mca-updates-v6-0-eef5d6c74b9c@amd.com
arch/x86/kernel/cpu/mce/amd.c
arch/x86/kernel/cpu/mce/core.c
arch/x86/kernel/cpu/mce/internal.h