1What:           /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/regs
2Date:           Sep 2019
3Contact:        linux-crypto@vger.kernel.org
4Description:    Dump debug registers from the HPRE cluster.
5		Only available for PF.
6
7What:           /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/cluster_ctrl
8Date:           Sep 2019
9Contact:        linux-crypto@vger.kernel.org
10Description:    Write the HPRE core selection in the cluster into this file,
11		and then we can read the debug information of the core.
12		Only available for PF.
13
14What:           /sys/kernel/debug/hisi_hpre/<bdf>/rdclr_en
15Date:           Sep 2019
16Contact:        linux-crypto@vger.kernel.org
17Description:    HPRE cores debug registers read clear control. 1 means enable
18		register read clear, otherwise 0. Writing to this file has no
19		functional effect, only enable or disable counters clear after
20		reading of these registers.
21		Only available for PF.
22
23What:           /sys/kernel/debug/hisi_hpre/<bdf>/current_qm
24Date:           Sep 2019
25Contact:        linux-crypto@vger.kernel.org
26Description:    One HPRE controller has one PF and multiple VFs, each function
27		has a QM. Select the QM which below qm refers to.
28		Only available for PF.
29
30What:           /sys/kernel/debug/hisi_hpre/<bdf>/regs
31Date:           Sep 2019
32Contact:        linux-crypto@vger.kernel.org
33Description:    Dump debug registers from the HPRE.
34		Only available for PF.
35
36What:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/qm_regs
37Date:           Sep 2019
38Contact:        linux-crypto@vger.kernel.org
39Description:    Dump debug registers from the QM.
40		Available for PF and VF in host. VF in guest currently only
41		has one debug register.
42
43What:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q
44Date:           Sep 2019
45Contact:        linux-crypto@vger.kernel.org
46Description:    One QM may contain multiple queues. Select specific queue to
47		show its debug registers in above qm_regs.
48		Only available for PF.
49
50What:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable
51Date:           Sep 2019
52Contact:        linux-crypto@vger.kernel.org
53Description:    QM debug registers(qm_regs) read clear control. 1 means enable
54		register read clear, otherwise 0.
55		Writing to this file has no functional effect, only enable or
56		disable counters clear after reading of these registers.
57		Only available for PF.
58
59What:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq
60Date:           Apr 2020
61Contact:        linux-crypto@vger.kernel.org
62Description:    Dump the number of invalid interrupts for
63		QM task completion.
64		Available for both PF and VF, and take no other effect on HPRE.
65
66What:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq
67Date:           Apr 2020
68Contact:        linux-crypto@vger.kernel.org
69Description:    Dump the number of QM async event queue interrupts.
70		Available for both PF and VF, and take no other effect on HPRE.
71
72What:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq
73Date:           Apr 2020
74Contact:        linux-crypto@vger.kernel.org
75Description:    Dump the number of interrupts for QM abnormal event.
76		Available for both PF and VF, and take no other effect on HPRE.
77
78What:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err
79Date:           Apr 2020
80Contact:        linux-crypto@vger.kernel.org
81Description:    Dump the number of queue allocation errors.
82		Available for both PF and VF, and take no other effect on HPRE.
83
84What:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err
85Date:           Apr 2020
86Contact:        linux-crypto@vger.kernel.org
87Description:    Dump the number of failed QM mailbox commands.
88		Available for both PF and VF, and take no other effect on HPRE.
89