Skip to content

cxl: Allow passthrough decoders with >16K granularity

Alison Schofield linux-cxl sashiko-reviews 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v32 patches 6 repliesSuperseded
  3. v22 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches1 replySuperseded

Changes in v4 from the cover letter

- Rebase on Linux 7.3-rc1
- Rename Patch 1 to focus on the region config failure that user sees
- Use Reported-by and Closes tags instead of Suggested-by in Patch 1
- Add and use a new granularity_is_valid() helper (RichardC)
- Update the Patch2 commit log to say computes 8K, not 16K (RichardC) Link to v3:
https://lore.kernel.org/linux-cxl/[email protected]/

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cxl/region: Allow regions with an unencodable passthrough granularityDocumentation/ABI/testing/sysfs-bus-cxl drivers/cxl/core/hdm.c drivers/cxl/core/region.c+30 -172 replies
2/2cxl/test: Add a 2-way 16K root decoder for passthrough testingtools/testing/cxl/test/cxl.c+46 -20 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchRichard ChengDave Jiang
1/2R-b R-b
2/2R-b R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/2] cxl: Allow passthrough decoders with >16K granularity

I kept RichardC and DaveJ tags as the helper is a mechanical refactor, not a behavior change. More/re-review is welcome.

Changes in v4:
- Rebase on Linux 7.3-rc1
- Rename Patch 1 to focus on the region config failure that user sees
- Use Reported-by and Closes tags instead of Suggested-by in Patch 1
- Add and use a new granularity_is_valid() helper (RichardC)
- Update the Patch2 commit log to say computes 8K, not 16K (RichardC) Link to v3:
https://lore.kernel.org/linux-cxl/[email protected]/

Changes in v3:
- Program the real IG encoding for an encodable non-interleaving granularity instead of always writing EIG=0 (RichardC, Sashiko)
- Update Patch 1 commit msg text and this cover letter text per above change Link to v2:
https://lore.kernel.org/linux-cxl/[email protected]/

Changes in v2:
- Rebased on Linux 7.2-rc1
- Only v1 feedback was from Sashiko and that was not an issue Link to v1:
https://lore.kernel.org/linux-cxl/[email protected]/

Begin Cover Letter:
Sashiko reported [1] that region creation fails when the interleave granularity accumulated below the root decoder exceeds the 16K maximum encodable in the interleave granularity (IG) field. The decoder that computes that granularity is a passthrough decoder, which does not consume the IG field, so no decoder in the path interleaves at the granularity being rejected.

The first patch avoids validating the interleave granularity of non-interleaving decoders, encodes the IG field as a don't-care only when the computed granularity is not encodable, and updates the sysfs ABI documentation accordingly.

The second patch extends cxl-test with a topology that allows a CXL unit test to cover this case.

A unit test update for this case is posted for review [2].

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/nvdimm/[email protected]/

Alison Schofield (2):
cxl/region: Allow regions with an unencodable passthrough granularity cxl/test: Add a 2-way 16K root decoder for passthrough testing

 Documentation/ABI/testing/sysfs-bus-cxl |  5 ++-
 drivers/cxl/core/hdm.c                  |  8 ++++-
 drivers/cxl/core/region.c               | 34 ++++++++++--------
 tools/testing/cxl/test/cxl.c            | 48 +++++++++++++++++++++++--
 4 files changed, 76 insertions(+), 19 deletions(-)

base-commit: cee9395acd8043be0644b25c34bfa86623f2b935

Signature · 1 line
2.37.3