[1]summary:
AIC7xxx & Yamaha CRW4416S hangs SCSI bus, sometimes indefinitely
[2]problem description:
I have been experiencing a problem with my AIC7xxx/Adaptec 2940UW &
Yamaha CRW4416S which frequently ties up 'hangs' the SCSI bus on
repeated errors. This can be brought on by simply placing an audio
CD into the drive and starting the CDPLAYER software, for example.
Other circumstances can have similar effect.
(On burning a CD using cdrecord, it typically fails on fixation.
Output appended as items [8.x]. Probably related problems)
This is basically a stock Red Hat 6.0 install, on a K6-2/400 P5A.
Replacing the CRW4416S with a brand new unit did not improve the
situation.
[3]Keywords:
SCSI, Rewritable CD, Adaptec, IOCTL Error, Reset Error
[4]/proc/version:
Linux version 2.2.10 ([EMAIL PROTECTED]) (gcc version
egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #4 Wed Jun 16
12:24:57 EDT 1999
[5]/var/log/messages contains repeated instances of:
Jun 16 12:58:36 bach kernel: sr0: CDROM (ioctl) error, command:
UNKNOWN(0x42) 02 40 01 00 00 00 00 10 00
Jun 16 12:58:36 bach kernel: extra data not valid Current error sr00:00:
sense key Hardware Error
Jun 16 12:58:36 bach kernel: Additional sense indicates Track following
error
Jun 16 12:58:43 bach kernel: sr0: CDROM (ioctl) error, command:
UNKNOWN(0x42) 02 40 01 00 00 00 00 10 00
Jun 16 12:58:43 bach kernel: extra data not valid Current error sr00:00:
sense key Hardware Error
Jun 16 12:58:43 bach kernel: Additional sense indicates Track following
error
[6]recreating the problem:
Simply placing an audio CD into the drive and starting the CDPLAYER
software.
[7] env
USERNAME=
COLORTERM=gnome-terminal
HISTSIZE=1000
HOSTNAME=bach.genema.org
LOGNAME=ejritz
HISTFILESIZE=1000
INIT_VERSION=sysvinit-2.74
MAIL=/var/spool/mail/ejritz
CLASSPATH=:/opt/jdk-1.1.7/jdk117_v2/lib/classes.zip
TERM=xterm
HOSTTYPE=i386
PATH=/usr/bin:/usr/local/bin:/usr/X11R6/bin:/bin:\
/usr/X11R6/bin:/home/ejritz/bin:/opt/jdk-1.1.7/jdk117_v2/bin
CONSOLE=/dev/console
HOME=/home/ejritz
INPUTRC=/etc/inputrc
PREVLEVEL=N
RUNLEVEL=5
SHELL=/bin/bash
XAUTHORITY=/home/ejritz/.Xauthority
USER=ejritz
BASH_ENV=/home/ejritz/.bashrc
BOOT_IMAGE=latest
DISPLAY=:0
SESSION_MANAGER=local/bach.genema.org:/tmp/.ICE-unix/694,tcp\
/bach.genema.org:102
OSTYPE=Linux
WINDOWID=58720262
GDMSESSION=Default
SHLVL=2
_=/usr/bin/env
[7.1]LINUX_VER RUN:
Kernel modules found
Gnu C egcs-2.91.66
Binutils 2.9.1.0.23
Linux C Library ..
ldd: missing file arguments
Try `ldd --help' for more information.
ls: /usr/lib/libg++.so: No such file or directory
Procps 2.0.2
Mount 2.9o
Net-tools (1999-01-31)
Kbd [option...]
Sh-utils 1.16
[7.2]/proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 5
model : 8
model name : AMD-K6(tm) 3D processor
stepping : 12
cpu MHz : 400.919844
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge
mmx 3dnow
bogomips : 799.54
[7.3]/proc/modules
nfsd 149984 8 (autoclean)
es1370 21276 0
soundcore 2372 4 [es1370]
[7.4]/proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: FUJITSU Model: MAB3045SP Rev: 0109
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: FUJITSU Model: MAB3045SP Rev: 0109
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 02 Lun: 00
Vendor: FUJITSU Model: MAB3045SP Rev: 0109
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: YAMAHA Model: CRW4416S Rev: 1.0f
Type: CD-ROM ANSI SCSI revision: 02
[7.5.1]/proc/scsi/aic7xxx/0
Adaptec AIC7xxx driver version: 5.1.17/3.2.4
Compile Options:
TCQ Enabled By Default : Disabled
AIC7XXX_PROC_STATS : Enabled
AIC7XXX_RESET_DELAY : 10
Adapter Configuration:
SCSI Adapter: Adaptec AHA-294X Ultra SCSI host adapter
Ultra Wide Controller
PCI MMAPed I/O Base: 0xde000000
Adapter SEEPROM Config: SEEPROM found and used.
Adaptec SCSI BIOS: Enabled
IRQ: 10
SCBs: Active 0, Max Active 2,
Allocated 15, HW 16, Page 255
Interrupts: 9183
BIOS Control Word: 0x18a6
Adapter Control Word: 0x005a
Extended Translation: Enabled
Disconnect Enable Flags: 0xfff6
Ultra Enable Flags: 0x0007
Tag Queue Enable Flags: 0x0000
Ordered Queue Tag Flags: 0x0000
Default Tag Queue Depth: 8
Tagged Queue By Device array for aic7xxx host instance 0:
{255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255}
Actual queue depth per device for aic7xxx host instance 0:
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
Statistics:
(scsi0:0:0:0)
Device using Wide/Sync transfers at 40.0 MByte/sec, offset 8
Transinfo settings: current(12/8/1/0), goal(12/8/1/0), user(12/15/1/0)
Total transfers 7298 (4499 reads and 2799 writes)
< 2K 2K+ 4K+ 8K+ 16K+ 32K+ 64K+
128K+
Reads: 2735 166 392 566 76 251 313
0
Writes: 2024 434 288 46 7 0 0
0
(scsi0:0:1:0)
Device using Wide/Sync transfers at 40.0 MByte/sec, offset 8
Transinfo settings: current(12/8/1/0), goal(12/8/1/0), user(12/15/1/0)
Total transfers 2 (2 reads and 0 writes)
< 2K 2K+ 4K+ 8K+ 16K+ 32K+ 64K+
128K+
Reads: 2 0 0 0 0 0 0
0
Writes: 0 0 0 0 0 0 0
0
(scsi0:0:2:0)
Device using Wide/Sync transfers at 40.0 MByte/sec, offset 8
Transinfo settings: current(12/8/1/0), goal(12/8/1/0), user(12/15/1/0)
Total transfers 2 (2 reads and 0 writes)
< 2K 2K+ 4K+ 8K+ 16K+ 32K+ 64K+
128K+
Reads: 2 0 0 0 0 0 0
0
Writes: 0 0 0 0 0 0 0
0
(scsi0:0:3:0)
Device using Narrow/Async transfers.
Transinfo settings: current(30/0/0/0), goal(0/0/0/0), user(50/15/0/0)
Total transfers 1 (1 reads and 0 writes)
< 2K 2K+ 4K+ 8K+ 16K+ 32K+ 64K+
128K+
Reads: 1 0 0 0 0 0 0
0
Writes: 0 0 0 0 0 0 0
0
[7.5.2]things I've tried
- This behaviour is essentially the same as with the stock Red Hat 6.0
kernel
- tried another brand new 4416 device with identical behaviour
- tried moving the SCSI ID around
- disabled the funky PNP stuff in the Adaptec BIOS
- enabled manual, correct termination settings in the Adaptec BIOS
- verfied the end device terminations on both endpoints of the SCSI
wide and narrow bus
[7.5.3] misc system
Mainboard ASUS P5A Super Scoket 7, AGP, ALi, 512, ACPI BIOS rev 1006
128 Meg RAM
SoundBlaster PCI128
3COM 3C905 ethernet
ATI Xpert@work98/8M AGP
Yamaha CRW4416S dated March '99
Adaptec 2940UW Bios v1.32
[7.5.4]/proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
7 vcs
10 misc
14 sound
21 sg
128 ptm
136 pts
Block devices:
1 ramdisk
2 fd
8 sd
9 md
11 sr
[8.1]failed cdrecord output:
Cdrecord release 1.6.1 Copyright (C) 1995-1998 J�rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,3,0'
scsibus: 0 target: 3 lun: 0
atapi: 0
Device type : Removable CD-ROM
Version : 2
Response Format: 2
Capabilities : SYNC
Vendor_info : 'YAMAHA '
Identifikation : 'CRW4416S '
Revision : '1.0f'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : SWABAUDIO
Track 01: data 550 MB
Total size: 632 MB (62:38.21) = 281866 sectors
Lout start: 632 MB (62:40/16) = 281866 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Is not unrestricted
Is not erasable
ATIP start of lead in: -11640 (97:26/60)
ATIP start of lead out: 337350 (75:00/00)
Disk type: Cyanine, AZO or similar
Manufacturer: CMC Magnetics Corporation
Blocks total: 337350 Blocks current: 337350 Blocks remaining: 55484
RBlocks total: 349030 RBlocks current: 349030 RBlocks remaining: 67164
Starting to write CD/DVD at speed 2 in write mode for single session.
<snip>
Waiting for reader process to fill input-buffer ... input-buffer ready.
Starting new track at sector: 0
<snip>
Track 01: Total bytes read/written: 577257472/577257472 (281864 sectors).
Writing time: 1902.619s
Fixating...
/opt/cdrw/bin/cdrecord: Input/output error. close track/session: \
scsi sendcmd: retryable error
status: 0x2 (CHECK CONDITION)
CDB: 5B 00 02 00 00 00 00 00 00 00
Sense Bytes: 70 00 06 00 00 00 00 0A 00 00 00 00 29 00 00 00
Sense Key: 0x6 Unit Attention, Segment 0
Sense Code: 0x29 Qual 0x00 (power on, reset, or bus device reset \
occurred) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 14.324s timeout 480s
/opt/cdrw/bin/cdrecord: fifo had 17617 puts and 17617 gets.
/opt/cdrw/bin/cdrecord: fifo was 0 times empty and 13062 times \
full, min fill was 29%.
Fixating time: 31.602s
[8.2]/var/log/messages associated with the cdrecord failure:
Jun 16 06:44:16 bach modprobe: can't locate module char-major-97
Jun 16 06:44:16 bach last message repeated 3 times
Jun 16 06:44:16 bach kernel: (scsi0:0:3:0) Performing Domain
validation.
Jun 16 06:44:16 bach kernel: (scsi0:0:3:0) Successfully completed
Domain validation.
Jun 16 06:44:35 bach modprobe: can't locate module char-major-97
Jun 16 06:44:35 bach last message repeated 3 times
Jun 16 07:19:58 bach kernel: scsi : aborting command due to timeout
: pid 129455, scsi0, channel 0, id 0, lun 0 Write (10) 00 00 4d 00
a5 00 00 02 00
Jun 16 07:19:58 bach kernel: scsi : aborting command due to timeout
: pid 129456, scsi0, channel 0, id 0, lun 0 Write (10) 00 00 50 45
87 00 00 02 00
Jun 16 07:19:58 bach kernel: SCSI host 0 abort (pid 129456) timed
out - resetting
Jun 16 07:19:58 bach kernel: SCSI bus is being reset for host 0
channel 0.
Jun 16 07:19:58 bach kernel: (scsi0:0:3:0) Synchronous at 4.4
Mbyte/sec, offset 15.
Jun 16 07:19:58 bach kernel: (scsi0:0:0:0) Synchronous at 40.0
Mbyte/sec, offset 8.
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]