18c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/regs
28c2ecf20Sopenharmony_ciDate:           Sep 2019
38c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
48c2ecf20Sopenharmony_ciDescription:    Dump debug registers from the HPRE cluster.
58c2ecf20Sopenharmony_ci		Only available for PF.
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/cluster_ctrl
88c2ecf20Sopenharmony_ciDate:           Sep 2019
98c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
108c2ecf20Sopenharmony_ciDescription:    Write the HPRE core selection in the cluster into this file,
118c2ecf20Sopenharmony_ci		and then we can read the debug information of the core.
128c2ecf20Sopenharmony_ci		Only available for PF.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/rdclr_en
158c2ecf20Sopenharmony_ciDate:           Sep 2019
168c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
178c2ecf20Sopenharmony_ciDescription:    HPRE cores debug registers read clear control. 1 means enable
188c2ecf20Sopenharmony_ci		register read clear, otherwise 0. Writing to this file has no
198c2ecf20Sopenharmony_ci		functional effect, only enable or disable counters clear after
208c2ecf20Sopenharmony_ci		reading of these registers.
218c2ecf20Sopenharmony_ci		Only available for PF.
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/current_qm
248c2ecf20Sopenharmony_ciDate:           Sep 2019
258c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
268c2ecf20Sopenharmony_ciDescription:    One HPRE controller has one PF and multiple VFs, each function
278c2ecf20Sopenharmony_ci		has a QM. Select the QM which below qm refers to.
288c2ecf20Sopenharmony_ci		Only available for PF.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/regs
318c2ecf20Sopenharmony_ciDate:           Sep 2019
328c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
338c2ecf20Sopenharmony_ciDescription:    Dump debug registers from the HPRE.
348c2ecf20Sopenharmony_ci		Only available for PF.
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/regs
378c2ecf20Sopenharmony_ciDate:           Sep 2019
388c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
398c2ecf20Sopenharmony_ciDescription:    Dump debug registers from the QM.
408c2ecf20Sopenharmony_ci		Available for PF and VF in host. VF in guest currently only
418c2ecf20Sopenharmony_ci		has one debug register.
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/current_q
448c2ecf20Sopenharmony_ciDate:           Sep 2019
458c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
468c2ecf20Sopenharmony_ciDescription:    One QM may contain multiple queues. Select specific queue to
478c2ecf20Sopenharmony_ci		show its debug registers in above regs.
488c2ecf20Sopenharmony_ci		Only available for PF.
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/clear_enable
518c2ecf20Sopenharmony_ciDate:           Sep 2019
528c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
538c2ecf20Sopenharmony_ciDescription:    QM debug registers(regs) read clear control. 1 means enable
548c2ecf20Sopenharmony_ci		register read clear, otherwise 0.
558c2ecf20Sopenharmony_ci		Writing to this file has no functional effect, only enable or
568c2ecf20Sopenharmony_ci		disable counters clear after reading of these registers.
578c2ecf20Sopenharmony_ci		Only available for PF.
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/err_irq
608c2ecf20Sopenharmony_ciDate:           Apr 2020
618c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
628c2ecf20Sopenharmony_ciDescription:    Dump the number of invalid interrupts for
638c2ecf20Sopenharmony_ci		QM task completion.
648c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/aeq_irq
678c2ecf20Sopenharmony_ciDate:           Apr 2020
688c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
698c2ecf20Sopenharmony_ciDescription:    Dump the number of QM async event queue interrupts.
708c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/abnormal_irq
738c2ecf20Sopenharmony_ciDate:           Apr 2020
748c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
758c2ecf20Sopenharmony_ciDescription:    Dump the number of interrupts for QM abnormal event.
768c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/create_qp_err
798c2ecf20Sopenharmony_ciDate:           Apr 2020
808c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
818c2ecf20Sopenharmony_ciDescription:    Dump the number of queue allocation errors.
828c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
838c2ecf20Sopenharmony_ci
848c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/mb_err
858c2ecf20Sopenharmony_ciDate:           Apr 2020
868c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
878c2ecf20Sopenharmony_ciDescription:    Dump the number of failed QM mailbox commands.
888c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/qm/status
918c2ecf20Sopenharmony_ciDate:           Apr 2020
928c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
938c2ecf20Sopenharmony_ciDescription:    Dump the status of the QM.
948c2ecf20Sopenharmony_ci		Four states: initiated, started, stopped and closed.
958c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_cnt
988c2ecf20Sopenharmony_ciDate:           Apr 2020
998c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
1008c2ecf20Sopenharmony_ciDescription:    Dump the total number of sent requests.
1018c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/recv_cnt
1048c2ecf20Sopenharmony_ciDate:           Apr 2020
1058c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
1068c2ecf20Sopenharmony_ciDescription:    Dump the total number of received requests.
1078c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_busy_cnt
1108c2ecf20Sopenharmony_ciDate:           Apr 2020
1118c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
1128c2ecf20Sopenharmony_ciDescription:    Dump the total number of requests sent
1138c2ecf20Sopenharmony_ci		with returning busy.
1148c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
1158c2ecf20Sopenharmony_ci
1168c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/send_fail_cnt
1178c2ecf20Sopenharmony_ciDate:           Apr 2020
1188c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
1198c2ecf20Sopenharmony_ciDescription:    Dump the total number of completed but error requests.
1208c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/invalid_req_cnt
1238c2ecf20Sopenharmony_ciDate:           Apr 2020
1248c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
1258c2ecf20Sopenharmony_ciDescription:    Dump the total number of invalid requests being received.
1268c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/overtime_thrhld
1298c2ecf20Sopenharmony_ciDate:           Apr 2020
1308c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
1318c2ecf20Sopenharmony_ciDescription:    Set the threshold time for counting the request which is
1328c2ecf20Sopenharmony_ci		processed longer than the threshold.
1338c2ecf20Sopenharmony_ci		0: disable(default), 1: 1 microsecond.
1348c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_hpre/<bdf>/hpre_dfx/over_thrhld_cnt
1378c2ecf20Sopenharmony_ciDate:           Apr 2020
1388c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
1398c2ecf20Sopenharmony_ciDescription:    Dump the total number of time out requests.
1408c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on HPRE.
141