18c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/clear_enable 28c2ecf20Sopenharmony_ciDate: Oct 2019 38c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 48c2ecf20Sopenharmony_ciDescription: Enabling/disabling of clear action after reading 58c2ecf20Sopenharmony_ci the SEC debug registers. 68c2ecf20Sopenharmony_ci 0: disable, 1: enable. 78c2ecf20Sopenharmony_ci Only available for PF, and take no other effect on SEC. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/current_qm 108c2ecf20Sopenharmony_ciDate: Oct 2019 118c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 128c2ecf20Sopenharmony_ciDescription: One SEC controller has one PF and multiple VFs, each function 138c2ecf20Sopenharmony_ci has a QM. This file can be used to select the QM which below 148c2ecf20Sopenharmony_ci qm refers to. 158c2ecf20Sopenharmony_ci Only available for PF. 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs 188c2ecf20Sopenharmony_ciDate: Oct 2019 198c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 208c2ecf20Sopenharmony_ciDescription: Dump of QM related debug registers. 218c2ecf20Sopenharmony_ci Available for PF and VF in host. VF in guest currently only 228c2ecf20Sopenharmony_ci has one debug register. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q 258c2ecf20Sopenharmony_ciDate: Oct 2019 268c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 278c2ecf20Sopenharmony_ciDescription: One QM of SEC may contain multiple queues. Select specific 288c2ecf20Sopenharmony_ci queue to show its debug registers in above 'regs'. 298c2ecf20Sopenharmony_ci Only available for PF. 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable 328c2ecf20Sopenharmony_ciDate: Oct 2019 338c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 348c2ecf20Sopenharmony_ciDescription: Enabling/disabling of clear action after reading 358c2ecf20Sopenharmony_ci the SEC's QM debug registers. 368c2ecf20Sopenharmony_ci 0: disable, 1: enable. 378c2ecf20Sopenharmony_ci Only available for PF, and take no other effect on SEC. 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq 408c2ecf20Sopenharmony_ciDate: Apr 2020 418c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 428c2ecf20Sopenharmony_ciDescription: Dump the number of invalid interrupts for 438c2ecf20Sopenharmony_ci QM task completion. 448c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq 478c2ecf20Sopenharmony_ciDate: Apr 2020 488c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 498c2ecf20Sopenharmony_ciDescription: Dump the number of QM async event queue interrupts. 508c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq 538c2ecf20Sopenharmony_ciDate: Apr 2020 548c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 558c2ecf20Sopenharmony_ciDescription: Dump the number of interrupts for QM abnormal event. 568c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err 598c2ecf20Sopenharmony_ciDate: Apr 2020 608c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 618c2ecf20Sopenharmony_ciDescription: Dump the number of queue allocation errors. 628c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err 658c2ecf20Sopenharmony_ciDate: Apr 2020 668c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 678c2ecf20Sopenharmony_ciDescription: Dump the number of failed QM mailbox commands. 688c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/status 718c2ecf20Sopenharmony_ciDate: Apr 2020 728c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 738c2ecf20Sopenharmony_ciDescription: Dump the status of the QM. 748c2ecf20Sopenharmony_ci Four states: initiated, started, stopped and closed. 758c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt 788c2ecf20Sopenharmony_ciDate: Apr 2020 798c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 808c2ecf20Sopenharmony_ciDescription: Dump the total number of sent requests. 818c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt 848c2ecf20Sopenharmony_ciDate: Apr 2020 858c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 868c2ecf20Sopenharmony_ciDescription: Dump the total number of received requests. 878c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt 908c2ecf20Sopenharmony_ciDate: Apr 2020 918c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 928c2ecf20Sopenharmony_ciDescription: Dump the total number of requests sent with returning busy. 938c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt 968c2ecf20Sopenharmony_ciDate: Apr 2020 978c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 988c2ecf20Sopenharmony_ciDescription: Dump the total number of BD type error requests 998c2ecf20Sopenharmony_ci to be received. 1008c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt 1038c2ecf20Sopenharmony_ciDate: Apr 2020 1048c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 1058c2ecf20Sopenharmony_ciDescription: Dump the total number of invalid requests being received. 1068c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 1078c2ecf20Sopenharmony_ci 1088c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt 1098c2ecf20Sopenharmony_ciDate: Apr 2020 1108c2ecf20Sopenharmony_ciContact: linux-crypto@vger.kernel.org 1118c2ecf20Sopenharmony_ciDescription: Dump the total number of completed but marked error requests 1128c2ecf20Sopenharmony_ci to be received. 1138c2ecf20Sopenharmony_ci Available for both PF and VF, and take no other effect on SEC. 114