1 What: /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/regs
3 Contact: linux-crypto@vger.kernel.org
4 Description: Dump debug registers from the HPRE cluster.
7 What: /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/cluster_ctrl
9 Contact: linux-crypto@vger.kernel.org
10 Description: 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.
14 What: /sys/kernel/debug/hisi_hpre/<bdf>/rdclr_en
16 Contact: linux-crypto@vger.kernel.org
17 Description: 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.
23 What: /sys/kernel/debug/hisi_hpre/<bdf>/current_qm
25 Contact: linux-crypto@vger.kernel.org
26 Description: 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.
30 What: /sys/kernel/debug/hisi_hpre/<bdf>/regs
32 Contact: linux-crypto@vger.kernel.org
33 Description: Dump debug registers from the HPRE.
34 Only available for PF.
36 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/regs
38 Contact: linux-crypto@vger.kernel.org
39 Description: Dump debug registers from the QM.
40 Available for PF and VF in host. VF in guest currently only
41 has one debug register.
43 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q
45 Contact: linux-crypto@vger.kernel.org
46 Description: One QM may contain multiple queues. Select specific queue to
47 show its debug registers in above regs.
48 Only available for PF.
50 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable
52 Contact: linux-crypto@vger.kernel.org
53 Description: QM debug registers(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.
59 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq
61 Contact: linux-crypto@vger.kernel.org
62 Description: Dump the number of invalid interrupts for
64 Available for both PF and VF, and take no other effect on HPRE.
66 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq
68 Contact: linux-crypto@vger.kernel.org
69 Description: Dump the number of QM async event queue interrupts.
70 Available for both PF and VF, and take no other effect on HPRE.
72 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq
74 Contact: linux-crypto@vger.kernel.org
75 Description: Dump the number of interrupts for QM abnormal event.
76 Available for both PF and VF, and take no other effect on HPRE.
78 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err
80 Contact: linux-crypto@vger.kernel.org
81 Description: Dump the number of queue allocation errors.
82 Available for both PF and VF, and take no other effect on HPRE.
84 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err
86 Contact: linux-crypto@vger.kernel.org
87 Description: Dump the number of failed QM mailbox commands.
88 Available for both PF and VF, and take no other effect on HPRE.
90 What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/status
92 Contact: linux-crypto@vger.kernel.org
93 Description: Dump the status of the QM.
94 Four states: initiated, started, stopped and closed.
95 Available for both PF and VF, and take no other effect on HPRE.
97 What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_cnt
99 Contact: linux-crypto@vger.kernel.org
100 Description: Dump the total number of sent requests.
101 Available for both PF and VF, and take no other effect on HPRE.
103 What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/recv_cnt
105 Contact: linux-crypto@vger.kernel.org
106 Description: Dump the total number of received requests.
107 Available for both PF and VF, and take no other effect on HPRE.
109 What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_busy_cnt
111 Contact: linux-crypto@vger.kernel.org
112 Description: Dump the total number of requests sent
114 Available for both PF and VF, and take no other effect on HPRE.
116 What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_fail_cnt
118 Contact: linux-crypto@vger.kernel.org
119 Description: Dump the total number of completed but error requests.
120 Available for both PF and VF, and take no other effect on HPRE.
122 What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/invalid_req_cnt
124 Contact: linux-crypto@vger.kernel.org
125 Description: Dump the total number of invalid requests being received.
126 Available for both PF and VF, and take no other effect on HPRE.
128 What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/overtime_thrhld
130 Contact: linux-crypto@vger.kernel.org
131 Description: Set the threshold time for counting the request which is
132 processed longer than the threshold.
133 0: disable(default), 1: 1 microsecond.
134 Available for both PF and VF, and take no other effect on HPRE.
136 What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/over_thrhld_cnt
138 Contact: linux-crypto@vger.kernel.org
139 Description: Dump the total number of time out requests.
140 Available for both PF and VF, and take no other effect on HPRE.