xref: /linux/Documentation/ABI/testing/debugfs-hisi-sec (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1What:           /sys/kernel/debug/hisi_sec2/<bdf>/clear_enable
2Date:           Oct 2019
3Contact:        linux-crypto@vger.kernel.org
4Description:    Enabling/disabling of clear action after reading
5		the SEC debug registers.
6		0: disable, 1: enable.
7		Only available for PF, and take no other effect on SEC.
8
9What:           /sys/kernel/debug/hisi_sec2/<bdf>/current_qm
10Date:           Oct 2019
11Contact:        linux-crypto@vger.kernel.org
12Description:    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
14		qm refers to.
15		Only available for PF.
16
17What:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
18Date:           Oct 2019
19Contact:        linux-crypto@vger.kernel.org
20Description:    Dump of QM related debug registers.
21		Available for PF and VF in host. VF in guest currently only
22		has one debug register.
23
24What:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q
25Date:           Oct 2019
26Contact:        linux-crypto@vger.kernel.org
27Description:    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.
30
31What:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable
32Date:           Oct 2019
33Contact:        linux-crypto@vger.kernel.org
34Description:    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.
38
39What:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq
40Date:           Apr 2020
41Contact:        linux-crypto@vger.kernel.org
42Description:    Dump the number of invalid interrupts for
43		QM task completion.
44		Available for both PF and VF, and take no other effect on SEC.
45
46What:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq
47Date:           Apr 2020
48Contact:        linux-crypto@vger.kernel.org
49Description:    Dump the number of QM async event queue interrupts.
50		Available for both PF and VF, and take no other effect on SEC.
51
52What:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq
53Date:           Apr 2020
54Contact:        linux-crypto@vger.kernel.org
55Description:    Dump the number of interrupts for QM abnormal event.
56		Available for both PF and VF, and take no other effect on SEC.
57
58What:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err
59Date:           Apr 2020
60Contact:        linux-crypto@vger.kernel.org
61Description:    Dump the number of queue allocation errors.
62		Available for both PF and VF, and take no other effect on SEC.
63
64What:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err
65Date:           Apr 2020
66Contact:        linux-crypto@vger.kernel.org
67Description:    Dump the number of failed QM mailbox commands.
68		Available for both PF and VF, and take no other effect on SEC.
69
70What:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/status
71Date:           Apr 2020
72Contact:        linux-crypto@vger.kernel.org
73Description:    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.
76
77What:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt
78Date:           Apr 2020
79Contact:        linux-crypto@vger.kernel.org
80Description:    Dump the total number of sent requests.
81		Available for both PF and VF, and take no other effect on SEC.
82
83What:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt
84Date:           Apr 2020
85Contact:        linux-crypto@vger.kernel.org
86Description:    Dump the total number of received requests.
87		Available for both PF and VF, and take no other effect on SEC.
88
89What:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt
90Date:           Apr 2020
91Contact:        linux-crypto@vger.kernel.org
92Description:    Dump the total number of requests sent with returning busy.
93		Available for both PF and VF, and take no other effect on SEC.
94
95What:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt
96Date:           Apr 2020
97Contact:        linux-crypto@vger.kernel.org
98Description:    Dump the total number of BD type error requests
99		to be received.
100		Available for both PF and VF, and take no other effect on SEC.
101
102What:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt
103Date:           Apr 2020
104Contact:        linux-crypto@vger.kernel.org
105Description:    Dump the total number of invalid requests being received.
106		Available for both PF and VF, and take no other effect on SEC.
107
108What:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt
109Date:           Apr 2020
110Contact:        linux-crypto@vger.kernel.org
111Description:    Dump the total number of completed but marked error requests
112		to be received.
113		Available for both PF and VF, and take no other effect on SEC.
114