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 298201fdf4SZhou WangWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/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 408201fdf4SZhou Wang show its debug registers in above qm_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 468201fdf4SZhou WangDescription: QM debug registers(qm_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. 82