crypto: hisilicon/sec2 - Add iommu status check
authorLongfang Liu <liulongfang@huawei.com>
Thu, 5 Mar 2020 02:06:23 +0000 (10:06 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Mar 2020 12:00:14 +0000 (23:00 +1100)
commit8824bc5ed1e7fbc23529c9b2e799bb9414cb6e52
treebe973878b6f476172a10ad772e9aa873c54efce1
parenta13c97118749954a9f47a3b5fc47457baf664f2d
crypto: hisilicon/sec2 - Add iommu status check

In order to improve performance of small packets (<512Bytes)
in SMMU translation scenario, we need to identify the type of IOMMU
in the SEC probe to process small packets by a different method.

Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Signed-off-by: Zaibo Xu <xuzaibo@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec.h
drivers/crypto/hisilicon/sec2/sec_main.c