Subject: kern/8357: add a SCSI quirk entry for WANGTEK QIC-120 SCSI tape drive
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 09/09/1999 13:11:04
>Number:         8357
>Category:       kern
>Synopsis:       add a SCSI quirk entry for WANGTEK QIC-120 SCSI tape drive
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Sep  9 12:05:01 1999
>Last-Modified:
>Originator:     Izumi Tsutsui
>Organization:
Izumi Tsutsui	Himeji City, Japan
>Release:        NetBSD-1.4 release
>Environment:
System: NetBSD 1.4 i386 and other arch

>Description:
WANGTEK QIC-120 SCSI tape drive (found in Sony NWS-1750)
requires a SDEV_NOLUNS scsi quirk entry.

>How-To-Repeat:
Connect the device and probe it. My news68k kernel said:

si0 at hb0 addr 0xe0cc0000 ipl 4, polling
scsibus0 at si0: 8 targets, 8 luns per target
sd0 at scsibus0 targ 0 lun 0: <HITACHI, DK515C, CP16> SCSI1 0/direct fixed
sd0: 639MB, 1361 cyl, 14 head, 68 sec, 512 bytes/sect x 1309896 sectors
st0 at scsibus0 targ 5 lun 0: <WANGTEK, SCSI-36, A> SCSI1 1/sequential removable
st0: drive empty
st1 at scsibus0 targ 5 lun 1: <WANGTEK, SCSI-36, A> SCSI1 1/sequential removable
st1: drive empty
st2 at scsibus0 targ 5 lun 2: <WANGTEK, SCSI-36, A> SCSI1 1/sequential removable
st2: drive empty
st3 at scsibus0 targ 5 lun 3: <WANGTEK, SCSI-36, A> SCSI1 1/sequential removable
st3: drive empty
st4 at scsibus0 targ 5 lun 4: <WANGTEK, SCSI-36, A> SCSI1 1/sequential removable
st4: drive empty
st5 at scsibus0 targ 5 lun 5: <WANGTEK, SCSI-36, A> SCSI1 1/sequential removable
st5: drive empty
st6 at scsibus0 targ 5 lun 6: <WANGTEK, SCSI-36, A> SCSI1 1/sequential removable
st6: drive empty
st7 at scsibus0 targ 5 lun 7: <WANGTEK, SCSI-36, A> SCSI1 1/sequential removable
st7: drive empty

>Fix:
--- sys/dev/scsipi/scsiconf.c.orig	Fri Dec 11 21:16:51 1998
+++ sys/dev/scsipi/scsiconf.c	Wed Sep  8 19:22:27 1999
@@ -547,6 +547,8 @@
 	{{T_SEQUENTIAL, T_REMOV,
 	 "WANGTEK ", "5150ES SCSI",      ""},     SDEV_NOLUNS},
 	{{T_SEQUENTIAL, T_REMOV,
+	 "WANGTEK ", "SCSI-36",          ""},     SDEV_NOLUNS},
+	{{T_SEQUENTIAL, T_REMOV,
 	 "WangDAT ", "Model 1300      ", "02.4"}, SDEV_NOSYNC|SDEV_NOWIDE},
 	{{T_SEQUENTIAL, T_REMOV,
 	 "WangDAT ", "Model 2600      ", "01.7"}, SDEV_NOSYNC|SDEV_NOWIDE},
>Audit-Trail:
>Unformatted: