scsi: hisi_sas: Disable SATA disk phy for severe I_T nexus reset failure
authorLuo Jiaxing <luojiaxing@huawei.com>
Tue, 12 Oct 2021 12:26:28 +0000 (20:26 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 13 Oct 2021 02:46:07 +0000 (22:46 -0400)
commit21c7e972475e6a975fbe97f8974c96fe4713077c
tree794f803ac306a4377d203e7af7318dfc1f1edee3
parent00aeaf329a3a1ea3d3606fefa1d29f69f828bd21
scsi: hisi_sas: Disable SATA disk phy for severe I_T nexus reset failure

If the softreset fails in the I_T reset, libsas will then continue to issue
a controller reset to try to recover.

However a faulty disk may cause the softreset to fail, and resetting the
controller will not help this scenario. Indeed, we will just continue the
cycle of error handle handling to try to recover.

So if the softreset fails upon certain conditions, just disable the phy
associated with the disk. The user needs to handle this problem.

Link: https://lore.kernel.org/r/1634041588-74824-5-git-send-email-john.garry@huawei.com
Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c