scsi: hisi_sas: Modify v3 HW SSP underflow error processing
authorXingui Yang <yangxingui@huawei.com>
Thu, 24 Feb 2022 11:51:29 +0000 (19:51 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 28 Feb 2022 02:46:41 +0000 (21:46 -0500)
commit62413199cd6d2906c121c2dfa3d7b82fd05f08db
treedb38e48e01cff7f486fbd4267b06f6ca512aabf9
parent286ce4c65fbdf5eb9d4d5f4e4997c4e32bf1b073
scsi: hisi_sas: Modify v3 HW SSP underflow error processing

In case of SSP underflow allow the response frame IU to be examined for
setting the response stat value rather than always setting
SAS_DATA_UNDERRUN.

This will mean that we call sas_ssp_task_response() in those scenarios and
may send sense data to upper layer.

Such a condition would be for bad blocks were we just reporting an
underflow error to upper layer, but now the sense data will tell
immediately that the media is faulty.

Link: https://lore.kernel.org/r/1645703489-87194-7-git-send-email-john.garry@huawei.com
Signed-off-by: Xingui Yang <yangxingui@huawei.com>
Signed-off-by: Qi Liu <liuqi115@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_v3_hw.c