Skip to content

Commit 5731d41

Browse files
ajdlinuxmaddy-kerneldev
authored andcommitted
cxl: Deprecate driver
The cxl driver is no longer actively maintained and we intend to remove it in a future kernel release. 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. Change its MAINTAINERS status to obsolete, update the sysfs ABI documentation accordingly, add a warning message on device probe, change the Kconfig options to label it as deprecated, and don't build it by default. Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com> Acked-by: Frederic Barrat <fbarrat@linux.ibm.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20241210054055.144813-2-ajd@linux.ibm.com
1 parent 3a7a53c commit 5731d41

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
The cxl driver is no longer maintained, and will be removed from the kernel in
2+
the near future.
3+
14
Please note that attributes that are shared between devices are stored in
25
the directory pointed to by the symlink device/.
36
For example, the real path of the attribute /sys/class/cxl/afu0.0s/irqs_max is

MAINTAINERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6228,8 +6228,8 @@ CXL (IBM Coherent Accelerator Processor Interface CAPI) DRIVER
62286228
M: Frederic Barrat <fbarrat@linux.ibm.com>
62296229
M: Andrew Donnellan <ajd@linux.ibm.com>
62306230
L: linuxppc-dev@lists.ozlabs.org
6231-
S: Supported
6232-
F: Documentation/ABI/testing/sysfs-class-cxl
6231+
S: Obsolete
6232+
F: Documentation/ABI/obsolete/sysfs-class-cxl
62336233
F: Documentation/arch/powerpc/cxl.rst
62346234
F: arch/powerpc/platforms/powernv/pci-cxl.c
62356235
F: drivers/misc/cxl/

drivers/misc/cxl/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ config CXL_BASE
99
select PPC_64S_HASH_MMU
1010

1111
config CXL
12-
tristate "Support for IBM Coherent Accelerators (CXL)"
12+
tristate "Support for IBM Coherent Accelerators (CXL) (DEPRECATED)"
1313
depends on PPC_POWERNV && PCI_MSI && EEH
1414
select CXL_BASE
15-
default m
1615
help
16+
The cxl driver is deprecated and will be removed in a future
17+
kernel release.
18+
1719
Select this option to enable driver support for IBM Coherent
1820
Accelerators (CXL). CXL is otherwise known as Coherent Accelerator
1921
Processor Interface (CAPI). CAPI allows accelerators in FPGAs to be

drivers/misc/cxl/of.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ int cxl_of_probe(struct platform_device *pdev)
295295
int ret;
296296
int slice = 0, slice_ok = 0;
297297

298+
dev_err_once(&pdev->dev, "DEPRECATION: cxl is deprecated and will be removed in a future kernel release\n");
299+
298300
pr_devel("in %s\n", __func__);
299301

300302
np = pdev->dev.of_node;

drivers/misc/cxl/pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,6 +1726,8 @@ static int cxl_probe(struct pci_dev *dev, const struct pci_device_id *id)
17261726
int slice;
17271727
int rc;
17281728

1729+
dev_err_once(&dev->dev, "DEPRECATED: cxl is deprecated and will be removed in a future kernel release\n");
1730+
17291731
if (cxl_pci_is_vphb_device(dev)) {
17301732
dev_dbg(&dev->dev, "cxl_init_adapter: Ignoring cxl vphb device\n");
17311733
return -ENODEV;

0 commit comments

Comments
 (0)