From owner-freebsd-scsi Mon Mar 6 17:57:48 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 15A8037BE4C; Mon, 6 Mar 2000 17:57:47 -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 RAA03274; Mon, 6 Mar 2000 17:58:21 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <200003070158.RAA03274@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/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: Mon, 06 Mar 2000 17:58:21 -0800 From: Mike Smith 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. Sorry; doesn't look like it. Some simple printf tracing suggests that it's actually the CAM_SCSI_STATUS_ERROR/CAM_STATUS_BUSY case that's getting called. That'd also explain the 1s delay between commands. Not sure yet why it's not "just working" after the unit comes ready - I'm guessing that's because we don't send two TUR's in sequence. Shouldn't we spin using TUR if the unit's not ready, until it does become ready? -- \\ 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