18c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/comp_core[01]/regs
28c2ecf20Sopenharmony_ciDate:           Nov 2018
38c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
48c2ecf20Sopenharmony_ciDescription:    Dump of compression cores related debug registers.
58c2ecf20Sopenharmony_ci		Only available for PF.
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/decomp_core[0-5]/regs
88c2ecf20Sopenharmony_ciDate:           Nov 2018
98c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
108c2ecf20Sopenharmony_ciDescription:    Dump of decompression cores related debug registers.
118c2ecf20Sopenharmony_ci		Only available for PF.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/clear_enable
148c2ecf20Sopenharmony_ciDate:           Nov 2018
158c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
168c2ecf20Sopenharmony_ciDescription:    Compression/decompression core debug registers read clear
178c2ecf20Sopenharmony_ci		control. 1 means enable register read clear, otherwise 0.
188c2ecf20Sopenharmony_ci		Writing to this file has no functional effect, only enable or
198c2ecf20Sopenharmony_ci		disable counters clear after reading of these registers.
208c2ecf20Sopenharmony_ci		Only available for PF.
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/current_qm
238c2ecf20Sopenharmony_ciDate:           Nov 2018
248c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
258c2ecf20Sopenharmony_ciDescription:    One ZIP controller has one PF and multiple VFs, each function
268c2ecf20Sopenharmony_ci		has a QM. Select the QM which below qm refers to.
278c2ecf20Sopenharmony_ci		Only available for PF.
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/regs
308c2ecf20Sopenharmony_ciDate:           Nov 2018
318c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
328c2ecf20Sopenharmony_ciDescription:    Dump of QM related debug registers.
338c2ecf20Sopenharmony_ci		Available for PF and VF in host. VF in guest currently only
348c2ecf20Sopenharmony_ci		has one debug register.
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/current_q
378c2ecf20Sopenharmony_ciDate:           Nov 2018
388c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
398c2ecf20Sopenharmony_ciDescription:    One QM may contain multiple queues. Select specific queue to
408c2ecf20Sopenharmony_ci		show its debug registers in above regs.
418c2ecf20Sopenharmony_ci		Only available for PF.
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/clear_enable
448c2ecf20Sopenharmony_ciDate:           Nov 2018
458c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
468c2ecf20Sopenharmony_ciDescription:    QM debug registers(regs) read clear control. 1 means enable
478c2ecf20Sopenharmony_ci		register read clear, otherwise 0.
488c2ecf20Sopenharmony_ci		Writing to this file has no functional effect, only enable or
498c2ecf20Sopenharmony_ci		disable counters clear after reading of these registers.
508c2ecf20Sopenharmony_ci		Only available for PF.
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/err_irq
538c2ecf20Sopenharmony_ciDate:           Apr 2020
548c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
558c2ecf20Sopenharmony_ciDescription:    Dump the number of invalid interrupts for
568c2ecf20Sopenharmony_ci		QM task completion.
578c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on ZIP.
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/aeq_irq
608c2ecf20Sopenharmony_ciDate:           Apr 2020
618c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
628c2ecf20Sopenharmony_ciDescription:    Dump the number of QM async event queue interrupts.
638c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on ZIP.
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/abnormal_irq
668c2ecf20Sopenharmony_ciDate:           Apr 2020
678c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
688c2ecf20Sopenharmony_ciDescription:    Dump the number of interrupts for QM abnormal event.
698c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on ZIP.
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/create_qp_err
728c2ecf20Sopenharmony_ciDate:           Apr 2020
738c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
748c2ecf20Sopenharmony_ciDescription:    Dump the number of queue allocation errors.
758c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on ZIP.
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/mb_err
788c2ecf20Sopenharmony_ciDate:           Apr 2020
798c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
808c2ecf20Sopenharmony_ciDescription:    Dump the number of failed QM mailbox commands.
818c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on ZIP.
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/status
848c2ecf20Sopenharmony_ciDate:           Apr 2020
858c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
868c2ecf20Sopenharmony_ciDescription:    Dump the status of the QM.
878c2ecf20Sopenharmony_ci		Four states: initiated, started, stopped and closed.
888c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on ZIP.
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_cnt
918c2ecf20Sopenharmony_ciDate:           Apr 2020
928c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
938c2ecf20Sopenharmony_ciDescription:    Dump the total number of sent requests.
948c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on ZIP.
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/recv_cnt
978c2ecf20Sopenharmony_ciDate:           Apr 2020
988c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
998c2ecf20Sopenharmony_ciDescription:    Dump the total number of received requests.
1008c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on ZIP.
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_busy_cnt
1038c2ecf20Sopenharmony_ciDate:           Apr 2020
1048c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
1058c2ecf20Sopenharmony_ciDescription:    Dump the total number of requests received
1068c2ecf20Sopenharmony_ci		with returning busy.
1078c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on ZIP.
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ciWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/err_bd_cnt
1108c2ecf20Sopenharmony_ciDate:           Apr 2020
1118c2ecf20Sopenharmony_ciContact:        linux-crypto@vger.kernel.org
1128c2ecf20Sopenharmony_ciDescription:    Dump the total number of BD type error requests
1138c2ecf20Sopenharmony_ci		to be received.
1148c2ecf20Sopenharmony_ci		Available for both PF and VF, and take no other effect on ZIP.
115