xref: /linux/Documentation/ABI/testing/debugfs-hisi-hpre (revision 60675d4ca1ef0857e44eba5849b74a3a998d0c0f)
1b492f82fSZaibo XuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/regs
2b492f82fSZaibo XuDate:		Sep 2019
3b492f82fSZaibo XuContact:	linux-crypto@vger.kernel.org
4b492f82fSZaibo XuDescription:	Dump debug registers from the HPRE cluster.
5b492f82fSZaibo Xu		Only available for PF.
6b492f82fSZaibo Xu
7b492f82fSZaibo XuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/cluster_ctrl
8b492f82fSZaibo XuDate:		Sep 2019
9b492f82fSZaibo XuContact:	linux-crypto@vger.kernel.org
10b492f82fSZaibo XuDescription:	Write the HPRE core selection in the cluster into this file,
11b492f82fSZaibo Xu		and then we can read the debug information of the core.
12b492f82fSZaibo Xu		Only available for PF.
13b492f82fSZaibo Xu
14b492f82fSZaibo XuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/rdclr_en
15b492f82fSZaibo XuDate:		Sep 2019
16b492f82fSZaibo XuContact:	linux-crypto@vger.kernel.org
17b492f82fSZaibo XuDescription:	HPRE cores debug registers read clear control. 1 means enable
18b492f82fSZaibo Xu		register read clear, otherwise 0. Writing to this file has no
19b492f82fSZaibo Xu		functional effect, only enable or disable counters clear after
20b492f82fSZaibo Xu		reading of these registers.
21b492f82fSZaibo Xu		Only available for PF.
22b492f82fSZaibo Xu
23b492f82fSZaibo XuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/current_qm
24b492f82fSZaibo XuDate:		Sep 2019
25b492f82fSZaibo XuContact:	linux-crypto@vger.kernel.org
26b492f82fSZaibo XuDescription:	One HPRE controller has one PF and multiple VFs, each function
27b492f82fSZaibo Xu		has a QM. Select the QM which below qm refers to.
28b492f82fSZaibo Xu		Only available for PF.
29b492f82fSZaibo Xu
3068ce6126SKai YeWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/alg_qos
3168ce6126SKai YeDate:		Jun 2021
3268ce6126SKai YeContact:	linux-crypto@vger.kernel.org
3368ce6126SKai YeDescription:	The <bdf> is related the function for PF and VF.
3468ce6126SKai Ye		HPRE driver supports to configure each function's QoS, the driver
3568ce6126SKai Ye		supports to write <bdf> value to alg_qos in the host. Such as
3668ce6126SKai Ye		"echo <bdf> value > alg_qos". The qos value is 1~1000, means
3768ce6126SKai Ye		1/1000~1000/1000 of total QoS. The driver reading alg_qos to
3868ce6126SKai Ye		get related QoS in the host and VM, Such as "cat alg_qos".
3968ce6126SKai Ye
40b492f82fSZaibo XuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/regs
41b492f82fSZaibo XuDate:		Sep 2019
42b492f82fSZaibo XuContact:	linux-crypto@vger.kernel.org
43b492f82fSZaibo XuDescription:	Dump debug registers from the HPRE.
44b492f82fSZaibo Xu		Only available for PF.
45b492f82fSZaibo Xu
46988453fbSShukun TanWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/regs
47b492f82fSZaibo XuDate:		Sep 2019
48b492f82fSZaibo XuContact:	linux-crypto@vger.kernel.org
49b492f82fSZaibo XuDescription:	Dump debug registers from the QM.
50b492f82fSZaibo Xu		Available for PF and VF in host. VF in guest currently only
51b492f82fSZaibo Xu		has one debug register.
52b492f82fSZaibo Xu
53b492f82fSZaibo XuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q
54b492f82fSZaibo XuDate:		Sep 2019
55b492f82fSZaibo XuContact:	linux-crypto@vger.kernel.org
56b492f82fSZaibo XuDescription:	One QM may contain multiple queues. Select specific queue to
57988453fbSShukun Tan		show its debug registers in above regs.
58b492f82fSZaibo Xu		Only available for PF.
59b492f82fSZaibo Xu
60b492f82fSZaibo XuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable
61b492f82fSZaibo XuDate:		Sep 2019
62b492f82fSZaibo XuContact:	linux-crypto@vger.kernel.org
63988453fbSShukun TanDescription:	QM debug registers(regs) read clear control. 1 means enable
64b492f82fSZaibo Xu		register read clear, otherwise 0.
65b492f82fSZaibo Xu		Writing to this file has no functional effect, only enable or
66b492f82fSZaibo Xu		disable counters clear after reading of these registers.
67b492f82fSZaibo Xu		Only available for PF.
6885026525SLongfang Liu
6985026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq
7085026525SLongfang LiuDate:		Apr 2020
7185026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
7285026525SLongfang LiuDescription:	Dump the number of invalid interrupts for
7385026525SLongfang Liu		QM task completion.
7485026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
7585026525SLongfang Liu
7685026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq
7785026525SLongfang LiuDate:		Apr 2020
7885026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
7985026525SLongfang LiuDescription:	Dump the number of QM async event queue interrupts.
8085026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
8185026525SLongfang Liu
8285026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq
8385026525SLongfang LiuDate:		Apr 2020
8485026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
8585026525SLongfang LiuDescription:	Dump the number of interrupts for QM abnormal event.
8685026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
8785026525SLongfang Liu
8885026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err
8985026525SLongfang LiuDate:		Apr 2020
9085026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
9185026525SLongfang LiuDescription:	Dump the number of queue allocation errors.
9285026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
9385026525SLongfang Liu
9485026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err
9585026525SLongfang LiuDate:		Apr 2020
9685026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
9785026525SLongfang LiuDescription:	Dump the number of failed QM mailbox commands.
9885026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
990a3a3960SLongfang Liu
1000a3a3960SLongfang LiuWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/status
1010a3a3960SLongfang LiuDate:		Apr 2020
1020a3a3960SLongfang LiuContact:	linux-crypto@vger.kernel.org
1030a3a3960SLongfang LiuDescription:	Dump the status of the QM.
104c66272a4SWeili Qian		Two states: work, stop.
1050a3a3960SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
10664a6301eSHui Tang
107a7dbdfdaSKai YeWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/diff_regs
108a7dbdfdaSKai YeDate:		Mar 2022
109a7dbdfdaSKai YeContact:	linux-crypto@vger.kernel.org
110a7dbdfdaSKai YeDescription:	QM debug registers(regs) read hardware register value. This
111a7dbdfdaSKai Ye		node is used to show the change of the qm register values. This
112a7dbdfdaSKai Ye		node can be help users to check the change of register values.
113a7dbdfdaSKai Ye
1148413fe3eSWeili QianWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/qm_state
1158413fe3eSWeili QianDate:		Jan 2024
1168413fe3eSWeili QianContact:	linux-crypto@vger.kernel.org
1178413fe3eSWeili QianDescription:	Dump the state of the device.
1188413fe3eSWeili Qian		0: busy, 1: idle.
1198413fe3eSWeili Qian		Only available for PF, and take no other effect on HPRE.
1208413fe3eSWeili Qian
121ce133a22SWeili QianWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/dev_timeout
122ce133a22SWeili QianDate:		Feb 2024
123ce133a22SWeili QianContact:	linux-crypto@vger.kernel.org
124ce133a22SWeili QianDescription:	Set the wait time when stop queue fails. Available for both PF
125ce133a22SWeili Qian		and VF, and take no other effect on HPRE.
126ce133a22SWeili Qian		0: not wait(default), others value: wait dev_timeout * 20 microsecond.
127ce133a22SWeili Qian
128ce133a22SWeili QianWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/dev_state
129ce133a22SWeili QianDate:		Feb 2024
130ce133a22SWeili QianContact:	linux-crypto@vger.kernel.org
131ce133a22SWeili QianDescription:	Dump the stop queue status of the QM. The default value is 0,
132ce133a22SWeili Qian		if dev_timeout is set, when stop queue fails, the dev_state
133ce133a22SWeili Qian		will return non-zero value. Available for both PF and VF,
134ce133a22SWeili Qian		and take no other effect on HPRE.
135ce133a22SWeili Qian
136a7dbdfdaSKai YeWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/diff_regs
137a7dbdfdaSKai YeDate:		Mar 2022
138a7dbdfdaSKai YeContact:	linux-crypto@vger.kernel.org
139a7dbdfdaSKai YeDescription:	HPRE debug registers(regs) read hardware register value. This
140a7dbdfdaSKai Ye		node is used to show the change of the register values. This
141a7dbdfdaSKai Ye		node can be help users to check the change of register values.
142a7dbdfdaSKai Ye
14364a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_cnt
14464a6301eSHui TangDate:		Apr 2020
14564a6301eSHui TangContact:	linux-crypto@vger.kernel.org
14664a6301eSHui TangDescription:	Dump the total number of sent requests.
14764a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
14864a6301eSHui Tang
14964a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/recv_cnt
15064a6301eSHui TangDate:		Apr 2020
15164a6301eSHui TangContact:	linux-crypto@vger.kernel.org
15264a6301eSHui TangDescription:	Dump the total number of received requests.
15364a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
15464a6301eSHui Tang
15564a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_busy_cnt
15664a6301eSHui TangDate:		Apr 2020
15764a6301eSHui TangContact:	linux-crypto@vger.kernel.org
15864a6301eSHui TangDescription:	Dump the total number of requests sent
15964a6301eSHui Tang		with returning busy.
16064a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
16164a6301eSHui Tang
16264a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_fail_cnt
16364a6301eSHui TangDate:		Apr 2020
16464a6301eSHui TangContact:	linux-crypto@vger.kernel.org
16564a6301eSHui TangDescription:	Dump the total number of completed but error requests.
16664a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
16764a6301eSHui Tang
16864a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/invalid_req_cnt
16964a6301eSHui TangDate:		Apr 2020
17064a6301eSHui TangContact:	linux-crypto@vger.kernel.org
17164a6301eSHui TangDescription:	Dump the total number of invalid requests being received.
17264a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
17364a6301eSHui Tang
17464a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/overtime_thrhld
17564a6301eSHui TangDate:		Apr 2020
17664a6301eSHui TangContact:	linux-crypto@vger.kernel.org
17764a6301eSHui TangDescription:	Set the threshold time for counting the request which is
17864a6301eSHui Tang		processed longer than the threshold.
17964a6301eSHui Tang		0: disable(default), 1: 1 microsecond.
18064a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
18164a6301eSHui Tang
18264a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/over_thrhld_cnt
18364a6301eSHui TangDate:		Apr 2020
18464a6301eSHui TangContact:	linux-crypto@vger.kernel.org
18564a6301eSHui TangDescription:	Dump the total number of time out requests.
18664a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
187*2a69297eSQi Tao
188*2a69297eSQi TaoWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/cap_regs
189*2a69297eSQi TaoDate:           Oct 2024
190*2a69297eSQi TaoContact:        linux-crypto@vger.kernel.org
191*2a69297eSQi TaoDescription:    Dump the values of the qm and hpre capability bit registers and
192*2a69297eSQi Tao                support the query of device specifications to facilitate fault locating.
193*2a69297eSQi Tao                Available for both PF and VF, and take no other effect on HPRE.
194