Ticket #2469 (closed bug: fixed)

Opened 6 months ago

Last modified 6 months ago

Haiku (r26165) does not detect SATA DVD/CDROM drive.

Reported by: Bouncer Owned by: marcusoverhagen
Priority: normal Milestone: R1
Component: Drivers/Disk Version: R1 development
Cc: Blocked By:
Platform: All Blocking:

Description

Ever since I installed it (several months ago) - Haiku has not been able to recognize my SATA DVD drive.

I am currently testing with Haiku r26265.

Previously Haiku had no problems with a PATA DVD drive from the same manufacturer.

I am testing on real hardware. Intel Quad Core CPU. The DVD unit in question is a LITEON Model LH-20A1S12C.

Linux has no problems recognizing (or even installing from) from this SATA DVD. So I know it is in good working order.

Haiku simply cannot see this drive. It does not show up in the mount list. It does not appear on the list if I cycle a CD a few times. Other SATA Hard Drives do register properly.

I will attempt to include my syslog

Attachments

my.syslog (393.3 KB) - added by Bouncer 6 months ago.
syslog.r26212 (97.6 KB) - added by Bouncer 6 months ago.
my.syslog.2 (275.2 KB) - added by Bouncer 6 months ago.
haiku-cdda-syslog.txt (13.9 KB) - added by marcusoverhagen 6 months ago.
different CD-ROM

Change History

Changed 6 months ago by Bouncer

Changed 6 months ago by anevilyak

  • owner changed from axeld to marcusoverhagen
  • component changed from - General to Drivers/Disk

I might be wrong but I thought the SATA driver is currently missing ATAPI support, meaning this won't work yet no matter what you do. Switching to correct component in any case.

Changed 6 months ago by marcusoverhagen

  • status changed from new to assigned

The AHCI sata driver already supports ATAPI. (works for me :-)

On this machine, the drive is detected, but some ATAPI command seems to fail.

ata command 0xa0 is the PACKET command, more debug output needs to be added to see which ATAPI command is beeing executed.

3386	KERN: ahci: AHCIPort::PostReset port 3
3387	KERN: ahci: device signature 0xeb140101 (ATAPI)
3388	KERN: ahci: AHCIPort::ScsiInquiry port 3
3389	KERN: ahci: model number:  LITE-ON DVDRW LH-20A1S                 
3390	KERN: ahci: serial number:                     
3391	KERN: ahci: firmware rev.: 9L08   
3392	KERN: ahci: sg_memcpy phyAddr 0x0325b388, addr 0x83a5b388, size 96
3393	KERN: ahci: ahci_get_restrictions, cookie 0x90bc5480
3394	KERN: ahci: AHCIPort::ScsiGetRestrictions port 3: isATAPI 1, noAutoSense 1, maxBlocks 256
3395	KERN: publish device: node 0x90c1fc60, path disk/scsi/0/3/0/raw, module generic/block_io/device_v1

3656	KERN: ahci: AHCIPort::InterruptErrorHandler port 3, fCommandsActive 0x00000001, is 0x40000001, ci 0x00000001
3657	KERN: ahci: ssts 0x00000113
3658	KERN: ahci: sctl 0x00000300
3659	KERN: ahci: serr 0x00000000
3660	KERN: ahci: sact 0x00000000
3661	KERN: ahci: Task File Error
3662	KERN: ahci: sata_request::finish ATA_ERR set for command 0xa0
3663	KERN: ahci: sata_request::finish status 0x51, error 0x20

Changed 6 months ago by marcusoverhagen

Please create a new syslog with r26205 or newer. I added error output for ATAPI commands.

Changed 6 months ago by Bouncer

OK - Here is the latest syslog, for r26212

Changed 6 months ago by Bouncer

Changed 6 months ago by marcusoverhagen

Are you sure that a CD is inserted? Can you please insert / cycle a CD and try again?

Changed 6 months ago by Bouncer

Changed 6 months ago by Bouncer

OK.

1) First - I boot a fresh Haiku installation (r26212) with an Audio CD

in the DVD drive.

2) Since it does not see the disk - I cycle disk out and back in to the drive.

Again - it does not see it.

3) I remove the Audio CD and load a data CD (an anonymous MS driver install disk).

It does not auto-mount. But I do see an entry in the Mount list and I am able to mount it.

4) Next - I unmount and remove the data CD and re-insert the Audio CD.

Again - it is not recognized.

Have I been mistaken? Does Haiku not support regular audio CD's ?

Changed 6 months ago by axeld

Definitely works over here with a SATA DVD ROM drive. What audio CD is it? Have you tried different ones?

Changed 6 months ago by marcusoverhagen

The only failing commands are: "ATAPI packet 00", Test unit ready, fails when no CD is inserted. "ATAPI packet 28", Read, might fail for non-data CDs.

Auto-mounting doesn't seem to work for me, too. Execept during boot.

I don't know why audio CDs don't work. Perhaps B_SCSI_READ_CD uses the wrong command for this CD-ROM.

Changed 6 months ago by marcusoverhagen

different CD-ROM

Changed 6 months ago by marcusoverhagen

reproducible here, audio CDs can't be read with CDDA

Changed 6 months ago by marcusoverhagen

Should be fixed in r26332, please test.

Changed 6 months ago by Bouncer

I am pleased to report that audio CD's in my SATA DVD ROM are now being detected. I was able to mount and unmount the CD's without any incidents. All Files are viewable.

I think this ticket can be closed now.

Changed 6 months ago by marcusoverhagen

  • status changed from assigned to closed
  • resolution set to fixed

Changed 6 months ago by axeld

I just checked on another system of mine, and there the SATA DVD-ROM doesn't seem to work. I'll investigate this before reopening the ticket, though.

Note: See TracTickets for help on using tickets.