Skip to content

Commit cf9efd5

Browse files
Xiang Chenmartinkpetersen
authored andcommitted
scsi: hisi_sas: Change SERDES_CFG init value to increase reliability of HiLink
With default value of register SERDES_CFG, the link is not stable for some special disks when running IO. According to HW guys' suggestion, need to make the bit10~19 value of register SERDES_CFG the max value to increase the reliability of the HiLink. Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com> Reviewed-by: Yupeng Zhou <zhouyupeng1@huawei.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 57dbb2b commit cf9efd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/scsi/hisi_sas/hisi_sas_v3_hw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
#define PHY_CTRL_RESET_MSK (0x1 << PHY_CTRL_RESET_OFF)
130130
#define CMD_HDR_PIR_OFF 8
131131
#define CMD_HDR_PIR_MSK (0x1 << CMD_HDR_PIR_OFF)
132+
#define SERDES_CFG (PORT_BASE + 0x1c)
132133
#define SL_CFG (PORT_BASE + 0x84)
133134
#define AIP_LIMIT (PORT_BASE + 0x90)
134135
#define SL_CONTROL (PORT_BASE + 0x94)
@@ -525,6 +526,7 @@ static void init_reg_v3_hw(struct hisi_hba *hisi_hba)
525526
}
526527
hisi_sas_phy_write32(hisi_hba, i, PROG_PHY_LINK_RATE,
527528
prog_phy_link_rate);
529+
hisi_sas_phy_write32(hisi_hba, i, SERDES_CFG, 0xffc00);
528530
hisi_sas_phy_write32(hisi_hba, i, SAS_RX_TRAIN_TIMER, 0x13e80);
529531
hisi_sas_phy_write32(hisi_hba, i, CHL_INT0, 0xffffffff);
530532
hisi_sas_phy_write32(hisi_hba, i, CHL_INT1, 0xffffffff);

0 commit comments

Comments
 (0)