1 What: /sys/kernel/debug/hisi_sec2/<bdf>/clear_enable
3 Contact: linux-crypto@vger.kernel.org
4 Description: Enabling/disabling of clear action after reading
5 the SEC debug registers.
7 Only available for PF, and take no other effect on SEC.
9 What: /sys/kernel/debug/hisi_sec2/<bdf>/current_qm
11 Contact: linux-crypto@vger.kernel.org
12 Description: One SEC controller has one PF and multiple VFs, each function
13 has a QM. This file can be used to select the QM which below
15 Only available for PF.
17 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
19 Contact: linux-crypto@vger.kernel.org
20 Description: Dump of QM related debug registers.
21 Available for PF and VF in host. VF in guest currently only
22 has one debug register.
24 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q
26 Contact: linux-crypto@vger.kernel.org
27 Description: One QM of SEC may contain multiple queues. Select specific
28 queue to show its debug registers in above 'regs'.
29 Only available for PF.
31 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable
33 Contact: linux-crypto@vger.kernel.org
34 Description: Enabling/disabling of clear action after reading
35 the SEC's QM debug registers.
36 0: disable, 1: enable.
37 Only available for PF, and take no other effect on SEC.
39 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq
41 Contact: linux-crypto@vger.kernel.org
42 Description: Dump the number of invalid interrupts for
44 Available for both PF and VF, and take no other effect on SEC.
46 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq
48 Contact: linux-crypto@vger.kernel.org
49 Description: Dump the number of QM async event queue interrupts.
50 Available for both PF and VF, and take no other effect on SEC.
52 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq
54 Contact: linux-crypto@vger.kernel.org
55 Description: Dump the number of interrupts for QM abnormal event.
56 Available for both PF and VF, and take no other effect on SEC.
58 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err
60 Contact: linux-crypto@vger.kernel.org
61 Description: Dump the number of queue allocation errors.
62 Available for both PF and VF, and take no other effect on SEC.
64 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err
66 Contact: linux-crypto@vger.kernel.org
67 Description: Dump the number of failed QM mailbox commands.
68 Available for both PF and VF, and take no other effect on SEC.
70 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/status
72 Contact: linux-crypto@vger.kernel.org
73 Description: Dump the status of the QM.
74 Four states: initiated, started, stopped and closed.
75 Available for both PF and VF, and take no other effect on SEC.
77 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt
79 Contact: linux-crypto@vger.kernel.org
80 Description: Dump the total number of sent requests.
81 Available for both PF and VF, and take no other effect on SEC.
83 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt
85 Contact: linux-crypto@vger.kernel.org
86 Description: Dump the total number of received requests.
87 Available for both PF and VF, and take no other effect on SEC.
89 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt
91 Contact: linux-crypto@vger.kernel.org
92 Description: Dump the total number of requests sent with returning busy.
93 Available for both PF and VF, and take no other effect on SEC.
95 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt
97 Contact: linux-crypto@vger.kernel.org
98 Description: Dump the total number of BD type error requests
100 Available for both PF and VF, and take no other effect on SEC.
102 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt
104 Contact: linux-crypto@vger.kernel.org
105 Description: Dump the total number of invalid requests being received.
106 Available for both PF and VF, and take no other effect on SEC.
108 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt
110 Contact: linux-crypto@vger.kernel.org
111 Description: Dump the total number of completed but marked error requests
113 Available for both PF and VF, and take no other effect on SEC.