sysfs-class-cxl 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. Slave contexts (eg. /sys/class/cxl/afu0.0s):
  2. What: /sys/class/cxl/<afu>/irqs_max
  3. Date: September 2014
  4. Contact: linuxppc-dev@lists.ozlabs.org
  5. Description: read/write
  6. Decimal value of maximum number of interrupts that can be
  7. requested by userspace. The default on probe is the maximum
  8. that hardware can support (eg. 2037). Write values will limit
  9. userspace applications to that many userspace interrupts. Must
  10. be >= irqs_min.
  11. What: /sys/class/cxl/<afu>/irqs_min
  12. Date: September 2014
  13. Contact: linuxppc-dev@lists.ozlabs.org
  14. Description: read only
  15. Decimal value of the minimum number of interrupts that
  16. userspace must request on a CXL_START_WORK ioctl. Userspace may
  17. omit the num_interrupts field in the START_WORK IOCTL to get
  18. this minimum automatically.
  19. What: /sys/class/cxl/<afu>/mmio_size
  20. Date: September 2014
  21. Contact: linuxppc-dev@lists.ozlabs.org
  22. Description: read only
  23. Decimal value of the size of the MMIO space that may be mmaped
  24. by userspace.
  25. What: /sys/class/cxl/<afu>/modes_supported
  26. Date: September 2014
  27. Contact: linuxppc-dev@lists.ozlabs.org
  28. Description: read only
  29. List of the modes this AFU supports. One per line.
  30. Valid entries are: "dedicated_process" and "afu_directed"
  31. What: /sys/class/cxl/<afu>/mode
  32. Date: September 2014
  33. Contact: linuxppc-dev@lists.ozlabs.org
  34. Description: read/write
  35. The current mode the AFU is using. Will be one of the modes
  36. given in modes_supported. Writing will change the mode
  37. provided that no user contexts are attached.
  38. What: /sys/class/cxl/<afu>/prefault_mode
  39. Date: September 2014
  40. Contact: linuxppc-dev@lists.ozlabs.org
  41. Description: read/write
  42. Set the mode for prefaulting in segments into the segment table
  43. when performing the START_WORK ioctl. Possible values:
  44. none: No prefaulting (default)
  45. work_element_descriptor: Treat the work element
  46. descriptor as an effective address and
  47. prefault what it points to.
  48. all: all segments process calling START_WORK maps.
  49. What: /sys/class/cxl/<afu>/reset
  50. Date: September 2014
  51. Contact: linuxppc-dev@lists.ozlabs.org
  52. Description: write only
  53. Writing 1 here will reset the AFU provided there are not
  54. contexts active on the AFU.
  55. What: /sys/class/cxl/<afu>/api_version
  56. Date: September 2014
  57. Contact: linuxppc-dev@lists.ozlabs.org
  58. Description: read only
  59. Decimal value of the current version of the kernel/user API.
  60. What: /sys/class/cxl/<afu>/api_version_com
  61. Date: September 2014
  62. Contact: linuxppc-dev@lists.ozlabs.org
  63. Description: read only
  64. Decimal value of the the lowest version of the userspace API
  65. this this kernel supports.
  66. Master contexts (eg. /sys/class/cxl/afu0.0m)
  67. What: /sys/class/cxl/<afu>m/mmio_size
  68. Date: September 2014
  69. Contact: linuxppc-dev@lists.ozlabs.org
  70. Description: read only
  71. Decimal value of the size of the MMIO space that may be mmaped
  72. by userspace. This includes all slave contexts space also.
  73. What: /sys/class/cxl/<afu>m/pp_mmio_len
  74. Date: September 2014
  75. Contact: linuxppc-dev@lists.ozlabs.org
  76. Description: read only
  77. Decimal value of the Per Process MMIO space length.
  78. What: /sys/class/cxl/<afu>m/pp_mmio_off
  79. Date: September 2014
  80. Contact: linuxppc-dev@lists.ozlabs.org
  81. Description: read only
  82. Decimal value of the Per Process MMIO space offset.
  83. Card info (eg. /sys/class/cxl/card0)
  84. What: /sys/class/cxl/<card>/caia_version
  85. Date: September 2014
  86. Contact: linuxppc-dev@lists.ozlabs.org
  87. Description: read only
  88. Identifies the CAIA Version the card implements.
  89. What: /sys/class/cxl/<card>/psl_version
  90. Date: September 2014
  91. Contact: linuxppc-dev@lists.ozlabs.org
  92. Description: read only
  93. Identifies the revision level of the PSL.
  94. What: /sys/class/cxl/<card>/base_image
  95. Date: September 2014
  96. Contact: linuxppc-dev@lists.ozlabs.org
  97. Description: read only
  98. Identifies the revision level of the base image for devices
  99. that support loadable PSLs. For FPGAs this field identifies
  100. the image contained in the on-adapter flash which is loaded
  101. during the initial program load.
  102. What: /sys/class/cxl/<card>/image_loaded
  103. Date: September 2014
  104. Contact: linuxppc-dev@lists.ozlabs.org
  105. Description: read only
  106. Will return "user" or "factory" depending on the image loaded
  107. onto the card.