]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Limit max hw sectors for v3 HW
authorJohn Garry <john.garry@huawei.com>
Thu, 23 Jun 2022 12:41:59 +0000 (20:41 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 28 Jun 2022 02:43:57 +0000 (22:43 -0400)
commita6196b10ad87f23752e63d17b585ad728c2ce10a
tree28c076de3f2e2d53019c72ed51f2a54994bd0e4c
parent91107288ef3aad8e0cf06c4d6f10825a3094c769
scsi: hisi_sas: Limit max hw sectors for v3 HW

If the controller is behind an IOMMU then the IOMMU IOVA caching range can
affect performance, as discussed in [0].

Limit the max HW sectors to not exceed this limit. We need to hardcode the
value until a proper DMA mapping API is available.

[0] https://lore.kernel.org/linux-iommu/20210129092120.1482-1-thunder.leizhen@huawei.com/

Link: https://lore.kernel.org/r/1655988119-223714-1-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_v3_hw.c