Subject: Re: SCSI Tape (TK50Z on VS3100 M76)
To: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
From: Chuck McManis <cmcmanis@mcmanis.com>
List: port-vax
Date: 04/11/2000 13:17:23
Ok, per Michael's comment I've added the quirk flag and rebuilt the kernel. 
Its available at ftp://home.mcmanis.com/pub/netbsd.tk50-patch.gz but it is
on a DSL line so don't everyone go and try it :-). Doug is the primary
customer.
This is a 1.4X GENERIC (MAXUSER=12) kernel with Michael's TK50 patches in it.
--Chuck


At 01:28 PM 4/11/00 -0600, Michael L. Hitch wrote:
>On Tue, 11 Apr 2000, Douglas Meade wrote:
>
>> I tried the kernel you put up for me with the patch, and tried to make
>
>  I'm guessing this is with the patch I posted a few days ago (since
>the tape drive is now being identified as a TK50Z)?
>
>> a small tape archive this morning.  I include the whole session below,
>> hoping it can help give a clue as to what is wrong.
>...
>> st0 at scsibus1 target 5 lun 0: <DEC, TK50Z, > SCSI1 1/sequential removable
>> st0: rogue, drive empty
>...
>> inforumvax# tar cv /etc
>> st0(ncr1:5:0):  Check Condition on CDB: 0x15 00 00 00 18 00
>>     SENSE KEY:  Illegal Request
>>  COMMAND INFO:  117440512 (0x7000000)
>>      ASC/ASCQ:  No Additional Sense Information
>
>  All these errors look like they are the mode select command.  I had
>not tested my patches with writing to my TZ30.  I just tried that with
>a VS4000/VLC.  I get several errors from the prevent/allow operations
>(which are ignored by the driver), but had no problems from the mode
>select commands.
>
>  I'd make a wild guess and say that perhaps the TZ30 recognizes the
>mode select command, but the TK50Z does not.  There is an additional
>"quirk" flag that might fix that.
>
>  Chuck:  if you were building with the patches I posted earlier,
>could you try adding the ST_Q_UNIMODAL flag to the TK50Z entry?
>I.e., change the 
>        "DEC     ", "TK50Z           ", ""},     {0, 12, {
>to
>        "DEC     ", "TK50Z           ", ""},     {ST_Q_UNIMIDAL, 12, {
>
>  This should tell the tape driver to not even attempt the mode select
>command.
>
>--
>Michael L. Hitch			mhitch@montana.edu
>Computer Consultant
>Information Technology Center
>Montana State University	Bozeman, MT	USA
>