From owner-freebsd-scsi Fri Mar 3 19: 2:16 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from mass.cdrom.com (mass.cdrom.com [204.216.28.184]) by hub.freebsd.org (Postfix) with ESMTP id 0867E37B70F for ; Fri, 3 Mar 2000 19:02:13 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id TAA04334; Fri, 3 Mar 2000 19:02:25 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <200003040302.TAA04334@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Kenneth D. Merry" Cc: scsi@FreeBSD.ORG Subject: Re: chio trap with not-ready changer In-reply-to: Your message of "Wed, 01 Mar 2000 23:44:34 MST." <20000301234434.A36537@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 03 Mar 2000 19:02:25 -0800 From: Mike Smith Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > 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