[Cbe-oss-dev] [Q] INQURIY, READ CAPACITY for PS3 BD-ROM

Aegis Lin aegislin at gmail.com
Tue Jan 29 17:34:06 EST 2008


Hi Geert,
Thanks for your information.

After investigation, it seems that (at least for INQUIRY and READ
CAPACITY) lv1 ps3-rom
driver reqeusts that the atapi command sent must be exactly the same
size as the context requests.
So for INQUIRY if a 256-bytes buffer is prepared and CDB is 12 00 00
01 00 00, dxfer_len of sg_io_hdr
must be exactly 256. And for READ CAPACITY, dxfer_len must be 8.

For other drivers if dxfer_len is greater than actually needed, it
will still be acceptable, and resid (ideally)
will be set to (dxfer_len - bytes actually transferred).

Not sure if such restriction is intentional, maybe for security...

Best regards,


On Jan 28, 2008 10:55 PM, Geert Uytterhoeven
<Geert.Uytterhoeven at sonycom.com> wrote:
> On Mon, 28 Jan 2008, Aegis Lin wrote:
>
> I expect there's a small bug in the parameters you pass when submitting your
> commands, as drivers/scsi/scsi_scan.c and drivers/scsi/sr.c can send INQUIRY
> resp. READ_CAPACITY commands that do succeed.
>
> > Is there any public documentation about the PS3 BD-ROM driver APIs?
>
> Unfortunately not.
>
> With kind regards,



More information about the cbe-oss-dev mailing list