Skip to contentSkip to conversation

Compute Express Link (CXL) changes for 6.16

GIT PULL Merged Dave Jiang 2 participants 2 messages Jun 3, 2025

lore
Share & tools
lore

Dave Jiang

author
#0 lore raw

Hi Linus, please pull from

git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git tags/cxl-for-6.16

...to receive the changes for CXL subsystem.

A series of documentation additions and updates are included in this pull request. Gregory Price created a detailed set of documentation for the CXL sub-system explaining the CXL sub-system end to end. Note, that this documentation did elicit some strong reactions to the state of the CXL subsystem [1], but it is just documenting what already exists. There is general agreement that the long term direction of CXL needs to find a better ABI.

A series to connect CXL to EDAC for RAS features is also included in this pull request. The EDAC core changes were accepted in the previous kernel. The CXL changes now light up those EDAC changes for CXL RAS support.

In addition to these two large changes, there are a number of cleanups, fixes, and refactors to improve the CXL codebase. That includes a large refactor series from Robert Richter to prepare for AMD Zen5 translate code support.

These have all appeared in -next for a week or more with no reported issues.

[1]: https://lore.kernel.org/linux-cxl/[email protected]/

---

The following changes since commit b4432656b36e5cc1d50a1f2dc15357543add530e:

Linux 6.15-rc4 (2025-04-27 15:19:23 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git tags/cxl-for-6.16

for you to fetch changes up to 9f153b7fb5ae45c7d426851f896487927f40e501:

Merge branch 'for-6.16/cxl-features-ras' into cxl-for-next (2025-05-23 13:26:24 -0700)

----------------------------------------------------------------
CXL changes for v6.16

- Remove always true condition in cxl features code.
- Add verification of CHBS length for CXL 2.0
- Ignore interleave granularity when interleave ways is 1
- Add update addressing mising MODULE_DESCRIPTION for cxl_test
- A series of cleanups/refactor to prep for AMD Zen5 translate code
- Clean %pa debug printk in core/hdm.c
- Documentation updates
- Update to CXL Maturity Map
- Fixes to source linking in CXL documentation
- CXL documentation fixes, spelling corrections
- A large collection of CXL documentation for the entire CXL subsystem, including documentation on CXL related platform and firmware notes
- Remove redundant code of cxlctl_get_supported_features()
- Series to support CXL RAS Features
- Including "Patrol Scrub Control", "Error Check Scrub", "Performance Maitenance" and "Memory Sparing". The series connects CXL to EDAC.

----------------------------------------------------------------
Alison Schofield (3):
cxl: Sync up the driver-api/cxl documentation
Documentation: Update the CXL Maturity Map cxl/features: Remove the inline specifier from to_cxlfs()

Alok Tiwari (1):
cxl/Documentation: Fix typo in sysfs write_bandwidth attribute path

Dan Carpenter (1):
cxl/hdm: Clean up a debug printk

Dave Jiang (8):
cxl: Remove always true condition for cxlctl_validate_hw_command() cxl/test: Address missing MODULE_DESCRIPTION warnings for cxl_test Merge branch 'for-6.16/cxl-cleanups' into cxl-for-next
Merge branch 'for-6.16/cxl-docs' into cxl-for-next
cxl: docs/platform/cdat reference documentation
cxl: docs/platform/acpi/srat Add generic target documentation
cxl: doc/linux/access-coordinates Update access coordinates calculation methods Merge branch 'for-6.16/cxl-features-ras' into cxl-for-next

Gregory Price (18):
cxl: core/region - ignore interleave granularity when ways=1
cxl: update documentation structure in prep for new docs
cxl: docs - access-coordinates doc fixups
cxl: docs/devices - add cxl device and protocol reference
cxl: docs/platform/bios-and-efi documentation
cxl: docs/platform/acpi reference documentation
cxl: docs/platform/example-configs documentation
cxl: docs/linux - overview
cxl: docs/linux - early boot configuration
cxl: docs/linux - add cxl-driver theory of operation
cxl: docs/linux/cxl-driver - add example configurations
cxl: docs/linux/dax-driver documentation
cxl: docs/linux/memory-hotplug
cxl: docs/allocation/dax
cxl: docs/allocation/page-allocator
cxl: docs/allocation/reclaim
cxl: docs/allocation/hugepages
cxl: docs - add self-referencing cross-links

Li Ming (1):
cxl/feature: Remove redundant code of get supported features

Li Zhijian (1):
cxl/acpi: Verify CHBS length for CXL2.0

Robert Richter (14):
cxl: Remove else after return
cxl/pci: Moving code in cxl_hdm_decode_init()
cxl/pci: Add comments to cxl_hdm_decode_init()
cxl: Introduce parent_port_of() helper
cxl/region: Rename function to cxl_port_pick_region_decoder() cxl/region: Avoid duplicate call of cxl_port_pick_region_decoder() cxl/region: Move find_cxl_root() to cxl_add_to_region() cxl/port: Replace put_cxl_root() by a cleanup helper cxl/region: Factor out code to find the root decoder cxl/region: Factor out code to find a root decoder's region cxl/region: Add function to find a port's switch decoder by range cxl/region: Add a dev_warn() on registration failure cxl/region: Add a dev_err() on missing target list entries
cxl: Add a dev_dbg() when a decoder was added to a port

Shiju Jose (8):
EDAC: Update documentation for the CXL memory patrol scrub control feature
cxl: Update prototype of function get_support_feature_info() cxl/edac: Add CXL memory device patrol scrub control feature cxl/edac: Add CXL memory device ECS control feature
cxl/edac: Add support for PERFORM_MAINTENANCE command
cxl/edac: Support for finding memory operation attributes from the current boot cxl/edac: Add CXL memory device memory sparing control feature cxl/edac: Add CXL memory device soft PPR control feature

Sumanth Gavini (1):
docs: ABI: Fix "firwmare" to "firmware"

 Documentation/ABI/testing/sysfs-bus-cxl            |    4 +-
 .../driver-api/cxl/access-coordinates.rst          |   91 -
 Documentation/driver-api/cxl/allocation/dax.rst    |   60 +
 .../driver-api/cxl/allocation/hugepages.rst        |   32 +
 .../driver-api/cxl/allocation/page-allocator.rst   |   85 +
 .../driver-api/cxl/allocation/reclaim.rst          |   51 +
 .../driver-api/cxl/devices/device-types.rst        |  165 ++
 Documentation/driver-api/cxl/index.rst             |   46 +-
 .../driver-api/cxl/linux/access-coordinates.rst    |  178 ++
 Documentation/driver-api/cxl/linux/cxl-driver.rst  |  630 ++++++
 Documentation/driver-api/cxl/linux/dax-driver.rst  |   43 +
 Documentation/driver-api/cxl/linux/early-boot.rst  |  137 ++
 .../linux/example-configurations/hb-interleave.rst |  314 +++
 .../example-configurations/intra-hb-interleave.rst |  291 +++
 .../example-configurations/multi-interleave.rst    |  401 ++++
 .../linux/example-configurations/single-device.rst |  246 +++
 .../driver-api/cxl/linux/memory-hotplug.rst        |   78 +
 Documentation/driver-api/cxl/linux/overview.rst    |  103 +
 Documentation/driver-api/cxl/maturity-map.rst      |    6 +-
 Documentation/driver-api/cxl/platform/acpi.rst     |   76 +
 .../driver-api/cxl/platform/acpi/cedt.rst          |   62 +
 .../driver-api/cxl/platform/acpi/dsdt.rst          |   28 +
 .../driver-api/cxl/platform/acpi/hmat.rst          |   32 +
 .../driver-api/cxl/platform/acpi/slit.rst          |   21 +
 .../driver-api/cxl/platform/acpi/srat.rst          |   71 +
 .../driver-api/cxl/platform/bios-and-efi.rst       |  262 +++
 Documentation/driver-api/cxl/platform/cdat.rst     |  118 ++
 .../driver-api/cxl/platform/example-configs.rst    |   13 +
 .../platform/example-configurations/flexible.rst   |  296 +++
 .../example-configurations/hb-interleave.rst       |  107 +
 .../example-configurations/multi-dev-per-hb.rst    |   90 +
 .../example-configurations/one-dev-per-hb.rst      |  136 ++
 ...{memory-devices.rst => theory-of-operation.rst} |   27 +-
 Documentation/edac/memory_repair.rst               |   31 +
 Documentation/edac/scrub.rst                       |   76 +
 drivers/cxl/Kconfig                                |   71 +
 drivers/cxl/acpi.c                                 |   24 +-
 drivers/cxl/core/Makefile                          |    1 +
 drivers/cxl/core/cdat.c                            |    2 +-
 drivers/cxl/core/core.h                            |    4 +-
 drivers/cxl/core/edac.c                            | 2102 ++++++++++++++++++++
 drivers/cxl/core/features.c                        |   43 +-
 drivers/cxl/core/hdm.c                             |   11 +-
 drivers/cxl/core/mbox.c                            |   11 +-
 drivers/cxl/core/memdev.c                          |    5 +-
 drivers/cxl/core/pci.c                             |   50 +-
 drivers/cxl/core/port.c                            |   23 +-
 drivers/cxl/core/region.c                          |  189 +-
 drivers/cxl/cxl.h                                  |   23 +-
 drivers/cxl/cxlmem.h                               |   30 +
 drivers/cxl/mem.c                                  |    4 +
 drivers/cxl/port.c                                 |   15 +-
 drivers/edac/mem_repair.c                          |    9 +
 include/cxl/features.h                             |    2 +-
 include/linux/edac.h                               |    7 +
 tools/testing/cxl/Kbuild                           |    1 +
 tools/testing/cxl/test/cxl.c                       |    1 +
 tools/testing/cxl/test/mem.c                       |    1 +
 tools/testing/cxl/test/mock.c                      |    1 +
 59 files changed, 6770 insertions(+), 267 deletions(-)
 delete mode 100644 Documentation/driver-api/cxl/access-coordinates.rst
 create mode 100644 Documentation/driver-api/cxl/allocation/dax.rst
 create mode 100644 Documentation/driver-api/cxl/allocation/hugepages.rst
 create mode 100644 Documentation/driver-api/cxl/allocation/page-allocator.rst
 create mode 100644 Documentation/driver-api/cxl/allocation/reclaim.rst
 create mode 100644 Documentation/driver-api/cxl/devices/device-types.rst
 create mode 100644 Documentation/driver-api/cxl/linux/access-coordinates.rst
 create mode 100644 Documentation/driver-api/cxl/linux/cxl-driver.rst
 create mode 100644 Documentation/driver-api/cxl/linux/dax-driver.rst
 create mode 100644 Documentation/driver-api/cxl/linux/early-boot.rst
 create mode 100644 Documentation/driver-api/cxl/linux/example-configurations/hb-interleave.rst
 create mode 100644 Documentation/driver-api/cxl/linux/example-configurations/intra-hb-interleave.rst
 create mode 100644 Documentation/driver-api/cxl/linux/example-configurations/multi-interleave.rst
 create mode 100644 Documentation/driver-api/cxl/linux/example-configurations/single-device.rst
 create mode 100644 Documentation/driver-api/cxl/linux/memory-hotplug.rst
 create mode 100644 Documentation/driver-api/cxl/linux/overview.rst
 create mode 100644 Documentation/driver-api/cxl/platform/acpi.rst
 create mode 100644 Documentation/driver-api/cxl/platform/acpi/cedt.rst
 create mode 100644 Documentation/driver-api/cxl/platform/acpi/dsdt.rst
 create mode 100644 Documentation/driver-api/cxl/platform/acpi/hmat.rst
 create mode 100644 Documentation/driver-api/cxl/platform/acpi/slit.rst
 create mode 100644 Documentation/driver-api/cxl/platform/acpi/srat.rst
 create mode 100644 Documentation/driver-api/cxl/platform/bios-and-efi.rst
 create mode 100644 Documentation/driver-api/cxl/platform/cdat.rst
 create mode 100644 Documentation/driver-api/cxl/platform/example-configs.rst
 create mode 100644 Documentation/driver-api/cxl/platform/example-configurations/flexible.rst
 create mode 100644 Documentation/driver-api/cxl/platform/example-configurations/hb-interleave.rst
 create mode 100644 Documentation/driver-api/cxl/platform/example-configurations/multi-dev-per-hb.rst
 create mode 100644 Documentation/driver-api/cxl/platform/example-configurations/one-dev-per-hb.rst
 rename Documentation/driver-api/cxl/{memory-devices.rst => theory-of-operation.rst} (95%)
 create mode 100644 drivers/cxl/core/edac.c