aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYazen Ghannam <yazen.ghannam@amd.com>2017-06-13 12:28:35 -0400
committerIngo Molnar <mingo@kernel.org>2017-06-14 01:32:10 -0400
commit6057077f6ebc0747c2f5b21dfb1eb782f489d0f6 (patch)
tree45e9b1ed7e70441810091ec88df3a32a2d62ecee
parentec33838244c8535b23b8d24b167996fd1318bb68 (diff)
x86/mce: Update bootlog description to reflect behavior on AMD
The bootlog option is only disabled by default on AMD Fam10h and older systems. Update bootlog description to say this. Change the family value to hex to avoid confusion. Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Borislav Petkov <bp@alien8.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tony Luck <tony.luck@intel.com> Cc: linux-edac <linux-edac@vger.kernel.org> Link: http://lkml.kernel.org/r/20170613162835.30750-9-bp@alien8.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--Documentation/x86/x86_64/boot-options.txt3
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/x86/x86_64/boot-options.txt b/Documentation/x86/x86_64/boot-options.txt
index 61b611e9eeaf..b297c48389b9 100644
--- a/Documentation/x86/x86_64/boot-options.txt
+++ b/Documentation/x86/x86_64/boot-options.txt
@@ -36,7 +36,8 @@ Machine check
36 to broadcast MCEs. 36 to broadcast MCEs.
37 mce=bootlog 37 mce=bootlog
38 Enable logging of machine checks left over from booting. 38 Enable logging of machine checks left over from booting.
39 Disabled by default on AMD because some BIOS leave bogus ones. 39 Disabled by default on AMD Fam10h and older because some BIOS
40 leave bogus ones.
40 If your BIOS doesn't do that it's a good idea to enable though 41 If your BIOS doesn't do that it's a good idea to enable though
41 to make sure you log even machine check events that result 42 to make sure you log even machine check events that result
42 in a reboot. On Intel systems it is enabled by default. 43 in a reboot. On Intel systems it is enabled by default.
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index 3c54c2b9efc2..b58b77808ce4 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -1550,7 +1550,7 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)
1550 */ 1550 */
1551 clear_bit(10, (unsigned long *)&mce_banks[4].ctl); 1551 clear_bit(10, (unsigned long *)&mce_banks[4].ctl);
1552 } 1552 }
1553 if (c->x86 < 17 && cfg->bootlog < 0) { 1553 if (c->x86 < 0x11 && cfg->bootlog < 0) {
1554 /* 1554 /*
1555 * Lots of broken BIOS around that don't clear them 1555 * Lots of broken BIOS around that don't clear them
1556 * by default and leave crap in there. Don't log: 1556 * by default and leave crap in there. Don't log:
@@ -1832,7 +1832,8 @@ void mce_disable_bank(int bank)
1832 * mce=TOLERANCELEVEL[,monarchtimeout] (number, see above) 1832 * mce=TOLERANCELEVEL[,monarchtimeout] (number, see above)
1833 * monarchtimeout is how long to wait for other CPUs on machine 1833 * monarchtimeout is how long to wait for other CPUs on machine
1834 * check, or 0 to not wait 1834 * check, or 0 to not wait
1835 * mce=bootlog Log MCEs from before booting. Disabled by default on AMD. 1835 * mce=bootlog Log MCEs from before booting. Disabled by default on AMD Fam10h
1836 and older.
1836 * mce=nobootlog Don't log MCEs from before booting. 1837 * mce=nobootlog Don't log MCEs from before booting.
1837 * mce=bios_cmci_threshold Don't program the CMCI threshold 1838 * mce=bios_cmci_threshold Don't program the CMCI threshold
1838 * mce=recovery force enable memcpy_mcsafe() 1839 * mce=recovery force enable memcpy_mcsafe()