18201fdf4SZhou WangWhat:           /sys/kernel/debug/hisi_zip/<bdf>/comp_core[01]/regs
28201fdf4SZhou WangDate:           Nov 2018
38201fdf4SZhou WangContact:        linux-crypto@vger.kernel.org
48201fdf4SZhou WangDescription:    Dump of compression cores related debug registers.
58201fdf4SZhou Wang		Only available for PF.
68201fdf4SZhou Wang
78201fdf4SZhou WangWhat:           /sys/kernel/debug/hisi_zip/<bdf>/decomp_core[0-5]/regs
88201fdf4SZhou WangDate:           Nov 2018
98201fdf4SZhou WangContact:        linux-crypto@vger.kernel.org
108201fdf4SZhou WangDescription:    Dump of decompression cores related debug registers.
118201fdf4SZhou Wang		Only available for PF.
128201fdf4SZhou Wang
138201fdf4SZhou WangWhat:           /sys/kernel/debug/hisi_zip/<bdf>/clear_enable
148201fdf4SZhou WangDate:           Nov 2018
158201fdf4SZhou WangContact:        linux-crypto@vger.kernel.org
168201fdf4SZhou WangDescription:    Compression/decompression core debug registers read clear
178201fdf4SZhou Wang		control. 1 means enable register read clear, otherwise 0.
188201fdf4SZhou Wang		Writing to this file has no functional effect, only enable or
198201fdf4SZhou Wang		disable counters clear after reading of these registers.
208201fdf4SZhou Wang		Only available for PF.
218201fdf4SZhou Wang
228201fdf4SZhou WangWhat:           /sys/kernel/debug/hisi_zip/<bdf>/current_qm
238201fdf4SZhou WangDate:           Nov 2018
248201fdf4SZhou WangContact:        linux-crypto@vger.kernel.org
258201fdf4SZhou WangDescription:    One ZIP controller has one PF and multiple VFs, each function
268201fdf4SZhou Wang		has a QM. Select the QM which below qm refers to.
278201fdf4SZhou Wang		Only available for PF.
288201fdf4SZhou Wang
29988453fbSShukun TanWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/regs
308201fdf4SZhou WangDate:           Nov 2018
318201fdf4SZhou WangContact:        linux-crypto@vger.kernel.org
328201fdf4SZhou WangDescription:    Dump of QM related debug registers.
338201fdf4SZhou Wang		Available for PF and VF in host. VF in guest currently only
348201fdf4SZhou Wang		has one debug register.
358201fdf4SZhou Wang
368201fdf4SZhou WangWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/current_q
378201fdf4SZhou WangDate:           Nov 2018
388201fdf4SZhou WangContact:        linux-crypto@vger.kernel.org
398201fdf4SZhou WangDescription:    One QM may contain multiple queues. Select specific queue to
40988453fbSShukun Tan		show its debug registers in above regs.
418201fdf4SZhou Wang		Only available for PF.
428201fdf4SZhou Wang
438201fdf4SZhou WangWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/clear_enable
448201fdf4SZhou WangDate:           Nov 2018
458201fdf4SZhou WangContact:        linux-crypto@vger.kernel.org
46988453fbSShukun TanDescription:    QM debug registers(regs) read clear control. 1 means enable
478201fdf4SZhou Wang		register read clear, otherwise 0.
488201fdf4SZhou Wang		Writing to this file has no functional effect, only enable or
498201fdf4SZhou Wang		disable counters clear after reading of these registers.
508201fdf4SZhou Wang		Only available for PF.
5185026525SLongfang Liu
5285026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/err_irq
5385026525SLongfang LiuDate:           Apr 2020
5485026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
5585026525SLongfang LiuDescription:    Dump the number of invalid interrupts for
5685026525SLongfang Liu		QM task completion.
5785026525SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
5885026525SLongfang Liu
5985026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/aeq_irq
6085026525SLongfang LiuDate:           Apr 2020
6185026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
6285026525SLongfang LiuDescription:    Dump the number of QM async event queue interrupts.
6385026525SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
6485026525SLongfang Liu
6585026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/abnormal_irq
6685026525SLongfang LiuDate:           Apr 2020
6785026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
6885026525SLongfang LiuDescription:    Dump the number of interrupts for QM abnormal event.
6985026525SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
7085026525SLongfang Liu
7185026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/create_qp_err
7285026525SLongfang LiuDate:           Apr 2020
7385026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
7485026525SLongfang LiuDescription:    Dump the number of queue allocation errors.
7585026525SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
7685026525SLongfang Liu
7785026525SLongfang LiuWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/mb_err
7885026525SLongfang LiuDate:           Apr 2020
7985026525SLongfang LiuContact:        linux-crypto@vger.kernel.org
8085026525SLongfang LiuDescription:    Dump the number of failed QM mailbox commands.
8185026525SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
820a3a3960SLongfang Liu
830a3a3960SLongfang LiuWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/status
840a3a3960SLongfang LiuDate:           Apr 2020
850a3a3960SLongfang LiuContact:        linux-crypto@vger.kernel.org
860a3a3960SLongfang LiuDescription:    Dump the status of the QM.
870a3a3960SLongfang Liu		Four states: initiated, started, stopped and closed.
880a3a3960SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
896621e649SLongfang Liu
906621e649SLongfang LiuWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_cnt
916621e649SLongfang LiuDate:           Apr 2020
926621e649SLongfang LiuContact:        linux-crypto@vger.kernel.org
936621e649SLongfang LiuDescription:    Dump the total number of sent requests.
946621e649SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
956621e649SLongfang Liu
966621e649SLongfang LiuWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/recv_cnt
976621e649SLongfang LiuDate:           Apr 2020
986621e649SLongfang LiuContact:        linux-crypto@vger.kernel.org
996621e649SLongfang LiuDescription:    Dump the total number of received requests.
1006621e649SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
1016621e649SLongfang Liu
1026621e649SLongfang LiuWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_busy_cnt
1036621e649SLongfang LiuDate:           Apr 2020
1046621e649SLongfang LiuContact:        linux-crypto@vger.kernel.org
1056621e649SLongfang LiuDescription:    Dump the total number of requests received
1066621e649SLongfang Liu		with returning busy.
1076621e649SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
1086621e649SLongfang Liu
1096621e649SLongfang LiuWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/err_bd_cnt
1106621e649SLongfang LiuDate:           Apr 2020
1116621e649SLongfang LiuContact:        linux-crypto@vger.kernel.org
1126621e649SLongfang LiuDescription:    Dump the total number of BD type error requests
1136621e649SLongfang Liu		to be received.
1146621e649SLongfang Liu		Available for both PF and VF, and take no other effect on ZIP.
115