Skip to content

Commit c31dc9f

Browse files
tsk-lieacuiherbertx
authored andcommitted
crypto: hisilicon/qm - add DebugFS for xQC and xQE dump
Add dump information of SQC/CQC/EQC/AEQC/SQE/CQE/EQE/AEQE. Signed-off-by: Shukun Tan <[email protected]> Reviewed-by: Zhou Wang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 6621e64 commit c31dc9f

File tree

5 files changed

+488
-39
lines changed

5 files changed

+488
-39
lines changed

drivers/crypto/hisilicon/hpre/hpre_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
#define HPRE_OOO_ECC_2BIT_ERR BIT(5)
8585

8686
#define HPRE_VIA_MSI_DSM 1
87+
#define HPRE_SQE_MASK_OFFSET 8
88+
#define HPRE_SQE_MASK_LEN 24
8789

8890
static struct hisi_qm_list hpre_devices;
8991
static const char hpre_name[] = "hisi_hpre";
@@ -683,6 +685,8 @@ static int hpre_debugfs_init(struct hpre *hpre)
683685

684686
dir = debugfs_create_dir(dev_name(dev), hpre_debugfs_root);
685687
qm->debug.debug_root = dir;
688+
qm->debug.sqe_mask_offset = HPRE_SQE_MASK_OFFSET;
689+
qm->debug.sqe_mask_len = HPRE_SQE_MASK_LEN;
686690

687691
ret = hisi_qm_debug_init(qm);
688692
if (ret)

0 commit comments

Comments
 (0)