Skip to content

Commit c95b323

Browse files
Shirish Ssuryasaimadhu
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]
1 parent b62928f commit c95b323

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
@@ -1612,11 +1612,10 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)
16121612
mce_flags.overflow_recov = 1;
16131613

16141614
/*
1615-
* Turn off MC4_MISC thresholding banks on those models since
1615+
* Turn off MC4_MISC thresholding banks on all models since
16161616
* they're not supported there.
16171617
*/
1618-
if (c->x86 == 0x15 &&
1619-
(c->x86_model >= 0x10 && c->x86_model <= 0x1f)) {
1618+
if (c->x86 == 0x15) {
16201619
int i;
16211620
u64 hwcr;
16221621
bool need_toggle;

0 commit comments

Comments
 (0)