]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/mce/amd: Fix threshold limit reset
authorYazen Ghannam <yazen.ghannam@amd.com>
Tue, 24 Jun 2025 14:15:59 +0000 (14:15 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 27 Jun 2025 11:16:23 +0000 (13:16 +0200)
commit5f6e3b720694ad771911f637a51930f511427ce1
treeb7f85153e6cbe596a725f5c897756b3f8297ae99
parentd66e1e90b16055d2f0ee76e5384e3f119c3c2773
x86/mce/amd: Fix threshold limit reset

The MCA threshold limit must be reset after servicing the interrupt.

Currently, the restart function doesn't have an explicit check for this.  It
makes some assumptions based on the current limit and what's in the registers.
These assumptions don't always hold, so the limit won't be reset in some
cases.

Make the reset condition explicit. Either an interrupt/overflow has occurred
or the bank is being initialized.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/20250624-wip-mca-updates-v4-4-236dd74f645f@amd.com
arch/x86/kernel/cpu/mce/amd.c