From 7386b19d85c00f9093216fbad76c3818a435e130 Mon Sep 17 00:00:00 2001 From: Yang Shen Date: Mon, 27 Dec 2021 19:43:26 +0800 Subject: [PATCH] crypto: hisilicon/zip - add new algorithms for uacce device driver inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4MG5G ---------------------------------------------------------------------- Enable deflate/lz77_zstd algorithm for uacce device on Kunpeng930. Signed-off-by: Yang Shen Acked-by: Xie XiuQi Reviewed-by: Hao Fang Signed-off-by: Zheng Zengkai --- drivers/crypto/hisilicon/zip/zip_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c index 873971ef9aee..9cc7d9ffc28c 100644 --- a/drivers/crypto/hisilicon/zip/zip_main.c +++ b/drivers/crypto/hisilicon/zip/zip_main.c @@ -829,7 +829,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; -- GitLab