crypto: hisilicon/qm - support address prefetching
authorLongfang Liu <liulongfang@huawei.com>
Sat, 22 May 2021 07:30:04 +0000 (15:30 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 May 2021 07:11:47 +0000 (15:11 +0800)
commita5c164b195a89aedc8179d68cedf00e7f8baa58e
treea03b3458fc346183e6b9f63b7cadc1351ed5ee28
parent9b75e311acadb978001c81400a6ba64f48bf00e8
crypto: hisilicon/qm - support address prefetching

Kunpeng930 hardware supports address prefetching to improve performance
before doing tasks in SVA scenario.

This patch enables this function in device initialization by writing
hardware registers. In the process of reset, address prefetching is
disabled to avoid the failure of interaction between accelerator device
and SMMU.

Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_main.c
drivers/crypto/hisilicon/qm.c
drivers/crypto/hisilicon/qm.h
drivers/crypto/hisilicon/sec2/sec_main.c
drivers/crypto/hisilicon/zip/zip_main.c