Skip to content

Commit 5a0fcb0

Browse files
ajdlinuxmpe
authored andcommitted
cxl: Remove driver
Remove the cxl driver that provides support for the IBM Coherent Accelerator Processor Interface. Revert or clean up associated code in arch/powerpc that is no longer necessary. cxl has received minimal maintenance for several years, and is not supported on the Power10 processor. We aren't aware of any users who are likely to be using recent kernels. Thanks to Mikey Neuling, Ian Munsie, Daniel Axtens, Frederic Barrat, Christophe Lombard, Philippe Bergheaud, Vaibhav Jain and Alastair D'Silva for their work on this driver over the years. Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com> Acked-by: Frederic Barrat <fbarrat@linux.ibm.com> Acked-by: Madhavan Srinivasan <maddy@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://patch.msgid.link/20250219070007.177725-2-ajd@linux.ibm.com
1 parent ff443fb commit 5a0fcb0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+42
-14311
lines changed

Documentation/ABI/obsolete/sysfs-class-cxl renamed to Documentation/ABI/removed/sysfs-class-cxl

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
The cxl driver is no longer maintained, and will be removed from the kernel in
2-
the near future.
1+
The cxl driver was removed in 6.14.
32

43
Please note that attributes that are shared between devices are stored in
54
the directory pointed to by the symlink device/.
@@ -10,7 +9,7 @@ For example, the real path of the attribute /sys/class/cxl/afu0.0s/irqs_max is
109
Slave contexts (eg. /sys/class/cxl/afu0.0s):
1110

1211
What: /sys/class/cxl/<afu>/afu_err_buf
13-
Date: September 2014
12+
Date: September 2014, removed February 2025
1413
Contact: linuxppc-dev@lists.ozlabs.org
1514
Description: read only
1615
AFU Error Buffer contents. The contents of this file are
@@ -21,7 +20,7 @@ Description: read only
2120

2221

2322
What: /sys/class/cxl/<afu>/irqs_max
24-
Date: September 2014
23+
Date: September 2014, removed February 2025
2524
Contact: linuxppc-dev@lists.ozlabs.org
2625
Description: read/write
2726
Decimal value of maximum number of interrupts that can be
@@ -32,7 +31,7 @@ Description: read/write
3231
Users: https://github.com/ibm-capi/libcxl
3332

3433
What: /sys/class/cxl/<afu>/irqs_min
35-
Date: September 2014
34+
Date: September 2014, removed February 2025
3635
Contact: linuxppc-dev@lists.ozlabs.org
3736
Description: read only
3837
Decimal value of the minimum number of interrupts that
@@ -42,23 +41,23 @@ Description: read only
4241
Users: https://github.com/ibm-capi/libcxl
4342

4443
What: /sys/class/cxl/<afu>/mmio_size
45-
Date: September 2014
44+
Date: September 2014, removed February 2025
4645
Contact: linuxppc-dev@lists.ozlabs.org
4746
Description: read only
4847
Decimal value of the size of the MMIO space that may be mmapped
4948
by userspace.
5049
Users: https://github.com/ibm-capi/libcxl
5150

5251
What: /sys/class/cxl/<afu>/modes_supported
53-
Date: September 2014
52+
Date: September 2014, removed February 2025
5453
Contact: linuxppc-dev@lists.ozlabs.org
5554
Description: read only
5655
List of the modes this AFU supports. One per line.
5756
Valid entries are: "dedicated_process" and "afu_directed"
5857
Users: https://github.com/ibm-capi/libcxl
5958

6059
What: /sys/class/cxl/<afu>/mode
61-
Date: September 2014
60+
Date: September 2014, removed February 2025
6261
Contact: linuxppc-dev@lists.ozlabs.org
6362
Description: read/write
6463
The current mode the AFU is using. Will be one of the modes
@@ -68,7 +67,7 @@ Users: https://github.com/ibm-capi/libcxl
6867

6968

7069
What: /sys/class/cxl/<afu>/prefault_mode
71-
Date: September 2014
70+
Date: September 2014, removed February 2025
7271
Contact: linuxppc-dev@lists.ozlabs.org
7372
Description: read/write
7473
Set the mode for prefaulting in segments into the segment table
@@ -88,22 +87,22 @@ Description: read/write
8887
Users: https://github.com/ibm-capi/libcxl
8988

9089
What: /sys/class/cxl/<afu>/reset
91-
Date: September 2014
90+
Date: September 2014, removed February 2025
9291
Contact: linuxppc-dev@lists.ozlabs.org
9392
Description: write only
9493
Writing 1 here will reset the AFU provided there are not
9594
contexts active on the AFU.
9695
Users: https://github.com/ibm-capi/libcxl
9796

9897
What: /sys/class/cxl/<afu>/api_version
99-
Date: September 2014
98+
Date: September 2014, removed February 2025
10099
Contact: linuxppc-dev@lists.ozlabs.org
101100
Description: read only
102101
Decimal value of the current version of the kernel/user API.
103102
Users: https://github.com/ibm-capi/libcxl
104103

105104
What: /sys/class/cxl/<afu>/api_version_compatible
106-
Date: September 2014
105+
Date: September 2014, removed February 2025
107106
Contact: linuxppc-dev@lists.ozlabs.org
108107
Description: read only
109108
Decimal value of the lowest version of the userspace API
@@ -117,31 +116,31 @@ An AFU may optionally export one or more PCIe like configuration records, known
117116
as AFU configuration records, which will show up here (if present).
118117

119118
What: /sys/class/cxl/<afu>/cr<config num>/vendor
120-
Date: February 2015
119+
Date: February 2015, removed February 2025
121120
Contact: linuxppc-dev@lists.ozlabs.org
122121
Description: read only
123122
Hexadecimal value of the vendor ID found in this AFU
124123
configuration record.
125124
Users: https://github.com/ibm-capi/libcxl
126125

127126
What: /sys/class/cxl/<afu>/cr<config num>/device
128-
Date: February 2015
127+
Date: February 2015, removed February 2025
129128
Contact: linuxppc-dev@lists.ozlabs.org
130129
Description: read only
131130
Hexadecimal value of the device ID found in this AFU
132131
configuration record.
133132
Users: https://github.com/ibm-capi/libcxl
134133

135134
What: /sys/class/cxl/<afu>/cr<config num>/class
136-
Date: February 2015
135+
Date: February 2015, removed February 2025
137136
Contact: linuxppc-dev@lists.ozlabs.org
138137
Description: read only
139138
Hexadecimal value of the class code found in this AFU
140139
configuration record.
141140
Users: https://github.com/ibm-capi/libcxl
142141

143142
What: /sys/class/cxl/<afu>/cr<config num>/config
144-
Date: February 2015
143+
Date: February 2015, removed February 2025
145144
Contact: linuxppc-dev@lists.ozlabs.org
146145
Description: read only
147146
This binary file provides raw access to the AFU configuration
@@ -155,22 +154,22 @@ Users: https://github.com/ibm-capi/libcxl
155154
Master contexts (eg. /sys/class/cxl/afu0.0m)
156155

157156
What: /sys/class/cxl/<afu>m/mmio_size
158-
Date: September 2014
157+
Date: September 2014, removed February 2025
159158
Contact: linuxppc-dev@lists.ozlabs.org
160159
Description: read only
161160
Decimal value of the size of the MMIO space that may be mmapped
162161
by userspace. This includes all slave contexts space also.
163162
Users: https://github.com/ibm-capi/libcxl
164163

165164
What: /sys/class/cxl/<afu>m/pp_mmio_len
166-
Date: September 2014
165+
Date: September 2014, removed February 2025
167166
Contact: linuxppc-dev@lists.ozlabs.org
168167
Description: read only
169168
Decimal value of the Per Process MMIO space length.
170169
Users: https://github.com/ibm-capi/libcxl
171170

172171
What: /sys/class/cxl/<afu>m/pp_mmio_off
173-
Date: September 2014
172+
Date: September 2014, removed February 2025
174173
Contact: linuxppc-dev@lists.ozlabs.org
175174
Description: read only
176175
(not in a guest)
@@ -181,21 +180,21 @@ Users: https://github.com/ibm-capi/libcxl
181180
Card info (eg. /sys/class/cxl/card0)
182181

183182
What: /sys/class/cxl/<card>/caia_version
184-
Date: September 2014
183+
Date: September 2014, removed February 2025
185184
Contact: linuxppc-dev@lists.ozlabs.org
186185
Description: read only
187186
Identifies the CAIA Version the card implements.
188187
Users: https://github.com/ibm-capi/libcxl
189188

190189
What: /sys/class/cxl/<card>/psl_revision
191-
Date: September 2014
190+
Date: September 2014, removed February 2025
192191
Contact: linuxppc-dev@lists.ozlabs.org
193192
Description: read only
194193
Identifies the revision level of the PSL.
195194
Users: https://github.com/ibm-capi/libcxl
196195

197196
What: /sys/class/cxl/<card>/base_image
198-
Date: September 2014
197+
Date: September 2014, removed February 2025
199198
Contact: linuxppc-dev@lists.ozlabs.org
200199
Description: read only
201200
(not in a guest)
@@ -206,7 +205,7 @@ Description: read only
206205
Users: https://github.com/ibm-capi/libcxl
207206

208207
What: /sys/class/cxl/<card>/image_loaded
209-
Date: September 2014
208+
Date: September 2014, removed February 2025
210209
Contact: linuxppc-dev@lists.ozlabs.org
211210
Description: read only
212211
(not in a guest)
@@ -215,7 +214,7 @@ Description: read only
215214
Users: https://github.com/ibm-capi/libcxl
216215

217216
What: /sys/class/cxl/<card>/load_image_on_perst
218-
Date: December 2014
217+
Date: December 2014, removed February 2025
219218
Contact: linuxppc-dev@lists.ozlabs.org
220219
Description: read/write
221220
(not in a guest)
@@ -232,7 +231,7 @@ Description: read/write
232231
Users: https://github.com/ibm-capi/libcxl
233232

234233
What: /sys/class/cxl/<card>/reset
235-
Date: October 2014
234+
Date: October 2014, removed February 2025
236235
Contact: linuxppc-dev@lists.ozlabs.org
237236
Description: write only
238237
Writing 1 will issue a PERST to card provided there are no
@@ -243,7 +242,7 @@ Description: write only
243242
Users: https://github.com/ibm-capi/libcxl
244243

245244
What: /sys/class/cxl/<card>/perst_reloads_same_image
246-
Date: July 2015
245+
Date: July 2015, removed February 2025
247246
Contact: linuxppc-dev@lists.ozlabs.org
248247
Description: read/write
249248
(not in a guest)
@@ -257,15 +256,15 @@ Description: read/write
257256
Users: https://github.com/ibm-capi/libcxl
258257

259258
What: /sys/class/cxl/<card>/psl_timebase_synced
260-
Date: March 2016
259+
Date: March 2016, removed February 2025
261260
Contact: linuxppc-dev@lists.ozlabs.org
262261
Description: read only
263262
Returns 1 if the psl timebase register is synchronized
264263
with the core timebase register, 0 otherwise.
265264
Users: https://github.com/ibm-capi/libcxl
266265

267266
What: /sys/class/cxl/<card>/tunneled_ops_supported
268-
Date: May 2018
267+
Date: May 2018, removed February 2025
269268
Contact: linuxppc-dev@lists.ozlabs.org
270269
Description: read only
271270
Returns 1 if tunneled operations are supported in capi mode,

0 commit comments

Comments
 (0)