Skip to content

cxl/region: create-region command and unit

Alison Schofield linux-cxl nvdimm 1 version Applied

Status from this message: Applied to pending for NDCTL v86

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7test/cxl-create-region.sh: fold in XOR coveragetest/cxl-create-region.sh test/cxl-xor-region.sh test/meson.build+108 -1310 replies
2/7test/cxl-create-region.sh: deduplicate topology lookupstest/cxl-create-region.sh+48 -510 replies
3/7cxl/region: parse comma-separated target listscxl/region.c test/cxl-create-region.sh+84 -90 replies
4/7cxl/region: reject duplicate or unknown target memdevscxl/region.c test/cxl-create-region.sh+110 -00 replies
5/7cxl/region: release reserved DPA when region creation failscxl/region.c test/cxl-create-region.sh+85 -20 replies
6/7cxl/region: validate granularity before region creationcxl/region.c test/cxl-create-region.sh+38 -100 replies
7/7cxl/region: document --decoder as requiredDocumentation/cxl/cxl-create-region.txt+3 -40 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDave Jiang
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

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

Read the v1 thread

Cover letter [ndctl PATCH 0/7] cxl/region: create-region command and unit

While working to enhance the cxl-cli cxl-create-region command to handle out-of-order target lists or no user-supplied target list, I ran into some basic issues in the existing command that need to be addressed first.

Patches 1-2 consolidate and clean up the existing create-region tests.

Patches 3-6 fix target-list parsing and validation, release DPA after a failed create, and move granularity validation ahead of region creation. Each fix adds a test case for the problem it addresses.

Patch 7 corrects the documentation to reflect that --decoder is currently required. Automatic root decoder selection will be considered separately with the upcoming create-region usability work.

Developing tests for these fixes exposed two bugs and a topology gap in the cxl_test mock module. A companion cxl_test series is here [1].

[1] https://lore.kernel.org/linux-cxl/[email protected]/

Alison Schofield (7):
test/cxl-create-region.sh: fold in XOR coverage test/cxl-create-region.sh: deduplicate topology lookups cxl/region: parse comma-separated target lists cxl/region: reject duplicate or unknown target memdevs cxl/region: release reserved DPA when region creation fails cxl/region: validate granularity before region creation cxl/region: document --decoder as required

 Documentation/cxl/cxl-create-region.txt |   7 +-
 cxl/region.c                            | 139 ++++++++--
 test/cxl-create-region.sh               | 338 ++++++++++++++++++++++--
 test/cxl-xor-region.sh                  | 129 ---------
 test/meson.build                        |   2 -
 5 files changed, 442 insertions(+), 173 deletions(-)
 delete mode 100644 test/cxl-xor-region.sh
Signature · 1 line
2.37.3