Date: Fri, 03 Mar 2000 19:02:25 -0800 From: Mike Smith <msmith@freebsd.org> To: "Kenneth D. Merry" <ken@kdm.org> Cc: scsi@FreeBSD.ORG Subject: Re: chio trap with not-ready changer Message-ID: <200003040302.TAA04334@mass.cdrom.com> In-Reply-To: Your message of "Wed, 01 Mar 2000 23:44:34 MST." <20000301234434.A36537@panzer.kdm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > In any case, try putting a printf inside the SS_TUR case in > > > cam_periph_error() in cam_periph.c, to see whether the quirk entry is > > > getting matched correctly and therefore whether the test unit ready is > > > getting issued. > > > > Hmm. Trying: > > > > if (((err_action & SS_MASK) == SS_TUR) > > && save_ccb != NULL > > && ccb->ccb_h.retry_count > 0) { > > > > printf("cam_periph_error: sending TUR\n"); > > > > I never see the above message. > > Okay, my guess is that I flubbed the quirk entry somehow. Anyway, try the > attached patch for scsi_all.c. It makes the quirk entry much more generic > in the hopes that it'll match. Still no joy. The quirk strings themselves are matching OK; I've added debugging code sufficient to determine that (slightly reformatted for clarity): (ch0:ahc0:0:3:0): MODE SENSE(06). CDB: 1a 0 1d 0 20 0 (ch0:ahc0:0:3:0): UNIT ATTENTION asc:29,0 cam_strmatch: compare 'SPECTRA STL-8000 1.940 0 0 ' with ' SPECT*' MATCH cam_strmatch: compare 'STL-8000 1.940 0 0 ' with ' *' MATCH cam_strmatch: compare '1.940 0 0 ' with ' *' MATCH (ch0:ahc0:0:3:0): Power on, reset, or bus device reset occurred For what it's worth, I _only_ get these matches when it's in the middle of printing the "UNIT ATTENTION" messages. -- \\ 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?200003040302.TAA04334>