]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon/sec - move backlog management to qp and store sqe in qp for callback
authorChenghai Huang <huangchenghai2@huawei.com>
Thu, 18 Dec 2025 13:44:43 +0000 (21:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jan 2026 06:02:06 +0000 (14:02 +0800)
commit08eb67d23e5172a5d1e60f1f0acccee569fe10ba
tree42739f62ff6a6c13815f3a87c528fc64b5c0ab5b
parent19c2475ce1984cf675ebfbbeaa5509b2fb1887d6
crypto: hisilicon/sec - move backlog management to qp and store sqe in qp for callback

When multiple tfm use a same qp, the backlog data should be managed
centrally by the qp, rather than in the qp_ctx of each req.

Additionally, since SEC_BD_TYPE1 and SEC_BD_TYPE2 cannot use the
tag of the sqe to carry the virtual address of the req, the sent
sqe is stored in the qp. This allows the callback function to get
the req address. To handle the differences between hardware types,
the callback functions are split into two separate implementations.

Fixes: f0ae287c5045 ("crypto: hisilicon/sec2 - implement full backlog mode for sec")
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/qm.c
drivers/crypto/hisilicon/sec2/sec.h
drivers/crypto/hisilicon/sec2/sec_crypto.c
include/linux/hisi_acc_qm.h