All of lore.kernel.org
 help / color / mirror / Atom feed
* scsi tape drive access hangs ultrapenguin
@ 1998-09-27  2:18 Roger J. Allen
  0 siblings, 0 replies; only message in thread
From: Roger J. Allen @ 1998-09-27  2:18 UTC (permalink / raw)
  To: ultralinux

I installed ultrapenguin-1.0.9, but it can not read from the SCSI
tape drive without generating parity errors and hanging the machine.
The latest 2.1.121 kernel (cvs updated on 9/25/98) also has the same
problem.  The host is an Ultra1 170E with an NCR53C9XF, and the tape
drive is an Exabyte 8mm 8505XLE.  There are two SCSI disks and a SCSI
CD-ROM which work fine with ultrapenguin-1.0.9, but not the SCSI tape
drive.  Solaris 2.6 can read and write to the tape drive without any
errors.

Some of the output from sysinfo for Solaris 2.6 is:

	General Information

Manufacturer is          Sun (Sun Microsystems)
System Model is          Ultra 1 Model 170
Main Memory is           256 MB
Virtual Memory is        252 MB
ROM Version is           OBP 3.0.4 1995/11/26 17:57
Number of CPUs is        1
CPU Type is              sparc
App Architecture is      sparc
Kernel Architecture is   sun4u
OS Name is               SunOS
OS Version is            5.6
Kernel Version is        SunOS Release 5.6 Version Generic_105181-05 [UNIX(R) System V Release 4.0]
Boot Time is             Thu Sep 24 23:36:15 1998

	Device Information

SUNW,Ultra-1 is a "SUNW,501-2486"
    openprom is a "Open Boot PROM" device
    options is a "PROM Settings"
    aliases is a "PROM Device Aliases"
    sbus0 is a "SBus" system bus
        auxio is a "Auxiliary I/O"
        flashprom is a "Flash PROM"
        fd0 is a Floppy Two disk drive
        eeprom is a "EEPROM" device
        zs0 is a "Zilog 8530" serial communications chip
        zs1 is a "Zilog 8530" serial communications chip
            kbd is a "Sun Type-5 US PC" Keyboard
        SUNW,fas0 is a "Sun FAS366" Fast SCSI disk controller
            c0t0d0 (sd0) is a "SEAGATE ST32550W SUN2.1G" 2.0 GB disk drive
            c0t1d0 (sd1) is a "SEAGATE ST32550W SUN2.1G" 2.0 GB disk drive
            c0t6d0 (sd6) is a disk drive
            rmt/0 (st4) is a "EXABYTE EXB-85058SQANXR1" SCSI tape drive
        bpp is a "Sun Bidirectional Parallel Port"
    ffb0 is a "Creator3D 24-bit UPA Color Graphics" frame buffer
    cpu0 is a "Model 170 UltraSPARC" CPU

Here is the Sol-2.6 scsiinfo output:

fas0: sd0,0 tgt 0 lun 0:
	Synchronous(20.0MB/sec) Clean TaggedQueuing Wide
	Non-removable Disk:	SEAGATE  ST32550W SUN2.1G 0416		[SLT]
fas0: sd1,0 tgt 1 lun 0:
	Synchronous(20.0MB/sec) Clean TaggedQueuing Wide
	Non-removable Disk:	SEAGATE  ST32550W SUN2.1G 0416		[SLT]
fas0: sd6,0 tgt 6 lun 0:
	Synchronous(4.445MB/sec) Clean NoTaggedQueuing Narrow
	Removable CD-ROM:	TOSHIBA  XM-5401TASUN4XCD 2565		[ASL]
fas0: st4,0 tgt 4 lun 0:
	Synchronous(5.715MB/sec) Clean NoTaggedQueuing Narrow
	Removable Tape:	EXABYTE  EXB-85058SQANXR1 07J0		[S]

The following is part of the ultrapenguin /var/log/messages that might
be helpful.  At 19:02:04, I issued an:

mt -f /dev/nst0 status

and the esp0 errors occured.  If I try to read from the drive, then the
tape drive led's stay lit and esp0 errors occur until it is rebooted.

Sep 26 19:00:57 bart kernel: PROMLIB: Sun IEEE Boot Prom 3.0.4 1995/11/26 17:57
Sep 26 19:00:57 bart kernel: Linux version 2.1.121 (root@bart.sis.rpslmc.edu) (gcc driver version 2.7.2 snapshot 970621 executing gcc version 2.7.2) #3 Fri Sep 25 22:56:46 CDT 1998
Sep 26 19:00:57 bart kernel: ARCH: SUN4U
Sep 26 19:00:57 bart kernel: Calibrating delay loop... 333.41 BogoMIPS
Sep 26 19:00:57 bart kernel: Memory: 256232k available (1360k kernel code, 3752k data, 88k init) [fffff80000000000,fffff80017f52000]
Sep 26 19:00:57 bart kernel: IOMMU(SBUS): IMPL[0] VERS[0] SYSIO mapped at fffff9fe00000000
Sep 26 19:00:57 bart kernel: IOMMU: Streaming Buffer IMPL[0] REV[0] FlushFLAG[0000000017c040a0] ... ENABLED
Sep 26 19:00:57 bart kernel: sbus0: Clock 25.0 MHz
Sep 26 19:00:57 bart kernel: dma0: HME DVMA gate array 
Sep 26 19:00:57 bart kernel: esp0: IRQ 3,7e0 SCSI ID 7  Clock 40 MHz CCF=8 Time-Out 167 NCR53C9XF(espfast) detected
Sep 26 19:00:57 bart kernel: esp0: FAST chip is fasHME (family\x10, version=5)
Sep 26 19:00:57 bart kernel: ESP: Total of 1 ESP hosts found, 1 actually in use.
Sep 26 19:00:57 bart kernel: scsi0 : Sparc ESP366-HME
Sep 26 19:00:57 bart kernel: scsi : 1 host.
Sep 26 19:00:57 bart kernel:   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0416
Sep 26 19:00:57 bart kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Sep 26 19:00:57 bart kernel: Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
Sep 26 19:00:57 bart kernel:   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0416
Sep 26 19:00:57 bart kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Sep 26 19:00:57 bart kernel: Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
Sep 26 19:00:57 bart kernel:   Vendor: EXABYTE   Model: EXB-85058SQANXR1  Rev: 07J0
Sep 26 19:00:57 bart kernel:   Type:   Sequential-Access                  ANSI SCSI revision: 02
Sep 26 19:00:57 bart kernel:   Vendor: TOSHIBA   Model: XM-5401TASUN4XCD  Rev: 2565
Sep 26 19:00:57 bart kernel:   Type:   CD-ROM                             ANSI SCSI revision: 02
Sep 26 19:00:57 bart kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 6, lun 0
Sep 26 19:00:57 bart kernel: scsi : detected 1 SCSI cdrom 2 SCSI disks total.
Sep 26 19:00:57 bart kernel: esp0: Disabling sync for buggy Toshiba CDROM.
Sep 26 19:00:57 bart kernel: esp0: Disabling DISCONNECT for target 6 lun 0
Sep 26 19:00:57 bart kernel: Uniform CDROM driver Revision: 2.13
Sep 26 19:00:57 bart kernel: esp0: Disabling DISCONNECT for target 0 lun 0
Sep 26 19:00:57 bart kernel: esp0: 16 byte WIDE transfers enabled for target 0.
Sep 26 19:00:57 bart kernel: esp0: target 0 [period 100ns offset 15 20.00MHz FAST-WIDE SCSI-II]
Sep 26 19:00:57 bart kernel: SCSI device sda: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
Sep 26 19:00:57 bart kernel: esp0: Disabling DISCONNECT for target 1 lun 0
Sep 26 19:00:57 bart kernel: esp0: 16 byte WIDE transfers enabled for target 1.
Sep 26 19:00:57 bart kernel: esp0: target 1 [period 100ns offset 15 20.00MHz FAST-WIDE SCSI-II]
Sep 26 19:00:57 bart kernel: SCSI device sdb: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
Sep 26 19:00:57 bart kernel: sunhme.c:v1.2 10/Oct/96 David S. Miller (davem@caipfs.rutgers.edu)
Sep 26 19:00:57 bart kernel: eth0: HAPPY MEAL (SBUS) 10/100baseT Ethernet 08:00:20:79:69:0d 
Sep 26 19:00:57 bart kernel: Partition check:
Sep 26 19:00:57 bart kernel:  sda: sda1 sda2 sda3 sda4
Sep 26 19:00:57 bart kernel:  sdb: sdb1 sdb2 sdb3
Sep 26 19:00:57 bart kernel: VFS: Mounted root (ext2 filesystem) readonly.
Sep 26 19:00:57 bart kernel: Adding Swap: 50904k swap-space (priority -1)
Sep 26 19:00:57 bart kernel: st: bufsize 32768, wrt 30720, max buffers 4, s/g segs 16.
Sep 26 19:00:57 bart kernel: Detected scsi tape st0 at scsi0, channel 0, id 4, lun 0
Sep 26 19:01:09 bart login[282]: ROOT LOGIN ON tty1
Sep 26 19:02:04 bart kernel: esp0: Disabling DISCONNECT for target 4 lun 0
Sep 26 19:02:04 bart kernel: esp0: data bad parity detected.
Sep 26 19:02:04 bart kernel: esp0: data bad parity detected.
Sep 26 19:02:04 bart kernel: esp0: yieee, bytes_sent < 0!
Sep 26 19:02:04 bart kernel: esp0: csz=0 fifocount=0 ecount=0
Sep 26 19:02:04 bart kernel: esp0: use_sg=0 ptr\0000000179d0006 this_residual=0
Sep 26 19:02:04 bart kernel: esp0: Forcing async for target 4
Sep 26 19:02:04 bart kernel: esp0: got status only, esp0: bad parity somewhere mout= 5
Sep 26 19:02:04 bart kernel: esp0: still in msgout, parity error assumed
Sep 26 19:02:04 bart kernel: esp0: data bad parity detected.
Sep 26 19:02:04 bart kernel: esp0: data bad parity detected.
Sep 26 19:02:04 bart kernel: esp0: yieee, bytes_sent < 0!
Sep 26 19:02:04 bart kernel: esp0: csz=0 fifocount=0 ecount=0
Sep 26 19:02:04 bart kernel: esp0: use_sg=0 ptr\0000000179d000c this_residual=0
Sep 26 19:02:04 bart kernel: esp0: Forcing async for target 4
Sep 26 19:02:04 bart kernel: esp0: got status only, esp0: bad parity somewhere mout= 5
Sep 26 19:02:04 bart kernel: esp0: still in msgout, parity error assumed

One thing that I noticed is that /proc/scsi/esp/0 shows the tape drive
as narrow when I boot:

Sparc ESP Host Adapter:
	PROM node		fffffffff0061044
	PROM name		SUNW,fas
	ESP Model		Happy Meal FAS
	DMA Revision		Rev HME/FAS
	Live Targets		[ 0 1 4 6 ]

Target #	config3		Sync Capabilities	Disconnect	Wide
0		000000e3	[5f,04]			no		yes
1		000000e3	[5f,04]			no		yes
4		000000a1	[5f,04]			no		no
6		000000a1	[5f,04]			no		no

but after the "mt -f /dev/nst0 status" it shows the tape drive as wide,
and config3 has changed:

Sparc ESP Host Adapter:
	PROM node		fffffffff0061044
	PROM name		SUNW,fas
	ESP Model		Happy Meal FAS
	DMA Revision		Rev HME/FAS
	Live Targets		[ 0 1 4 6 ]

Target #	config3		Sync Capabilities	Disconnect	Wide
0		000000e3	[5f,04]			no		yes
1		000000e3	[5f,04]			no		yes
4		000000e1	[5f,04]			no		yes
6		000000a1	[5f,04]			no		no

I will try debugging the scsi drivers, but I don't really know what to
look for.  If anyone can help, I would appreciate it.  If more info
would help, then let me know and I will try to provide it.

-- 
Roger J. Allen                Rush-Presbyterian-St. Luke's Medical Center
System Administrator                                   Chicago,  IL   USA
Surgical Information Systems                       Voice:  (312)-942-4825
Internet: rja@sis.rpslmc.edu                         FAX:  (312)-733-6921

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-09-27  2:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-27  2:18 scsi tape drive access hangs ultrapenguin Roger J. Allen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.