Subject: kern/12762: Latest AIC 7xxx driver causes SCSI bus lockups
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 04/26/2001 20:40:56
>Number:         12762
>Category:       kern
>Synopsis:       Latest AIC 7xxx driver causes SCSI bus lockups
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 26 11:41:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        2001-04-26
>Organization:
Matthias Scheler                                         http://core.de/~tron/
>Environment:
System: NetBSD lyssa.zhadum.de 1.5U NetBSD 1.5U (LYSSA) #2: Thu Apr 26 20:31:23 CEST 2001 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386

NetBSD 1.5U (LYSSA) #2: Thu Apr 26 20:31:23 CEST 2001
    tron@lyssa.zhadum.de:/src/sys/compile/LYSSA
cpu0: Intel Pentium III (Coppermine) (686-class), 701.63 MHz
cpu0: I-cache 16K 32b/line 4-way, D-cache 16K 32b/line 2/4-way
cpu0: L2 cache 256K 32b/line 8-way
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX,FXSR,XMM>
total memory = 511 MB
avail memory = 470 MB
using 6573 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xf06c0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: Matrox MGA G400 AGP (rev. 0x03)
wsdisplay0 at vga0: console (80x25, vt100 emulation)
pcib0 at pci0 dev 4 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 4 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
pciide0: disabling primary channel (no drives)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 4 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 9
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
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 4 function 3 not configured
pciide1 at pci0 dev 7 function 0: CMD Technology PCI0648 (rev. 0x01)
pciide1: bus-master DMA support present
pciide1: primary channel configured to native-PCI mode
pciide1: using irq 10 for native-PCI interrupt
pciide1: secondary channel configured to native-PCI mode
pciide1: disabling secondary channel (no drives)
eap0 at pci0 dev 9 function 0: Ensoniq AudioPCI (rev. 0x01)
eap0: interrupting at irq 9
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
ppb1 at pci0 dev 10 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x01)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
ahc0 at pci2 dev 4 function 0
ahc0: interrupting at irq 9
ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
ahc1 at pci2 dev 5 function 0
ahc1: interrupting at irq 9
ahc1: aic7880 Wide Channel B, SCSI Id=7, 16/255 SCBs
scsibus1 at ahc1: 16 targets, 8 luns per target
epic0 at pci0 dev 11 function 0: SMC 83c170 Fast Ethernet, rev. 8
epic0: interrupting at irq 10
epic0: SMC9432TX_2, Ethernet address 00:e0:29:6c:54:b5
ukphy0 at epic0 phy 3: Generic IEEE 802.3u media interface
ukphy0: AC101 10/100 media interface (OUI 0x0010a9, model 0x0021), rev. 11
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bktr0 at pci0 dev 13 function 0
bktr0: interrupting at irq 9
bktr0: Hauppauge Model 60114 C VM
bktr0: Detected a MSP3410D-B4 at 0x80
bktr0: Hauppauge WinCast/TV, Philips PAL I tuner, msp3400c stereo.
isa0 at pcib0
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
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
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
apm0 at mainbus0: Power Management spec V1.2 (BIOS mgmt disabled)
APM power mgmt engage (device 1): power management disabled (0x10f)
biomask ff65 netmask ff65 ttymask ffe7
scsibus0: waiting 2 seconds for devices to settle...
ahc0: target 0 using 16bit transfers
ahc0: target 0 synchronous at 20.0MHz, offset = 0x8
sd0 at scsibus0 target 0 lun 0: <IBM, DDRS-39130W, S97B> SCSI2 0/direct fixed
sd0: 8715 MB, 8387 cyl, 10 head, 212 sec, 512 bytes/sect x 17850000 sectors
ahc0: target 0 using tagged queuing
ahc0: target 1 using 16bit transfers
ahc0: target 1 synchronous at 20.0MHz, offset = 0x8
sd1 at scsibus0 target 1 lun 0: <IBM, DNES-318350W, SA30> SCSI3 0/direct fixed
sd1: 17501 MB, 11474 cyl, 10 head, 312 sec, 512 bytes/sect x 35843670 sectors
ahc0: target 1 using tagged queuing
scsibus1: waiting 2 seconds for devices to settle...
ahc1: target 2 using 8bit transfers
ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
cd0 at scsibus1 target 2 lun 0: <PLEXTOR, CD-ROM PX-20TS, 1.01> SCSI2 5/cdrom removable
ahc1: target 3 using 8bit transfers
ahc1: target 3 synchronous at 10.0MHz, offset = 0xf
cd1 at scsibus1 target 3 lun 0: <WAITEC, WT624, 7.0H> SCSI2 5/cdrom removable
ahc1: target 4 using 8bit transfers
ahc1: target 4 synchronous at 10.0MHz, offset = 0xf
st0 at scsibus1 target 4 lun 0: <SONY, SDT-7000, 0300> SCSI2 1/sequential removable
st0: drive empty
IPsec: Initialized Security Association Processing.
uhub1 at uhub0 port 1
uhub1: EIZO hub, class 9/0, rev 1.00/1.01, addr 2
uhub1: 5 ports with 5 removable, self powered
uhub1: port 1, set config at addr 3 failed
uhub1: device problem, disabling port 1
ums0 at uhub1 port 3 configuration 1 interface 0
ums0: Logitech USB-PS/2 Mouse, rev 1.00/1.10, addr 3, iclass 3/1
ums0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
umass0 at uhub1 port 4 configuration 1 interface 0
umass0: Iomega USB Zip 250, rev 1.10/1.00, addr 4
umass0: using SCSI over BBB-P
scsibus2 at umass0: 2 targets, 1 luns per target
scsibus2: waiting 2 seconds for devices to settle...
sd2 at scsibus2 target 1 lun 0: <IOMEGA, ZIP 250, 31.G> SCSI0 0/direct removable
sd2: drive offline
uhub2 at uhub0 port 2
uhub2: ALCOR AU9254 HUB, class 9/0, rev 1.10/1.00, addr 5
uhub2: 4 ports with 4 removable, self powered
ugen0 at uhub1 port 1
ugen0: EIZO monitor, rev 1.00/1.01, addr 6
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
IP Filter: loaded into slot 29
epic0: lost carrier
epic0: lost carrier
epic0: lost carrier
epic0: lost carrier
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)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0

>Description:
After upgrading to the latest AIC 7xxx driver my system died two times due
to SCSI bus lockups during medium I/O load. Half a minute after the bus
locked up these message appear on the console:

sd1(ahc0:0:1:0): invalid return code from adapter: 3
sd1(ahc0:0:1:0): invalid return code from adapter: 3
sd1(ahc0:0:1:0): invalid return code from adapter: 3
sd1(ahc0:0:1:0): invalid return code from adapter: 3
sd1(ahc0:0:1:0): invalid return code from adapter: 3
[...]
sd1(ahc0:0:1:0): invalid return code from adapter: 3
sd1(ahc0:0:1:0): parity error detected in Data-in phase. SEQADDR(0x155), SCSIRATE(0x88)

>How-To-Repeat:
Try to use the latest AIC 7xxx driver with an Adaptec 3940UW with a fast
U160 harddisk.

>Fix:
Backout revision 1.71 of "syssrc/sys/dev/ic/aic7xxx.c".

>Release-Note:
>Audit-Trail:
>Unformatted: