During boot: "Programming 16 pins in IOAPIC" ... and then hangs

David Landgren david at landgren.net
Wed Oct 8 00:35:19 PDT 2003


John Baldwin wrote:

> On 19-Sep-2003 David Landgren wrote:
> 
>>Greetings list,
>>
>>I have an HP DL380-G3 with a P4 processor. I upgraded the source tree
>>last night to 4.9-PRERELEASE. This is the last server I have that is 
>>running a GENERIC kernel, two others are successfully running SMP 
>>kernels (insofar as hw.ncpus = 2).
>>
>>I copied over a successful kernel configuration file and tried to 
>>build an SMP kernel. The new kernel boots with the following:
>>
>>Programming 16 pins in IOAPIc #0
>>IOAPIC #0 intpin 2 -> irq 0
>>Programming 16 pins in IOAPIc #1
>>Programming 16 pins in IOAPIc #2
>>Programming 16 pins in IOAPIc #3
>>
>>... and then hangs. If I comment out
>>
>>options        SMP
>>options        APIC_IO
>>options        HTT
> 
> 
> Look in your BIOS and see if there is an option to make it create
> a "full mptable".  If so, turn that on and try again.

For the archives, in case other people search for this problem:

Yes indeed, this was the solution.

I rebooted the machine and ran the BIOS configuration (F9 at the 
prompt just before it tries to figure out which device it should boot 
from.

 From there, take the "Advanced Options" menu. From there, take the 
"MPS Table Mode" menu.

There, you have a choice between

    o  Full Table APIC
    o  Full Table Mapped
    o  Disabled
    o  Auto Set Table

It was set to "Auto Set Table". I changed this to "Full Table APIC" 
and now my system reports:

% sysctl hw.ncpu
hw.ncpu: 2

Here's the dmesg, FWIW
% dmesg
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD 4.9-PRERELEASE #1: Wed Oct  8 09:05:45 CEST 2003
     root at bechet.bpinet.com:/usr/obj/usr/src/sys/BECHET
Timecounter "i8254"  frequency 1193182 Hz
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2785.61-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
 
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
   Hyperthreading: 2 logical CPUs
real memory  = 2147459072 (2097128K bytes)
avail memory = 2088259584 (2039316K bytes)
Programming 16 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
Programming 16 pins in IOAPIC #1
Programming 16 pins in IOAPIC #2
Programming 16 pins in IOAPIC #3
FreeBSD/SMP: Multiprocessor motherboard: 2 CPUs
  cpu0 (BSP): apic id:  6, version: 0x00050014, at 0xfee00000
  cpu1 (AP):  apic id:  7, version: 0x00050014, at 0xfee00000
  io0 (APIC): apic id:  2, version: 0x000f0011, at 0xfec00000
  io1 (APIC): apic id:  3, version: 0x000f0011, at 0xfec01000
  io2 (APIC): apic id:  4, version: 0x000f0011, at 0xfec02000
  io3 (APIC): apic id:  5, version: 0x000f0011, at 0xfec03000
Preloaded elf kernel "kernel" at 0xc0364000.
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
IOAPIC #1 intpin 0 -> irq 2
IOAPIC #1 intpin 1 -> irq 3
IOAPIC #0 intpin 7 -> irq 5
pci0: <PCI bus> on pcib0
pci0: <ATI Mach64-GR graphics accelerator> at 3.0
pci0: <unknown card> (vendor=0x0e11, dev=0xb203) at 4.0 irq 2
pci0: <unknown card> (vendor=0x0e11, dev=0xb204) at 4.2 irq 3
isab0: <PCI to ISA bridge (vendor=1166 device=0201)> at device 15.0 on 
pci0
isa0: <ISA bus> on isab0
atapci0: <ServerWorks CSB5 ATA100 controller> port 
0x2000-0x200f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at 
device 15.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <OHCI USB controller> at 15.2 irq 5
pcib1: <Host to PCI bridge> on motherboard
IOAPIC #1 intpin 14 -> irq 7
pci1: <PCI bus> on pcib1
ciss0: <Compaq Smart Array 5i> port 0x3000-0x30ff mem 
0xf7bf0000-0xf7bf3fff,0xf7cc0000-0xf7cfffff irq 7 at device 3.0 on pci1
pcib2: <Host to PCI bridge> on motherboard
IOAPIC #1 intpin 13 -> irq 10
IOAPIC #1 intpin 15 -> irq 11
pci2: <PCI bus> on pcib2
bge0: <Broadcom BCM5703 Gigabit Ethernet, ASIC rev. 0x1002> mem 
0xf7df0000-0xf7dfffff irq 10 at device 1.0 on pci2
bge0: Ethernet address: 00:0b:cd:03:bc:da
miibus0: <MII bus> on bge0
brgphy0: <BCM5703 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 
1000baseTX-FDX, auto
bge1: <Broadcom BCM5703 Gigabit Ethernet, ASIC rev. 0x1002> mem 
0xf7de0000-0xf7deffff irq 11 at device 2.0 on pci2
bge1: Ethernet address: 00:0b:cd:0e:07:18
miibus1: <MII bus> on bge1
brgphy1: <BCM5703 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 
1000baseTX-FDX, auto
pcib3: <Host to PCI bridge> on motherboard
IOAPIC #1 intpin 4 -> irq 15
IOAPIC #1 intpin 5 -> irq 16
pci3: <PCI bus> on pcib3
pci3: <unknown card> (vendor=0x9005, dev=0x00c0) at 1.0 irq 15
pci3: <unknown card> (vendor=0x9005, dev=0x00c0) at 1.1 irq 16
pcib4: <ServerWorks host to PCI bridge(unknown chipset)> on motherboard
pci4: <PCI bus> on pcib4
pcib6: <ServerWorks host to PCI bridge(unknown chipset)> on motherboard
IOAPIC #1 intpin 2 -> irq 17
pci6: <PCI bus> on pcib6
pci6: <unknown card> (vendor=0x0e11, dev=0xa0f7) at 30.0 irq 17
pcib5: <ServerWorks host to PCI bridge(unknown chipset)> on motherboard
pci5: <PCI bus> on pcib5
pcib7: <ServerWorks host to PCI bridge(unknown chipset)> on motherboard
pci7: <PCI bus> on pcib7
eisa0: <EISA bus> on motherboard
mainboard0: <CPQ0727 (System Board)> on eisa0 slot 0
orm0: <Option ROMs> at iomem 
0xc0000-0xc7fff,0xc8000-0xcbfff,0xcc000-0xcd7ff,0xee000-0xeffff on isa0
pmtimer0 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
IP packet filtering initialized, divert enabled, rule-based forwarding 
enabled, default to deny, logging limited to 500 packets/entry by default
ata0-slave: ATA identify retries exceeded
SMP: AP CPU #1 Launched!
acd0: CDROM <COMPAQ CD-ROM SN-124> at ata0-master PIO4
Mounting root from ufs:/dev/da0s1a
da0 at ciss0 bus 0 target 0 lun 0
da0: <COMPAQ RAID 1  VOLUME OK> Fixed Direct Access SCSI-0 device
da0: 135.168MB/s transfers
da0: 69459MB (142253280 512 byte sectors: 255H 32S/T 17433C)
bge0: gigabit link up

Thanks John for the help.

David



More information about the freebsd-smp mailing list