Linux CXL
 help / color / mirror / Atom feed
* [PATCH 0/4] cxl/region: Update and test performance calculations
@ 2026-11-05  3:28 Alison Schofield
  2026-11-05  3:28 ` [PATCH 1/4] cxl/region: Calculate performance data once all targets are attached Alison Schofield
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Alison Schofield @ 2026-11-05  3:28 UTC (permalink / raw)
  To: Davidlohr Bueso, Jonathan Cameron, Dave Jiang, Alison Schofield,
	Vishal Verma, Ira Weiny, Li Ming, Richard Cheng
  Cc: linux-cxl

CXL regions expose latency and bandwidth through their access0 and access1
attributes. The same performance data also contributes to NUMA node access
coordinates and memory tier placement.

This series updates region performance calculation and reporting,
consolidates the completion-time operations, and adds cxl_test support
for validating the results.

This work was prompted by AI-assisted patch reviews that identified ways
stale contributions from failed or removed targets could affect region
performance data.

Patch 1 addresses stale contributions to region performance data by
recalculating from the attached targets only when the region completes.

Patch 2 makes region access attributes visible as soon as performance
data is available.

Patch 3 consolidates the three completion-time operations into one helper
shared by user-created and autodiscovered regions.

Patch 4 assigns distinct latency and bandwidth values to cxl_test memdevs
so that region performance calculations can be tested.

A new CXL unit test will be posted separately.
Testing with cxl_test:
- With all four patches, the new test and existing ndctl CXL tests pass.
- Without patch 1, rejected, cleared, and rebuilt target cases report
  incorrect latency or bandwidth.
- Without patch 2, the region access0 and access1 directories remain empty.

Based on v7.4-rc1.


Alison Schofield (4):
  cxl/region: Calculate performance data once all targets are attached
  cxl/region: Show access attributes once performance data is calculated
  cxl/region: Consolidate region performance completion
  cxl/test: Give each mock memdev its own performance data

 drivers/cxl/core/cdat.c      | 19 +++++++++++++++--
 drivers/cxl/core/region.c    | 40 +++++++++++++++++++++---------------
 drivers/cxl/cxl.h            |  3 +--
 tools/testing/cxl/test/cxl.c | 21 ++++++++++++++-----
 4 files changed, 57 insertions(+), 26 deletions(-)


base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
-- 
2.37.3


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

end of thread, other threads:[~2026-11-10 18:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-05  3:28 [PATCH 0/4] cxl/region: Update and test performance calculations Alison Schofield
2026-11-05  3:28 ` [PATCH 1/4] cxl/region: Calculate performance data once all targets are attached Alison Schofield
2026-11-06  5:51   ` Li Ming
2026-11-05  3:28 ` [PATCH 2/4] cxl/region: Show access attributes once performance data is calculated Alison Schofield
2026-11-06  6:11   ` Li Ming
2026-11-05  3:28 ` [PATCH 3/4] cxl/region: Consolidate region performance completion Alison Schofield
2026-11-06  6:15   ` Li Ming
2026-11-06 18:25     ` Alison Schofield
2026-11-10 13:07   ` Li Ming
2026-11-05  3:28 ` [PATCH 4/4] cxl/test: Give each mock memdev its own performance data Alison Schofield
2026-11-06  6:16   ` Li Ming
2026-11-10 18:31 ` [PATCH 0/4] cxl/region: Update and test performance calculations Dave Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox