All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -ndctl 0/2] ndctl: Back-Invalidate support
@ 2026-11-19  2:30 Davidlohr Bueso
  2026-11-19  2:30 ` [PATCH 1/2] test/cxl-back-invalidate.sh: add a Back-Invalidate region test Davidlohr Bueso
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Davidlohr Bueso @ 2026-11-19  2:30 UTC (permalink / raw)
  To: alison.schofield; +Cc: dave.jiang, linux-cxl, dave

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/cover.1794172701.git.dave@stgolabs.net/

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

-- 
2.39.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-19 21:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19  2:30 [PATCH -ndctl 0/2] ndctl: Back-Invalidate support Davidlohr Bueso
2026-11-19  2:30 ` [PATCH 1/2] test/cxl-back-invalidate.sh: add a Back-Invalidate region test Davidlohr Bueso
2026-11-19  2:30 ` [PATCH 2/2] libcxl: report Back-Invalidate decoder state Davidlohr Bueso
2026-11-19 21:56 ` [PATCH -ndctl 0/2] ndctl: Back-Invalidate support Alison Schofield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.