Re: [PATCH] Fix problem with size of allocation in libsas

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: James Bottomley <James.Bottomley@...>
Cc: Jesper Juhl <jesper.juhl@...>, linux-scsi <linux-scsi@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Sunday, November 11, 2007 - 8:33 pm

James Bottomley wrote:

The response size of SMP DISCOVER keeps growing with
each rev. Currently in SAS-2 revision 12 it is 112 bytes long!
The original SAS standard and SAS 1.1 have implicit response
sizes and for DISCOVER that is 56 bytes.

To be compliant with SAS-2 the code should read byte 3 of
a DISCOVER response. If it is zero then the response length
is 56 bytes, otherwise the response length is that many
dwords (i.e. 4 byte units) plus 4 bytes for the CRC.
[Similar logic applies to many other SMP responses.]

I have tables for all SMP requests and response (up until
SAS-2 rev 12) in my smp_utils package, see the smp_lib.c
file.

Doug Gilbert
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix problem with size of allocation in libsas, Jesper Juhl, (Sun Nov 11, 7:24 pm)
Re: [PATCH] Fix problem with size of allocation in libsas, James Bottomley, (Sun Nov 11, 8:00 pm)
Re: [PATCH] Fix problem with size of allocation in libsas, Douglas Gilbert, (Sun Nov 11, 8:33 pm)
Re: [PATCH] Fix problem with size of allocation in libsas, James Bottomley, (Sun Nov 11, 8:45 pm)
Re: [PATCH] Fix problem with size of allocation in libsas, James Bottomley, (Sun Nov 11, 8:37 pm)