From owner-freebsd-scsi Sat Mar 4 15:29:31 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 5747537B8D5; Sat, 4 Mar 2000 15:29:28 -0800 (PST) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id QAA61521; Sat, 4 Mar 2000 16:29:27 -0700 (MST) (envelope-from ken) Date: Sat, 4 Mar 2000 16:29:27 -0700 From: "Kenneth D. Merry" To: "Justin T. Gibbs" Cc: Mike Smith , scsi@FreeBSD.ORG Subject: Re: chio trap with not-ready changer Message-ID: <20000304162927.A61483@panzer.kdm.org> References: <20000304161054.A61108@panzer.kdm.org> <200003042325.QAA24066@caspian.plutotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200003042325.QAA24066@caspian.plutotech.com>; from gibbs@FreeBSD.ORG on Sat, Mar 04, 2000 at 04:25:57PM -0700 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Mar 04, 2000 at 16:25:57 -0700, Justin T. Gibbs wrote: > >Oooh, I think I know what may be going on here. I suspect you're hitting > >the following case in cam_periph_error(): > > > > } else { > > /* decrement the number of retries */ > > retry = ccb->ccb_h.retry_count > 0; > > if (retry) > > ccb->ccb_h.retry_count--; > > /* > > * If it was aborted with no > > * clue as to the reason, just > > * retry it again. > > */ > > error = ERESTART; > > } > > > >You hit that when there is a SCSI error, but autosense failed, and there > >are still retries left. > > If the autosense failed, the system would not print out "Unit Attention...". > You have to have sense information for that. The sense information that Mike included in his mail was from some debugging stuff I told him to put in the driver. Also, the changer driver prints out SCSI sense information if the CAM status is CAM_SCSI_STATUS_ERROR. It doesn't check the CAM_AUTOSNS_VALID status bit. My guess is that the drive is sending back sense information, but maybe it's sending it back with check condition set? > >I'll think about it and run it by Justin (CCed) as well. You might make > >an ideal beta tester for his error recovery code rewrite. :) (I don't > >know if it's ready for testers just yet, though.) > > I think it is in good enough shape to send out. I just need to verify > one more thing. Cool. > >One of the things I think he's planning on doing is issuing a request sense > >when autosense fails. I'm not sure how much that would help in this case, > >but it might. > > Yes, it does perform sense retrieval in that case. That might help. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message