]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon/qm - add the save operation of eqe and aeqe
authornieweiqiang <nieweiqiang@huawei.com>
Sat, 25 Oct 2025 10:12:55 +0000 (18:12 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Oct 2025 09:50:42 +0000 (17:50 +0800)
commitf5a332980a6877c79863fbf5c16ae86555627ba6
treee22c13ef072b7f1e18a15753fd6f2fc14178327a
parentf5e297a112fa0dd31e09246709c859bb38dfba0b
crypto: hisilicon/qm - add the save operation of eqe and aeqe

The eqe and aeqe are device updated values that include the
valid bit and queue number. In the current process, there is no
memory barrier added, so it cannot be guaranteed that the valid
bit is read before other processes are executed. Since eqe and aeqe
are only 4 bytes and the device writes them to memory in a single
operation, saving the values of eqe and aeqe ensures that the valid
bit and queue number read by the CPU were written by the device
simultaneously.

Signed-off-by: nieweiqiang <nieweiqiang@huawei.com>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c