[PATCH v2 0/2] Remove cxl and cxlflash drivers

Andrew Donnellan posted 2 patches 1 month, 1 week ago
.../ABI/{obsolete => removed}/sysfs-class-cxl |   55 +-
Documentation/arch/powerpc/cxl.rst            |  469 --
Documentation/arch/powerpc/cxlflash.rst       |  433 --
Documentation/arch/powerpc/index.rst          |    2 -
.../userspace-api/ioctl/ioctl-number.rst      |    4 +-
MAINTAINERS                                   |   21 -
arch/powerpc/configs/skiroot_defconfig        |    1 -
arch/powerpc/include/asm/copro.h              |    6 -
arch/powerpc/include/asm/device.h             |    3 -
arch/powerpc/include/asm/pnv-pci.h            |   17 -
arch/powerpc/mm/book3s64/hash_native.c        |   13 +-
arch/powerpc/mm/book3s64/hash_utils.c         |   10 +-
arch/powerpc/mm/book3s64/pgtable.c            |    1 -
arch/powerpc/mm/book3s64/slice.c              |    6 +-
arch/powerpc/mm/copro_fault.c                 |   12 -
arch/powerpc/platforms/powernv/Makefile       |    1 -
arch/powerpc/platforms/powernv/pci-cxl.c      |  153 -
arch/powerpc/platforms/powernv/pci-ioda.c     |   43 -
arch/powerpc/platforms/powernv/pci.c          |   61 -
arch/powerpc/platforms/powernv/pci.h          |    2 -
drivers/misc/Kconfig                          |    1 -
drivers/misc/Makefile                         |    1 -
drivers/misc/cxl/Kconfig                      |   28 -
drivers/misc/cxl/Makefile                     |   14 -
drivers/misc/cxl/api.c                        |  532 ---
drivers/misc/cxl/base.c                       |  126 -
drivers/misc/cxl/context.c                    |  362 --
drivers/misc/cxl/cxl.h                        | 1135 -----
drivers/misc/cxl/cxllib.c                     |  271 --
drivers/misc/cxl/debugfs.c                    |  134 -
drivers/misc/cxl/fault.c                      |  341 --
drivers/misc/cxl/file.c                       |  699 ---
drivers/misc/cxl/flash.c                      |  538 ---
drivers/misc/cxl/guest.c                      | 1208 -----
drivers/misc/cxl/hcalls.c                     |  643 ---
drivers/misc/cxl/hcalls.h                     |  200 -
drivers/misc/cxl/irq.c                        |  450 --
drivers/misc/cxl/main.c                       |  383 --
drivers/misc/cxl/native.c                     | 1592 -------
drivers/misc/cxl/of.c                         |  346 --
drivers/misc/cxl/pci.c                        | 2103 ---------
drivers/misc/cxl/sysfs.c                      |  771 ----
drivers/misc/cxl/trace.c                      |    9 -
drivers/misc/cxl/trace.h                      |  691 ---
drivers/misc/cxl/vphb.c                       |  309 --
drivers/scsi/Kconfig                          |    1 -
drivers/scsi/Makefile                         |    1 -
drivers/scsi/cxlflash/Kconfig                 |   15 -
drivers/scsi/cxlflash/Makefile                |    5 -
drivers/scsi/cxlflash/backend.h               |   48 -
drivers/scsi/cxlflash/common.h                |  340 --
drivers/scsi/cxlflash/cxl_hw.c                |  177 -
drivers/scsi/cxlflash/lunmgt.c                |  278 --
drivers/scsi/cxlflash/main.c                  | 3970 -----------------
drivers/scsi/cxlflash/main.h                  |  129 -
drivers/scsi/cxlflash/ocxl_hw.c               | 1399 ------
drivers/scsi/cxlflash/ocxl_hw.h               |   72 -
drivers/scsi/cxlflash/sislite.h               |  560 ---
drivers/scsi/cxlflash/superpipe.c             | 2218 ---------
drivers/scsi/cxlflash/superpipe.h             |  150 -
drivers/scsi/cxlflash/vlun.c                  | 1336 ------
drivers/scsi/cxlflash/vlun.h                  |   82 -
include/misc/cxl-base.h                       |   48 -
include/misc/cxl.h                            |  265 --
include/misc/cxllib.h                         |  129 -
include/uapi/misc/cxl.h                       |  156 -
include/uapi/scsi/cxlflash_ioctl.h            |  276 --
.../filesystems/statmount/statmount_test.c    |   13 +-
68 files changed, 49 insertions(+), 25819 deletions(-)
rename Documentation/ABI/{obsolete => removed}/sysfs-class-cxl (87%)
delete mode 100644 Documentation/arch/powerpc/cxl.rst
delete mode 100644 Documentation/arch/powerpc/cxlflash.rst
delete mode 100644 arch/powerpc/platforms/powernv/pci-cxl.c
delete mode 100644 drivers/misc/cxl/Kconfig
delete mode 100644 drivers/misc/cxl/Makefile
delete mode 100644 drivers/misc/cxl/api.c
delete mode 100644 drivers/misc/cxl/base.c
delete mode 100644 drivers/misc/cxl/context.c
delete mode 100644 drivers/misc/cxl/cxl.h
delete mode 100644 drivers/misc/cxl/cxllib.c
delete mode 100644 drivers/misc/cxl/debugfs.c
delete mode 100644 drivers/misc/cxl/fault.c
delete mode 100644 drivers/misc/cxl/file.c
delete mode 100644 drivers/misc/cxl/flash.c
delete mode 100644 drivers/misc/cxl/guest.c
delete mode 100644 drivers/misc/cxl/hcalls.c
delete mode 100644 drivers/misc/cxl/hcalls.h
delete mode 100644 drivers/misc/cxl/irq.c
delete mode 100644 drivers/misc/cxl/main.c
delete mode 100644 drivers/misc/cxl/native.c
delete mode 100644 drivers/misc/cxl/of.c
delete mode 100644 drivers/misc/cxl/pci.c
delete mode 100644 drivers/misc/cxl/sysfs.c
delete mode 100644 drivers/misc/cxl/trace.c
delete mode 100644 drivers/misc/cxl/trace.h
delete mode 100644 drivers/misc/cxl/vphb.c
delete mode 100644 drivers/scsi/cxlflash/Kconfig
delete mode 100644 drivers/scsi/cxlflash/Makefile
delete mode 100644 drivers/scsi/cxlflash/backend.h
delete mode 100644 drivers/scsi/cxlflash/common.h
delete mode 100644 drivers/scsi/cxlflash/cxl_hw.c
delete mode 100644 drivers/scsi/cxlflash/lunmgt.c
delete mode 100644 drivers/scsi/cxlflash/main.c
delete mode 100644 drivers/scsi/cxlflash/main.h
delete mode 100644 drivers/scsi/cxlflash/ocxl_hw.c
delete mode 100644 drivers/scsi/cxlflash/ocxl_hw.h
delete mode 100644 drivers/scsi/cxlflash/sislite.h
delete mode 100644 drivers/scsi/cxlflash/superpipe.c
delete mode 100644 drivers/scsi/cxlflash/superpipe.h
delete mode 100644 drivers/scsi/cxlflash/vlun.c
delete mode 100644 drivers/scsi/cxlflash/vlun.h
delete mode 100644 include/misc/cxl-base.h
delete mode 100644 include/misc/cxl.h
delete mode 100644 include/misc/cxllib.h
delete mode 100644 include/uapi/misc/cxl.h
delete mode 100644 include/uapi/scsi/cxlflash_ioctl.h
[PATCH v2 0/2] Remove cxl and cxlflash drivers
Posted by Andrew Donnellan 1 month, 1 week ago
This series removes the cxl and cxlflash drivers for IBM CAPI devices.

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. Removing these
drivers will also mean we can get rid of a non-trivial amount of support
code in arch/powerpc.

Thanks to everyone who's worked on these drivers over the last decade.

This series does not affect the OpenCAPI/ocxl driver, nor does it affect
Compute Express Link (the other cxl, an amusing but unfortunate naming
collision).

v1: https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=436014&state=*

v1->v2: rebase and update docs

Andrew Donnellan (2):
  cxlflash: Remove driver
  cxl: Remove driver

 .../ABI/{obsolete => removed}/sysfs-class-cxl |   55 +-
 Documentation/arch/powerpc/cxl.rst            |  469 --
 Documentation/arch/powerpc/cxlflash.rst       |  433 --
 Documentation/arch/powerpc/index.rst          |    2 -
 .../userspace-api/ioctl/ioctl-number.rst      |    4 +-
 MAINTAINERS                                   |   21 -
 arch/powerpc/configs/skiroot_defconfig        |    1 -
 arch/powerpc/include/asm/copro.h              |    6 -
 arch/powerpc/include/asm/device.h             |    3 -
 arch/powerpc/include/asm/pnv-pci.h            |   17 -
 arch/powerpc/mm/book3s64/hash_native.c        |   13 +-
 arch/powerpc/mm/book3s64/hash_utils.c         |   10 +-
 arch/powerpc/mm/book3s64/pgtable.c            |    1 -
 arch/powerpc/mm/book3s64/slice.c              |    6 +-
 arch/powerpc/mm/copro_fault.c                 |   12 -
 arch/powerpc/platforms/powernv/Makefile       |    1 -
 arch/powerpc/platforms/powernv/pci-cxl.c      |  153 -
 arch/powerpc/platforms/powernv/pci-ioda.c     |   43 -
 arch/powerpc/platforms/powernv/pci.c          |   61 -
 arch/powerpc/platforms/powernv/pci.h          |    2 -
 drivers/misc/Kconfig                          |    1 -
 drivers/misc/Makefile                         |    1 -
 drivers/misc/cxl/Kconfig                      |   28 -
 drivers/misc/cxl/Makefile                     |   14 -
 drivers/misc/cxl/api.c                        |  532 ---
 drivers/misc/cxl/base.c                       |  126 -
 drivers/misc/cxl/context.c                    |  362 --
 drivers/misc/cxl/cxl.h                        | 1135 -----
 drivers/misc/cxl/cxllib.c                     |  271 --
 drivers/misc/cxl/debugfs.c                    |  134 -
 drivers/misc/cxl/fault.c                      |  341 --
 drivers/misc/cxl/file.c                       |  699 ---
 drivers/misc/cxl/flash.c                      |  538 ---
 drivers/misc/cxl/guest.c                      | 1208 -----
 drivers/misc/cxl/hcalls.c                     |  643 ---
 drivers/misc/cxl/hcalls.h                     |  200 -
 drivers/misc/cxl/irq.c                        |  450 --
 drivers/misc/cxl/main.c                       |  383 --
 drivers/misc/cxl/native.c                     | 1592 -------
 drivers/misc/cxl/of.c                         |  346 --
 drivers/misc/cxl/pci.c                        | 2103 ---------
 drivers/misc/cxl/sysfs.c                      |  771 ----
 drivers/misc/cxl/trace.c                      |    9 -
 drivers/misc/cxl/trace.h                      |  691 ---
 drivers/misc/cxl/vphb.c                       |  309 --
 drivers/scsi/Kconfig                          |    1 -
 drivers/scsi/Makefile                         |    1 -
 drivers/scsi/cxlflash/Kconfig                 |   15 -
 drivers/scsi/cxlflash/Makefile                |    5 -
 drivers/scsi/cxlflash/backend.h               |   48 -
 drivers/scsi/cxlflash/common.h                |  340 --
 drivers/scsi/cxlflash/cxl_hw.c                |  177 -
 drivers/scsi/cxlflash/lunmgt.c                |  278 --
 drivers/scsi/cxlflash/main.c                  | 3970 -----------------
 drivers/scsi/cxlflash/main.h                  |  129 -
 drivers/scsi/cxlflash/ocxl_hw.c               | 1399 ------
 drivers/scsi/cxlflash/ocxl_hw.h               |   72 -
 drivers/scsi/cxlflash/sislite.h               |  560 ---
 drivers/scsi/cxlflash/superpipe.c             | 2218 ---------
 drivers/scsi/cxlflash/superpipe.h             |  150 -
 drivers/scsi/cxlflash/vlun.c                  | 1336 ------
 drivers/scsi/cxlflash/vlun.h                  |   82 -
 include/misc/cxl-base.h                       |   48 -
 include/misc/cxl.h                            |  265 --
 include/misc/cxllib.h                         |  129 -
 include/uapi/misc/cxl.h                       |  156 -
 include/uapi/scsi/cxlflash_ioctl.h            |  276 --
 .../filesystems/statmount/statmount_test.c    |   13 +-
 68 files changed, 49 insertions(+), 25819 deletions(-)
 rename Documentation/ABI/{obsolete => removed}/sysfs-class-cxl (87%)
 delete mode 100644 Documentation/arch/powerpc/cxl.rst
 delete mode 100644 Documentation/arch/powerpc/cxlflash.rst
 delete mode 100644 arch/powerpc/platforms/powernv/pci-cxl.c
 delete mode 100644 drivers/misc/cxl/Kconfig
 delete mode 100644 drivers/misc/cxl/Makefile
 delete mode 100644 drivers/misc/cxl/api.c
 delete mode 100644 drivers/misc/cxl/base.c
 delete mode 100644 drivers/misc/cxl/context.c
 delete mode 100644 drivers/misc/cxl/cxl.h
 delete mode 100644 drivers/misc/cxl/cxllib.c
 delete mode 100644 drivers/misc/cxl/debugfs.c
 delete mode 100644 drivers/misc/cxl/fault.c
 delete mode 100644 drivers/misc/cxl/file.c
 delete mode 100644 drivers/misc/cxl/flash.c
 delete mode 100644 drivers/misc/cxl/guest.c
 delete mode 100644 drivers/misc/cxl/hcalls.c
 delete mode 100644 drivers/misc/cxl/hcalls.h
 delete mode 100644 drivers/misc/cxl/irq.c
 delete mode 100644 drivers/misc/cxl/main.c
 delete mode 100644 drivers/misc/cxl/native.c
 delete mode 100644 drivers/misc/cxl/of.c
 delete mode 100644 drivers/misc/cxl/pci.c
 delete mode 100644 drivers/misc/cxl/sysfs.c
 delete mode 100644 drivers/misc/cxl/trace.c
 delete mode 100644 drivers/misc/cxl/trace.h
 delete mode 100644 drivers/misc/cxl/vphb.c
 delete mode 100644 drivers/scsi/cxlflash/Kconfig
 delete mode 100644 drivers/scsi/cxlflash/Makefile
 delete mode 100644 drivers/scsi/cxlflash/backend.h
 delete mode 100644 drivers/scsi/cxlflash/common.h
 delete mode 100644 drivers/scsi/cxlflash/cxl_hw.c
 delete mode 100644 drivers/scsi/cxlflash/lunmgt.c
 delete mode 100644 drivers/scsi/cxlflash/main.c
 delete mode 100644 drivers/scsi/cxlflash/main.h
 delete mode 100644 drivers/scsi/cxlflash/ocxl_hw.c
 delete mode 100644 drivers/scsi/cxlflash/ocxl_hw.h
 delete mode 100644 drivers/scsi/cxlflash/sislite.h
 delete mode 100644 drivers/scsi/cxlflash/superpipe.c
 delete mode 100644 drivers/scsi/cxlflash/superpipe.h
 delete mode 100644 drivers/scsi/cxlflash/vlun.c
 delete mode 100644 drivers/scsi/cxlflash/vlun.h
 delete mode 100644 include/misc/cxl-base.h
 delete mode 100644 include/misc/cxl.h
 delete mode 100644 include/misc/cxllib.h
 delete mode 100644 include/uapi/misc/cxl.h
 delete mode 100644 include/uapi/scsi/cxlflash_ioctl.h

-- 
2.48.1
Re: (subset) [PATCH v2 0/2] Remove cxl and cxlflash drivers
Posted by Martin K. Petersen 1 month ago
On Mon, 03 Feb 2025 18:27:58 +1100, Andrew Donnellan wrote:

> This series removes the cxl and cxlflash drivers for IBM CAPI devices.
> 
> 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. Removing these
> drivers will also mean we can get rid of a non-trivial amount of support
> code in arch/powerpc.
> 
> [...]

Applied to 6.15/scsi-queue, thanks!

[1/2] cxlflash: Remove driver
      https://git.kernel.org/mkp/scsi/c/772ba9b5bd27

-- 
Martin K. Petersen	Oracle Linux Engineering