summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChenghai Huang <huangchenghai2@huawei.com>2025-12-18 16:44:46 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-27 02:00:46 +0300
commit5d70c905a0bbd64857eed519bf62f3633ad7d162 (patch)
tree1a44188987f355d9c6c70594fdc76b026f7a005e /include/linux
parent63223f79858de58d35344fc88a27bf23f0398f30 (diff)
downloadlinux-5d70c905a0bbd64857eed519bf62f3633ad7d162.tar.xz
crypto: hisilicon/qm - centralize the sending locks of each module into qm
[ Upstream commit 8cd9b608ee8dea78cac3f373bd5e3b3de2755d46 ] When a single queue used by multiple tfms, the protection of shared resources by individual module driver programs is no longer sufficient. The hisi_qp_send needs to be ensured by the lock in qp. Fixes: 5fdb4b345cfb ("crypto: hisilicon - add a lock for the qp send operation") Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com> Signed-off-by: Weili Qian <qianweili@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/hisi_acc_qm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hisi_acc_qm.h b/include/linux/hisi_acc_qm.h
index dd4323633d81..ef4d3a79bcb7 100644
--- a/include/linux/hisi_acc_qm.h
+++ b/include/linux/hisi_acc_qm.h
@@ -476,6 +476,7 @@ struct hisi_qp {
u16 pasid;
struct uacce_queue *uacce_q;
+ spinlock_t qp_lock;
struct instance_backlog backlog;
const void **msg;
};