From owner-freebsd-alpha Thu Nov 9 15:38: 0 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by hub.freebsd.org (Postfix) with ESMTP id 2F15137B479; Thu, 9 Nov 2000 15:37:58 -0800 (PST) Received: from aslan (localhost [127.0.0.1]) by aslan.scsiguy.com (8.11.0/8.9.3) with ESMTP id eA9Nbea96953; Thu, 9 Nov 2000 16:37:41 -0700 (MST) (envelope-from gibbs@aslan.scsiguy.com) Message-Id: <200011092337.eA9Nbea96953@aslan.scsiguy.com> To: mjacob@feral.com Cc: "Kenneth D. Merry" , Wilko Bulte , FreeBSD-alpha mailing list , freebsd-gnats-submit@FreeBSD.ORG Subject: Re: alpha/22650: SCSI cdrom attach problems on 4-stable In-Reply-To: Your message of "Thu, 09 Nov 2000 14:54:35 PST." Date: Thu, 09 Nov 2000 16:37:40 -0700 From: "Justin T. Gibbs" Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >> Since autosense is failing, the cd(4) driver can't tell what sort of error >> is getting returned (and therefore whether the drive is really accessible), >> so it won't attach. > >An AUTOSENSE failing means that a check condition occurred, but no sense data >is available. That should, in fact, be treated identically to READ CAPACITY >failing because there's no media. Are you saying that the Qlogic firmware will return autosense fail if the sense information is all zeros (no sense)? That would be really broken. >What's more important is that cam_periph_error or the periph should send a >REQUEST SENSE if AUTOSENSE fails- the sim should not be the one doing this. I don't know that you are guaranteed to get correct sense in this case as the first attempt to retrieve sense may have cleared or changed the sense information. I do have this implemented, BTW, in some error recovery enhancements I've made, but I still don't know that it is the appropriate thing to do. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message