Re: [RFC PATCH] tools/testing/cxl: Support multi-decoder shared-dport topology

From: Alison Schofield

Date: Wed May 27 2026 - 21:41:00 EST


On Fri, May 22, 2026 at 06:31:49PM +0800, Richard Cheng wrote:
> On Thu, May 21, 2026 at 06:29:22PM +0800, Alison Schofield wrote:
> > On Thu, May 21, 2026 at 04:48:06PM +0800, Richard Cheng wrote:

big snip

> Hi Alison, thanks for the suggestion and I think this script is a better solution
> then my patch, though I would like to ask can you provide the implementation of
> reply_regions() here? it seems like a missing piece for me that I can't execute
> this script on my machine.

replay_region support first appeared in kernel 7.1-rc1
f3b1d2260703 tools/testing/cxl: Enable replay of user regions as auto regions

and the tooling support is on the ndctl pending branch:
https://github.com/pmem/ndctl/tree/pending
ccc1955b697f test/common: add helpers for CXL region replay testing
81c7cdd6cbcb test/cxl-region-replay.sh: add test of region replay workflow

>
> Secondly, I want to make sure do you have any decoder with targets, and with some decoder
> without targets ? I wonder your filter might report that case as buggy as well.

The filter only catches the specific signature (1+7) of the bug Robert fixed.
Other mixes like 2+5 aren't expected from this bug or from a correct kernel,
so the test isn't designed to catch them. If a future regression produced a
different ratio, this test wouldn't notice.

-- Alison

>
> But the overall intention I can see this can be reproduce by the current infrastructure.
>
> And yes I'll spend time to work on the region replay gap, I'll send patches once I finish the
> work.
>
> Best regards,
> Richard Cheng.
>
snip