xref: /linux/Documentation/ABI/testing/debugfs-hisi-sec (revision c771600c6af14749609b49565ffb4cac2959710d)
18213a1a6SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/clear_enable
2cbfe56e6SLongfang LiuDate:		Oct 2019
3cbfe56e6SLongfang LiuContact:	linux-crypto@vger.kernel.org
4cbfe56e6SLongfang LiuDescription:	Enabling/disabling of clear action after reading
5cbfe56e6SLongfang Liu		the SEC debug registers.
6cbfe56e6SLongfang Liu		0: disable, 1: enable.
7cbfe56e6SLongfang Liu		Only available for PF, and take no other effect on SEC.
8cbfe56e6SLongfang Liu
98213a1a6SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/current_qm
10cbfe56e6SLongfang LiuDate:		Oct 2019
11cbfe56e6SLongfang LiuContact:	linux-crypto@vger.kernel.org
12cbfe56e6SLongfang LiuDescription:	One SEC controller has one PF and multiple VFs, each function
13cbfe56e6SLongfang Liu		has a QM. This file can be used to select the QM which below
14cbfe56e6SLongfang Liu		qm refers to.
15cbfe56e6SLongfang Liu		Only available for PF.
16cbfe56e6SLongfang Liu
1753576186SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/alg_qos
1853576186SKai YeDate:		Jun 2021
1953576186SKai YeContact:	linux-crypto@vger.kernel.org
2053576186SKai YeDescription:	The <bdf> is related the function for PF and VF.
2153576186SKai Ye		SEC driver supports to configure each function's QoS, the driver
2253576186SKai Ye		supports to write <bdf> value to alg_qos in the host. Such as
2353576186SKai Ye		"echo <bdf> value > alg_qos". The qos value is 1~1000, means
2453576186SKai Ye		1/1000~1000/1000 of total QoS. The driver reading alg_qos to
2553576186SKai Ye		get related QoS in the host and VM, Such as "cat alg_qos".
2653576186SKai Ye
278213a1a6SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
28cbfe56e6SLongfang LiuDate:		Oct 2019
29cbfe56e6SLongfang LiuContact:	linux-crypto@vger.kernel.org
30cbfe56e6SLongfang LiuDescription:	Dump of QM related debug registers.
31cbfe56e6SLongfang Liu		Available for PF and VF in host. VF in guest currently only
32cbfe56e6SLongfang Liu		has one debug register.
33cbfe56e6SLongfang Liu
348213a1a6SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q
35cbfe56e6SLongfang LiuDate:		Oct 2019
36cbfe56e6SLongfang LiuContact:	linux-crypto@vger.kernel.org
37cbfe56e6SLongfang LiuDescription:	One QM of SEC may contain multiple queues. Select specific
38988453fbSShukun Tan		queue to show its debug registers in above 'regs'.
39cbfe56e6SLongfang Liu		Only available for PF.
40cbfe56e6SLongfang Liu
418213a1a6SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable
42cbfe56e6SLongfang LiuDate:		Oct 2019
43cbfe56e6SLongfang LiuContact:	linux-crypto@vger.kernel.org
44cbfe56e6SLongfang LiuDescription:	Enabling/disabling of clear action after reading
45cbfe56e6SLongfang Liu		the SEC's QM debug registers.
46cbfe56e6SLongfang Liu		0: disable, 1: enable.
47cbfe56e6SLongfang Liu		Only available for PF, and take no other effect on SEC.
4885026525SLongfang Liu
4985026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq
5085026525SLongfang LiuDate:		Apr 2020
5185026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
5285026525SLongfang LiuDescription:	Dump the number of invalid interrupts for
5385026525SLongfang Liu		QM task completion.
5485026525SLongfang Liu		Available for both PF and VF, and take no other effect on SEC.
5585026525SLongfang Liu
5685026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq
5785026525SLongfang LiuDate:		Apr 2020
5885026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
5985026525SLongfang LiuDescription:	Dump the number of QM async event queue interrupts.
6085026525SLongfang Liu		Available for both PF and VF, and take no other effect on SEC.
6185026525SLongfang Liu
6285026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq
6385026525SLongfang LiuDate:		Apr 2020
6485026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
6585026525SLongfang LiuDescription:	Dump the number of interrupts for QM abnormal event.
6685026525SLongfang Liu		Available for both PF and VF, and take no other effect on SEC.
6785026525SLongfang Liu
6885026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err
6985026525SLongfang LiuDate:		Apr 2020
7085026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
7185026525SLongfang LiuDescription:	Dump the number of queue allocation errors.
7285026525SLongfang Liu		Available for both PF and VF, and take no other effect on SEC.
7385026525SLongfang Liu
7485026525SLongfang LiuWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err
7585026525SLongfang LiuDate:		Apr 2020
7685026525SLongfang LiuContact:	linux-crypto@vger.kernel.org
7785026525SLongfang LiuDescription:	Dump the number of failed QM mailbox commands.
7885026525SLongfang Liu		Available for both PF and VF, and take no other effect on SEC.
790a3a3960SLongfang Liu
800a3a3960SLongfang LiuWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/status
810a3a3960SLongfang LiuDate:		Apr 2020
820a3a3960SLongfang LiuContact:	linux-crypto@vger.kernel.org
830a3a3960SLongfang LiuDescription:	Dump the status of the QM.
84c66272a4SWeili Qian		Two states: work, stop.
850a3a3960SLongfang Liu		Available for both PF and VF, and take no other effect on SEC.
868213a1a6SKai Ye
8773e3b46eSKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/diff_regs
8873e3b46eSKai YeDate:		Mar 2022
8973e3b46eSKai YeContact:	linux-crypto@vger.kernel.org
9073e3b46eSKai YeDescription:	QM debug registers(regs) read hardware register value. This
9173e3b46eSKai Ye		node is used to show the change of the qm register values. This
9273e3b46eSKai Ye		node can be help users to check the change of register values.
9373e3b46eSKai Ye
948413fe3eSWeili QianWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_state
958413fe3eSWeili QianDate:		Jan 2024
968413fe3eSWeili QianContact:	linux-crypto@vger.kernel.org
978413fe3eSWeili QianDescription:	Dump the state of the device.
988413fe3eSWeili Qian		0: busy, 1: idle.
998413fe3eSWeili Qian		Only available for PF, and take no other effect on SEC.
1008413fe3eSWeili Qian
101ce133a22SWeili QianWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/dev_timeout
102ce133a22SWeili QianDate:		Feb 2024
103ce133a22SWeili QianContact:	linux-crypto@vger.kernel.org
104ce133a22SWeili QianDescription:	Set the wait time when stop queue fails. Available for both PF
105ce133a22SWeili Qian		and VF, and take no other effect on SEC.
106ce133a22SWeili Qian		0: not wait(default), others value: wait dev_timeout * 20 microsecond.
107ce133a22SWeili Qian
108ce133a22SWeili QianWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/dev_state
109ce133a22SWeili QianDate:		Feb 2024
110ce133a22SWeili QianContact:	linux-crypto@vger.kernel.org
111ce133a22SWeili QianDescription:	Dump the stop queue status of the QM. The default value is 0,
112ce133a22SWeili Qian		if dev_timeout is set, when stop queue fails, the dev_state
113ce133a22SWeili Qian		will return non-zero value. Available for both PF and VF,
114ce133a22SWeili Qian		and take no other effect on SEC.
115ce133a22SWeili Qian
11673e3b46eSKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/diff_regs
11773e3b46eSKai YeDate:		Mar 2022
11873e3b46eSKai YeContact:	linux-crypto@vger.kernel.org
11973e3b46eSKai YeDescription:	SEC debug registers(regs) read hardware register value. This
12073e3b46eSKai Ye		node is used to show the change of the register values. This
12173e3b46eSKai Ye		node can be help users to check the change of register values.
12273e3b46eSKai Ye
1238213a1a6SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt
1248213a1a6SKai YeDate:		Apr 2020
1258213a1a6SKai YeContact:	linux-crypto@vger.kernel.org
1268213a1a6SKai YeDescription:	Dump the total number of sent requests.
1278213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
1288213a1a6SKai Ye
1298213a1a6SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt
1308213a1a6SKai YeDate:		Apr 2020
1318213a1a6SKai YeContact:	linux-crypto@vger.kernel.org
1328213a1a6SKai YeDescription:	Dump the total number of received requests.
1338213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
1348213a1a6SKai Ye
1358213a1a6SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt
1368213a1a6SKai YeDate:		Apr 2020
1378213a1a6SKai YeContact:	linux-crypto@vger.kernel.org
1388213a1a6SKai YeDescription:	Dump the total number of requests sent with returning busy.
1398213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
1408213a1a6SKai Ye
1418213a1a6SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt
1428213a1a6SKai YeDate:		Apr 2020
1438213a1a6SKai YeContact:	linux-crypto@vger.kernel.org
1448213a1a6SKai YeDescription:	Dump the total number of BD type error requests
1458213a1a6SKai Ye		to be received.
1468213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
1478213a1a6SKai Ye
1488213a1a6SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt
1498213a1a6SKai YeDate:		Apr 2020
1508213a1a6SKai YeContact:	linux-crypto@vger.kernel.org
1518213a1a6SKai YeDescription:	Dump the total number of invalid requests being received.
1528213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
1538213a1a6SKai Ye
1548213a1a6SKai YeWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt
1558213a1a6SKai YeDate:		Apr 2020
1568213a1a6SKai YeContact:	linux-crypto@vger.kernel.org
1578213a1a6SKai YeDescription:	Dump the total number of completed but marked error requests
1588213a1a6SKai Ye		to be received.
1598213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
160*2a69297eSQi Tao
161*2a69297eSQi TaoWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/cap_regs
162*2a69297eSQi TaoDate:           Oct 2024
163*2a69297eSQi TaoContact:        linux-crypto@vger.kernel.org
164*2a69297eSQi TaoDescription:    Dump the values of the qm and sec capability bit registers and
165*2a69297eSQi Tao                support the query of device specifications to facilitate fault locating.
166*2a69297eSQi Tao                Available for both PF and VF, and take no other effect on SEC.
167