xref: /linux/Documentation/ABI/testing/debugfs-hisi-zip (revision 30169c5b550a71a47b0aecd9c254dc3a1d5bf4a7)
18201fdf4SZhou WangWhat:		/sys/kernel/debug/hisi_zip/<bdf>/comp_core[01]/regs
28201fdf4SZhou WangDate:		Nov 2018
38201fdf4SZhou WangContact:	linux-crypto@vger.kernel.org
48201fdf4SZhou WangDescription:	Dump of compression cores related debug registers.
58201fdf4SZhou Wang		Only available for PF.
68201fdf4SZhou Wang
78201fdf4SZhou WangWhat:		/sys/kernel/debug/hisi_zip/<bdf>/decomp_core[0-5]/regs
88201fdf4SZhou WangDate:		Nov 2018
98201fdf4SZhou WangContact:	linux-crypto@vger.kernel.org
108201fdf4SZhou WangDescription:	Dump of decompression cores related debug registers.
118201fdf4SZhou Wang		Only available for PF.
128201fdf4SZhou Wang
138201fdf4SZhou WangWhat:		/sys/kernel/debug/hisi_zip/<bdf>/clear_enable
148201fdf4SZhou WangDate:		Nov 2018
158201fdf4SZhou WangContact:	linux-crypto@vger.kernel.org
168201fdf4SZhou WangDescription:	Compression/decompression core debug registers read clear
178201fdf4SZhou Wang		control. 1 means enable register read clear, otherwise 0.
188201fdf4SZhou Wang		Writing to this file has no functional effect, only enable or
198201fdf4SZhou Wang		disable counters clear after reading of these registers.
208201fdf4SZhou Wang		Only available for PF.
218201fdf4SZhou Wang
228201fdf4SZhou WangWhat:		/sys/kernel/debug/hisi_zip/<bdf>/current_qm
238201fdf4SZhou WangDate:		Nov 2018
248201fdf4SZhou WangContact:	linux-crypto@vger.kernel.org
258201fdf4SZhou WangDescription:	One ZIP controller has one PF and multiple VFs, each function
268201fdf4SZhou Wang		has a QM. Select the QM which below qm refers to.
278201fdf4SZhou Wang		Only available for PF.
288201fdf4SZhou Wang
29f6fb93ccSKai YeWhat:		/sys/kernel/debug/hisi_zip/<bdf>/alg_qos
30f6fb93ccSKai YeDate:		Jun 2021
31f6fb93ccSKai YeContact:	linux-crypto@vger.kernel.org
32f6fb93ccSKai YeDescription:	The <bdf> is related the function for PF and VF.
33f6fb93ccSKai Ye		ZIP driver supports to configure each function's QoS, the driver
34f6fb93ccSKai Ye		supports to write <bdf> value to alg_qos in the host. Such as
35f6fb93ccSKai Ye		"echo <bdf> value > alg_qos". The qos value is 1~1000, means
36f6fb93ccSKai Ye		1/1000~1000/1000 of total QoS. The driver reading alg_qos to
37f6fb93ccSKai Ye		get related QoS in the host and VM, Such as "cat alg_qos".
38f6fb93ccSKai Ye
39988453fbSShukun TanWhat:		/sys/kernel/debug/hisi_zip/<bdf>/qm/regs
408201fdf4SZhou WangDate:		Nov 2018
418201fdf4SZhou WangContact:	linux-crypto@vger.kernel.org
428201fdf4SZhou WangDescription:	Dump of QM related debug registers.
438201fdf4SZhou Wang		Available for PF and VF in host. VF in guest currently only
448201fdf4SZhou Wang		has one debug register.
458201fdf4SZhou Wang
468201fdf4SZhou WangWhat:		/sys/kernel/debug/hisi_zip/<bdf>/qm/current_q
478201fdf4SZhou WangDate:		Nov 2018
488201fdf4SZhou WangContact:	linux-crypto@vger.kernel.org
498201fdf4SZhou WangDescription:	One QM may contain multiple queues. Select specific queue to
50988453fbSShukun Tan		show its debug registers in above regs.
518201fdf4SZhou Wang		Only available for PF.
528201fdf4SZhou Wang
538201fdf4SZhou WangWhat:		/sys/kernel/debug/hisi_zip/<bdf>/qm/clear_enable
548201fdf4SZhou WangDate:		Nov 2018
558201fdf4SZhou WangContact:	linux-crypto@vger.kernel.org
56988453fbSShukun TanDescription:	QM debug registers(regs) read clear control. 1 means enable
578201fdf4SZhou Wang		register read clear, otherwise 0.
588201fdf4SZhou Wang		Writing to this file has no functional effect, only enable or
598201fdf4SZhou Wang		disable counters clear after reading of these registers.
608201fdf4SZhou Wang		Only available for PF.
6185026525SLongfang Liu
6285026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_zip/<bdf>/qm/err_irq
6385026525SLongfang LiuDate:		Apr 2020
6485026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
6585026525SLongfang LiuDescription:	Dump the number of invalid interrupts for
6685026525SLongfang Liu		QM task completion.
6785026525SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
6885026525SLongfang Liu
6985026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_zip/<bdf>/qm/aeq_irq
7085026525SLongfang LiuDate:		Apr 2020
7185026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
7285026525SLongfang LiuDescription:	Dump the number of QM async event queue interrupts.
7385026525SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
7485026525SLongfang Liu
7585026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_zip/<bdf>/qm/abnormal_irq
7685026525SLongfang LiuDate:		Apr 2020
7785026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
7885026525SLongfang LiuDescription:	Dump the number of interrupts for QM abnormal event.
7985026525SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
8085026525SLongfang Liu
8185026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_zip/<bdf>/qm/create_qp_err
8285026525SLongfang LiuDate:		Apr 2020
8385026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
8485026525SLongfang LiuDescription:	Dump the number of queue allocation errors.
8585026525SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
8685026525SLongfang Liu
8785026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_zip/<bdf>/qm/mb_err
8885026525SLongfang LiuDate:		Apr 2020
8985026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
9085026525SLongfang LiuDescription:	Dump the number of failed QM mailbox commands.
9185026525SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
920a3a3960SLongfang Liu
930a3a3960SLongfang LiuWhat:		/sys/kernel/debug/hisi_zip/<bdf>/qm/status
940a3a3960SLongfang LiuDate:		Apr 2020
950a3a3960SLongfang LiuContact:	linux-crypto@vger.kernel.org
960a3a3960SLongfang LiuDescription:	Dump the status of the QM.
970a3a3960SLongfang Liu		Four states: initiated, started, stopped and closed.
980a3a3960SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
996621e649SLongfang Liu
100*30169c5bSKai YeWhat:		/sys/kernel/debug/hisi_zip/<bdf>/qm/diff_regs
101*30169c5bSKai YeDate:		Mar 2022
102*30169c5bSKai YeContact:	linux-crypto@vger.kernel.org
103*30169c5bSKai YeDescription:	QM debug registers(regs) read hardware register value. This
104*30169c5bSKai Ye		node is used to show the change of the qm registers value. This
105*30169c5bSKai Ye		node can be help users to check the change of register values.
106*30169c5bSKai Ye
107*30169c5bSKai YeWhat:		/sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/diff_regs
108*30169c5bSKai YeDate:		Mar 2022
109*30169c5bSKai YeContact:	linux-crypto@vger.kernel.org
110*30169c5bSKai YeDescription:	ZIP debug registers(regs) read hardware register value. This
111*30169c5bSKai Ye		node is used to show the change of the registers value. this
112*30169c5bSKai Ye		node can be help users to check the change of register values.
113*30169c5bSKai Ye
1146621e649SLongfang LiuWhat:		/sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_cnt
1156621e649SLongfang LiuDate:		Apr 2020
1166621e649SLongfang LiuContact:	linux-crypto@vger.kernel.org
1176621e649SLongfang LiuDescription:	Dump the total number of sent requests.
1186621e649SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
1196621e649SLongfang Liu
1206621e649SLongfang LiuWhat:		/sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/recv_cnt
1216621e649SLongfang LiuDate:		Apr 2020
1226621e649SLongfang LiuContact:	linux-crypto@vger.kernel.org
1236621e649SLongfang LiuDescription:	Dump the total number of received requests.
1246621e649SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
1256621e649SLongfang Liu
1266621e649SLongfang LiuWhat:		/sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_busy_cnt
1276621e649SLongfang LiuDate:		Apr 2020
1286621e649SLongfang LiuContact:	linux-crypto@vger.kernel.org
1296621e649SLongfang LiuDescription:	Dump the total number of requests received
1306621e649SLongfang Liu		with returning busy.
1316621e649SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
1326621e649SLongfang Liu
1336621e649SLongfang LiuWhat:		/sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/err_bd_cnt
1346621e649SLongfang LiuDate:		Apr 2020
1356621e649SLongfang LiuContact:	linux-crypto@vger.kernel.org
1366621e649SLongfang LiuDescription:	Dump the total number of BD type error requests
1376621e649SLongfang Liu		to be received.
1386621e649SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
139