brintos

brintos / linux-shallow public Read only

0
0
Text · 6.1 KiB · 6c6c9a6 Raw
160 lines · plain
1What:		/sys/kernel/debug/hisi_sec2/<bdf>/clear_enable2Date:		Oct 20193Contact:	linux-crypto@vger.kernel.org4Description:	Enabling/disabling of clear action after reading5		the SEC debug registers.6		0: disable, 1: enable.7		Only available for PF, and take no other effect on SEC.8 9What:		/sys/kernel/debug/hisi_sec2/<bdf>/current_qm10Date:		Oct 201911Contact:	linux-crypto@vger.kernel.org12Description:	One SEC controller has one PF and multiple VFs, each function13		has a QM. This file can be used to select the QM which below14		qm refers to.15		Only available for PF.16 17What:		/sys/kernel/debug/hisi_sec2/<bdf>/alg_qos18Date:		Jun 202119Contact:	linux-crypto@vger.kernel.org20Description:	The <bdf> is related the function for PF and VF.21		SEC driver supports to configure each function's QoS, the driver22		supports to write <bdf> value to alg_qos in the host. Such as23		"echo <bdf> value > alg_qos". The qos value is 1~1000, means24		1/1000~1000/1000 of total QoS. The driver reading alg_qos to25		get related QoS in the host and VM, Such as "cat alg_qos".26 27What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs28Date:		Oct 201929Contact:	linux-crypto@vger.kernel.org30Description:	Dump of QM related debug registers.31		Available for PF and VF in host. VF in guest currently only32		has one debug register.33 34What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q35Date:		Oct 201936Contact:	linux-crypto@vger.kernel.org37Description:	One QM of SEC may contain multiple queues. Select specific38		queue to show its debug registers in above 'regs'.39		Only available for PF.40 41What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable42Date:		Oct 201943Contact:	linux-crypto@vger.kernel.org44Description:	Enabling/disabling of clear action after reading45		the SEC's QM debug registers.46		0: disable, 1: enable.47		Only available for PF, and take no other effect on SEC.48 49What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq50Date:		Apr 202051Contact:	linux-crypto@vger.kernel.org52Description:	Dump the number of invalid interrupts for53		QM task completion.54		Available for both PF and VF, and take no other effect on SEC.55 56What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq57Date:		Apr 202058Contact:	linux-crypto@vger.kernel.org59Description:	Dump the number of QM async event queue interrupts.60		Available for both PF and VF, and take no other effect on SEC.61 62What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq63Date:		Apr 202064Contact:	linux-crypto@vger.kernel.org65Description:	Dump the number of interrupts for QM abnormal event.66		Available for both PF and VF, and take no other effect on SEC.67 68What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err69Date:		Apr 202070Contact:	linux-crypto@vger.kernel.org71Description:	Dump the number of queue allocation errors.72		Available for both PF and VF, and take no other effect on SEC.73 74What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err75Date:		Apr 202076Contact:	linux-crypto@vger.kernel.org77Description:	Dump the number of failed QM mailbox commands.78		Available for both PF and VF, and take no other effect on SEC.79 80What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/status81Date:		Apr 202082Contact:	linux-crypto@vger.kernel.org83Description:	Dump the status of the QM.84		Two states: work, stop.85		Available for both PF and VF, and take no other effect on SEC.86 87What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/diff_regs88Date:		Mar 202289Contact:	linux-crypto@vger.kernel.org90Description:	QM debug registers(regs) read hardware register value. This91		node is used to show the change of the qm register values. This92		node can be help users to check the change of register values.93 94What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_state95Date:		Jan 202496Contact:	linux-crypto@vger.kernel.org97Description:	Dump the state of the device.98		0: busy, 1: idle.99		Only available for PF, and take no other effect on SEC.100 101What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/dev_timeout102Date:		Feb 2024103Contact:	linux-crypto@vger.kernel.org104Description:	Set the wait time when stop queue fails. Available for both PF105		and VF, and take no other effect on SEC.106		0: not wait(default), others value: wait dev_timeout * 20 microsecond.107 108What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/dev_state109Date:		Feb 2024110Contact:	linux-crypto@vger.kernel.org111Description:	Dump the stop queue status of the QM. The default value is 0,112		if dev_timeout is set, when stop queue fails, the dev_state113		will return non-zero value. Available for both PF and VF,114		and take no other effect on SEC.115 116What:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/diff_regs117Date:		Mar 2022118Contact:	linux-crypto@vger.kernel.org119Description:	SEC debug registers(regs) read hardware register value. This120		node is used to show the change of the register values. This121		node can be help users to check the change of register values.122 123What:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt124Date:		Apr 2020125Contact:	linux-crypto@vger.kernel.org126Description:	Dump the total number of sent requests.127		Available for both PF and VF, and take no other effect on SEC.128 129What:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt130Date:		Apr 2020131Contact:	linux-crypto@vger.kernel.org132Description:	Dump the total number of received requests.133		Available for both PF and VF, and take no other effect on SEC.134 135What:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt136Date:		Apr 2020137Contact:	linux-crypto@vger.kernel.org138Description:	Dump the total number of requests sent with returning busy.139		Available for both PF and VF, and take no other effect on SEC.140 141What:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt142Date:		Apr 2020143Contact:	linux-crypto@vger.kernel.org144Description:	Dump the total number of BD type error requests145		to be received.146		Available for both PF and VF, and take no other effect on SEC.147 148What:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt149Date:		Apr 2020150Contact:	linux-crypto@vger.kernel.org151Description:	Dump the total number of invalid requests being received.152		Available for both PF and VF, and take no other effect on SEC.153 154What:		/sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt155Date:		Apr 2020156Contact:	linux-crypto@vger.kernel.org157Description:	Dump the total number of completed but marked error requests158		to be received.159		Available for both PF and VF, and take no other effect on SEC.160