Debian Codegraph @

Documentation/ABI/removed/sysfs-class-cxl

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