Skip to contentSkip to conversation

apic, smp and k6

Oops Andreas Jellinghaus 3 participants 3 messages Nov 24, 2000 – Nov 27, 2000

lore
Share & tools
lore
#0 lore raw

a dual board (meant for pentium) with one k6 200 and
a 2.4.0-test11 kernel with APIC support enabled does oops here. removed the APIC support, and now everything is fine. i read here it´s a known problem ? at least someone else reported this, and it´s the same problem here.

regards, andreas

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Andreas" == Andreas Jellinghaus <[email protected]> writes:

Andreas> a dual board (meant for pentium) with one k6 200 and a Andreas> 2.4.0-test11 kernel with APIC support enabled does oops Andreas> here. removed the APIC support, and now everything is fine. i Andreas> read here it´s a known problem ? at least someone else reported Andreas> this, and it´s the same problem here.

Yes, a colleague of mine has a similar beast, hence Caldera ships for quite a while now with an appropriate patch. Now Christoph Hellwig has identified a simpler solution (updated for -test11 by me):

arch/i386/kernel/setup.c renamed from arch/i386/kernel/setup.c~ +2 -1
@@ -785,7 +785,8 @@
 	/*
 	 * get boot-time SMP configuration:
 	 */
-	if (smp_found_config)
+	if (smp_found_config && /* try only if the cpu has a local apic */
+	    test_bit(X86_FEATURE_APIC, boot_cpu_data.x86_capability))
 		get_smp_config();
 #endif
 #ifdef CONFIG_X86_LOCAL_APIC

I think Alan has a similar thing in his test11-ac* series.

Hope that helps,

Torsten
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
Quoted 7 lines

while now with an appropriate patch. Now Christoph Hellwig has identifi= ed a
simpler solution (updated for -test11 by me):

arch/i386/kernel/setup.c line 790

Quoted 7 lines
arch/i386/kernel/setup.c renamed from arch/i386/kernel/setup.c~ +2 -1
@@ -785,7 +785,8 @@
 	/*
 	 * get boot-time SMP configuration:
 	 */
-	if (smp_found_config)
+	if (smp_found_config && /* try only if the cpu has a local apic */
+	    test_bit(X86_FEATURE_APIC, boot_cpu_data.x86_capability))
 		get_smp_config();

This patch unfortunately does break some real setups, since it is legal to have non APIC on the CPU but an APIC as an addon chip.

Quoted 1 line

I think Alan has a similar thing in his test11-ac* series.

Maciej Rozycki provided a much better test, that from reports so far seems to be working

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/