1 What: /sys/kernel/debug/hisi_sec2/<bdf>/clear_enable
3 Contact: linux-crypto@vger.kernel.org
4 Description: Enabling/disabling of clear action after reading
5 the SEC debug registers.
7 Only available for PF, and take no other effect on SEC.
9 What: /sys/kernel/debug/hisi_sec2/<bdf>/current_qm
11 Contact: linux-crypto@vger.kernel.org
12 Description: One SEC controller has one PF and multiple VFs, each function
13 has a QM. This file can be used to select the QM which below
15 Only available for PF.
17 What: /sys/kernel/debug/hisi_sec2/<bdf>/alg_qos
19 Contact: linux-crypto@vger.kernel.org
20 Description: The <bdf> is related the function for PF and VF.
21 SEC driver supports to configure each function's QoS, the driver
22 supports to write <bdf> value to alg_qos in the host. Such as
23 "echo <bdf> value > alg_qos". The qos value is 1~1000, means
24 1/1000~1000/1000 of total QoS. The driver reading alg_qos to
25 get related QoS in the host and VM, Such as "cat alg_qos".
27 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
29 Contact: linux-crypto@vger.kernel.org
30 Description: Dump of QM related debug registers.
31 Available for PF and VF in host. VF in guest currently only
32 has one debug register.
34 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q
36 Contact: linux-crypto@vger.kernel.org
37 Description: One QM of SEC may contain multiple queues. Select specific
38 queue to show its debug registers in above 'regs'.
39 Only available for PF.
41 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable
43 Contact: linux-crypto@vger.kernel.org
44 Description: Enabling/disabling of clear action after reading
45 the SEC's QM debug registers.
46 0: disable, 1: enable.
47 Only available for PF, and take no other effect on SEC.
49 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq
51 Contact: linux-crypto@vger.kernel.org
52 Description: Dump the number of invalid interrupts for
54 Available for both PF and VF, and take no other effect on SEC.
56 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq
58 Contact: linux-crypto@vger.kernel.org
59 Description: Dump the number of QM async event queue interrupts.
60 Available for both PF and VF, and take no other effect on SEC.
62 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/abnormal_irq
64 Contact: linux-crypto@vger.kernel.org
65 Description: Dump the number of interrupts for QM abnormal event.
66 Available for both PF and VF, and take no other effect on SEC.
68 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/create_qp_err
70 Contact: linux-crypto@vger.kernel.org
71 Description: Dump the number of queue allocation errors.
72 Available for both PF and VF, and take no other effect on SEC.
74 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/mb_err
76 Contact: linux-crypto@vger.kernel.org
77 Description: Dump the number of failed QM mailbox commands.
78 Available for both PF and VF, and take no other effect on SEC.
80 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/status
82 Contact: linux-crypto@vger.kernel.org
83 Description: Dump the status of the QM.
84 Four states: initiated, started, stopped and closed.
85 Available for both PF and VF, and take no other effect on SEC.
87 What: /sys/kernel/debug/hisi_sec2/<bdf>/qm/diff_regs
89 Contact: linux-crypto@vger.kernel.org
90 Description: QM debug registers(regs) read hardware register value. This
91 node is used to show the change of the qm register values. This
92 node can be help users to check the change of register values.
94 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/diff_regs
96 Contact: linux-crypto@vger.kernel.org
97 Description: SEC debug registers(regs) read hardware register value. This
98 node is used to show the change of the register values. This
99 node can be help users to check the change of register values.
101 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt
103 Contact: linux-crypto@vger.kernel.org
104 Description: Dump the total number of sent requests.
105 Available for both PF and VF, and take no other effect on SEC.
107 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt
109 Contact: linux-crypto@vger.kernel.org
110 Description: Dump the total number of received requests.
111 Available for both PF and VF, and take no other effect on SEC.
113 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt
115 Contact: linux-crypto@vger.kernel.org
116 Description: Dump the total number of requests sent with returning busy.
117 Available for both PF and VF, and take no other effect on SEC.
119 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt
121 Contact: linux-crypto@vger.kernel.org
122 Description: Dump the total number of BD type error requests
124 Available for both PF and VF, and take no other effect on SEC.
126 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt
128 Contact: linux-crypto@vger.kernel.org
129 Description: Dump the total number of invalid requests being received.
130 Available for both PF and VF, and take no other effect on SEC.
132 What: /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt
134 Contact: linux-crypto@vger.kernel.org
135 Description: Dump the total number of completed but marked error requests
137 Available for both PF and VF, and take no other effect on SEC.