debugfs-hisi-sec 5.3 KB

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