Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Andrew Donnellan and committed by
Madhavan Srinivasan
5731d41a 3a7a53c8

+13 -4
+3
Documentation/ABI/testing/sysfs-class-cxl Documentation/ABI/obsolete/sysfs-class-cxl
··· 1 + The cxl driver is no longer maintained, and will be removed from the kernel in 2 + the near future. 3 + 1 4 Please note that attributes that are shared between devices are stored in 2 5 the directory pointed to by the symlink device/. 3 6 For example, the real path of the attribute /sys/class/cxl/afu0.0s/irqs_max is
+2 -2
MAINTAINERS
··· 6228 6228 M: Frederic Barrat <fbarrat@linux.ibm.com> 6229 6229 M: Andrew Donnellan <ajd@linux.ibm.com> 6230 6230 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 6233 6233 F: Documentation/arch/powerpc/cxl.rst 6234 6234 F: arch/powerpc/platforms/powernv/pci-cxl.c 6235 6235 F: drivers/misc/cxl/
+4 -2
drivers/misc/cxl/Kconfig
··· 9 9 select PPC_64S_HASH_MMU 10 10 11 11 config CXL 12 - tristate "Support for IBM Coherent Accelerators (CXL)" 12 + tristate "Support for IBM Coherent Accelerators (CXL) (DEPRECATED)" 13 13 depends on PPC_POWERNV && PCI_MSI && EEH 14 14 select CXL_BASE 15 - default m 16 15 help 16 + The cxl driver is deprecated and will be removed in a future 17 + kernel release. 18 + 17 19 Select this option to enable driver support for IBM Coherent 18 20 Accelerators (CXL). CXL is otherwise known as Coherent Accelerator 19 21 Processor Interface (CAPI). CAPI allows accelerators in FPGAs to be
+2
drivers/misc/cxl/of.c
··· 295 295 int ret; 296 296 int slice = 0, slice_ok = 0; 297 297 298 + dev_err_once(&pdev->dev, "DEPRECATION: cxl is deprecated and will be removed in a future kernel release\n"); 299 + 298 300 pr_devel("in %s\n", __func__); 299 301 300 302 np = pdev->dev.of_node;
+2
drivers/misc/cxl/pci.c
··· 1726 1726 int slice; 1727 1727 int rc; 1728 1728 1729 + dev_err_once(&dev->dev, "DEPRECATED: cxl is deprecated and will be removed in a future kernel release\n"); 1730 + 1729 1731 if (cxl_pci_is_vphb_device(dev)) { 1730 1732 dev_dbg(&dev->dev, "cxl_init_adapter: Ignoring cxl vphb device\n"); 1731 1733 return -ENODEV;