Subject: Re: isp driver issues
To: NetBSD-current Discussion List <current-users@NetBSD.ORG>
From: Thomas T. Thai <tom@minnesota.com>
List: current-users
Date: 11/10/2004 17:24:23
Greg A. Woods wrote:

>(note IRQ 16 is the one claimed by isp0 in the working config)
>
>so it may be you've got some kind of interrupt conflict in your system too.
>
>Or maybe there's something more fundamentally wrong with the way the ISP
>driver claims its interrupts and it's not actually a problem on the Alpha!
>
Adaptect SCSISelect Util showed:

    Adaptec AIC-7899 Channel A IRQ 11
    Adaptec AIC-7899 Channel B IRQ 10

Qlogic FastUtil! showed the 2200 fibre card using IRQ 10 as well.

List of IRQ usage on my system grep from dmesg:

isp0: interrupting at ioapic1 pin 7 (irq 10)
amr0: interrupting at ioapic1 pin 9 (irq 11)
isp1: interrupting at ioapic1 pin 5 (irq 5)
ahc1: interrupting at ioapic1 pin 1 (irq 11)
ahc2: interrupting at ioapic1 pin 2 (irq 10)
fxp0: interrupting at ioapic1 pin 10 (irq 5)
rccide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
rccide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
ohci0: interrupting at ioapic1 pin 15 (irq 11)
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: using irq 1 for kbd slot
pckbc0: using irq 12 for aux slot
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2

I know on Windows, sometimes cards can share IRQ's as long as they have 
different "resource I/O range."

Somtimes during kernel bootup, it would get stuck at the isp0 with 
similar errors as for isp0 and end with a "probe(...)" and it hangs.

dmesg results:
---

NetBSD 2.99.10 (GENERIC.MP) #0: Mon Oct 25 23:34:32 PDT 2004
	riz@lychee.tastylime.net:/home/riz/buildobj-current/usr/src-current/sys/arch/i386/compile/GENERIC.MP
total memory = 2047 MB
avail memory = 1994 MB
BIOS32 rev. 0 found at 0xffe90
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (DELL     POWEREDGE A2)
cpu0 at mainbus0: apid 2 (boot processor)
cpu0: Intel Pentium III Xeon (686-class), 699.33 MHz, id 0x6a1
cpu0: features 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 383fbff<FXSR,SSE>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: L2 cache 2 MB 32B/line 8-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: calibrating local timer
cpu0: apic clock running at 99 MHz
cpu0: 64 page colors
cpu1 at mainbus0: apid 0 (application processor)
cpu1: starting
cpu1: Intel Pentium III Xeon (686-class), 699.29 MHz, id 0x6a1
cpu1: features 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu1: features 383fbff<FXSR,SSE>
cpu1: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu1: L2 cache 2 MB 32B/line 8-way
cpu1: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu1: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu2 at mainbus0: apid 1 (application processor)
cpu2: starting
cpu2: Intel Pentium III Xeon (686-class), 699.29 MHz, id 0x6a1
cpu2: features 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu2: features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu2: features 383fbff<FXSR,SSE>
cpu2: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu2: L2 cache 2 MB 32B/line 8-way
cpu2: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu2: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type PCI   
mpbios: bus 2 is type PCI   
mpbios: bus 3 is type PCI   
mpbios: bus 4 is type PCI   
mpbios: bus 5 is type PCI   
mpbios: bus 6 is type PCI   
mpbios: bus 7 is type PCI   
mpbios: bus 8 is type PCI   
mpbios: bus 9 is type PCI   
mpbios: bus 10 is type PCI   
mpbios: bus 11 is type PCI   
mpbios: bus 12 is type PCI   
mpbios: bus 13 is type PCI   
mpbios: bus 14 is type PCI   
mpbios: bus 15 is type PCI   
mpbios: bus 16 is type PCI   
mpbios: bus 17 is type PCI   
mpbios: bus 18 is type PCI   
mpbios: bus 19 is type ISA   
ioapic0 at mainbus0 apid 3 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 16 pins
ioapic0: misconfigured as apic 0
ioapic0: remapped to apic 3
ioapic1 at mainbus0 apid 4 (I/O APIC)
ioapic1: pa 0xfec01000, version 11, 16 pins
ioapic1: misconfigured as apic 0
ioapic1: remapped to apic 4
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: ServerWorks CNB20-HE PCI bridge (rev. 0x21)
pchb1 at pci0 dev 0 function 1
pchb1: ServerWorks CNB20-HE PCI bridge (rev. 0x01)
pchb2 at pci0 dev 0 function 2
pchb2: ServerWorks CNB30-LE PCI bridge (rev. 0x00)
pci1 at pchb2 bus 3
pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
isp0 at pci1 dev 9 function 0: QLogic FC-AL HBA
isp0: interrupting at ioapic1 pin 7 (irq 10)
scsibus0 at isp0: 256 targets, 8 luns per target
ppb0 at pci1 dev 11 function 0: Digital Equipment DC21154 PCI-PCI Bridge (rev. 0x05)
pci2 at ppb0 bus 4
pci2: i/o space, memory space enabled
ppb1 at pci2 dev 0 function 0: Digital Equipment DC21154 PCI-PCI Bridge (rev. 0x05)
pci3 at ppb1 bus 5
pci3: i/o space, memory space enabled
amr0 at pci3 dev 0 function 0: AMI RAID <PERC 3/DC>
amr0: interrupting at ioapic1 pin 9 (irq 11)
amr0: firmware 161O, BIOS 3.17, 64MB RAM
ld0 at amr0 unit 0: RAID 5, optimal
ld0: 69876 MB, 8907 cyl, 255 head, 63 sec, 512 bytes/sect x 143106048 sectors
isp1 at pci2 dev 1 function 0: QLogic Dual Channel Ultra-3 Wide SCSI HBA
isp1: interrupting at ioapic1 pin 5 (irq 5)
isp1: Polled Mailbox Command (0x8) Timeout
isp1: interrupt (ISR=4 SEMA=0) when not ready
isp1: interrupt (ISR=4 SEMA=0) when not ready
isp1: interrupt (ISR=4 SEMA=0) when not ready
isp1: interrupt (ISR=4 SEMA=0) when not ready
isp1: interrupt (ISR=4 SEMA=0) when not ready
isp1: interrupt (ISR=4 SEMA=0) when not ready
isp1: interrupt (ISR=4 SEMA=0) when not ready
isp1: Polled Mailbox Command (0x36) Timeout
pchb3 at pci0 dev 0 function 3
pchb3: ServerWorks CNB30-LE PCI bridge (rev. 0x00)
pci4 at pchb3 bus 14
pci4: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
vga1 at pci0 dev 4 function 0: ATI Technologies 3D Rage IIC (rev. 0x7a)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ahc1 at pci0 dev 5 function 0: Adaptec aic7899 Ultra160 SCSI adapter
ahc1: interrupting at ioapic1 pin 1 (irq 11)
ahc1: aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
scsibus1 at ahc1: 16 targets, 8 luns per target
ahc2 at pci0 dev 5 function 1: Adaptec aic7899 Ultra160 SCSI adapter
ahc2: interrupting at ioapic1 pin 2 (irq 10)
ahc2: aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
scsibus2 at ahc2: 16 targets, 8 luns per target
fxp0 at pci0 dev 8 function 0: i82559 Ethernet, rev 8
fxp0: interrupting at ioapic1 pin 10 (irq 5)
fxp0: Enabling receiver lock-up workaround
fxp0: Ethernet address 00:b0:d0:68:62:fb
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib0 at pci0 dev 15 function 0
pcib0: ServerWorks OSB4 southbridge (rev. 0x50)
rccide0 at pci0 dev 15 function 1
rccide0: ServerWorks OSB4 IDE Controller (rev. 0x00)
rccide0: bus-master DMA support present
rccide0: primary channel configured to compatibility mode
rccide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at rccide0 channel 0
rccide0: secondary channel configured to compatibility mode
rccide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at rccide0 channel 1
ohci0 at pci0 dev 15 function 2: ServerWorks OSB4/CSB5 USB Host Controller (rev. 0x04)
ohci0: interrupting at ioapic1 pin 15 (irq 11)
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
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
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
ioapic0: enabling
ioapic1: enabling
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <TEAC CD-ROM CD-224E, , 3.7C> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(rccide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
boot device: ld0
root on ld0a dumps on ld0b
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
root file system type: ffs
cpu1: CPU 0 running
isp0: Mbox Command Async (0x4000) with no waiters
cpu2: CPU 1 running
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)
---

Thomas