sysfs-class-cxl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. Please note that attributes that are shared between devices are stored in
  2. the directory pointed to by the symlink device/.
  3. For example, the real path of the attribute /sys/class/cxl/afu0.0s/irqs_max is
  4. /sys/class/cxl/afu0.0s/device/irqs_max, i.e. /sys/class/cxl/afu0.0/irqs_max.
  5. Slave contexts (eg. /sys/class/cxl/afu0.0s):
  6. What: /sys/class/cxl/<afu>/afu_err_buf
  7. Date: September 2014
  8. Contact: [email protected]
  9. Description: read only
  10. AFU Error Buffer contents. The contents of this file are
  11. application specific and depends on the AFU being used.
  12. Applications interacting with the AFU can use this attribute
  13. to know about the current error condition and take appropriate
  14. action like logging the event etc.
  15. What: /sys/class/cxl/<afu>/irqs_max
  16. Date: September 2014
  17. Contact: [email protected]
  18. Description: read/write
  19. Decimal value of maximum number of interrupts that can be
  20. requested by userspace. The default on probe is the maximum
  21. that hardware can support (eg. 2037). Write values will limit
  22. userspace applications to that many userspace interrupts. Must
  23. be >= irqs_min.
  24. Users: https://github.com/ibm-capi/libcxl
  25. What: /sys/class/cxl/<afu>/irqs_min
  26. Date: September 2014
  27. Contact: [email protected]
  28. Description: read only
  29. Decimal value of the minimum number of interrupts that
  30. userspace must request on a CXL_START_WORK ioctl. Userspace may
  31. omit the num_interrupts field in the START_WORK IOCTL to get
  32. this minimum automatically.
  33. Users: https://github.com/ibm-capi/libcxl
  34. What: /sys/class/cxl/<afu>/mmio_size
  35. Date: September 2014
  36. Contact: [email protected]
  37. Description: read only
  38. Decimal value of the size of the MMIO space that may be mmaped
  39. by userspace.
  40. Users: https://github.com/ibm-capi/libcxl
  41. What: /sys/class/cxl/<afu>/modes_supported
  42. Date: September 2014
  43. Contact: [email protected]
  44. Description: read only
  45. List of the modes this AFU supports. One per line.
  46. Valid entries are: "dedicated_process" and "afu_directed"
  47. Users: https://github.com/ibm-capi/libcxl
  48. What: /sys/class/cxl/<afu>/mode
  49. Date: September 2014
  50. Contact: [email protected]
  51. Description: read/write
  52. The current mode the AFU is using. Will be one of the modes
  53. given in modes_supported. Writing will change the mode
  54. provided that no user contexts are attached.
  55. Users: https://github.com/ibm-capi/libcxl
  56. What: /sys/class/cxl/<afu>/prefault_mode
  57. Date: September 2014
  58. Contact: [email protected]
  59. Description: read/write
  60. Set the mode for prefaulting in segments into the segment table
  61. when performing the START_WORK ioctl. Only applicable when
  62. running under hashed page table mmu.
  63. Possible values:
  64. ======================= ======================================
  65. none No prefaulting (default)
  66. work_element_descriptor Treat the work element
  67. descriptor as an effective address and
  68. prefault what it points to.
  69. all all segments process calling
  70. START_WORK maps.
  71. ======================= ======================================
  72. Users: https://github.com/ibm-capi/libcxl
  73. What: /sys/class/cxl/<afu>/reset
  74. Date: September 2014
  75. Contact: [email protected]
  76. Description: write only
  77. Writing 1 here will reset the AFU provided there are not
  78. contexts active on the AFU.
  79. Users: https://github.com/ibm-capi/libcxl
  80. What: /sys/class/cxl/<afu>/api_version
  81. Date: September 2014
  82. Contact: [email protected]
  83. Description: read only
  84. Decimal value of the current version of the kernel/user API.
  85. Users: https://github.com/ibm-capi/libcxl
  86. What: /sys/class/cxl/<afu>/api_version_compatible
  87. Date: September 2014
  88. Contact: [email protected]
  89. Description: read only
  90. Decimal value of the lowest version of the userspace API
  91. this kernel supports.
  92. Users: https://github.com/ibm-capi/libcxl
  93. AFU configuration records (eg. /sys/class/cxl/afu0.0/cr0):
  94. An AFU may optionally export one or more PCIe like configuration records, known
  95. as AFU configuration records, which will show up here (if present).
  96. What: /sys/class/cxl/<afu>/cr<config num>/vendor
  97. Date: February 2015
  98. Contact: [email protected]
  99. Description: read only
  100. Hexadecimal value of the vendor ID found in this AFU
  101. configuration record.
  102. Users: https://github.com/ibm-capi/libcxl
  103. What: /sys/class/cxl/<afu>/cr<config num>/device
  104. Date: February 2015
  105. Contact: [email protected]
  106. Description: read only
  107. Hexadecimal value of the device ID found in this AFU
  108. configuration record.
  109. Users: https://github.com/ibm-capi/libcxl
  110. What: /sys/class/cxl/<afu>/cr<config num>/class
  111. Date: February 2015
  112. Contact: [email protected]
  113. Description: read only
  114. Hexadecimal value of the class code found in this AFU
  115. configuration record.
  116. Users: https://github.com/ibm-capi/libcxl
  117. What: /sys/class/cxl/<afu>/cr<config num>/config
  118. Date: February 2015
  119. Contact: [email protected]
  120. Description: read only
  121. This binary file provides raw access to the AFU configuration
  122. record. The format is expected to match the either the standard
  123. or extended configuration space defined by the PCIe
  124. specification.
  125. Users: https://github.com/ibm-capi/libcxl
  126. Master contexts (eg. /sys/class/cxl/afu0.0m)
  127. What: /sys/class/cxl/<afu>m/mmio_size
  128. Date: September 2014
  129. Contact: [email protected]
  130. Description: read only
  131. Decimal value of the size of the MMIO space that may be mmaped
  132. by userspace. This includes all slave contexts space also.
  133. Users: https://github.com/ibm-capi/libcxl
  134. What: /sys/class/cxl/<afu>m/pp_mmio_len
  135. Date: September 2014
  136. Contact: [email protected]
  137. Description: read only
  138. Decimal value of the Per Process MMIO space length.
  139. Users: https://github.com/ibm-capi/libcxl
  140. What: /sys/class/cxl/<afu>m/pp_mmio_off
  141. Date: September 2014
  142. Contact: [email protected]
  143. Description: read only
  144. (not in a guest)
  145. Decimal value of the Per Process MMIO space offset.
  146. Users: https://github.com/ibm-capi/libcxl
  147. Card info (eg. /sys/class/cxl/card0)
  148. What: /sys/class/cxl/<card>/caia_version
  149. Date: September 2014
  150. Contact: [email protected]
  151. Description: read only
  152. Identifies the CAIA Version the card implements.
  153. Users: https://github.com/ibm-capi/libcxl
  154. What: /sys/class/cxl/<card>/psl_revision
  155. Date: September 2014
  156. Contact: [email protected]
  157. Description: read only
  158. Identifies the revision level of the PSL.
  159. Users: https://github.com/ibm-capi/libcxl
  160. What: /sys/class/cxl/<card>/base_image
  161. Date: September 2014
  162. Contact: [email protected]
  163. Description: read only
  164. (not in a guest)
  165. Identifies the revision level of the base image for devices
  166. that support loadable PSLs. For FPGAs this field identifies
  167. the image contained in the on-adapter flash which is loaded
  168. during the initial program load.
  169. Users: https://github.com/ibm-capi/libcxl
  170. What: /sys/class/cxl/<card>/image_loaded
  171. Date: September 2014
  172. Contact: [email protected]
  173. Description: read only
  174. (not in a guest)
  175. Will return "user" or "factory" depending on the image loaded
  176. onto the card.
  177. Users: https://github.com/ibm-capi/libcxl
  178. What: /sys/class/cxl/<card>/load_image_on_perst
  179. Date: December 2014
  180. Contact: [email protected]
  181. Description: read/write
  182. (not in a guest)
  183. Valid entries are "none", "user", and "factory".
  184. "none" means PERST will not cause image to be loaded to the
  185. card. A power cycle is required to load the image.
  186. "none" could be useful for debugging because the trace arrays
  187. are preserved.
  188. "user" and "factory" means PERST will cause either the user or
  189. user or factory image to be loaded.
  190. Default is to reload on PERST whichever image the card has
  191. loaded.
  192. Users: https://github.com/ibm-capi/libcxl
  193. What: /sys/class/cxl/<card>/reset
  194. Date: October 2014
  195. Contact: [email protected]
  196. Description: write only
  197. Writing 1 will issue a PERST to card provided there are no
  198. contexts active on any one of the card AFUs. This may cause
  199. the card to reload the FPGA depending on load_image_on_perst.
  200. Writing -1 will do a force PERST irrespective of any active
  201. contexts on the card AFUs.
  202. Users: https://github.com/ibm-capi/libcxl
  203. What: /sys/class/cxl/<card>/perst_reloads_same_image
  204. Date: July 2015
  205. Contact: [email protected]
  206. Description: read/write
  207. (not in a guest)
  208. Trust that when an image is reloaded via PERST, it will not
  209. have changed.
  210. == =================================================
  211. 0 don't trust, the image may be different (default)
  212. 1 trust that the image will not change.
  213. == =================================================
  214. Users: https://github.com/ibm-capi/libcxl
  215. What: /sys/class/cxl/<card>/psl_timebase_synced
  216. Date: March 2016
  217. Contact: [email protected]
  218. Description: read only
  219. Returns 1 if the psl timebase register is synchronized
  220. with the core timebase register, 0 otherwise.
  221. Users: https://github.com/ibm-capi/libcxl
  222. What: /sys/class/cxl/<card>/tunneled_ops_supported
  223. Date: May 2018
  224. Contact: [email protected]
  225. Description: read only
  226. Returns 1 if tunneled operations are supported in capi mode,
  227. 0 otherwise.
  228. Users: https://github.com/ibm-capi/libcxl