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
30*68ce6126SKai YeWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/alg_qos
31*68ce6126SKai YeDate:		Jun 2021
32*68ce6126SKai YeContact:	linux-crypto@vger.kernel.org
33*68ce6126SKai YeDescription:	The <bdf> is related the function for PF and VF.
34*68ce6126SKai Ye		HPRE driver supports to configure each function's QoS, the driver
35*68ce6126SKai Ye		supports to write <bdf> value to alg_qos in the host. Such as
36*68ce6126SKai Ye		"echo <bdf> value > alg_qos". The qos value is 1~1000, means
37*68ce6126SKai Ye		1/1000~1000/1000 of total QoS. The driver reading alg_qos to
38*68ce6126SKai Ye		get related QoS in the host and VM, Such as "cat alg_qos".
39*68ce6126SKai 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.
1040a3a3960SLongfang Liu		Four states: initiated, started, stopped and closed.
1050a3a3960SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
10664a6301eSHui Tang
10764a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_cnt
10864a6301eSHui TangDate:		Apr 2020
10964a6301eSHui TangContact:	linux-crypto@vger.kernel.org
11064a6301eSHui TangDescription:	Dump the total number of sent requests.
11164a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
11264a6301eSHui Tang
11364a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/recv_cnt
11464a6301eSHui TangDate:		Apr 2020
11564a6301eSHui TangContact:	linux-crypto@vger.kernel.org
11664a6301eSHui TangDescription:	Dump the total number of received requests.
11764a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
11864a6301eSHui Tang
11964a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_busy_cnt
12064a6301eSHui TangDate:		Apr 2020
12164a6301eSHui TangContact:	linux-crypto@vger.kernel.org
12264a6301eSHui TangDescription:	Dump the total number of requests sent
12364a6301eSHui Tang		with returning busy.
12464a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
12564a6301eSHui Tang
12664a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_fail_cnt
12764a6301eSHui TangDate:		Apr 2020
12864a6301eSHui TangContact:	linux-crypto@vger.kernel.org
12964a6301eSHui TangDescription:	Dump the total number of completed but error requests.
13064a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
13164a6301eSHui Tang
13264a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/invalid_req_cnt
13364a6301eSHui TangDate:		Apr 2020
13464a6301eSHui TangContact:	linux-crypto@vger.kernel.org
13564a6301eSHui TangDescription:	Dump the total number of invalid requests being received.
13664a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
13764a6301eSHui Tang
13864a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/overtime_thrhld
13964a6301eSHui TangDate:		Apr 2020
14064a6301eSHui TangContact:	linux-crypto@vger.kernel.org
14164a6301eSHui TangDescription:	Set the threshold time for counting the request which is
14264a6301eSHui Tang		processed longer than the threshold.
14364a6301eSHui Tang		0: disable(default), 1: 1 microsecond.
14464a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
14564a6301eSHui Tang
14664a6301eSHui TangWhat:		/sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/over_thrhld_cnt
14764a6301eSHui TangDate:		Apr 2020
14864a6301eSHui TangContact:	linux-crypto@vger.kernel.org
14964a6301eSHui TangDescription:	Dump the total number of time out requests.
15064a6301eSHui Tang		Available for both PF and VF, and take no other effect on HPRE.
151