Subject: Re: NetBSD GENERIC.MP hang
To: Frank van der Linden <fvdl@netbsd.org>
From: Milos Urbanek <urbanek@openbsd.cz>
List: current-users
Date: 06/17/2003 10:56:54
On Fri, Jun 13, 2003 at 07:44:36PM +0200, Frank van der Linden wrote:
> On Fri, Jun 13, 2003 at 11:59:50AM +0200, Milos Urbanek wrote:
> > I have some rather old SMP machine. I have no problem running GENERIC UP
> > NetBSD kernel. However I tried to run GENERIC.MP (current sources from may 2003)
> > and it hangs during the boot. Here is the serial console output
> > (generated with mp_verbose set).
> 
> [...]
> 
> > ioapic0: enabling
> > ioapic0: int3 1d1<vector=d1,delmode=1,dest=0> 0<target=0>
> > ioapic0: int4 1d0<vector=d0,delmode=1,dest=0> 0<target=0>
> > ioapic0: int6 161<vector=61,delmode=1,dest=0> 0<target=0>
> > ioapic0: int11 f170<vector=70,delmode=1,pending,actlo,irrpending,level,dest=0> 0<target=0>
> > ioapic0: int14 160<vector=60,delmode=1,dest=0> 0<target=0>
> 
> I think int11 may be the culprit. It has 'pending' and 'irrpending'
> set already; sometimes this indicates that an interrupt is marked
> with the wrong polarity. In this case, that's strange, though.
> The interrupt is marked as active low, which would be correct
> for PCI. It would be strange if that board has active-high PCI
> interrupts.
> 
> - Frank

Thank you Frank, after removing the bogus NIC, the machine is running fine with
both processors. Dmesg follows.

Milos

NetBSD 1.6R (GENERIC.MP) #0: Fri Jun 13 00:04:44 UTC 2003
        root@crash:/usr/src/sys/arch/i386/compile/GENERIC.MP
total memory = 97916 KB
avail memory = 83536 KB
using 1249 buffers containing 4996 KB of memory
Security policy loaded: TrustedBSD MAC/Test (mac_test)
BIOS32 rev. 0 found at 0xfdb80
mainbus0 (root)
mainbus0: scanning 0x9fc00 to 0x9fff0 for MP signature
mainbus0: scanning 0x9f800 to 0x9fbf0 for MP signature
mainbus0: scanning 0xf0000 to 0xffff0 for MP signature
mainbus0: MP floating pointer found in bios at 0xfb5c0
mainbus0: Intel MP Specification (Version 1.1) (INTEL    430HX       )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium (P54C) (586-class), 149.59 MHz, id 0x52c
cpu0: features 3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
cpu0: calibrating local timer
cpu0: apic clock running at 66 MHz
cpu0: kstack at 0xc88b0000 for 16384 bytes
cpu0: idle pcb at 0xc88b0000, idle sp at 0xc88b3f98
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel Dual Pentium (P54C) (586-class), 166.19 MHz, id 0x252c
cpu1: features 3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
cpu1: kstack at 0xc88b8000 for 16384 bytes
cpu1: idle pcb at 0xc88b8000, idle sp at 0xc88bbf98
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type ISA   
mpbios: bus 2 is type EISA  
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, virtual wire mode, version 11, 16 pins
ioapic0: int0 attached to ExtINT (type 3<type=3=ExtINT> flags 0<pol=0,trig=0>)
ioapic0: int1 attached to isa0 irq 1 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int2 attached to isa0 irq 0 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int3 attached to isa0 irq 3 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int4 attached to isa0 irq 4 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int5 attached to isa0 irq 5 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int6 attached to isa0 irq 6 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int7 attached to isa0 irq 7 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int8 attached to isa0 irq 8 (type 0<type=0> flags 5<pol=1=Act Hi,trig=1=Edge>)
ioapic0: int9 attached to isa0 irq 9 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int10 attached to isa0 irq 10 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int11 attached to isa0 irq 11 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int12 attached to isa0 irq 12 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int13 attached to isa0 irq 13 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int14 attached to isa0 irq 14 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int15 attached to isa0 irq 15 (type 0<type=0> flags 0<pol=0,trig=0>)
local apic: int0 attached to ExtINT (type 3<type=3=ExtINT> flags 0<pol=0,trig=0>)
local apic: int1 attached to NMI (type 1<type=1=NMI> flags 0<pol=0,trig=0>)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439HX System Controller (TXC) (rev. 0x02)
pceb0 at pci0 dev 7 function 0
pceb0: Intel 82375EB/SB PCI-EISA Bridge (PCEB) (rev. 0x05)
ahc1 at pci0 dev 8 function 0: unable to map registers
vga1 at pci0 dev 10 function 0: Silicon Integrated System product 0x0204 (rev. 0x21)
wsdisplay0 at vga1 kbdmux 1
wsmux1: connecting to wsdisplay0
eisa0 at pceb0
isa0 at pceb0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns8250 or ns16450, no fifo
com1: kgdb
pckbc0 at isa0 port 0x60-0x64
pckbdprobe: reset error 5
pmsprobe: reset error 5
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 channel 0 drive 0: <ST310211A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 9641 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 19746720 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
cpu0: prelint0 700<vector=0,delmode=7,dest=0> 0<target=0>
cpu0: prelint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu0: timer0 300c0<vector=c0,delmode=0,masked,dest=0> 0<target=0>
cpu0: pcint0 0<vector=0,delmode=0,dest=0> 0<target=0>
cpu0: lint0 10700<vector=0,delmode=7,masked,dest=0> 0<target=0>
cpu0: lint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu0: err0 1000f<vector=f,delmode=0,masked,dest=0> 0<target=0>
ioapic0: enabling
ioapic0: int3 1d1<vector=d1,delmode=1,dest=0> 0<target=0>
ioapic0: int4 1d0<vector=d0,delmode=1,dest=0> 0<target=0>
ioapic0: int6 161<vector=61,delmode=1,dest=0> 0<target=0>
ioapic0: int14 160<vector=60,delmode=1,dest=0> 0<target=0>
raidattach: Asked for 8 units
Kernelized RAIDframe activated
Searching for RAID components...
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying smbfs...
mountroot: trying coda...
mountroot: trying msdos...
mountroot: trying cd9660...
mountroot: trying ntfs...
mountroot: trying nfs...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
cpu1: prelint0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: prelint1 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: timer0 200c0<vector=c0,delmode=0,dest=0> 0<target=0>
cpu1: pcint0 0<vector=0,delmode=0,dest=0> 0<target=0>
cpu1: lint0 10700<vector=0,delmode=7,masked,dest=0> 0<target=0>
cpu1: lint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu1: err0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: CPU 1 running
init: copying out path `/sbin/init' 11


--