1What: /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/regs 2Date: Sep 2019 3Contact: [email protected] 4Description: Dump debug registers from the HPRE cluster. 5 Only available for PF. 6 7What: /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/cluster_ctrl 8Date: Sep 2019 9Contact: [email protected] 10Description: Write the HPRE core selection in the cluster into this file, 11 and then we can read the debug information of the core. 12 Only available for PF. 13 14What: /sys/kernel/debug/hisi_hpre/<bdf>/rdclr_en 15Date: Sep 2019 16Contact: [email protected] 17Description: HPRE cores debug registers read clear control. 1 means enable 18 register read clear, otherwise 0. Writing to this file has no 19 functional effect, only enable or disable counters clear after 20 reading of these registers. 21 Only available for PF. 22 23What: /sys/kernel/debug/hisi_hpre/<bdf>/current_qm 24Date: Sep 2019 25Contact: [email protected] 26Description: One HPRE controller has one PF and multiple VFs, each function 27 has a QM. Select the QM which below qm refers to. 28 Only available for PF. 29 30What: /sys/kernel/debug/hisi_hpre/<bdf>/regs 31Date: Sep 2019 32Contact: [email protected] 33Description: Dump debug registers from the HPRE. 34 Only available for PF. 35 36What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/regs 37Date: Sep 2019 38Contact: [email protected] 39Description: Dump debug registers from the QM. 40 Available for PF and VF in host. VF in guest currently only 41 has one debug register. 42 43What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q 44Date: Sep 2019 45Contact: [email protected] 46Description: One QM may contain multiple queues. Select specific queue to 47 show its debug registers in above regs. 48 Only available for PF. 49 50What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable 51Date: Sep 2019 52Contact: [email protected] 53Description: QM debug registers(regs) read clear control. 1 means enable 54 register read clear, otherwise 0. 55 Writing to this file has no functional effect, only enable or 56 disable counters clear after reading of these registers. 57 Only available for PF. 58 59What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq 60Date: Apr 2020 61Contact: [email protected] 62Description: Dump the number of invalid interrupts for 63 QM task completion. 64 Available for both PF and VF, and take no other effect on HPRE. 65 66What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq 67Date: Apr 2020 68Contact: [email protected] 69Description: Dump the number of QM async event queue interrupts. 70 Available for both PF and VF, and take no other effect on HPRE. 71 72What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq 73Date: Apr 2020 74Contact: [email protected] 75Description: Dump the number of interrupts for QM abnormal event. 76 Available for both PF and VF, and take no other effect on HPRE. 77 78What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err 79Date: Apr 2020 80Contact: [email protected] 81Description: Dump the number of queue allocation errors. 82 Available for both PF and VF, and take no other effect on HPRE. 83 84What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err 85Date: Apr 2020 86Contact: [email protected] 87Description: Dump the number of failed QM mailbox commands. 88 Available for both PF and VF, and take no other effect on HPRE. 89 90What: /sys/kernel/debug/hisi_hpre/<bdf>/qm/status 91Date: Apr 2020 92Contact: [email protected] 93Description: Dump the status of the QM. 94 Four states: initiated, started, stopped and closed. 95 Available for both PF and VF, and take no other effect on HPRE. 96 97What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_cnt 98Date: Apr 2020 99Contact: [email protected] 100Description: Dump the total number of sent requests. 101 Available for both PF and VF, and take no other effect on HPRE. 102 103What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/recv_cnt 104Date: Apr 2020 105Contact: [email protected] 106Description: Dump the total number of received requests. 107 Available for both PF and VF, and take no other effect on HPRE. 108 109What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_busy_cnt 110Date: Apr 2020 111Contact: [email protected] 112Description: Dump the total number of requests sent 113 with returning busy. 114 Available for both PF and VF, and take no other effect on HPRE. 115 116What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_fail_cnt 117Date: Apr 2020 118Contact: [email protected] 119Description: Dump the total number of completed but error requests. 120 Available for both PF and VF, and take no other effect on HPRE. 121 122What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/invalid_req_cnt 123Date: Apr 2020 124Contact: [email protected] 125Description: Dump the total number of invalid requests being received. 126 Available for both PF and VF, and take no other effect on HPRE. 127 128What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/overtime_thrhld 129Date: Apr 2020 130Contact: [email protected] 131Description: Set the threshold time for counting the request which is 132 processed longer than the threshold. 133 0: disable(default), 1: 1 microsecond. 134 Available for both PF and VF, and take no other effect on HPRE. 135 136What: /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/over_thrhld_cnt 137Date: Apr 2020 138Contact: [email protected] 139Description: Dump the total number of time out requests. 140 Available for both PF and VF, and take no other effect on HPRE. 141