x86, mce: port K7 bank 0 quirk to 64bit mce code

Various K7 have broken bank 0s. Don't enable it by default

Port from the 32bit code.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
Andi Kleen 2009-04-27 18:42:48 +02:00 committed by H. Peter Anvin
parent 06b7a7a5ec
commit 2e6f694fde
1 changed files with 6 additions and 0 deletions

View File

@ -650,6 +650,12 @@ static void mce_cpu_quirks(struct cpuinfo_x86 *c)
*/ */
mce_bootlog = 0; mce_bootlog = 0;
} }
/*
* Various K7s with broken bank 0 around. Always disable
* by default.
*/
if (c->x86 == 6)
bank[0] = 0;
} }
if (c->x86_vendor == X86_VENDOR_INTEL) { if (c->x86_vendor == X86_VENDOR_INTEL) {