]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: hisi_sas: Modify v3 HW SATA completion error processing
authorXingui Yang <yangxingui@huawei.com>
Thu, 14 Jul 2022 18:23:21 +0000 (02:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:44 +0000 (12:22 +0200)
commite454e985950bb42178a50aa8cbcc4c24bb3f7280
treed63e0ac06a455be849d79406c3da96e185c7981f
parent7caac45b52f42884e4a4bd66a800d4838dbed7b8
scsi: hisi_sas: Modify v3 HW SATA completion error processing

[ Upstream commit 7e15334f5d256367fb4c77f4ee0003e1e3d9bf9d ]

If the I/O completion response frame returned by the target device has been
written to the host memory and the err bit in the status field of the
received fis is 1, ts->stat should set to SAS_PROTO_RESPONSE, and this will
let EH analyze and further determine cause of failure.

Link: https://lore.kernel.org/r/1657823002-139010-5-git-send-email-john.garry@huawei.com
Signed-off-by: Xingui Yang <yangxingui@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: f5393a5602ca ("scsi: hisi_sas: Fix normally completed I/O analysed as failed")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c