[PATCH V2 8/8] pm80xx: Bump pm80xx driver version to 0.1.38

2015-08-11 Thread Viswas.G
From: Viswas G Bump pm80xx driver version to 0.1.38. Changes From V1: None Signed-off-by: Viswas G Reviewed-by: Suresh Thiagarajan Reviewed-by: Hannes Reinecke Reviewed-by: Jack Wang Reviewed-by: Tomas Henzl --- drivers/scsi/pm8001/pm8001_sas.h |2 +- 1 files changed, 1 insertions(+)

[PATCH V2 3/8] pm80xx: Update For Thermal Page Code

2015-08-11 Thread Viswas.G
From: Viswas G Thermal page code has been changed to 7 for the 12G controllers. Changes From V1: None Signed-off-by: Viswas G Reviewed-by: Suresh Thiagarajan Reviewed-by: Hannes Reinecke Reviewed-by: Jack Wang Reviewed-by: Tomas Henzl --- drivers/scsi/pm8001/pm80xx_hwi.c |9 -

[PATCH V2 1/8] pm80xx: Updated link rate

2015-08-11 Thread Viswas.G
From: Viswas G Updated 12G linkrate to libsas. Changes from V1: None Signed-off-by: Viswas G Reviewed-by: Suresh Thiagarajan Reviewed-by: Hannes Reinecke Reviewed-by: Jack Wang Reviewed-by: Tomas Henzl --- drivers/scsi/pm8001/pm8001_defs.h |1 + drivers/scsi/pm8001/pm8001_hwi.c |

[PATCH V2 4/8] pm80xx: Fix for Incorrect DMA Unmapping of SG List

2015-08-11 Thread Viswas.G
From: Viswas G 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: Non

[PATCH V2 6/8] pm80xx: Add PORT RECOVERY TIMEOUT support

2015-08-11 Thread Viswas.G
From: Viswas G 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

[PATCH V2 7/8] pm80xx: Handling Invalid SSP Response frame

2015-08-11 Thread Viswas.G
From: Viswas G The request has to be retried incase if the length of the SSP Response IU is invalid. Changes From V1: None Signed-off-by: Viswas G Reviewed-by: Suresh Thiagarajan Reviewed-by: Hannes Reinecke Reviewed-by: Jack Wang Reviewed-by: Tomas Henzl --- drivers/scsi/pm8001/pm80xx_h

[PATCH V2 0/8] pm80xx: Driver updates

2015-08-11 Thread Viswas.G
From: Viswas G 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.

[PATCH V2 5/8] pm80xx: Remove unnecessary phy disconnect while link error

2015-08-11 Thread Viswas.G
From: Viswas G 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 Signed-off-by: Viswas G Reviewed-by: Suresh Thiagarajan Reviewed-by: Hannes Reinecke R

[PATCH V2 2/8] pm80xx: Corrected device state changes in I_T_Nexus_Reset.

2015-08-11 Thread Viswas.G
From: Viswas G 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. Signed-off-by: Viswas G Reviewed-by: Suresh Th

[PATCH 5/8] pm80xx: Remove unnecessary phy disconnect while link error

2015-07-28 Thread Viswas.G
From: Viswas G 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. Signed-off-by: Viswas G Signed-off-by: Suresh Thiagarajan --- drivers/scsi/pm8001/pm80xx_hwi.c | 12 ---

[PATCH 4/8] pm80xx: Fix for Incorrect DMA Unmapping of SG List

2015-07-28 Thread Viswas.G
From: Viswas G 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. Signed-off-by: Viswa

[PATCH 6/8] pm80xx: Add PORT RECOVERY TIMEOUT support

2015-07-28 Thread Viswas.G
From: Viswas G 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

[PATCH 7/8] pm80xx: Handling Invalid SSP Response frame

2015-07-28 Thread Viswas.G
From: Viswas G The request has to be retried incase if the length of the SSP Response IU is invalid. Signed-off-by: Viswas G Signed-off-by: Suresh Thiagarajan --- drivers/scsi/pm8001/pm80xx_hwi.c |7 +++ drivers/scsi/pm8001/pm80xx_hwi.h |2 +- 2 files changed, 8 insertions(+), 1

[PATCH 2/8] pm80xx: Corrected device state changes in I_T_Nexus_Reset

2015-07-28 Thread Viswas.G
From: Viswas G In Nexus reset the device state set to DS_IN_RECOVERY before doing phy reset and internal cleanup. Once internal cleanup finishes, the device state will set to DS_OPERATIONAL. Signed-off-by: Viswas G Signed-off-by: Suresh Thiagarajan --- drivers/scsi/pm8001/pm8001_sas.c | 14

[PATCH 8/8] pm80xx: Bump pm80xx driver version to 0.1.38

2015-07-28 Thread Viswas.G
From: Viswas G Bump pm80xx driver version to 0.1.38. Signed-off-by: Viswas G Signed-off-by: Suresh Thiagarajan --- drivers/scsi/pm8001/pm8001_sas.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_sas.h b/drivers/scsi/pm8001/pm8001_sas.h in

[PATCH 3/8] pm80xx: Update For Thermal Page Code

2015-07-28 Thread Viswas.G
From: Viswas G Thermal page code has been changed to 7 for the 12G controllers. Signed-off-by: Viswas G Signed-off-by: Suresh Thiagarajan --- drivers/scsi/pm8001/pm80xx_hwi.c |9 - drivers/scsi/pm8001/pm80xx_hwi.h |3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) dif

[PATCH 0/8] pm80xx: Driver updates

2015-07-28 Thread Viswas.G
From: Viswas G This patch set contains bug fixes for pm80xx driver. Please consider these patches for next kernel release. 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

[PATCH 1/8] pm80xx: Updated link rate

2015-07-28 Thread Viswas.G
From: Viswas G Updated 12G linkrate to libsas. Signed-off-by: Viswas G Signed-off-by: Suresh Thiagarajan --- drivers/scsi/pm8001/pm8001_defs.h |1 + drivers/scsi/pm8001/pm8001_hwi.c |4 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_