Re: [PATCH] Fix Athlon MCA

From: venom
Date: Mon Sep 22 2003 - 08:34:21 EST



I'm seeing this message too on all my athlons, also if it seems harmless.
Will try this patch tomorrow.

bests

Luigi

On Sun, 21 Sep 2003, Kronos wrote:

> Date: Sun, 21 Sep 2003 16:39:34 +0200
> From: Kronos <kronos@xxxxxxxxxxxxxx>
> To: davej@xxxxxxxxxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> Subject: [PATCH] Fix Athlon MCA
>
> Hi,
> on boot I'm seeing a lot of messages like this:
>
> MCE: The hardware reports a non fatal, correctable incident occurred on CPU 0.
> Bank 0: d47fa0000000bfee
>
> This messages go away if I revert cset 1.1119.9.1. AFAIK you were trying
> to decrease the logging level. After reading IA32 Architecture Software
> Developers Manual, vol3 - chapter 14.5 "Machine-Check Initialization" I
> think that the right way to do it is this:
>
> --- linux-2.6/arch/i386/kernel/cpu/mcheck/k7.c~ Sat Aug 9 06:37:27 2003
> +++ linux-2.6/arch/i386/kernel/cpu/mcheck/k7.c Sun Sep 21 00:36:39 2003
> @@ -81,8 +81,9 @@
> wrmsr (MSR_IA32_MCG_CTL, 0xffffffff, 0xffffffff);
> nr_mce_banks = l & 0xff;
>
> - for (i=1; i<nr_mce_banks; i++) {
> - wrmsr (MSR_IA32_MC0_CTL+4*i, 0xffffffff, 0xffffffff);
> + for (i=0; i<nr_mce_banks; i++) {
> + if (i)
> + wrmsr (MSR_IA32_MC0_CTL+4*i, 0xffffffff, 0xffffffff);
> wrmsr (MSR_IA32_MC0_STATUS+4*i, 0x0, 0x0);
> }
>
>
> We really want to clean all MC*_STATUS. I'm currently running linux 2.6.0-t5
> + this patch and I don't see the MCE messages on boot anymore.
>
> Luca
> --
> Reply-To: kronos@xxxxxxxxxxxxxx
> Home: http://kronoz.cjb.net
> "L'abilita` politica e` l'abilita` di prevedere quello che
> accadra` domani, la prossima settimana, il prossimo mese e
> l'anno prossimo. E di essere cosi` abili, piu` tardi,
> da spiegare perche' non e` accaduto."
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/