mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
crypto: hisilicon - add device load query functionality to debugfs
The accelerator device supports usage statistics. This patch enables obtaining the accelerator's usage through the "dev_usage" file. The returned number expressed as a percentage as a percentage. Signed-off-by: Zongyu Wu <wuzongyu1@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -24,6 +24,13 @@ Description: The <bdf> is related the function for PF and VF.
|
||||
1/1000~1000/1000 of total QoS. The driver reading alg_qos to
|
||||
get related QoS in the host and VM, Such as "cat alg_qos".
|
||||
|
||||
What: /sys/kernel/debug/hisi_sec2/<bdf>/dev_usage
|
||||
Date: Mar 2026
|
||||
Contact: linux-crypto@vger.kernel.org
|
||||
Description: Query the real-time bandwidth usage of device.
|
||||
Returns the bandwidth usage of each channel on the device.
|
||||
The returned number is in percentage.
|
||||
|
||||
What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
|
||||
Date: Oct 2019
|
||||
Contact: linux-crypto@vger.kernel.org
|
||||
|
||||
Reference in New Issue
Block a user