From: Jonathan Cameron <jic23@kernel.org>
To: Alison Schofield <alison.schofield@intel.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>,
Dave Jiang <dave.jiang@intel.com>,
Vishal Verma <vishal.l.verma@intel.com>,
Ira Weiny <iweiny@kernel.org>, Li Ming <ming.li@zohomail.com>,
Robert Richter <rrichter@amd.com>,
linux-cxl@vger.kernel.org
Subject: Re: [PATCH v4 5/6] cxl/test: Add a topology to test mixed-granularity regions
Date: Fri, 21 Aug 2026 23:07:59 +0100 [thread overview]
Message-ID: <20260821230759.209cd190@jic23-huawei> (raw)
In-Reply-To: <dcba06f559a891950910348418b415aa614f399f.1787255388.git.alison.schofield@intel.com>
On Thu, 20 Aug 2026 16:31:23 -0700
Alison Schofield <alison.schofield@intel.com> wrote:
> Add a cxl_test topology for mixed-granularity region testing.
>
> modprobe cxl_test mixed_gran_regions=1 creates three host bridges,
> each with a passthrough host-bridge port above two switch levels
> and four endpoints, for twelve endpoints total.
Why the pass through HB?
I queried the 2 levels of switches in the docs patch - maybe
you already answered that (I haven't checked just yet)
The spec examples that do multi level interleave are all cross-HB, HB and
then switch.
>
> Two CFMWS windows are added:
> 1) A 2-way window at 4K gran over two host bridges, that hosts 8-way
> regions at 1K.
> 2) A 3-way window at 512 gran over three host bridges, that hosts
> 6-way regions at 256.
>
> Both windows also host the same-granularity regions their ways allow.
>
> Register every mock device through cxl_mock_platform_device_add() so
> the mock array is populated before platform_device_add(), matching the
> ordering the rest of cxl_test relies on to avoid the endpoint-probe
> race in commit d90f236f8b9e ("cxl/test: Update mock dev array before
> calling platform_device_add()").
>
> NULL-check the legacy topology arrays, which are left empty when
> mixed_gran_regions=1 selects the new topology.
>
> The default and existing special module params are unaffected.
>
> Signed-off-by: Alison Schofield <alison.schofield@intel.com>
next prev parent reply other threads:[~2026-08-21 22:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-20 23:31 [PATCH v4 0/6] cxl: Support mixed-granularity region interleaves Alison Schofield
2026-08-20 23:31 ` [PATCH v4 1/6] cxl/region: Warn on user region position mismatch Alison Schofield
2026-08-21 19:01 ` Jonathan Cameron
2026-08-20 23:31 ` [PATCH v4 2/6] cxl/region: Generalize endpoint position mapping Alison Schofield
2026-08-20 23:43 ` sashiko-bot
2026-08-21 20:16 ` Alison Schofield
2026-08-21 20:54 ` Jonathan Cameron
2026-08-24 5:46 ` Richard Cheng
2026-08-20 23:31 ` [PATCH v4 3/6] cxl/region: Support mixed-granularity auto regions Alison Schofield
2026-08-20 23:43 ` sashiko-bot
2026-08-21 22:23 ` Alison Schofield
2026-08-21 21:57 ` Jonathan Cameron
2026-08-20 23:31 ` [PATCH v4 4/6] cxl/region: Support mixed-granularity user created regions Alison Schofield
2026-08-21 22:00 ` Jonathan Cameron
2026-08-20 23:31 ` [PATCH v4 5/6] cxl/test: Add a topology to test mixed-granularity regions Alison Schofield
2026-08-21 22:07 ` Jonathan Cameron [this message]
2026-08-20 23:31 ` [PATCH v4 6/6] Documentation/cxl: Describe " Alison Schofield
2026-08-21 20:35 ` Jonathan Cameron
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=20260821230759.209cd190@jic23-huawei \
--to=jic23@kernel.org \
--cc=alison.schofield@intel.com \
--cc=dave.jiang@intel.com \
--cc=dave@stgolabs.net \
--cc=iweiny@kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=ming.li@zohomail.com \
--cc=rrichter@amd.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;
as well as URLs for NNTP newsgroup(s).