]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Athlon Machine Check fix
authorDave Jones <davej@redhat.com>
Wed, 6 Aug 2003 15:57:23 +0000 (08:57 -0700)
committerDave Jones <davej@redhat.com>
Wed, 6 Aug 2003 15:57:23 +0000 (08:57 -0700)
There seemed to be increase in Athlon users reporting MCEs in 2.6 that
they never saw in 2.4 and I didn't buy the "2.6 pushes hardware harder"
for a second given folks are running 2.4+preempt+O(1) etc patchkits
without problems.

So I did a mini-audit of the mcheck code.

How embarressing. Another fix that went into 2.4 that never made
it forward. Once I'm done with various Red Hat administrivia
I'll see if I can devote some time to going through the changesets
mailing list. I wonder just how many other really stupid bugs
like this got fixed and not brought forward.

arch/i386/kernel/cpu/mcheck/k7.c

index 911f4bf43348caad10f83090d341db624359e111..25b63d53d4219fe08775b2dacedff419da766b00 100644 (file)
@@ -81,7 +81,7 @@ void __init amd_mcheck_init(struct cpuinfo_x86 *c)
                wrmsr (MSR_IA32_MCG_CTL, 0xffffffff, 0xffffffff);
        nr_mce_banks = l & 0xff;
 
-       for (i=0; i<nr_mce_banks; i++) {
+       for (i=1; i<nr_mce_banks; i++) {
                wrmsr (MSR_IA32_MC0_CTL+4*i, 0xffffffff, 0xffffffff);
                wrmsr (MSR_IA32_MC0_STATUS+4*i, 0x0, 0x0);
        }