From owner-freebsd-scsi Sat Mar 4 15:25:20 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from caspian.plutotech.com (caspian.plutotech.com [206.168.67.80]) by hub.freebsd.org (Postfix) with ESMTP id CC7C537B8A0; Sat, 4 Mar 2000 15:25:17 -0800 (PST) (envelope-from gibbs@caspian.plutotech.com) Received: from caspian.plutotech.com (localhost [127.0.0.1]) by caspian.plutotech.com (8.9.3/8.9.1) with ESMTP id QAA24066; Sat, 4 Mar 2000 16:25:57 -0700 (MST) (envelope-from gibbs@caspian.plutotech.com) Message-Id: <200003042325.QAA24066@caspian.plutotech.com> X-Mailer: exmh version 2.1.0 09/18/1999 To: "Kenneth D. Merry" Cc: Mike Smith , scsi@FreeBSD.ORG, gibbs@FreeBSD.ORG Subject: Re: chio trap with not-ready changer In-reply-to: Your message of "Sat, 04 Mar 2000 16:10:54 MST." <20000304161054.A61108@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 04 Mar 2000 16:25:57 -0700 From: "Justin T. Gibbs" Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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. >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. >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. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message