All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] CXL: Add a loadable module for address translation
@ 2025-08-04  8:52 alison.schofield
  2025-08-04  8:52 ` [PATCH 1/3] cxl/region: Refactor address translation funcs for testing alison.schofield
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: alison.schofield @ 2025-08-04  8:52 UTC (permalink / raw)
  To: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Alison Schofield,
	Vishal Verma, Ira Weiny, Dan Williams
  Cc: linux-cxl

From: Alison Schofield <alison.schofield@intel.com>

This set doesn't have a base commit. It is based on cxl/next plus the
Poison by Region Offset patchset [1], plus the fix to Limit XOR map
application based on host bridge ways [2] which this test module exposed.

[1] https://lore.kernel.org/linux-cxl/cover.1754290144.git.alison.schofield@intel.com/
[2] https://lore.kernel.org/linux-cxl/20250804082357.2590809-1-alison.schofield@intel.com/

This series refactors CXL address translation code to support testing
and adds a dedicated test module for validation of the translation
calculations.

The work is presented in 3 patches:
1. Extracts the core translation logic into standalone, testable functions.
2. Provides access to XOR interleave calculations without exposing internal
   CXIMS structures to test modules.
3. Adds the test module that validates both Host to Device, and Device
   to Host address translations.

Accessing the core functions in the test module was implemented by 
adding the needed core/region functions to cxl_core_exports.c and 
adding a similar 'cxl_acpi_exports.c' to access the cxl/acpi.c funcs.

The companion CXL Unit Test script will be posted separately.


Alison Schofield (3):
  cxl/region: Refactor address translation funcs for testing
  cxl/acpi: Make the XOR calculations available for testing
  cxl/test: Add cxl_translate module for address translation testing

 drivers/cxl/acpi.c                     |  51 ++++-
 drivers/cxl/core/region.c              | 145 +++++++-----
 drivers/cxl/cxl.h                      |   3 +
 include/linux/acpi.h                   |   7 +
 tools/testing/cxl/Kbuild               |   1 +
 tools/testing/cxl/cxl_acpi_exports.c   |  13 ++
 tools/testing/cxl/cxl_core_exports.c   |  11 +
 tools/testing/cxl/test/Kbuild          |   2 +
 tools/testing/cxl/test/cxl_translate.c | 298 +++++++++++++++++++++++++
 9 files changed, 467 insertions(+), 64 deletions(-)
 create mode 100644 tools/testing/cxl/cxl_acpi_exports.c
 create mode 100644 tools/testing/cxl/test/cxl_translate.c

-- 
2.37.3


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

end of thread, other threads:[~2025-08-29  6:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-04  8:52 [PATCH 0/3] CXL: Add a loadable module for address translation alison.schofield
2025-08-04  8:52 ` [PATCH 1/3] cxl/region: Refactor address translation funcs for testing alison.schofield
2025-08-08 16:12   ` Jonathan Cameron
2025-08-29  6:21     ` Alison Schofield
2025-08-11 16:00   ` Dave Jiang
2025-08-29  6:34     ` Alison Schofield
2025-08-04  8:52 ` [PATCH 2/3] cxl/acpi: Make the XOR calculations available " alison.schofield
2025-08-08 16:19   ` Jonathan Cameron
2025-08-29  6:23     ` Alison Schofield
2025-08-13  2:54   ` dan.j.williams
2025-08-29  6:39     ` Alison Schofield
2025-08-04  8:52 ` [PATCH 3/3] cxl/test: Add cxl_translate module for address translation testing alison.schofield
2025-08-08 16:24   ` Jonathan Cameron
2025-08-29  6:26     ` 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.