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 17*53576186SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/alg_qos 18*53576186SKai YeDate: Jun 2021 19*53576186SKai YeContact: linux-crypto@vger.kernel.org 20*53576186SKai YeDescription: The <bdf> is related the function for PF and VF. 21*53576186SKai Ye SEC driver supports to configure each function's QoS, the driver 22*53576186SKai Ye supports to write <bdf> value to alg_qos in the host. Such as 23*53576186SKai Ye "echo <bdf> value > alg_qos". The qos value is 1~1000, means 24*53576186SKai Ye 1/1000~1000/1000 of total QoS. The driver reading alg_qos to 25*53576186SKai Ye get related QoS in the host and VM, Such as "cat alg_qos". 26*53576186SKai 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 878213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt 888213a1a6SKai YeDate: Apr 2020 898213a1a6SKai YeContact: linux-crypto@vger.kernel.org 908213a1a6SKai YeDescription: Dump the total number of sent requests. 918213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 928213a1a6SKai Ye 938213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt 948213a1a6SKai YeDate: Apr 2020 958213a1a6SKai YeContact: linux-crypto@vger.kernel.org 968213a1a6SKai YeDescription: Dump the total number of received requests. 978213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 988213a1a6SKai Ye 998213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt 1008213a1a6SKai YeDate: Apr 2020 1018213a1a6SKai YeContact: linux-crypto@vger.kernel.org 1028213a1a6SKai YeDescription: Dump the total number of requests sent with returning busy. 1038213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 1048213a1a6SKai Ye 1058213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt 1068213a1a6SKai YeDate: Apr 2020 1078213a1a6SKai YeContact: linux-crypto@vger.kernel.org 1088213a1a6SKai YeDescription: Dump the total number of BD type error requests 1098213a1a6SKai Ye to be received. 1108213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 1118213a1a6SKai Ye 1128213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt 1138213a1a6SKai YeDate: Apr 2020 1148213a1a6SKai YeContact: linux-crypto@vger.kernel.org 1158213a1a6SKai YeDescription: Dump the total number of invalid requests being received. 1168213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 1178213a1a6SKai Ye 1188213a1a6SKai YeWhat: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt 1198213a1a6SKai YeDate: Apr 2020 1208213a1a6SKai YeContact: linux-crypto@vger.kernel.org 1218213a1a6SKai YeDescription: Dump the total number of completed but marked error requests 1228213a1a6SKai Ye to be received. 1238213a1a6SKai Ye Available for both PF and VF, and take no other effect on SEC. 124