sysfs-driver-dma-idxd 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. What: /sys/bus/dsa/devices/dsa<m>/version
  2. Date: Apr 15, 2020
  3. KernelVersion: 5.8.0
  4. Contact: dmaengine@vger.kernel.org
  5. Description: The hardware version number.
  6. What: /sys/bus/dsa/devices/dsa<m>/cdev_major
  7. Date: Oct 25, 2019
  8. KernelVersion: 5.6.0
  9. Contact: dmaengine@vger.kernel.org
  10. Description: The major number that the character device driver assigned to
  11. this device.
  12. What: /sys/bus/dsa/devices/dsa<m>/errors
  13. Date: Oct 25, 2019
  14. KernelVersion: 5.6.0
  15. Contact: dmaengine@vger.kernel.org
  16. Description: The error information for this device.
  17. What: /sys/bus/dsa/devices/dsa<m>/max_batch_size
  18. Date: Oct 25, 2019
  19. KernelVersion: 5.6.0
  20. Contact: dmaengine@vger.kernel.org
  21. Description: The largest number of work descriptors in a batch.
  22. It's not visible when the device does not support batch.
  23. What: /sys/bus/dsa/devices/dsa<m>/max_work_queues_size
  24. Date: Oct 25, 2019
  25. KernelVersion: 5.6.0
  26. Contact: dmaengine@vger.kernel.org
  27. Description: The maximum work queue size supported by this device.
  28. What: /sys/bus/dsa/devices/dsa<m>/max_engines
  29. Date: Oct 25, 2019
  30. KernelVersion: 5.6.0
  31. Contact: dmaengine@vger.kernel.org
  32. Description: The maximum number of engines supported by this device.
  33. What: /sys/bus/dsa/devices/dsa<m>/max_groups
  34. Date: Oct 25, 2019
  35. KernelVersion: 5.6.0
  36. Contact: dmaengine@vger.kernel.org
  37. Description: The maximum number of groups can be created under this device.
  38. What: /sys/bus/dsa/devices/dsa<m>/max_read_buffers
  39. Date: Dec 10, 2021
  40. KernelVersion: 5.17.0
  41. Contact: dmaengine@vger.kernel.org
  42. Description: The total number of read buffers supported by this device.
  43. The read buffers represent resources within the DSA
  44. implementation, and these resources are allocated by engines to
  45. support operations. See DSA spec v1.2 9.2.4 Total Read Buffers.
  46. It's not visible when the device does not support Read Buffer
  47. allocation control.
  48. What: /sys/bus/dsa/devices/dsa<m>/max_transfer_size
  49. Date: Oct 25, 2019
  50. KernelVersion: 5.6.0
  51. Contact: dmaengine@vger.kernel.org
  52. Description: The number of bytes to be read from the source address to
  53. perform the operation. The maximum transfer size is dependent on
  54. the workqueue the descriptor was submitted to.
  55. What: /sys/bus/dsa/devices/dsa<m>/max_work_queues
  56. Date: Oct 25, 2019
  57. KernelVersion: 5.6.0
  58. Contact: dmaengine@vger.kernel.org
  59. Description: The maximum work queue number that this device supports.
  60. What: /sys/bus/dsa/devices/dsa<m>/numa_node
  61. Date: Oct 25, 2019
  62. KernelVersion: 5.6.0
  63. Contact: dmaengine@vger.kernel.org
  64. Description: The numa node number for this device.
  65. What: /sys/bus/dsa/devices/dsa<m>/op_cap
  66. Date: Oct 25, 2019
  67. KernelVersion: 5.6.0
  68. Contact: dmaengine@vger.kernel.org
  69. Description: The operation capability bit mask specify the operation types
  70. supported by the this device.
  71. What: /sys/bus/dsa/devices/dsa<m>/pasid_enabled
  72. Date: Oct 27, 2020
  73. KernelVersion: 5.11.0
  74. Contact: dmaengine@vger.kernel.org
  75. Description: To indicate if user PASID (process address space identifier) is
  76. enabled or not for this device.
  77. What: /sys/bus/dsa/devices/dsa<m>/state
  78. Date: Oct 25, 2019
  79. KernelVersion: 5.6.0
  80. Contact: dmaengine@vger.kernel.org
  81. Description: The state information of this device. It can be either enabled
  82. or disabled.
  83. What: /sys/bus/dsa/devices/dsa<m>/group<m>.<n>
  84. Date: Oct 25, 2019
  85. KernelVersion: 5.6.0
  86. Contact: dmaengine@vger.kernel.org
  87. Description: The assigned group under this device.
  88. What: /sys/bus/dsa/devices/dsa<m>/engine<m>.<n>
  89. Date: Oct 25, 2019
  90. KernelVersion: 5.6.0
  91. Contact: dmaengine@vger.kernel.org
  92. Description: The assigned engine under this device.
  93. What: /sys/bus/dsa/devices/dsa<m>/wq<m>.<n>
  94. Date: Oct 25, 2019
  95. KernelVersion: 5.6.0
  96. Contact: dmaengine@vger.kernel.org
  97. Description: The assigned work queue under this device.
  98. What: /sys/bus/dsa/devices/dsa<m>/configurable
  99. Date: Oct 25, 2019
  100. KernelVersion: 5.6.0
  101. Contact: dmaengine@vger.kernel.org
  102. Description: To indicate if this device is configurable or not.
  103. What: /sys/bus/dsa/devices/dsa<m>/read_buffer_limit
  104. Date: Dec 10, 2021
  105. KernelVersion: 5.17.0
  106. Contact: dmaengine@vger.kernel.org
  107. Description: The maximum number of read buffers that may be in use at
  108. one time by operations that access low bandwidth memory in the
  109. device. See DSA spec v1.2 9.2.8 GENCFG on Global Read Buffer Limit.
  110. It's not visible when the device does not support Read Buffer
  111. allocation control.
  112. What: /sys/bus/dsa/devices/dsa<m>/cmd_status
  113. Date: Aug 28, 2020
  114. KernelVersion: 5.10.0
  115. Contact: dmaengine@vger.kernel.org
  116. Description: The last executed device administrative command's status/error.
  117. Also last configuration error overloaded.
  118. Writing to it will clear the status.
  119. What: /sys/bus/dsa/devices/dsa<m>/iaa_cap
  120. Date: Sept 14, 2022
  121. KernelVersion: 6.0.0
  122. Contact: dmaengine@vger.kernel.org
  123. Description: IAA (IAX) capability mask. Exported to user space for application
  124. consumption. This attribute should only be visible on IAA devices
  125. that are version 2 or later.
  126. What: /sys/bus/dsa/devices/dsa<m>/event_log_size
  127. Date: Sept 14, 2022
  128. KernelVersion: 6.4.0
  129. Contact: dmaengine@vger.kernel.org
  130. Description: The event log size to be configured. Default is 64 entries and
  131. occupies 4k size if the evl entry is 64 bytes. It's visible
  132. only on platforms that support the capability.
  133. What: /sys/bus/dsa/devices/wq<m>.<n>/block_on_fault
  134. Date: Oct 27, 2020
  135. KernelVersion: 5.11.0
  136. Contact: dmaengine@vger.kernel.org
  137. Description: To indicate block on fault is allowed or not for the work queue
  138. to support on demand paging.
  139. What: /sys/bus/dsa/devices/wq<m>.<n>/group_id
  140. Date: Oct 25, 2019
  141. KernelVersion: 5.6.0
  142. Contact: dmaengine@vger.kernel.org
  143. Description: The group id that this work queue belongs to.
  144. What: /sys/bus/dsa/devices/wq<m>.<n>/size
  145. Date: Oct 25, 2019
  146. KernelVersion: 5.6.0
  147. Contact: dmaengine@vger.kernel.org
  148. Description: The work queue size for this work queue.
  149. What: /sys/bus/dsa/devices/wq<m>.<n>/type
  150. Date: Oct 25, 2019
  151. KernelVersion: 5.6.0
  152. Contact: dmaengine@vger.kernel.org
  153. Description: The type of this work queue, it can be "kernel" type for work
  154. queue usages in the kernel space or "user" type for work queue
  155. usages by applications in user space.
  156. What: /sys/bus/dsa/devices/wq<m>.<n>/cdev_minor
  157. Date: Oct 25, 2019
  158. KernelVersion: 5.6.0
  159. Contact: dmaengine@vger.kernel.org
  160. Description: The minor number assigned to this work queue by the character
  161. device driver.
  162. What: /sys/bus/dsa/devices/wq<m>.<n>/mode
  163. Date: Oct 25, 2019
  164. KernelVersion: 5.6.0
  165. Contact: dmaengine@vger.kernel.org
  166. Description: The work queue mode type for this work queue.
  167. What: /sys/bus/dsa/devices/wq<m>.<n>/priority
  168. Date: Oct 25, 2019
  169. KernelVersion: 5.6.0
  170. Contact: dmaengine@vger.kernel.org
  171. Description: The priority value of this work queue, it is a value relative to
  172. other work queue in the same group to control quality of service
  173. for dispatching work from multiple workqueues in the same group.
  174. What: /sys/bus/dsa/devices/wq<m>.<n>/state
  175. Date: Oct 25, 2019
  176. KernelVersion: 5.6.0
  177. Contact: dmaengine@vger.kernel.org
  178. Description: The current state of the work queue.
  179. What: /sys/bus/dsa/devices/wq<m>.<n>/threshold
  180. Date: Oct 25, 2019
  181. KernelVersion: 5.6.0
  182. Contact: dmaengine@vger.kernel.org
  183. Description: The number of entries in this work queue that may be filled
  184. via a limited portal.
  185. What: /sys/bus/dsa/devices/wq<m>.<n>/max_transfer_size
  186. Date: Aug 28, 2020
  187. KernelVersion: 5.10.0
  188. Contact: dmaengine@vger.kernel.org
  189. Description: The max transfer sized for this workqueue. Cannot exceed device
  190. max transfer size. Configurable parameter.
  191. What: /sys/bus/dsa/devices/wq<m>.<n>/max_batch_size
  192. Date: Aug 28, 2020
  193. KernelVersion: 5.10.0
  194. Contact: dmaengine@vger.kernel.org
  195. Description: The max batch size for this workqueue. Cannot exceed device
  196. max batch size. Configurable parameter.
  197. It's not visible when the device does not support batch.
  198. What: /sys/bus/dsa/devices/wq<m>.<n>/ats_disable
  199. Date: Nov 13, 2020
  200. KernelVersion: 5.11.0
  201. Contact: dmaengine@vger.kernel.org
  202. Description: Indicate whether ATS disable is turned on for the workqueue.
  203. 0 indicates ATS is on, and 1 indicates ATS is off for the workqueue.
  204. What: /sys/bus/dsa/devices/wq<m>.<n>/prs_disable
  205. Date: Sept 14, 2022
  206. KernelVersion: 6.4.0
  207. Contact: dmaengine@vger.kernel.org
  208. Description: Controls whether PRS disable is turned on for the workqueue.
  209. 0 indicates PRS is on, and 1 indicates PRS is off for the
  210. workqueue. This option overrides block_on_fault attribute
  211. if set. It's visible only on platforms that support the
  212. capability.
  213. What: /sys/bus/dsa/devices/wq<m>.<n>/occupancy
  214. Date May 25, 2021
  215. KernelVersion: 5.14.0
  216. Contact: dmaengine@vger.kernel.org
  217. Description: Show the current number of entries in this WQ if WQ Occupancy
  218. Support bit WQ capabilities is 1.
  219. What: /sys/bus/dsa/devices/wq<m>.<n>/enqcmds_retries
  220. Date Oct 29, 2021
  221. KernelVersion: 5.17.0
  222. Contact: dmaengine@vger.kernel.org
  223. Description: Indicate the number of retires for an enqcmds submission on a sharedwq.
  224. A max value to set attribute is capped at 64.
  225. What: /sys/bus/dsa/devices/wq<m>.<n>/op_config
  226. Date: Sept 14, 2022
  227. KernelVersion: 6.0.0
  228. Contact: dmaengine@vger.kernel.org
  229. Description: Shows the operation capability bits displayed in bitmap format
  230. presented by %*pb printk() output format specifier.
  231. The attribute can be configured when the WQ is disabled in
  232. order to configure the WQ to accept specific bits that
  233. correlates to the operations allowed. It's visible only
  234. on platforms that support the capability.
  235. What: /sys/bus/dsa/devices/wq<m>.<n>/driver_name
  236. Date: Sept 8, 2023
  237. KernelVersion: 6.7.0
  238. Contact: dmaengine@vger.kernel.org
  239. Description: Name of driver to be bounded to the wq.
  240. What: /sys/bus/dsa/devices/engine<m>.<n>/group_id
  241. Date: Oct 25, 2019
  242. KernelVersion: 5.6.0
  243. Contact: dmaengine@vger.kernel.org
  244. Description: The group that this engine belongs to.
  245. What: /sys/bus/dsa/devices/group<m>.<n>/use_read_buffer_limit
  246. Date: Dec 10, 2021
  247. KernelVersion: 5.17.0
  248. Contact: dmaengine@vger.kernel.org
  249. Description: Enable the use of global read buffer limit for the group. See DSA
  250. spec v1.2 9.2.18 GRPCFG Use Global Read Buffer Limit.
  251. It's not visible when the device does not support Read Buffer
  252. allocation control.
  253. What: /sys/bus/dsa/devices/group<m>.<n>/read_buffers_allowed
  254. Date: Dec 10, 2021
  255. KernelVersion: 5.17.0
  256. Contact: dmaengine@vger.kernel.org
  257. Description: Indicates max number of read buffers that may be in use at one time
  258. by all engines in the group. See DSA spec v1.2 9.2.18 GRPCFG Read
  259. Buffers Allowed.
  260. It's not visible when the device does not support Read Buffer
  261. allocation control.
  262. What: /sys/bus/dsa/devices/group<m>.<n>/read_buffers_reserved
  263. Date: Dec 10, 2021
  264. KernelVersion: 5.17.0
  265. Contact: dmaengine@vger.kernel.org
  266. Description: Indicates the number of Read Buffers reserved for the use of
  267. engines in the group. See DSA spec v1.2 9.2.18 GRPCFG Read Buffers
  268. Reserved.
  269. It's not visible when the device does not support Read Buffer
  270. allocation control.
  271. What: /sys/bus/dsa/devices/group<m>.<n>/desc_progress_limit
  272. Date: Sept 14, 2022
  273. KernelVersion: 6.0.0
  274. Contact: dmaengine@vger.kernel.org
  275. Description: Allows control of the number of work descriptors that can be
  276. concurrently processed by an engine in the group as a fraction
  277. of the Maximum Work Descriptors in Progress value specified in
  278. the ENGCAP register. The acceptable values are 0 (default),
  279. 1 (1/2 of max value), 2 (1/4 of the max value), and 3 (1/8 of
  280. the max value). It's visible only on platforms that support
  281. the capability.
  282. What: /sys/bus/dsa/devices/group<m>.<n>/batch_progress_limit
  283. Date: Sept 14, 2022
  284. KernelVersion: 6.0.0
  285. Contact: dmaengine@vger.kernel.org
  286. Description: Allows control of the number of batch descriptors that can be
  287. concurrently processed by an engine in the group as a fraction
  288. of the Maximum Batch Descriptors in Progress value specified in
  289. the ENGCAP register. The acceptable values are 0 (default),
  290. 1 (1/2 of max value), 2 (1/4 of the max value), and 3 (1/8 of
  291. the max value). It's visible only on platforms that support
  292. the capability.
  293. What: /sys/bus/dsa/devices/wq<m>.<n>/dsa<x>\!wq<m>.<n>/file<y>/cr_faults
  294. Date: Sept 14, 2022
  295. KernelVersion: 6.4.0
  296. Contact: dmaengine@vger.kernel.org
  297. Description: Show the number of Completion Record (CR) faults this application
  298. has caused.
  299. What: /sys/bus/dsa/devices/wq<m>.<n>/dsa<x>\!wq<m>.<n>/file<y>/cr_fault_failures
  300. Date: Sept 14, 2022
  301. KernelVersion: 6.4.0
  302. Contact: dmaengine@vger.kernel.org
  303. Description: Show the number of Completion Record (CR) faults failures that this
  304. application has caused. The failure counter is incremented when the
  305. driver cannot fault in the address for the CR. Typically this is caused
  306. by a bad address programmed in the submitted descriptor or a malicious
  307. submitter is using bad CR address on purpose.
  308. What: /sys/bus/dsa/devices/wq<m>.<n>/dsa<x>\!wq<m>.<n>/file<y>/pid
  309. Date: Sept 14, 2022
  310. KernelVersion: 6.4.0
  311. Contact: dmaengine@vger.kernel.org
  312. Description: Show the process id of the application that opened the file. This is
  313. helpful information for a monitor daemon that wants to kill the
  314. application that opened the file.