Commit e7c81a6e authored by Weili Qian's avatar Weili Qian Committed by JiangShui
Browse files

crypto: hisilicon/qm - add debugfs to query the status of the stop queue

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I76TVJ


CVE: NA

----------------------------------------------------------------------

Debugfs for query the status of stopping queue, the root user can
set the waiting time after the task flow fails to be stopped.

Signed-off-by: default avatarWeili Qian <qianweili@huawei.com>
Signed-off-by: default avatarJiangshui Yang <yangjiangshui@h-partners.com>
parent 665edcec
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -94,6 +94,21 @@ Description: Dump the status of the QM.
		Four states: initiated, started, stopped and closed.
		Available for both PF and VF, and take no other effect on HPRE.

What:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/dev_timeout
Date:		May 2023
Contact:	qianweili@huawei.com
Description:	Set the wait time when stop queue fails. Available for both PF
		and VF, and take no other effect on HPRE.
		0: not wait(default), others value: wait dev_timeout * 20 microsecond.

What:		/sys/kernel/debug/hisi_hpre/<bdf>/qm/dev_state
Date:		May 2023
Contact:	qianweili@huawei.com
Description:	Dump the stop queue status of the QM. The default value is 0,
		if dev_timeout is set, when stop queue fails, the dev_state
		will return non-zero value. Available for both PF and VF,
		and take no other effect on HPRE.

What:           /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_cnt
Date:           Apr 2020
Contact:        linux-crypto@vger.kernel.org
+15 −0
Original line number Diff line number Diff line
@@ -74,6 +74,21 @@ Description: Dump the status of the QM.
		Four states: initiated, started, stopped and closed.
		Available for both PF and VF, and take no other effect on SEC.

What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/dev_timeout
Date:		May 2023
Contact:	qianweili@huawei.com
Description:	Set the wait time when stop queue fails. Available for both PF
		and VF, and take no other effect on SEC.
		0: not wait(default), others value: wait dev_timeout * 20 microsecond.

What:		/sys/kernel/debug/hisi_sec2/<bdf>/qm/dev_state
Date:		May 2023
Contact:	qianweili@huawei.com
Description:	Dump the stop queue status of the QM. The default value is 0,
		if dev_timeout is set, when stop queue fails, the dev_state
		will return non-zero value. Available for both PF and VF,
		and take no other effect on SEC.

What:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt
Date:           Apr 2020
Contact:        linux-crypto@vger.kernel.org
+15 −0
Original line number Diff line number Diff line
@@ -87,6 +87,21 @@ Description: Dump the status of the QM.
		Four states: initiated, started, stopped and closed.
		Available for both PF and VF, and take no other effect on ZIP.

What:		/sys/kernel/debug/hisi_zip/<bdf>/qm/dev_timeout
Date:		May 2023
Contact:	qianweili@huawei.com
Description:	Set the wait time when stop queue fails. Available for both PF
		and VF, and take no other effect on ZIP.
		0: not wait(default), others value: wait dev_timeout * 20 microsecond.

What:		/sys/kernel/debug/hisi_zip/<bdf>/qm/dev_state
Date:		May 2023
Contact:	qianweili@huawei.com
Description:	Dump the stop queue status of the QM. The default value is 0,
		if dev_timeout is set, when stop queue fails, the dev_state
		will return non-zero value. Available for both PF and VF,
		and take no other effect on ZIP.

What:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_cnt
Date:           Apr 2020
Contact:        linux-crypto@vger.kernel.org