]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e99481b13acb07671c5157283fa5ed0aaf676a1
treedb38e48e01cff7f486fbd4267b06f6ca512aabf9
parent233412ac4de22dd61293cb5aa0f1538e98c7a985
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