Subject: kern/10507: ch driver or chio handles cleaning tapes poorly
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-bugs
Date: 07/04/2000 13:14:10
>Number:         10507
>Category:       kern
>Synopsis:       ch driver or chio handles cleaning tapes poorly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 04 13:15:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dave Huang
>Release:        NetBSD 1.5_ALPHA as of June 27, 2000
>Organization:
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 23 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Environment:
	
System: NetBSD dahan.metonymy.com 1.5_ALPHA NetBSD 1.5_ALPHA (SPIFF) #372: Tue Jun 27 23:40:10 CDT 2000 khym@dahan.metonymy.com:/usr/src.local/sys/arch/i386/compile/SPIFF i386

siop1: target 6 now synchronous at 5.0Mhz, offset 8
st0 at scsibus1 target 6 lun 0: <ARCHIVE, Python 28849-XXX, 4.CM> SCSI2 1/sequential removable
st0: drive empty
ch0 at scsibus1 target 6 lun 1: <ARCHIVE, Python 28849-XXX, 4.CM> SCSI2 8/changer removable
ch0: 4 slots, 1 drive, 1 picker, 0 portals

>Description:
	I've got an Archive Python DDS2 autoloader, and If I put a
cleaning tape in one of the slots and tell chio to load the cleaning
tape, it loads, does the cleaning thing, then the drive automatically
ejects the tape. The ch driver then complains:

ch0(siop1:6:1):  Check Condition on CDB: 0xa5 20 00 00 00 05 00 01 00 00 00 00
    SENSE KEY:  Aborted Command
     ASC/ASCQ:  Operator Medium Removal Requested

and something (I don't know if it's ch or chio) loads the tape again.
This load/clean/eject cycle repeats until I ^C the chio.

>How-To-Repeat:
dahan ~# chio status
picker 0: <>
slot 0: <ACCESS,FULL>
slot 1: <ACCESS>
slot 2: <ACCESS,FULL>
slot 3: <ACCESS,FULL>
drive 0: <ACCESS>

[ the cleaning tape is in slot 3 ]

dahan ~# chio move slot 3 drive 0
[ loads, cleans, ejects ]
ch0(siop1:6:1):  Check Condition on CDB: 0xa5 20 00 00 00 05 00 01 00 00 00 00
    SENSE KEY:  Aborted Command
     ASC/ASCQ:  Operator Medium Removal Requested

[ loads, cleans, ejects ]
ch0(siop1:6:1):  Check Condition on CDB: 0xa5 20 00 00 00 05 00 01 00 00 00 00
    SENSE KEY:  Aborted Command
     ASC/ASCQ:  Operator Medium Removal Requested

[ loads, cleans, ejects ]
ch0(siop1:6:1):  Check Condition on CDB: 0xa5 20 00 00 00 05 00 01 00 00 00 00
    SENSE KEY:  Aborted Command
     ASC/ASCQ:  Operator Medium Removal Requested
^C
dahan ~# 

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: