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.
5885026525SLongfang Liu
5985026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq
6085026525SLongfang LiuDate:           Apr 2020
6185026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
6285026525SLongfang LiuDescription:    Dump the number of invalid interrupts for
6385026525SLongfang Liu		QM task completion.
6485026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
6585026525SLongfang Liu
6685026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq
6785026525SLongfang LiuDate:           Apr 2020
6885026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
6985026525SLongfang LiuDescription:    Dump the number of QM async event queue interrupts.
7085026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
7185026525SLongfang Liu
7285026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq
7385026525SLongfang LiuDate:           Apr 2020
7485026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
7585026525SLongfang LiuDescription:    Dump the number of interrupts for QM abnormal event.
7685026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
7785026525SLongfang Liu
7885026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err
7985026525SLongfang LiuDate:           Apr 2020
8085026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
8185026525SLongfang LiuDescription:    Dump the number of queue allocation errors.
8285026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
8385026525SLongfang Liu
8485026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err
8585026525SLongfang LiuDate:           Apr 2020
8685026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
8785026525SLongfang LiuDescription:    Dump the number of failed QM mailbox commands.
8885026525SLongfang Liu		Available for both PF and VF, and take no other effect on HPRE.
89