Skip to content

RFC cxl: Region attach for accelerators

Dan Williams linux-cxl lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cxl/mem: Add support to cleanly continue after attachdrivers/cxl/mem.c+13 -12 replies
2/4cxl/region: Move region lock error code to -EBUSYdrivers/cxl/core/region.c+1 -10 replies
3/4cxl/region: Block region delete for locked regionsdrivers/cxl/core/region.c+6 -30 replies
4/4cxl/region: Introduce cxl_memdev_attach_regiondrivers/cxl/core/region.c include/cxl/cxl.h+141 -08 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] cxl: Region attach for accelerators

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

Signature · 1 line
2.53.0