Skip to content

RFC hw/cxl: Type 2 Device RFC

Ira Weiny linux-cxl qemu-devel 1 version In review

Get series with b4
b4 am [email protected] change-id 20230517-rfc-type2-dev-c2d661a29d96

Versions newest first

  1. v1 RFC Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hw/cxl: Use define for build bug detectioninclude/hw/cxl/cxl_component.h+4 -24 replies
2/5hw/cxl: Refactor component register initializationhw/cxl/cxl-component-utils.c include/hw/cxl/cxl_component.h+52 -570 replies
3/5hw/cxl: Derive a CXL accelerator device from Type-3docs/system/devices/cxl.rst hw/mem/cxl_type3.c include/hw/cxl/cxl_device.h +1 more+56 -00 replies
4/5hw/cxl/accel: Add Back-Invalidate decoder capbility structurehw/cxl/cxl-component-utils.c hw/mem/cxl_type3.c include/hw/cxl/cxl_component.h+25 -20 replies
5/5hw/cxl: Add UIO HDM decoder register fieldshw/cxl/cxl-component-utils.c include/hw/cxl/cxl_component.h+8 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchIra Weiny
SeriesNot-Yet-Signed-off-by
1/5
2/5
3/5Not-Yet-Signed-off-by
4/5Not-Yet-Signed-off-by
5/5Not-Yet-Signed-off-by

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

Read the v1 thread

Cover letter [PATCH RFC 0/5] hw/cxl: Type 2 Device RFC

Type 2 devices are not yet a reality. Developing core kernel support is difficult without some test device to model against.

Define a type 2 device 'cxl-accel'. This device is derived from the type 3 device and retains all that functionality for now.

Mock up a couple of accelerator features (Back Invalidate [BI] and Unordered IO [UIO]) as examples for the RFC. These have no functionality other than to report the features as present for software to key off of.

Defining these devices in qemu can be done with the following example:

...
-device cxl-accel,bus=sw0p0,volatile-memdev=cxl-ac-mem5,id=cxl-dev5,sn=0xCAFE0005
...

NOTE: I'm leaving off Michael Tsirkin for now because this is really rough and I'm mainly sending it out because it was talked about in the CXL community call on 5/16.

Not-Yet-Signed-off-by Ira Weiny <[email protected]>

---
Ira Weiny (5):
hw/cxl: Use define for build bug detection
hw/cxl: Refactor component register initialization hw/cxl: Derive a CXL accelerator device from Type-3 hw/cxl/accel: Add Back-Invalidate decoder capbility structure hw/cxl: Add UIO HDM decoder register fields

 docs/system/devices/cxl.rst    | 11 ++++++
 hw/cxl/cxl-component-utils.c   | 80 +++++++++++++++++++-----------------------
 hw/mem/cxl_type3.c             | 39 ++++++++++++++++++++
 include/hw/cxl/cxl_component.h | 51 +++++++++++++++++++--------
 include/hw/cxl/cxl_device.h    | 16 +++++++++
 include/hw/pci/pci_ids.h       |  1 +
 6 files changed, 141 insertions(+), 57 deletions(-)

---
base-commit: 8eb2a03258313f404ca0c8609a8f9009b9b4318c
change-id: 20230517-rfc-type2-dev-c2d661a29d96

Best regards,

Signature · 1 line
Ira Weiny <[email protected]>