18213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/clear_enable 2cbfe56e6SLongfang LiuDate: Oct 2019 3cbfe56e6SLongfang LiuContact: linux-crypto@vger.kernel.org 4cbfe56e6SLongfang LiuDescription: Enabling/disabling of clear action after reading 5cbfe56e6SLongfang Liu the SEC debug registers. 6cbfe56e6SLongfang Liu 0: disable, 1: enable. 7cbfe56e6SLongfang Liu Only available for PF, and take no other effect on SEC. 8cbfe56e6SLongfang Liu 98213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/current_qm 10cbfe56e6SLongfang LiuDate: Oct 2019 11cbfe56e6SLongfang LiuContact: linux-crypto@vger.kernel.org 12cbfe56e6SLongfang LiuDescription: One SEC controller has one PF and multiple VFs, each function 13cbfe56e6SLongfang Liu has a QM. This file can be used to select the QM which below 14cbfe56e6SLongfang Liu qm refers to. 15cbfe56e6SLongfang Liu Only available for PF. 16cbfe56e6SLongfang Liu 1753576186SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/alg_qos 1853576186SKai YeDate: Jun 2021 1953576186SKai YeContact: linux-crypto@vger.kernel.org 2053576186SKai YeDescription: The <bdf> is related the function for PF and VF. 2153576186SKai Ye SEC driver supports to configure each function's QoS, the driver 2253576186SKai Ye supports to write <bdf> value to alg_qos in the host. Such as 2353576186SKai Ye "echo <bdf> value > alg_qos". The qos value is 1~1000, means 2453576186SKai Ye 1/1000~1000/1000 of total QoS. The driver reading alg_qos to 2553576186SKai Ye get related QoS in the host and VM, Such as "cat alg_qos". 2653576186SKai Ye 278213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs 28cbfe56e6SLongfang LiuDate: Oct 2019 29cbfe56e6SLongfang LiuContact: linux-crypto@vger.kernel.org 30cbfe56e6SLongfang LiuDescription: Dump of QM related debug registers. 31cbfe56e6SLongfang Liu Available for PF and VF in host. VF in guest currently only 32cbfe56e6SLongfang Liu has one debug register. 33cbfe56e6SLongfang Liu 348213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q 35cbfe56e6SLongfang LiuDate: Oct 2019 36cbfe56e6SLongfang LiuContact: linux-crypto@vger.kernel.org 37cbfe56e6SLongfang LiuDescription: One QM of SEC may contain multiple queues. Select specific 38988453fbSShukun Tan queue to show its debug registers in above 'regs'. 39cbfe56e6SLongfang Liu Only available for PF. 40cbfe56e6SLongfang Liu 418213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable 42cbfe56e6SLongfang LiuDate: Oct 2019 43cbfe56e6SLongfang LiuContact: linux-crypto@vger.kernel.org 44cbfe56e6SLongfang LiuDescription: Enabling/disabling of clear action after reading 45cbfe56e6SLongfang Liu the SEC's QM debug registers. 46cbfe56e6SLongfang Liu 0: disable, 1: enable. 47cbfe56e6SLongfang Liu Only available for PF, and take no other effect on SEC. 4885026525SLongfang Liu 4985026525SLongfang LiuWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq 5085026525SLongfang LiuDate: Apr 2020 5185026525SLongfang LiuContact: linux-crypto@vger.kernel.org 5285026525SLongfang LiuDescription: Dump the number of invalid interrupts for 5385026525SLongfang Liu QM task completion. 5485026525SLongfang Liu Available for both PF and VF, and take no other effect on SEC. 5585026525SLongfang Liu 5685026525SLongfang LiuWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq 5785026525SLongfang LiuDate: Apr 2020 5885026525SLongfang LiuContact: linux-crypto@vger.kernel.org 5985026525SLongfang LiuDescription: Dump the number of QM async event queue interrupts. 6085026525SLongfang Liu Available for both PF and VF, and take no other effect on SEC. 6185026525SLongfang Liu 6285026525SLongfang LiuWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq 6385026525SLongfang LiuDate: Apr 2020 6485026525SLongfang LiuContact: linux-crypto@vger.kernel.org 6585026525SLongfang LiuDescription: Dump the number of interrupts for QM abnormal event. 6685026525SLongfang Liu Available for both PF and VF, and take no other effect on SEC. 6785026525SLongfang Liu 6885026525SLongfang LiuWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err 6985026525SLongfang LiuDate: Apr 2020 7085026525SLongfang LiuContact: linux-crypto@vger.kernel.org 7185026525SLongfang LiuDescription: Dump the number of queue allocation errors. 7285026525SLongfang Liu Available for both PF and VF, and take no other effect on SEC. 7385026525SLongfang Liu 7485026525SLongfang LiuWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err 7585026525SLongfang LiuDate: Apr 2020 7685026525SLongfang LiuContact: linux-crypto@vger.kernel.org 7785026525SLongfang LiuDescription: Dump the number of failed QM mailbox commands. 7885026525SLongfang Liu Available for both PF and VF, and take no other effect on SEC. 790a3a3960SLongfang Liu 800a3a3960SLongfang LiuWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/status 810a3a3960SLongfang LiuDate: Apr 2020 820a3a3960SLongfang LiuContact: linux-crypto@vger.kernel.org 830a3a3960SLongfang LiuDescription: Dump the status of the QM. 840a3a3960SLongfang Liu Four states: initiated, started, stopped and closed. 850a3a3960SLongfang Liu Available for both PF and VF, and take no other effect on SEC. 868213a1a6SKai Ye 87*73e3b46eSKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/qm/diff_regs 88*73e3b46eSKai YeDate: Mar 2022 89*73e3b46eSKai YeContact: linux-crypto@vger.kernel.org 90*73e3b46eSKai YeDescription: QM debug registers(regs) read hardware register value. This 91*73e3b46eSKai Ye node is used to show the change of the qm register values. This 92*73e3b46eSKai Ye node can be help users to check the change of register values. 93*73e3b46eSKai Ye 94*73e3b46eSKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/diff_regs 95*73e3b46eSKai YeDate: Mar 2022 96*73e3b46eSKai YeContact: linux-crypto@vger.kernel.org 97*73e3b46eSKai YeDescription: SEC debug registers(regs) read hardware register value. This 98*73e3b46eSKai Ye node is used to show the change of the register values. This 99*73e3b46eSKai Ye node can be help users to check the change of register values. 100*73e3b46eSKai Ye 1018213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt 1028213a1a6SKai YeDate: Apr 2020 1038213a1a6SKai YeContact: linux-crypto@vger.kernel.org 1048213a1a6SKai YeDescription: Dump the total number of sent requests. 1058213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 1068213a1a6SKai Ye 1078213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt 1088213a1a6SKai YeDate: Apr 2020 1098213a1a6SKai YeContact: linux-crypto@vger.kernel.org 1108213a1a6SKai YeDescription: Dump the total number of received requests. 1118213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 1128213a1a6SKai Ye 1138213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt 1148213a1a6SKai YeDate: Apr 2020 1158213a1a6SKai YeContact: linux-crypto@vger.kernel.org 1168213a1a6SKai YeDescription: Dump the total number of requests sent with returning busy. 1178213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 1188213a1a6SKai Ye 1198213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt 1208213a1a6SKai YeDate: Apr 2020 1218213a1a6SKai YeContact: linux-crypto@vger.kernel.org 1228213a1a6SKai YeDescription: Dump the total number of BD type error requests 1238213a1a6SKai Ye to be received. 1248213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 1258213a1a6SKai Ye 1268213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt 1278213a1a6SKai YeDate: Apr 2020 1288213a1a6SKai YeContact: linux-crypto@vger.kernel.org 1298213a1a6SKai YeDescription: Dump the total number of invalid requests being received. 1308213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 1318213a1a6SKai Ye 1328213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt 1338213a1a6SKai YeDate: Apr 2020 1348213a1a6SKai YeContact: linux-crypto@vger.kernel.org 1358213a1a6SKai YeDescription: Dump the total number of completed but marked error requests 1368213a1a6SKai Ye to be received. 1378213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 138