Skip to content

RFC Region Creation

Ben Widawsky linux-cxl 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cxl/region: Add region creation ABIDocumentation/ABI/testing/sysfs-bus-cxl Documentation/driver-api/cxl/memory-devices.rst drivers/cxl/Makefile +4 more+284 -12 replies
2/4cxl/region: Create attribute structure / verifyDocumentation/ABI/testing/sysfs-bus-cxl drivers/cxl/region.c+34 -13 replies
3/4cxl: Move cxl_memdev conversion helper to mem.hdrivers/cxl/mem.h drivers/cxl/pci.c+5 -50 replies
4/4cxl/region: Introduce concept of region configurationDocumentation/ABI/testing/sysfs-bus-cxl drivers/cxl/mem.h drivers/cxl/region.c+255 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] Region Creation

CXL interleave sets and non-interleave sets are described via regions. A region is specified in the CXL 2.0 specification and the purpose is to create a standardized way to preserve the region across reboots.

Introduced here is the basic mechanism to create and configure and delete a CXL region. Configuring a region simply means giving it a size, offset within the CFMWS window, UUID, and a target list. Enabling/activating a region, which ultimately means programming the HDM decoders in the chain, is left for later work.

The patches are only minimally tested so far in QEMU emulation and so x1 interleave is all that's supported.

Here is a sample topology (also in patch #4)

decoder1.0
├── create_region
├── delete_region
├── devtype
├── locked
├── region1.0:0
│   ├── offset
│   ├── size
│   ├── subsystem -> ../../../../../../../bus/cxl │   ├── target0
│   ├── uevent
│   ├── uuid
│   └── verify
├── size
├── start
├── subsystem -> ../../../../../../bus/cxl ├── target_list
├── target_type
└── uevent

Ben Widawsky (4):
cxl/region: Add region creation ABI cxl/region: Create attribute structure / verify
cxl: Move cxl_memdev conversion helper to mem.h cxl/region: Introduce concept of region configuration

 Documentation/ABI/testing/sysfs-bus-cxl       |  59 +++
 .../driver-api/cxl/memory-devices.rst         |   8 +
 drivers/cxl/Makefile                          |   2 +-
 drivers/cxl/core.c                            |  71 ++++
 drivers/cxl/cxl.h                             |  11 +
 drivers/cxl/mem.h                             |  26 ++
 drivers/cxl/pci.c                             |   5 -
 drivers/cxl/region.c                          | 400 ++++++++++++++++++
 8 files changed, 576 insertions(+), 6 deletions(-)
 create mode 100644 drivers/cxl/region.c
Signature · 1 line
2.32.0