Skip to contentSkip to conversation

crypto: hisilicon/qm - remove unneeded hardware cache write back

PATCH In review Yang Shen 2 participants 2 messages Aug 13, 2022 – Aug 19, 2022

Subsystems (2)
lore
Share & tools
lore

Yang Shen

author
#0 lore raw

PATCH 1/1 crypto: hisilicon/qm - remove unneeded hardware cache write back

From: Weili Qian <[email protected]>

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.

---
 drivers/crypto/hisilicon/qm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/crypto/hisilicon/qm.c +0 -1
index 771ba73468f7..0f8ae8f99413 100644
@@ -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

maintainer
#1 lore raw
Quoted 8 lines · Yang Shen

From: Weili Qian <[email protected]>

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.

Quoted 5 lines
---
 drivers/crypto/hisilicon/qm.c | 1 -
 1 file changed, 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