Subject: Re: Problem with fwohci driver in -current?
To: Brian Buhrow <buhrow@lothlorien.nfbcal.org>
From: jmc <jmc@ksu.edu>
List: current-users
Date: 07/30/2003 10:13:52
If you want to see if the fwohci driver is getting interrupts (and then
ignoring them), set options FWOHCI_DEBUG and in fwohci.c turn fwohci_debug to
3.

Then if you can capture it, send me the dmesg output (though this otherwise
sounds like a PCI interrupt routing issue).

James

>
>	Hello folks.  I've been trying to use the ieee1394 code in -current
>for about six weeks, since 1.6T, on an I386 system.  I can compile the
>entire source tree, and run a generic kernel, but if I compile a kernel
>with the fwohci driver in it, the kernel hangs on boot.  As it turns out,
>the fwohci card and the USB controller share an interrupt and ddb shows
>that when interrupts are enabled after autoconfiguration, the system is
>hanging in a loop in which the interrupt drivers are called for these two
>drivers over and over again.  It's as if a spurious interrupt is generated,
>which neither driver recognizes, so they each return 0, which means keep
>looking for the correct interrupt handler, but there isn't one, so try
>again.
>	I'm pretty sure this worked fine on 1.6P, and I haven't seen any other
>complaints like this on current-users or port-i386.
>	This is a board with one of those via Technologies chip sets, and the
>USB controller is part of that chip set.  The fwohci card is a Lucent card.
>	Anyone have any ideas on how to troubleshoot this further?  Dmesg for
>GENERIC is posted below.
>-thanks
>-Brian
>
>NetBSD 1.6U (GENERIC) #0: Tue Jul 29 20:17:55 PDT 2003
>	buhrow@shire.nfbcal.org:/usr/src/sys/arch/i386/compile/GENERIC
>total memory = 255 MB
>avail memory = 229 MB
>using 3296 buffers containing 13184 KB of memory
>BIOS32 rev. 0 found at 0xfb070
>mainbus0 (root)
>cpu0 at mainbus0: (uniprocessor)
>cpu0: Intel Celeron (686-class), 568.01 MHz, id 0x683
>cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
>cpu0: features 383f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
>cpu0: features 383f9ff<FXSR,SSE>
>cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
>cpu0: L2 cache 128 KB 32b/line 4-way
>cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
>cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
>cpu0: 8 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: VIA Technologies VT82C691 (Apollo Pro) Host-PCI (rev. 0x44)
>agp0 at pchb0: aperture at 0xe0000000, size 0x10000000
>ppb0 at pci0 dev 1 function 0: VIA Technologies VT82C598 (Apollo MVP3) CPU-AGP Bridge (rev. 0x00)
>pci1 at ppb0 bus 1
>pci1: i/o space, memory space enabled
>pcib0 at pci0 dev 7 function 0
>pcib0: VIA Technologies VT82C596A (Apollo Pro) PCI-ISA Bridge (rev. 0x12)
>pciide0 at pci0 dev 7 function 1: VIA Technologies VT82C596A (Apollo Pro) ATA66 controller
>pciide0: bus-master DMA support present
>pciide0: primary channel configured to compatibility mode
>wd0 at pciide0 channel 0 drive 0: <FUJITSU MPF3102AT>
>wd0: drive supports 16-sector PIO transfers, LBA addressing
>wd0: 9773 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 20015856 sectors
>wd0: 32-bit data port
>wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
>pciide0: primary channel interrupting at irq 14
>wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
>pciide0: secondary channel configured to compatibility mode
>atapibus0 at pciide0 channel 1: 2 targets
>cd0 at atapibus0 drive 0: <CD-ROM 50X L, , 15> cdrom removable
>cd0: 32-bit data port
>cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
>pciide0: secondary channel interrupting at irq 15
>cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
>uhci0 at pci0 dev 7 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x08)
>uhci0: interrupting at irq 11
>usb0 at uhci0: USB revision 1.0
>uhub0 at usb0
>uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>uhub0: 2 ports with 2 removable, self powered
>pchb1 at pci0 dev 7 function 3
>pchb1: VIA Technologies product 0x3050 (rev. 0x20)
>rtk0 at pci0 dev 10 function 0: RealTek 8139 10/100BaseTX
>rtk0: interrupting at irq 10
>rtk0: Ethernet address 00:50:ba:8f:f4:47
>ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
>ukphy0: OUI 0x000000, model 0x0000, rev. 0
>ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>emuxki0 at pci0 dev 12 function 0: Creative Labs SBLive! EMU 10000 (audio multimedia, revision 0x08)
>emuxki0: interrupting at irq 12
>emuxki0: SigmaTel STAC9721/23 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
>audio0 at emuxki0: full duplex, mmap, independent
>joy0 at pci0 dev 12 function 1: Creative Labs PCI Gameport Joystick (rev 0x08)
>joy0: joystick not connected
>ahc1 at pci0 dev 14 function 0
>ahc1: interrupting at irq 5
>ahc1: aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
>scsibus0 at ahc1: 16 targets, 8 luns per target
>Lucent Technologies FW322/323 IEEE 1394 OHCI Controller (Firewire serial bus, interface 0x10, revision 0x04) at pci0 dev 16 function 0 not configured
>bktr0 at pci0 dev 18 function 0
>bktr0: interrupting at irq 12
>bktr0: STB TV/PCI, Temic NTSC tuner.
>Brooktree Bt878 Video Capture (Audio Section) (miscellaneous multimedia, revision 0x11) at pci0 dev 18 function 1 not configured
>isa0 at pcib0
>com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
>com0: console
>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 mux 1
>lpt2 at isa0 port 0x3bc-0x3bf irq : polled
>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
>fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
>isapnp0: no ISA Plug 'n Play devices found
>Kernelized RAIDframe activated
>scsibus0: waiting 2 seconds for devices to settle...
>cd1 at scsibus0 target 4 lun 0: <NRC, MBR-7, 110> cdrom removable
>cd2 at scsibus0 target 4 lun 1: <NRC, MBR-7, 110> cdrom removable
>cd3 at scsibus0 target 4 lun 2: <NRC, MBR-7, 110> cdrom removable
>cd4 at scsibus0 target 4 lun 3: <NRC, MBR-7, 110> cdrom removable
>cd5 at scsibus0 target 4 lun 4: <NRC, MBR-7, 110> cdrom removable
>cd6 at scsibus0 target 4 lun 5: <NRC, MBR-7, 110> cdrom removable
>cd7 at scsibus0 target 4 lun 6: <NRC, MBR-7, 110> cdrom removable
>cd1: async, 8-bit transfers
>cd2: async, 8-bit transfers
>cd3: async, 8-bit transfers
>cd4: async, 8-bit transfers
>cd5: async, 8-bit transfers
>cd6: async, 8-bit transfers
>cd7: async, 8-bit transfers
>boot device: wd0
>root on wd0a dumps on wd0b
>root file system type: ffs
>