Hi all,
I am experiencing some difficulty using the generic device
driver (sg) for Linux SCSI.
I am running kernel 2.2.12 and sg3_30013.
The device with which I am trying to communicate is a SCSI-1
device, characterized as a Direct-Access device with a 1-byte
block size. The device is actually a modem.
The sg3_utilities/sg_readcap utility returns:
Read Capacity results:
Last block address = 10412 (0x28ac), Number of blocks = 10413
Block size = 1 bytes
The device has three LUNs (0, 1, and 2). 0 may be used for reads
and writes, but it is preferred to use LUN 1 for reads, and
LUN 2 for writes.
All reads and writes are to/from a region starting at Logical Block
Address 0. The device supports bus disconnect.
I am using an Adaptec 2930 Host Adapter.
I am using the write-followed-by-read method, instead of the
SG_IO ioctl, method.
The device file is opened read-write, non-blocking.
The timeouts specified in the sg_io_hdr_t structures for both
read and write are 5000 milliseconds;
The goal is to be able to monitor the device continuously for,
and read incoming data, and to be able to write (send) data
as required.
The problem I am having is evidenced in the attached syslog file
which covers the time from the most recent reboot until the
problem occurs.
The dump of the /proc/scsi files is also attached.
It seems that there is contention for the SCSI bus, and that when
a write is attempted while a read is being attempted (and possibly
times out), the write cannot proceed. This would not be so bad
in, and of itself, but when the command times out, the computer
is non-responsive (evidenced, e.g., by an ongoing ping from
another computer) for about two seconds.
This, is of course unacceptable.
It appears that if I could somehow avoid attempting to read unless
there is data (i.e., thereby avoiding the read timeout) things would
be OK. To this end, I attempted to use the SG_GET_NUM_WAITING
ioctl, but it appears that this does not return correct data unless
the read command has been written to the device -- but, of course,
by then it's too late to avoid the timeout if there is no data available to
be read. I have considered using the poll() system call, instead,
but a look at the sg code seems to indicate that this would be equivalent
to the use of the ioctl.
The transferred data is correct in all respects, both ways.
Some of the data in the syslog and the /proc files is mystifying,
as well. For example, despite the fact that I am writing to LUN 2,
and reading from LUN 1, these files show only LUN 0. Note
that the syslog plainly shows the LUNs 1 and 2 to be in the
read(10) and write(10) commands.
I have considered several possibilities to explain this behavior, viz.:
1. The SG driver does not work correctly with SCSI-1 devices.
For example, the format of the INQUIRY data is different, and
both the sg3_utilities and the Adaptec 2930 SCSI_Select
utility in the Host Adapter EPROM display it as though it
were SCSI-2 data, (despite the fact that ANSI version 1 is
returned in the data).
2. There is something wrong with the Host Adapter
3. I have misunderstood the operation of the SG_GET_NUM_WAITING
ioctl, or some other aspect of the sg driver.
4. I need to specify some options to the driver.
Any other suggestions are welcome.
Thanking anyone in advance who can shed some light on the solution
to this problem.
Apr 3 07:46:14 piu01 syslogd 1.3-3: restart.
Apr 3 07:46:14 piu01 syslog: syslogd startup succeeded
Apr 3 07:46:14 piu01 kernel: klogd 1.3-3, log source = /proc/kmsg started.
Apr 3 07:46:14 piu01 syslog: klogd startup succeeded
Apr 3 07:46:14 piu01 kernel: Inspecting /boot/System.map-2.2.12
Apr 3 07:46:14 piu01 kernel: Loaded 7134 symbols from /boot/System.map-2.2.12.
Apr 3 07:46:14 piu01 kernel: Symbols match kernel version 2.2.12.
Apr 3 07:46:14 piu01 kernel: No module symbols loaded.
Apr 3 07:46:14 piu01 kernel: Linux version 2.2.12 ([EMAIL PROTECTED]) (gcc
version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #28 SMP Tue Mar 28 07:30:26
CST 2000
Apr 3 07:46:14 piu01 kernel: mapped APIC to ffffe000 (00271000)
Apr 3 07:46:14 piu01 kernel: mapped IOAPIC to ffffd000 (00272000)
Apr 3 07:46:14 piu01 kernel: Detected 265914437 Hz processor.
Apr 3 07:46:14 piu01 kernel: Console: colour VGA+ 80x25
Apr 3 07:46:14 piu01 kernel: Calibrating delay loop... 265.42 BogoMIPS
Apr 3 07:46:14 piu01 kernel: Memory: 63000k/65536k available (1120k kernel code, 424k
reserved, 940k data, 52k init)
Apr 3 07:46:14 piu01 kernel: Checking 386/387 coupling... OK, FPU using exception 16
error reporting.
Apr 3 07:46:14 piu01 kernel: Checking 'hlt' instruction... OK.
Apr 3 07:46:14 piu01 kernel: POSIX conformance testing by UNIFIX
Apr 3 07:46:14 piu01 kernel: mtrr: v1.35a (19990819) Richard Gooch
([EMAIL PROTECTED])
Apr 3 07:46:14 piu01 kernel: per-CPU timeslice cutoff: 100.34 usecs.
Apr 3 07:46:14 piu01 kernel: CPU0: Intel Pentium II (Klamath) stepping 03
Apr 3 07:46:14 piu01 kernel: SMP motherboard not detected. Using dummy APIC
emulation.
Apr 3 07:46:14 piu01 kernel: PCI: PCI BIOS revision 2.10 entry at 0xfda11
Apr 3 07:46:14 piu01 kernel: PCI: Using configuration type 1
Apr 3 07:46:14 piu01 kernel: PCI: Probing PCI hardware
Apr 3 07:46:14 piu01 kernel: PCI: 00:00 [8086/1237]: Passive release enable (00)
Apr 3 07:46:14 piu01 kernel: Linux NET4.0 for Linux 2.2
Apr 3 07:46:14 piu01 kernel: Based upon Swansea University Computer Society NET3.039
Apr 3 07:46:14 piu01 kernel: NET4: Unix domain sockets 1.0 for Linux NET4.0.
Apr 3 07:46:14 piu01 kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Apr 3 07:46:14 piu01 kernel: IP Protocols: ICMP, UDP, TCP, IGMP
Apr 3 07:46:14 piu01 kernel: Starting kswapd v 1.5
Apr 3 07:46:14 piu01 kernel: parport0: PC-style at 0x378 [SPP]
Apr 3 07:46:14 piu01 kernel: parport0: no IEEE-1284 device present.
Apr 3 07:46:14 piu01 kernel: Detected PS/2 Mouse Port.
Apr 3 07:46:14 piu01 kernel: Serial driver version 4.27 with no serial options
enabled
Apr 3 07:46:14 piu01 kernel: ttyS00 at 0x03f8 (irq = 4) is a 16550A
Apr 3 07:46:14 piu01 kernel: ttyS01 at 0x02f8 (irq = 3) is a 16550A
Apr 3 07:46:14 piu01 kernel: pty: 256 Unix98 ptys configured
Apr 3 07:46:14 piu01 kernel: lp0: using parport0 (polling).
Apr 3 07:46:14 piu01 kernel: Real Time Clock Driver v1.09
Apr 3 07:46:14 piu01 kernel: Non-volatile memory driver v1.0
Apr 3 07:46:14 piu01 kernel: RAM disk driver initialized: 16 RAM disks of 4096K size
Apr 3 07:46:14 piu01 kernel: loop: registered device at major 7
Apr 3 07:46:14 piu01 kernel: PIIX3: IDE controller on PCI bus 00 dev 39
Apr 3 07:46:14 piu01 kernel: PIIX3: not 100% native mode: will probe irqs later
Apr 3 07:46:14 piu01 kernel: ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings:
hda:pio, hdb:pio
Apr 3 07:46:14 piu01 kernel: ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings:
hdc:pio, hdd:pio
Apr 3 07:46:14 piu01 kernel: hda: WDC AC24300L, ATA DISK drive
Apr 3 07:46:14 piu01 kernel: hdc: FX240S, ATAPI CDROM drive
Apr 3 07:46:14 piu01 kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Apr 3 07:46:14 piu01 kernel: ide1 at 0x170-0x177,0x376 on irq 15
Apr 3 07:46:14 piu01 kernel: hda: WDC AC24300L, 4112MB w/256kB Cache, CHS=524/255/63,
(U)DMA
Apr 3 07:46:14 piu01 kernel: hdc: ATAPI 24X CD-ROM drive, 256kB Cache
Apr 3 07:46:14 piu01 kernel: Uniform CDROM driver Revision: 2.55
Apr 3 07:46:14 piu01 kernel: Floppy drive(s): fd0 is 1.44M
Apr 3 07:46:14 piu01 kernel: FDC 0 is a National Semiconductor PC87306
Apr 3 07:46:14 piu01 kernel: (scsi0) <Adaptec AIC-7860 Ultra SCSI host adapter> found
at PCI 11/0
Apr 3 07:46:14 piu01 kernel: (scsi0) Narrow Channel, SCSI ID=7, 3/255 SCBs
Apr 3 07:46:14 piu01 kernel: (scsi0) Warning - detected auto-termination
Apr 3 07:46:14 piu01 kernel: (scsi0) Please verify driver detected settings are
correct.
Apr 3 07:46:14 piu01 kernel: (scsi0) If not, then please properly set the device
termination
Apr 3 07:46:14 piu01 kernel: (scsi0) in the Adaptec SCSI BIOS by hitting CTRL-A when
prompted
Apr 3 07:46:14 piu01 kernel: (scsi0) during machine bootup.
Apr 3 07:46:14 piu01 kernel: (scsi0) Cables present (Int-50 NO, Ext-50 YES)
Apr 3 07:46:14 piu01 kernel: (scsi0) Downloading sequencer code... 413 instructions
downloaded
Apr 3 07:46:14 piu01 kernel: scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast
SCSI) 5.1.19/3.2.4
Apr 3 07:46:14 piu01 kernel: <Adaptec AIC-7860 Ultra SCSI host adapter>
Apr 3 07:46:14 piu01 kernel: scsi : 1 host.
Apr 3 07:46:14 piu01 kernel: Vendor: NAVOX TC Model: IM S/N:016329 P Rev: WB V
Apr 3 07:46:14 piu01 kernel: Type: Direct-Access ANSI SCSI
revision: 01
Apr 3 07:46:14 piu01 kernel: scsi : detected total.
Apr 3 07:46:14 piu01 kernel: 3c59x.c:v0.99H 11/17/98 Donald Becker
http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html
Apr 3 07:46:14 piu01 kernel: eth0: 3Com 3c905 Boomerang 100baseTx at 0xff00,
00:10:4b:87:3b:ed, IRQ 9
Apr 3 07:46:14 piu01 kernel: 8K word-wide RAM 3:5 Rx:Tx split, autoselect/MII
interface.
Apr 3 07:46:14 piu01 kernel: MII transceiver found at address 24, status 786f.
Apr 3 07:46:14 piu01 kernel: Enabling bus-master transmits and whole-frame
receives.
Apr 3 07:46:14 piu01 kernel: Partition check:
Apr 3 07:46:14 piu01 kernel: hda: hda1 hda2 < hda5 hda6 hda7 >
Apr 3 07:46:14 piu01 kernel: VFS: Mounted root (ext2 filesystem) readonly.
Apr 3 07:46:14 piu01 kernel: Freeing unused kernel memory: 52k freed
Apr 3 07:46:14 piu01 kernel: Adding Swap: 787144k swap-space (priority -1)
Apr 3 07:46:15 piu01 atd: atd startup succeeded
Apr 3 07:46:15 piu01 crond: crond startup succeeded
Apr 3 07:46:15 piu01 pcmcia: Starting PCMCIA services:
Apr 3 07:46:15 piu01 pcmcia: modules
Apr 3 07:46:16 piu01 kernel: Linux PCMCIA Card Services 3.1.13
Apr 3 07:46:16 piu01 kernel: kernel build: 2.2.12 #28 SMP Tue Mar 28 07:30:26 CST
2000
Apr 3 07:46:16 piu01 kernel: options: [pci] [cardbus]
Apr 3 07:46:16 piu01 kernel: Intel PCIC probe:
Apr 3 07:46:16 piu01 kernel: Intel i82365sl B step ISA-to-PCMCIA at port 0x3e0 ofs
0x00
Apr 3 07:46:16 piu01 kernel: host opts [0]: none
Apr 3 07:46:16 piu01 kernel: host opts [1]: none
Apr 3 07:46:16 piu01 kernel: ISA irqs (scanned) = 3,4,7 polling interval = 1000
ms
Apr 3 07:46:16 piu01 pcmcia: cardmgr.
Apr 3 07:46:16 piu01 rc: Starting pcmcia succeeded
Apr 3 07:46:16 piu01 cardmgr[383]: starting, version is 3.1.13
Apr 3 07:46:16 piu01 cardmgr[383]: watching 2 sockets
Apr 3 07:46:16 piu01 kernel: cs: IO port probe 0x1000-0x17ff: clean.
Apr 3 07:46:16 piu01 kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x200-0x207
0x220-0x22f 0x290-0x297 0x330-0x337 0x388-0x38f 0x4d0-0x4d7
Apr 3 07:46:16 piu01 kernel: cs: IO port probe 0x0a00-0x0aff: clean.
Apr 3 07:46:16 piu01 inet: inetd startup succeeded
Apr 3 07:46:16 piu01 lpd: lpd startup succeeded
Apr 3 07:46:16 piu01 keytable: Loading keymap: Loading system font:
Apr 3 07:46:16 piu01 cardmgr[383]: initializing socket 0
Apr 3 07:46:16 piu01 cardmgr[383]: socket 0: Serial or Modem
Apr 3 07:46:16 piu01 kernel: cs: memory probe 0x0d0000-0x0dffff: clean.
Apr 3 07:46:17 piu01 rc: Starting keytable succeeded
Apr 3 07:46:17 piu01 cardmgr[383]: executing: 'insmod
/lib/modules/2.2.12/pcmcia/serial_cs.o'
Apr 3 07:46:17 piu01 kernel: tty02 at 0x03e8 (irq = 3) is a 16550A
Apr 3 07:46:17 piu01 cardmgr[383]: executing: './serial start ttyS2'
Apr 3 07:46:18 piu01 sendmail: sendmail startup succeeded
Apr 3 07:46:18 piu01 gpm: gpm startup succeeded
Apr 3 07:46:19 piu01 httpd: httpd startup succeeded
Apr 3 07:46:19 piu01 xfs: xfs startup succeeded
Apr 3 07:46:19 piu01 linuxconf: Linuxconf final setup
Apr 3 07:46:19 piu01 xfs: Warning: The directory "/usr/X11R6/lib/X11/fonts/100dpi"
does not exist.
Apr 3 07:46:19 piu01 xfs: Entry deleted from font path.
Apr 3 07:46:21 piu01 rc: Starting linuxconf succeeded
Apr 3 07:47:52 piu01 PAM_pwdb[578]: (login) session opened for user hoosd by (uid=0)
Apr 3 07:48:11 piu01 PAM_pwdb[598]: (login) session opened for user hoosd by (uid=0)
Apr 3 07:48:17 piu01 PAM_pwdb[617]: (su) session opened for user root by
hoosd(uid=1000)
Apr 3 07:49:46 piu01 kernel: scsi singledevice 0 0 4 1
Apr 3 07:49:46 piu01 kernel: Vendor: NAVOX TC Model: IM S/N:016329 P Rev: WB V
Apr 3 07:49:46 piu01 kernel: Type: Direct-Access ANSI SCSI
revision: 01
Apr 3 07:49:59 piu01 kernel: scsi singledevice 0 0 4 2
Apr 3 07:49:59 piu01 kernel: Vendor: NAVOX TC Model: IM S/N:016329 P Rev: WB V
Apr 3 07:49:59 piu01 kernel: Type: Direct-Access ANSI SCSI
revision: 01
Apr 3 07:53:32 piu01 kernel: scsi : aborting command due to timeout : pid 18, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:53:38 piu01 kernel: scsi : aborting command due to timeout : pid 19, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 11 00
Apr 3 07:53:38 piu01 kernel: SCSI host 0 abort (pid 18) timed out - resetting
Apr 3 07:53:38 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:53:44 piu01 kernel: SCSI host 0 abort (pid 18) timed out - resetting
Apr 3 07:53:44 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:53:52 piu01 kernel: scsi : aborting command due to timeout : pid 20, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:53:52 piu01 kernel: SCSI host 0 channel 0 reset (pid 18) timed out - trying
harder
Apr 3 07:53:52 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:54:00 piu01 kernel: scsi : aborting command due to timeout : pid 21, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:54:06 piu01 kernel: scsi : aborting command due to timeout : pid 22, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:54:06 piu01 kernel: SCSI host 0 abort (pid 21) timed out - resetting
Apr 3 07:54:06 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:54:14 piu01 kernel: scsi : aborting command due to timeout : pid 23, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:54:20 piu01 kernel: scsi : aborting command due to timeout : pid 24, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:54:20 piu01 kernel: SCSI host 0 abort (pid 23) timed out - resetting
Apr 3 07:54:20 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:54:28 piu01 kernel: scsi : aborting command due to timeout : pid 25, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:54:34 piu01 kernel: scsi : aborting command due to timeout : pid 26, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:54:34 piu01 kernel: SCSI host 0 abort (pid 25) timed out - resetting
Apr 3 07:54:34 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:54:43 piu01 kernel: scsi : aborting command due to timeout : pid 27, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:54:49 piu01 kernel: scsi : aborting command due to timeout : pid 28, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:54:49 piu01 kernel: SCSI host 0 abort (pid 27) timed out - resetting
Apr 3 07:54:49 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:54:57 piu01 kernel: scsi : aborting command due to timeout : pid 29, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:55:03 piu01 kernel: scsi : aborting command due to timeout : pid 30, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:55:03 piu01 kernel: SCSI host 0 abort (pid 29) timed out - resetting
Apr 3 07:55:03 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:55:11 piu01 kernel: scsi : aborting command due to timeout : pid 31, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:55:17 piu01 kernel: scsi : aborting command due to timeout : pid 32, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:55:17 piu01 kernel: SCSI host 0 abort (pid 31) timed out - resetting
Apr 3 07:55:17 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:55:25 piu01 kernel: scsi : aborting command due to timeout : pid 33, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:55:31 piu01 kernel: scsi : aborting command due to timeout : pid 34, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:55:31 piu01 kernel: SCSI host 0 abort (pid 33) timed out - resetting
Apr 3 07:55:31 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:55:39 piu01 kernel: scsi : aborting command due to timeout : pid 35, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:55:45 piu01 kernel: scsi : aborting command due to timeout : pid 36, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:55:45 piu01 kernel: SCSI host 0 abort (pid 35) timed out - resetting
Apr 3 07:55:45 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:55:53 piu01 kernel: scsi : aborting command due to timeout : pid 37, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:55:59 piu01 kernel: scsi : aborting command due to timeout : pid 38, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:55:59 piu01 kernel: SCSI host 0 abort (pid 37) timed out - resetting
Apr 3 07:55:59 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:56:07 piu01 kernel: scsi : aborting command due to timeout : pid 39, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:56:13 piu01 kernel: scsi : aborting command due to timeout : pid 40, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:56:13 piu01 kernel: SCSI host 0 abort (pid 39) timed out - resetting
Apr 3 07:56:13 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:56:21 piu01 kernel: scsi : aborting command due to timeout : pid 41, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:56:27 piu01 kernel: scsi : aborting command due to timeout : pid 42, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:56:27 piu01 kernel: SCSI host 0 abort (pid 41) timed out - resetting
Apr 3 07:56:27 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:56:35 piu01 kernel: scsi : aborting command due to timeout : pid 43, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:56:41 piu01 kernel: scsi : aborting command due to timeout : pid 44, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:56:41 piu01 kernel: SCSI host 0 abort (pid 43) timed out - resetting
Apr 3 07:56:41 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:56:50 piu01 kernel: scsi : aborting command due to timeout : pid 45, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:56:56 piu01 kernel: scsi : aborting command due to timeout : pid 46, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:56:56 piu01 kernel: SCSI host 0 abort (pid 45) timed out - resetting
Apr 3 07:56:56 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:57:04 piu01 kernel: scsi : aborting command due to timeout : pid 47, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:57:10 piu01 kernel: scsi : aborting command due to timeout : pid 48, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:57:10 piu01 kernel: SCSI host 0 abort (pid 47) timed out - resetting
Apr 3 07:57:10 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:57:18 piu01 kernel: scsi : aborting command due to timeout : pid 49, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:57:24 piu01 kernel: scsi : aborting command due to timeout : pid 50, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:57:24 piu01 kernel: SCSI host 0 abort (pid 49) timed out - resetting
Apr 3 07:57:24 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:57:32 piu01 kernel: scsi : aborting command due to timeout : pid 51, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:57:38 piu01 kernel: scsi : aborting command due to timeout : pid 52, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:57:38 piu01 kernel: SCSI host 0 abort (pid 51) timed out - resetting
Apr 3 07:57:38 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
Apr 3 07:57:46 piu01 kernel: scsi : aborting command due to timeout : pid 53, scsi0,
channel 0, id 4, lun 0 Read (10) 20 00 00 00 00 00 28 a4 00
Apr 3 07:57:52 piu01 kernel: scsi : aborting command due to timeout : pid 54, scsi0,
channel 0, id 4, lun 0 Write (10) 40 00 00 00 00 00 00 0c 00
Apr 3 07:57:52 piu01 kernel: SCSI host 0 abort (pid 53) timed out - resetting
Apr 3 07:57:52 piu01 kernel: SCSI bus is being reset for host 0 channel 0.
file /proc/scsi/aic7xxx/0 contents:
Adaptec AIC7xxx driver version: 5.1.19/3.2.4
Compile Options:
TCQ Enabled By Default : Disabled
AIC7XXX_PROC_STATS : Enabled
AIC7XXX_RESET_DELAY : 5
Adapter Configuration:
SCSI Adapter: Adaptec AIC-7860 Ultra SCSI host adapter
Ultra Narrow Controller
PCI MMAPed I/O Base: 0xffbef000
Adapter SEEPROM Config: SEEPROM found and used.
Adaptec SCSI BIOS: Disabled
IRQ: 10
SCBs: Active 0, Max Active 1,
Allocated 15, HW 3, Page 255
Interrupts: 2477
BIOS Control Word: 0x0030
Adapter Control Word: 0x005d
Extended Translation: Disabled
Disconnect Enable Flags: 0x00ff
Ultra Enable Flags: 0x0000
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:4:0)
Device using Narrow/Async transfers.
Transinfo settings: current(0/0/0/0), goal(0/0/0/0), user(25/15/0/0)
Total transfers 11 (11 reads and 0 writes)
< 2K 2K+ 4K+ 8K+ 16K+ 32K+ 64K+ 128K+
Reads: 0 0 0 11 0 0 0 0
Writes: 0 0 0 0 0 0 0 0
file /proc/scsi/scsi contents:
Attached devices:
Host: scsi0 Channel: 00 Id: 04 Lun: 00
Vendor: NAVOX TC Model: IM S/N:016329 P Rev: WB V
Type: Direct-Access ANSI SCSI revision: 01
file /proc/scsi/sg/debug contents:
dev_max(currently)=7 max_active_device=1 (origin 1)
scsi_dma_free_sectors=48 sg_pool_secs_aval=320 def_reserved_size=32768
>>> device=(sg)0 scsi0 chan=0 id=4 lun=0 em=0 sg_tablesize=128 excl=0
FD(1): timeout=6000 bufflen=32768 (res)sgat=0 low_dma=0
cmd_q=1 f_packid=0 k_orphan=0 closed=1
rb>> act: id=0 blen=10404 t_o/elap=5000/460040 sgat=0 op=0x28
file /proc/scsi/sg/def_reserved_size contents:
32768
file /proc/scsi/sg/device_hdr contents:
host chan id lun type discon qdepth tq
file /proc/scsi/sg/devices contents:
0 0 4 0 0 0 3 0
file /proc/scsi/sg/device_strs contents:
NAVOX TC IM S/N:016329 P WB V
file /proc/scsi/sg/host_hdr contents:
uid busy cpl scatg isa emul
file /proc/scsi/sg/hosts contents:
0 1 3 128 0 0
file /proc/scsi/sg/host_strs contents:
Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.19/3.2.4
<Adaptec AIC-7860 Ultra SCSI host adapter>
file /proc/scsi/sg/version contents:
30013 Version: 3.0.13 (20000323)