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 39988453fbSShukun TanWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/regs 408201fdf4SZhou WangDate: Nov 2018 418201fdf4SZhou WangContact: linux-crypto@vger.kernel.org 428201fdf4SZhou WangDescription: Dump of QM related debug registers. 438201fdf4SZhou Wang Available for PF and VF in host. VF in guest currently only 448201fdf4SZhou Wang has one debug register. 458201fdf4SZhou Wang 468201fdf4SZhou WangWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/current_q 478201fdf4SZhou WangDate: Nov 2018 488201fdf4SZhou WangContact: linux-crypto@vger.kernel.org 498201fdf4SZhou WangDescription: One QM may contain multiple queues. Select specific queue to 50988453fbSShukun Tan show its debug registers in above regs. 518201fdf4SZhou Wang Only available for PF. 528201fdf4SZhou Wang 538201fdf4SZhou WangWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/clear_enable 548201fdf4SZhou WangDate: Nov 2018 558201fdf4SZhou WangContact: linux-crypto@vger.kernel.org 56988453fbSShukun TanDescription: QM debug registers(regs) read clear control. 1 means enable 578201fdf4SZhou Wang register read clear, otherwise 0. 588201fdf4SZhou Wang Writing to this file has no functional effect, only enable or 598201fdf4SZhou Wang disable counters clear after reading of these registers. 608201fdf4SZhou Wang Only available for PF. 6185026525SLongfang Liu 6285026525SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/err_irq 6385026525SLongfang LiuDate: Apr 2020 6485026525SLongfang LiuContact: linux-crypto@vger.kernel.org 6585026525SLongfang LiuDescription: Dump the number of invalid interrupts for 6685026525SLongfang Liu QM task completion. 6785026525SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 6885026525SLongfang Liu 6985026525SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/aeq_irq 7085026525SLongfang LiuDate: Apr 2020 7185026525SLongfang LiuContact: linux-crypto@vger.kernel.org 7285026525SLongfang LiuDescription: Dump the number of QM async event queue interrupts. 7385026525SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 7485026525SLongfang Liu 7585026525SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/abnormal_irq 7685026525SLongfang LiuDate: Apr 2020 7785026525SLongfang LiuContact: linux-crypto@vger.kernel.org 7885026525SLongfang LiuDescription: Dump the number of interrupts for QM abnormal event. 7985026525SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 8085026525SLongfang Liu 8185026525SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/create_qp_err 8285026525SLongfang LiuDate: Apr 2020 8385026525SLongfang LiuContact: linux-crypto@vger.kernel.org 8485026525SLongfang LiuDescription: Dump the number of queue allocation errors. 8585026525SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 8685026525SLongfang Liu 8785026525SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/mb_err 8885026525SLongfang LiuDate: Apr 2020 8985026525SLongfang LiuContact: linux-crypto@vger.kernel.org 9085026525SLongfang LiuDescription: Dump the number of failed QM mailbox commands. 9185026525SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 920a3a3960SLongfang Liu 930a3a3960SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/status 940a3a3960SLongfang LiuDate: Apr 2020 950a3a3960SLongfang LiuContact: linux-crypto@vger.kernel.org 960a3a3960SLongfang LiuDescription: Dump the status of the QM. 97c66272a4SWeili Qian Two states: work, stop. 980a3a3960SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 996621e649SLongfang Liu 10030169c5bSKai YeWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/diff_regs 10130169c5bSKai YeDate: Mar 2022 10230169c5bSKai YeContact: linux-crypto@vger.kernel.org 10330169c5bSKai YeDescription: QM debug registers(regs) read hardware register value. This 10430169c5bSKai Ye node is used to show the change of the qm registers value. This 10530169c5bSKai Ye node can be help users to check the change of register values. 10630169c5bSKai Ye 1078413fe3eSWeili QianWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/qm_state 1088413fe3eSWeili QianDate: Jan 2024 1098413fe3eSWeili QianContact: linux-crypto@vger.kernel.org 1108413fe3eSWeili QianDescription: Dump the state of the device. 1118413fe3eSWeili Qian 0: busy, 1: idle. 1128413fe3eSWeili Qian Only available for PF, and take no other effect on ZIP. 1138413fe3eSWeili Qian 114*ce133a22SWeili QianWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/dev_timeout 115*ce133a22SWeili QianDate: Feb 2024 116*ce133a22SWeili QianContact: linux-crypto@vger.kernel.org 117*ce133a22SWeili QianDescription: Set the wait time when stop queue fails. Available for both PF 118*ce133a22SWeili Qian and VF, and take no other effect on ZIP. 119*ce133a22SWeili Qian 0: not wait(default), others value: wait dev_timeout * 20 microsecond. 120*ce133a22SWeili Qian 121*ce133a22SWeili QianWhat: /sys/kernel/debug/hisi_zip/<bdf>/qm/dev_state 122*ce133a22SWeili QianDate: Feb 2024 123*ce133a22SWeili QianContact: linux-crypto@vger.kernel.org 124*ce133a22SWeili QianDescription: Dump the stop queue status of the QM. The default value is 0, 125*ce133a22SWeili Qian if dev_timeout is set, when stop queue fails, the dev_state 126*ce133a22SWeili Qian will return non-zero value. Available for both PF and VF, 127*ce133a22SWeili Qian and take no other effect on ZIP. 128*ce133a22SWeili Qian 12930169c5bSKai YeWhat: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/diff_regs 13030169c5bSKai YeDate: Mar 2022 13130169c5bSKai YeContact: linux-crypto@vger.kernel.org 13230169c5bSKai YeDescription: ZIP debug registers(regs) read hardware register value. This 13330169c5bSKai Ye node is used to show the change of the registers value. this 13430169c5bSKai Ye node can be help users to check the change of register values. 13530169c5bSKai Ye 1366621e649SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_cnt 1376621e649SLongfang LiuDate: Apr 2020 1386621e649SLongfang LiuContact: linux-crypto@vger.kernel.org 1396621e649SLongfang LiuDescription: Dump the total number of sent requests. 1406621e649SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 1416621e649SLongfang Liu 1426621e649SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/recv_cnt 1436621e649SLongfang LiuDate: Apr 2020 1446621e649SLongfang LiuContact: linux-crypto@vger.kernel.org 1456621e649SLongfang LiuDescription: Dump the total number of received requests. 1466621e649SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 1476621e649SLongfang Liu 1486621e649SLongfang LiuWhat: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_busy_cnt 1496621e649SLongfang LiuDate: Apr 2020 1506621e649SLongfang LiuContact: linux-crypto@vger.kernel.org 1516621e649SLongfang LiuDescription: Dump the total number of requests received 1526621e649SLongfang Liu with returning busy. 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/err_bd_cnt 1566621e649SLongfang LiuDate: Apr 2020 1576621e649SLongfang LiuContact: linux-crypto@vger.kernel.org 1586621e649SLongfang LiuDescription: Dump the total number of BD type error requests 1596621e649SLongfang Liu to be received. 1606621e649SLongfang Liu Available for both PF and VF, and take no other effect on ZIP. 161