debugfs-hisi-zip 5.3 KB

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