Re: ATA CDROM no more detected with ATA_CAM under VMWare WS

From: Claude Buisson <clbuisson_at_orange.fr>
Date: Fri, 26 Feb 2010 00:14:52 +0100
Alexander Motin wrote:
> Claude Buisson wrote:
>> Updating a -CURRENT system from Jan 10 to Feb 21, under VMWare WS 5.5.9,
>> the
>> virtual ATA CDROM is no more detected.
>> This is with an ATA_CAM kernel.
>>
>> The CDROM is detected with a non ATA_CAM kernel.
>>
>> ata1: reset tp1 mask=01 ostat0=50 ostat1=ff
>> ata1: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb
>> ata1: reset tp2 stat0=00 stat1=00 devices=0x10000
>> (aprobe0:ata1:0:0:0): SIGNATURE: eb14
>> (aprobe0:ata1:0:0:0): Spinning up device
>> (aprobe0:ata1:0:0:0): ATA status error
>> (aprobe0:ata1:0:0:0): SETFEATURES SPIN-UP. ACB: ef 07 00 00 00 40 00 00
>> 00 00 00 00
>> (aprobe0:ata1:0:0:0): CAM status: ATA Status Error
>> (aprobe0:ata1:0:0:0): ATA status: 51 (DRDY SERV ERR), error: 04 (ABRT )
>> (aprobe0:ata1:0:0:0): RES: 51 04 00 00 00 00 00 00 00 00 00
>> (aprobe0:ata1:0:0:0): Retrying command
>
> Seems device reports Response Incomplete bit set in IDENTIFY PACKET
> DEVICE command result, which makes CAM try to power it up. Could you
> comment ATA_RESP_INCOMPLETE check in ata_xpt.c and show me result of
> `camcontrol identify cd0 -v` output after it?
>

Here it is:

root_at_zaza# camcontrol identify cd0 -v
pass1: Raw identify data:
    0: 85c4 0000 0000 0000 0000 0000 0000 0000
    8: 0000 0000 3130 3030 3030 3030 3030 3030
   16: 3030 3030 3030 3031 0000 0040 0000 3030
   24: 3030 3030 3031 564d 7761 7265 2056 6972
   32: 7475 616c 2049 4445 2043 4452 4f4d 2044
   40: 7269 7665 2020 2020 2020 2020 2020 0000
   48: 0000 0f00 0000 0200 0200 0006 0000 0000
   56: 0000 0000 0000 0000 0000 0000 0007 0007
   64: 0003 0078 0078 0078 0078 0000 0000 0000
   72: 0000 0004 0009 0000 0000 0000 0000 0000
   80: 001e 0017 4218 4000 4000 4218 4000 4000
   88: 0407 0000 0000 0000 0000 0000 0000 0000
   96: 0000 0000 0000 0000 0000 0000 0000 0000
  104: 0000 0000 0000 0000 0000 0000 0000 0000
  112: 0000 0000 0000 0000 0000 0000 0000 0000
  120: 0000 0000 0000 0000 0000 0000 0000 0000
  128: 0000 0000 0000 0000 0000 0000 0000 0000
  136: 0000 0000 0000 0000 0000 0000 0000 0000
  144: 0000 0000 0000 0000 0000 0000 0000 0000
  152: 0000 0000 0000 0000 0000 0000 0000 0000
  160: 0000 0000 0000 0000 0000 0000 0000 0000
  168: 0000 0000 0000 0000 0000 0000 0000 0000
  176: 0000 0000 0000 0000 0000 0000 0000 0000
  184: 0000 0000 0000 0000 0000 0000 0000 0000
  192: 0000 0000 0000 0000 0000 0000 0000 0000
  200: 0000 0000 0000 0000 0000 0000 0000 0000
  208: 0000 0000 0000 0000 0000 0000 0000 0000
  216: 0000 0000 0000 0000 0000 0000 0000 0000
  224: 0000 0000 0000 0000 0000 0000 0000 0000
  232: 0000 0000 0000 0000 0000 0000 0000 0000
  240: 0000 0000 0000 0000 0000 0000 0000 0000
  248: 0000 0000 0000 0000 0000 0000 0000 0000
pass1: <VMware Virtual IDE CDROM Drive 00000001> ATAPI-4 device
pass1: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)

protocol              ATA/ATAPI-4
device model          VMware Virtual IDE CDROM Drive
firmware revision     00000001
serial number         10000000000000000001
cylinders             0
heads                 0
sectors/track         0
sector size           logical 512, physical 512, offset 0
LBA supported
LBA48 not supported
PIO supported         PIO4
DMA supported         WDMA2 UDMA2

Feature                      Support  Enable    Value           Vendor
read ahead                     no       no
write cache                    no       no
flush cache                    no       no
overlap                        no
Tagged Command Queuing (TCQ)   no       no
SMART                          no       no
microcode download             no       no
security                       no       no
power management               yes      yes
advanced power management      no       no      0/0x00
automatic acoustic management  no       no      0/0x00  0/0x00
media status notification      no       no
power-up in Standby            no       no
write-read-verify              no       no      0/0x0
unload                         no       no
free-fall                      no       no
data set management (TRIM)     no

dmesg say:

cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <SONY DVD+-RW DW-D56A PDS7> Removable CD-ROM SCSI-0 device
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present

The VMWare virtual device being connected at boot the the physical device

Hope this help,

Claude Buisson
Received on Thu Feb 25 2010 - 22:15:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:01 UTC