summaryrefslogtreecommitdiffstats
path: root/include/linux/hisi_acc_qm.h
diff options
context:
space:
mode:
authorLongfang Liu <liulongfang@huawei.com>2022-03-08 18:49:00 +0000
committerAlex Williamson <alex.williamson@redhat.com>2022-03-15 11:34:09 -0600
commit1e459b25081d4f939b8a1fb4c71dab0cec8f974a (patch)
tree015eecc968e0af452559aff3ff3304286612ecba /include/linux/hisi_acc_qm.h
parent442fbc099b839551f8576723da22c1269cc695ce (diff)
downloadlinux-1e459b25081d4f939b8a1fb4c71dab0cec8f974a.tar.gz
linux-1e459b25081d4f939b8a1fb4c71dab0cec8f974a.tar.bz2
linux-1e459b25081d4f939b8a1fb4c71dab0cec8f974a.zip
crypto: hisilicon/qm: Set the VF QM state register
We use VF QM state register to record the status of the QM configuration state. This will be used in the ACC migration driver to determine whether we can safely save and restore the QM data. Signed-off-by: Longfang Liu <liulongfang@huawei.com> Acked-by: Zhou Wang <wangzhou1@hisilicon.com> Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> Link: https://lore.kernel.org/r/20220308184902.2242-8-shameerali.kolothum.thodi@huawei.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/linux/hisi_acc_qm.h')
-rw-r--r--include/linux/hisi_acc_qm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/hisi_acc_qm.h b/include/linux/hisi_acc_qm.h
index 00f2a4db8723..177f7b7cd414 100644
--- a/include/linux/hisi_acc_qm.h
+++ b/include/linux/hisi_acc_qm.h
@@ -67,6 +67,7 @@
#define QM_DB_RAND_SHIFT_V2 16
#define QM_DB_INDEX_SHIFT_V2 32
#define QM_DB_PRIORITY_SHIFT_V2 48
+#define QM_VF_STATE 0x60
/* qm cache */
#define QM_CACHE_CTL 0x100050
@@ -162,6 +163,11 @@ enum qm_debug_file {
DEBUG_FILE_NUM,
};
+enum qm_vf_state {
+ QM_READY = 0,
+ QM_NOT_READY,
+};
+
struct qm_dfx {
atomic64_t err_irq_cnt;
atomic64_t aeq_irq_cnt;