]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: add internal abort main code
authorJohn Garry <john.garry@huawei.com>
Wed, 24 Aug 2016 11:05:47 +0000 (19:05 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Aug 2016 02:38:53 +0000 (22:38 -0400)
commit25e8430d993e0af3b737a7760f6f8c01e11f019f
tree010221d4afff074a893c9e577514b28a16bfbcc3
parent38cf0ab2d204b6355997185625067f1576ec06f6
scsi: hisi_sas: add internal abort main code

Add main code for internal abort functionality.

The internal abort features allows the host controller to abort commands
which are still active in the controller but have not yet been sent to
the slave device.

Typically a command only spends a relatively short time in the
controller when compared to the amount of the time after it is sent to
the slave device.

Two modes of internal abort are supported:

 - device
 - individual command

For device, when the internal abort is issued all commands in the host
for that device are aborted.  For a single command, only that command is
aborted if it is still in the host.

In HW the internal abort command is executed similar to any other sort
of command, like SSP.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c