Skip to content

ndctl: Back-Invalidate support

Davidlohr Bueso linux-cxl 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 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2test/cxl-back-invalidate.sh: add a Back-Invalidate region testtest/cxl-back-invalidate.sh test/meson.build+113 -00 replies
2/2libcxl: report Back-Invalidate decoder stateDocumentation/cxl/lib/libcxl.txt cxl/json.c cxl/lib/libcxl.c +3 more+43 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH -ndctl 0/2] ndctl: Back-Invalidate support

Hello,

The kernel's Back-Invalidate series, now in cxl/next [1], adds two sysfs
attributes: cap_back_invalidate on a root decoder, set for a CFMWS window carrying the BI restriction, and back_invalidate on an endpoint decoder, set while it decodes an HDM-DB region. It also gives cxl_test a BI window with BI-capable endpoints below it.

Patch 1 adds a cxl_test unit test: a region created on the BI root decoder comes up device-coherent with back_invalidate set, and a cxl_acpi rebind replays it with the model intact. It skips on kernels without a BI window.

Patch 2 has libcxl read both attributes, reported by cxl list as back_invalidate_capable on a root decoder and back_invalidate on an endpoint decoder.

Tested with meson test --suite cxl against cxl/next d337784de533, 17/17 with this test included.

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

Thanks!

Davidlohr Bueso (2):
test/cxl-back-invalidate.sh: add a Back-Invalidate region test
libcxl: report Back-Invalidate decoder state

 Documentation/cxl/lib/libcxl.txt |   2 +
 cxl/json.c                       |  16 +++++
 cxl/lib/libcxl.c                 |  15 +++++
 cxl/lib/libcxl.sym               |   6 ++
 cxl/lib/private.h                |   2 +
 cxl/libcxl.h                     |   2 +
 test/cxl-back-invalidate.sh      | 111 +++++++++++++++++++++++++++++++
 test/meson.build                 |   2 +
 8 files changed, 156 insertions(+)
 create mode 100755 test/cxl-back-invalidate.sh
Signature · 1 line
2.39.5