Commit 911f6a7b authored by Jan Beulich's avatar Jan Beulich Committed by Ingo Molnar

x86-64: extend MCE CPU quirk handling

At least on my Barcelona, I see MCE log entries after cold boot caused
by BIOS not properly clearing the respective registers. Therefore, this
patch extends the workaround to families 0x10 and 0x11 (the latter just
for completeness, I have nothing to verify this against).
At the same time, provide a way to make these entries visible via the
'mce=bootlog' command line option even on these machines.
Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 79bf0e03
...@@ -49,7 +49,7 @@ static int banks; ...@@ -49,7 +49,7 @@ static int banks;
static unsigned long bank[NR_BANKS] = { [0 ... NR_BANKS-1] = ~0UL }; static unsigned long bank[NR_BANKS] = { [0 ... NR_BANKS-1] = ~0UL };
static unsigned long notify_user; static unsigned long notify_user;
static int rip_msr; static int rip_msr;
static int mce_bootlog = 1; static int mce_bootlog = -1;
static atomic_t mce_events; static atomic_t mce_events;
static char trigger[128]; static char trigger[128];
...@@ -471,13 +471,15 @@ static void mce_init(void *dummy) ...@@ -471,13 +471,15 @@ static void mce_init(void *dummy)
static void __cpuinit mce_cpu_quirks(struct cpuinfo_x86 *c) static void __cpuinit mce_cpu_quirks(struct cpuinfo_x86 *c)
{ {
/* This should be disabled by the BIOS, but isn't always */ /* This should be disabled by the BIOS, but isn't always */
if (c->x86_vendor == X86_VENDOR_AMD && c->x86 == 15) { if (c->x86_vendor == X86_VENDOR_AMD) {
/* disable GART TBL walk error reporting, which trips off if(c->x86 == 15)
incorrectly with the IOMMU & 3ware & Cerberus. */ /* disable GART TBL walk error reporting, which trips off
clear_bit(10, &bank[4]); incorrectly with the IOMMU & 3ware & Cerberus. */
/* Lots of broken BIOS around that don't clear them clear_bit(10, &bank[4]);
by default and leave crap in there. Don't log. */ if(c->x86 <= 17 && mce_bootlog < 0)
mce_bootlog = 0; /* Lots of broken BIOS around that don't clear them
by default and leave crap in there. Don't log. */
mce_bootlog = 0;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment