Subject: Re: kern/36727: lkms that work with Single processor kernel do not
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Ian McIntosh <ianm@cat.co.za>
List: netbsd-bugs
Date: 08/03/2007 15:10:03
The following reply was made to PR kern/36727; it has been noted by GNATS.

From: Ian McIntosh <ianm@cat.co.za>
To: gnats-bugs@NetBSD.org
Cc: Martin Husemann <martin@duskware.de>
Subject: Re: kern/36727: lkms that work with Single processor kernel do not
 work with muli-processor kernel
Date: Fri, 03 Aug 2007 17:13:50 +0200

 Martin Husemann wrote:
 > On Fri, Aug 03, 2007 at 11:55:04AM +0000, Ian McIntosh wrote:
 >   
 >>  irq 10
 >>     
 >
 > Doy you have support for ioapic in the UP kernel?
 > If not, could you try to add
 >
 >   ioapic* at mainbus?
 >
 > to your kernel config and see how that works?
 >
 > If you already have it, could you quote the complete interrupt line from
 > the boot message?
 >
 > Thanks,
 >
 > Martin
 >
 >   
 Hi Martin
 
 Not sure what you mean by 'UP kernel', could you please explain that. I 
 did compile a GENERIC kernel with
 ioapic* at mainbus?
 options MPBIOS
 options MPBIOS_SCANPCI
 
 This did not work at all. To me it looks like the lkm is ignoring the 
 ioapic somehow.
 
 The complete dmesg is as below (mov0 is the PCI card my company produces)
 
 Ian
 
 Aug  4 04:05:01 core2core2 /netbsd: 
 root@core2core2:/usr/src/sys/arch/i386/compile/GENERIC
 Aug  4 04:05:01 core2core2 /netbsd: total memory = 503 MB
 Aug  4 04:05:01 core2core2 /netbsd: avail memory = 484 MB
 Aug  4 04:05:01 core2core2 /netbsd: BIOS32 rev. 0 found at 0xf0010
 Aug  4 04:05:01 core2core2 /netbsd: mainbus0 (root)
 Aug  4 04:05:01 core2core2 /netbsd: mainbus0: Intel MP Specification 
 (Version 1.4) (INTEL                )
 Aug  4 04:05:01 core2core2 /netbsd: cpu0 at mainbus0: apid 0 (boot 
 processor)
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: Intel Pentium Pro, II or III 
 (686-class), 1866.72 MHz, id 0x6f2
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: features 
 bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: features 
 bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: features 
 bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: features2 
 e3bd<SSE3,MONITOR,DS-CPL,VMX,EST,TM2,xTPR>
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: "Intel(R) Core(TM)2 
 CPU          6300  @ 1.86GHz"
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: I-cache 32 KB 64B/line 8-way, 
 D-cache 32 KB 64B/line 8-way
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: L2 cache 2 MB 64B/line 8-way
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: using thermal monitor 1
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: Enhanced SpeedStep (1340 mV)  
 - unknown CPU or operating point.
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: calibrating local timer
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: apic clock running at 266 MHz
 Aug  4 04:05:01 core2core2 /netbsd: cpu0: 64 page colors
 Aug  4 04:05:01 core2core2 /netbsd: cpu1 at mainbus0: apid 1 
 (application processor)
 Aug  4 04:05:01 core2core2 /netbsd: cpu1: not started
 Aug  4 04:05:01 core2core2 /netbsd: mpbios: bus 0 is type PCI  
 Aug  4 04:05:01 core2core2 /netbsd: mpbios: bus 1 is type PCI  
 Aug  4 04:05:01 core2core2 /netbsd: mpbios: bus 2 is type PCI  
 Aug  4 04:05:01 core2core2 /netbsd: mpbios: bus 3 is type PCI  
 Aug  4 04:05:01 core2core2 /netbsd: mpbios: bus 4 is type ISA  
 Aug  4 04:05:01 core2core2 /netbsd: ioapic0 at mainbus0 apid 2 (I/O APIC)
 Aug  4 04:05:01 core2core2 /netbsd: ioapic0: pa 0xfec00000, version 20, 
 24 pins
 Aug  4 04:05:01 core2core2 /netbsd: pci0 at mainbus0 bus 0: 
 configuration mode 1
 Aug  4 04:05:01 core2core2 /netbsd: pci0: i/o space, memory space 
 enabled, rd/line, rd/mult, wr/inv ok
 Aug  4 04:05:01 core2core2 /netbsd: pchb0 at pci0 dev 0 function 0
 Aug  4 04:05:01 core2core2 /netbsd: pchb0: Intel 82945G/P Memory 
 Controller Hub (rev. 0x02)
 Aug  4 04:05:01 core2core2 /netbsd: vga1 at pci0 dev 2 function 0: Intel 
 product 0x2772 (rev. 0x02)
 Aug  4 04:05:01 core2core2 /netbsd: wsdisplay0 at vga1 kbdmux 1: console 
 (80x25, vt100 emulation)
 Aug  4 04:05:01 core2core2 /netbsd: wsmux1: connecting to wsdisplay0
 Aug  4 04:05:01 core2core2 /netbsd: azalia0 at pci0 dev 27 function 0: 
 Generic High Definition Audio Controller
 Aug  4 04:05:01 core2core2 /netbsd: azalia0: interrupting at ioapic0 pin 
 19 (irq 5)
 Aug  4 04:05:01 core2core2 /netbsd: azalia0: host: Intel 82801GB/GR High 
 Definition Audio Controller (rev. 1)
 Aug  4 04:05:01 core2core2 /netbsd: azalia0: host: High Definition Audio 
 rev. 1.0
 Aug  4 04:05:01 core2core2 /netbsd: ppb0 at pci0 dev 28 function 0: 
 Intel 82801GB/GR PCI Express Port #1 (rev. 0x01)
 Aug  4 04:05:01 core2core2 /netbsd: pci1 at ppb0 bus 3
 Aug  4 04:05:01 core2core2 /netbsd: pci1: i/o space, memory space 
 enabled, rd/line, wr/inv ok
 Aug  4 04:05:01 core2core2 /netbsd: ppb1 at pci0 dev 28 function 1: 
 Intel 82801GB/GR PCI Express Port #2 (rev. 0x01)
 Aug  4 04:05:01 core2core2 /netbsd: pci2 at ppb1 bus 2
 Aug  4 04:05:01 core2core2 /netbsd: pci2: i/o space, memory space 
 enabled, rd/line, wr/inv ok
 Aug  4 04:05:01 core2core2 /netbsd: unknown vendor 0x1969 product 0x1048 
 (ethernet network, revision 0xb0) at pci2 dev 0 function 0 not configured
 Aug  4 04:05:01 core2core2 /netbsd: uhci0 at pci0 dev 29 function 0: 
 Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
 Aug  4 04:05:01 core2core2 /netbsd: uhci0: interrupting at ioapic0 pin 
 20 (irq 3)
 Aug  4 04:05:01 core2core2 /netbsd: usb0 at uhci0: USB revision 1.0
 Aug  4 04:05:01 core2core2 /netbsd: uhub0 at usb0
 Aug  4 04:05:01 core2core2 /netbsd: uhub0: Intel UHCI root hub, class 
 9/0, rev 1.00/1.00, addr 1
 Aug  4 04:05:01 core2core2 /netbsd: uhub0: 2 ports with 2 removable, 
 self powered
 Aug  4 04:05:01 core2core2 /netbsd: uhci1 at pci0 dev 29 function 1: 
 Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
 Aug  4 04:05:01 core2core2 /netbsd: uhci1: interrupting at ioapic0 pin 
 17 (irq 10)
 Aug  4 04:05:01 core2core2 /netbsd: usb1 at uhci1: USB revision 1.0
 Aug  4 04:05:01 core2core2 /netbsd: uhub1 at usb1
 Aug  4 04:05:01 core2core2 /netbsd: uhub1: Intel UHCI root hub, class 
 9/0, rev 1.00/1.00, addr 1
 Aug  4 04:05:01 core2core2 /netbsd: uhub1: 2 ports with 2 removable, 
 self powered
 Aug  4 04:05:01 core2core2 /netbsd: uhci2 at pci0 dev 29 function 2: 
 Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
 Aug  4 04:05:01 core2core2 /netbsd: uhci2: interrupting at ioapic0 pin 
 18 (irq 10)
 Aug  4 04:05:01 core2core2 /netbsd: usb2 at uhci2: USB revision 1.0
 Aug  4 04:05:01 core2core2 /netbsd: uhub2 at usb2
 Aug  4 04:05:01 core2core2 /netbsd: uhub2: Intel UHCI root hub, class 
 9/0, rev 1.00/1.00, addr 1
 Aug  4 04:05:01 core2core2 /netbsd: uhub2: 2 ports with 2 removable, 
 self powered
 Aug  4 04:05:01 core2core2 /netbsd: uhci3 at pci0 dev 29 function 3: 
 Intel 82801GB/GR USB UHCI Controller (rev. 0x01)
 Aug  4 04:05:01 core2core2 /netbsd: uhci3: interrupting at ioapic0 pin 
 19 (irq 5)
 Aug  4 04:05:01 core2core2 /netbsd: usb3 at uhci3: USB revision 1.0
 Aug  4 04:05:01 core2core2 /netbsd: uhub3 at usb3
 Aug  4 04:05:01 core2core2 /netbsd: uhub3: Intel UHCI root hub, class 
 9/0, rev 1.00/1.00, addr 1
 Aug  4 04:05:01 core2core2 /netbsd: uhub3: 2 ports with 2 removable, 
 self powered
 Aug  4 04:05:01 core2core2 /netbsd: ehci0 at pci0 dev 29 function 7: 
 Intel 82801GB/GR USB EHCI Controller (rev. 0x01)
 Aug  4 04:05:01 core2core2 /netbsd: ehci0: interrupting at ioapic0 pin 
 20 (irq 3)
 Aug  4 04:05:01 core2core2 /netbsd: ehci0: BIOS has given up ownership
 Aug  4 04:05:01 core2core2 /netbsd: ehci0: EHCI version 1.0
 Aug  4 04:05:01 core2core2 /netbsd: ehci0: companion controllers, 2 
 ports each: uhci0 uhci1 uhci2 uhci3
 Aug  4 04:05:01 core2core2 /netbsd: usb4 at ehci0: USB revision 2.0
 Aug  4 04:05:01 core2core2 /netbsd: uhub4 at usb4
 Aug  4 04:05:01 core2core2 /netbsd: uhub4: Intel EHCI root hub, class 
 9/0, rev 2.00/1.00, addr 1
 Aug  4 04:05:01 core2core2 /netbsd: uhub4: single transaction translator
 Aug  4 04:05:01 core2core2 /netbsd: uhub4: 8 ports with 8 removable, 
 self powered
 Aug  4 04:05:01 core2core2 /netbsd: ppb2 at pci0 dev 30 function 0: 
 Intel 82801BA Hub-PCI Bridge (rev. 0xe1)
 Aug  4 04:05:01 core2core2 /netbsd: pci3 at ppb2 bus 1
 Aug  4 04:05:01 core2core2 /netbsd: pci3: i/o space, memory space enabled
 Aug  4 04:05:01 core2core2 /netbsd: Altera product 0x0003 (undefined 
 subclass 0x00, revision 0x01) at pci3 dev 0 function 0 not configured
 Aug  4 04:05:01 core2core2 /netbsd: fxp0 at pci3 dev 1 function 0: 
 i82559 Ethernet, rev 8
 Aug  4 04:05:01 core2core2 /netbsd: fxp0: interrupting at ioapic0 pin 21 
 (irq 5)
 Aug  4 04:05:01 core2core2 /netbsd: fxp0: Ethernet address 00:0e:0c:6c:9f:51
 Aug  4 04:05:01 core2core2 /netbsd: inphy0 at fxp0 phy 1: i82555 10/100 
 media interface, rev. 4
 Aug  4 04:05:01 core2core2 /netbsd: inphy0: 10baseT, 10baseT-FDX, 
 100baseTX, 100baseTX-FDX, auto
 Aug  4 04:05:01 core2core2 /netbsd: pcib0 at pci0 dev 31 function 0
 Aug  4 04:05:01 core2core2 /netbsd: pcib0: Intel 82801GB/GR LPC 
 Interface Bridge (rev. 0x01)
 Aug  4 04:05:01 core2core2 /netbsd: piixide0 at pci0 dev 31 function 1
 Aug  4 04:05:01 core2core2 /netbsd: piixide0: Intel 82801GB/GR IDE 
 Controller (ICH7) (rev. 0x01)
 Aug  4 04:05:01 core2core2 /netbsd: piixide0: bus-master DMA support present
 Aug  4 04:05:01 core2core2 /netbsd: piixide0: primary channel configured 
 to compatibility mode
 Aug  4 04:05:01 core2core2 /netbsd: piixide0: primary channel 
 interrupting at ioapic0 pin 14 (irq 14)
 Aug  4 04:05:01 core2core2 /netbsd: atabus0 at piixide0 channel 0
 Aug  4 04:05:01 core2core2 /netbsd: piixide0: secondary channel 
 configured to compatibility mode
 Aug  4 04:05:01 core2core2 /netbsd: piixide0: secondary channel 
 interrupting at ioapic0 pin 15 (irq 15)
 Aug  4 04:05:01 core2core2 /netbsd: atabus1 at piixide0 channel 1
 Aug  4 04:05:01 core2core2 /netbsd: piixide1 at pci0 dev 31 function 2
 Aug  4 04:05:01 core2core2 /netbsd: piixide1: Intel 82801GB/GR Serial 
 ATA/Raid Controller (ICH7) (rev. 0x01)
 Aug  4 04:05:01 core2core2 /netbsd: piixide1: bus-master DMA support present
 Aug  4 04:05:01 core2core2 /netbsd: piixide1: primary channel configured 
 to native-PCI mode
 Aug  4 04:05:01 core2core2 /netbsd: piixide1: using ioapic0 pin 23 (irq 
 5) for native-PCI interrupt
 Aug  4 04:05:01 core2core2 /netbsd: atabus2 at piixide1 channel 0
 Aug  4 04:05:01 core2core2 /netbsd: piixide1: secondary channel 
 configured to native-PCI mode
 Aug  4 04:05:01 core2core2 /netbsd: atabus3 at piixide1 channel 1
 Aug  4 04:05:01 core2core2 /netbsd: Intel 82801GB/GR SMBus Controller 
 (SMBus serial bus, revision 0x01) at pci0 dev 31 function 3 not configured
 Aug  4 04:05:01 core2core2 /netbsd: isa0 at pcib0
 Aug  4 04:05:01 core2core2 /netbsd: lpt0 at isa0 port 0x378-0x37b irq 7
 Aug  4 04:05:01 core2core2 /netbsd: com0 at isa0 port 0x3f8-0x3ff irq 4: 
 ns16550a, working fifo
 Aug  4 04:05:01 core2core2 /netbsd: com0: kgdb
 Aug  4 04:05:01 core2core2 /netbsd: pckbc0 at isa0 port 0x60-0x64
 Aug  4 04:05:01 core2core2 /netbsd: pckbd0 at pckbc0 (kbd slot)
 Aug  4 04:05:01 core2core2 /netbsd: pckbc0: using irq 1 for kbd slot
 Aug  4 04:05:01 core2core2 /netbsd: wskbd0 at pckbd0: console keyboard, 
 using wsdisplay0
 Aug  4 04:05:01 core2core2 /netbsd: pms0 at pckbc0 (aux slot)
 Aug  4 04:05:01 core2core2 /netbsd: pckbc0: using irq 12 for aux slot
 Aug  4 04:05:01 core2core2 /netbsd: wsmouse0 at pms0 mux 0
 Aug  4 04:05:01 core2core2 /netbsd: pcppi0 at isa0 port 0x61
 Aug  4 04:05:01 core2core2 /netbsd: midi0 at pcppi0: PC speaker
 Aug  4 04:05:01 core2core2 /netbsd: sysbeep0 at pcppi0
 Aug  4 04:05:01 core2core2 /netbsd: isapnp0 at isa0 port 0x279: ISA Plug 
 'n Play device support
 Aug  4 04:05:01 core2core2 /netbsd: npx0 at isa0 port 0xf0-0xffnpx0: 
 reported by CPUID; using exception 16
 Aug  4 04:05:01 core2core2 /netbsd: fdc0 at isa0 port 0x3f0-0x3f7 irq 6 
 drq 2
 Aug  4 04:05:01 core2core2 /netbsd: isapnp0: no ISA Plug 'n Play devices 
 found
 Aug  4 04:05:01 core2core2 /netbsd: ioapic0: enabling
 Aug  4 04:05:01 core2core2 /netbsd: azalia0: codec[0]: 0x11d4/0x1986 
 (rev. 5.0)
 Aug  4 04:05:01 core2core2 /netbsd: azalia0: codec[0]: High Definition 
 Audio rev. 1.0
 Aug  4 04:05:01 core2core2 /netbsd: azalia0: playback: max channels=6, 
 encodings=1<PCM>
 Aug  4 04:05:01 core2core2 /netbsd: azalia0: playback: PCM 
 formats=e007f<24bit,20bit,16bit,48kHz,44.1kHz,32kHz,22.05kHz,16kHz,11.025kHz,8kHz>
 Aug  4 04:05:01 core2core2 /netbsd: azalia0: recording: max channels=2, 
 encodings=1<PCM>
 Aug  4 04:05:01 core2core2 /netbsd: azalia0: recording: PCM 
 formats=6007f<20bit,16bit,48kHz,44.1kHz,32kHz,22.05kHz,16kHz,11.025kHz,8kHz>
 Aug  4 04:05:01 core2core2 /netbsd: audio0 at azalia0: full duplex, 
 independent
 Aug  4 04:05:01 core2core2 /netbsd: Kernelized RAIDframe activated
 Aug  4 04:05:01 core2core2 /netbsd: wd0 at atabus2 drive 0: <WDC 
 WD2000JS-00MHB0>
 Aug  4 04:05:01 core2core2 /netbsd: wd0: drive supports 16-sector PIO 
 transfers, LBA48 addressing
 Aug  4 04:05:01 core2core2 /netbsd: wd0: 186 GB, 387621 cyl, 16 head, 63 
 sec, 512 bytes/sect x 390721968 sectors
 Aug  4 04:05:01 core2core2 /netbsd: wd0: 32-bit data port
 Aug  4 04:05:01 core2core2 /netbsd: wd0: drive supports PIO mode 4, DMA 
 mode 2, Ultra-DMA mode 6 (Ultra/133)
 Aug  4 04:05:01 core2core2 /netbsd: wd0(piixide1:0:0): using PIO mode 4, 
 Ultra-DMA mode 6 (Ultra/133) (using DMA)
 Aug  4 04:05:01 core2core2 /netbsd: boot device: wd0
 Aug  4 04:05:01 core2core2 /netbsd: root on wd0a dumps on wd0b
 Aug  4 04:05:01 core2core2 /netbsd: root file system type: ffs
 Aug  4 04:05:01 core2core2 /netbsd: wsdisplay0: screen 1 added (80x25, 
 vt100 emulation)
 Aug  4 04:05:01 core2core2 /netbsd: wsdisplay0: screen 2 added (80x25, 
 vt100 emulation)
 Aug  4 04:05:01 core2core2 /netbsd: wsdisplay0: screen 3 added (80x25, 
 vt100 emulation)
 Aug  4 04:05:01 core2core2 /netbsd: wsdisplay0: screen 4 added (80x25, 
 vt100 emulation)
 Aug  4 04:05:01 core2core2 savecore: reboot after panic: panic: trap
 Aug  4 04:05:01 core2core2 savecore: writing compressed core to 
 /var/crash/netbsd.7.core.gz
 Aug  4 04:05:33 core2core2 savecore: writing compressed kernel to 
 /var/crash/netbsd.7.gz
 Aug  4 04:05:36 core2core2 root: /etc/rc: WARNING: sendmail client queue 
 /var/spool/clientmqueue has wrong owner/mode
 Aug  4 04:06:06 core2core2 /netbsd:
 Aug  4 04:06:06 core2core2 /netbsd: __NetBSD_Version__ = 301000001
 Aug  4 04:06:06 core2core2 /netbsd: driver: pci
 Aug  4 04:06:06 core2core2 /netbsd: mov0 at pci3
 Aug  4 04:06:06 core2core2 /netbsd: pci_intr_map: bus 1 dev 0 func 0 pin 
 1; line 10
 Aug  4 04:06:06 core2core2 /netbsd: pci_intr_map: no MP mapping found
 Aug  4 04:06:06 core2core2 /netbsd: failed to allocate interrupt slot 
 for PIC pic0 pin 10
 Aug  4 04:06:06 core2core2 /netbsd: : couldn't establish interrupt at irq 10
 Aug  4 04:07:33 core2core2 syslogd: Exiting on signal 15
 Aug  4 04:09:05 core2core2 syslogd: restart