summaryrefslogtreecommitdiffstats
path: root/include/linux/hisi_acc_qm.h
diff options
context:
space:
mode:
authorWeili Qian <qianweili@huawei.com>2023-07-14 19:41:36 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-07-22 13:59:39 +1200
commit4b3ee3ff2dd66b45dd5ec374a95af06eb26d35ac (patch)
treeb1b586fcf98a2a056da6e7e690344b9c393bc38a /include/linux/hisi_acc_qm.h
parent5cd4ed98cfb743cd8f363ccc674313c14c17acd5 (diff)
downloadlinux-4b3ee3ff2dd66b45dd5ec374a95af06eb26d35ac.tar.gz
linux-4b3ee3ff2dd66b45dd5ec374a95af06eb26d35ac.tar.bz2
linux-4b3ee3ff2dd66b45dd5ec374a95af06eb26d35ac.zip
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>
Diffstat (limited to 'include/linux/hisi_acc_qm.h')
-rw-r--r--include/linux/hisi_acc_qm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hisi_acc_qm.h b/include/linux/hisi_acc_qm.h
index a7d54d4d41fd..39fbfb4be944 100644
--- a/include/linux/hisi_acc_qm.h
+++ b/include/linux/hisi_acc_qm.h
@@ -104,7 +104,7 @@
enum qm_stop_reason {
QM_NORMAL,
QM_SOFT_RESET,
- QM_FLR,
+ QM_DOWN,
};
enum qm_state {