162306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/regs 262306a36Sopenharmony_ciDate: Sep 2019 362306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 462306a36Sopenharmony_ciDescription: Dump debug registers from the HPRE cluster. 562306a36Sopenharmony_ci Only available for PF. 662306a36Sopenharmony_ci 762306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/cluster_ctrl 862306a36Sopenharmony_ciDate: Sep 2019 962306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 1062306a36Sopenharmony_ciDescription: Write the HPRE core selection in the cluster into this file, 1162306a36Sopenharmony_ci and then we can read the debug information of the core. 1262306a36Sopenharmony_ci Only available for PF. 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/rdclr_en 1562306a36Sopenharmony_ciDate: Sep 2019 1662306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 1762306a36Sopenharmony_ciDescription: HPRE cores debug registers read clear control. 1 means enable 1862306a36Sopenharmony_ci register read clear, otherwise 0. Writing to this file has no 1962306a36Sopenharmony_ci functional effect, only enable or disable counters clear after 2062306a36Sopenharmony_ci reading of these registers. 2162306a36Sopenharmony_ci Only available for PF. 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/current_qm 2462306a36Sopenharmony_ciDate: Sep 2019 2562306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 2662306a36Sopenharmony_ciDescription: One HPRE controller has one PF and multiple VFs, each function 2762306a36Sopenharmony_ci has a QM. Select the QM which below qm refers to. 2862306a36Sopenharmony_ci Only available for PF. 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/alg_qos 3162306a36Sopenharmony_ciDate: Jun 2021 3262306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 3362306a36Sopenharmony_ciDescription: The <bdf> is related the function for PF and VF. 3462306a36Sopenharmony_ci HPRE driver supports to configure each function's QoS, the driver 3562306a36Sopenharmony_ci supports to write <bdf> value to alg_qos in the host. Such as 3662306a36Sopenharmony_ci "echo <bdf> value > alg_qos". The qos value is 1~1000, means 3762306a36Sopenharmony_ci 1/1000~1000/1000 of total QoS. The driver reading alg_qos to 3862306a36Sopenharmony_ci get related QoS in the host and VM, Such as "cat alg_qos". 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/regs 4162306a36Sopenharmony_ciDate: Sep 2019 4262306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 4362306a36Sopenharmony_ciDescription: Dump debug registers from the HPRE. 4462306a36Sopenharmony_ci Only available for PF. 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/regs 4762306a36Sopenharmony_ciDate: Sep 2019 4862306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 4962306a36Sopenharmony_ciDescription: Dump debug registers from the QM. 5062306a36Sopenharmony_ci Available for PF and VF in host. VF in guest currently only 5162306a36Sopenharmony_ci has one debug register. 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q 5462306a36Sopenharmony_ciDate: Sep 2019 5562306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 5662306a36Sopenharmony_ciDescription: One QM may contain multiple queues. Select specific queue to 5762306a36Sopenharmony_ci show its debug registers in above regs. 5862306a36Sopenharmony_ci Only available for PF. 5962306a36Sopenharmony_ci 6062306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable 6162306a36Sopenharmony_ciDate: Sep 2019 6262306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 6362306a36Sopenharmony_ciDescription: QM debug registers(regs) read clear control. 1 means enable 6462306a36Sopenharmony_ci register read clear, otherwise 0. 6562306a36Sopenharmony_ci Writing to this file has no functional effect, only enable or 6662306a36Sopenharmony_ci disable counters clear after reading of these registers. 6762306a36Sopenharmony_ci Only available for PF. 6862306a36Sopenharmony_ci 6962306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq 7062306a36Sopenharmony_ciDate: Apr 2020 7162306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 7262306a36Sopenharmony_ciDescription: Dump the number of invalid interrupts for 7362306a36Sopenharmony_ci QM task completion. 7462306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq 7762306a36Sopenharmony_ciDate: Apr 2020 7862306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 7962306a36Sopenharmony_ciDescription: Dump the number of QM async event queue interrupts. 8062306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 8162306a36Sopenharmony_ci 8262306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq 8362306a36Sopenharmony_ciDate: Apr 2020 8462306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 8562306a36Sopenharmony_ciDescription: Dump the number of interrupts for QM abnormal event. 8662306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err 8962306a36Sopenharmony_ciDate: Apr 2020 9062306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 9162306a36Sopenharmony_ciDescription: Dump the number of queue allocation errors. 9262306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 9362306a36Sopenharmony_ci 9462306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err 9562306a36Sopenharmony_ciDate: Apr 2020 9662306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 9762306a36Sopenharmony_ciDescription: Dump the number of failed QM mailbox commands. 9862306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 9962306a36Sopenharmony_ci 10062306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/status 10162306a36Sopenharmony_ciDate: Apr 2020 10262306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 10362306a36Sopenharmony_ciDescription: Dump the status of the QM. 10462306a36Sopenharmony_ci Four states: initiated, started, stopped and closed. 10562306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 10662306a36Sopenharmony_ci 10762306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/diff_regs 10862306a36Sopenharmony_ciDate: Mar 2022 10962306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 11062306a36Sopenharmony_ciDescription: QM debug registers(regs) read hardware register value. This 11162306a36Sopenharmony_ci node is used to show the change of the qm register values. This 11262306a36Sopenharmony_ci node can be help users to check the change of register values. 11362306a36Sopenharmony_ci 11462306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/diff_regs 11562306a36Sopenharmony_ciDate: Mar 2022 11662306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 11762306a36Sopenharmony_ciDescription: HPRE debug registers(regs) read hardware register value. This 11862306a36Sopenharmony_ci node is used to show the change of the register values. This 11962306a36Sopenharmony_ci node can be help users to check the change of register values. 12062306a36Sopenharmony_ci 12162306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_cnt 12262306a36Sopenharmony_ciDate: Apr 2020 12362306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 12462306a36Sopenharmony_ciDescription: Dump the total number of sent requests. 12562306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 12662306a36Sopenharmony_ci 12762306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/recv_cnt 12862306a36Sopenharmony_ciDate: Apr 2020 12962306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 13062306a36Sopenharmony_ciDescription: Dump the total number of received requests. 13162306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 13262306a36Sopenharmony_ci 13362306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_busy_cnt 13462306a36Sopenharmony_ciDate: Apr 2020 13562306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 13662306a36Sopenharmony_ciDescription: Dump the total number of requests sent 13762306a36Sopenharmony_ci with returning busy. 13862306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 13962306a36Sopenharmony_ci 14062306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_fail_cnt 14162306a36Sopenharmony_ciDate: Apr 2020 14262306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 14362306a36Sopenharmony_ciDescription: Dump the total number of completed but error requests. 14462306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 14562306a36Sopenharmony_ci 14662306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/invalid_req_cnt 14762306a36Sopenharmony_ciDate: Apr 2020 14862306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 14962306a36Sopenharmony_ciDescription: Dump the total number of invalid requests being received. 15062306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 15162306a36Sopenharmony_ci 15262306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/overtime_thrhld 15362306a36Sopenharmony_ciDate: Apr 2020 15462306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 15562306a36Sopenharmony_ciDescription: Set the threshold time for counting the request which is 15662306a36Sopenharmony_ci processed longer than the threshold. 15762306a36Sopenharmony_ci 0: disable(default), 1: 1 microsecond. 15862306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 15962306a36Sopenharmony_ci 16062306a36Sopenharmony_ciWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/over_thrhld_cnt 16162306a36Sopenharmony_ciDate: Apr 2020 16262306a36Sopenharmony_ciContact: linux-crypto@vger.kernel.org 16362306a36Sopenharmony_ciDescription: Dump the total number of time out requests. 16462306a36Sopenharmony_ci Available for both PF and VF, and take no other effect on HPRE. 165