sense buffer length for REQUEST SENSE?
The sense buffer size is 64 bytes.
According to SAM-3, to make sure that that an application client has gotten all the sense data the sense buffer should be 252 bytes.
How safe am I to actually set the allocation length to 252 bytes? (in terms of borken hardware devices, etc.)
Signature · 1 line
Luben
Quoted 2 lines · Luben Tuikov
The sense buffer size is 64 bytes.
I can plead guilty to that. A finger in the air trade off between the standard ** and reality. It previously was 16 bytes (changed in lk 2.3 I think). At 64 bytes it matches the size of the Scsi_Cmnd::sense_buffer array (and Scsi_Request::sr_sense_buffer).
Quoted 1 line
According to SAM-3, to make sure that that an application
SAM-3 is new (it branched off recently from SAM-2) and adds SAS to its protocol tables. SAS is SCSI over Serial ATA type infrastructure ... SAS may displace Ultra 640.
Quoted 2 lines
client has gotten all the sense data the sense buffer should be 252 bytes.
Yes I can see that number in SPC-3. Has anyone every seen an actual REQUEST SENSE response (sense buffer) anywhere near that size? The new "descriptor" sense data format should further reduce the size requirement.
Quoted 2 lines
How safe am I to actually set the allocation length to 252 bytes? (in terms of borken hardware devices, etc.)
Following the lead from 36 byte INQUIRYs, what does Windows do?
BTW I have not seen a report of the current 64 byte allocation length causing a problem.
** SCSI-2 said 18 bytes or greater and now SPC-3 says at least
252 bytes.
Doug Gilbert
Quoted 5 lines
Yes I can see that number in SPC-3. Has anyone every seen an actual REQUEST SENSE response (sense buffer) anywhere near that size? The new "descriptor" sense data format should further reduce the size requirement.
Some specialized RAID units do this, IIRC. Very rare.
Every now and then I get a Fibre Channel disk that actually sends back via the QLogic HBA several continuation responses- that means the sense data is > 64 bytes.
I wouldn't expect this to be anything but rare. Even if you have such data, it's probably very application specific that you'd *do* anything with it. I would think 64 is fine. Perhaps one should architect an exception condition that is similar to AUTOSENSE FAILED, i.e. AUTOSENSE OVERFLOW- it's up to the HBA to store the 252 bytes of data somewhere until a REQUEST SENSE comes down to pick it up. And the REQUEST SENSE can have more than enough data space allocated.
Quoted 8 lines · Douglas Gilbert
Quoted 2 lines · Luben Tuikov
client has gotten all the sense data the sense buffer should be 252 bytes.
Yes I can see that number in SPC-3. Has anyone every seen an actual REQUEST SENSE response (sense buffer) anywhere near that size? The new "descriptor" sense data format should further reduce the size requirement.
Looking at the SCSI spec of a 12" WORM autoloader I've worked with, it uses up to 246 bytes...
Signature · 2 lines
Steve McIntyre, Cambridge, UK. [email protected] Support the Campaign for Audiovisual Free Expression: http://www.eff.org/cafe/