1cbfe56e6SLongfang LiuWhat: /sys/kernel/debug/hisi_sec/<bdf>/sec_dfx 2cbfe56e6SLongfang LiuDate: Oct 2019 3cbfe56e6SLongfang LiuContact: linux-crypto@vger.kernel.org 4cbfe56e6SLongfang LiuDescription: Dump the debug registers of SEC cores. 5cbfe56e6SLongfang Liu Only available for PF. 6cbfe56e6SLongfang Liu 7cbfe56e6SLongfang LiuWhat: /sys/kernel/debug/hisi_sec/<bdf>/clear_enable 8cbfe56e6SLongfang LiuDate: Oct 2019 9cbfe56e6SLongfang LiuContact: linux-crypto@vger.kernel.org 10cbfe56e6SLongfang LiuDescription: Enabling/disabling of clear action after reading 11cbfe56e6SLongfang Liu the SEC debug registers. 12cbfe56e6SLongfang Liu 0: disable, 1: enable. 13cbfe56e6SLongfang Liu Only available for PF, and take no other effect on SEC. 14cbfe56e6SLongfang Liu 15cbfe56e6SLongfang LiuWhat: /sys/kernel/debug/hisi_sec/<bdf>/current_qm 16cbfe56e6SLongfang LiuDate: Oct 2019 17cbfe56e6SLongfang LiuContact: linux-crypto@vger.kernel.org 18cbfe56e6SLongfang LiuDescription: One SEC controller has one PF and multiple VFs, each function 19cbfe56e6SLongfang Liu has a QM. This file can be used to select the QM which below 20cbfe56e6SLongfang Liu qm refers to. 21cbfe56e6SLongfang Liu Only available for PF. 22cbfe56e6SLongfang Liu 23cbfe56e6SLongfang LiuWhat: /sys/kernel/debug/hisi_sec/<bdf>/qm/qm_regs 24cbfe56e6SLongfang LiuDate: Oct 2019 25cbfe56e6SLongfang LiuContact: linux-crypto@vger.kernel.org 26cbfe56e6SLongfang LiuDescription: Dump of QM related debug registers. 27cbfe56e6SLongfang Liu Available for PF and VF in host. VF in guest currently only 28cbfe56e6SLongfang Liu has one debug register. 29cbfe56e6SLongfang Liu 30cbfe56e6SLongfang LiuWhat: /sys/kernel/debug/hisi_sec/<bdf>/qm/current_q 31cbfe56e6SLongfang LiuDate: Oct 2019 32cbfe56e6SLongfang LiuContact: linux-crypto@vger.kernel.org 33cbfe56e6SLongfang LiuDescription: One QM of SEC may contain multiple queues. Select specific 34cbfe56e6SLongfang Liu queue to show its debug registers in above 'qm_regs'. 35cbfe56e6SLongfang Liu Only available for PF. 36cbfe56e6SLongfang Liu 37cbfe56e6SLongfang LiuWhat: /sys/kernel/debug/hisi_sec/<bdf>/qm/clear_enable 38cbfe56e6SLongfang LiuDate: Oct 2019 39cbfe56e6SLongfang LiuContact: linux-crypto@vger.kernel.org 40cbfe56e6SLongfang LiuDescription: Enabling/disabling of clear action after reading 41cbfe56e6SLongfang Liu the SEC's QM debug registers. 42cbfe56e6SLongfang Liu 0: disable, 1: enable. 43cbfe56e6SLongfang Liu Only available for PF, and take no other effect on SEC. 4485026525SLongfang Liu 4585026525SLongfang LiuWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq 4685026525SLongfang LiuDate: Apr 2020 4785026525SLongfang LiuContact: linux-crypto@vger.kernel.org 4885026525SLongfang LiuDescription: Dump the number of invalid interrupts for 4985026525SLongfang Liu QM task completion. 5085026525SLongfang Liu Available for both PF and VF, and take no other effect on SEC. 5185026525SLongfang Liu 5285026525SLongfang LiuWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq 5385026525SLongfang LiuDate: Apr 2020 5485026525SLongfang LiuContact: linux-crypto@vger.kernel.org 5585026525SLongfang LiuDescription: Dump the number of QM async event queue interrupts. 5685026525SLongfang Liu Available for both PF and VF, and take no other effect on SEC. 5785026525SLongfang Liu 5885026525SLongfang LiuWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq 5985026525SLongfang LiuDate: Apr 2020 6085026525SLongfang LiuContact: linux-crypto@vger.kernel.org 6185026525SLongfang LiuDescription: Dump the number of interrupts for QM abnormal event. 6285026525SLongfang Liu Available for both PF and VF, and take no other effect on SEC. 6385026525SLongfang Liu 6485026525SLongfang LiuWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err 6585026525SLongfang LiuDate: Apr 2020 6685026525SLongfang LiuContact: linux-crypto@vger.kernel.org 6785026525SLongfang LiuDescription: Dump the number of queue allocation errors. 6885026525SLongfang Liu Available for both PF and VF, and take no other effect on SEC. 6985026525SLongfang Liu 7085026525SLongfang LiuWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err 7185026525SLongfang LiuDate: Apr 2020 7285026525SLongfang LiuContact: linux-crypto@vger.kernel.org 7385026525SLongfang LiuDescription: Dump the number of failed QM mailbox commands. 7485026525SLongfang Liu Available for both PF and VF, and take no other effect on SEC. 75