1b492f82fSZaibo XuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/regs 2b492f82fSZaibo XuDate: Sep 2019 3b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 4b492f82fSZaibo XuDescription: Dump debug registers from the HPRE cluster. 5b492f82fSZaibo Xu Only available for PF. 6b492f82fSZaibo Xu 7b492f82fSZaibo XuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/cluster_ctrl 8b492f82fSZaibo XuDate: Sep 2019 9b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 10b492f82fSZaibo XuDescription: Write the HPRE core selection in the cluster into this file, 11b492f82fSZaibo Xu and then we can read the debug information of the core. 12b492f82fSZaibo Xu Only available for PF. 13b492f82fSZaibo Xu 14b492f82fSZaibo XuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/rdclr_en 15b492f82fSZaibo XuDate: Sep 2019 16b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 17b492f82fSZaibo XuDescription: HPRE cores debug registers read clear control. 1 means enable 18b492f82fSZaibo Xu register read clear, otherwise 0. Writing to this file has no 19b492f82fSZaibo Xu functional effect, only enable or disable counters clear after 20b492f82fSZaibo Xu reading of these registers. 21b492f82fSZaibo Xu Only available for PF. 22b492f82fSZaibo Xu 23b492f82fSZaibo XuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/current_qm 24b492f82fSZaibo XuDate: Sep 2019 25b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 26b492f82fSZaibo XuDescription: One HPRE controller has one PF and multiple VFs, each function 27b492f82fSZaibo Xu has a QM. Select the QM which below qm refers to. 28b492f82fSZaibo Xu Only available for PF. 29b492f82fSZaibo Xu 3068ce6126SKai YeWhat: /sys/kernel/debug/hisi_hpre/<bdf>/alg_qos 3168ce6126SKai YeDate: Jun 2021 3268ce6126SKai YeContact: linux-crypto@vger.kernel.org 3368ce6126SKai YeDescription: The <bdf> is related the function for PF and VF. 3468ce6126SKai Ye HPRE driver supports to configure each function's QoS, the driver 3568ce6126SKai Ye supports to write <bdf> value to alg_qos in the host. Such as 3668ce6126SKai Ye "echo <bdf> value > alg_qos". The qos value is 1~1000, means 3768ce6126SKai Ye 1/1000~1000/1000 of total QoS. The driver reading alg_qos to 3868ce6126SKai Ye get related QoS in the host and VM, Such as "cat alg_qos". 3968ce6126SKai Ye 40b492f82fSZaibo XuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/regs 41b492f82fSZaibo XuDate: Sep 2019 42b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 43b492f82fSZaibo XuDescription: Dump debug registers from the HPRE. 44b492f82fSZaibo Xu Only available for PF. 45b492f82fSZaibo Xu 46988453fbSShukun TanWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/regs 47b492f82fSZaibo XuDate: Sep 2019 48b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 49b492f82fSZaibo XuDescription: Dump debug registers from the QM. 50b492f82fSZaibo Xu Available for PF and VF in host. VF in guest currently only 51b492f82fSZaibo Xu has one debug register. 52b492f82fSZaibo Xu 53b492f82fSZaibo XuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q 54b492f82fSZaibo XuDate: Sep 2019 55b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 56b492f82fSZaibo XuDescription: One QM may contain multiple queues. Select specific queue to 57988453fbSShukun Tan show its debug registers in above regs. 58b492f82fSZaibo Xu Only available for PF. 59b492f82fSZaibo Xu 60b492f82fSZaibo XuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable 61b492f82fSZaibo XuDate: Sep 2019 62b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 63988453fbSShukun TanDescription: QM debug registers(regs) read clear control. 1 means enable 64b492f82fSZaibo Xu register read clear, otherwise 0. 65b492f82fSZaibo Xu Writing to this file has no functional effect, only enable or 66b492f82fSZaibo Xu disable counters clear after reading of these registers. 67b492f82fSZaibo Xu Only available for PF. 6885026525SLongfang Liu 6985026525SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq 7085026525SLongfang LiuDate: Apr 2020 7185026525SLongfang LiuContact: linux-crypto@vger.kernel.org 7285026525SLongfang LiuDescription: Dump the number of invalid interrupts for 7385026525SLongfang Liu QM task completion. 7485026525SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 7585026525SLongfang Liu 7685026525SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq 7785026525SLongfang LiuDate: Apr 2020 7885026525SLongfang LiuContact: linux-crypto@vger.kernel.org 7985026525SLongfang LiuDescription: Dump the number of QM async event queue interrupts. 8085026525SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 8185026525SLongfang Liu 8285026525SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq 8385026525SLongfang LiuDate: Apr 2020 8485026525SLongfang LiuContact: linux-crypto@vger.kernel.org 8585026525SLongfang LiuDescription: Dump the number of interrupts for QM abnormal event. 8685026525SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 8785026525SLongfang Liu 8885026525SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err 8985026525SLongfang LiuDate: Apr 2020 9085026525SLongfang LiuContact: linux-crypto@vger.kernel.org 9185026525SLongfang LiuDescription: Dump the number of queue allocation errors. 9285026525SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 9385026525SLongfang Liu 9485026525SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err 9585026525SLongfang LiuDate: Apr 2020 9685026525SLongfang LiuContact: linux-crypto@vger.kernel.org 9785026525SLongfang LiuDescription: Dump the number of failed QM mailbox commands. 9885026525SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 990a3a3960SLongfang Liu 1000a3a3960SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/status 1010a3a3960SLongfang LiuDate: Apr 2020 1020a3a3960SLongfang LiuContact: linux-crypto@vger.kernel.org 1030a3a3960SLongfang LiuDescription: Dump the status of the QM. 1040a3a3960SLongfang Liu Four states: initiated, started, stopped and closed. 1050a3a3960SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 10664a6301eSHui Tang 107*a7dbdfdaSKai YeWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/diff_regs 108*a7dbdfdaSKai YeDate: Mar 2022 109*a7dbdfdaSKai YeContact: linux-crypto@vger.kernel.org 110*a7dbdfdaSKai YeDescription: QM debug registers(regs) read hardware register value. This 111*a7dbdfdaSKai Ye node is used to show the change of the qm register values. This 112*a7dbdfdaSKai Ye node can be help users to check the change of register values. 113*a7dbdfdaSKai Ye 114*a7dbdfdaSKai YeWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/diff_regs 115*a7dbdfdaSKai YeDate: Mar 2022 116*a7dbdfdaSKai YeContact: linux-crypto@vger.kernel.org 117*a7dbdfdaSKai YeDescription: HPRE debug registers(regs) read hardware register value. This 118*a7dbdfdaSKai Ye node is used to show the change of the register values. This 119*a7dbdfdaSKai Ye node can be help users to check the change of register values. 120*a7dbdfdaSKai Ye 12164a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_cnt 12264a6301eSHui TangDate: Apr 2020 12364a6301eSHui TangContact: linux-crypto@vger.kernel.org 12464a6301eSHui TangDescription: Dump the total number of sent requests. 12564a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 12664a6301eSHui Tang 12764a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/recv_cnt 12864a6301eSHui TangDate: Apr 2020 12964a6301eSHui TangContact: linux-crypto@vger.kernel.org 13064a6301eSHui TangDescription: Dump the total number of received requests. 13164a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 13264a6301eSHui Tang 13364a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_busy_cnt 13464a6301eSHui TangDate: Apr 2020 13564a6301eSHui TangContact: linux-crypto@vger.kernel.org 13664a6301eSHui TangDescription: Dump the total number of requests sent 13764a6301eSHui Tang with returning busy. 13864a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 13964a6301eSHui Tang 14064a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_fail_cnt 14164a6301eSHui TangDate: Apr 2020 14264a6301eSHui TangContact: linux-crypto@vger.kernel.org 14364a6301eSHui TangDescription: Dump the total number of completed but error requests. 14464a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 14564a6301eSHui Tang 14664a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/invalid_req_cnt 14764a6301eSHui TangDate: Apr 2020 14864a6301eSHui TangContact: linux-crypto@vger.kernel.org 14964a6301eSHui TangDescription: Dump the total number of invalid requests being received. 15064a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 15164a6301eSHui Tang 15264a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/overtime_thrhld 15364a6301eSHui TangDate: Apr 2020 15464a6301eSHui TangContact: linux-crypto@vger.kernel.org 15564a6301eSHui TangDescription: Set the threshold time for counting the request which is 15664a6301eSHui Tang processed longer than the threshold. 15764a6301eSHui Tang 0: disable(default), 1: 1 microsecond. 15864a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 15964a6301eSHui Tang 16064a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/over_thrhld_cnt 16164a6301eSHui TangDate: Apr 2020 16264a6301eSHui TangContact: linux-crypto@vger.kernel.org 16364a6301eSHui TangDescription: Dump the total number of time out requests. 16464a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 165