Deprecate cxl and cxlflash drivers
Subsystems (2)
cover Deprecate cxl and cxlflash drivers
This series marks the cxl and cxlflash drivers as obsolete/deprecated, disables them by default, and prints a warning to users on probe.
CAPI devices have been out of production for some time, and we're not aware of any remaining users who are likely to want a modern kernel. There's almost certainly some remaining driver bugs and we don't have much hardware available to properly test the drivers any more.
This was previously discussed at [0] - I've decided not to try to do anything funny with the Kconfig settings as explored in that thread, as it seems unlikely to have any significant benefit.
This series will be followed up with patches to remove the drivers and associated arch code, which I hope will be merged in the following cycle.
[0] https://patchwork.ozlabs.org/project/linuxppc-dev/patch/[email protected]/
Andrew Donnellan (2):
cxl: Deprecate driver
scsi/cxlflash: Deprecate driver
Documentation/ABI/{testing => obsolete}/sysfs-class-cxl | 3 +++
MAINTAINERS | 4 ++--
drivers/misc/cxl/Kconfig | 6 ++++--
drivers/misc/cxl/of.c | 2 ++
drivers/misc/cxl/pci.c | 2 ++
drivers/scsi/cxlflash/Kconfig | 6 ++++--
drivers/scsi/cxlflash/main.c | 2 ++
7 files changed, 19 insertions(+), 6 deletions(-)
rename Documentation/ABI/{testing => obsolete}/sysfs-class-cxl (99%)Signature · 1 line
2.47.1
PATCH 1/2 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.
---
Documentation/ABI/{testing => obsolete}/sysfs-class-cxl | 3 +++
MAINTAINERS | 4 ++--
drivers/misc/cxl/Kconfig | 6 ++++--
drivers/misc/cxl/of.c | 2 ++
drivers/misc/cxl/pci.c | 2 ++
5 files changed, 13 insertions(+), 4 deletions(-)
rename Documentation/ABI/{testing => obsolete}/sysfs-class-cxl (99%)Documentation/ABI/obsolete/sysfs-class-cxl renamed from Documentation/ABI/testing/sysfs-class-cxl +3 -0
@@ -1,3 +1,6 @@ +The cxl driver is no longer maintained, and will be removed from the kernel in +the near future. + Please note that attributes that are shared between devices are stored in the directory pointed to by the symlink device/. For example, the real path of the attribute /sys/class/cxl/afu0.0s/irqs_max is
MAINTAINERS +2 -2
@@ -6228,8 +6228,8 @@ CXL (IBM Coherent Accelerator Processor Interface CAPI) DRIVER M: Frederic Barrat <[email protected]> M: Andrew Donnellan <[email protected]> L: [email protected] -S: Supported -F: Documentation/ABI/testing/sysfs-class-cxl +S: Obsolete +F: Documentation/ABI/obsolete/sysfs-class-cxl F: Documentation/arch/powerpc/cxl.rst F: arch/powerpc/platforms/powernv/pci-cxl.c F: drivers/misc/cxl/
drivers/misc/cxl/Kconfig +4 -2
@@ -9,11 +9,13 @@ config CXL_BASE select PPC_64S_HASH_MMU config CXL - tristate "Support for IBM Coherent Accelerators (CXL)" + tristate "Support for IBM Coherent Accelerators (CXL) (DEPRECATED)" depends on PPC_POWERNV && PCI_MSI && EEH select CXL_BASE - default m help + The cxl driver is deprecated and will be removed in a future + kernel release. + Select this option to enable driver support for IBM Coherent Accelerators (CXL). CXL is otherwise known as Coherent Accelerator Processor Interface (CAPI). CAPI allows accelerators in FPGAs to be
drivers/misc/cxl/of.c +2 -0
@@ -295,6 +295,8 @@ int cxl_of_probe(struct platform_device *pdev)int ret;int slice =0 , slice_ok =0 ; +dev_err_once (&pdev->dev,"DEPRECATION: cxl is deprecated and will be removed in a future kernel release\n" ); +pr_devel ("in %s\n" , __func__); np = pdev->dev.of_node;
drivers/misc/cxl/pci.c +2 -0
@@ -1726,6 +1726,8 @@ static int cxl_probe(struct pci_dev *dev, const struct pci_device_id *id)int slice;int rc; +dev_err_once (&dev->dev,"DEPRECATED: cxl is deprecated and will be removed in a future kernel release\n" ); +if (cxl_pci_is_vphb_device (dev)) {dev_dbg (&dev->dev,"cxl_init_adapter: Ignoring cxl vphb device\n" );return -ENODEV ;
Signature · 1 line
2.47.1
PATCH 2/2 scsi/cxlflash: Deprecate driver
In reply to Andrew DonnellanWe intend to remove the cxlflash driver in an upcoming release. It is already marked as Obsolete in MAINTAINERS.
The cxlflash driver has received minimal maintenance for some time, and the CAPI Flash hardware that uses it is no longer commercially available.
Add a warning message on probe and change Kconfig to label the driver as deprecated and not build the driver by default.
--- drivers/scsi/cxlflash/Kconfig | 6 ++++-- drivers/scsi/cxlflash/main.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/scsi/cxlflash/Kconfig +4 -2
@@ -4,10 +4,12 @@ # config CXLFLASH - tristate "Support for IBM CAPI Flash" + tristate "Support for IBM CAPI Flash (DEPRECATED)" depends on PCI && SCSI && (CXL || OCXL) && EEH select IRQ_POLL - default m help + The cxlflash driver is deprecated and will be removed in a future + kernel release. + Allows CAPI Accelerated IO to Flash If unsure, say N.
drivers/scsi/cxlflash/main.c +2 -0
@@ -3651,6 +3651,8 @@ static int cxlflash_probe(struct pci_dev *pdev,int rc =0 ;int k; +dev_err_once (&pdev->dev,"DEPRECATION: cxlflash is deprecated and will be removed in a future kernel release\n" ); +dev_dbg (&pdev->dev,"%s: Found CXLFLASH with IRQ: %d\n" , __func__, pdev->irq);
Signature · 1 line
2.47.1
Re: [PATCH 1/2] cxl: Deprecate driver
In reply to Andrew DonnellanQuoted 7 lines · Andrew Donnellan
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.
Quoted 6 lines
Change its
MAINTAINERSstatus to obsolete, update the sysfs ABI documentation accordingly, add a warning message on device probe, change theKconfigoptions to label it as deprecated, and don't build it by default.Signed-off-by Andrew Donnellan <[email protected]>
Fred
Quoted 84 lines
--- Documentation/ABI/{testing => obsolete}/sysfs-class-cxl | 3 +++ MAINTAINERS | 4 ++-- drivers/misc/cxl/Kconfig | 6 ++++-- drivers/misc/cxl/of.c | 2 ++ drivers/misc/cxl/pci.c | 2 ++ 5 files changed, 13 insertions(+), 4 deletions(-)rename
Documentation/ABI/{testing=> obsolete}/sysfs-class-cxl (99%)Documentation/ABI/obsolete/sysfs-class-cxl renamed from Documentation/ABI/testing/sysfs-class-cxl +3
-0@@ -1,3 +1,6 @@ +The cxl driver is no longer maintained, and will be removed from the kernel in +the near future. + Please note that attributes that are shared between devices are stored in the directory pointed to by the symlink device/. For example, the real path of the attribute /sys/class/cxl/afu0.0s/irqs_max isMAINTAINERS +2
-2@@ -6228,8 +6228,8 @@ CXL (IBM Coherent Accelerator Processor Interface CAPI) DRIVER M: Frederic Barrat <[email protected]> M: Andrew Donnellan <[email protected]> L: [email protected] -S: Supported -F: Documentation/ABI/testing/sysfs-class-cxl +S: Obsolete +F: Documentation/ABI/obsolete/sysfs-class-cxl F: Documentation/arch/powerpc/cxl.rst F: arch/powerpc/platforms/powernv/pci-cxl.c F: drivers/misc/cxl/drivers/misc/cxl/Kconfig +4
-2@@ -9,11 +9,13 @@ config CXL_BASE select PPC_64S_HASH_MMU config CXL - tristate "Support for IBM Coherent Accelerators (CXL)" + tristate "Support for IBM Coherent Accelerators (CXL) (DEPRECATED)" depends on PPC_POWERNV && PCI_MSI && EEH select CXL_BASE - default m help + The cxl driver is deprecated and will be removed in a future + kernel release. + Select this option to enable driver support for IBM Coherent Accelerators (CXL). CXL is otherwise known as Coherent Accelerator Processor Interface (CAPI). CAPI allows accelerators in FPGAs to bedrivers/misc/cxl/of.c +2
-0@@ -295,6 +295,8 @@ int cxl_of_probe(struct platform_device *pdev)int ret;int slice =0 , slice_ok =0 ; +dev_err_once (&pdev->dev,"DEPRECATION: cxl is deprecated and will be removed in a future kernel release\n" ); +pr_devel ("in %s\n" , __func__); np = pdev->dev.of_node;drivers/misc/cxl/pci.c +2
-0@@ -1726,6 +1726,8 @@ static int cxl_probe(struct pci_dev *dev, const struct pci_device_id *id)int slice;int rc; +dev_err_once (&dev->dev,"DEPRECATED: cxl is deprecated and will be removed in a future kernel release\n" ); +if (cxl_pci_is_vphb_device (dev)) {dev_dbg (&dev->dev,"cxl_init_adapter: Ignoring cxl vphb device\n" );return -ENODEV ;
Re: [PATCH 2/2] scsi/cxlflash: Deprecate driver
In reply to Andrew DonnellanQuoted 10 lines · Andrew Donnellan
We intend to remove the cxlflash driver in an upcoming release. It is already marked as Obsolete in
MAINTAINERS.The cxlflash driver has received minimal maintenance for some time, and the CAPI Flash hardware that uses it is no longer commercially available.
Add a warning message on probe and change
Kconfigto label the driver as deprecated and not build the driver by default.Signed-off-by Andrew Donnellan <[email protected]>
Fred
Quoted 37 lines
--- drivers/scsi/cxlflash/Kconfig | 6 ++++-- drivers/scsi/cxlflash/main.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-)drivers/scsi/cxlflash/Kconfig +4
-2@@ -4,10 +4,12 @@ # config CXLFLASH - tristate "Support for IBM CAPI Flash" + tristate "Support for IBM CAPI Flash (DEPRECATED)" depends on PCI && SCSI && (CXL || OCXL) && EEH select IRQ_POLL - default m help + The cxlflash driver is deprecated and will be removed in a future + kernel release. + Allows CAPI Accelerated IO to Flash If unsure, say N.drivers/scsi/cxlflash/main.c +2
-0@@ -3651,6 +3651,8 @@ static int cxlflash_probe(struct pci_dev *pdev,int rc =0 ;int k; +dev_err_once (&pdev->dev,"DEPRECATION: cxlflash is deprecated and will be removed in a future kernel release\n" ); +dev_dbg (&pdev->dev,"%s: Found CXLFLASH with IRQ: %d\n" , __func__, pdev->irq);
kernel test robot
build botRe: [PATCH 1/2] cxl: Deprecate driver
In reply to Andrew Donnellankernel test robot noticed the following build warnings:
Hi Andrew,
kernel test robot noticed the following build warnings:
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on char-misc/char-misc-next char-misc/char-misc-linus jejb-scsi/for-next mkp-scsi/for-next linus/master v6.13-rc2 next-20241211] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Andrew-Donnellan/cxl-Deprecate-driver/20241210-134451 base: char-misc/char-misc-testing patch link: https://lore.kernel.org/r/20241210054055.144813-2-ajd%40linux.ibm.com patch subject: [PATCH 1/2] cxl: Deprecate driver reproduce: (https://download.01.org/0day-ci/archive/20241212/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> Warning: Documentation/arch/powerpc/cxl.rst references a file that doesn't exist: Documentation/ABI/testing/sysfs-class-cxl
Warning: Documentation/devicetree/bindings/regulator/siliconmitus,sm5703-regulator.yaml references a file that doesn't exist: Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml
Warning: Documentation/hwmon/g762.rst references a file that doesn't exist: Documentation/devicetree/bindings/hwmon/g762.txt
Warning: Documentation/hwmon/isl28022.rst references a file that doesn't exist: Documentation/devicetree/bindings/hwmon/isl,isl28022.yaml
Warning: Documentation/translations/ja_JP/SubmittingPatches references a file that doesn't exist: linux-2.6.12-vanilla/Documentation/dontdiff
Warning: MAINTAINERS references a file that doesn't exist: Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Madhavan Srinivasan
AppliedQuoted 9 lines · Andrew Donnellan
This series marks the cxl and cxlflash drivers as obsolete/deprecated, disables them by default, and prints a warning to users on probe.
CAPI devices have been out of production for some time, and we're not aware of any remaining users who are likely to want a modern kernel. There's almost certainly some remaining driver bugs and we don't have much hardware available to properly test the drivers any more.
[...]
Applied to powerpc/next.
[1/2] cxl: Deprecate driver
https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next&id=5731d41af924b764f32532d39d37a15f669c1e01 [2/2] scsi/cxlflash: Deprecate driver https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next&id=f117051514c33c43b7e0c517e0ae9e0189e884da
Thanks