xref: /linux/Documentation/ABI/testing/debugfs-hisi-hpre (revision b492f82fcee1d1c6cdb54ce6e8134438e651b3cf)
1*b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/regs
2*b492f82fSZaibo XuDate:           Sep 2019
3*b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
4*b492f82fSZaibo XuDescription:    Dump debug registers from the HPRE cluster.
5*b492f82fSZaibo Xu		Only available for PF.
6*b492f82fSZaibo Xu
7*b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/cluster_ctrl
8*b492f82fSZaibo XuDate:           Sep 2019
9*b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
10*b492f82fSZaibo XuDescription:    Write the HPRE core selection in the cluster into this file,
11*b492f82fSZaibo Xu		and then we can read the debug information of the core.
12*b492f82fSZaibo Xu		Only available for PF.
13*b492f82fSZaibo Xu
14*b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/rdclr_en
15*b492f82fSZaibo XuDate:           Sep 2019
16*b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
17*b492f82fSZaibo XuDescription:    HPRE cores debug registers read clear control. 1 means enable
18*b492f82fSZaibo Xu		register read clear, otherwise 0. Writing to this file has no
19*b492f82fSZaibo Xu		functional effect, only enable or disable counters clear after
20*b492f82fSZaibo Xu		reading of these registers.
21*b492f82fSZaibo Xu		Only available for PF.
22*b492f82fSZaibo Xu
23*b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/current_qm
24*b492f82fSZaibo XuDate:           Sep 2019
25*b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
26*b492f82fSZaibo XuDescription:    One HPRE controller has one PF and multiple VFs, each function
27*b492f82fSZaibo Xu		has a QM. Select the QM which below qm refers to.
28*b492f82fSZaibo Xu		Only available for PF.
29*b492f82fSZaibo Xu
30*b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/regs
31*b492f82fSZaibo XuDate:           Sep 2019
32*b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
33*b492f82fSZaibo XuDescription:    Dump debug registers from the HPRE.
34*b492f82fSZaibo Xu		Only available for PF.
35*b492f82fSZaibo Xu
36*b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/qm_regs
37*b492f82fSZaibo XuDate:           Sep 2019
38*b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
39*b492f82fSZaibo XuDescription:    Dump debug registers from the QM.
40*b492f82fSZaibo Xu		Available for PF and VF in host. VF in guest currently only
41*b492f82fSZaibo Xu		has one debug register.
42*b492f82fSZaibo Xu
43*b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q
44*b492f82fSZaibo XuDate:           Sep 2019
45*b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
46*b492f82fSZaibo XuDescription:    One QM may contain multiple queues. Select specific queue to
47*b492f82fSZaibo Xu		show its debug registers in above qm_regs.
48*b492f82fSZaibo Xu		Only available for PF.
49*b492f82fSZaibo Xu
50*b492f82fSZaibo XuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable
51*b492f82fSZaibo XuDate:           Sep 2019
52*b492f82fSZaibo XuContact:        linux-crypto@vger.kernel.org
53*b492f82fSZaibo XuDescription:    QM debug registers(qm_regs) read clear control. 1 means enable
54*b492f82fSZaibo Xu		register read clear, otherwise 0.
55*b492f82fSZaibo Xu		Writing to this file has no functional effect, only enable or
56*b492f82fSZaibo Xu		disable counters clear after reading of these registers.
57*b492f82fSZaibo Xu		Only available for PF.
58