projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
696645d
)
crypto: hisilicon/zip - add new algorithms for uacce device
author
Yang Shen
<shenyang39@huawei.com>
Tue, 14 Dec 2021 06:45:09 +0000
(14:45 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 24 Dec 2021 03:18:21 +0000
(14:18 +1100)
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>
drivers/crypto/hisilicon/zip/zip_main.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/hisilicon/zip/zip_main.c
b/drivers/crypto/hisilicon/zip/zip_main.c
index 7fd302ae4fc5c7f92c2fe869c83b4028ff0b2bbf..678f8b58ec42dc81f4bb2a449ed40a3443dd6f70 100644
(file)
--- 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;