mpt2sas: Fix missing reference tag seed with Type 2 devices
PATCH 1/1 mpt2sas: Fix missing reference tag seed with Type 2 devices
Ensure that the initial reference tag is passed on to the HBA firmware for DIF Type 2 devices.
Signed-off-by Martin K. Petersen <[email protected]>
drivers/scsi/mpt2sas/mpt2sas_scsih.c +1 -7
@@ -3230,6 +3230,7 @@ _scsih_setup_eedp(struct scsi_cmnd *scmd, Mpi2SCSIIORequest_t *mpi_request)switch (prot_type) {case SCSI_PROT_DIF_TYPE1 : +case SCSI_PROT_DIF_TYPE2 :/* * enable ref/guard checking
@@ -3242,13 +3243,6 @@ _scsih_setup_eedp(struct scsi_cmnd *scmd, Mpi2SCSIIORequest_t *mpi_request)cpu_to_be32 (scsi_get_lba (scmd));break ; -case SCSI_PROT_DIF_TYPE2 : - - eedp_flags |=MPI2_SCSIIO_EEDPFLAGS_INC_PRI_REFTAG | -MPI2_SCSIIO_EEDPFLAGS_CHECK_REFTAG | -MPI2_SCSIIO_EEDPFLAGS_CHECK_GUARD ; -break ; -case SCSI_PROT_DIF_TYPE3 :/*
James,
We discuss this patch internally and found as valid candidate to be ACKed. Please consider this patch as an ACKed.
Thanks, Kashyap
Quoted 43 lines
-----Original Message-----
From: Martin K. Petersen [mailto:[email protected]]
Sent: Tuesday, March 08, 2011 12:30 PM
To: [email protected]; [email protected]; Desai, Kashyap; Moore, Eric
Subject: [PATCH] mpt2sas: Fix missing reference tag seed with Type 2 devicesEnsure that the initial reference tag is passed on to the HBA firmware for DIF Type 2 devices.
Signed-off-by Martin K. Petersen <[email protected]>drivers/scsi/mpt2sas/mpt2sas_scsih.c +1
-0@@ -3230,6 +3230,7 @@ _scsih_setup_eedp(struct scsi_cmnd *scmd, Mpi2SCSIIORequest_t *mpi_request) switch (prot_type) {case SCSI_PROT_DIF_TYPE1 : +case SCSI_PROT_DIF_TYPE2 :/* drivers/scsi/mpt2sas/mpt2sas_scsih.c +0
-7* enable ref/guard checking @@ -3242,13 +3243,6 @@ _scsih_setup_eedp(struct scsi_cmnd *scmd, Mpi2SCSIIORequest_t *mpi_request)cpu_to_be32 (scsi_get_lba (scmd ));break ; -case SCSI_PROT_DIF_TYPE2 : - - eedp_flags |=MPI2_SCSIIO_EEDPFLAGS_INC_PRI_REFTAG | -MPI2_SCSIIO_EEDPFLAGS_CHECK_REFTAG | -MPI2_SCSIIO_EEDPFLAGS_CHECK_GUARD ; -break ; -case SCSI_PROT_DIF_TYPE3 :/*