]> Pileus Git - ~andy/linux/commitdiff
[SCSI] megaraid_sas: Add 4k FastPath DIF support
authoradam radford <aradford@gmail.com>
Sat, 9 Feb 2013 23:29:15 +0000 (15:29 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 22 Feb 2013 15:25:18 +0000 (15:25 +0000)
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>
drivers/scsi/megaraid/megaraid_sas_fusion.c
drivers/scsi/megaraid/megaraid_sas_fusion.h

index 74030aff69ade500943cfce018f699af67e670cb..a6bccf097fc6760370f4790a21c42c68ecbfa6fc 100644 (file)
@@ -1206,7 +1206,7 @@ megasas_set_pd_lba(struct MPI2_RAID_SCSI_IO_REQUEST *io_request, u8 cdb_len,
                                MPI2_SCSIIO_EEDPFLAGS_INSERT_OP;
                }
                io_request->Control |= (0x4 << 26);
-               io_request->EEDPBlockSize = MEGASAS_EEDPBLOCKSIZE;
+               io_request->EEDPBlockSize = scp->device->sector_size;
        } else {
                /* Some drives don't support 16/12 byte CDB's, convert to 10 */
                if (((cdb_len == 12) || (cdb_len == 16)) &&
index a7c64f0519965b348c596f968cd0a1ea6eee1587..f68a3cd11d5d93023cde1cb61b8299b236c902ba 100644 (file)
@@ -61,7 +61,6 @@
 #define MEGASAS_SCSI_ADDL_CDB_LEN                   0x18
 #define MEGASAS_RD_WR_PROTECT_CHECK_ALL                    0x20
 #define MEGASAS_RD_WR_PROTECT_CHECK_NONE           0x60
-#define MEGASAS_EEDPBLOCKSIZE                      512
 
 /*
  * Raid context flags