* [RFC] libata: add MODE_SENSE(6) emulation?
@ 2005-04-06 7:46 Albert Lee
2005-05-16 2:29 ` Jeff Garzik
0 siblings, 1 reply; 3+ messages in thread
From: Albert Lee @ 2005-04-06 7:46 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Linux IDE, Bartlomiej Zolnierkiewicz, Doug Maxey
Hi Jeff,
Even though libata sets sdev->use_10_for_ms = 1;
libata still receives MODE_SENSE(6) and MODE_SELECT(6) commands during the test.
(These commands seems to be coming from the user space, not from the SCSI mid-layer.)
Most ATAPI devices don't like it, and either return error or time out.
(Ex.
Attached scsi CD-ROM sr0 at scsi7, channel 0, id 0, lun 0
ata7: command 0xa0 timeout, stat 0x50 host_stat 0x1)
Should MODE_SENSE(6) / MODE_SELECT(6) emulation be added to libata
to fix this? This can also make the ATAPI devices look more like real SCSI devices.
Albert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] libata: add MODE_SENSE(6) emulation?
2005-04-06 7:46 [RFC] libata: add MODE_SENSE(6) emulation? Albert Lee
@ 2005-05-16 2:29 ` Jeff Garzik
2005-05-16 13:21 ` Mark Lord
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2005-05-16 2:29 UTC (permalink / raw)
To: Albert Lee; +Cc: Linux IDE, Bartlomiej Zolnierkiewicz, Doug Maxey
Albert Lee wrote:
> Hi Jeff,
>
> Even though libata sets sdev->use_10_for_ms = 1;
> libata still receives MODE_SENSE(6) and MODE_SELECT(6) commands during
> the test.
> (These commands seems to be coming from the user space, not from the
> SCSI mid-layer.)
>
> Most ATAPI devices don't like it, and either return error or time out.
> (Ex.
> Attached scsi CD-ROM sr0 at scsi7, channel 0, id 0, lun 0
> ata7: command 0xa0 timeout, stat 0x50 host_stat 0x1)
>
> Should MODE_SENSE(6) / MODE_SELECT(6) emulation be added to libata
> to fix this? This can also make the ATAPI devices look more like real
> SCSI devices.
I would prefer not to add this emulation.
This has been standard behavior for ATAPI devices, and was the reason
that use_10_for_{ms,rw} was created inside the kernel.
Userland applications should be fixed instead: the current SCSI MMC
specification does not list MODE SENSE(6) either, and ATAPI devices are
most like MMC devices.
The applications should be updated with more knowledge of the MMC
specification.
Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] libata: add MODE_SENSE(6) emulation?
2005-05-16 2:29 ` Jeff Garzik
@ 2005-05-16 13:21 ` Mark Lord
0 siblings, 0 replies; 3+ messages in thread
From: Mark Lord @ 2005-05-16 13:21 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Albert Lee, Linux IDE, Bartlomiej Zolnierkiewicz, Doug Maxey
One thing that should get added to libata
is the ability to issue READ_BUFFER_CAPACITY (5C)
during write operations to CD/DVD-RW.
That way, userland apps can show the buffer usage
and adapt data transmission to match etc..
Just like they do today with ide-scsi.
Or is this already there?
Cheers
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-16 13:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-06 7:46 [RFC] libata: add MODE_SENSE(6) emulation? Albert Lee
2005-05-16 2:29 ` Jeff Garzik
2005-05-16 13:21 ` Mark Lord
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).