diff options
author | John Garry <[email protected]> | 2022-10-17 17:20:28 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-10-18 02:37:45 +0000 |
commit | 44112922674b94a7d699dfff6307fc830018df7c (patch) | |
tree | 83b494f2038df47804b0f4689ebbd68000861e2c /tools/perf/scripts/python/netdev-times.py | |
parent | 9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff) |
scsi: libsas: Add sas_ata_device_link_abort()
Similar to how AHCI handles NCQ errors in ahci_error_intr() ->
ata_port_abort() -> ata_do_link_abort(), add an NCQ error handler for LLDDs
to call to initiate a link abort.
This will mark all outstanding QCs as failed and kick-off EH.
Note:
A "force reset" argument is added for drivers which require the ATA error
handling to always reset the device.
A driver may require this feature for when SATA device per-SCSI cmnd
resources are only released during reset for ATA EH. As such, we need an
option to force reset to be done, regardless of what any EH autopsy
decides.
The SATA device FIS fields are set to indicate a device error from
ata_eh_analyze_tf().
Suggested-by: Damien Le Moal <[email protected]>
Suggested-by: Niklas Cassel <[email protected]>
Signed-off-by: John Garry <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Damien Le Moal <[email protected]>
Tested-by: Niklas Cassel <[email protected]> # pm80xx
Reviewed-by: Jason Yan <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions