Re: scsi-cd + GEOM

From: Dan Nelson <dnelson_at_allantgroup.com>
Date: Thu, 2 Oct 2003 17:12:18 -0500
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_at_allantgroup.com
Received on Thu Oct 02 2003 - 13:12:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:24 UTC