Skip to contentSkip to conversation

crypto: hisilicon/zip - add new algorithms for uacce device

PATCH In review Yang Shen 2 participants 2 messages Dec 14, 2021 – Dec 24, 2021

Subsystems (2)
lore
Share & tools
lore

Yang Shen

author
#0 lore raw

PATCH 1/1 crypto: hisilicon/zip - add new algorithms for uacce device

Enable deflate/lz77_zstd algorithm for uacce device on Kunpeng930.

---
 drivers/crypto/hisilicon/zip/zip_main.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/crypto/hisilicon/zip/zip_main.c +4 -1
index 49a5b6e6c825..74799b16e52b 100644
@@ -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;
Signature · 1 line
2.33.0
maintainer
#1 lore raw
Quoted 6 lines · Yang Shen

Enable deflate/lz77_zstd algorithm for uacce device on Kunpeng930.

---
 drivers/crypto/hisilicon/zip/zip_main.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt