xref: /linux/Documentation/ABI/testing/debugfs-hisi-hpre (revision 8502652542c6684dd142f74c1bd1772730f653bd)
1b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/regs
2b492f82fSZaibo XuDate:           Sep 2019
3b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
4b492f82fSZaibo XuDescription:    Dump debug registers from the HPRE cluster.
5b492f82fSZaibo Xu		Only available for PF.
6b492f82fSZaibo Xu
7b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/cluster_ctrl
8b492f82fSZaibo XuDate:           Sep 2019
9b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
10b492f82fSZaibo XuDescription:    Write the HPRE core selection in the cluster into this file,
11b492f82fSZaibo Xu		and then we can read the debug information of the core.
12b492f82fSZaibo Xu		Only available for PF.
13b492f82fSZaibo Xu
14b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/rdclr_en
15b492f82fSZaibo XuDate:           Sep 2019
16b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
17b492f82fSZaibo XuDescription:    HPRE cores debug registers read clear control. 1 means enable
18b492f82fSZaibo Xu		register read clear, otherwise 0. Writing to this file has no
19b492f82fSZaibo Xu		functional effect, only enable or disable counters clear after
20b492f82fSZaibo Xu		reading of these registers.
21b492f82fSZaibo Xu		Only available for PF.
22b492f82fSZaibo Xu
23b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/current_qm
24b492f82fSZaibo XuDate:           Sep 2019
25b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
26b492f82fSZaibo XuDescription:    One HPRE controller has one PF and multiple VFs, each function
27b492f82fSZaibo Xu		has a QM. Select the QM which below qm refers to.
28b492f82fSZaibo Xu		Only available for PF.
29b492f82fSZaibo Xu
30b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/regs
31b492f82fSZaibo XuDate:           Sep 2019
32b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
33b492f82fSZaibo XuDescription:    Dump debug registers from the HPRE.
34b492f82fSZaibo Xu		Only available for PF.
35b492f82fSZaibo Xu
36b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/qm_regs
37b492f82fSZaibo XuDate:           Sep 2019
38b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
39b492f82fSZaibo XuDescription:    Dump debug registers from the QM.
40b492f82fSZaibo Xu		Available for PF and VF in host. VF in guest currently only
41b492f82fSZaibo Xu		has one debug register.
42b492f82fSZaibo Xu
43b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q
44b492f82fSZaibo XuDate:           Sep 2019
45b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
46b492f82fSZaibo XuDescription:    One QM may contain multiple queues. Select specific queue to
47b492f82fSZaibo Xu		show its debug registers in above qm_regs.
48b492f82fSZaibo Xu		Only available for PF.
49b492f82fSZaibo Xu
50b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable
51b492f82fSZaibo XuDate:           Sep 2019
52b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
53b492f82fSZaibo XuDescription:    QM debug registers(qm_regs) read clear control. 1 means enable
54b492f82fSZaibo Xu		register read clear, otherwise 0.
55b492f82fSZaibo Xu		Writing to this file has no functional effect, only enable or
56b492f82fSZaibo Xu		disable counters clear after reading of these registers.
57b492f82fSZaibo Xu		Only available for PF.
58*85026525SLongfang Liu
59*85026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq
60*85026525SLongfang LiuDate:           Apr 2020
61*85026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
62*85026525SLongfang LiuDescription:    Dump the number of invalid interrupts for
63*85026525SLongfang Liu		QM task completion.
64*85026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
65*85026525SLongfang Liu
66*85026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq
67*85026525SLongfang LiuDate:           Apr 2020
68*85026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
69*85026525SLongfang LiuDescription:    Dump the number of QM async event queue interrupts.
70*85026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
71*85026525SLongfang Liu
72*85026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq
73*85026525SLongfang LiuDate:           Apr 2020
74*85026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
75*85026525SLongfang LiuDescription:    Dump the number of interrupts for QM abnormal event.
76*85026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
77*85026525SLongfang Liu
78*85026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err
79*85026525SLongfang LiuDate:           Apr 2020
80*85026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
81*85026525SLongfang LiuDescription:    Dump the number of queue allocation errors.
82*85026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
83*85026525SLongfang Liu
84*85026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err
85*85026525SLongfang LiuDate:           Apr 2020
86*85026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
87*85026525SLongfang LiuDescription:    Dump the number of failed QM mailbox commands.
88*85026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
89