x86, mce: port K7 bank 0 quirk to 64bit mce code
authorAndi Kleen <ak@linux.intel.com>
Mon, 27 Apr 2009 16:42:48 +0000 (18:42 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 28 May 2009 16:24:12 +0000 (09:24 -0700)
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>
arch/x86/kernel/cpu/mcheck/mce.c

index 1dcd3be033282e2451d119ed4b37e23bf3a73cf4..1336280edcc27cb40f51cc7044e6195ba5f3b616 100644 (file)
@@ -650,6 +650,12 @@ static void mce_cpu_quirks(struct cpuinfo_x86 *c)
                         */
                        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) {