Linux CXL
 help / color / mirror / Atom feed
From: Davidlohr Bueso <dave@stgolabs.net>
To: alison.schofield@intel.com
Cc: dave.jiang@intel.com, linux-cxl@vger.kernel.org, dave@stgolabs.net
Subject: [PATCH -ndctl 0/2] ndctl: Back-Invalidate support
Date: Wed, 18 Nov 2026 18:30:26 -0800	[thread overview]
Message-ID: <cover.1795050773.git.dave@stgolabs.net> (raw)

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


             reply	other threads:[~2026-11-19  2:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19  2:30 Davidlohr Bueso [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1795050773.git.dave@stgolabs.net \
    --to=dave@stgolabs.net \
    --cc=alison.schofield@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=linux-cxl@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox