cxl_region and cxl_memdev drivers
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest23 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/23 | cxl: Move cxl_core to new directoryDocumentation/ drivers/ drivers/ +1 more | +9 | 0 replies | |
| 2/23 | cxl/core: Improve CXL core kernel docsdrivers/ | +9 | 0 replies | |
| 3/23 | cxl/core: Extract register and pmem functionalityDocumentation/ drivers/ drivers/ +4 more | +467 | 0 replies | |
| 4/23 | cxl/mem: Move character device region creationdrivers/ drivers/ drivers/ | +15 | 0 replies | |
| 5/23 | cxl: Pass fops and shutdown to memdev creationdrivers/ drivers/ | +17 | 0 replies | |
| 6/23 | cxl/core: Move memdev management to coredrivers/ drivers/ drivers/ +2 more | +237 | 0 replies | |
| 7/23 | cxl/pci: Ignore unknown register block typesdrivers/ | +12 | 0 replies | |
| 8/23 | cxl/pci: Simplify register setupdrivers/ drivers/ drivers/ | +13 | 0 replies | |
| 9/23 | cxl/pci: Retain map information in cxl_mem_probedrivers/ | +6 | 0 replies | |
| 10/23 | cxl/decoder: Support parentless decodersdrivers/ drivers/ drivers/ | +34 | 1 reply | |
| 11/23 | cxl: Enable an endpoint decoder typedrivers/ drivers/ drivers/ | +75 | 0 replies | |
| 12/23 | cxl/region: Add region creation ABIDocumentation/ Documentation/ drivers/ +6 more | +307 | 3 replies | |
| 13/23 | cxl/region: Introduce concept of region configurationDocumentation/ drivers/ drivers/ +1 more | +259 | 0 replies | |
| 14/23 | cxl: Convert driver id to an enumdrivers/ | +6 | 0 replies | |
| 15/23 | cxl/region: Introduce a cxl_region driverDocumentation/ drivers/ drivers/ +6 more | +178 | 0 replies | |
| 16/23 | cxl/core: Convert decoder range to resourcedrivers/ drivers/ drivers/ | +6 | 0 replies | |
| 17/23 | cxl/region: Handle region's address space allocationdrivers/ drivers/ drivers/ | +51 | 0 replies | |
| 18/23 | cxl/region: Only allow CXL capable targetsdrivers/ drivers/ | +12 | 0 replies | |
| 19/23 | cxl/mem: Introduce CXL mem driverdrivers/ drivers/ drivers/ +3 more | +57 | 0 replies | |
| 20/23 | cxl/memdev: Determine CXL.mem capabilitydrivers/ drivers/ drivers/ +3 more | +65 | 0 replies | |
| 21/23 | cxl/mem: Check that the device is CXL.mem capabledrivers/ drivers/ drivers/ +2 more | +49 | 0 replies | |
| 22/23 | cxl/mem: Add device as a portdrivers/ drivers/ | +13 | 0 replies | |
| 23/23 | cxl/core: Map component registers for portsdrivers/ drivers/ drivers/ +3 more | +56 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH RFCish 00/23] cxl_region and cxl_memdev drivers
I will be going on vacation for the next two weeks so I'm sending out everything I have, even though it's not fully baked so that folks who might want to continue it while I'm gone, can do so. Many of these patches have already been sent as separate series, or RFC.
The ultimate goal of this series is to create two new driver types, cxl_region, and cxl_memdev. The cxl_region driver is responsible for region creation and configuration, and the cxl_memdev driver is responsible for handling the CXL specific (non-PCI) parts of CXL endpoints. In order to establish that in a clean way, the cxl_core driver needed quite a bit of rework. The next step is to complete the HDM decoder programming.
What's specifically not fully baked is the cxl_pci driver claims part of the component register space, but the cxl_memdev driver also wants this resource. Better coordination here needs to happen, most likely the cxl_pci driver must relinquish any resources it won't be needing. Some of the patches started to enable making that easy, but it's not complete and as a result I believe these patches will OOPS (there may be other issues as well).
If you feel like reviewing any of these patches, that'd be great, but I'm equally happy to resubmit when I'm back and have things fully working.
Patch breakdown
1-11: cxl_core reorganization
12-18: cxl_region driver
19-23: cxl_memdev driver
These patches can be obtained from my gitlab as well:
https://gitlab.com/bwidawsk/linux/-/tree/cxl_memdrver2
Ben Widawsky (23):
cxl: Move cxl_core to new directory cxl/core: Improve CXL core kernel docs cxl/core: Extract register and pmem functionality cxl/mem: Move character device region creation
cxl: Pass fops and shutdown to memdev creation cxl/core: Move memdev management to core cxl/pci: Ignore unknown register block types cxl/pci: Simplify register setup
cxl/pci: Retain map information in cxl_mem_probe cxl/decoder: Support parentless decoders
cxl: Enable an endpoint decoder type cxl/region: Add region creation ABI cxl/region: Introduce concept of region configuration
cxl: Convert driver id to an enum cxl/region: Introduce a cxl_region driver cxl/core: Convert decoder range to resource cxl/region: Handle region's address space allocation cxl/region: Only allow CXL capable targets cxl/mem: Introduce CXL mem driver cxl/memdev: Determine CXL.mem capability cxl/mem: Check that the device is CXL.mem capable cxl/mem: Add device as a port
cxl/core: Map component registers for ports
Documentation/ABI/testing/sysfs-bus-cxl | 53 ++
.../driver-api/cxl/memory-devices.rst | 25 +-
drivers/cxl/Makefile | 9 +-
drivers/cxl/acpi.c | 44 +-
drivers/cxl/core/Makefile | 5 +
drivers/cxl/{core.c => core/bus.c} | 711 +++++++-----------
drivers/cxl/core/core.h | 22 +
drivers/cxl/core/memdev.c | 230 ++++++
drivers/cxl/core/pmem.c | 201 +++++
drivers/cxl/core/region.c | 389 ++++++++++
drivers/cxl/core/regs.c | 235 ++++++
drivers/cxl/cxl.h | 67 +-
drivers/cxl/mem.c | 94 +++
drivers/cxl/mem.h | 19 +
drivers/cxl/pci.c | 325 ++------
drivers/cxl/pci.h | 8 +-
drivers/cxl/region.c | 134 ++++
drivers/cxl/region.h | 34 +
drivers/cxl/trace.h | 33 +
19 files changed, 1867 insertions(+), 771 deletions(-)
create mode 100644 drivers/cxl/core/Makefile
rename drivers/cxl/{core.c => core/bus.c} (55%)
create mode 100644 drivers/cxl/core/core.h
create mode 100644 drivers/cxl/core/memdev.c
create mode 100644 drivers/cxl/core/pmem.c
create mode 100644 drivers/cxl/core/region.c
create mode 100644 drivers/cxl/core/regs.c
create mode 100644 drivers/cxl/mem.c
create mode 100644 drivers/cxl/region.c
create mode 100644 drivers/cxl/region.h
create mode 100644 drivers/cxl/trace.hSignature · 1 line
2.32.0