diff options
author | adam radford <aradford@gmail.com> | 2013-02-09 18:29:15 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-02-22 10:25:18 -0500 |
commit | 046c9ec259d271e7988c7fbe80b8bddf3c8efdc4 (patch) | |
tree | 84f5640211be4c940d685e8ce81c5ef652a83191 | |
parent | f356bef134dda564fcbe3b41a5c7b932c1964326 (diff) |
[SCSI] megaraid_sas: Add 4k FastPath DIF support
The following patch for megaraid_sas will allow Fastpath T10PI/DIF
frame builds to work with 4k sector size.
Signed-off-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 | ||||
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas_fusion.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 74030aff69ad..a6bccf097fc6 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c | |||
@@ -1206,7 +1206,7 @@ megasas_set_pd_lba(struct MPI2_RAID_SCSI_IO_REQUEST *io_request, u8 cdb_len, | |||
1206 | MPI2_SCSIIO_EEDPFLAGS_INSERT_OP; | 1206 | MPI2_SCSIIO_EEDPFLAGS_INSERT_OP; |
1207 | } | 1207 | } |
1208 | io_request->Control |= (0x4 << 26); | 1208 | io_request->Control |= (0x4 << 26); |
1209 | io_request->EEDPBlockSize = MEGASAS_EEDPBLOCKSIZE; | 1209 | io_request->EEDPBlockSize = scp->device->sector_size; |
1210 | } else { | 1210 | } else { |
1211 | /* Some drives don't support 16/12 byte CDB's, convert to 10 */ | 1211 | /* Some drives don't support 16/12 byte CDB's, convert to 10 */ |
1212 | if (((cdb_len == 12) || (cdb_len == 16)) && | 1212 | if (((cdb_len == 12) || (cdb_len == 16)) && |
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.h b/drivers/scsi/megaraid/megaraid_sas_fusion.h index a7c64f051996..f68a3cd11d5d 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.h +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.h | |||
@@ -61,7 +61,6 @@ | |||
61 | #define MEGASAS_SCSI_ADDL_CDB_LEN 0x18 | 61 | #define MEGASAS_SCSI_ADDL_CDB_LEN 0x18 |
62 | #define MEGASAS_RD_WR_PROTECT_CHECK_ALL 0x20 | 62 | #define MEGASAS_RD_WR_PROTECT_CHECK_ALL 0x20 |
63 | #define MEGASAS_RD_WR_PROTECT_CHECK_NONE 0x60 | 63 | #define MEGASAS_RD_WR_PROTECT_CHECK_NONE 0x60 |
64 | #define MEGASAS_EEDPBLOCKSIZE 512 | ||
65 | 64 | ||
66 | /* | 65 | /* |
67 | * Raid context flags | 66 | * Raid context flags |