All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] cxl: Fail region creation for a root decoder without a CXL window
@ 2026-12-04 13:57 Unsung Lee
  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
  0 siblings, 2 replies; 4+ messages in thread
From: Unsung Lee @ 2026-12-04 13:57 UTC (permalink / raw)
  To: linux-cxl
  Cc: linux-kernel, Davidlohr Bueso, Jonathan Cameron, Dave Jiang,
	Alison Schofield, Vishal Verma, Dan Williams, Ira Weiny, Li Ming,
	Richard Cheng, Ben Cheatham, Unsung Lee

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


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

end of thread, other threads:[~2026-12-04 14:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 13:57 [PATCH v2 0/2] cxl: Fail region creation for a root decoder without a CXL window Unsung Lee
2026-12-04 13:57 ` [PATCH v2 1/2] cxl/region: " Unsung Lee
2026-12-04 14:15   ` sashiko-bot
2026-12-04 13:57 ` [PATCH v2 2/2] cxl/acpi: Correct the add_cxl_resources() kernel-doc on a trimmed window Unsung Lee

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.