scsi: hisi_sas: Expose HW queues for v2 hw
authorJohn Garry <john.garry@huawei.com>
Wed, 2 Dec 2020 10:36:57 +0000 (18:36 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 22 Dec 2020 03:21:05 +0000 (22:21 -0500)
commit74a2921948ed8c0e7f079a98442ec3493168cc85
tree64edec88477f6ca5ba2061aba50497572a0417d2
parent81e7eb5bf08f36d34495a5898f6ef3fec05d9776
scsi: hisi_sas: Expose HW queues for v2 hw

As a performance enhancement, make the completion queue interrupts managed.

In addition, in commit bf0beec0607d ("blk-mq: drain I/O when all CPUs in a
hctx are offline"), CPU hotplug for MQ devices using managed interrupts is
made safe. So expose HW queues to blk-mq to take advantage of this.

Flag Scsi_host.host_tagset is also set to ensure that the HBA is not sent
more commands than it can handle. However the driver still does not use
request tag for IPTT as there are many HW bugs means that special rules
apply for IPTT allocation.

Link: https://lore.kernel.org/r/1606905417-183214-6-git-send-email-john.garry@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.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c