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 30b492f82fSZaibo XuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/regs 31b492f82fSZaibo XuDate: Sep 2019 32b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 33b492f82fSZaibo XuDescription: Dump debug registers from the HPRE. 34b492f82fSZaibo Xu Only available for PF. 35b492f82fSZaibo Xu 36988453fbSShukun TanWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/regs 37b492f82fSZaibo XuDate: Sep 2019 38b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 39b492f82fSZaibo XuDescription: Dump debug registers from the QM. 40b492f82fSZaibo Xu Available for PF and VF in host. VF in guest currently only 41b492f82fSZaibo Xu has one debug register. 42b492f82fSZaibo Xu 43b492f82fSZaibo XuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q 44b492f82fSZaibo XuDate: Sep 2019 45b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 46b492f82fSZaibo XuDescription: One QM may contain multiple queues. Select specific queue to 47988453fbSShukun Tan show its debug registers in above regs. 48b492f82fSZaibo Xu Only available for PF. 49b492f82fSZaibo Xu 50b492f82fSZaibo XuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable 51b492f82fSZaibo XuDate: Sep 2019 52b492f82fSZaibo XuContact: linux-crypto@vger.kernel.org 53988453fbSShukun TanDescription: QM debug registers(regs) read clear control. 1 means enable 54b492f82fSZaibo Xu register read clear, otherwise 0. 55b492f82fSZaibo Xu Writing to this file has no functional effect, only enable or 56b492f82fSZaibo Xu disable counters clear after reading of these registers. 57b492f82fSZaibo Xu Only available for PF. 5885026525SLongfang Liu 5985026525SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq 6085026525SLongfang LiuDate: Apr 2020 6185026525SLongfang LiuContact: linux-crypto@vger.kernel.org 6285026525SLongfang LiuDescription: Dump the number of invalid interrupts for 6385026525SLongfang Liu QM task completion. 6485026525SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 6585026525SLongfang Liu 6685026525SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq 6785026525SLongfang LiuDate: Apr 2020 6885026525SLongfang LiuContact: linux-crypto@vger.kernel.org 6985026525SLongfang LiuDescription: Dump the number of QM async event queue interrupts. 7085026525SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 7185026525SLongfang Liu 7285026525SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq 7385026525SLongfang LiuDate: Apr 2020 7485026525SLongfang LiuContact: linux-crypto@vger.kernel.org 7585026525SLongfang LiuDescription: Dump the number of interrupts for QM abnormal event. 7685026525SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 7785026525SLongfang Liu 7885026525SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err 7985026525SLongfang LiuDate: Apr 2020 8085026525SLongfang LiuContact: linux-crypto@vger.kernel.org 8185026525SLongfang LiuDescription: Dump the number of queue allocation errors. 8285026525SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 8385026525SLongfang Liu 8485026525SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err 8585026525SLongfang LiuDate: Apr 2020 8685026525SLongfang LiuContact: linux-crypto@vger.kernel.org 8785026525SLongfang LiuDescription: Dump the number of failed QM mailbox commands. 8885026525SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 890a3a3960SLongfang Liu 900a3a3960SLongfang LiuWhat: /sys/kernel/debug/hisi_hpre/<bdf>/qm/status 910a3a3960SLongfang LiuDate: Apr 2020 920a3a3960SLongfang LiuContact: linux-crypto@vger.kernel.org 930a3a3960SLongfang LiuDescription: Dump the status of the QM. 940a3a3960SLongfang Liu Four states: initiated, started, stopped and closed. 950a3a3960SLongfang Liu Available for both PF and VF, and take no other effect on HPRE. 9664a6301eSHui Tang 9764a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_cnt 9864a6301eSHui TangDate: Apr 2020 9964a6301eSHui TangContact: linux-crypto@vger.kernel.org 10064a6301eSHui TangDescription: Dump the total number of sent requests. 10164a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 10264a6301eSHui Tang 10364a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/recv_cnt 10464a6301eSHui TangDate: Apr 2020 10564a6301eSHui TangContact: linux-crypto@vger.kernel.org 10664a6301eSHui TangDescription: Dump the total number of received requests. 10764a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 10864a6301eSHui Tang 10964a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_busy_cnt 11064a6301eSHui TangDate: Apr 2020 11164a6301eSHui TangContact: linux-crypto@vger.kernel.org 11264a6301eSHui TangDescription: Dump the total number of requests sent 11364a6301eSHui Tang with returning busy. 11464a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 11564a6301eSHui Tang 11664a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_fail_cnt 11764a6301eSHui TangDate: Apr 2020 11864a6301eSHui TangContact: linux-crypto@vger.kernel.org 11964a6301eSHui TangDescription: Dump the total number of completed but error requests. 12064a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 12164a6301eSHui Tang 12264a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/invalid_req_cnt 12364a6301eSHui TangDate: Apr 2020 12464a6301eSHui TangContact: linux-crypto@vger.kernel.org 12564a6301eSHui TangDescription: Dump the total number of invalid requests being received. 12664a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 12764a6301eSHui Tang 12864a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/overtime_thrhld 12964a6301eSHui TangDate: Apr 2020 13064a6301eSHui TangContact: linux-crypto@vger.kernel.org 13164a6301eSHui TangDescription: Set the threshold time for counting the request which is 13264a6301eSHui Tang processed longer than the threshold. 13364a6301eSHui Tang 0: disable(default), 1: 1 microsecond. 13464a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 13564a6301eSHui Tang 13664a6301eSHui TangWhat: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/over_thrhld_cnt 13764a6301eSHui TangDate: Apr 2020 13864a6301eSHui TangContact: linux-crypto@vger.kernel.org 13964a6301eSHui TangDescription: Dump the total number of time out requests. 14064a6301eSHui Tang Available for both PF and VF, and take no other effect on HPRE. 141