booting SMP P6 kernel on P4 hangs.
Quoted 29 lines · Tigran Aivazian
Isn't SMP P6 kernel supposed to boot fine on a P4? Btw, booting with "nosmp" works but booting with "noapic" hangs just the same.
Here is where it hangs:
Quoted 24 lines
CPU0: Intel(R) Pentium(R) 4 CPU 1300 Mhz stepping 0a per-CPU timeslice cutoff: 731.49 usecs weird, boot CPU (#0) not listed by the BIOS Getting VERSION:
f000acde
Getting VERSION:f0ffac21
leaving PIC mode, enabling symmetric IO mode. enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000 ESR value after enabling vector: 00000000 CPU present map: 1
Before bogomips.
Error: only one processor found.
Boot done.
ENABLING IO-APIC IRQs
Synchronizing Arb IDs.
..TIMER: vector=31 pin1=2 pin2=0
activating NMI Watchdog...done
CPU#0 NMI appears to be stuck
testing the IO APIC............. ..........................done
calibrating APIC timer...
.....CPU clock speed is 1285.2614 Mhz ....host bus clock speed is 0.0000 Mhz cpu:0, clocks:0, slice:0
Which kernel version?
I actually wouldn't expect the current local APIC or SMP code to work perfectly on a P4, since there are many differences to P6/K7. I scribbled some of them down a while ago (based on reading the first rev of Intel's IA32 Vol3 for P4 manual):
- FEE000090 Arbitration Priority not supported in P4
- broadcast is 0xFF in P4
- flat cluster model is not supported in P4
- focus processor concept doesn't exist in P4
- "all excluding self" destination shorthand == "all including self" in P4 if lowest-priority delivery mode is used (not recommended)
- SPIV bit 9 (focus) should be 0 on P4
- version is 0x14 and maxlvt is 5 on P4
2.4.7 apic.c enables the SPIV focus bit, maybe that's the problem.
/Mikael