Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2001 17:20:20 -0600
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Thomas Quinot <thomas@cuivre.fr.eu.org>
Cc:        stable@FreeBSD.ORG, scsi@FreeBSD.ORG, groudier@FreeBSD.ORG
Subject:   Re: Failure to attach SCSI CD burner
Message-ID:  <20010826172020.A15037@panzer.kdm.org>
In-Reply-To: <20010827010914.A2265@melusine.cuivre.fr.eu.org>; from thomas@cuivre.fr.eu.org on Mon, Aug 27, 2001 at 01:09:14AM %2B0200
References:  <20010825185223.A24294@melusine.cuivre.fr.eu.org> <20010825141549.A8851@panzer.kdm.org> <20010826105444.A65894@melusine.cuivre.fr.eu.org> <20010826122401.A13602@panzer.kdm.org> <20010826204458.A18333@melusine.cuivre.fr.eu.org> <20010826132958.A13920@panzer.kdm.org> <20010827010914.A2265@melusine.cuivre.fr.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 27, 2001 at 01:09:14 +0200, Thomas Quinot wrote:
> Le 2001-08-26, Kenneth D. Merry écrivait :
> 
> > Hmm.  Well, try applying the attached patch to sys/cam/scsi/scsi_cd.c and
> > recompile your kernel.
> 
> OK, some new info:
> 
> 1. with NO CD in the drive, I did not actually get the failure reported
>    before, but only the following messages:
> 
> cd0 at sym0 bus 0 target 2 lun 0
> cd0: <IMS CDD2000/00 1.26> Removable CD-ROM SCSI-2 device 
> cd0: 3.300MB/s transfers
> cd0: Attempt to query device size failed: NOT READY, Logical unit not ready, cause not reportable
> 
> (and then subsequently cd0 was correctly attached and usable)

That's normal.

> 2. with a DEFECTIVE CD-R in the drive (that had been sitting in there
>    for some time I guess...) I reproduced the failure:
> 
> (cd0:sym0:0:2:0): autosense is NOT valid
> (cd0:sym0:0:2:0): flags = 0x40 status = 0x4c
> (cd0:sym0:0:2:0): got CAM status 0x4c
> (cd0:sym0:0:2:0): fatal error, failed to attach to device
> (cd0:sym0:0:2:0): lost device
> (cd0:sym0:0:2:0): removing device entry
> 
> and then retrying the command with camcontrol yields /valid/
> sense data.

Hmm, okay.  So the drive was not empty before when you were having
failures?  It looks like, at least the first time through, the autosense
valid flag isn't getting set for the read capacity command.

Gerard, do you have any ideas as to why the autosense valid bit might not
be getting set the first time we send a read capacity to his drive?
(Apparantly with a certain bad CD-R in the drive.)

Ken
-- 
Kenneth Merry
ken@kdm.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010826172020.A15037>