Still problems with SCSI scanning...

Tom Wirschell T.Wirschell at fin.pinkroccade.nl
Mon Nov 26 12:36:44 PST 2001


I've reported scanning problems in here before, and was basically told
to check the cabling/termination in my system.

But I'm getting ahead of myself.
I've got an Adaptec 2930U2W SCSI adapter, with 3 internal SCSI disks, 1
internal CDROM, 1 internal CDWriter and 1 external scanner.

The problem I have is that while scanning when running a stock Linux
2.4.14 kernel, every so often the scanner just stops in mid-scan, for no
apparent reason. With it, the entire SCSI subsystem goes into full stop,
and my machine hangs. The only recourse it a reboot.

When using kernel 2.2.19 the scanner would also stop, wait about a
minute, the SCSI bus receives a reset and from that point on I get
messages about "unexpected busfree" in the logs (each time such a
message pops up, the scanner stops a few seconds, then continues) and
eventually the scanner will stop and if I'm lucky and manage to force a
SCSI reset (starting gtoaster usually does the trick) we go back to the
"unexpected busfree" messages. If I'm unlucky, it locks up solid.

Here's a link to the previous message I posted about this problem:
http://www.luga.at/mailing-lists/aic7xxx/msg10704.html

I now have SCSI logging facility compiled into the kernel. I've also
setup a second machine to play loghost for this machine to make sure the
logs are saved when the fertiliser nears the propellor.

The last time it took a plunge, the loghost received this message:
---
messages:Nov 26 19:33:35 lev8 kernel: (scsi0:A:0:0): parity error
detected in Message-in phase. SEQADDR(0x1a6) SCSIRATE(0x95)
---

Since my last posting I've replaced just about every SCSI cable in the
system, and added active terminators to the ends of all the cables.
Hell, I even replaced the scanner (for different reasons of course :D).

Schematically, this is what my setup looks like:

Scanner-- 1.8m HD ---+
                     |        External
==========================================
                   +-+-+      Internal
                   |   |
                +--| A |--+
                |  |   |  |
                |  +---+  75 cm 50-pin flat cable
MAG LVD-5T 68PIN 1.25m    |
                |         +- CDROM
     IBM HD(8)--+         |
Quantum Atlas V-+         +- CD Writer
     IBM HD(9)--+         |
                |         AT
               AT

AT=Active Terminator.
A=Adaptec 2930U2W

On the scanner-side, it's impossible to add a terminator because the
scanner doesn't carry a plug for connecting beyond it. With my previous
scanner this was possible and I put an active terminator after it
aswell, all to no avail.
Now this 1.8m external cable is one *THICK* mutha. A 90cm cable was also
available, but using such a smaller cable is impractible for my specific
setup. Both internal cables have recently been replaced aswell.
This is one *SERIOUSLY* weird problem I've got here.

In his last message to me Justin told me he needed more logging output
to see why the driver didn't recover. I'll turn on the logging facility
and, for a change, hope it'll choke. If there's anything in the above
that makes the knowledgable people on this list go 'But ofcourse!',
please lemme know.

While I'm at it, I know for a fact that the Atlas V is 80 mb/s. Why is
it reported as 40mb/s in dmesg? Normal behaviour, or signs of other
problems? dmesg and other stuff included below.


Sincerely,


Tom Wirschell
-- 
"...very few phenomena can pull someone out of Deep Hack Mode, with two
noted exceptions: being struck by lightning, or worse, your *computer*
being struck by lightning."

# cat /proc/scsi/scsi
Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: QUANTUM  Model: ATLAS_V_18_WLS   Rev: 0200
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 02 Lun: 00
  Vendor: PIONEER  Model: DVD-ROM DVD-304  Rev: 1.03
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 04 Lun: 00
  Vendor: PLEXTOR  Model: CD-R   PX-R820T  Rev: 1.07
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 05 Lun: 00
  Vendor: HP       Model: C7670A           Rev: 3945
  Type:   Processor                        ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 08 Lun: 00
  Vendor: IBM      Model: DDRS-39130W      Rev: S97B
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 09 Lun: 00
  Vendor: IBM      Model: DDRS-39130W      Rev: S97B
  Type:   Direct-Access                    ANSI SCSI revision: 02

# cat /proc/scsi/aic7xxx/0
Adaptec AIC7xxx driver version: 6.2.4
aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs
Channel A Target 0 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
        Goal: 40.000MB/s transfers (20.000MHz, offset 63, 16bit)
        Curr: 40.000MB/s transfers (20.000MHz, offset 63, 16bit)
        Channel A Target 0 Lun 0 Settings
                Commands Queued 26095
                Commands Active 0
                Command Openings 64
                Max Tagged Openings 253
                Device Queue Frozen Count 0
Channel A Target 1 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
Channel A Target 2 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
        Goal: 40.000MB/s transfers (40.000MHz, offset 127)
        Curr: 3.300MB/s transfers
        Channel A Target 2 Lun 0 Settings
                Commands Queued 1
                Commands Active 0
                Command Openings 1
                Max Tagged Openings 0
                Device Queue Frozen Count 0
Channel A Target 3 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
Channel A Target 4 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
        Goal: 40.000MB/s transfers (40.000MHz, offset 127)
        Curr: 3.300MB/s transfers
        Channel A Target 4 Lun 0 Settings
                Commands Queued 1
                Commands Active 0
                Command Openings 1
                Max Tagged Openings 0
                Device Queue Frozen Count 0
Channel A Target 5 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
        Goal: 3.300MB/s transfers
        Curr: 3.300MB/s transfers
        Channel A Target 5 Lun 0 Settings
                Commands Queued 1
                Commands Active 0
                Command Openings 1
                Max Tagged Openings 0
                Device Queue Frozen Count 0
Channel A Target 6 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
Channel A Target 7 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
Channel A Target 8 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
        Goal: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
        Curr: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
        Channel A Target 8 Lun 0 Settings
                Commands Queued 5
                Commands Active 0
                Command Openings 253
                Max Tagged Openings 253
                Device Queue Frozen Count 0
Channel A Target 9 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
        Goal: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
        Curr: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
        Channel A Target 9 Lun 0 Settings
                Commands Queued 5
                Commands Active 0
                Command Openings 253
                Max Tagged Openings 253
                Device Queue Frozen Count 0
Channel A Target 10 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
Channel A Target 11 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
Channel A Target 12 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
Channel A Target 13 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
Channel A Target 14 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)
Channel A Target 15 Negotiation Settings
        User: 80.000MB/s transfers (40.000MHz, offset 255, 16bit)

# dmesg
Linux version 2.4.14 (cooper at LEV8) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #1 Sat Nov 17 22:27:26 GMT 2001
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000028000000 (usable)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
On node 0 totalpages: 163840
zone(0): 4096 pages.
zone(1): 159744 pages.
zone(2): 0 pages.
Kernel command line: BOOT_IMAGE=2414 ro root=802 sda=2232,255,63
Initializing CPU#0
Detected 1460.857 MHz processor.
Console: colour VGA+ 132x60
Calibrating delay loop... 2916.35 BogoMIPS
Memory: 643200k/655360k available (882k kernel code, 11772k reserved,
249k data, 180k init, 0k highmem)
Dentry-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
Buffer-cache hash table entries: 65536 (order: 6, 262144 bytes)
Page-cache hash table entries: 262144 (order: 8, 1048576 bytes)
CPU: Before vendor init, caps: 0383fbff c1cbfbff 00000000, vendor = 2
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After vendor init, caps: 0383fbff c1cbfbff 00000000 00000000
CPU:     After generic, caps: 0383fbff c1cbfbff 00000000 00000000
CPU:             Common caps: 0383fbff c1cbfbff 00000000 00000000
CPU: AMD Athlon(tm) XP 1700+ stepping 02
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch at atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb180, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 0: assuming transparent
PCI: Using IRQ router VIA [1106/0686] at 00:07.0
PCI: Found IRQ 9 for device 00:07.2
PCI: Sharing IRQ 9 with 00:07.3
Applying VIA southbridge workaround.
PCI: Via IRQ fixup for 00:07.2, from 0 to 9
PCI: Via IRQ fixup for 00:07.3, from 255 to 9
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.15)
Starting kswapd
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ
SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
block: 128 slots per queue, batch=32
PCI: Found IRQ 11 for device 00:0d.0
IRQ routing conflict for 00:07.5, have irq 9, want irq 11
PCI: Sharing IRQ 11 with 00:09.0
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
00:0d.0: 3Com PCI 3c905C Tornado at 0xe400. Vers LK1.1.16
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 565M
agpgart: Detected Via Apollo Pro KT133 chipset
agpgart: AGP aperture is 64M @ 0xd8000000
SCSI subsystem driver Revision: 1.00
PCI: Found IRQ 11 for device 00:09.0
IRQ routing conflict for 00:07.5, have irq 9, want irq 11
PCI: Sharing IRQ 11 with 00:0d.0
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.4
        <Adaptec 2930 Ultra2 SCSI adapter>
        aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs

  Vendor: QUANTUM   Model: ATLAS_V_18_WLS    Rev: 0200
  Type:   Direct-Access                      ANSI SCSI revision: 03
  Vendor: PIONEER   Model: DVD-ROM DVD-304   Rev: 1.03
  Type:   CD-ROM                             ANSI SCSI revision: 02
  Vendor: PLEXTOR   Model: CD-R   PX-R820T   Rev: 1.07
  Type:   CD-ROM                             ANSI SCSI revision: 02
  Vendor: HP        Model: C7670A            Rev: 3945
  Type:   Processor                          ANSI SCSI revision: 02
  Vendor: IBM       Model: DDRS-39130W       Rev: S97B
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: IBM       Model: DDRS-39130W       Rev: S97B
  Type:   Direct-Access                      ANSI SCSI revision: 02
scsi0:A:0:0: Tagged Queuing enabled.  Depth 253
scsi0:A:8:0: Tagged Queuing enabled.  Depth 253
scsi0:A:9:0: Tagged Queuing enabled.  Depth 253
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi disk sdb at scsi0, channel 0, id 8, lun 0
Attached scsi disk sdc at scsi0, channel 0, id 9, lun 0
(scsi0:A:0): 40.000MB/s transfers (20.000MHz, offset 63, 16bit)
SCSI device sda: 35861388 512-byte hdwr sectors (18361 MB)
Partition check:
 sda: sda1 sda2 sda3 sda4
(scsi0:A:8): 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
SCSI device sdb: 17850000 512-byte hdwr sectors (9139 MB)
 sdb: sdb1
(scsi0:A:9): 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
SCSI device sdc: 17850000 512-byte hdwr sectors (9139 MB)
 sdc: sdc1
Attached scsi generic sg3 at scsi0, channel 0, id 5, lun 0,  type 3
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 8192 buckets, 64Kbytes
TCP: Hash tables configured (established 262144 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 180k freed
Adding Swap: 104416k swap-space (priority -1)
parport0: PC-style at 0x378 [PCSPP,EPP]
parport0: cpp_daisy: aa5500ff(38)
parport0: assign_addrs: aa5500ff(38)
parport0: cpp_daisy: aa5500ff(38)
parport0: assign_addrs: aa5500ff(38)
parport_pc: Via 686A parallel port: io=0x378
NVRM: loading NVIDIA kernel module version 1.0-1541
NVRM: AGPGART: VIA Apollo KT133 chipset
NVRM: AGPGART: aperture: 64M @ 0xd8000000
NVRM: AGPGART: aperture mapped from 0xd8000000 to 0xed96f000
NVRM: AGPGART: mode 4x
NVRM: AGPGART: allocated 16 pages

# for i in /proc/scsi/sg/* ; do echo "=] $i [=" ; cat "$i" ;echo ; done
=] /proc/scsi/sg/allow_dio [=
0

=] /proc/scsi/sg/debug [=
dev_max(currently)=12 max_active_device=6 (origin 1)
 scsi_dma_free_sectors=3872 sg_pool_secs_aval=320
def_reserved_size=32768

=] /proc/scsi/sg/def_reserved_size [=
32768

=] /proc/scsi/sg/device_hdr [=
host    chan    id      lun     type    opens   qdepth  busy    online

=] /proc/scsi/sg/device_strs [=
QUANTUM         ATLAS_V_18_WLS          0200
PIONEER         DVD-ROM DVD-304         1.03
PLEXTOR         CD-R   PX-R820T         1.07
HP              C7670A                  3945
IBM             DDRS-39130W             S97B
IBM             DDRS-39130W             S97B

=] /proc/scsi/sg/devices [=
0       0       0       0       0       4       253     0       1
0       0       2       0       5       0       2       0       1
0       0       4       0       5       0       2       0       1
0       0       5       0       3       0       2       0       1
0       0       8       0       0       0       253     0       1
0       0       9       0       0       0       253     0       1

=] /proc/scsi/sg/host_hdr [=
uid     busy    cpl     scatg   isa     emul

=] /proc/scsi/sg/host_strs [=
Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.4
        <Adaptec 2930 Ultra2 SCSI adapter>
        aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs


=] /proc/scsi/sg/hosts [=
0       0       2       128     0       0

=] /proc/scsi/sg/version [=
30120   Version: 3.1.20 (20010814)



To Unsubscribe: send mail to majordomo at FreeBSD.org
with "unsubscribe aic7xxx" in the body of the message




More information about the aic7xxx mailing list