Debian Codegraph @

Documentation/ABI/testing/debugfs-hisi-zip

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