Subject: zaptel lkm skipping pci bus
To: None <tech-kern@netbsd.org>
From: Stephen Borrill <netbsd@precedence.co.uk>
List: tech-kern
Date: 11/25/2005 10:16:55
I've been trying to get the comms/zaptel-netbsd lkm working on a fresh 
installation of NetBSD 2.1, but it's not finding the pci device. I've
altered wcfxo_match() so that it prints PCI_VENDOR(pa->pa_id) and 
PCI_PRODUCT(pa->pa_id) from all calls. From this I can see that it's
being passed all the devices from pci0 and pci1, but not pci3 (pci2 has no 
devices). Why is pci3 being skipped?

dmesg below (note the list from my debugging at the bottom):

NetBSD 2.1 (GENERIC) #0: Mon Oct 24 22:35:45 UTC 2005
 	jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-1-RELEASE/i386/200510241747Z-obj/home/builds/ab/netbsd-2-1-RELEASE/src/sys/arch/i386/compile/GENERIC
total memory = 1023 MB
avail memory = 993 MB
BIOS32 rev. 0 found at 0xfd5b6
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel (686-class), 3000.65 MHz, id 0xf41
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: I-cache 12K uOp cache 8-way
cpu0: L2 cache 1 MB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: 32 page colors
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 82875P Host (rev. 0x02)
ppb0 at pci0 dev 3 function 0: Intel 82875P PCI-CSA Bridge (rev. 0x02)
pci1 at ppb0 bus 2
pci1: i/o space, memory space enabled
wm0 at pci1 dev 1 function 0: Intel i82547GI 1000BASE-T Ethernet, rev. 0
wm0: interrupting at irq 5
wm0: Communication Streaming Architecture
wm0: 65536 word (16 address bits) SPI EEPROM
wm0: Ethernet address 00:11:25:ac:11:33
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb1 at pci0 dev 28 function 0: Intel product 0x25ae (rev. 0x02)
pci2 at ppb1 bus 3
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
uhci0 at pci0 dev 29 function 0: Intel product 0x25a9 (rev. 0x02)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: Intel product 0x25aa (rev. 0x02)
uhci1: interrupting at irq 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
Intel product 0x25ab (miscellaneous system, revision 0x02) at pci0 dev 29 function 4 not configured
Intel product 0x25ac (interrupt system, interface 0x20, revision 0x02) at pci0 dev 29 function 5 not configured
ehci0 at pci0 dev 29 function 7: Intel product 0x25ad (rev. 0x02)
ehci0: interrupting at irq 11
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 4 ports with 4 removable, self powered
ppb2 at pci0 dev 30 function 0: Intel 82801BA Hub-to-PCI Bridge (rev. 0x0a)
pci3 at ppb2 bus 4
pci3: i/o space, memory space enabled
vga1 at pci3 dev 2 function 0: ATI Technologies Radeon 7000/VE (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
eso0 at pci3 dev 6 function 0: ESS Solo-1 PCI AudioDrive ES1946 Revision E
eso0: interrupting at irq 5
eso0: mapping Audio 1 DMA using VC I/O space at 0x3840
audio0 at eso0: full duplex, mmap, independent
opl0 at eso0: model OPL3
midi0 at opl0: ESO Yamaha OPL3
mpu0 at eso0
midi1 at mpu0: ESO MPU-401 MIDI UART
joy0 at eso0
joy0: joystick not connected
unknown vendor 0xe159 product 0x0001 (miscellaneous communications) at pci3 dev 7 function 0 not configured
Conexant Systems product 0x8800 (video multimedia, revision 0x05) at pci3 dev 8 function 0 not configured
Conexant Systems product 0x8802 (miscellaneous multimedia, revision 0x05) at pci3 dev 8 function 2 not configured
Conexant Systems product 0x8804 (miscellaneous multimedia, revision 0x05) at pci3 dev 8 function 4 not configured
pcib0 at pci0 dev 31 function 0
pcib0: Intel 6300ESB LPC Interface Bridge (rev. 0x02)
piixide0 at pci0 dev 31 function 2
piixide0: Intel 6300ESB Serial ATA Controller (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
Intel product 0x25a4 (SMBus serial bus, revision 0x02) at pci0 dev 31 function 3 not configured
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi2 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
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <PIONEER DVD-RW  DVR-110D, EIDC337852WL, 1.17> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
cd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
wd0 at atabus1 drive 0: <ST3120827AS>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA data transfers)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
Zapata Telephony Interface Registered on major 196
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
vendor=8086 product=2578 subvendor=1014
vendor=8086 product=257b subvendor=0
vendor=8086 product=25ae subvendor=0
vendor=8086 product=25a9 subvendor=1014
vendor=8086 product=25aa subvendor=1014
vendor=8086 product=25ab subvendor=1014
vendor=8086 product=25ac subvendor=1014
vendor=8086 product=25ad subvendor=1014
vendor=8086 product=244e subvendor=0
vendor=8086 product=25a1 subvendor=0
vendor=8086 product=25a3 subvendor=1014
vendor=8086 product=25a4 subvendor=1014
vendor=8086 product=1075 subvendor=1014

-- 
Stephen