161 lines · plain
1What: /sys/kernel/debug/hisi_zip/<bdf>/comp_core[01]/regs2Date: Nov 20183Contact: linux-crypto@vger.kernel.org4Description: Dump of compression cores related debug registers.5 Only available for PF.6 7What: /sys/kernel/debug/hisi_zip/<bdf>/decomp_core[0-5]/regs8Date: Nov 20189Contact: linux-crypto@vger.kernel.org10Description: Dump of decompression cores related debug registers.11 Only available for PF.12 13What: /sys/kernel/debug/hisi_zip/<bdf>/clear_enable14Date: Nov 201815Contact: linux-crypto@vger.kernel.org16Description: Compression/decompression core debug registers read clear17 control. 1 means enable register read clear, otherwise 0.18 Writing to this file has no functional effect, only enable or19 disable counters clear after reading of these registers.20 Only available for PF.21 22What: /sys/kernel/debug/hisi_zip/<bdf>/current_qm23Date: Nov 201824Contact: linux-crypto@vger.kernel.org25Description: One ZIP controller has one PF and multiple VFs, each function26 has a QM. Select the QM which below qm refers to.27 Only available for PF.28 29What: /sys/kernel/debug/hisi_zip/<bdf>/alg_qos30Date: Jun 202131Contact: linux-crypto@vger.kernel.org32Description: The <bdf> is related the function for PF and VF.33 ZIP driver supports to configure each function's QoS, the driver34 supports to write <bdf> value to alg_qos in the host. Such as35 "echo <bdf> value > alg_qos". The qos value is 1~1000, means36 1/1000~1000/1000 of total QoS. The driver reading alg_qos to37 get related QoS in the host and VM, Such as "cat alg_qos".38 39What: /sys/kernel/debug/hisi_zip/<bdf>/qm/regs40Date: Nov 201841Contact: linux-crypto@vger.kernel.org42Description: Dump of QM related debug registers.43 Available for PF and VF in host. VF in guest currently only44 has one debug register.45 46What: /sys/kernel/debug/hisi_zip/<bdf>/qm/current_q47Date: Nov 201848Contact: linux-crypto@vger.kernel.org49Description: One QM may contain multiple queues. Select specific queue to50 show its debug registers in above regs.51 Only available for PF.52 53What: /sys/kernel/debug/hisi_zip/<bdf>/qm/clear_enable54Date: Nov 201855Contact: linux-crypto@vger.kernel.org56Description: QM debug registers(regs) read clear control. 1 means enable57 register read clear, otherwise 0.58 Writing to this file has no functional effect, only enable or59 disable counters clear after reading of these registers.60 Only available for PF.61 62What: /sys/kernel/debug/hisi_zip/<bdf>/qm/err_irq63Date: Apr 202064Contact: linux-crypto@vger.kernel.org65Description: Dump the number of invalid interrupts for66 QM task completion.67 Available for both PF and VF, and take no other effect on ZIP.68 69What: /sys/kernel/debug/hisi_zip/<bdf>/qm/aeq_irq70Date: Apr 202071Contact: linux-crypto@vger.kernel.org72Description: Dump the number of QM async event queue interrupts.73 Available for both PF and VF, and take no other effect on ZIP.74 75What: /sys/kernel/debug/hisi_zip/<bdf>/qm/abnormal_irq76Date: Apr 202077Contact: linux-crypto@vger.kernel.org78Description: Dump the number of interrupts for QM abnormal event.79 Available for both PF and VF, and take no other effect on ZIP.80 81What: /sys/kernel/debug/hisi_zip/<bdf>/qm/create_qp_err82Date: Apr 202083Contact: linux-crypto@vger.kernel.org84Description: Dump the number of queue allocation errors.85 Available for both PF and VF, and take no other effect on ZIP.86 87What: /sys/kernel/debug/hisi_zip/<bdf>/qm/mb_err88Date: Apr 202089Contact: linux-crypto@vger.kernel.org90Description: Dump the number of failed QM mailbox commands.91 Available for both PF and VF, and take no other effect on ZIP.92 93What: /sys/kernel/debug/hisi_zip/<bdf>/qm/status94Date: Apr 202095Contact: linux-crypto@vger.kernel.org96Description: Dump the status of the QM.97 Two states: work, stop.98 Available for both PF and VF, and take no other effect on ZIP.99 100What: /sys/kernel/debug/hisi_zip/<bdf>/qm/diff_regs101Date: Mar 2022102Contact: linux-crypto@vger.kernel.org103Description: QM debug registers(regs) read hardware register value. This104 node is used to show the change of the qm registers value. This105 node can be help users to check the change of register values.106 107What: /sys/kernel/debug/hisi_zip/<bdf>/qm/qm_state108Date: Jan 2024109Contact: linux-crypto@vger.kernel.org110Description: Dump the state of the device.111 0: busy, 1: idle.112 Only available for PF, and take no other effect on ZIP.113 114What: /sys/kernel/debug/hisi_zip/<bdf>/qm/dev_timeout115Date: Feb 2024116Contact: linux-crypto@vger.kernel.org117Description: Set the wait time when stop queue fails. Available for both PF118 and VF, and take no other effect on ZIP.119 0: not wait(default), others value: wait dev_timeout * 20 microsecond.120 121What: /sys/kernel/debug/hisi_zip/<bdf>/qm/dev_state122Date: Feb 2024123Contact: linux-crypto@vger.kernel.org124Description: Dump the stop queue status of the QM. The default value is 0,125 if dev_timeout is set, when stop queue fails, the dev_state126 will return non-zero value. Available for both PF and VF,127 and take no other effect on ZIP.128 129What: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/diff_regs130Date: Mar 2022131Contact: linux-crypto@vger.kernel.org132Description: ZIP debug registers(regs) read hardware register value. This133 node is used to show the change of the registers value. this134 node can be help users to check the change of register values.135 136What: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_cnt137Date: Apr 2020138Contact: linux-crypto@vger.kernel.org139Description: Dump the total number of sent requests.140 Available for both PF and VF, and take no other effect on ZIP.141 142What: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/recv_cnt143Date: Apr 2020144Contact: linux-crypto@vger.kernel.org145Description: Dump the total number of received requests.146 Available for both PF and VF, and take no other effect on ZIP.147 148What: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_busy_cnt149Date: Apr 2020150Contact: linux-crypto@vger.kernel.org151Description: Dump the total number of requests received152 with returning busy.153 Available for both PF and VF, and take no other effect on ZIP.154 155What: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/err_bd_cnt156Date: Apr 2020157Contact: linux-crypto@vger.kernel.org158Description: Dump the total number of BD type error requests159 to be received.160 Available for both PF and VF, and take no other effect on ZIP.161