^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/kernel/debug/hisi_zip/<bdf>/comp_core[01]/regs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: Nov 2018
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Description: Dump of compression cores related debug registers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Only available for PF.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) What: /sys/kernel/debug/hisi_zip/<bdf>/decomp_core[0-5]/regs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) Date: Nov 2018
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Description: Dump of decompression cores related debug registers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Only available for PF.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) What: /sys/kernel/debug/hisi_zip/<bdf>/clear_enable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Date: Nov 2018
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Description: Compression/decompression core debug registers read clear
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) control. 1 means enable register read clear, otherwise 0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Writing to this file has no functional effect, only enable or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) disable counters clear after reading of these registers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) Only available for PF.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) What: /sys/kernel/debug/hisi_zip/<bdf>/current_qm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Date: Nov 2018
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Description: One ZIP controller has one PF and multiple VFs, each function
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) has a QM. Select the QM which below qm refers to.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) Only available for PF.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) What: /sys/kernel/debug/hisi_zip/<bdf>/qm/regs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) Date: Nov 2018
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Description: Dump of QM related debug registers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) Available for PF and VF in host. VF in guest currently only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) has one debug register.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) What: /sys/kernel/debug/hisi_zip/<bdf>/qm/current_q
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) Date: Nov 2018
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) Description: One QM may contain multiple queues. Select specific queue to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) show its debug registers in above regs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) Only available for PF.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) What: /sys/kernel/debug/hisi_zip/<bdf>/qm/clear_enable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) Date: Nov 2018
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) Description: QM debug registers(regs) read clear control. 1 means enable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) register read clear, otherwise 0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) Writing to this file has no functional effect, only enable or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) disable counters clear after reading of these registers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) Only available for PF.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) What: /sys/kernel/debug/hisi_zip/<bdf>/qm/err_irq
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) Date: Apr 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) Description: Dump the number of invalid interrupts for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) QM task completion.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) Available for both PF and VF, and take no other effect on ZIP.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) What: /sys/kernel/debug/hisi_zip/<bdf>/qm/aeq_irq
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) Date: Apr 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) Description: Dump the number of QM async event queue interrupts.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) Available for both PF and VF, and take no other effect on ZIP.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) What: /sys/kernel/debug/hisi_zip/<bdf>/qm/abnormal_irq
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) Date: Apr 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) Description: Dump the number of interrupts for QM abnormal event.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) Available for both PF and VF, and take no other effect on ZIP.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) What: /sys/kernel/debug/hisi_zip/<bdf>/qm/create_qp_err
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) Date: Apr 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) Description: Dump the number of queue allocation errors.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) Available for both PF and VF, and take no other effect on ZIP.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) What: /sys/kernel/debug/hisi_zip/<bdf>/qm/mb_err
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) Date: Apr 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) Description: Dump the number of failed QM mailbox commands.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) Available for both PF and VF, and take no other effect on ZIP.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) What: /sys/kernel/debug/hisi_zip/<bdf>/qm/status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) Date: Apr 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) Description: Dump the status of the QM.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) Four states: initiated, started, stopped and closed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) Available for both PF and VF, and take no other effect on ZIP.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) What: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_cnt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) Date: Apr 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) Description: Dump the total number of sent requests.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) Available for both PF and VF, and take no other effect on ZIP.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) What: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/recv_cnt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) Date: Apr 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) Description: Dump the total number of received requests.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) Available for both PF and VF, and take no other effect on ZIP.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) What: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_busy_cnt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) Date: Apr 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) Description: Dump the total number of requests received
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) with returning busy.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) Available for both PF and VF, and take no other effect on ZIP.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) What: /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/err_bd_cnt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) Date: Apr 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) Contact: linux-crypto@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) Description: Dump the total number of BD type error requests
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) to be received.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) Available for both PF and VF, and take no other effect on ZIP.