android_kernel_xiaomi_sm8450/drivers/scsi/hisi_sas
Xingui Yang 1e5eac0022 scsi: hisi_sas: Fix normally completed I/O analysed as failed
[ Upstream commit f5393a5602cacfda2014e0ff8220e5a7564e7cd1 ]

The PIO read command has no response frame and the struct iu[1024] won't be
filled. I/Os which are normally completed will be treated as failed in
sas_ata_task_done() when iu contains abnormal dirty data.

Consequently ending_fis should not be filled by iu when the response frame
hasn't been written to memory.

Fixes: d380f55503 ("scsi: hisi_sas: Don't bother clearing status buffer IU in task prep")
Signed-off-by: Xingui Yang <yangxingui@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/1689045300-44318-2-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:20:16 +02:00
..
hisi_sas_main.c scsi: hisi_sas: Set a port invalid only if there are no devices attached when refreshing port id 2023-02-01 08:23:17 +01:00
hisi_sas_v1_hw.c scsi: libsas: Introduce more SAM status code aliases in enum exec_status 2023-09-19 12:20:16 +02:00
hisi_sas_v2_hw.c scsi: hisi_sas: Fix normally completed I/O analysed as failed 2023-09-19 12:20:16 +02:00
hisi_sas_v3_hw.c scsi: hisi_sas: Fix normally completed I/O analysed as failed 2023-09-19 12:20:16 +02:00
hisi_sas.h SCSI misc on 20201013 2020-10-14 15:15:35 -07:00
Kconfig scsi: hisi_sas: Add check for methods _PS0 and _PR0 2020-10-06 20:47:06 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00