* [RFC] mode pages for ATA/ATAPI devices via libata @ 2005-05-11 18:01 Doug Maxey 2005-05-11 18:42 ` Doug Maxey 2005-05-13 17:06 ` Jeff Garzik 0 siblings, 2 replies; 6+ messages in thread From: Doug Maxey @ 2005-05-11 18:01 UTC (permalink / raw) To: Patrick Mansfield Cc: Jeff Garzik, Doug Gilbert, Albert CC Lee, SCSI development list Howdy, When a ATA/ATAPI device is attached via libata, what should the handling be for mode pages that do not exist in the device? Assuming the page being asked for is 0x83, should libata fake up the page from the IDENTIFY (PACKET) DEVICE data? Or should it just respond there is no page 0x83 as it does now in INQUIRY? Likewise for 0x80? ++doug ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC] mode pages for ATA/ATAPI devices via libata 2005-05-11 18:01 [RFC] mode pages for ATA/ATAPI devices via libata Doug Maxey @ 2005-05-11 18:42 ` Doug Maxey 2005-05-13 5:19 ` Douglas Gilbert 2005-05-13 17:06 ` Jeff Garzik 1 sibling, 1 reply; 6+ messages in thread From: Doug Maxey @ 2005-05-11 18:42 UTC (permalink / raw) To: Doug Maxey Cc: Patrick Mansfield, Jeff Garzik, Doug Gilbert, Albert CC Lee, SCSI development list ahem, the neural pathways are not just worn, they have become ruts. =) s/mode/vpd/. On Wed, 11 May 2005 13:01:25 CDT, Doug Maxey wrote: >Howdy, > >When a ATA/ATAPI device is attached via libata, what should the handling >be for mode pages that do not exist in the device? > >Assuming the page being asked for is 0x83, should libata fake up the >page from the IDENTIFY (PACKET) DEVICE data? Or should it just respond >there is no page 0x83 as it does now in INQUIRY? Likewise for 0x80? > >++doug > >- >To unsubscribe from this list: send the line "unsubscribe linux-scsi" in >the body of a message to majordomo@vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC] mode pages for ATA/ATAPI devices via libata 2005-05-11 18:42 ` Doug Maxey @ 2005-05-13 5:19 ` Douglas Gilbert 2005-05-13 6:03 ` Doug Maxey 0 siblings, 1 reply; 6+ messages in thread From: Douglas Gilbert @ 2005-05-13 5:19 UTC (permalink / raw) To: Doug Maxey Cc: Patrick Mansfield, Jeff Garzik, Albert CC Lee, SCSI development list Doug Maxey wrote: > ahem, the neural pathways are not just worn, they have become ruts. =) > > s/mode/vpd/. > > On Wed, 11 May 2005 13:01:25 CDT, Doug Maxey wrote: > >>Howdy, >> >>When a ATA/ATAPI device is attached via libata, what should the handling >>be for mode pages that do not exist in the device? >> >>Assuming the page being asked for is 0x83, should libata fake up the >>page from the IDENTIFY (PACKET) DEVICE data? Or should it just respond >>there is no page 0x83 as it does now in INQUIRY? Likewise for 0x80? Doug, For ATAPI, the packet interface is almost always carrying a SCSI command set (exceptions anybody??), typically MMC (for CD/DVD drives). Recent SPC-3 drafts (to which MMC-4,5 should comply) have made the device identification VPD page (0x83) mandatory. I haven't seen any compliance yet (or for that matter a drive that implements feature 0x108: LU serial number). For ATA, work is being done on a SCSI-ATA Translation draft standard see: http://www.t10.org/ftp/t10/drafts/sat/sat-r03.pdf section 8.1.3.3 . Doug Gilbert ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC] mode pages for ATA/ATAPI devices via libata 2005-05-13 5:19 ` Douglas Gilbert @ 2005-05-13 6:03 ` Doug Maxey 2005-05-13 8:10 ` Douglas Gilbert 0 siblings, 1 reply; 6+ messages in thread From: Doug Maxey @ 2005-05-13 6:03 UTC (permalink / raw) To: dougg Cc: Doug Maxey, Patrick Mansfield, Jeff Garzik, Albert CC Lee, SCSI development list On Fri, 13 May 2005 15:19:39 +1000, Douglas Gilbert wrote: >Doug Maxey wrote: >> ahem, the neural pathways are not just worn, they have become ruts. =) >> >> s/mode/vpd/. >> >> On Wed, 11 May 2005 13:01:25 CDT, Doug Maxey wrote: >> >>>Howdy, >>> >>>When a ATA/ATAPI device is attached via libata, what should the handling >>>be for mode pages that do not exist in the device? >>> >>>Assuming the page being asked for is 0x83, should libata fake up the >>>page from the IDENTIFY (PACKET) DEVICE data? Or should it just respond >>>there is no page 0x83 as it does now in INQUIRY? Likewise for 0x80? > >Doug, >For ATAPI, the packet interface is almost always >carrying a SCSI command set (exceptions anybody??), call it 95% SCSI, and I will agree. >typically MMC (for CD/DVD drives). Recent SPC-3 drafts >(to which MMC-4,5 should comply) have made the device >identification VPD page (0x83) mandatory. I haven't >seen any compliance yet (or for that matter a drive that >implements feature 0x108: LU serial number). I have recently been looking at the specs for a rebranded Panasonic Slimline DVD/RAM/+R/+RW drive. The EVPD bit on the inquiry page is marked as optional, but returns CHECK CONDITION if set, and you get a 5/24/00 back. :-/ So even if the device had the pages, we can't get to them. Nowhere in the device spec is there an indication they even exist. Of the few ATAPI drive specs I have seen, this seems to be the standard behavior. The data (serial number, anyway), is ostensibly available from the IDENTIFY DEVICE data. However, the bytes available are invariably smashed to a sequence of 0x20. Lastly, looking at a recent version of MtFuji 6.08, support for the EVPD bit is optional. I just suspect it's one of those things that is interpreted as a MUST NOT implement in the cost conscious manufacturing environment. Nor are there any references to VPD data other than the Standard INQUIRY data. > >For ATA, work is being done on a SCSI-ATA Translation >draft standard see: >http://www.t10.org/ftp/t10/drafts/sat/sat-r03.pdf >section 8.1.3.3 . > Ah yes, the other 90% of ATA. But that is just for disks. The optical drive vendors seem to pretty closely follow ftp://ftp.avc-pioneer.com/Mtfuji_6/Spec/Fuji6r08.pdf >Doug Gilbert > ++doug ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC] mode pages for ATA/ATAPI devices via libata 2005-05-13 6:03 ` Doug Maxey @ 2005-05-13 8:10 ` Douglas Gilbert 0 siblings, 0 replies; 6+ messages in thread From: Douglas Gilbert @ 2005-05-13 8:10 UTC (permalink / raw) To: Doug Maxey Cc: Patrick Mansfield, Jeff Garzik, Albert CC Lee, SCSI development list Doug Maxey wrote: > On Fri, 13 May 2005 15:19:39 +1000, Douglas Gilbert wrote: > >>Doug Maxey wrote: >> >>>ahem, the neural pathways are not just worn, they have become ruts. =) >>> >>>s/mode/vpd/. >>> >>>On Wed, 11 May 2005 13:01:25 CDT, Doug Maxey wrote: >>> >>> >>>>Howdy, >>>> >>>>When a ATA/ATAPI device is attached via libata, what should the handling >>>>be for mode pages that do not exist in the device? >>>> >>>>Assuming the page being asked for is 0x83, should libata fake up the >>>>page from the IDENTIFY (PACKET) DEVICE data? Or should it just respond >>>>there is no page 0x83 as it does now in INQUIRY? Likewise for 0x80? >> >>Doug, >>For ATAPI, the packet interface is almost always >>carrying a SCSI command set (exceptions anybody??), > > > call it 95% SCSI, and I will agree. > > >>typically MMC (for CD/DVD drives). Recent SPC-3 drafts >>(to which MMC-4,5 should comply) have made the device >>identification VPD page (0x83) mandatory. I haven't >>seen any compliance yet (or for that matter a drive that >>implements feature 0x108: LU serial number). > > > I have recently been looking at the specs for a rebranded Panasonic > Slimline DVD/RAM/+R/+RW drive. The EVPD bit on the inquiry page is marked > as optional, but returns CHECK CONDITION if set, and you get a 5/24/00 > back. :-/ So even if the device had the pages, we can't get to them. > Nowhere in the device spec is there an indication they even exist. Getting compliance via the SAM/SPC/device_type_command_set route takes a long time. So I'm happy to report that recent SAS 1.1 drafts (soon to be set in stone) have a new section telling firmware engineers exactly what they "shall" support in the device identification VPD page. > Of the few ATAPI drive specs I have seen, this seems to be the standard > behavior. The data (serial number, anyway), is ostensibly available > from the IDENTIFY DEVICE data. However, the bytes available are > invariably smashed to a sequence of 0x20. > > Lastly, looking at a recent version of MtFuji 6.08, support for the EVPD bit > is optional. I just suspect it's one of those things that is interpreted > as a MUST NOT implement in the cost conscious manufacturing environment. > Nor are there any references to VPD data other than the Standard > INQUIRY data. > > >>For ATA, work is being done on a SCSI-ATA Translation >>draft standard see: >>http://www.t10.org/ftp/t10/drafts/sat/sat-r03.pdf >>section 8.1.3.3 . >> > > > Ah yes, the other 90% of ATA. But that is just for disks. Probably true yet the SAT draft has a "14 Translation for ATAPI devices" section. > The optical drive vendors seem to pretty closely follow > ftp://ftp.avc-pioneer.com/Mtfuji_6/Spec/Fuji6r08.pdf Thanks, I'll look at this document. BTW I know that the libata implementers are keeping a close eye on SAT. Doug Gilbert ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC] mode pages for ATA/ATAPI devices via libata 2005-05-11 18:01 [RFC] mode pages for ATA/ATAPI devices via libata Doug Maxey 2005-05-11 18:42 ` Doug Maxey @ 2005-05-13 17:06 ` Jeff Garzik 1 sibling, 0 replies; 6+ messages in thread From: Jeff Garzik @ 2005-05-13 17:06 UTC (permalink / raw) To: Doug Maxey Cc: Patrick Mansfield, Doug Gilbert, Albert CC Lee, SCSI development list Doug Maxey wrote: > Howdy, > > When a ATA/ATAPI device is attached via libata, what should the handling > be for mode pages that do not exist in the device? > > Assuming the page being asked for is 0x83, should libata fake up the > page from the IDENTIFY (PACKET) DEVICE data? Or should it just respond > there is no page 0x83 as it does now in INQUIRY? Likewise for 0x80? For ATA, it should be emulated according to T10 SCT. For ATAPI, it should be passed through to the device in almost all cases. I'm not terribly interested even in adding support for the T10 SCT-suggested stuff for ATAPI. Jeff ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-05-13 17:06 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-05-11 18:01 [RFC] mode pages for ATA/ATAPI devices via libata Doug Maxey 2005-05-11 18:42 ` Doug Maxey 2005-05-13 5:19 ` Douglas Gilbert 2005-05-13 6:03 ` Doug Maxey 2005-05-13 8:10 ` Douglas Gilbert 2005-05-13 17:06 ` Jeff Garzik
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox