[RFC PATCH 0/4] cxl: Region attach for accelerators
From: Dan Williams
Date: Fri Apr 03 2026 - 17:02:02 EST
Here is a collection of proposed fixups to get basic CXL accelerator
driver attachment operational. The primary goal here is communicate the
auto-assembled region parameters to an accelerator driver while also
following existing CXL subsystem lifetime rules.
It is RFC due to lack of testing, but passing basic smoke tests so far.
It applies on top of the latest state of the for-7.1/cxl-type2-support
branch in cxl.git [1].
https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/log/?h=for-7.1/cxl-type2-support
Dan Williams (4):
cxl/mem: Add support to cleanly continue after attach
cxl/region: Move region lock error code to -EBUSY
cxl/region: Block region delete for locked regions
cxl/region: Introduce cxl_memdev_attach_region
include/cxl/cxl.h | 16 +++++
drivers/cxl/core/region.c | 136 ++++++++++++++++++++++++++++++++++++--
drivers/cxl/mem.c | 14 +++-
3 files changed, 161 insertions(+), 5 deletions(-)
base-commit: ccabeb15ced4c06eeff7e35d6a54e7835d3d160a
--
2.53.0