sysfs-platform-dfl-fme 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. What: /sys/bus/platform/devices/dfl-fme.0/ports_num
  2. Date: June 2018
  3. KernelVersion: 4.19
  4. Contact: Wu Hao <[email protected]>
  5. Description: Read-only. One DFL FPGA device may have more than 1
  6. port/Accelerator Function Unit (AFU). It returns the
  7. number of ports on the FPGA device when read it.
  8. What: /sys/bus/platform/devices/dfl-fme.0/bitstream_id
  9. Date: June 2018
  10. KernelVersion: 4.19
  11. Contact: Wu Hao <[email protected]>
  12. Description: Read-only. It returns Bitstream (static FPGA region)
  13. identifier number, which includes the detailed version
  14. and other information of this static FPGA region.
  15. What: /sys/bus/platform/devices/dfl-fme.0/bitstream_metadata
  16. Date: June 2018
  17. KernelVersion: 4.19
  18. Contact: Wu Hao <[email protected]>
  19. Description: Read-only. It returns Bitstream (static FPGA region) meta
  20. data, which includes the synthesis date, seed and other
  21. information of this static FPGA region.
  22. What: /sys/bus/platform/devices/dfl-fme.0/cache_size
  23. Date: August 2019
  24. KernelVersion: 5.4
  25. Contact: Wu Hao <[email protected]>
  26. Description: Read-only. It returns cache size of this FPGA device.
  27. What: /sys/bus/platform/devices/dfl-fme.0/fabric_version
  28. Date: August 2019
  29. KernelVersion: 5.4
  30. Contact: Wu Hao <[email protected]>
  31. Description: Read-only. It returns fabric version of this FPGA device.
  32. Userspace applications need this information to select
  33. best data channels per different fabric design.
  34. What: /sys/bus/platform/devices/dfl-fme.0/socket_id
  35. Date: August 2019
  36. KernelVersion: 5.4
  37. Contact: Wu Hao <[email protected]>
  38. Description: Read-only. It returns socket_id to indicate which socket
  39. this FPGA belongs to, only valid for integrated solution.
  40. User only needs this information, in case standard numa node
  41. can't provide correct information.
  42. What: /sys/bus/platform/devices/dfl-fme.0/errors/pcie0_errors
  43. Date: August 2019
  44. KernelVersion: 5.4
  45. Contact: Wu Hao <[email protected]>
  46. Description: Read-Write. Read this file for errors detected on pcie0 link.
  47. Write this file to clear errors logged in pcie0_errors. Write
  48. fails with -EINVAL if input parsing fails or input error code
  49. doesn't match.
  50. What: /sys/bus/platform/devices/dfl-fme.0/errors/pcie1_errors
  51. Date: August 2019
  52. KernelVersion: 5.4
  53. Contact: Wu Hao <[email protected]>
  54. Description: Read-Write. Read this file for errors detected on pcie1 link.
  55. Write this file to clear errors logged in pcie1_errors. Write
  56. fails with -EINVAL if input parsing fails or input error code
  57. doesn't match.
  58. What: /sys/bus/platform/devices/dfl-fme.0/errors/nonfatal_errors
  59. Date: August 2019
  60. KernelVersion: 5.4
  61. Contact: Wu Hao <[email protected]>
  62. Description: Read-only. It returns non-fatal errors detected.
  63. What: /sys/bus/platform/devices/dfl-fme.0/errors/catfatal_errors
  64. Date: August 2019
  65. KernelVersion: 5.4
  66. Contact: Wu Hao <[email protected]>
  67. Description: Read-only. It returns catastrophic and fatal errors detected.
  68. What: /sys/bus/platform/devices/dfl-fme.0/errors/inject_errors
  69. Date: August 2019
  70. KernelVersion: 5.4
  71. Contact: Wu Hao <[email protected]>
  72. Description: Read-Write. Read this file to check errors injected. Write this
  73. file to inject errors for testing purpose. Write fails with
  74. -EINVAL if input parsing fails or input inject error code isn't
  75. supported.
  76. What: /sys/bus/platform/devices/dfl-fme.0/errors/fme_errors
  77. Date: August 2019
  78. KernelVersion: 5.4
  79. Contact: Wu Hao <[email protected]>
  80. Description: Read-Write. Read this file to get errors detected on FME.
  81. Write this file to clear errors logged in fme_errors. Write
  82. fials with -EINVAL if input parsing fails or input error code
  83. doesn't match.
  84. What: /sys/bus/platform/devices/dfl-fme.0/errors/first_error
  85. Date: August 2019
  86. KernelVersion: 5.4
  87. Contact: Wu Hao <[email protected]>
  88. Description: Read-only. Read this file to get the first error detected by
  89. hardware.
  90. What: /sys/bus/platform/devices/dfl-fme.0/errors/next_error
  91. Date: August 2019
  92. KernelVersion: 5.4
  93. Contact: Wu Hao <[email protected]>
  94. Description: Read-only. Read this file to get the second error detected by
  95. hardware.
  96. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/name
  97. Date: October 2019
  98. KernelVersion: 5.5
  99. Contact: Wu Hao <[email protected]>
  100. Description: Read-Only. Read this file to get the name of hwmon device, it
  101. supports values:
  102. ================= =========================
  103. 'dfl_fme_thermal' thermal hwmon device name
  104. 'dfl_fme_power' power hwmon device name
  105. ================= =========================
  106. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_input
  107. Date: October 2019
  108. KernelVersion: 5.5
  109. Contact: Wu Hao <[email protected]>
  110. Description: Read-Only. It returns FPGA device temperature in millidegrees
  111. Celsius.
  112. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max
  113. Date: October 2019
  114. KernelVersion: 5.5
  115. Contact: Wu Hao <[email protected]>
  116. Description: Read-Only. It returns hardware threshold1 temperature in
  117. millidegrees Celsius. If temperature rises at or above this
  118. threshold, hardware starts 50% or 90% throttling (see
  119. 'temp1_max_policy').
  120. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit
  121. Date: October 2019
  122. KernelVersion: 5.5
  123. Contact: Wu Hao <[email protected]>
  124. Description: Read-Only. It returns hardware threshold2 temperature in
  125. millidegrees Celsius. If temperature rises at or above this
  126. threshold, hardware starts 100% throttling.
  127. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_emergency
  128. Date: October 2019
  129. KernelVersion: 5.5
  130. Contact: Wu Hao <[email protected]>
  131. Description: Read-Only. It returns hardware trip threshold temperature in
  132. millidegrees Celsius. If temperature rises at or above this
  133. threshold, a fatal event will be triggered to board management
  134. controller (BMC) to shutdown FPGA.
  135. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max_alarm
  136. Date: October 2019
  137. KernelVersion: 5.5
  138. Contact: Wu Hao <[email protected]>
  139. Description: Read-only. It returns 1 if temperature is currently at or above
  140. hardware threshold1 (see 'temp1_max'), otherwise 0.
  141. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit_alarm
  142. Date: October 2019
  143. KernelVersion: 5.5
  144. Contact: Wu Hao <[email protected]>
  145. Description: Read-only. It returns 1 if temperature is currently at or above
  146. hardware threshold2 (see 'temp1_crit'), otherwise 0.
  147. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max_policy
  148. Date: October 2019
  149. KernelVersion: 5.5
  150. Contact: Wu Hao <[email protected]>
  151. Description: Read-Only. Read this file to get the policy of hardware threshold1
  152. (see 'temp1_max'). It only supports two values (policies):
  153. == ==========================
  154. 0 AP2 state (90% throttling)
  155. 1 AP1 state (50% throttling)
  156. == ==========================
  157. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_input
  158. Date: October 2019
  159. KernelVersion: 5.5
  160. Contact: Wu Hao <[email protected]>
  161. Description: Read-Only. It returns current FPGA power consumption in uW.
  162. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_max
  163. Date: October 2019
  164. KernelVersion: 5.5
  165. Contact: Wu Hao <[email protected]>
  166. Description: Read-Write. Read this file to get current hardware power
  167. threshold1 in uW. If power consumption rises at or above
  168. this threshold, hardware starts 50% throttling.
  169. Write this file to set current hardware power threshold1 in uW.
  170. As hardware only accepts values in Watts, so input value will
  171. be round down per Watts (< 1 watts part will be discarded) and
  172. clamped within the range from 0 to 127 Watts. Write fails with
  173. -EINVAL if input parsing fails.
  174. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_crit
  175. Date: October 2019
  176. KernelVersion: 5.5
  177. Contact: Wu Hao <[email protected]>
  178. Description: Read-Write. Read this file to get current hardware power
  179. threshold2 in uW. If power consumption rises at or above
  180. this threshold, hardware starts 90% throttling.
  181. Write this file to set current hardware power threshold2 in uW.
  182. As hardware only accepts values in Watts, so input value will
  183. be round down per Watts (< 1 watts part will be discarded) and
  184. clamped within the range from 0 to 127 Watts. Write fails with
  185. -EINVAL if input parsing fails.
  186. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_max_alarm
  187. Date: October 2019
  188. KernelVersion: 5.5
  189. Contact: Wu Hao <[email protected]>
  190. Description: Read-only. It returns 1 if power consumption is currently at or
  191. above hardware threshold1 (see 'power1_max'), otherwise 0.
  192. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_crit_alarm
  193. Date: October 2019
  194. KernelVersion: 5.5
  195. Contact: Wu Hao <[email protected]>
  196. Description: Read-only. It returns 1 if power consumption is currently at or
  197. above hardware threshold2 (see 'power1_crit'), otherwise 0.
  198. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_xeon_limit
  199. Date: October 2019
  200. KernelVersion: 5.5
  201. Contact: Wu Hao <[email protected]>
  202. Description: Read-Only. It returns power limit for XEON in uW.
  203. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_fpga_limit
  204. Date: October 2019
  205. KernelVersion: 5.5
  206. Contact: Wu Hao <[email protected]>
  207. Description: Read-Only. It returns power limit for FPGA in uW.
  208. What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/power1_ltr
  209. Date: October 2019
  210. KernelVersion: 5.5
  211. Contact: Wu Hao <[email protected]>
  212. Description: Read-only. Read this file to get current Latency Tolerance
  213. Reporting (ltr) value. It returns 1 if all Accelerated
  214. Function Units (AFUs) can tolerate latency >= 40us for memory
  215. access or 0 if any AFU is latency sensitive (< 40us).