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