public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix Athlon MCA
@ 2003-09-21 14:39 Kronos
  2003-09-21 14:47 ` Dave Jones
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Kronos @ 2003-09-21 14:39 UTC (permalink / raw)
  To: davej; +Cc: linux-kernel

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@kronoz.cjb.net
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."

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-09-22 16:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-21 14:39 [PATCH] Fix Athlon MCA Kronos
2003-09-21 14:47 ` Dave Jones
2003-09-21 17:39 ` Linus Torvalds
2003-09-21 17:47   ` Dave Jones
2003-09-22 14:20     ` CaT
2003-09-22 14:43       ` Dave Jones
2003-09-22 15:06         ` CaT
2003-09-22 16:02           ` Dave Jones
2003-09-22 16:07             ` CaT
2003-09-22 16:20               ` Dave Jones
2003-09-22 13:32 ` venom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox