Skip to contentSkip to conversation

2.2.20pre1: Problems with SMP

DISCUSSION Shane Wegner 4 participants 9 messages May 7, 2001 – May 17, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

Just booted up 2.2.20pre1 and am getting some funny results. The system boots but is very slow. Every few seconds I get:
Stuck on TLB IPI wait (CPU#0)

Booting vanilla 2.2.19 works fine. The machine is an Intel Pentium III 850MHZ on an Abit VP6 board. If any further information is needed, let me know.

Regards,
Shane

Signature · 5 lines
Shane Wegner: [email protected]
              http://www.cm.nu/~shane/
PGP:          1024D/FFE3035D
              A0ED DAC4 77EC D674 5487
              5B5C 4F89 9A4E FFE3 035D
#1 lore raw
Quoted 8 lines

Just booted up 2.2.20pre1 and am getting some funny results. The system boots but is very slow. Every few seconds I get:
Stuck on TLB IPI wait (CPU#0)

Booting vanilla 2.2.19 works fine. The machine is an Intel Pentium III 850MHZ on an Abit VP6 board. If any further information is needed, let me know.

Can you back out the change to io_apic.c and tell me if that fixes it. If so let Johannes Erdfelt and I know.

#2 lore raw
In reply to Shane Wegner
Quoted 11 lines · Alan Cox
Quoted 8 lines

Just booted up 2.2.20pre1 and am getting some funny results. The system boots but is very slow. Every few seconds I get:
Stuck on TLB IPI wait (CPU#0)

Booting vanilla 2.2.19 works fine. The machine is an Intel Pentium III 850MHZ on an Abit VP6 board. If any further information is needed, let me know.

Can you back out the change to io_apic.c and tell me if that fixes it. If so let Johannes Erdfelt and I know.

That does indeed correct the problem. 2.2.20pre1 now works as expected.

Shane

Signature · 5 lines
Shane Wegner: [email protected]
              http://www.cm.nu/~shane/
PGP:          1024D/FFE3035D
              A0ED DAC4 77EC D674 5487
              5B5C 4F89 9A4E FFE3 035D
#3 lore raw
In reply to Shane Wegner
Quoted 10 lines · Shane Wegner
Quoted 9 lines · Alan Cox
Quoted 8 lines

Just booted up 2.2.20pre1 and am getting some funny results. The system boots but is very slow. Every few seconds I get:
Stuck on TLB IPI wait (CPU#0)

Booting vanilla 2.2.19 works fine. The machine is an Intel Pentium III 850MHZ on an Abit VP6 board. If any further information is needed, let me know.

Quoted 5 lines
Quoted 2 lines

Can you back out the change to io_apic.c and tell me if that fixes it. If so let Johannes Erdfelt and I know.

That does indeed correct the problem. 2.2.20pre1 now works as expected.

Hmm, that uses a VIA based chipset. I didn't know they did SMP yet. Does 2.4 work on this system?

JE

#4 lore raw
In reply to Shane Wegner
Quoted 7 lines · Johannes Erdfelt
Quoted 3 lines · Shane Wegner

That does indeed correct the problem. 2.2.20pre1 now works as expected.

Hmm, that uses a VIA based chipset. I didn't know they did SMP yet. Does 2.4 work on this system?

The last 2.4 kernel I tried was 2.4.3 I believe and it worked fine more or less. I haven't tried any later 2.4 kernels yet.

Shane

Signature · 5 lines
Shane Wegner: [email protected]
              http://www.cm.nu/~shane/
PGP:          1024D/FFE3035D
              A0ED DAC4 77EC D674 5487
              5B5C 4F89 9A4E FFE3 035D
#5 lore raw
In reply to Shane Wegner
Quoted 6 lines · Shane Wegner
Quoted 5 lines · Johannes Erdfelt
Quoted 3 lines · Shane Wegner

That does indeed correct the problem. 2.2.20pre1 now works as expected.

Quoted 6 lines
Quoted 2 lines

Hmm, that uses a VIA based chipset. I didn't know they did SMP yet. Does 2.4 work on this system?

The last 2.4 kernel I tried was 2.4.3 I believe and it worked fine more or less. I haven't tried any later 2.4 kernels yet.

That's fine. The I/O APIC code is different and I tried to make the 2.2 code work like the 2.4 code with minimal changes. However, the changes aren't trivial. I'll take a quick look and see if I can find any more significant differences.

I wonder if I have a VIA board laying around here.

JE

#6 lore raw
In reply to Shane Wegner
Quoted 6 lines · Shane Wegner
Quoted 5 lines · Johannes Erdfelt
Quoted 3 lines · Shane Wegner

That does indeed correct the problem. 2.2.20pre1 now works as expected.

Quoted 6 lines
Quoted 2 lines

Hmm, that uses a VIA based chipset. I didn't know they did SMP yet. Does 2.4 work on this system?

The last 2.4 kernel I tried was 2.4.3 I believe and it worked fine more or less. I haven't tried any later 2.4 kernels yet.

Could you try this patch? It applies on top of 2.2.20pre1

It also cleans up a couple of comments

JE

i386/kernel/io_apic.c renamed from i386/kernel/io_apic.c.old +4 -2
@@ -204,6 +204,8 @@
 /*
  * We disable IO-APIC IRQs by setting their 'destination CPU mask' to
  * zero. Trick by Ramesh Nalluri.
+ * Not anymore. This causes problems on some IO-APIC's, notably AMD 760MP's
+ * So we do it a more 2.4 kind of way now which should be safer -jerdfelt
  */
 DO_ACTION( mask,    0, |= 0x00010000, io_apic_sync(entry->apic))/* mask = 1 */
 DO_ACTION( unmask,  0, &= 0xfffeffff, )				/* mask = 0 */
@@ -646,8 +648,8 @@
 
 		entry.delivery_mode = dest_LowestPrio;
 		entry.dest_mode = 1;			/* logical delivery */
-		entry.mask = 0;				/* enable IRQ */
-		entry.dest.logical.logical_dest = 0xff;	/* but no route */
+		entry.mask = 1;				/* disable IRQ */
+		entry.dest.logical.logical_dest = 0xff;
 
 		idx = find_irq_entry(apic,pin,mp_INT);
 		if (idx == -1) {
#7 lore raw
In reply to Shane Wegner
Quoted 4 lines · Johannes Erdfelt

Could you try this patch? It applies on top of 2.2.20pre1

It also cleans up a couple of comments

That fixes it alright.

Shane

Signature · 5 lines
Shane Wegner: [email protected]
              http://www.cm.nu/~shane/
PGP:          1024D/FFE3035D
              A0ED DAC4 77EC D674 5487
              5B5C 4F89 9A4E FFE3 035D
#8 lore raw
In reply to Shane Wegner
Quoted 6 lines · Shane Wegner
Quoted 3 lines · Johannes Erdfelt

Could you try this patch? It applies on top of 2.2.20pre1

It also cleans up a couple of comments

That fixes it alright.

Excellent. Alan, could you apply the patch to 2.2.20pre2?

JE