Douglas Gilbert wrote: > patman@aracnet.com wrote: > >>On Fri, Dec 23, 2005 at 12:12:18AM +0000, Chris Paulson-Ellis wrote: >> >> >> >>>>Why not just fix the kernel when it's filling in the page 83 >>>>data to pull the serial from page 80 instead of putting *that* there? >>>> >>>>Bill >>> >>>Indeed. Here's the patch. Now I have 3 ways to fix this. Any more anyone? >> >> >>This is the best approach, I think you could even remove page 0x83 support >>and still be SCSI compliant. > > > Pat, > Not since 2000/2001 ... The VPD device identification page > (0x83) and the "Supported VPD pages" page (0x0) are > mandatory in SPC-2 (ANSI INCITS 351-2001), SPC-3 (soon > to be a standard) and SPC-4. Recent SCSI to ATA > Translation drafts (e.g. sat-r07a.pdf) define a mapping > for the naa-5 identifier defined in ATA/ATAPI-7 and > ATA/ATAPI-8 (IDENTIFY DEVICE response words 108 to 111) > to VPD page 0x83. There are also moves afoot to get a > similar wwn identifier into the IDENTIFY PACKET DEVICE > response. > > SAT defines two device id descriptors for VPD page 0x83: > - based on WWN naa-5 (described above) > - based on model number and serial number (IDENTIFY > DEVICE response words 27-46 and 10-19) > > So removing VPD page 0x83 would be a retrograde step > IMO. The libata implementation should be enhanced to > support one or both of the above descriptors as they > have a defined format (unlike serial number VPD page (0x80)). > libata's current approach to yield "Linux ATA-SCSI simulator" > for the loosely formatted ASCII identification descriptor > is just a place holder. The attachment adds the second item above to the patch suggested by Chris Paulson-Ellis in: http://marc.theaimsgroup.com/?l=linux-hotplug-devel&m=113529667019652&w=2 The patch is against lk 2.6.15 and was tested on a sil controller with a Seagate ST380013AS sata disk. Changelog: - make existing libata VPD device identification page (0x83) supply the ATA serial number in the libata "vendor specific" designator (from Chris Paulson-Ellis) - add a "t10 vendor id based" designator as defined in SAT rev 07a (section 10.3.4.2.3) that supplies ATA model and serial numbers - make the libata VPD page 0x83 more extensible (for adding more designators in the future). Signed-off-by: Douglas Gilbert Doug Gilbert