0001 What: /sys/kernel/debug/hisi_sec2/<bdf>/clear_enable
0002 Date: Oct 2019
0003 Contact: linux-crypto@vger.kernel.org
0004 Description: Enabling/disabling of clear action after reading
0005 the SEC debug registers.
0006 0: disable, 1: enable.
0007 Only available for PF, and take no other effect on SEC.
0008
0009 What: /sys/kernel/debug/hisi_sec2/<bdf>/current_qm
0010 Date: Oct 2019
0011 Contact: linux-crypto@vger.kernel.org
0012 Description: One SEC controller has one PF and multiple VFs, each function
0013 has a QM. This file can be used to select the QM which below
0014 qm refers to.
0015 Only available for PF.
0016
0017 What: /sys/kernel/debug/hisi_sec2/<bdf>/alg_qos
0018 Date: Jun 2021
0019 Contact: linux-crypto@vger.kernel.org
0020 Description: The <bdf> is related the function for PF and VF.
0021 SEC driver supports to configure each function's QoS, the driver
0022 supports to write <bdf> value to alg_qos in the host. Such as
0023 "echo <bdf> value > alg_qos". The qos value is 1~1000, means
0024 1/1000~1000/1000 of total QoS. The driver reading alg_qos to
0025 get related QoS in the host and VM, Such as "cat alg_qos".
0026
0027 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
0028 Date: Oct 2019
0029 Contact: linux-crypto@vger.kernel.org
0030 Description: Dump of QM related debug registers.
0031 Available for PF and VF in host. VF in guest currently only
0032 has one debug register.
0033
0034 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q
0035 Date: Oct 2019
0036 Contact: linux-crypto@vger.kernel.org
0037 Description: One QM of SEC may contain multiple queues. Select specific
0038 queue to show its debug registers in above 'regs'.
0039 Only available for PF.
0040
0041 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable
0042 Date: Oct 2019
0043 Contact: linux-crypto@vger.kernel.org
0044 Description: Enabling/disabling of clear action after reading
0045 the SEC's QM debug registers.
0046 0: disable, 1: enable.
0047 Only available for PF, and take no other effect on SEC.
0048
0049 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq
0050 Date: Apr 2020
0051 Contact: linux-crypto@vger.kernel.org
0052 Description: Dump the number of invalid interrupts for
0053 QM task completion.
0054 Available for both PF and VF, and take no other effect on SEC.
0055
0056 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq
0057 Date: Apr 2020
0058 Contact: linux-crypto@vger.kernel.org
0059 Description: Dump the number of QM async event queue interrupts.
0060 Available for both PF and VF, and take no other effect on SEC.
0061
0062 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq
0063 Date: Apr 2020
0064 Contact: linux-crypto@vger.kernel.org
0065 Description: Dump the number of interrupts for QM abnormal event.
0066 Available for both PF and VF, and take no other effect on SEC.
0067
0068 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err
0069 Date: Apr 2020
0070 Contact: linux-crypto@vger.kernel.org
0071 Description: Dump the number of queue allocation errors.
0072 Available for both PF and VF, and take no other effect on SEC.
0073
0074 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err
0075 Date: Apr 2020
0076 Contact: linux-crypto@vger.kernel.org
0077 Description: Dump the number of failed QM mailbox commands.
0078 Available for both PF and VF, and take no other effect on SEC.
0079
0080 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/status
0081 Date: Apr 2020
0082 Contact: linux-crypto@vger.kernel.org
0083 Description: Dump the status of the QM.
0084 Four states: initiated, started, stopped and closed.
0085 Available for both PF and VF, and take no other effect on SEC.
0086
0087 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/diff_regs
0088 Date: Mar 2022
0089 Contact: linux-crypto@vger.kernel.org
0090 Description: QM debug registers(regs) read hardware register value. This
0091 node is used to show the change of the qm register values. This
0092 node can be help users to check the change of register values.
0093
0094 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/diff_regs
0095 Date: Mar 2022
0096 Contact: linux-crypto@vger.kernel.org
0097 Description: SEC debug registers(regs) read hardware register value. This
0098 node is used to show the change of the register values. This
0099 node can be help users to check the change of register values.
0100
0101 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt
0102 Date: Apr 2020
0103 Contact: linux-crypto@vger.kernel.org
0104 Description: Dump the total number of sent requests.
0105 Available for both PF and VF, and take no other effect on SEC.
0106
0107 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt
0108 Date: Apr 2020
0109 Contact: linux-crypto@vger.kernel.org
0110 Description: Dump the total number of received requests.
0111 Available for both PF and VF, and take no other effect on SEC.
0112
0113 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt
0114 Date: Apr 2020
0115 Contact: linux-crypto@vger.kernel.org
0116 Description: Dump the total number of requests sent with returning busy.
0117 Available for both PF and VF, and take no other effect on SEC.
0118
0119 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt
0120 Date: Apr 2020
0121 Contact: linux-crypto@vger.kernel.org
0122 Description: Dump the total number of BD type error requests
0123 to be received.
0124 Available for both PF and VF, and take no other effect on SEC.
0125
0126 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt
0127 Date: Apr 2020
0128 Contact: linux-crypto@vger.kernel.org
0129 Description: Dump the total number of invalid requests being received.
0130 Available for both PF and VF, and take no other effect on SEC.
0131
0132 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt
0133 Date: Apr 2020
0134 Contact: linux-crypto@vger.kernel.org
0135 Description: Dump the total number of completed but marked error requests
0136 to be received.
0137 Available for both PF and VF, and take no other effect on SEC.