Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 1998 14:49:13 +0100 (CET)
From:      Dirk Lutzebaeck <lutzeb@aeccom.com>
To:        AIC7xxx@FreeBSD.ORG
Subject:   timeout probs with 7890/U2W and tapes
Message-ID:  <13909.28478.161985.402913@kamet.aeccom.com>

next in thread | raw e-mail | index | archive | help

Hi,

I have a strange problem with the following config:

- ASUS P2B-DS (w/ Adaptec U2W on board)
- IBM DDRS UW (not LVD)
- Seagate/Python DAT Tape Scorpion STD28000 (narrow bus)
- Linux 2.0.36

1) The 7890 sees the tape in the bios but linux does not *unless*
   I set the no_reset option during boot. I have extended the
   wait time after SCSI bus reset but to no avail. Strange also
   that my other Linux box with a Buslogic Flashpoint Controller 
   never sees the tape either in the BIOS nor during linux boot.


2) Ok the tape is recognized with no_reset and the log says:

kamet kernel: (scsi0) <Adaptec AIC-7890/1 Ultra2 SCSI host adapter> found at PCI 6/0
kamet kernel: (scsi0) Wide Channel, SCSI ID=7, 32/255 SCBs
kamet kernel: (scsi0) Downloading sequencer code... 407 instructions downloaded
kamet kernel: (scsi0) Not resetting SCSI bus.  Note: Don't use the no_reset
kamet kernel: (scsi0) option unless you have a verifiable need for it.
kamet kernel: (scsi0) The no_reset option is known to break some systems,
kamet kernel: (scsi0) and is not supported by the driver authorkamet kernel: scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.4/3.2.4
kamet kernel:        <Adaptec AIC-7890/1 Ultra2 SCSI host adapter>
kamet kernel: scsi : 1 host.
kamet kernel:   Vendor: IBM       Model: DDRS-34560W       Rev: S97B
kamet kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
kamet kernel: Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
kamet kernel:   Vendor: IOMEGA    Model: ZIP 100           Rev: J.03
kamet kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
kamet kernel: Detected scsi removable disk sdb at scsi0, channel 0, id 4, lun 0
kamet kernel:   Vendor: PIONEER   Model: CD-ROM DR-U16S    Rev: 1.01
kamet kernel:   Type:   CD-ROM                             ANSI SCSI revision: 02
kamet kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 5, lun 0
kamet kernel:   Vendor: SEAGATE   Model: DAT    02779-XXX  Rev: 658A
kamet kernel:   Type:   Sequential-Access                  ANSI SCSI revision: 02
kamet kernel: Detected scsi tape st0 at scsi0, channel 0, id 6, lun 0
kamet kernel: scsi : detected 1 SCSI tape 1 SCSI cdrom 2 SCSI disks total.
kamet kernel: (scsi0:0:0:0) Synchronous at 20.0 Mbyte/sec, offset 15.

Then when using the tape for backup it runs for quite a while but then
a SCSI timeout occurs from the disk (!). Normally the disk runs
totally flawless. The timeout occurs just with using the tape. The
tape knows how to connect/disconnect because I can rewind the tape a
access disk simultaneously. When a timeout occurs it takes more than
15 minutes (!) when the kernel decides to reset the scsi bus. After
that the tape is not seen anymore by the system.

Here is the log:

04:38:49 kamet kernel: scsi : aborting command due to timeout : pid 178422, scsi0, channel 0, id 0, lun 0 Read (10) 00 00 28 86 09 00 00 12 00 
04:38:50 kamet kernel: scsi : aborting command due to timeout : pid 178423, scsi0, channel 0, id 0, lun 0 Write (6) 02 40 5d 06 00 
04:38:50 kamet kernel: scsi : aborting command due to timeout : pid 178424, scsi0, channel 0, id 0, lun 0 Write (10) 00 00 35 80 5f 00 00 06 00 
04:39:09 kamet kernel: scsi : aborting command due to timeout : pid 178422, scsi0, channel 0, id 0, lun 0 Read (10) 00 00 28 86 09 00 00 12 00 
04:39:10 kamet kernel: scsi : aborting command due to timeout : pid 178423, scsi0, channel 0, id 0, lun 0 Write (6) 02 40 5d 06 00 

[...]

04:53:29 kamet kernel: scsi : aborting command due to timeout : pid 178421, scsi0, channel 0, id 6, lun 0 Write (6) 01 00 00 40 00 
04:53:29 kamet kernel: scsi : aborting command due to timeout : pid 178422, scsi0, channel 0, id 0, lun 0 Read (10) 00 00 28 86 09 00 00 12 00 
04:53:31 kamet kernel: SCSI host 0 abort (pid 178421) timed out - resetting
04:53:31 kamet kernel: SCSI bus is being reset for host 0 channel 0.
04:53:31 kamet kernel: (scsi0:0:0:0) Synchronous at 20.0 Mbyte/sec, offset 15.
04:54:01 kamet kernel: st0: Error 26030000.
04:54:03 kamet kernel: st0: Error 26030000.

3) How can I get the tape to be used asynchrously on the SCSI bus? I
have disabled sync negotiation in the bios but linux still sets the
tape drive to synchronous access (scsi0:0:6:0):

%cat /proc/scsi/aic7xxx/0

Adaptec AIC7xxx driver version: 5.1.4/3.2.4
Compile Options:
  AIC7XXX_RESET_DELAY    : 15
  AIC7XXX_TAGGED_QUEUEING: Adapter Support Enabled
                             Check below to see which
                             devices use tagged queueing
  AIC7XXX_PAGE_ENABLE    : Enabled (This is no longer an option)
  AIC7XXX_PROC_STATS     : Enabled

Adapter Configuration:
           SCSI Adapter: Adaptec AIC-7890/1 Ultra2 SCSI host adapter
                           Ultra2-LVD/SE Wide Controller
    PCI MMAPed I/O Base: 0xe1800000
 Adapter SEEPROM Config: SEEPROM found and used.
      Adaptec SCSI BIOS: Enabled
                    IRQ: 11
                   SCBs: Active 0, Max Active 2,
                         Allocated 15, HW 32, Page 255
             Interrupts: 1385541
      BIOS Control Word: 0x18a6
   Adapter Control Word: 0x1c5e
   Extended Translation: Enabled
Disconnect Enable Flags: 0xffff
     Ultra Enable Flags: 0xffbf
 Tag Queue Enable Flags: 0x0000
Ordered Queue Tag Flags: 0x0000
Default Tag Queue Depth: 5
    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
  20.0 MByte/sec, offset 15
    Device Negotiation Settings
        Period Offset Bus Width
User       025    127        1
Goal       025    127        1
Current    025    015        1
    Total transfers 1350954 (1249421 read;101533 written)
      blks(512) rd=23396539; blks(512) wr=673840
        < 512 512-1K   1-2K   2-4K   4-8K  8-16K 16-32K 32-64K 64-128K >128K
 Reads:     0      1 436297 179588 194896 252526  81352  77076  27685      0 
Writes:     0      0  62423  17658  10992   7802   1688    344    626      0 

(scsi0:0:6:0)
  Device using Narrow/Sync transfers at
  6.67 MByte/sec, offset 15
    Device Negotiation Settings
        Period Offset Bus Width
User       000    000        1
Goal       000    127        0
Current    032    015        0
    Total transfers 34450 (1 read;34449 written)
      blks(512) rd=64; blks(512) wr=2204736
        < 512 512-1K   1-2K   2-4K   4-8K  8-16K 16-32K 32-64K 64-128K >128K
 Reads:     0      0      0      0      0      0      0      1      0      0 
Writes:     0      0      0      0      0      0      0  34449      0      0 


PS. Yes I have checked the termination, term power and so on...

Thanks for help,

Dirk

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



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