]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon/qm - centralize the sending locks of each module into qm
authorChenghai Huang <huangchenghai2@huawei.com>
Thu, 18 Dec 2025 13:44:46 +0000 (21:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jan 2026 06:02:06 +0000 (14:02 +0800)
commit8cd9b608ee8dea78cac3f373bd5e3b3de2755d46
tree6787330640ad5cfd08a1cc55449370307d963dbf
parent21452eaa06edb5f6038720e643aed0bbfffad9c3
crypto: hisilicon/qm - centralize the sending locks of each module into qm

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>
drivers/crypto/hisilicon/hpre/hpre_crypto.c
drivers/crypto/hisilicon/qm.c
drivers/crypto/hisilicon/zip/zip_crypto.c
include/linux/hisi_acc_qm.h