diff options
author | Xingui Yang <yangxingui@huawei.com> | 2022-10-17 11:20:30 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-10-18 04:37:45 +0200 |
commit | 930d97dabdd56681aef752a35475f0212a171741 (patch) | |
tree | 4488e039a35459c3ffd1d90aa62cdeb10cc63da2 /drivers/scsi/pm8001 | |
parent | scsi: hisi_sas: Move slot variable definition in hisi_sas_abort_task() (diff) | |
download | linux-930d97dabdd56681aef752a35475f0212a171741.tar.xz linux-930d97dabdd56681aef752a35475f0212a171741.zip |
scsi: hisi_sas: Add SATA_DISK_ERR bit handling for v3 hw
When CQ header dw3 SATA_DISK_ERR is set it means this SATA disk is in error
state and the current IPTT is invalid. An invalid IPTT does not correspond
to any slot.
In this scenario, new I/Os that delivered to disk will be rejected by the
controller and all I/Os remaining in the disk should be aborted, which we
add here with the sas_ata_device_link_abort() call.
In hisi_sas_abort_task() we don't want to issue a soft reset as it may
cause info to be lost in the target disk for the ATA EH autopsy. In this
case, just release resources - the disk won't return other I/Os normally
after NCQ Error, so this is safe.
Signed-off-by: Xingui Yang <yangxingui@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/1665998435-199946-4-git-send-email-john.garry@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pm8001')
0 files changed, 0 insertions, 0 deletions