Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Oct 2003 17:12:18 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Sascha Holzleiter <sascha@daemonground.de>
Cc:        current@freebsd.org
Subject:   Re: scsi-cd + GEOM
Message-ID:  <20031002221218.GF2421@dan.emsphone.com>
In-Reply-To: <1065131912.746.2.camel@dreamland.chief.home>
References:  <3038.1065102868@critter.freebsd.dk> <1065131912.746.2.camel@dreamland.chief.home>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 02), Sascha Holzleiter said:
> On Thu, 2003-10-02 at 15:54, Poul-Henning Kamp wrote:
> > I wouldn't think the drive take 60-90 seconds to figure out there is
> > no disk, but I'm not a scsi-specialist...
> 
> Seems like it does, if there is a disc present or the tray is open there
> is no delay only with tray closed and no disc inserted. 
> Maybe this is only an issue with this drive model or at least my
> drive...

No, it happens to me too.  It looks like cd probing was done
asynchronously until about a week ago, so what used to happen was:

 <da0 probe info>
cd1 at ata0 bus 0 target 0 lun 0
cd1: <TDK CDRW401240B Z7SD> Removable CD-ROM SCSI-0 device
cd1: 3.300MB/s transfers
cd1: cd present [407667908 x 0 byte records]
 <init gets executed, system boots>
 <30 seconds later>
cd0 at ahc0 bus 0 target 5 lun 0
cd0: <NEC CD-ROM DRIVE:462 1.13> Removable CD-ROM SCSI-2 device
cd0: 10.000MB/s transfers (10.000MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present

The atapi CDRW thinks there's a cd in the drive but there isn't. 
Doesn't seem to affect anything though.

Now what happens is:

 <da0 probe info>
 <30 second delay>
(cd1:ata0:0:0:0): Recovered Sense
(cd1:ata0:0:0:0): READ CD RECORDED CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
(cd1:ata0:0:0:0): CAM Status: SCSI Status Error
(cd1:ata0:0:0:0): SCSI Status: Check Condition
(cd1:ata0:0:0:0): NOT READY asc:3a,0
(cd1:ata0:0:0:0): Medium not present
cd1 at ata0 bus 0 target 0 lun 0
cd1: <TDK CDRW401240B Z7SD> Removable CD-ROM SCSI-0 device 
cd1: 33.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present
cd0 at ahc0 bus 0 target 5 lun 0
cd0: <NEC CD-ROM DRIVE:462 1.13> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present
GEOM provider cd0 has zero sectorsize
GEOM provider cd0 has zero sectorsize
GEOM provider cd0 has zero sectorsize
GEOM provider cd0 has zero sectorsize
(cd1:ata0:0:0:0): Recovered Sense
(cd1:ata0:0:0:0): READ CD RECORDED CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
(cd1:ata0:0:0:0): CAM Status: SCSI Status Error
(cd1:ata0:0:0:0): SCSI Status: Check Condition
(cd1:ata0:0:0:0): NOT READY asc:3a,0
(cd1:ata0:0:0:0): Medium not present
GEOM provider cd1 has zero sectorsize
GEOM provider cd1 has zero sectorsize
GEOM provider cd1 has zero sectorsize
GEOM provider cd1 has zero sectorsize
(cd1:ata0:0:0:0): Recovered Sense
(cd1:ata0:0:0:0): READ CD RECORDED CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
(cd1:ata0:0:0:0): CAM Status: SCSI Status Error
(cd1:ata0:0:0:0): SCSI Status: Check Condition
(cd1:ata0:0:0:0): NOT READY asc:3a,0
(cd1:ata0:0:0:0): Medium not present
(cd1:ata0:0:0:0): Recovered Sense
(cd1:ata0:0:0:0): READ CD RECORDED CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
(cd1:ata0:0:0:0): CAM Status: SCSI Status Error
(cd1:ata0:0:0:0): SCSI Status: Check Condition
(cd1:ata0:0:0:0): NOT READY asc:3a,0
(cd1:ata0:0:0:0): Medium not present
 <init gets executed>

I'm not sure whether there's another 30-sec delay between the cd1 and
cd0 probes or not.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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