From owner-freebsd-scsi Mon Mar 6 17:44:31 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from bluebottle.calcaphon.com (calcaphon.demon.co.uk [193.237.19.5]) by hub.freebsd.org (Postfix) with ESMTP id 7512D37BD3C; Mon, 6 Mar 2000 17:44:22 -0800 (PST) (envelope-from n_hibma@calcaphon.com) Received: from henny.webweaving.org (dhcp36.calcaphon.com [10.0.1.36]) by bluebottle.calcaphon.com (8.9.3/8.9.1) with ESMTP id BAA72101; Tue, 7 Mar 2000 01:45:17 GMT (envelope-from n_hibma@calcaphon.com) Received: from localhost (localhost [127.0.0.1]) by henny.webweaving.org (8.9.3/8.9.3) with ESMTP id BAA00406; Tue, 7 Mar 2000 01:42:02 GMT (envelope-from n_hibma@calcaphon.com) Date: Tue, 7 Mar 2000 01:42:02 +0000 (GMT) From: Nick Hibma X-Sender: n_hibma@localhost Reply-To: Nick Hibma To: "Kenneth D. Merry" Cc: Mike Smith , mjacob@feral.com, FreeBSD SCSI Mailing List Subject: Re: first INQUIRY goes round in circles (fwd) In-Reply-To: <20000306143551.A78310@panzer.kdm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org After having another look at what CAM does, the following strikes me as odd. In the case of SF_RETRY_UA being set, the command is retried _without_ decrementing the retry_count. Can anyone enlighten me as to why that is being done this way? It's the cause of the infinite retry of the initial INQUIRY command. (This does not solve the problem of UA not being reset for my drive, but that needs a quirk anyway, instead of modifying the asc_text quirk table) "/sys/cam/scsi/scsi_all.c" line 2230 of 2933 --76%-- col 11-25 case SSD_KEY_UNIT_ATTENTION: /* * This should also be filtered out by * peripheral drivers since each has a different * concept of what it means to invalidate the * media. */ if ((sense_flags & SF_RETRY_UA) != 0) { /* don't decrement retry count */ error = ERESTART; print_sense = FALSE; } else { /* decrement the number of retries */ retry = ccb->ccb_h.retry_count > 0; if (retry) { ccb->ccb_h.retry_count--; error = ERESTART; print_sense = FALSE; } else { On Mon, 6 Mar 2000, Kenneth D. Merry wrote: > On Mon, Mar 06, 2000 at 13:25:45 -0800, Mike Smith wrote: > > > > This sounds an awful lot like what's happening with this stupid Spectra > > changer, actually. 8( > > It is very similar, except that in his case the autosense didn't fail. > (Thus the reason things go around in circles for him.) > > It's amazing how these broken devices just seem to pop up in spurts. > > Ken > -- > Kenneth Merry > ken@kdm.org > -- n_hibma@webweaving.org n_hibma@freebsd.org USB project http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message