From: Unsung Lee <unsung0317@gmail.com>
To: linux-cxl@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Davidlohr Bueso <dave@stgolabs.net>,
Jonathan Cameron <jic23@kernel.org>,
Dave Jiang <dave.jiang@intel.com>,
Alison Schofield <alison.schofield@intel.com>,
Vishal Verma <vishal.l.verma@intel.com>,
Dan Williams <djbw@kernel.org>, Ira Weiny <iweiny@kernel.org>,
Li Ming <ming.li@zohomail.com>, Richard Cheng <icheng@nvidia.com>,
Ben Cheatham <benjamin.cheatham@amd.com>,
Unsung Lee <unsung0317@gmail.com>
Subject: [PATCH v2 0/2] cxl: Fail region creation for a root decoder without a CXL window
Date: Fri, 4 Dec 2026 22:57:52 +0900 [thread overview]
Message-ID: <20261204135754.639574-1-unsung0317@gmail.com> (raw)
When add_cxl_resources() trims or removes a CXL window, the window's
root decoder stays registered without a resource, and creating a region
under it oopses. Patch 1 rejects region creation for such a decoder and
logs the decoder when it is left unpaired. Patch 2 corrects the
add_cxl_resources() kernel-doc.
On the kernel-doc question: the trimmed tail is not usable, and has not
been since pair_cxl_resource() was added in 0f157c7fa1a0, because a
root decoder is only paired with a window that covers its whole HPA
range. Making the tail usable would need a different pairing and HPA
allocation, which is beyond this fix, so patch 2 changes the comment to
match the code.
Changes since v1:
- Shortened the commit message; setup details moved below --- (Alison)
- dev_dbg() for a root decoder left without a window (Alison)
- New patch 2 for the kernel-doc (Alison)
- Rebased on cxl/next 5ee57f66c2
Test details are below the --- line in patch 1.
An AI coding assistant was used to analyze the bug, draft changelogs,
and automate the QEMU testing. I reviewed the text and the results.
v1: https://lore.kernel.org/linux-cxl/20261121105714.1542859-1-unsung0317@gmail.com/
Unsung Lee (2):
cxl/region: Fail region creation for a root decoder without a CXL
window
cxl/acpi: Correct the add_cxl_resources() kernel-doc on a trimmed
window
drivers/cxl/acpi.c | 18 ++++++++++++++----
drivers/cxl/core/region.c | 2 +-
2 files changed, 15 insertions(+), 5 deletions(-)
base-commit: 5ee57f66c2cc4565b35967ef64a02de2df1fe0ab
--
2.34.1
next reply other threads:[~2026-12-04 13:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 13:57 Unsung Lee [this message]
2026-12-04 13:57 ` [PATCH v2 1/2] cxl/region: " Unsung Lee
2026-12-04 13:57 ` [PATCH v2 2/2] cxl/acpi: Correct the add_cxl_resources() kernel-doc on a trimmed window Unsung Lee
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=20261204135754.639574-1-unsung0317@gmail.com \
--to=unsung0317@gmail.com \
--cc=alison.schofield@intel.com \
--cc=benjamin.cheatham@amd.com \
--cc=dave.jiang@intel.com \
--cc=dave@stgolabs.net \
--cc=djbw@kernel.org \
--cc=icheng@nvidia.com \
--cc=iweiny@kernel.org \
--cc=jic23@kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.li@zohomail.com \
--cc=vishal.l.verma@intel.com \
/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
all inboxes | Powered by JetHome®