Skip to content

CXL: add test workflow for dynamic capacity device

[email protected] kdevops 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4qemu: Add QMP connection option for QMP interface accessplaybooks/roles/gen_nodes/defaults/main.yml playbooks/roles/gen_nodes/templates/Vagrantfile.j2 scripts/gen-nodes.Makefile +1 more+35 -00 replies
2/4CXL: Add a new topology to support DCD device emulationplaybooks/roles/gen_nodes/defaults/main.yml playbooks/roles/gen_nodes/templates/Vagrantfile.j2 scripts/gen-nodes.Makefile +1 more+20 -30 replies
3/4CXL: Add new make command to create DC region for DCD deviceplaybooks/roles/cxl/tasks/cxl-create-dc-region/main.yml playbooks/roles/cxl/tasks/main.yml workflows/cxl/Makefile+37 -00 replies
4/4CXL: Setup DCD device as onlined system memoryplaybooks/roles/cxl/defaults/main.yml playbooks/roles/cxl/tasks/cxl-dcd-setup/main.yml playbooks/roles/cxl/tasks/main.yml +1 more+106 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] CXL: add test workflow for dynamic capacity device

From: Fan Ni <[email protected]>

The patch series add test workflow for CXL dynamic capacity device (DCD) in Qemu.

Patch 1: add new options in kconfig to enable qmp interface for qemu so qemu can be launched with qmp interface enabled, which is needed for CXL test like error injection, dynamic capacity extent add/release.
Patch 2: add a new cxl topology where a DCD device is directly attached to the root port of a host bridge. For the device itself, it has no static volatile or non-volatile capacity but only dynamic regions with no DC extents added yet. Path 3: add a new make command "cxl-create-dc-region" to create DC region for dynamic capacity, which is needed before dc extents can be added. We also fixed "make cxl" command as the regular cxl-mem-setup worklfow does not work for dcd device.
Patch 4: add a new make command "cxl-dcd-setup" to add dc extents, and convert dynamic capacity to system ram and online it.

With the patch series, we can play with DCD device in two ways, First workflow:
After system bringup, run "make cxl" which will create DC region, create dax device and convert it to system ram.

The other workflow:
After system bringup, and if ndctl is already available in the guest, perform the following two steps:
1) make cxl-create-dc-region: create a DC region;
2) make cxl-dcd-setup: add dc extents, create dax device and convert it to system ram.

Fan Ni (4):
qemu: Add QMP connection option for QMP interface access
CXL: Add a new topology to support DCD device emulation
CXL: Add new make command to create DC region for DCD device
CXL: Setup DCD device as onlined system memory

 playbooks/roles/cxl/defaults/main.yml         |  2 +
 .../cxl/tasks/cxl-create-dc-region/main.yml   | 27 +++++++
 .../roles/cxl/tasks/cxl-dcd-setup/main.yml    | 79 +++++++++++++++++++
 playbooks/roles/cxl/tasks/main.yml            | 16 ++++
 playbooks/roles/gen_nodes/defaults/main.yml   |  4 +
 .../roles/gen_nodes/templates/Vagrantfile.j2  | 19 ++++-
 scripts/gen-nodes.Makefile                    | 12 +++
 vagrant/Kconfig                               | 23 ++++++
 workflows/cxl/Makefile                        | 19 ++++-
 9 files changed, 197 insertions(+), 4 deletions(-)
 create mode 100644 playbooks/roles/cxl/tasks/cxl-create-dc-region/main.yml
 create mode 100644 playbooks/roles/cxl/tasks/cxl-dcd-setup/main.yml
Signature · 1 line
2.42.0