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 29f6fb93ccSKai YeWhat: /sys/kernel/debug/hisi_zip/<bdf>/alg_qos 30f6fb93ccSKai YeDate: Jun 2021 31f6fb93ccSKai YeContact: linux-crypto@vger.kernel.org 32f6fb93ccSKai YeDescription: The <bdf> is related the function for PF and VF. 33f6fb93ccSKai Ye ZIP driver supports to configure each function's QoS, the driver 34f6fb93ccSKai Ye supports to write <bdf> value to alg_qos in the host. Such as 35f6fb93ccSKai Ye "echo <bdf> value > alg_qos". The qos value is 1~1000, means 36f6fb93ccSKai Ye 1/1000~1000/1000 of total QoS. The driver reading alg_qos to 37f6fb93ccSKai Ye get related QoS in the host and VM, Such as "cat alg_qos". 38f6fb93ccSKai Ye 39*b44c7129SZongyu WuWhat: /sys/kernel/debug/hisi_zip/<bdf>/dev_usage 40*b44c7129SZongyu WuDate: Mar 2026 41*b44c7129SZongyu WuContact: linux-crypto@vger.kernel.org 42*b44c7129SZongyu WuDescription: Query the real-time bandwidth usage of device. 43*b44c7129SZongyu Wu Returns the bandwidth usage of each channel on the device. 44*b44c7129SZongyu Wu The returned number is in percentage. 45*b44c7129SZongyu Wu 46988453fbSShukun TanWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/regs 478201fdf4SZhou WangDate: Nov 2018 488201fdf4SZhou WangContact: linux-crypto@vger.kernel.org 498201fdf4SZhou WangDescription: Dump of QM related debug registers. 508201fdf4SZhou Wang Available for PF and VF in host. VF in guest currently only 518201fdf4SZhou Wang has one debug register. 528201fdf4SZhou Wang 538201fdf4SZhou WangWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/current_q 548201fdf4SZhou WangDate: Nov 2018 558201fdf4SZhou WangContact: linux-crypto@vger.kernel.org 568201fdf4SZhou WangDescription: One QM may contain multiple queues. Select specific queue to 57988453fbSShukun Tan show its debug registers in above regs. 588201fdf4SZhou Wang Only available for PF. 598201fdf4SZhou Wang 608201fdf4SZhou WangWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/clear_enable 618201fdf4SZhou WangDate: Nov 2018 628201fdf4SZhou WangContact: linux-crypto@vger.kernel.org 63988453fbSShukun TanDescription: QM debug registers(regs) read clear control. 1 means enable 648201fdf4SZhou Wang register read clear, otherwise 0. 658201fdf4SZhou Wang Writing to this file has no functional effect, only enable or 668201fdf4SZhou Wang disable counters clear after reading of these registers. 678201fdf4SZhou Wang Only available for PF. 6885026525SLongfang Liu 6985026525SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/err_irq 7085026525SLongfang LiuDate: Apr 2020 7185026525SLongfang LiuContact: linux-crypto@vger.kernel.org 7285026525SLongfang LiuDescription: Dump the number of invalid interrupts for 7385026525SLongfang Liu QM task completion. 7485026525SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 7585026525SLongfang Liu 7685026525SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/aeq_irq 7785026525SLongfang LiuDate: Apr 2020 7885026525SLongfang LiuContact: linux-crypto@vger.kernel.org 7985026525SLongfang LiuDescription: Dump the number of QM async event queue interrupts. 8085026525SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 8185026525SLongfang Liu 8285026525SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/abnormal_irq 8385026525SLongfang LiuDate: Apr 2020 8485026525SLongfang LiuContact: linux-crypto@vger.kernel.org 8585026525SLongfang LiuDescription: Dump the number of interrupts for QM abnormal event. 8685026525SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 8785026525SLongfang Liu 8885026525SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/create_qp_err 8985026525SLongfang LiuDate: Apr 2020 9085026525SLongfang LiuContact: linux-crypto@vger.kernel.org 9185026525SLongfang LiuDescription: Dump the number of queue allocation errors. 9285026525SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 9385026525SLongfang Liu 9485026525SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/mb_err 9585026525SLongfang LiuDate: Apr 2020 9685026525SLongfang LiuContact: linux-crypto@vger.kernel.org 9785026525SLongfang LiuDescription: Dump the number of failed QM mailbox commands. 9885026525SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 990a3a3960SLongfang Liu 1000a3a3960SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/status 1010a3a3960SLongfang LiuDate: Apr 2020 1020a3a3960SLongfang LiuContact: linux-crypto@vger.kernel.org 1030a3a3960SLongfang LiuDescription: Dump the status of the QM. 104c66272a4SWeili Qian Two states: work, stop. 1050a3a3960SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 1066621e649SLongfang Liu 10730169c5bSKai YeWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/diff_regs 10830169c5bSKai YeDate: Mar 2022 10930169c5bSKai YeContact: linux-crypto@vger.kernel.org 11030169c5bSKai YeDescription: QM debug registers(regs) read hardware register value. This 11130169c5bSKai Ye node is used to show the change of the qm registers value. This 11230169c5bSKai Ye node can be help users to check the change of register values. 11330169c5bSKai Ye 1148413fe3eSWeili QianWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/qm_state 1158413fe3eSWeili QianDate: Jan 2024 1168413fe3eSWeili QianContact: linux-crypto@vger.kernel.org 1178413fe3eSWeili QianDescription: Dump the state of the device. 1188413fe3eSWeili Qian 0: busy, 1: idle. 1198413fe3eSWeili Qian Only available for PF, and take no other effect on ZIP. 1208413fe3eSWeili Qian 121ce133a22SWeili QianWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/dev_timeout 122ce133a22SWeili QianDate: Feb 2024 123ce133a22SWeili QianContact: linux-crypto@vger.kernel.org 124ce133a22SWeili QianDescription: Set the wait time when stop queue fails. Available for both PF 125ce133a22SWeili Qian and VF, and take no other effect on ZIP. 126ce133a22SWeili Qian 0: not wait(default), others value: wait dev_timeout * 20 microsecond. 127ce133a22SWeili Qian 128ce133a22SWeili QianWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/dev_state 129ce133a22SWeili QianDate: Feb 2024 130ce133a22SWeili QianContact: linux-crypto@vger.kernel.org 131ce133a22SWeili QianDescription: Dump the stop queue status of the QM. The default value is 0, 132ce133a22SWeili Qian if dev_timeout is set, when stop queue fails, the dev_state 133ce133a22SWeili Qian will return non-zero value. Available for both PF and VF, 134ce133a22SWeili Qian and take no other effect on ZIP. 135ce133a22SWeili Qian 13630169c5bSKai YeWhat: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/diff_regs 13730169c5bSKai YeDate: Mar 2022 13830169c5bSKai YeContact: linux-crypto@vger.kernel.org 13930169c5bSKai YeDescription: ZIP debug registers(regs) read hardware register value. This 14030169c5bSKai Ye node is used to show the change of the registers value. this 14130169c5bSKai Ye node can be help users to check the change of register values. 14230169c5bSKai Ye 1436621e649SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_cnt 1446621e649SLongfang LiuDate: Apr 2020 1456621e649SLongfang LiuContact: linux-crypto@vger.kernel.org 1466621e649SLongfang LiuDescription: Dump the total number of sent requests. 1476621e649SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 1486621e649SLongfang Liu 1496621e649SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/recv_cnt 1506621e649SLongfang LiuDate: Apr 2020 1516621e649SLongfang LiuContact: linux-crypto@vger.kernel.org 1526621e649SLongfang LiuDescription: Dump the total number of received requests. 1536621e649SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 1546621e649SLongfang Liu 1556621e649SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_busy_cnt 1566621e649SLongfang LiuDate: Apr 2020 1576621e649SLongfang LiuContact: linux-crypto@vger.kernel.org 1586621e649SLongfang LiuDescription: Dump the total number of requests received 1596621e649SLongfang Liu with returning busy. 1606621e649SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 1616621e649SLongfang Liu 1626621e649SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/err_bd_cnt 1636621e649SLongfang LiuDate: Apr 2020 1646621e649SLongfang LiuContact: linux-crypto@vger.kernel.org 1656621e649SLongfang LiuDescription: Dump the total number of BD type error requests 1666621e649SLongfang Liu to be received. 1676621e649SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 1682a69297eSQi Tao 1692a69297eSQi TaoWhat: /sys/kernel/debug/hisi_zip/<bdf>/cap_regs 1702a69297eSQi TaoDate: Oct 2024 1712a69297eSQi TaoContact: linux-crypto@vger.kernel.org 1722a69297eSQi TaoDescription: Dump the values of the qm and zip capability bit registers and 1732a69297eSQi Tao support the query of device specifications to facilitate fault locating. 1742a69297eSQi Tao Available for both PF and VF, and take no other effect on ZIP. 175