crypto: hisilicon/qm - stop function and write data to memory
authorWeili Qian <qianweili@huawei.com>
Fri, 14 Jul 2023 11:41:36 +0000 (19:41 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 22 Jul 2023 01:59:39 +0000 (13:59 +1200)
commit4b3ee3ff2dd66b45dd5ec374a95af06eb26d35ac
treeb1b586fcf98a2a056da6e7e690344b9c393bc38a
parent5cd4ed98cfb743cd8f363ccc674313c14c17acd5
crypto: hisilicon/qm - stop function and write data to memory

When the system is shut down, the process is killed, but the
accelerator device does not stop executing the tasks. If the
accelerator device still accesses the memory and writes back data
to the memory after the memory is reclaimed by the system,
an NFE error may occur. Therefore, before the system is shut
down, the driver needs to stop the device and write data back
to the memory.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c
include/linux/hisi_acc_qm.h