Linux CXL
 help / color / mirror / Atom feed
From: Robert Richter <rrichter@amd.com>
To: Alison Schofield <alison.schofield@intel.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>,
	Jonathan Cameron <jic23@kernel.org>,
	Dave Jiang <dave.jiang@intel.com>,
	Vishal Verma <vishal.l.verma@intel.com>,
	Ira Weiny <iweiny@kernel.org>, Dan Williams <djbw@kernel.org>,
	Li Ming <ming.li@zohomail.com>,
	linux-cxl@vger.kernel.org
Subject: Re: [PATCH v2 1/6] cxl/region: Validate interleave selector bits
Date: Fri, 26 Jun 2026 17:21:05 +0200	[thread overview]
Message-ID: <aj6Y4VLUdPjF-pAP@rric.localdomain> (raw)
In-Reply-To: <aj5kbdsqLPge-rkT@rric.localdomain>

On 26.06.26 13:37:22, Robert Richter wrote:
> On 11.06.26 10:47:25, Alison Schofield wrote:

> > @@ -2067,6 +2062,11 @@ static int cxl_region_attach(struct cxl_region *cxlr,
> >  		return -ENXIO;
> >  	}
> >  
> > +	/* Keep this patch bisectable until position arithmetic is updated */
> > +	if (cxlrd->cxlsd.cxld.interleave_granularity >
> > +	    p->interleave_granularity)
> > +		return -ENXIO;
> > +
> 
> Hmm, that looks odd, even if it's only temporary. Could you explain
> why that is needed here.

Ok, I missed the point that the iterator stops at !is_cxl_root(iter)
and thus does not consider the cfmws interleaving configs of the root
decoders here, which are not part of the parent selector bit mask
then.

That creates a 4th selector bit mask for the root decoders to keep
track of. With that added I think all the stride handling in patch #3
to calculate the endpoint positions can be simplified.

-Robert

  reply	other threads:[~2026-06-26 15:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-11 17:47 [PATCH v2 0/6] cxl: Support mixed-granularity region interleaves Alison Schofield
2026-06-11 17:47 ` [PATCH v2 1/6] cxl/region: Validate interleave selector bits Alison Schofield
2026-06-26 11:37   ` Robert Richter
2026-06-26 15:21     ` Robert Richter [this message]
2026-07-08  2:05       ` Alison Schofield
2026-07-08  2:00     ` Alison Schofield
2026-06-11 17:47 ` [PATCH v2 2/6] cxl/region: Derive port granularity from " Alison Schofield
2026-06-26 12:09   ` Robert Richter
2026-07-08  2:09     ` Alison Schofield
2026-06-11 17:47 ` [PATCH v2 3/6] cxl/region: Account for mixed-granularity in position calculations Alison Schofield
2026-06-11 18:01   ` sashiko-bot
2026-06-12  6:21   ` Richard Cheng
2026-06-17  3:10     ` Alison Schofield
2026-06-29  6:41   ` Robert Richter
2026-07-08  1:43     ` Alison Schofield
2026-06-11 17:47 ` [PATCH v2 4/6] cxl/region: Validate mixed-granularity at sysfs and attach gates Alison Schofield
2026-06-11 18:03   ` sashiko-bot
2026-06-16 22:52     ` Alison Schofield
2026-06-11 17:47 ` [PATCH v2 5/6] cxl/test: Add a topology to test mixed-granularity regions Alison Schofield
2026-06-11 17:47 ` [PATCH v2 6/6] Documentation/cxl: Add region granularity and multi-level interleave guide Alison Schofield
2026-06-29  8:56   ` Robert Richter
2026-07-08  2:33     ` Alison Schofield

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=aj6Y4VLUdPjF-pAP@rric.localdomain \
    --to=rrichter@amd.com \
    --cc=alison.schofield@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=dave@stgolabs.net \
    --cc=djbw@kernel.org \
    --cc=iweiny@kernel.org \
    --cc=jic23@kernel.org \
    --cc=linux-cxl@vger.kernel.org \
    --cc=ming.li@zohomail.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