From: Weili Qian Date: Sat, 13 Aug 2022 10:35:45 +0000 (+0800) Subject: crypto: hisilicon/qm - remove unneeded hardware cache write back X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6a088a2cbcaf40747cf2881df47f4f5d65acd7ab;p=users%2Fwilly%2Flinux.git crypto: hisilicon/qm - remove unneeded hardware cache write back 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 Signed-off-by: Yang Shen Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 927d9fa7b6b2..b2e7abff1b8a 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -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); }