aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/scsi/mpi3mr/mpi/mpi30_ioc.h
diff options
context:
space:
mode:
authorRanjan Kumar <ranjan.kumar@broadcom.com>2024-03-13 15:37:43 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2024-03-25 18:14:32 -0400
commite8a5a3c3eb58c6639a9c259e23d82ff3ca6622d4 (patch)
tree5e9edd8864af86e0e9d426b46f53dec16b98648c /drivers/scsi/mpi3mr/mpi/mpi30_ioc.h
parentscsi: mpi3mr: Clear ioctl blocking flag for an unresponsive controller (diff)
downloadwireguard-linux-e8a5a3c3eb58c6639a9c259e23d82ff3ca6622d4.tar.xz
wireguard-linux-e8a5a3c3eb58c6639a9c259e23d82ff3ca6622d4.zip
scsi: mpi3mr: Set the WriteSame Divert Capability in the IOCInit MPI Request
Modify driver to set the Write Same Divert Capability bit in the IOCInit message for the firmware to know that the driver is capable of diverting certain Write Same commands as defined by the MPI specification. Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com> Signed-off-by: Sathya Prakash <sathya.prakash@broadcom.com> Link: https://lore.kernel.org/r/20240313100746.128951-5-ranjan.kumar@broadcom.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mpi3mr/mpi/mpi30_ioc.h')
-rw-r--r--drivers/scsi/mpi3mr/mpi/mpi30_ioc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/mpi3mr/mpi/mpi30_ioc.h b/drivers/scsi/mpi3mr/mpi/mpi30_ioc.h
index 0cb24fc03620..85b91583bacf 100644
--- a/drivers/scsi/mpi3mr/mpi/mpi30_ioc.h
+++ b/drivers/scsi/mpi3mr/mpi/mpi30_ioc.h
@@ -27,7 +27,7 @@ struct mpi3_ioc_init_request {
__le64 sense_buffer_free_queue_address;
__le64 driver_information_address;
};
-
+#define MPI3_IOCINIT_MSGFLAGS_WRITESAMEDIVERT_SUPPORTED (0x08)
#define MPI3_IOCINIT_MSGFLAGS_SCSIIOSTATUSREPLY_SUPPORTED (0x04)
#define MPI3_IOCINIT_MSGFLAGS_HOSTMETADATA_MASK (0x03)
#define MPI3_IOCINIT_MSGFLAGS_HOSTMETADATA_NOT_USED (0x00)