scsi: hisi_sas: Update disk locked timeout to 7 seconds
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9DOVK CVE: NA --------------------------------------------------------------------------- The sata disk will be locked after the disk sends the DMA Setup frame until all data frame transmission is completed. The CFG_ICT_TIMER_STEP_TRSH register is used for sata disk to configure the step size of the timer which records the time when the disk is locked. The unit is 1us and the default step size is 150ms. If the disk is locked for more than 7 timer steps, the io to be sent to the disk will end abnormally. The current timeout is only about 1 second, it is easy to trigger IO abnormal end when the SATA hard disk returns data slowly. Adjust the timeout to 7 seconds based on ERC time of most disks. Fixes: 510ebd8e ("scsi: hisi_sas: Change DMA setup lock timeout to 2.5s") Signed-off-by:Xingui Yang <yangxingui@huawei.com> Reviewed-by:
Xiang Chen <chenxiang66@hisilicon.com> Reviewed-by:
kang fenglong <kangfenglong@huawei.com>
Loading
Please sign in to comment