Skip to content

RFC cxl: Preparation of type2 accelerators support

Huang Ying linux-cxl lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cxl: Rename ACPI_CEDT_CFMWS_RESTRICT_TYPE2/TYPE3drivers/cxl/acpi.c drivers/cxl/core/port.c drivers/cxl/cxl.h +2 more+29 -292 replies
2/5cxl: Rename CXL_DECODER_HOSTONLYMEM/DEVMEMdrivers/cxl/acpi.c drivers/cxl/core/hdm.c drivers/cxl/core/port.c +3 more+18 -182 replies
3/5cxl: Separate coherence from target typedrivers/cxl/core/hdm.c drivers/cxl/core/mbox.c drivers/cxl/core/port.c +3 more+71 -105 replies
4/5cxl: Set type of region to that of the first endpointdrivers/cxl/acpi.c drivers/cxl/core/hdm.c drivers/cxl/core/port.c +2 more+23 -225 replies
5/5cxl: Avoid to create dax regions for type2 acceleratorsdrivers/cxl/core/region.c+8 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchDavidlohr BuesoGregory Price
1/5R-b R-b
2/5R-b R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 0/5] cxl: Preparation of type2 accelerators support

There have been 2 series to add type 2 accelerators support in [1] and [2].

[1] https://lore.kernel.org/linux-cxl/168592149709.1948938.8663425987110396027.stgit@dwillia2-xfh.jf.intel.com/
[2] https://lore.kernel.org/linux-cxl/[email protected]/

Both provide relative complete support, but both are long too. To make it easier to review, some preparation of type2 accelerators support is implemented in this series. More complete support can be implemented based on it.

This series has been tested with cxl_test via mocking a type2 accelerator as in [1] above. Because more type2 accelerators support than that provided by this series is needed to simulate the device, the cxl_test patch isn't included in the series.

Huang Ying (5):
cxl: Rename ACPI_CEDT_CFMWS_RESTRICT_TYPE2/TYPE3
cxl: Rename CXL_DECODER_HOSTONLYMEM/DEVMEM
cxl: Separate coherence from target type
cxl: Set type of region to that of the first endpoint
cxl: Avoid to create dax regions for type2 accelerators

 drivers/cxl/acpi.c           |  9 +++---
 drivers/cxl/core/hdm.c       | 38 +++++++++++++----------
 drivers/cxl/core/mbox.c      |  1 +
 drivers/cxl/core/port.c      | 17 ++++++-----
 drivers/cxl/core/region.c    | 58 ++++++++++++++++++++++++++++++------
 drivers/cxl/cxl.h            | 28 +++++++++++------
 drivers/cxl/cxlmem.h         | 11 +++++++
 include/acpi/actbl1.h        | 10 +++----
 tools/testing/cxl/test/cxl.c | 24 +++++++--------
 9 files changed, 133 insertions(+), 63 deletions(-)

Best Regards,
Huang, Ying