1*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/clear_enable 2*4882a593SmuzhiyunDate: Oct 2019 3*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 4*4882a593SmuzhiyunDescription: Enabling/disabling of clear action after reading 5*4882a593Smuzhiyun the SEC debug registers. 6*4882a593Smuzhiyun 0: disable, 1: enable. 7*4882a593Smuzhiyun Only available for PF, and take no other effect on SEC. 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/current_qm 10*4882a593SmuzhiyunDate: Oct 2019 11*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 12*4882a593SmuzhiyunDescription: One SEC controller has one PF and multiple VFs, each function 13*4882a593Smuzhiyun has a QM. This file can be used to select the QM which below 14*4882a593Smuzhiyun qm refers to. 15*4882a593Smuzhiyun Only available for PF. 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs 18*4882a593SmuzhiyunDate: Oct 2019 19*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 20*4882a593SmuzhiyunDescription: Dump of QM related debug registers. 21*4882a593Smuzhiyun Available for PF and VF in host. VF in guest currently only 22*4882a593Smuzhiyun has one debug register. 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q 25*4882a593SmuzhiyunDate: Oct 2019 26*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 27*4882a593SmuzhiyunDescription: One QM of SEC may contain multiple queues. Select specific 28*4882a593Smuzhiyun queue to show its debug registers in above 'regs'. 29*4882a593Smuzhiyun Only available for PF. 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable 32*4882a593SmuzhiyunDate: Oct 2019 33*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 34*4882a593SmuzhiyunDescription: Enabling/disabling of clear action after reading 35*4882a593Smuzhiyun the SEC's QM debug registers. 36*4882a593Smuzhiyun 0: disable, 1: enable. 37*4882a593Smuzhiyun Only available for PF, and take no other effect on SEC. 38*4882a593Smuzhiyun 39*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq 40*4882a593SmuzhiyunDate: Apr 2020 41*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 42*4882a593SmuzhiyunDescription: Dump the number of invalid interrupts for 43*4882a593Smuzhiyun QM task completion. 44*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 45*4882a593Smuzhiyun 46*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq 47*4882a593SmuzhiyunDate: Apr 2020 48*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 49*4882a593SmuzhiyunDescription: Dump the number of QM async event queue interrupts. 50*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 51*4882a593Smuzhiyun 52*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq 53*4882a593SmuzhiyunDate: Apr 2020 54*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 55*4882a593SmuzhiyunDescription: Dump the number of interrupts for QM abnormal event. 56*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 57*4882a593Smuzhiyun 58*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err 59*4882a593SmuzhiyunDate: Apr 2020 60*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 61*4882a593SmuzhiyunDescription: Dump the number of queue allocation errors. 62*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 63*4882a593Smuzhiyun 64*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err 65*4882a593SmuzhiyunDate: Apr 2020 66*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 67*4882a593SmuzhiyunDescription: Dump the number of failed QM mailbox commands. 68*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 69*4882a593Smuzhiyun 70*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/status 71*4882a593SmuzhiyunDate: Apr 2020 72*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 73*4882a593SmuzhiyunDescription: Dump the status of the QM. 74*4882a593Smuzhiyun Four states: initiated, started, stopped and closed. 75*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 76*4882a593Smuzhiyun 77*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt 78*4882a593SmuzhiyunDate: Apr 2020 79*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 80*4882a593SmuzhiyunDescription: Dump the total number of sent requests. 81*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 82*4882a593Smuzhiyun 83*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt 84*4882a593SmuzhiyunDate: Apr 2020 85*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 86*4882a593SmuzhiyunDescription: Dump the total number of received requests. 87*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 88*4882a593Smuzhiyun 89*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt 90*4882a593SmuzhiyunDate: Apr 2020 91*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 92*4882a593SmuzhiyunDescription: Dump the total number of requests sent with returning busy. 93*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 94*4882a593Smuzhiyun 95*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt 96*4882a593SmuzhiyunDate: Apr 2020 97*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 98*4882a593SmuzhiyunDescription: Dump the total number of BD type error requests 99*4882a593Smuzhiyun to be received. 100*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 101*4882a593Smuzhiyun 102*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt 103*4882a593SmuzhiyunDate: Apr 2020 104*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 105*4882a593SmuzhiyunDescription: Dump the total number of invalid requests being received. 106*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 107*4882a593Smuzhiyun 108*4882a593SmuzhiyunWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt 109*4882a593SmuzhiyunDate: Apr 2020 110*4882a593SmuzhiyunContact: linux-crypto@vger.kernel.org 111*4882a593SmuzhiyunDescription: Dump the total number of completed but marked error requests 112*4882a593Smuzhiyun to be received. 113*4882a593Smuzhiyun Available for both PF and VF, and take no other effect on SEC. 114