Debian Codegraph @

Documentation/ABI/testing/debugfs-hisi-sec

raw
1 What: /sys/kernel/debug/hisi_sec2/<bdf>/clear_enable
2 Date: Oct 2019
3 Contact: [email protected]
4 Description: 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
9 What: /sys/kernel/debug/hisi_sec2/<bdf>/current_qm
10 Date: Oct 2019
11 Contact: [email protected]
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
14 qm refers to.
15 Only available for PF.
16
17 What: /sys/kernel/debug/hisi_sec2/<bdf>/alg_qos
18 Date: Jun 2021
19 Contact: [email protected]
20 Description: The <bdf> is related the function for PF and VF.
21 SEC driver supports to configure each function's QoS, the driver
22 supports to write <bdf> value to alg_qos in the host. Such as
23 "echo <bdf> value > alg_qos". The qos value is 1~1000, means
24 1/1000~1000/1000 of total QoS. The driver reading alg_qos to
25 get related QoS in the host and VM, Such as "cat alg_qos".
26
27 What: /sys/kernel/debug/hisi_sec2/<bdf>/dev_usage
28 Date: Mar 2026
29 Contact: [email protected]
30 Description: Query the real-time bandwidth usage of device.
31 Returns the bandwidth usage of each channel on the device.
32 The returned number is in percentage.
33
34 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
35 Date: Oct 2019
36 Contact: [email protected]
37 Description: Dump of QM related debug registers.
38 Available for PF and VF in host. VF in guest currently only
39 has one debug register.
40
41 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q
42 Date: Oct 2019
43 Contact: [email protected]
44 Description: One QM of SEC may contain multiple queues. Select specific
45 queue to show its debug registers in above 'regs'.
46 Only available for PF.
47
48 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable
49 Date: Oct 2019
50 Contact: [email protected]
51 Description: Enabling/disabling of clear action after reading
52 the SEC's QM debug registers.
53 0: disable, 1: enable.
54 Only available for PF, and take no other effect on SEC.
55
56 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq
57 Date: Apr 2020
58 Contact: [email protected]
59 Description: Dump the number of invalid interrupts for
60 QM task completion.
61 Available for both PF and VF, and take no other effect on SEC.
62
63 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq
64 Date: Apr 2020
65 Contact: [email protected]
66 Description: Dump the number of QM async event queue interrupts.
67 Available for both PF and VF, and take no other effect on SEC.
68
69 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq
70 Date: Apr 2020
71 Contact: [email protected]
72 Description: Dump the number of interrupts for QM abnormal event.
73 Available for both PF and VF, and take no other effect on SEC.
74
75 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err
76 Date: Apr 2020
77 Contact: [email protected]
78 Description: Dump the number of queue allocation errors.
79 Available for both PF and VF, and take no other effect on SEC.
80
81 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err
82 Date: Apr 2020
83 Contact: [email protected]
84 Description: Dump the number of failed QM mailbox commands.
85 Available for both PF and VF, and take no other effect on SEC.
86
87 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/status
88 Date: Apr 2020
89 Contact: [email protected]
90 Description: Dump the status of the QM.
91 Two states: work, stop.
92 Available for both PF and VF, and take no other effect on SEC.
93
94 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/diff_regs
95 Date: Mar 2022
96 Contact: [email protected]
97 Description: QM debug registers(regs) read hardware register value. This
98 node is used to show the change of the qm register values. This
99 node can be help users to check the change of register values.
100
101 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_state
102 Date: Jan 2024
103 Contact: [email protected]
104 Description: Dump the state of the device.
105 0: busy, 1: idle.
106 Only available for PF, and take no other effect on SEC.
107
108 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/dev_timeout
109 Date: Feb 2024
110 Contact: [email protected]
111 Description: Set the wait time when stop queue fails. Available for both PF
112 and VF, and take no other effect on SEC.
113 0: not wait(default), others value: wait dev_timeout * 20 microsecond.
114
115 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/dev_state
116 Date: Feb 2024
117 Contact: [email protected]
118 Description: Dump the stop queue status of the QM. The default value is 0,
119 if dev_timeout is set, when stop queue fails, the dev_state
120 will return non-zero value. Available for both PF and VF,
121 and take no other effect on SEC.
122
123 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/diff_regs
124 Date: Mar 2022
125 Contact: [email protected]
126 Description: SEC debug registers(regs) read hardware register value. This
127 node is used to show the change of the register values. This
128 node can be help users to check the change of register values.
129
130 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt
131 Date: Apr 2020
132 Contact: [email protected]
133 Description: Dump the total number of sent requests.
134 Available for both PF and VF, and take no other effect on SEC.
135
136 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt
137 Date: Apr 2020
138 Contact: [email protected]
139 Description: Dump the total number of received requests.
140 Available for both PF and VF, and take no other effect on SEC.
141
142 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt
143 Date: Apr 2020
144 Contact: [email protected]
145 Description: Dump the total number of requests sent with returning busy.
146 Available for both PF and VF, and take no other effect on SEC.
147
148 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt
149 Date: Apr 2020
150 Contact: [email protected]
151 Description: Dump the total number of BD type error requests
152 to be received.
153 Available for both PF and VF, and take no other effect on SEC.
154
155 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt
156 Date: Apr 2020
157 Contact: [email protected]
158 Description: Dump the total number of invalid requests being received.
159 Available for both PF and VF, and take no other effect on SEC.
160
161 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt
162 Date: Apr 2020
163 Contact: [email protected]
164 Description: Dump the total number of completed but marked error requests
165 to be received.
166 Available for both PF and VF, and take no other effect on SEC.
167
168 What: /sys/kernel/debug/hisi_sec2/<bdf>/cap_regs
169 Date: Oct 2024
170 Contact: [email protected]
171 Description: Dump the values of the qm and sec capability bit registers and
172 support the query of device specifications to facilitate fault locating.
173 Available for both PF and VF, and take no other effect on SEC.