James/linux-scsi, 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@xxxxxxxxx> diff -Naur scsi-misc.old/drivers/scsi/megaraid/megaraid_sas_fusion.c scsi-misc.new/drivers/scsi/megaraid/megaraid_sas_fusion.c --- scsi-misc.old/drivers/scsi/megaraid/megaraid_sas_fusion.c 2013-02-08 13:20:39.000000000 -0800 +++ scsi-misc.new/drivers/scsi/megaraid/megaraid_sas_fusion.c 2013-02-09 22:41:23.871865168 -0800 @@ -1206,7 +1206,7 @@ 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)) && diff -Naur scsi-misc.old/drivers/scsi/megaraid/megaraid_sas_fusion.h scsi-misc.new/drivers/scsi/megaraid/megaraid_sas_fusion.h --- scsi-misc.old/drivers/scsi/megaraid/megaraid_sas_fusion.h 2013-02-08 13:20:39.000000000 -0800 +++ scsi-misc.new/drivers/scsi/megaraid/megaraid_sas_fusion.h 2013-02-09 22:41:38.372866533 -0800 @@ -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
Attachment:
megaraid_sas.patch1
Description: Binary data