Skip to content

Commit 66015fc

Browse files
leoliu-ocopsiff
authored andcommitted
x86/mce: Set bios_cmci_threshold for CMCI threshold
zhaoxin inclusion category: bugfix CVE: NA ----------------- In the Linux kernel, the CMCI threshold is set to 1 by default. This patch prevents Linux from overwriting the CMCI threshold set by the bios. With this patch, the CMCI threshold can be set through the BIOS, which can also avoid CMCI storms, on Zhaoxin/Centaur CPUs. Signed-off-by: leoliu-oc <leoliu-oc@zhaoxin.com>
1 parent 6e2eada commit 66015fc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,6 +1946,7 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)
19461946
if (cfg->monarch_timeout < 0)
19471947
cfg->monarch_timeout = USEC_PER_SEC;
19481948
}
1949+
mca_cfg.bios_cmci_threshold = 1;
19491950
}
19501951

19511952
if (cfg->monarch_timeout < 0)

0 commit comments

Comments
 (0)