Date: Mon, 06 Mar 2000 13:25:45 -0800 From: Mike Smith <msmith@freebsd.org> To: mjacob@feral.com Cc: Nick Hibma <n_hibma@calcaphon.com>, FreeBSD SCSI Mailing List <scsi@FreeBSD.ORG> Subject: Re: first INQUIRY goes round in circles (fwd) Message-ID: <200003062125.NAA00633@mass.cdrom.com> In-Reply-To: Your message of "Mon, 06 Mar 2000 08:17:40 PST." <Pine.BSF.4.05.10003060816190.74886-100000@semuta.feral.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This sounds an awful lot like what's happening with this stupid Spectra changer, actually. 8( > Test Unit Ready is mandatory, and that SCSI Floppy is sure busted, but I'm > very nervous about this change. If people agree that it should be adopted, > let's really wait until after 4.0 is cut, okay? > > > > > > The very first command issued by XPT, INQUIRY, goes round in circles if > > a drive chooses to not reset a Unit Attention (UA) error. It retries the > > INQUIRY command indefinitely (I have no idea why, but my gut feeling is > > that somewhere a new INQUIRY command is issued to get some sensible > > info from the drive, which then ends up in a loop) > > > > > > The UFI (SCSI derivative) USB device (Y-E Data Flashbuster-U floppy > > drive) I have here is broken as it INQUIRY - REQUEST SENSE - INQUIRY > > returns the same sense code (sense key = 0x06, asc = 0x29, ascq = 0x00) > > again at the second INQUIRY command, because the INQUIRY does not clear > > the UA state. > > > > As this is the very first command tried, it is impossible to use a > > device specific quirk. > > > > I suggest the following patch. It might have the following problems: > > > > - Test Unit Ready not supported by some devices > > - Devices reporting more than 4 UA states (4 is the number of retries > > in scsi_inquiry) > > > > Let me know. > > > > Nick > > > > > > > > =================================================================== > > RCS file: /home/ncvs/src/sys/cam/scsi/scsi_all.c,v > > retrieving revision 1.14 > > diff -u -r1.14 scsi_all.c > > --- scsi/scsi_all.c 2000/02/20 04:42:43 1.14 > > +++ scsi/scsi_all.c 2000/03/06 12:11:29 > > @@ -1045,7 +1045,7 @@ > > "Not ready to ready change, medium may have changed") }, > > /* DT WR OM */{SST(0x28, 0x01, SS_DEF, > > "Import or export element accessed") }, > > -/* DTLPWRSOMCAE */{SST(0x29, 0x00, SS_NEDEF|ENXIO, > > +/* DTLPWRSOMCAE */{SST(0x29, 0x00, SS_TUR|SSQ_DECREMENT_COUNT|ENXIO, > > "Power on, reset, or bus device reset occurred") }, > > /* DTLPWRSOMCAE */{SST(0x29, 0x01, SS_DEF, > > "Power on occurred") }, > > > > -- > > n_hibma@webweaving.org > > n_hibma@freebsd.org USB project > > http://www.etla.net/~n_hibma/ > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-scsi" in the body of the message > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-scsi" in the body of the message > -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003062125.NAA00633>