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
178213a1a6SKai YeWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/qm_regs
18cbfe56e6SLongfang LiuDate:           Oct 2019
19cbfe56e6SLongfang LiuContact:        linux-crypto@vger.kernel.org
20cbfe56e6SLongfang LiuDescription:    Dump of QM related debug registers.
21cbfe56e6SLongfang Liu		Available for PF and VF in host. VF in guest currently only
22cbfe56e6SLongfang Liu		has one debug register.
23cbfe56e6SLongfang Liu
248213a1a6SKai YeWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/current_q
25cbfe56e6SLongfang LiuDate:           Oct 2019
26cbfe56e6SLongfang LiuContact:        linux-crypto@vger.kernel.org
27cbfe56e6SLongfang LiuDescription:    One QM of SEC may contain multiple queues. Select specific
28988453fbSShukun Tan		queue to show its debug registers in above 'regs'.
29cbfe56e6SLongfang Liu		Only available for PF.
30cbfe56e6SLongfang Liu
318213a1a6SKai YeWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/clear_enable
32cbfe56e6SLongfang LiuDate:           Oct 2019
33cbfe56e6SLongfang LiuContact:        linux-crypto@vger.kernel.org
34cbfe56e6SLongfang LiuDescription:    Enabling/disabling of clear action after reading
35cbfe56e6SLongfang Liu		the SEC's QM debug registers.
36cbfe56e6SLongfang Liu		0: disable, 1: enable.
37cbfe56e6SLongfang Liu		Only available for PF, and take no other effect on SEC.
3885026525SLongfang Liu
3985026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/err_irq
4085026525SLongfang LiuDate:           Apr 2020
4185026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
4285026525SLongfang LiuDescription:    Dump the number of invalid interrupts for
4385026525SLongfang Liu		QM task completion.
4485026525SLongfang Liu		Available for both PF and VF, and take no other effect on SEC.
4585026525SLongfang Liu
4685026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/aeq_irq
4785026525SLongfang LiuDate:           Apr 2020
4885026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
4985026525SLongfang LiuDescription:    Dump the number of QM async event queue interrupts.
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/abnormal_irq
5385026525SLongfang LiuDate:           Apr 2020
5485026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
5585026525SLongfang LiuDescription:    Dump the number of interrupts for QM abnormal event.
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/create_qp_err
5985026525SLongfang LiuDate:           Apr 2020
6085026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
6185026525SLongfang LiuDescription:    Dump the number of queue allocation errors.
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/mb_err
6585026525SLongfang LiuDate:           Apr 2020
6685026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
6785026525SLongfang LiuDescription:    Dump the number of failed QM mailbox commands.
6885026525SLongfang Liu		Available for both PF and VF, and take no other effect on SEC.
690a3a3960SLongfang Liu
700a3a3960SLongfang LiuWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/qm/status
710a3a3960SLongfang LiuDate:           Apr 2020
720a3a3960SLongfang LiuContact:        linux-crypto@vger.kernel.org
730a3a3960SLongfang LiuDescription:    Dump the status of the QM.
740a3a3960SLongfang Liu		Four states: initiated, started, stopped and closed.
750a3a3960SLongfang Liu		Available for both PF and VF, and take no other effect on SEC.
768213a1a6SKai Ye
778213a1a6SKai YeWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_cnt
788213a1a6SKai YeDate:           Apr 2020
798213a1a6SKai YeContact:        linux-crypto@vger.kernel.org
808213a1a6SKai YeDescription:    Dump the total number of sent requests.
818213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
828213a1a6SKai Ye
838213a1a6SKai YeWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/recv_cnt
848213a1a6SKai YeDate:           Apr 2020
858213a1a6SKai YeContact:        linux-crypto@vger.kernel.org
868213a1a6SKai YeDescription:    Dump the total number of received requests.
878213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
888213a1a6SKai Ye
898213a1a6SKai YeWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/send_busy_cnt
908213a1a6SKai YeDate:           Apr 2020
918213a1a6SKai YeContact:        linux-crypto@vger.kernel.org
928213a1a6SKai YeDescription:    Dump the total number of requests sent with returning busy.
938213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
948213a1a6SKai Ye
958213a1a6SKai YeWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/err_bd_cnt
968213a1a6SKai YeDate:           Apr 2020
978213a1a6SKai YeContact:        linux-crypto@vger.kernel.org
988213a1a6SKai YeDescription:    Dump the total number of BD type error requests
998213a1a6SKai Ye		to be received.
1008213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
1018213a1a6SKai Ye
1028213a1a6SKai YeWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/invalid_req_cnt
1038213a1a6SKai YeDate:           Apr 2020
1048213a1a6SKai YeContact:        linux-crypto@vger.kernel.org
1058213a1a6SKai YeDescription:    Dump the total number of invalid requests being received.
1068213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
1078213a1a6SKai Ye
1088213a1a6SKai YeWhat:           /sys/kernel/debug/hisi_sec2/<bdf>/sec_dfx/done_flag_cnt
1098213a1a6SKai YeDate:           Apr 2020
1108213a1a6SKai YeContact:        linux-crypto@vger.kernel.org
1118213a1a6SKai YeDescription:    Dump the total number of completed but marked error requests
1128213a1a6SKai Ye		to be received.
1138213a1a6SKai Ye		Available for both PF and VF, and take no other effect on SEC.
114