cxl/region: create-region command and unit
Status from this message: Applied to pending for NDCTL v86
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | test/cxl-create-region.sh: fold in XOR coveragetest/ test/ test/ | +108 | 0 replies | |
| 2/7 | test/cxl-create-region.sh: deduplicate topology lookupstest/ | +48 | 0 replies | |
| 3/7 | cxl/region: parse comma-separated target listscxl/ test/ | +84 | 0 replies | |
| 4/7 | cxl/region: reject duplicate or unknown target memdevscxl/ test/ | +110 | 0 replies | |
| 5/7 | cxl/region: release reserved DPA when region creation failscxl/ test/ | +85 | 0 replies | |
| 6/7 | cxl/region: validate granularity before region creationcxl/ test/ | +38 | 0 replies | |
| 7/7 | cxl/region: document --decoder as requiredDocumentation/ | +3 | 0 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.
| Patch | Dave Jiang |
|---|---|
| Series | R-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.
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