diff options
author | Yang Shen <shenyang39@huawei.com> | 2021-12-14 14:45:09 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-12-24 14:18:21 +1100 |
commit | 223a41f54946a22616c2b9a0abc86e55f74efc69 (patch) | |
tree | e2b979791a790555cfeabc2c9e6a42db2b560a8a /drivers | |
parent | 696645d25bafd6ba3562611c29bc8ecd47066dfe (diff) | |
download | linux-223a41f54946a22616c2b9a0abc86e55f74efc69.tar.gz linux-223a41f54946a22616c2b9a0abc86e55f74efc69.tar.bz2 linux-223a41f54946a22616c2b9a0abc86e55f74efc69.zip |
crypto: hisilicon/zip - add new algorithms for uacce device
Enable deflate/lz77_zstd algorithm for uacce device on Kunpeng930.
Signed-off-by: Yang Shen <shenyang39@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/hisilicon/zip/zip_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c index 7fd302ae4fc5..678f8b58ec42 100644 --- a/drivers/crypto/hisilicon/zip/zip_main.c +++ b/drivers/crypto/hisilicon/zip/zip_main.c @@ -830,7 +830,10 @@ static int hisi_zip_qm_init(struct hisi_qm *qm, struct pci_dev *pdev) qm->pdev = pdev; qm->ver = pdev->revision; - qm->algs = "zlib\ngzip"; + if (pdev->revision >= QM_HW_V3) + qm->algs = "zlib\ngzip\ndeflate\nlz77_zstd"; + else + qm->algs = "zlib\ngzip"; qm->mode = uacce_mode; qm->sqe_size = HZIP_SQE_SIZE; qm->dev_name = hisi_zip_name; |