]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: hisi_sas: Handle the NCQ error returned by D2H frame
authorXiang Chen <chenxiang66@hisilicon.com>
Tue, 2 Apr 2024 03:55:12 +0000 (11:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:02:15 +0000 (12:02 +0200)
commit2eab8da937db9d97a3fc431ac4c9c16f36e7395c
treeceffa7892f4622ccaf63e831356c80c638e077d6
parent2f35afac27735f8b8db23e753c4cdd6b8636ca75
scsi: hisi_sas: Handle the NCQ error returned by D2H frame

[ Upstream commit 358e919a351f2ea4b412e7dac6b1c23ec10bd4f5 ]

We find that some disks use D2H frame instead of SDB frame to return NCQ
error. Currently, only the I/O corresponding to the D2H frame is processed
in this scenario, which does not meet the processing requirements of the
NCQ error scenario.  So we set dev_status to HISI_SAS_DEV_NCQ_ERR and abort
all I/Os of the disk in this scenario.

Co-developed-by: Xingui Yang <yangxingui@huawei.com>
Signed-off-by: Xingui Yang <yangxingui@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/20240402035513.2024241-2-chenxiang66@hisilicon.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c