Skip to content

Commit 5ba3d72

Browse files
Shirish Sjfvogel
authored andcommitted
x86/MCE/AMD: Turn off MC4_MISC thresholding on all family 0x15 models
MC4_MISC thresholding is not supported on all family 0x15 processors, hence skip the x86_model check when applying the quirk. [ bp: massage commit message. ] Signed-off-by: Shirish S <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Tony Luck <[email protected]> Cc: Vishal Verma <[email protected]> Cc: x86-ml <[email protected]> Link: https://lkml.kernel.org/r/[email protected] (cherry picked from commit c95b323) Orabug: 29547647 Signed-off-by: Somasundaram Krishnasamy <[email protected]> Reviewed-by: John Donnelly <[email protected]>
1 parent d13678e commit 5ba3d72

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/x86/kernel/cpu/mce/core.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,11 +1629,10 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)
16291629
mce_flags.overflow_recov = 1;
16301630

16311631
/*
1632-
* Turn off MC4_MISC thresholding banks on those models since
1632+
* Turn off MC4_MISC thresholding banks on all models since
16331633
* they're not supported there.
16341634
*/
1635-
if (c->x86 == 0x15 &&
1636-
(c->x86_model >= 0x10 && c->x86_model <= 0x1f)) {
1635+
if (c->x86 == 0x15) {
16371636
int i;
16381637
u64 hwcr;
16391638
bool need_toggle;

0 commit comments

Comments
 (0)