linux/arch/x86/kernel/cpu/mce
Jasjeet Rangi d2929113b1 x86/MCE/AMD: Fix inverted interrupt enablement during storm handling
mce_amd_handle_storm() currently does the opposite of what storm
handling needs: it enables thresholding interrupts when a storm is
detected and disables them when the storm subsides.

Flip the "on" function argument before passing it to threshold_restart_bank()
as it should have been done.

To clarify: "on" to mce_handle_storm() means, the storm is on now when
"on" is true, and off when "on" is false.

  [ bp: Simplify. ]

Fixes: 5c4663ed1e ("x86/mce: Handle AMD threshold interrupt storms")
Signed-off-by: Jasjeet Rangi <jrangi@purestorage.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260812221514.598842-2-jrangi@purestorage.com
2026-09-08 09:16:32 +02:00
..
amd.c x86/MCE/AMD: Fix inverted interrupt enablement during storm handling 2026-09-08 09:16:32 +02:00
apei.c x86/mce/apei: Handle variable SMCA BERT record size 2024-10-31 10:45:59 +01:00
core.c x86/msr updates for v7.3: 2026-08-18 14:02:15 -07:00
dev-mcelog.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
genpool.c x86/mce: Make four functions return bool 2024-12-30 22:06:36 +01:00
inject.c x86/cpu updates for v7.2: 2026-06-15 15:25:17 +05:30
intel.c x86/mce: Separate global and per-CPU quirks 2025-09-11 12:23:14 +02:00
internal.h x86/mce: Handle AMD threshold interrupt storms 2025-11-21 20:41:10 +01:00
Makefile thermal: Move therm_throt there from x86/mce 2021-02-08 11:43:20 +01:00
p5.c x86/mce: Work around build warning after MSR-interface switch 2026-07-19 11:39:18 +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/irq: Make irqstats array based 2026-05-26 16:21:12 +02:00
winchip.c x86/mce: Stop using 32-bit MSR interfaces 2026-07-02 11:54:51 +02:00