Subject: PCI plug-in card interrupts in a CS20?
To: None <port-alpha@NetBSD.org>
From: Havard Eidnes <he@uninett.no>
List: port-alpha
Date: 11/08/2004 22:21:02
Hi,

while trying to get some more FC disks attached to an API CS20, I
installed a Qlogic ISP 2100 controller in one of the two 64-bit
PCI slots.

Initially I tried it in the bottom slot, and I could not get the
machine through the autoconfig phase; after probing the
controller as

isp0 at pci0 dev 5 function 0: QLogic FC-AL HBA
isp0: interrupting at dec 6600 irq 24
scsibus1 at isp0: 256 targets, 8 luns per target

it started spewing spurious interrupt errors later while probing
the drives:

scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
stray 6600 irq 24
stray 6600 irq 24
stray 6600 irq 24
stray 6600 irq 24
sd0 at scsibus0 target 0 lun 0: <HITACHI, DX32CJ-36MC, A2T2> disk fixed=

sd0: 35256 MB, 15314 cyl, 12 head, 392 sec, 512 bytes/sect x 72205440 s=
ectors
sd0: sync (25.00ns offset 31), 16-bit (80.000MB/s) transfers, tagged qu=
eueing
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <SAMSUNG CD-ROM SN-124, , q008> cdrom removab=
le
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)=

cd0(aceride0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using=
 DMA data transfers)
sd1 at scsibus1 target 33 lun 0: <SEAGATE, ST336704FC, FA55> disk fixed=

sd1: 34732 MB, 14100 cyl, 12 head, 420 sec, 512 bytes/sect x 71132959 s=
ectors
...
sd6 at scsibus1 target 39 lun 0: <SEAGATE, ST39102FC, 0007> disk fixed
sd6: 8683 MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sect x 17783240 sec=
tors
stray 6600 irq 24; stopped logging

and at this point it hung while it still has 5 more drives to probe.

Moving the card to the upper PCI slot made it go further, but it
still does not work reliably.  With the card in that position, I
can create the raidframe raid, but it will again start spewing
the spurious interrupt messages at the moment I try to do newfs
of a partition covering most of the raid.

Why does these messages occur?  Isn't the controller / driver
supposed to handle these interrupts?

The built-in fxp1 chip which sits on the same bus works fine.

Hints for further debugging would be most appreciated.

I've also tried to get an LSI Logic FC909 controller to work in
this machine, but it encountered other possibly unrelated
problems -- after a short while the driver prints

mpt0: Unknown async event: 0x2
sd2(mpt0:0:1:0): command timeout
mpt0: timeout on request index =3D 0x3fe, seq =3D 0x0000166d
mpt0: Device not running

and thereafter appears to be completely dead.

Full dmesg for the latest boot with the Qlogic controller
installed follows attached below.  The "stray irq"s go together
with my attempted newfs.

Regards,

- H=E5vard

------------------------------

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 2.0_RC4 (CS20.MP) #35: Mon Nov  8 18:33:18 CET 2004
        he@kveite.urc.uninett.no:/usr/obj/sys/arch/alpha/compile/CS20.M=
P
API CS20D 833 MHz, s/n =

8192 byte page size, 2 processors.
total memory =3D 1024 MB
(2776 KB reserved for PROM, 1021 MB used by NetBSD)
avail memory =3D 999 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264B-3
cpu0: Architecture extensions: 307<PAT,MVI,CIX,FIX,BWX>
cpu1 at mainbus0: ID 1, 21264B-3
cpu1: Architecture extensions: 307<PAT,MVI,CIX,FIX,BWX>
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 4 Dchips, 1 memory bus of 32 bytes
tsc0: arrays present: 1024MB, 0MB, 0MB, 0MB, Dchip 0 rev 1
tsp0 at tsc0
pci0 at tsp0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
esiop0 at pci0 dev 3 function 0: Symbios Logic 53c1010-66 (ultra3-wide =
scsi)
esiop0: using on-board RAM
esiop0: interrupting at dec 6600 irq 16
scsibus0 at esiop0: 16 targets, 8 luns per target
fxp0 at pci0 dev 4 function 0: i82550 Ethernet, rev 12
fxp0: interrupting at dec 6600 irq 20
fxp0: Ethernet address 00:02:56:00:0a:55
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sio0 at pci0 dev 7 function 0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xc=
3)
aceride0 at pci0 dev 16 function 0
aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc2)
aceride0: bus-master DMA support present
aceride0: primary channel configured to compatibility mode
aceride0: primary channel interrupting at isa irq 14
atabus0 at aceride0 channel 0
aceride0: secondary channel configured to compatibility mode
aceride0: secondary channel interrupting at isa irq 15
atabus1 at aceride0 channel 1
Acer Labs M7101 Power Management Controller (miscellaneous prehistoric)=
 at pci0 dev 17 function 0 not configured
isa0 at sio0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
tsp1 at tsc0
pci1 at tsp1 bus 0
pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
fxp1 at pci1 dev 3 function 0: i82559 Ethernet, rev 8
fxp1: interrupting at dec 6600 irq 32
fxp1: Ethernet address 00:02:56:00:0a:56
inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 4
inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isp0 at pci1 dev 4 function 0: QLogic FC-AL HBA
isp0: interrupting at dec 6600 irq 36
scsibus1 at isp0: 256 targets, 8 luns per target
Kernelized RAIDframe activated
IPsec: Initialized Security Association Processing.
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <HITACHI, DX32CJ-36MC, A2T2> disk fixed=

sd0: 35256 MB, 15314 cyl, 12 head, 392 sec, 512 bytes/sect x 72205440 s=
ectors
sd0: sync (25.00ns offset 31), 16-bit (80.000MB/s) transfers, tagged qu=
eueing
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <SAMSUNG CD-ROM SN-124, , q008> cdrom removab=
le
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)=

cd0(aceride0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using=
 DMA data transfers)
sd1 at scsibus1 target 33 lun 0: <SEAGATE, ST336704FC, FA55> disk fixed=

sd1: 34732 MB, 14100 cyl, 12 head, 420 sec, 512 bytes/sect x 71132959 s=
ectors
sd2 at scsibus1 target 34 lun 0: <SEAGATE, ST39173F CLAR09, 3528> disk =
fixed
sd2: 8687 MB, 7501 cyl, 10 head, 237 sec, 512 bytes/sect x 17791933 sec=
tors
sd3 at scsibus1 target 35 lun 0: <SEAGATE, ST39173F CLAR09, 350C> disk =
fixed
sd3: 8687 MB, 7501 cyl, 10 head, 237 sec, 512 bytes/sect x 17791933 sec=
tors
sd4 at scsibus1 target 36 lun 0: <SEAGATE, ST39102FC, 0007> disk fixed
sd4: 8683 MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sect x 17783240 sec=
tors
sd5 at scsibus1 target 37 lun 0: <SEAGATE, ST39102FC, 0007> disk fixed
sd5: 8683 MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sect x 17783240 sec=
tors
sd6 at scsibus1 target 39 lun 0: <SEAGATE, ST39102FC, 0007> disk fixed
sd6: 8683 MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sect x 17783240 sec=
tors
sd7 at scsibus1 target 41 lun 0: <SEAGATE, ST39102FC, 0007> disk fixed
sd7: 8683 MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sect x 17783240 sec=
tors
sd8 at scsibus1 target 43 lun 0: <SEAGATE, ST39102FC, 0007> disk fixed
sd8: 8683 MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sect x 17783240 sec=
tors
sd9 at scsibus1 target 44 lun 0: <SEAGATE, ST39102FC, 0007> disk fixed
sd9: 8683 MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sect x 17783240 sec=
tors
sd10 at scsibus1 target 45 lun 0: <SEAGATE, ST39102FC, 0007> disk fixed=

sd10: 8683 MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sect x 17783240 se=
ctors
sd11 at scsibus1 target 46 lun 0: <SEAGATE, ST39102FC, 0007> disk fixed=

sd11: 8683 MB, 6962 cyl, 12 head, 212 sec, 512 bytes/sect x 17783240 se=
ctors
sd1: no disk label
raid0: RAID Level 0
raid0: Components: /dev/sd2a /dev/sd3a /dev/sd4a /dev/sd5a /dev/sd6a /d=
ev/sd7a /dev/sd8a /dev/sd9a /dev/sd10a /dev/sd11a
raid0: Total Sectors: 177827720 (86829 MB)
root on sd0a dumps on sd0b
root file system type: ffs
stray 6600 irq 36
stray 6600 irq 36
stray 6600 irq 36
stray 6600 irq 36
stray 6600 irq 36; stopped logging