Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 1998 13:35:37 -0800
From:      Matthew Reimer <mreimer@vpop.net>
To:        freebsd-scsi@FreeBSD.ORG
Subject:   Problems with disconnects and 2940UW (Justin?)
Message-ID:  <34EB5428.4BE6F8F0@vpop.net>

next in thread | raw e-mail | index | archive | help
I've been having a lot of problems with my 2.2-STABLE system hanging due
to SCSI errors. The problem disappears when I turn off "Enable
Disconnection" in the Adaptec settings. Might there be a bug in the ahc
driver that is manifested when SCSI disconnects/reconnects occur?
Someone else I've corresponded with had the same problem that
disappeared when he turned them off.

The machine is a PII 233MHz, Adaptec 2940UW, one IBM DCAS-34330W 4.3G UW
SCSI disk, and 128M RAM. It is running 2.2-STABLE newer than 1 February
1998.

The problem was easily reproducible by running 'make world', or by
running 'make world' and 'make XFree86' at the same time. The system
would hang with errors on the console like these:

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

sd0(ahc0:0:0): SCB 0x1 - timed out in dataout phase, SCSISIGI == 0xe6
SEQADDR = 0x130 SCSISEQ = 0x12 SSTAT0 = 0x2 SSTAT1 = 0x13
sd0(ahc0:0:0): abort message in message buffer
sd0(ahc0:0:0): SCB 0x0 timed out while recovery in progress
sd0(ahc0:0:0): SCB 0x1 - timed out in dataout phase, SCSISIGI == 0xf6
SEQADDR = 0x130 SCSISEQ = 0x12 SSTAT0 = 0x2 SSTAT1 = 0x13
sd0(ahc0:0:0): no longer in timeout
ahc0: Issued Channel A Bus Reset. 2 SCBs aborted
sd0(ahc0:0:0): SCB 0x1 - timed out while idle, LASTPHASE == 0x1,
SCSISIGI = 0x0
SEQADDR = 0x166 SCSISEQ = 0x12 SSTAT0 = 0x2 SSTAT1 = 0x0
sd0(ahc0:0:0): Queueing an Abort SCB

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

dmesg output:
-------------

FreeBSD 2.2.5-STABLE #0: Fri Feb 13 15:57:52 PST 1998
    root@warp10.smartlink.net:/usr/src/sys/compile/FARAMIR
CPU: Pentium Pro (232.67-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x633  Stepping=3
 
Features=0x80f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,MMX
>
real memory  = 134217728 (131072K bytes)
avail memory = 127397888 (124412K bytes)
Probing for devices on PCI bus 0:
chip0 <Intel 82440FX (Natoma) PCI and memory controller> rev 2 on pci0:0
chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:7:0
chip2 <Intel 82371SB IDE interface> rev 0 on pci0:7:1
ahc0 <Adaptec 2940 Ultra SCSI host adapter> rev 1 int a irq 10 on
pci0:11
ahc0: aic7880 Wide Channel, SCSI Id=7, 16/255 SCBs
ahc0: target 0 Tagged Queuing Device
(ahc0:0:0): "IBM DCAS-34330W S65A" type 0 fixed SCSI 2
sd0(ahc0:0:0): Direct-Access 4134MB (8467200 512 byte sectors)
vga0 <VGA-compatible display device> rev 211 int a irq 11 on pci0:17
fxp0 <Intel EtherExpress Pro 10/100B Ethernet> rev 2 int a irq 9 on
pci0:19
fxp0: Ethernet address 00:a0:c9:8b:c5:d8
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 not found at 0x300
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
lpt1 not found at 0xffffffff
mse0 not found at 0x23c
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
npx0 flags 0x1 on motherboard
npx0: INT 16 interface

--------

The termination is correct, double-, triple- and quadruple-checked, and
even forced in the Adaptec settings.

I tried three different cables, always hooking the drive to the last
connector on the cable, if there were more than one.

I repeatedly and carefully checked the jumpers on the drive and
motherboard.

I eventually turned off every speed-up:

	Initiate Sync Negotiation = no
	Initiate Wide Negotiation = no
	Maximum Synce Transfer Rate = 5MB/s
	no AHC_TAGENABLE
	no AHC_SCBPAGING_ENABLE
	no AHC_ALLOW_MEMIO

Even this would fail. But when I set "Enable Disconnection" = no, I can
turn on every one of these speed-ups, and no amount of effort can make
it crash (simultaneously running make world, make XFree86, and 'find
-exec grep' the whole filesystem), even at full Ultra speed with all the
kernel options on.

Is this a problem with the ahc driver, or something else?

Thanks in advance for any answers.

Matt

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34EB5428.4BE6F8F0>