crypto: hisilicon/qm - remove unneeded hardware cache write back
authorWeili Qian <qianweili@huawei.com>
Sat, 13 Aug 2022 10:35:45 +0000 (18:35 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Aug 2022 10:39:38 +0000 (18:39 +0800)
Data in the hardware cache needs to be written back to the memory
before the queue memory is released. Currently, the queue memory is
applied for when the driver is loaded and released when the driver is
removed. Therefore, the hardware cache does not need to be written back
when process puts queue.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Yang Shen <shenyang39@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c

index 927d9fa7b6b232ce787cec6f388dd24bfe03c5d6..b2e7abff1b8a31ab80a847fa978629a6e8796f9e 100644 (file)
@@ -3246,7 +3246,6 @@ static void hisi_qm_uacce_put_queue(struct uacce_queue *q)
 {
        struct hisi_qp *qp = q->priv;
 
-       hisi_qm_cache_wb(qp->qm);
        hisi_qm_release_qp(qp);
 }