mpi3mr: Few Enhancements and minor fixes
Subsystems (2)
v4 cover mpi3mr: Few Enhancements and minor fixes
Few Enhancements and minor fixes of mpi3mr driver.
Changes since v3:
- Mistakenly ORING was left which is fixed.
Changes since v2:
- Fixed test robot build warnings
Changes since v1:
- Updated Function name to mpi3mr_refresh_tgtdevs and changed logical condition
- Updated the patch headline .
- Reverted the SCSIIOSTATUSREPLY change as it was unintentionally removed.
Ranjan Kumar (7):
mpi3mr: Block devices are not removed from OS even vd's are offlined
mpi3mr: Set MPI request flags appropriately
mpi3mr: Clear controller-wide flag that is used to block IOCTLS for
the unresponsive controller
mpi3mr: Set the WriteSame Divert Capability in the IOCInit MPI Request
mpi3mr: Debug ability improvements
mpi3mr: Update MPI Headers to revision 31
mpi3mr: driver version upgrade to 8.8.1.0.50
drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h | 3 +++ drivers/scsi/mpi3mr/mpi/mpi30_image.h | 20 ++++---------- drivers/scsi/mpi3mr/mpi/mpi30_ioc.h | 20 ++++++++------ drivers/scsi/mpi3mr/mpi/mpi30_transport.h | 2 +- drivers/scsi/mpi3mr/mpi3mr.h | 16 +++++++----- drivers/scsi/mpi3mr/mpi3mr_app.c | 21 ++++++++++----- drivers/scsi/mpi3mr/mpi3mr_fw.c | 32 +++++++++++++++-------- drivers/scsi/mpi3mr/mpi3mr_os.c | 12 ++++----- 8 files changed, 72 insertions(+), 54 deletions(-)
Signature · 1 line
2.31.1
PATCH v4 1/7 mpi3mr: Block devices are not removed from OS even vd's are offlined
The driver did not remove the virtual disk that was exposed as hidden and offline after the controller was reset.
Drive is removed from OS when firmware sends "device added" event with hidden bit set or access status indicating inability to accept I/Os.
--- drivers/scsi/mpi3mr/mpi3mr.h | 2 +- drivers/scsi/mpi3mr/mpi3mr_os.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/scsi/mpi3mr/mpi3mr.h +1 -1
@@ -1348,7 +1348,7 @@ void mpi3mr_wait_for_host_io(struct mpi3mr_ioc *mrioc, u32 timeout);void mpi3mr_cleanup_fwevt_list (struct mpi3mr_ioc *mrioc);void mpi3mr_flush_host_io (struct mpi3mr_ioc *mrioc);void mpi3mr_invalidate_devhandles (struct mpi3mr_ioc *mrioc); -void mpi3mr_rfresh_tgtdevs (struct mpi3mr_ioc *mrioc); +void mpi3mr_refresh_tgtdevs (struct mpi3mr_ioc *mrioc);void mpi3mr_flush_delayed_cmd_lists (struct mpi3mr_ioc *mrioc);void mpi3mr_check_rh_fault_ioc (struct mpi3mr_ioc *mrioc,u32 reason_code);void mpi3mr_print_fault_info (struct mpi3mr_ioc *mrioc);
drivers/scsi/mpi3mr/mpi3mr_os.c +5 -5
@@ -1029,7 +1029,7 @@ mpi3mr_update_sdev(struct scsi_device *sdev, void *data) }/** -* mpi3mr_rfresh_tgtdevs - Refresh target device exposure +* mpi3mr_refresh_tgtdevs - Refresh target device exposure * @mrioc: Adapter instance reference * * This is executed post controller reset to identify any
@@ -1039,7 +1039,7 @@ mpi3mr_update_sdev(struct scsi_device *sdev, void *data)* Return: Nothing. */ -void mpi3mr_rfresh_tgtdevs (struct mpi3mr_ioc *mrioc) +void mpi3mr_refresh_tgtdevs (struct mpi3mr_ioc *mrioc) {struct mpi3mr_tgt_dev *tgtdev, *tgtdev_next;struct mpi3mr_stgt_priv_data *tgt_priv;
@@ -1047,8 +1047,8 @@ void mpi3mr_rfresh_tgtdevs(struct mpi3mr_ioc *mrioc)dprint_reset (mrioc,"refresh target devices: check for removals\n" );list_for_each_entry_safe (tgtdev, tgtdev_next, &mrioc->tgtdev_list, list) { -if ((tgtdev->dev_handle ==MPI3MR_INVALID_DEV_HANDLE ) && - tgtdev->is_hidden && +if (((tgtdev->dev_handle ==MPI3MR_INVALID_DEV_HANDLE ) || + tgtdev->is_hidden) && tgtdev->host_exposed && tgtdev->starget && tgtdev->starget->hostdata) { tgt_priv = tgtdev->starget->hostdata;
@@ -2010,7 +2010,7 @@ static void mpi3mr_fwevt_bh(struct mpi3mr_ioc *mrioc,mpi3mr_refresh_sas_ports (mrioc);mpi3mr_refresh_expanders (mrioc); } -mpi3mr_rfresh_tgtdevs (mrioc); +mpi3mr_refresh_tgtdevs (mrioc);ioc_info (mrioc,"scan for non responding and newly added devices after soft reset completed\n" );break ;
Signature · 1 line
2.31.1
PATCH v4 2/7 mpi3mr: Set MPI request flags appropriately
In reply to Ranjan Kumar“Flags” inside MPI request is bitfield-based. So ‘Flags’ should be updated with bitwise OR operation.
--- drivers/scsi/mpi3mr/mpi3mr_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/mpi3mr/mpi3mr_os.c +1 -1
@@ -4895,7 +4895,7 @@ static int mpi3mr_qcmd(struct Scsi_Host *shost,MPI3_SCSIIO_MSGFLAGS_DIVERT_TO_FIRMWARE ; scsiio_flags |=MPI3_SCSIIO_FLAGS_DIVERT_REASON_IO_THROTTLING ; } - scsiio_req->flags =cpu_to_le32 (scsiio_flags); + scsiio_req->flags |=cpu_to_le32 (scsiio_flags);if (mpi3mr_op_request_post (mrioc, op_req_q, scmd_priv_data->mpi3mr_scsiio_req)) {
Signature · 1 line
2.31.1
PATCH v4 3/7 mpi3mr: Clear controller-wide flag that is used to block IOCTLS for the unresponsive controller
In reply to Ranjan KumarDriver uses a controller-wide flag to block IOCTLs when controller reset is in progress. This flag is set before controller reset is initiated and clear after the controller reset is completed.
Driver will clear the controller-wide block IOCTLs flag after controller reset is failed and controller is marked unrecoverable.
--- drivers/scsi/mpi3mr/mpi3mr_fw.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/mpi3mr/mpi3mr_fw.c +1 -0
@@ -5102,6 +5102,7 @@ int mpi3mr_soft_reset_handler(struct mpi3mr_ioc *mrioc, mrioc->device_refresh_on =0 ; mrioc->unrecoverable =1 ; mrioc->reset_in_progress =0 ; + mrioc->stop_bsgs =0 ; retval =-1 ;mpi3mr_flush_cmds_for_unrecovered_controller (mrioc); }
Signature · 1 line
2.31.1
PATCH v4 4/7 mpi3mr: Set the WriteSame Divert Capability in the IOCInit MPI Request
In reply to Ranjan KumarDriver is modified 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.
--- drivers/scsi/mpi3mr/mpi/mpi30_ioc.h | 2 +- drivers/scsi/mpi3mr/mpi3mr_fw.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/scsi/mpi3mr/mpi/mpi30_ioc.h +1 -1
@@ -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)
drivers/scsi/mpi3mr/mpi3mr_fw.c +2 -0
@@ -3302,6 +3302,8 @@ static int mpi3mr_issue_iocinit(struct mpi3mr_ioc *mrioc) iocinit_req.msg_flags |=MPI3_IOCINIT_MSGFLAGS_SCSIIOSTATUSREPLY_SUPPORTED ; + iocinit_req.msg_flags |= +MPI3_IOCINIT_MSGFLAGS_WRITESAMEDIVERT_SUPPORTED ;init_completion (&mrioc->init_cmds.done); retval = mpi3mr_admin_request_post(mrioc, &iocinit_req,
Signature · 1 line
2.31.1
PATCH v4 5/7 mpi3mr: Debug ability improvements
In reply to Ranjan KumarDriver updated to include OS type in fault/reset reason code. MPI request sent through IOCTL now automatically dumped on timeout.
--- drivers/scsi/mpi3mr/mpi3mr.h | 10 +++++++--- drivers/scsi/mpi3mr/mpi3mr_app.c | 21 ++++++++++++++------- drivers/scsi/mpi3mr/mpi3mr_fw.c | 21 ++++++++++++++------- 3 files changed, 35 insertions(+), 17 deletions(-)
drivers/scsi/mpi3mr/mpi3mr.h +7 -3
@@ -63,7 +63,7 @@ extern atomic64_t event_counter;#define MPI3MR_DRIVER_AUTHOR "Broadcom Inc. <[email protected]>"#define MPI3MR_DRIVER_DESC "MPI3 Storage Controller Device Driver" -#define MPI3MR_NAME_LENGTH 32 +#define MPI3MR_NAME_LENGTH 64#define IOCNAME "%s: "#define MPI3MR_DEFAULT_MAX_IO_SIZE (1 * 1024 * 1024)
@@ -294,6 +294,10 @@ enum mpi3mr_reset_reason { MPI3MR_RESET_FROM_SAS_TRANSPORT_TIMEOUT = 30, }; +#define MPI3MR_RESET_REASON_OSTYPE_LINUX 1 +#define MPI3MR_RESET_REASON_OSTYPE_SHIFT 28 +#define MPI3MR_RESET_REASON_IOCNUM_SHIFT 20 +/* Queue type definitions */ enum queue_type {MPI3MR_DEFAULT_QUEUE =0 ,
@@ -1142,7 +1146,7 @@ struct mpi3mr_ioc {spinlock_t fwevt_lock;struct list_head fwevt_list; -char watchdog_work_q_name[20 ]; +char watchdog_work_q_name[50 ];struct workqueue_struct *watchdog_work_q;struct delayed_work watchdog_work;spinlock_t watchdog_lock;
@@ -1336,7 +1340,7 @@ void mpi3mr_start_watchdog(struct mpi3mr_ioc *mrioc);void mpi3mr_stop_watchdog (struct mpi3mr_ioc *mrioc);int mpi3mr_soft_reset_handler (struct mpi3mr_ioc *mrioc, -u32 reset_reason,u8 snapdump); +u16 reset_reason,u8 snapdump);void mpi3mr_ioc_disable_intr (struct mpi3mr_ioc *mrioc);void mpi3mr_ioc_enable_intr (struct mpi3mr_ioc *mrioc);
drivers/scsi/mpi3mr/mpi3mr_app.c +14 -7
@@ -1598,26 +1598,33 @@ static long mpi3mr_bsg_process_mpt_cmds(struct bsg_job *job) rval = -EAGAIN ;if (mrioc->bsg_cmds.state &MPI3MR_CMD_RESET ) goto out_unlock; -dprint_bsg_err (mrioc, -"%s: bsg request timedout after %d seconds\n" , __func__, - karg->timeout); -if (mrioc->logging_level &MPI3_DEBUG_BSG_ERROR ) { -dprint_dump (mpi_req,MPI3MR_ADMIN_REQ_FRAME_SZ , +if (((mpi_header->function !=MPI3_FUNCTION_SCSI_IO ) && + (mpi_header->function !=MPI3_FUNCTION_NVME_ENCAPSULATED )) + || (mrioc->logging_level &MPI3_DEBUG_BSG_ERROR )) { +ioc_info (mrioc,"%s: bsg request timedout after %d seconds\n" , + __func__, karg->timeout); +if (!(mrioc->logging_level &MPI3_DEBUG_BSG_INFO )) { +dprint_dump (mpi_req,MPI3MR_ADMIN_REQ_FRAME_SZ ,"bsg_mpi3_req" );if (mpi_header->function == -MPI3_BSG_FUNCTION_MGMT_PASSTHROUGH ) { +MPI3_FUNCTION_MGMT_PASSTHROUGH ) { drv_buf_iter = &drv_bufs[0 ];dprint_dump (drv_buf_iter->kern_buf, rmc_size,"mpi3_mgmt_req" ); + } } }if ((mpi_header->function ==MPI3_BSG_FUNCTION_NVME_ENCAPSULATED ) || - (mpi_header->function ==MPI3_BSG_FUNCTION_SCSI_IO )) + (mpi_header->function ==MPI3_BSG_FUNCTION_SCSI_IO )) { +dprint_bsg_err (mrioc,"%s: bsg request timedout after %d seconds,\n" +"issuing target reset to (0x%04x)\n" , __func__, + karg->timeout, mpi_header->function_dependent);mpi3mr_issue_tm (mrioc,MPI3_SCSITASKMGMT_TASKTYPE_TARGET_RESET , mpi_header->function_dependent,0 ,MPI3MR_HOSTTAG_BLK_TMS ,MPI3MR_RESETTM_TIMEOUT , &mrioc->host_tm_cmds, &resp_code,NULL ); + }if (!(mrioc->bsg_cmds.state &MPI3MR_CMD_COMPLETE ) && !(mrioc->bsg_cmds.state &MPI3MR_CMD_RESET )) mpi3mr_soft_reset_handler(mrioc,
drivers/scsi/mpi3mr/mpi3mr_fw.c +14 -7
@@ -11,7 +11,7 @@#include <linux/io-64-nonatomic-lo-hi.h> static int -mpi3mr_issue_reset (struct mpi3mr_ioc *mrioc,u16 reset_type,u32 reset_reason); +mpi3mr_issue_reset (struct mpi3mr_ioc *mrioc,u16 reset_type,u16 reset_reason);static int mpi3mr_setup_admin_qpair (struct mpi3mr_ioc *mrioc);static void mpi3mr_process_factsdata (struct mpi3mr_ioc *mrioc,struct mpi3_ioc_facts_data *facts_data);
@@ -1195,7 +1195,7 @@ static inline void mpi3mr_clear_reset_history(struct mpi3mr_ioc *mrioc)static int mpi3mr_issue_and_process_mur (struct mpi3mr_ioc *mrioc,u32 reset_reason) { -u32 ioc_config, timeout, ioc_status; +u32 ioc_config, timeout, ioc_status, scratch_pad0;int retval =-1 ;ioc_info (mrioc,"Issuing Message unit Reset(MUR)\n" );
@@ -1204,7 +1204,11 @@ static int mpi3mr_issue_and_process_mur(struct mpi3mr_ioc *mrioc,return retval; }mpi3mr_clear_reset_history (mrioc); -writel (reset_reason, &mrioc->sysif_regs->scratchpad[0 ]); + scratch_pad0 = ((MPI3MR_RESET_REASON_OSTYPE_LINUX << +MPI3MR_RESET_REASON_OSTYPE_SHIFT ) | + (mrioc->facts.ioc_num << +MPI3MR_RESET_REASON_IOCNUM_SHIFT ) | reset_reason); +writel (scratch_pad0, &mrioc->sysif_regs->scratchpad[0 ]); ioc_config =readl (&mrioc->sysif_regs->ioc_configuration); ioc_config &= ~MPI3_SYSIF_IOC_CONFIG_ENABLE_IOC ;writel (ioc_config, &mrioc->sysif_regs->ioc_configuration);
@@ -1520,11 +1524,11 @@ static inline void mpi3mr_set_diagsave(struct mpi3mr_ioc *mrioc)* Return: 0 on success, non-zero on failure. */ static int mpi3mr_issue_reset (struct mpi3mr_ioc *mrioc,u16 reset_type, -u32 reset_reason) +u16 reset_reason) {int retval =-1 ;u8 unlock_retry_count =0 ; -u32 host_diagnostic, ioc_status, ioc_config; +u32 host_diagnostic, ioc_status, ioc_config, scratch_pad0;u32 timeout =MPI3MR_RESET_ACK_TIMEOUT *10 ; if ((reset_type != MPI3_SYSIF_HOST_DIAG_RESET_ACTION_SOFT_RESET) &&
@@ -1576,6 +1580,9 @@ static int mpi3mr_issue_reset(struct mpi3mr_ioc *mrioc, u16 reset_type, unlock_retry_count, host_diagnostic); }while (!(host_diagnostic &MPI3_SYSIF_HOST_DIAG_DIAG_WRITE_ENABLE )); + scratch_pad0 = ((MPI3MR_RESET_REASON_OSTYPE_LINUX << +MPI3MR_RESET_REASON_OSTYPE_SHIFT ) | (mrioc->facts.ioc_num << +MPI3MR_RESET_REASON_IOCNUM_SHIFT ) | reset_reason);writel (reset_reason, &mrioc->sysif_regs->scratchpad[0 ]);writel (host_diagnostic | reset_type, &mrioc->sysif_regs->host_diagnostic);
@@ -2581,7 +2588,7 @@ static void mpi3mr_watchdog_work(struct work_struct *work)unsigned long flags;enum mpi3mr_iocstate ioc_state;u32 fault, host_diagnostic, ioc_status; -u32 reset_reason =MPI3MR_RESET_FROM_FAULT_WATCH ; +u16 reset_reason =MPI3MR_RESET_FROM_FAULT_WATCH ;if (mrioc->reset_in_progress)return ;
@@ -4968,7 +4975,7 @@ void mpi3mr_pel_get_seqnum_complete(struct mpi3mr_ioc *mrioc,* Return: 0 on success, non-zero on failure. */ int mpi3mr_soft_reset_handler (struct mpi3mr_ioc *mrioc, -u32 reset_reason,u8 snapdump) +u16 reset_reason,u8 snapdump) {int retval =0 , i;unsigned long flags;
Signature · 1 line
2.31.1
PATCH v4 6/7 mpi3mr: Update MPI Headers to revision 31
In reply to Ranjan KumarUpdate MPI Headers to revision 31
--- drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h | 3 +++ drivers/scsi/mpi3mr/mpi/mpi30_image.h | 20 +++++--------------- drivers/scsi/mpi3mr/mpi/mpi30_ioc.h | 18 +++++++++++------- drivers/scsi/mpi3mr/mpi/mpi30_transport.h | 2 +- drivers/scsi/mpi3mr/mpi3mr_fw.c | 8 ++++---- 5 files changed, 24 insertions(+), 27 deletions(-)
drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h +3 -0
@@ -309,6 +309,7 @@ struct mpi3_man6_gpio_entry {#define MPI3_MAN6_GPIO_EXTINT_PARAM1_FLAGS_SOURCE_GENERIC (0x00)#define MPI3_MAN6_GPIO_EXTINT_PARAM1_FLAGS_SOURCE_CABLE_MGMT (0x10)#define MPI3_MAN6_GPIO_EXTINT_PARAM1_FLAGS_SOURCE_ACTIVE_CABLE_OVERCURRENT (0x20) +#define MPI3_MAN6_GPIO_EXTINT_PARAM1_FLAGS_ACK_REQUIRED (0x02)#define MPI3_MAN6_GPIO_EXTINT_PARAM1_FLAGS_TRIGGER_MASK (0x01)#define MPI3_MAN6_GPIO_EXTINT_PARAM1_FLAGS_TRIGGER_EDGE (0x00)#define MPI3_MAN6_GPIO_EXTINT_PARAM1_FLAGS_TRIGGER_LEVEL (0x01)
@@ -1315,6 +1316,8 @@ struct mpi3_driver_page0 {__le32 reserved18; };#define MPI3_DRIVER0_PAGEVERSION (0x00) +#define MPI3_DRIVER0_BSDOPTS_DEVICEEXPOSURE_DISABLE (0x00000020) +#define MPI3_DRIVER0_BSDOPTS_WRITECACHE_DISABLE (0x00000010)#define MPI3_DRIVER0_BSDOPTS_HEADLESS_MODE_ENABLE (0x00000008)#define MPI3_DRIVER0_BSDOPTS_DIS_HII_CONFIG_UTIL (0x00000004)#define MPI3_DRIVER0_BSDOPTS_REGISTRATION_MASK (0x00000003)
drivers/scsi/mpi3mr/mpi/mpi30_image.h +5 -15
@@ -198,16 +198,17 @@ struct mpi3_supported_devices_data {struct mpi3_supported_device supported_device[MPI3_SUPPORTED_DEVICE_MAX ]; }; -#ifndef MPI3_ENCRYPTED_HASH_MAX -#define MPI3_ENCRYPTED_HASH_MAX (1) +#ifndef MPI3_PUBLIC_KEY_MAX +#define MPI3_PUBLIC_KEY_MAX (1)#endif struct mpi3_encrypted_hash_entry {u8 hash_image_type;u8 hash_algorithm;u8 encryption_algorithm;u8 reserved03; -__le32 reserved04; -__le32 encrypted_hash[MPI3_ENCRYPTED_HASH_MAX ]; +__le16 public_key_size; +__le16 signature_size; +__le32 public_key[MPI3_PUBLIC_KEY_MAX ]; };#define MPI3_HASH_IMAGE_TYPE_KEY_WITH_SIGNATURE (0x03)
@@ -228,17 +229,6 @@ struct mpi3_encrypted_hash_entry {#define MPI3_ENCRYPTION_ALGORITHM_RSA2048 (0x04)#define MPI3_ENCRYPTION_ALGORITHM_RSA4096 (0x05)#define MPI3_ENCRYPTION_ALGORITHM_RSA3072 (0x06) -#ifndef MPI3_PUBLIC_KEY_MAX -#define MPI3_PUBLIC_KEY_MAX (1) -#endif -struct mpi3_encrypted_key_with_hash_entry { -u8 hash_image_type; -u8 hash_algorithm; -u8 encryption_algorithm; -u8 reserved03; -__le32 reserved04; -__le32 public_key[MPI3_PUBLIC_KEY_MAX ]; -};#ifndef MPI3_ENCRYPTED_HASH_ENTRY_MAX #define MPI3_ENCRYPTED_HASH_ENTRY_MAX (1)
drivers/scsi/mpi3mr/mpi/mpi30_ioc.h +11 -7
@@ -101,6 +101,8 @@ struct mpi3_ioc_facts_data {__le16 max_io_throttle_group;__le16 io_throttle_low;__le16 io_throttle_high; +__le32 diag_fdl_size; +__le32 diag_tty_size; };#define MPI3_IOCFACTS_CAPABILITY_NON_SUPERVISOR_MASK (0x80000000)#define MPI3_IOCFACTS_CAPABILITY_SUPERVISOR_IOC (0x00000000)
@@ -108,13 +110,13 @@ struct mpi3_ioc_facts_data {#define MPI3_IOCFACTS_CAPABILITY_INT_COALESCE_MASK (0x00000600)#define MPI3_IOCFACTS_CAPABILITY_INT_COALESCE_FIXED_THRESHOLD (0x00000000)#define MPI3_IOCFACTS_CAPABILITY_INT_COALESCE_OUTSTANDING_IO (0x00000200) -#define MPI3_IOCFACTS_CAPABILITY_COMPLETE_RESET_CAPABLE (0x00000100) -#define MPI3_IOCFACTS_CAPABILITY_SEG_DIAG_TRACE_ENABLED (0x00000080) -#define MPI3_IOCFACTS_CAPABILITY_SEG_DIAG_FW_ENABLED (0x00000040) -#define MPI3_IOCFACTS_CAPABILITY_SEG_DIAG_DRIVER_ENABLED (0x00000020) -#define MPI3_IOCFACTS_CAPABILITY_ADVANCED_HOST_PD_ENABLED (0x00000010) -#define MPI3_IOCFACTS_CAPABILITY_RAID_CAPABLE (0x00000008) -#define MPI3_IOCFACTS_CAPABILITY_MULTIPATH_ENABLED (0x00000002) +#define MPI3_IOCFACTS_CAPABILITY_COMPLETE_RESET_SUPPORTED (0x00000100) +#define MPI3_IOCFACTS_CAPABILITY_SEG_DIAG_TRACE_SUPPORTED (0x00000080) +#define MPI3_IOCFACTS_CAPABILITY_SEG_DIAG_FW_SUPPORTED (0x00000040) +#define MPI3_IOCFACTS_CAPABILITY_SEG_DIAG_DRIVER_SUPPORTED (0x00000020) +#define MPI3_IOCFACTS_CAPABILITY_ADVANCED_HOST_PD_SUPPORTED (0x00000010) +#define MPI3_IOCFACTS_CAPABILITY_RAID_SUPPORTED (0x00000008) +#define MPI3_IOCFACTS_CAPABILITY_MULTIPATH_SUPPORTED (0x00000002)#define MPI3_IOCFACTS_CAPABILITY_COALESCE_CTRL_SUPPORTED (0x00000001)#define MPI3_IOCFACTS_PID_TYPE_MASK (0xf000)#define MPI3_IOCFACTS_PID_TYPE_SHIFT (12)
@@ -159,6 +161,8 @@ struct mpi3_ioc_facts_data {#define MPI3_IOCFACTS_FLAGS_PERSONALITY_RAID_DDR (0x00000002)#define MPI3_IOCFACTS_IO_THROTTLE_DATA_LENGTH_NOT_REQUIRED (0x0000)#define MPI3_IOCFACTS_MAX_IO_THROTTLE_GROUP_NOT_REQUIRED (0x0000) +#define MPI3_IOCFACTS_DIAGFDLSIZE_NOT_SUPPORTED (0x00000000) +#define MPI3_IOCFACTS_DIAGTTYSIZE_NOT_SUPPORTED (0x00000000)struct mpi3_mgmt_passthrough_request {__le16 host_tag;u8 ioc_use_only02;
drivers/scsi/mpi3mr/mpi/mpi30_transport.h +1 -1
@@ -18,7 +18,7 @@ union mpi3_version_union {#define MPI3_VERSION_MAJOR (3)#define MPI3_VERSION_MINOR (0) -#define MPI3_VERSION_UNIT (28) +#define MPI3_VERSION_UNIT (31)#define MPI3_VERSION_DEV (0)#define MPI3_DEVHANDLE_INVALID (0xffff)struct mpi3_sysif_oper_queue_indexes {
drivers/scsi/mpi3mr/mpi3mr_fw.c +4 -4
@@ -1280,7 +1280,7 @@ mpi3mr_revalidate_factsdata(struct mpi3mr_ioc *mrioc) mrioc->shost->max_sectors * 512, mrioc->facts.max_data_length);if ((mrioc->sas_transport_enabled) && (mrioc->facts.ioc_capabilities & -MPI3_IOCFACTS_CAPABILITY_MULTIPATH_ENABLED )) +MPI3_IOCFACTS_CAPABILITY_MULTIPATH_SUPPORTED ))ioc_err (mrioc,"critical error: multipath capability is enabled at the\n" "\tcontroller while sas transport support is enabled at the\n"
@@ -3677,8 +3677,8 @@ static const struct {u32 capability;char *name; } mpi3mr_capabilities[] = { - { MPI3_IOCFACTS_CAPABILITY_RAID_CAPABLE, "RAID" }, - { MPI3_IOCFACTS_CAPABILITY_MULTIPATH_ENABLED, "MultiPath" }, + { MPI3_IOCFACTS_CAPABILITY_RAID_SUPPORTED, "RAID" }, + { MPI3_IOCFACTS_CAPABILITY_MULTIPATH_SUPPORTED, "MultiPath" }, }; /**
@@ -3960,7 +3960,7 @@ int mpi3mr_init_ioc(struct mpi3mr_ioc *mrioc) MPI3MR_HOST_IOS_KDUMP);if (!(mrioc->facts.ioc_capabilities & -MPI3_IOCFACTS_CAPABILITY_MULTIPATH_ENABLED )) { +MPI3_IOCFACTS_CAPABILITY_MULTIPATH_SUPPORTED )) { mrioc->sas_transport_enabled =1 ; mrioc->scsi_device_channel =1 ; mrioc->shost->max_channel =1 ;
Signature · 1 line
2.31.1
PATCH v4 7/7 mpi3mr: driver version upgrade to 8.8.1.0.50
In reply to Ranjan KumarUpdate driver version to 8.8.1.0.50
--- drivers/scsi/mpi3mr/mpi3mr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/mpi3mr/mpi3mr.h +2 -2
@@ -55,8 +55,8 @@ extern struct list_head mrioc_list;extern int prot_mask;extern atomic64_t event_counter; -#define MPI3MR_DRIVER_VERSION "8.5.1.0.0" -#define MPI3MR_DRIVER_RELDATE "5-December-2023" +#define MPI3MR_DRIVER_VERSION "8.8.1.0.50" +#define MPI3MR_DRIVER_RELDATE "5-March-2024"#define MPI3MR_DRIVER_NAME "mpi3mr"#define MPI3MR_DRIVER_LICENSE "GPL"
Signature · 1 line
2.31.1
Martin K. Petersen
AppliedRanjan,
Quoted 1 line
Few Enhancements and minor fixes of mpi3mr driver.
Applied to 6.10/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering