Skip to contentSkip to conversation

Linux 2.4.19-pre3

DISCUSSION Mikael Pettersson 3 participants 3 messages Mar 12, 2002

lore
Share & tools
lore
#0 lore raw

Marcelo wrote in the 2.4.19-pre3 announcement:

Quoted 2 lines

pre3:
- Fix off-by-one error in bluesmoke (Dave Jones)

NO NO NO! This is the same broken patch that somehow got into 2.2.21pre4 as well. The patch changes the code to write to the IA32_MC0_CTL MSR, which is a big no-no. Intel's IA32 Vol3 manual (#245472-03) sections 13.3.2.1 and 13.5 make that point quite clear.

I have several P6 boxes that hang hard in MCE init trying to boot vanilla 2.2.21pre4 and 2.4.19-pre3. The issue is real.

Please apply the backup patch below.

/Mikael

arch/i386/kernel/bluesmoke.c renamed from arch/i386/kernel/bluesmoke.c.~1~ +1 -1
@@ -169,7 +169,7 @@
 	if(l&(1<<8))
 		wrmsr(MSR_IA32_MCG_CTL, 0xffffffff, 0xffffffff);
 	banks = l&0xff;
-	for(i=0;i<banks;i++)
+	for(i=1;i<banks;i++)
 	{
 		wrmsr(MSR_IA32_MC0_CTL+4*i, 0xffffffff, 0xffffffff);
 	}
#1 lore raw
Quoted 19 lines · Mikael Pettersson

Marcelo wrote in the 2.4.19-pre3 announcement:

Quoted 2 lines

pre3:
- Fix off-by-one error in bluesmoke (Dave Jones)

NO NO NO! This is the same broken patch that somehow got into 2.2.21pre4 as well. The patch changes the code to write to the IA32_MC0_CTL MSR, which is a big no-no. Intel's IA32 Vol3 manual (#245472-03) sections 13.3.2.1 and 13.5 make that point quite clear.

I have several P6 boxes that hang hard in MCE init trying to boot vanilla 2.2.21pre4 and 2.4.19-pre3. The issue is real.

Please apply the backup patch below.

/Mikael

arch/i386/kernel/bluesmoke.c line 175

Quoted 8 lines
arch/i386/kernel/bluesmoke.c renamed from arch/i386/kernel/bluesmoke.c.~1~ +1 -1
@@ -169,7 +169,7 @@
 	if(l&(1<<8))
 		wrmsr(MSR_IA32_MCG_CTL, 0xffffffff, 0xffffffff);
 	banks = l&0xff;
-	for(i=0;i<banks;i++)
+	for(i=1;i<banks;i++)
 	{
 		wrmsr(MSR_IA32_MC0_CTL+4*i, 0xffffffff, 0xffffffff);
 	}

Just to confirm your patch fixes my MCE init lockup problem here as well.

--
Chad Young - Registered Linux User #195191 @ http://counter.li.org
-----------------------------------------------------------------------
Linux localhost 2.4.19-pre3 #1 Tue Mar 12 00:43:17 AST 2002 i686 unknown
1:10am up 0 min, 0 users, load average: 0.39, 0.11, 0.03

#2 lore raw
In reply to Mikael Pettersson
Quoted 3 lines · Mikael Pettersson
Quoted 1 line

- Fix off-by-one error in bluesmoke (Dave Jones)

NO NO NO! This is the same broken patch that somehow got into 2.2.21pre4 as well.

Agreed, it should get backed out as it was in 2.2.21rc1

Quoted 3 lines

The patch changes the code to write to the
IA32_MC0_CTL MSR, which is a big no-no. Intel's IA32 Vol3 manual (#245472-03) sections 13.3.2.1 and 13.5 make that point quite clear.

Without the change however, Athlons won't report Icache errors. Possibly we need a seperate init path for Athlon/Intel

Signature · 2 lines
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs