pm80xx: Driver updates
Subsystems (2)
v2 cover pm80xx: Driver updates
From: Viswas G <[email protected]>
This patch set contains bug fixes for pm80xx driver. Please consider these patches for next kernel release.
Changes From V1:
Corrected device state changes in I_T_Nexus_Reset.
Viswas G (8):
pm80xx: Updated link rate
pm80xx: Corrected device state changes in I_T_Nexus_Reset.
pm80xx: Update For Thermal Page Code
pm80xx: Fix for Incorrect DMA Unmapping of SG List
pm80xx: Remove unnecessary phy disconnect while link error
pm80xx: Add PORT RECOVERY TIMEOUT support
pm80xx: Handling Invalid SSP Response frame
pm80xx: Bump pm80xx driver version to 0.1.38
drivers/scsi/pm8001/pm8001_defs.h | 1 + drivers/scsi/pm8001/pm8001_hwi.c | 4 + drivers/scsi/pm8001/pm8001_sas.c | 19 +++++-- drivers/scsi/pm8001/pm8001_sas.h | 12 +++- drivers/scsi/pm8001/pm80xx_hwi.c | 111 +++++++++++++++++++++++++++---------- drivers/scsi/pm8001/pm80xx_hwi.h | 5 +- 6 files changed, 114 insertions(+), 38 deletions(-)
PATCH v2 1/8 pm80xx: Updated link rate
From: Viswas G <[email protected]>
Updated 12G linkrate to libsas.
Changes from V1:
None
--- drivers/scsi/pm8001/pm8001_defs.h | 1 + drivers/scsi/pm8001/pm8001_hwi.c | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-)
drivers/scsi/pm8001/pm8001_defs.h +1 -0
@@ -56,6 +56,7 @@ enum phy_speed {PHY_SPEED_15 =0x01 ,PHY_SPEED_30 =0x02 ,PHY_SPEED_60 =0x04 , + PHY_SPEED_120 = 0x08, }; enum data_direction {
drivers/scsi/pm8001/pm8001_hwi.c +4 -0
@@ -3263,6 +3263,10 @@ void pm8001_get_lrate_mode(struct pm8001_phy *phy, u8 link_rate)struct sas_phy *sas_phy = phy->sas_phy.phy;switch (link_rate) { +case PHY_SPEED_120 : + phy->sas_phy.linkrate =SAS_LINK_RATE_12_0_GBPS ; + phy->sas_phy.phy->negotiated_linkrate =SAS_LINK_RATE_12_0_GBPS ; +break ;case PHY_SPEED_60 : phy->sas_phy.linkrate =SAS_LINK_RATE_6_0_GBPS ; phy->sas_phy.phy->negotiated_linkrate =SAS_LINK_RATE_6_0_GBPS ;
Signature · 1 line
1.7.1
PATCH v2 2/8 pm80xx: Corrected device state changes in I_T_Nexus_Reset.
In reply to [email protected]From: Viswas G <[email protected]>
In Nexus reset the device state request are not needed.
Changes from V1:
Device state change request has been removed as the firmware will handle it during internal cleanup. Also updated the proper return value in case of failures.
--- drivers/scsi/pm8001/pm8001_sas.c | 18 +++++++++++++----- drivers/scsi/pm8001/pm8001_sas.h | 8 ++++++++ 2 files changed, 21 insertions(+), 5 deletions(-)
drivers/scsi/pm8001/pm8001_sas.c +13 -5
@@ -975,19 +975,27 @@ int pm8001_I_T_nexus_reset(struct domain_device *dev) phy =sas_get_local_phy (dev);if (dev_is_sata (dev)) { -DECLARE_COMPLETION_ONSTACK (completion_setstate);if (scsi_is_sas_phy_local (phy)) { rc =0 ; goto out; } rc =sas_phy_reset (phy,1 ); +if (rc) { +PM8001_EH_DBG (pm8001_ha, +pm8001_printk ("phy reset failed for device %x\n" +"with rc %d\n" , pm8001_dev->device_id, rc)); + rc =TMF_RESP_FUNC_FAILED ; + goto out; + }msleep (2000 ); rc =pm8001_exec_internal_task_abort (pm8001_ha, pm8001_dev , dev,1 ,0 ); - pm8001_dev->setds_completion = &completion_setstate; - rc =PM8001_CHIP_DISP ->set_dev_state_req (pm8001_ha, - pm8001_dev,0x01 ); -wait_for_completion (&completion_setstate); +if (rc) { +PM8001_EH_DBG (pm8001_ha, +pm8001_printk ("task abort failed %x\n" +"with rc %d\n" , pm8001_dev->device_id, rc)); + rc =TMF_RESP_FUNC_FAILED ; + } }else { rc =sas_phy_reset (phy,1 );msleep (2000 );
drivers/scsi/pm8001/pm8001_sas.h +8 -0
@@ -569,6 +569,14 @@ struct pm8001_fw_image_header {#define NCQ_READ_LOG_FLAG 0x80000000#define NCQ_ABORT_ALL_FLAG 0x40000000#define NCQ_2ND_RLE_FLAG 0x20000000 + +/* Device states */ +#define DS_OPERATIONAL 0x01 +#define DS_PORT_IN_RESET 0x02 +#define DS_IN_RECOVERY 0x03 +#define DS_IN_ERROR 0x04 +#define DS_NON_OPERATIONAL 0x07 +/** * brief param structure for firmware flash update. */
Signature · 1 line
1.7.1
Re: [PATCH V2 2/8] pm80xx: Corrected device state changes in I_T_Nexus_Reset.
Hi
Quoted 8 lines · On Tue, Aug 11, 2015 at 11:36 AM, <[email protected]> wrote:
From: Viswas G <[email protected]>
In Nexus reset the device state request are not needed.
Changes from V1:
Device state change request has been removed as the firmware will handle it during internal cleanup. Also updated the proper return value in case of failures.
If above is true, should we remove the device state change command support at all?
Other than that, please feel free to add:
Thanks
Jack
Quoted 68 lines
Signed-off-by Viswas G <[email protected]>Reviewed-by Suresh Thiagarajan <[email protected]>--- drivers/scsi/pm8001/pm8001_sas.c | 18 +++++++++++++----- drivers/scsi/pm8001/pm8001_sas.h | 8 ++++++++ 2 files changed, 21 insertions(+), 5 deletions(-)drivers/scsi/pm8001/pm8001_sas.c +13
-5@@ -975,19 +975,27 @@ int pm8001_I_T_nexus_reset(struct domain_device *dev) phy =sas_get_local_phy (dev);if (dev_is_sata (dev)) { -DECLARE_COMPLETION_ONSTACK (completion_setstate);if (scsi_is_sas_phy_local (phy)) { rc =0 ; goto out; } rc =sas_phy_reset (phy,1 ); +if (rc) { +PM8001_EH_DBG (pm8001_ha, +pm8001_printk ("phy reset failed for device %x\n" +"with rc %d\n" , pm8001_dev->device_id, rc)); + rc =TMF_RESP_FUNC_FAILED ; + goto out; + }msleep (2000 ); rc =pm8001_exec_internal_task_abort (pm8001_ha, pm8001_dev , dev,1 ,0 ); - pm8001_dev->setds_completion = &completion_setstate; - rc =PM8001_CHIP_DISP ->set_dev_state_req (pm8001_ha, - pm8001_dev,0x01 ); -wait_for_completion (&completion_setstate); +if (rc) { +PM8001_EH_DBG (pm8001_ha, +pm8001_printk ("task abort failed %x\n" +"with rc %d\n" , pm8001_dev->device_id, rc)); + rc =TMF_RESP_FUNC_FAILED ; + } }else { rc =sas_phy_reset (phy,1 );msleep (2000 );drivers/scsi/pm8001/pm8001_sas.h +8
-1@@ -569,6 +569,14 @@ struct pm8001_fw_image_header {#define NCQ_READ_LOG_FLAG 0x80000000#define NCQ_ABORT_ALL_FLAG 0x40000000#define NCQ_2ND_RLE_FLAG 0x20000000 + +/* Device states */ +#define DS_OPERATIONAL 0x01 +#define DS_PORT_IN_RESET 0x02 +#define DS_IN_RECOVERY 0x03 +#define DS_IN_ERROR 0x04 +#define DS_NON_OPERATIONAL 0x07 +/** * brief param structure for firmware flash update. */ --1.7.1
Signature · 23 lines
Mit freundlichen Grüßen, Best Regards, Jack Wang Linux Kernel Developer Storage ProfitBricks GmbH The IaaS-Company. ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Tel: +49 30 5770083-42 Fax: +49 30 5770085-98 Email: [email protected] URL: http://www.profitbricks.de Sitz der Gesellschaft: Berlin. Registergericht: Amtsgericht Charlottenburg, HRB 125506 B. Geschäftsführer: Andreas Gauger, Achim Weiss. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RE: [PATCH V2 2/8] pm80xx: Corrected device state changes in I_T_Nexus_Reset.
Quoted 7 lines · Jinpu Wang
Hi
Quoted 4 lines · On Tue, Aug 11, 2015 at 11:36 AM, <[email protected]> wrote:
From: Viswas G <[email protected]>
In Nexus reset the device state request are not needed.
Quoted 8 lines
Quoted 4 lines
Changes from V1:
Device state change request has been removed as the firmware will handle it during internal cleanup. Also updated the proper return value in case of failures.If above is true, should we remove the device state change command support at all?
We can't remove the state change command as it is required for some task management command such as ABORT_TASK.
Quoted 102 lines
Other than that, please feel free to add:
Acked-by Jack Wang <[email protected]>Thanks
JackQuoted 66 lines
Signed-off-by Viswas G <[email protected]>Reviewed-by Suresh Thiagarajan <[email protected]>--- drivers/scsi/pm8001/pm8001_sas.c | 18 +++++++++++++----- drivers/scsi/pm8001/pm8001_sas.h | 8 ++++++++ 2 files changed, 21 insertions(+), 5 deletions(-)drivers/scsi/pm8001/pm8001_sas.c +13
-5@@ -975,19 +975,27 @@ int pm8001_I_T_nexus_reset(struct domain_device *dev) phy =sas_get_local_phy (dev);if (dev_is_sata (dev)) { -DECLARE_COMPLETION_ONSTACK (completion_setstate);if (scsi_is_sas_phy_local (phy)) { rc =0 ; goto out; } rc =sas_phy_reset (phy,1 ); +if (rc) { +PM8001_EH_DBG (pm8001_ha, +pm8001_printk ("phy reset failed for device %x\n" +"with rc %d\n" , pm8001_dev->device_id, rc)); + rc =TMF_RESP_FUNC_FAILED ; + goto out; + }msleep (2000 ); rc =pm8001_exec_internal_task_abort (pm8001_ha, pm8001_dev , dev,1 ,0 ); - pm8001_dev->setds_completion = &completion_setstate; - rc =PM8001_CHIP_DISP ->set_dev_state_req (pm8001_ha, - pm8001_dev,0x01 ); -wait_for_completion (&completion_setstate); +if (rc) { +PM8001_EH_DBG (pm8001_ha, +pm8001_printk ("task abort failed %x\n" +"with rc %d\n" , pm8001_dev->device_id, rc)); + rc =TMF_RESP_FUNC_FAILED ; + } }else { rc =sas_phy_reset (phy,1 );msleep (2000 );drivers/scsi/pm8001/pm8001_sas.h +8
-1@@ -569,6 +569,14 @@ struct pm8001_fw_image_header {#define NCQ_READ_LOG_FLAG 0x80000000#define NCQ_ABORT_ALL_FLAG 0x40000000#define NCQ_2ND_RLE_FLAG 0x20000000 + +/* Device states */ +#define DS_OPERATIONAL 0x01 +#define DS_PORT_IN_RESET 0x02 +#define DS_IN_RECOVERY 0x03 +#define DS_IN_ERROR 0x04 +#define DS_NON_OPERATIONAL 0x07 +/** * brief param structure for firmware flash update. */ --Quoted 2 lines
1.7.1
--
Mit freundlichen Grüßen,
Best Regards,Jack Wang
Linux Kernel Developer Storage
ProfitBricks GmbH The IaaS-Company.ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin
Tel: +49 30 5770083-42
Fax: +49 30 5770085-98
Email: [email protected]
URL: http://www.profitbricks.deSitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506 B. Geschäftsführer: Andreas Gauger, Achim Weiss.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH V2 2/8] pm80xx: Corrected device state changes in I_T_Nexus_Reset.
Quoted 13 lines · Viswas G
Quoted 12 lines · Jinpu Wang
Hi
Quoted 8 lines · On Tue, Aug 11, 2015 at 11:36 AM, <[email protected]> wrote:
From: Viswas G <[email protected]>
In Nexus reset the device state request are not needed.
Changes from V1:
Device state change request has been removed as the firmware will handle it during internal cleanup. Also updated the proper return value in case of failures.
Quoted 7 lines
Quoted 3 lines
If above is true, should we remove the device state change command support at all?
We can't remove the state change command as it is required for some task management command such as
ABORT_TASK.
Ok, thanks
Signature · 23 lines
Mit freundlichen Grüßen, Best Regards, Jack Wang Linux Kernel Developer Storage ProfitBricks GmbH The IaaS-Company. ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Tel: +49 30 5770083-42 Fax: +49 30 5770085-98 Email: [email protected] URL: http://www.profitbricks.de Sitz der Gesellschaft: Berlin. Registergericht: Amtsgericht Charlottenburg, HRB 125506 B. Geschäftsführer: Andreas Gauger, Achim Weiss. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH V2 2/8] pm80xx: Corrected device state changes in I_T_Nexus_Reset.
In reply to [email protected]Quoted 4 lines · On 11.8.2015 11:36, [email protected] wrote:
From: Viswas G <[email protected]>
In Nexus reset the device state request are not needed.
Quoted 8 lines
Changes from V1:
Device state change request has been removed as the firmware will handle it during internal cleanup. Also updated the proper return value in case of failures.Signed-off-by Viswas G <[email protected]>Reviewed-by Suresh Thiagarajan <[email protected]>
Tomas
Quoted 62 lines
--- drivers/scsi/pm8001/pm8001_sas.c | 18 +++++++++++++----- drivers/scsi/pm8001/pm8001_sas.h | 8 ++++++++ 2 files changed, 21 insertions(+), 5 deletions(-)drivers/scsi/pm8001/pm8001_sas.c +13
-5@@ -975,19 +975,27 @@ int pm8001_I_T_nexus_reset(struct domain_device *dev) phy =sas_get_local_phy (dev);if (dev_is_sata (dev)) { -DECLARE_COMPLETION_ONSTACK (completion_setstate);if (scsi_is_sas_phy_local (phy)) { rc =0 ; goto out; } rc =sas_phy_reset (phy,1 ); +if (rc) { +PM8001_EH_DBG (pm8001_ha, +pm8001_printk ("phy reset failed for device %x\n" +"with rc %d\n" , pm8001_dev->device_id, rc)); + rc =TMF_RESP_FUNC_FAILED ; + goto out; + }msleep (2000 ); rc =pm8001_exec_internal_task_abort (pm8001_ha, pm8001_dev , dev,1 ,0 ); - pm8001_dev->setds_completion = &completion_setstate; - rc =PM8001_CHIP_DISP ->set_dev_state_req (pm8001_ha, - pm8001_dev,0x01 ); -wait_for_completion (&completion_setstate); +if (rc) { +PM8001_EH_DBG (pm8001_ha, +pm8001_printk ("task abort failed %x\n" +"with rc %d\n" , pm8001_dev->device_id, rc)); + rc =TMF_RESP_FUNC_FAILED ; + } }else { rc =sas_phy_reset (phy,1 );msleep (2000 );drivers/scsi/pm8001/pm8001_sas.h +8
-0@@ -569,6 +569,14 @@ struct pm8001_fw_image_header {#define NCQ_READ_LOG_FLAG 0x80000000#define NCQ_ABORT_ALL_FLAG 0x40000000#define NCQ_2ND_RLE_FLAG 0x20000000 + +/* Device states */ +#define DS_OPERATIONAL 0x01 +#define DS_PORT_IN_RESET 0x02 +#define DS_IN_RECOVERY 0x03 +#define DS_IN_ERROR 0x04 +#define DS_NON_OPERATIONAL 0x07 +/** * brief param structure for firmware flash update. */
PATCH v2 3/8 pm80xx: Update For Thermal Page Code
In reply to [email protected]From: Viswas G <[email protected]>
Thermal page code has been changed to 7 for the 12G controllers.
Changes From V1:
None
--- drivers/scsi/pm8001/pm80xx_hwi.c | 9 ++++++++- drivers/scsi/pm8001/pm80xx_hwi.h | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-)
drivers/scsi/pm8001/pm80xx_hwi.c +8 -1
@@ -843,6 +843,7 @@ pm80xx_set_thermal_config(struct pm8001_hba_info *pm8001_ha)int rc;u32 tag;u32 opc =OPC_INB_SET_CONTROLLER_CONFIG ; +u32 page_code;memset (&payload,0 ,sizeof (struct set_ctrl_cfg_req )); rc =pm8001_tag_alloc (pm8001_ha, &tag);
@@ -851,8 +852,14 @@ pm80xx_set_thermal_config(struct pm8001_hba_info *pm8001_ha) circularQ = &pm8001_ha->inbnd_q_tbl[0 ]; payload.tag =cpu_to_le32 (tag); + +if (IS_SPCV_12G (pm8001_ha->pdev)) + page_code =THERMAL_PAGE_CODE_7H ; +else + page_code =THERMAL_PAGE_CODE_8H ; + payload.cfg_pg[0 ] = (THERMAL_LOG_ENABLE <<9 ) | - (THERMAL_ENABLE <<8 ) |THERMAL_OP_CODE ; + (THERMAL_ENABLE <<8 ) | page_code; payload.cfg_pg[1 ] = (LTEMPHIL <<24 ) | (RTEMPHIL <<8 ); rc =pm8001_mpi_build_cmd (pm8001_ha, circularQ, opc, &payload,0 );
drivers/scsi/pm8001/pm80xx_hwi.h +2 -1
@@ -177,7 +177,8 @@/* Thermal related */ #define THERMAL_ENABLE 0x1#define THERMAL_LOG_ENABLE 0x1 -#define THERMAL_OP_CODE 0x6 +#define THERMAL_PAGE_CODE_7H 0x6 +#define THERMAL_PAGE_CODE_8H 0x7#define LTEMPHIL 70#define RTEMPHIL 100
Signature · 1 line
1.7.1
PATCH v2 4/8 pm80xx: Fix for Incorrect DMA Unmapping of SG List
In reply to [email protected]From: Viswas G <[email protected]>
In pm8001_ccb_task_free(), the dma unmapping is done based on ccb->n_elem value. This should be initialized to zero in the task_abort(). Otherwise, pm8001_ccb_task_free() will try for dma_unmap_sg() which is invalid for task abort and can lead to kernel crash.
Changes From V1:
None
--- drivers/scsi/pm8001/pm8001_sas.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/scsi/pm8001/pm8001_sas.c +1 -0
@@ -790,6 +790,7 @@ pm8001_exec_internal_task_abort(struct pm8001_hba_info *pm8001_ha, ccb->device = pm8001_dev; ccb->ccb_tag = ccb_tag; ccb->task = task; + ccb->n_elem =0 ; res =PM8001_CHIP_DISP ->task_abort (pm8001_ha, pm8001_dev, flag, task_tag, ccb_tag);
Signature · 1 line
1.7.1
PATCH v2 5/8 pm80xx: Remove unnecessary phy disconnect while link error
In reply to [email protected]From: Viswas G <[email protected]>
If the link error happens, we don't need to disconnect the phy, which will remove the drive. Instead acknowledging the controller and logging the error will be enough.
Changes From V1:
None
--- drivers/scsi/pm8001/pm80xx_hwi.c | 12 ------------ 1 files changed, 0 insertions(+), 12 deletions(-)
drivers/scsi/pm8001/pm80xx_hwi.c +0 -12
@@ -3176,9 +3176,6 @@ static int mpi_hw_event(struct pm8001_hba_info *pm8001_ha, void *piomb) pm8001_printk("HW_EVENT_LINK_ERR_INVALID_DWORD\n"));pm80xx_hw_event_ack_req (pm8001_ha,0 ,HW_EVENT_LINK_ERR_INVALID_DWORD , port_id, phy_id,0 ,0 ); -sas_phy_disconnected (sas_phy); - phy->phy_attached =0 ; - sas_ha->notify_port_event (sas_phy,PORTE_LINK_RESET_ERR );break ;case HW_EVENT_LINK_ERR_DISPARITY_ERROR : PM8001_MSG_DBG(pm8001_ha,
@@ -3186,9 +3183,6 @@ static int mpi_hw_event(struct pm8001_hba_info *pm8001_ha, void *piomb)pm80xx_hw_event_ack_req (pm8001_ha,0 ,HW_EVENT_LINK_ERR_DISPARITY_ERROR , port_id, phy_id,0 ,0 ); -sas_phy_disconnected (sas_phy); - phy->phy_attached =0 ; - sas_ha->notify_port_event (sas_phy,PORTE_LINK_RESET_ERR );break ;case HW_EVENT_LINK_ERR_CODE_VIOLATION : PM8001_MSG_DBG(pm8001_ha,
@@ -3196,9 +3190,6 @@ static int mpi_hw_event(struct pm8001_hba_info *pm8001_ha, void *piomb)pm80xx_hw_event_ack_req (pm8001_ha,0 ,HW_EVENT_LINK_ERR_CODE_VIOLATION , port_id, phy_id,0 ,0 ); -sas_phy_disconnected (sas_phy); - phy->phy_attached =0 ; - sas_ha->notify_port_event (sas_phy,PORTE_LINK_RESET_ERR );break ;case HW_EVENT_LINK_ERR_LOSS_OF_DWORD_SYNCH : PM8001_MSG_DBG(pm8001_ha, pm8001_printk(
@@ -3206,9 +3197,6 @@ static int mpi_hw_event(struct pm8001_hba_info *pm8001_ha, void *piomb)pm80xx_hw_event_ack_req (pm8001_ha,0 ,HW_EVENT_LINK_ERR_LOSS_OF_DWORD_SYNCH , port_id, phy_id,0 ,0 ); -sas_phy_disconnected (sas_phy); - phy->phy_attached =0 ; - sas_ha->notify_port_event (sas_phy,PORTE_LINK_RESET_ERR );break ;case HW_EVENT_MALFUNCTION : PM8001_MSG_DBG(pm8001_ha,
Signature · 1 line
1.7.1
PATCH v2 6/8 pm80xx: Add PORT RECOVERY TIMEOUT support
In reply to [email protected]From: Viswas G <[email protected]>
PORT RECOVERY TIMEOUT is the maximum time between the controller's detection of the PHY down until the receipt of the ID_Frame (from the same remote SAS port). If the time expires before the ID_FRAME is received, the port is considered INVALID and can be removed. The IOP_EVENT_PORT_RECOVERY_TIMER_TMO event is reported following the IOP_EVENT_ PHY_DOWN event when the PHY/port does not recover after Port Recovery Time.
Changes From V1:
None
--- drivers/scsi/pm8001/pm8001_sas.h | 2 +- drivers/scsi/pm8001/pm80xx_hwi.c | 83 ++++++++++++++++++++++++++++++------- 2 files changed, 68 insertions(+), 17 deletions(-)
drivers/scsi/pm8001/pm8001_sas.h +1 -1
@@ -241,7 +241,7 @@ struct pm8001_chip_info {struct pm8001_port {struct asd_sas_port sas_port;u8 port_attached; -u8 wide_port_phymap; +u16 wide_port_phymap;u8 port_state;struct list_head list; };
drivers/scsi/pm8001/pm80xx_hwi.c +67 -16
165 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH v2 7/8 pm80xx: Handling Invalid SSP Response frame
In reply to [email protected]From: Viswas G <[email protected]>
The request has to be retried incase if the length of the SSP Response IU is invalid.
Changes From V1:
None
--- drivers/scsi/pm8001/pm80xx_hwi.c | 7 +++++++ drivers/scsi/pm8001/pm80xx_hwi.h | 2 +- 2 files changed, 8 insertions(+), 1 deletions(-)
drivers/scsi/pm8001/pm80xx_hwi.c +7 -0
@@ -1609,6 +1609,13 @@ mpi_ssp_completion(struct pm8001_hba_info *pm8001_ha , void *piomb) ts->stat =SAS_OPEN_REJECT ; ts->open_rej_reason =SAS_OREJ_RSVD_RETRY ;break ; +case IO_XFER_ERROR_INVALID_SSP_RSP_FRAME : +PM8001_IO_DBG (pm8001_ha, +pm8001_printk ("IO_XFER_ERROR_INVALID_SSP_RSP_FRAME\n" )); + ts->resp =SAS_TASK_COMPLETE ; + ts->stat =SAS_OPEN_REJECT ; + ts->open_rej_reason =SAS_OREJ_RSVD_RETRY ; +break ;case IO_OPEN_CNX_ERROR_PROTOCOL_NOT_SUPPORTED :PM8001_IO_DBG (pm8001_ha,pm8001_printk ("IO_OPEN_CNX_ERROR_PROTOCOL_NOT_SUPPORTED\n" ));
drivers/scsi/pm8001/pm80xx_hwi.h +1 -1
@@ -1175,7 +1175,7 @@ typedef struct SASProtocolTimerConfig SASProtocolTimerConfig_t;#define IO_XFER_ERROR_INTERNAL_CRC_ERROR 0x54#define MPI_IO_RQE_BUSY_FULL 0x55#define IO_XFER_ERR_EOB_DATA_OVERRUN 0x56 -#define IO_XFR_ERROR_INVALID_SSP_RSP_FRAME 0x57 +#define IO_XFER_ERROR_INVALID_SSP_RSP_FRAME 0x57#define IO_OPEN_CNX_ERROR_OPEN_PREEMPTED 0x58#define MPI_ERR_IO_RESOURCE_UNAVAILABLE 0x1004
Signature · 1 line
1.7.1
PATCH v2 8/8 pm80xx: Bump pm80xx driver version to 0.1.38
In reply to [email protected]From: Viswas G <[email protected]>
Bump pm80xx driver version to 0.1.38.
Changes From V1:
None
--- drivers/scsi/pm8001/pm8001_sas.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/pm8001/pm8001_sas.h +1 -1
@@ -58,7 +58,7 @@#include "pm8001_defs.h" #define DRV_NAME "pm80xx" -#define DRV_VERSION "0.1.37" +#define DRV_VERSION "0.1.38"#define PM8001_FAIL_LOGGING 0x01/* Error message logging */ #define PM8001_INIT_LOGGING 0x02/* driver init logging */ #define PM8001_DISC_LOGGING 0x04/* discovery layer logging */
Signature · 1 line
1.7.1