Archive Python DAT DDS-1 tape drive with recent Linux NCR53C8XX driver

Michael Meissner (meissner@cygnus.com)
Thu, 3 Sep 1998 23:11:04 -0400


(this is being sent to the scsi groups as well as the kernel groups,
please adjust replies accordingly).

I've been struggling with recent linux kernels and my Archive Python
DAT DDS-1 tape drives. I have two computers, each equipped with 3
year old Archive Python DAT DDS-1 tape drives.

The work computer (tiktok) originally looked like:

computer
|
+--- TekRam 390F (Symbios 53c875 based UW controller)
| |
| +---- (external 68) ---- wide disk ---- active terminator
| |
| +---- (internal 50) -- disk -- disk -- active termiator
|
+--- TekRam 390U (Symbios 53c875 based Ultra controller)
|
+---- (internal 50) -- tape -- cdrom w/passive term.

I discovered that versions of Linux with the 3.0 scsi driver installed
would continually reset the scsi bus when the first tape action (a
rewind, even though the tape usually sits at the beginning of tape).
The tape was originally set to SCSI-1 and no Parity via the jumpers.
Linux versions 2.1.105 and before worked fine with this setup and the
one below.

In the course of rearranging the computer to move the two disks to an
external enclose and add a removable hard drive, I also played around
with the tape. I discovered that if I redid the cables for the tape,
switched to use active termination instead of passive termination, and
switched it to Scsi-2/Parity, it suddently started working again with
3.0g driver. Here is the current configuration:

computer
|
+--- TekRam 390F (Symbios 53c875 based UW controller)
| |
| +---- (external 68) --- wide disk --- 2 narrow disks -- active term.
|
+--- TekRam 390U (Symbios 53c875 based Ultra controller)
|
+---- (internal 50) -- cdrom --- active terminator.
|
+---- (external 50) -- disk --- tape --- active terminator.

Unfortunately, I was not so lucky with the home computer. The home
computer (wogglebug) orgiinally looked like this:

computer
|
+--- TekRam 390F (Symbios 53c875 based UW controller)
|
+--- (internal 50) -- disk -- tape -- cdrom w/passive terminator

I recently added a second disk and connected it as follows:

computer
|
+--- TekRam 390F (Symbios 53c875 based UW controller)
|
+--- (internal 68) -- disk -- disk -- active terminator
|
+--- (internal 50) -- tape -- cdrom -- active terminator

and switched the tape to Scsi-2/Parity as in the work computer. If I
used linux 2.1.105 (ncr 2.5f driver), it worked correctly.

If I used a newer version such as 2.1.120_pre3 with the 3.0g version
of the driver, it hung when I accessed the tape. I borrowed an
Adaptec 2940UW from work, and determined it too didn't like the
Archives (though the latest beta drivers do support the drives
completely). In order to get the log file information, I wired the
computer up as:

computer
|
+--- Adaptec 2940UW (Adpatec UW controller)
| |
| +-- (internal 68) -- disk --- disk --- active terminator
|
+--- TekRam 390F (Symbios 53c875 based UW controller)
|
+--- (internal 50) -- tape -- cdrom -- active terminator

at did a mt rewind command. The scsi activity light went on and
stayed on. After awhile with nothing happened, I accessed the cdrom,
and immediately complaints that it was reloading the driver. Here is
the log file:

Sep 3 22:23:50 wogglebug kernel: aic7xxx: Warning - detected auto-termination on controller:
Sep 3 22:23:50 wogglebug kernel: aic7xxx: <Adaptec AHA-294X Ultra SCSI host adapter> at PCI 9/0
Sep 3 22:23:50 wogglebug kernel: aic7xxx: Please verify driver detected settings are correct.
Sep 3 22:23:50 wogglebug kernel: aic7xxx: If not, then please properly set the device termination
Sep 3 22:23:50 wogglebug kernel: aic7xxx: in the Adaptec SCSI BIOS by hitting CTRL-A when prompted
Sep 3 22:23:50 wogglebug kernel: aic7xxx: during machine bootup.
Sep 3 22:23:50 wogglebug kernel: aic7xxx: Cables present (Int-50 NO, Int-68 YES, Ext-68 NO)
Sep 3 22:23:50 wogglebug kernel: (scsi0) <Adaptec AHA-294X Ultra SCSI host adapter> found at PCI 9/0
Sep 3 22:23:50 wogglebug kernel: (scsi0) Wide Channel, SCSI ID=7, 16/255 SCBs
Sep 3 22:23:50 wogglebug kernel: (scsi0) Downloading sequencer code... 419 instructions downloaded
Sep 3 22:23:50 wogglebug kernel: ncr53c8xx: at PCI bus 0, device 13, function 0
Sep 3 22:23:50 wogglebug kernel: ncr53c8xx: 53c875 detected with Tekram NVRAM
Sep 3 22:23:50 wogglebug kernel: ncr53c875-0: rev=0x03, base=0xe4002000, io_port=0x7000, irq=11
Sep 3 22:23:50 wogglebug kernel: ncr53c875-0: Tekram format NVRAM, ID 7, Fast-20, Parity Checking
Sep 3 22:23:50 wogglebug kernel: ncr53c875-0: on-chip RAM at 0xe4003000
Sep 3 22:23:50 wogglebug kernel: ncr53c875-0: restart (scsi reset).
Sep 3 22:23:50 wogglebug kernel: ncr53c875-0: Downloading SCSI SCRIPTS.
Sep 3 22:23:50 wogglebug kernel: scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.0pre8/3.2.4
Sep 3 22:23:50 wogglebug kernel: <Adaptec AHA-294X Ultra SCSI host adapter>
Sep 3 22:23:50 wogglebug kernel: scsi1 : ncr53c8xx - revision 3.0g
Sep 3 22:23:50 wogglebug kernel: scsi : 2 hosts.
Sep 3 22:23:50 wogglebug kernel: Vendor: SEAGATE Model: ST32430N Rev: 0640
Sep 3 22:23:50 wogglebug kernel: Type: Direct-Access ANSI SCSI revision: 02
Sep 3 22:23:52 wogglebug inetd[321]: dtalk/tcp: unknown service
Sep 3 22:23:50 wogglebug kernel: Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
Sep 3 22:23:50 wogglebug kernel: Vendor: QUANTUM Model: VIKING 4.5 SCA Rev: 8600
Sep 3 22:23:50 wogglebug kernel: Type: Direct-Access ANSI SCSI revision: 02
Sep 3 22:23:50 wogglebug kernel: Detected scsi disk sdb at scsi0, channel 0, id 6, lun 0
Sep 3 22:23:50 wogglebug kernel: Vendor: ARCHIVE Model: Python 25588-XXX Rev: 2.96
Sep 3 22:23:50 wogglebug kernel: Type: Sequential-Access ANSI SCSI revision: 02
Sep 3 22:23:50 wogglebug kernel: Detected scsi tape st0 at scsi1, channel 0, id 2, lun 0
Sep 3 22:23:50 wogglebug kernel: Vendor: TOSHIBA Model: CD-ROM XM-3501TA Rev: 3054
Sep 3 22:23:50 wogglebug kernel: Type: CD-ROM ANSI SCSI revision: 02
Sep 3 22:23:50 wogglebug kernel: Detected scsi CD-ROM sr0 at scsi1, channel 0, id 4, lun 0
Sep 3 22:23:50 wogglebug kernel: scsi : detected 1 SCSI tape 1 SCSI cdrom 2 SCSI disks total.
Sep 3 22:23:50 wogglebug kernel: ncr53c875-0-<4,*>: FAST-5 SCSI 4.0 MB/s (250 ns, offset 16)
Sep 3 22:23:50 wogglebug kernel: Uniform CDROM driver Revision: 2.13
Sep 3 22:23:50 wogglebug kernel: (scsi0:0:0:0) Synchronous at 10.0 Mbyte/sec, offset 15.
Sep 3 22:23:50 wogglebug kernel: SCSI device sda: hdwr sector= 512 bytes. Sectors= 4197405 [2049 MB] [2.0 GB]
Sep 3 22:23:50 wogglebug kernel: (scsi0:0:6:0) Synchronous at 40.0 Mbyte/sec, offset 8.
Sep 3 22:23:50 wogglebug kernel: SCSI device sdb: hdwr sector= 512 bytes. Sectors= 8899737 [4345 MB] [4.3 GB]

...

Sep 3 22:24:20 wogglebug login[714]: ROOT LOGIN ON tty1
Sep 3 22:24:37 wogglebug kernel: ncr53c875-0-<2,*>: asynchronous.
Sep 3 22:27:08 wogglebug PAM_pwdb[715]: (login) session opened for user root by (uid=0)
Sep 3 22:27:08 wogglebug login[715]: ROOT LOGIN ON tty2
Sep 3 22:28:10 wogglebug automount[607]: attempting to mount entry /mnt/cdrom
Sep 3 22:28:40 wogglebug kernel: scsi : aborting command due to timeout : pid 4342, scsi1, channel 0, id 4, lun 0 Test Unit Ready 00 00 00 00 00
Sep 3 22:28:40 wogglebug kernel: ncr53c8xx_abort: pid=4342 serial_number=4369 serial_number_at_timeout=4369
Sep 3 22:28:40 wogglebug kernel: ncr53c875-0: abort ccb=c0004820 (cancel)
Sep 3 22:28:41 wogglebug kernel: SCSI host 1 abort (pid 4342) timed out - resetting
Sep 3 22:28:41 wogglebug kernel: SCSI bus is being reset for host 1 channel 0.
Sep 3 22:28:41 wogglebug kernel: ncr53c8xx_reset: pid=4342 reset_flags=2 serial_number=4369 serial_number_at_timeout=4369
Sep 3 22:28:41 wogglebug kernel: ncr53c875-0: restart (scsi reset).
Sep 3 22:28:41 wogglebug kernel: ncr53c875-0: Downloading SCSI SCRIPTS.
Sep 3 22:28:41 wogglebug kernel: ncr53c875-0-<4,*>: FAST-5 SCSI 4.0 MB/s (250 ns, offset 16)
Sep 3 22:28:41 wogglebug kernel: ncr53c875-0-<2,*>: asynchronous.
Sep 3 22:29:13 wogglebug kernel: SCSI host 1 abort (pid 4342) timed out - resetting
Sep 3 22:29:13 wogglebug kernel: SCSI bus is being reset for host 1 channel 0.
Sep 3 22:29:13 wogglebug kernel: ncr53c8xx_reset: pid=4342 reset_flags=2 serial_number=4383 serial_number_at_timeout=4383
Sep 3 22:29:13 wogglebug kernel: ncr53c875-0: restart (scsi reset).
Sep 3 22:29:13 wogglebug kernel: ncr53c875-0: Downloading SCSI SCRIPTS.
Sep 3 22:29:13 wogglebug kernel: ncr53c875-0-<4,*>: FAST-5 SCSI 4.0 MB/s (250 ns, offset 16)
Sep 3 22:29:13 wogglebug kernel: ncr53c875-0-<2,*>: asynchronous.
Sep 3 22:29:45 wogglebug kernel: SCSI host 1 abort (pid 4342) timed out - resetting
Sep 3 22:29:45 wogglebug kernel: SCSI bus is being reset for host 1 channel 0.
Sep 3 22:29:45 wogglebug kernel: ncr53c8xx_reset: pid=4342 reset_flags=2 serial_number=4408 serial_number_at_timeout=4408
Sep 3 22:29:45 wogglebug kernel: ncr53c875-0: restart (scsi reset).
Sep 3 22:29:45 wogglebug kernel: ncr53c875-0: Downloading SCSI SCRIPTS.
Sep 3 22:29:45 wogglebug kernel: ncr53c875-0-<4,*>: FAST-5 SCSI 4.0 MB/s (250 ns, offset 16)
Sep 3 22:29:45 wogglebug kernel: ncr53c875-0-<2,*>: asynchronous.
Sep 3 22:29:56 wogglebug init: Switching to runlevel: 6
Sep 3 22:29:59 wogglebug syslogd: exiting on signal 15

-- 
Michael Meissner, Cygnus Solutions (Massachusetts office)
4th floor, 955 Massachusetts Avenue, Cambridge, MA 02139, USA
meissner@cygnus.com,	617-354-5416 (office),	617-354-7161 (fax)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/faq.html