162306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/clear_enable
262306a36Sopenharmony_ciDate:		Oct 2019
362306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
462306a36Sopenharmony_ciDescription:	Enabling/disabling of clear action after reading
562306a36Sopenharmony_ci		the SEC debug registers.
662306a36Sopenharmony_ci		0: disable, 1: enable.
762306a36Sopenharmony_ci		Only available for PF, and take no other effect on SEC.
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/current_qm
1062306a36Sopenharmony_ciDate:		Oct 2019
1162306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
1262306a36Sopenharmony_ciDescription:	One SEC controller has one PF and multiple VFs, each function
1362306a36Sopenharmony_ci		has a QM. This file can be used to select the QM which below
1462306a36Sopenharmony_ci		qm refers to.
1562306a36Sopenharmony_ci		Only available for PF.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/alg_qos
1862306a36Sopenharmony_ciDate:		Jun 2021
1962306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
2062306a36Sopenharmony_ciDescription:	The <bdf> is related the function for PF and VF.
2162306a36Sopenharmony_ci		SEC driver supports to configure each function's QoS, the driver
2262306a36Sopenharmony_ci		supports to write <bdf> value to alg_qos in the host. Such as
2362306a36Sopenharmony_ci		"echo <bdf> value > alg_qos". The qos value is 1~1000, means
2462306a36Sopenharmony_ci		1/1000~1000/1000 of total QoS. The driver reading alg_qos to
2562306a36Sopenharmony_ci		get related QoS in the host and VM, Such as "cat alg_qos".
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
2862306a36Sopenharmony_ciDate:		Oct 2019
2962306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
3062306a36Sopenharmony_ciDescription:	Dump of QM related debug registers.
3162306a36Sopenharmony_ci		Available for PF and VF in host. VF in guest currently only
3262306a36Sopenharmony_ci		has one debug register.
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q
3562306a36Sopenharmony_ciDate:		Oct 2019
3662306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
3762306a36Sopenharmony_ciDescription:	One QM of SEC may contain multiple queues. Select specific
3862306a36Sopenharmony_ci		queue to show its debug registers in above 'regs'.
3962306a36Sopenharmony_ci		Only available for PF.
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable
4262306a36Sopenharmony_ciDate:		Oct 2019
4362306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
4462306a36Sopenharmony_ciDescription:	Enabling/disabling of clear action after reading
4562306a36Sopenharmony_ci		the SEC's QM debug registers.
4662306a36Sopenharmony_ci		0: disable, 1: enable.
4762306a36Sopenharmony_ci		Only available for PF, and take no other effect on SEC.
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq
5062306a36Sopenharmony_ciDate:		Apr 2020
5162306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
5262306a36Sopenharmony_ciDescription:	Dump the number of invalid interrupts for
5362306a36Sopenharmony_ci		QM task completion.
5462306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq
5762306a36Sopenharmony_ciDate:		Apr 2020
5862306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
5962306a36Sopenharmony_ciDescription:	Dump the number of QM async event queue interrupts.
6062306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq
6362306a36Sopenharmony_ciDate:		Apr 2020
6462306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
6562306a36Sopenharmony_ciDescription:	Dump the number of interrupts for QM abnormal event.
6662306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err
6962306a36Sopenharmony_ciDate:		Apr 2020
7062306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
7162306a36Sopenharmony_ciDescription:	Dump the number of queue allocation errors.
7262306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
7362306a36Sopenharmony_ci
7462306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err
7562306a36Sopenharmony_ciDate:		Apr 2020
7662306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
7762306a36Sopenharmony_ciDescription:	Dump the number of failed QM mailbox commands.
7862306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/status
8162306a36Sopenharmony_ciDate:		Apr 2020
8262306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
8362306a36Sopenharmony_ciDescription:	Dump the status of the QM.
8462306a36Sopenharmony_ci		Four states: initiated, started, stopped and closed.
8562306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/diff_regs
8862306a36Sopenharmony_ciDate:		Mar 2022
8962306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
9062306a36Sopenharmony_ciDescription:	QM debug registers(regs) read hardware register value. This
9162306a36Sopenharmony_ci		node is used to show the change of the qm register values. This
9262306a36Sopenharmony_ci		node can be help users to check the change of register values.
9362306a36Sopenharmony_ci
9462306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/diff_regs
9562306a36Sopenharmony_ciDate:		Mar 2022
9662306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
9762306a36Sopenharmony_ciDescription:	SEC debug registers(regs) read hardware register value. This
9862306a36Sopenharmony_ci		node is used to show the change of the register values. This
9962306a36Sopenharmony_ci		node can be help users to check the change of register values.
10062306a36Sopenharmony_ci
10162306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt
10262306a36Sopenharmony_ciDate:		Apr 2020
10362306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
10462306a36Sopenharmony_ciDescription:	Dump the total number of sent requests.
10562306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
10662306a36Sopenharmony_ci
10762306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt
10862306a36Sopenharmony_ciDate:		Apr 2020
10962306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
11062306a36Sopenharmony_ciDescription:	Dump the total number of received requests.
11162306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
11262306a36Sopenharmony_ci
11362306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt
11462306a36Sopenharmony_ciDate:		Apr 2020
11562306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
11662306a36Sopenharmony_ciDescription:	Dump the total number of requests sent with returning busy.
11762306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt
12062306a36Sopenharmony_ciDate:		Apr 2020
12162306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
12262306a36Sopenharmony_ciDescription:	Dump the total number of BD type error requests
12362306a36Sopenharmony_ci		to be received.
12462306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
12562306a36Sopenharmony_ci
12662306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt
12762306a36Sopenharmony_ciDate:		Apr 2020
12862306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
12962306a36Sopenharmony_ciDescription:	Dump the total number of invalid requests being received.
13062306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
13162306a36Sopenharmony_ci
13262306a36Sopenharmony_ciWhat:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt
13362306a36Sopenharmony_ciDate:		Apr 2020
13462306a36Sopenharmony_ciContact:	linux-crypto@vger.kernel.org
13562306a36Sopenharmony_ciDescription:	Dump the total number of completed but marked error requests
13662306a36Sopenharmony_ci		to be received.
13762306a36Sopenharmony_ci		Available for both PF and VF, and take no other effect on SEC.
138