https://github.com/weiny2/ndctl/tree/dcd-region2-2024-11-03
CXL Dynamic Capacity Device (DCD) support is close to landing in the upstream kernel. cxl cli requires some modifications to best interact with those devices. This includes creating and viewing details of DCD regions. cxl-testing is also valuable in regression testing the kernel interfaces. Add preliminary patches with some fixes. Update cxl cli with DCD support and add cxl-testing. Signed-off-by: Ira Weiny <ira.we...@intel.com> --- Changes in v2: - Fan: properly init index. - Link to v1: https://patch.msgid.link/20241030-dcd-region2-v1-0-04600ba2b...@intel.com --- Ira Weiny (5): ndctl/cxl-events: Don't fail test until event counts are reported ndctl/cxl/region: Report max size for region creation ndctl: Separate region mode from decoder mode ndctl/cxl: Add extent output to region query ndctl/cxl/test: Add Dynamic Capacity tests Navneet Singh (1): cxl/region: Add creation of Dynamic capacity regions Documentation/cxl/cxl-list.txt | 4 + cxl/filter.h | 3 + cxl/json.c | 79 ++++- cxl/json.h | 3 + cxl/lib/libcxl.c | 248 +++++++++++++++- cxl/lib/libcxl.sym | 9 + cxl/lib/private.h | 19 +- cxl/libcxl.h | 99 ++++++- cxl/list.c | 3 + cxl/memdev.c | 7 +- cxl/region.c | 53 +++- test/cxl-dcd.sh | 656 +++++++++++++++++++++++++++++++++++++++++ test/cxl-events.sh | 8 +- test/meson.build | 2 + util/json.h | 1 + 15 files changed, 1173 insertions(+), 21 deletions(-) --- base-commit: 04815e5f8b87e02a4fb5a61aeebaa5cad25a15c3 change-id: 20241030-dcd-region2-2d0149eb8efd Best regards, -- Ira Weiny <ira.we...@intel.com>