* [PATCH] crypto: hisilicon/qm - remove unneeded hardware cache write back
@ 2022-08-13 10:35 Yang Shen
2022-08-19 11:04 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Yang Shen @ 2022-08-13 10:35 UTC (permalink / raw)
To: herbert, davem; +Cc: linux-kernel, linux-crypto, wangzhou1, liulongfang
From: Weili Qian <qianweili@huawei.com>
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>
---
drivers/crypto/hisilicon/qm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c
index 771ba73468f7..0f8ae8f99413 100644
--- a/drivers/crypto/hisilicon/qm.c
+++ b/drivers/crypto/hisilicon/qm.c
@@ -3258,7 +3258,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);
}
--
2.33.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: hisilicon/qm - remove unneeded hardware cache write back
2022-08-13 10:35 [PATCH] crypto: hisilicon/qm - remove unneeded hardware cache write back Yang Shen
@ 2022-08-19 11:04 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2022-08-19 11:04 UTC (permalink / raw)
To: Yang Shen; +Cc: davem, linux-kernel, linux-crypto, wangzhou1, liulongfang
On Sat, Aug 13, 2022 at 06:35:45PM +0800, Yang Shen wrote:
> From: Weili Qian <qianweili@huawei.com>
>
> 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>
> ---
> drivers/crypto/hisilicon/qm.c | 1 -
> 1 file changed, 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-19 11:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-13 10:35 [PATCH] crypto: hisilicon/qm - remove unneeded hardware cache write back Yang Shen
2022-08-19 11:04 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®