aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/sas.h
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2022-03-11 20:23:49 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2022-03-14 23:33:23 -0400
commit5c9bf3635b66add7d829b4d8d538ae0d770d9d89 (patch)
tree759632280396301ec5bc5fe6621f559d88994e12 /include/scsi/sas.h
parentscsi: lpfc: Remove failing soft_wwn support (diff)
downloadlinux-dev-5c9bf3635b66add7d829b4d8d538ae0d770d9d89.tar.xz
linux-dev-5c9bf3635b66add7d829b4d8d538ae0d770d9d89.zip
scsi: libsas: Add sas_execute_internal_abort_single()
The internal abort feature is common to hisi_sas and pm8001 HBAs, and the driver support is similar also, so add a common handler. Two modes of operation will be supported: - single: Abort a single tagged command - device: Abort all commands associated with a specific domain device A new protocol is added, SAS_PROTOCOL_INTERNAL_ABORT, so the common queue command API may be re-used. Only add "single" support as a first step. Link: https://lore.kernel.org/r/1647001432-239276-2-git-send-email-john.garry@huawei.com Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Acked-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi/sas.h')
-rw-r--r--include/scsi/sas.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/sas.h b/include/scsi/sas.h
index 332a463d08ef..acfc69fd72d0 100644
--- a/include/scsi/sas.h
+++ b/include/scsi/sas.h
@@ -95,6 +95,8 @@ enum sas_protocol {
SAS_PROTOCOL_SSP = 0x08,
SAS_PROTOCOL_ALL = 0x0E,
SAS_PROTOCOL_STP_ALL = SAS_PROTOCOL_STP|SAS_PROTOCOL_SATA,
+ /* these are internal to libsas */
+ SAS_PROTOCOL_INTERNAL_ABORT = 0x10,
};
/* From the spec; local phys only */