debugfs-hisi-hpre 6.4 KB

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