From: Ira Weiny <ira.weiny@intel.com>
To: Gregory Price <gourry@gourry.net>,
"Fabio M. De Francesco" <fabio.m.de.francesco@linux.intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>, <linux-cxl@vger.kernel.org>,
"Davidlohr Bueso" <dave@stgolabs.net>,
Jonathan Cameron <jonathan.cameron@huawei.com>,
Alison Schofield <alison.schofield@intel.com>,
Vishal Verma <vishal.l.verma@intel.com>,
Ira Weiny <ira.weiny@intel.com>,
Dan Williams <dan.j.williams@intel.com>,
Jonathan Corbet <corbet@lwn.net>, <linux-doc@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3] cxl: docs/driver-api/conventions resolve conflicts btw CFMWS, LMH, ED
Date: Mon, 21 Jul 2025 15:24:45 -0500 [thread overview]
Message-ID: <687ea20d2e508_34e0f2941@iweiny-mobl.notmuch> (raw)
In-Reply-To: <aH2PAju1rLxIbXXk@gourry-fedora-PF4VCD3F>
Gregory Price wrote:
> On Thu, Jul 17, 2025 at 04:14:13PM +0200, Fabio M. De Francesco wrote:
> > The table above shows a real configuration copied from an x86 platform
> > where the Low Memory Hole (LMH) starts at 2GB.
> >
> > The"HDM Decoder Base/Size" refers specifically to the CXL Endpoint
> > Decoders HPA range Base/Size. The first row of the table describes the
> > first window (CFMWS[0]), whose HPA rage base/size is 0/2GB, and the
> > Endpoint Decoder that the CXL driver should match with that CFMWS,
> > whose HPA range base/size is 0/3GB.
>
> The only thing i ask is being more precise with decoder references.
>
> HDM Decoder can refer to any of: root, switch, hb, or endpoint decoders.
>
> Below you make this distinct in the explanation, but in the table it's
> simply general "HDM Decoder". All I ask is for a bit more clarity on
> what decoder will contain what values to avoid further ambiguity.
>
> > The driver expects that the Endpoint Decoders HPA ranges to be contained
> > into their corresponding Root Decoders. Furthermore, Linux fails to
> > attach Endpoint decoders to already constructed CXL Regions because of
> > the same size discrepancy issue.
> > >
> > > I think you need to describe what the expected behavior is for what linux
> > > will produce in terms of the decoder objects given the above.
> > >
> > The expected behavior is that Linux should be able to match the Endpoint
> > Decoder with the Root Decoder range even if the CFMWS size is smaller
> > than the Decoder's, as long as the latter adheres to the 256MB * interleave
> > ways rule. Furthermore, Linux should be able to match the Endpoint decoders
> > with already constructed CXL Regions and allow the attachment process to
> > succeed.
> >
>
> You may also need to describe more than just the contents of the
> endpoint decoder. What would the content of any intermediate decoders
> be (matching the root or matching the endpoint?).
I wonder if the explanation is lacking intermediate decoders because the
test system does not have them?
Is this true Fabio?
Regardless I think Gregory is correct here. We should try and document
the general case.
Ira
>
> > If this explanation suffices, I will incorporate it into the next version
> > of this patch and also explain that "HDM Decoder" stands for Endpoint Decoder
> > and that the CFMWS HPA base/size describes the System Physical Address (SPA)
> > which the CXL driver uses to make Root Decoders HPA range base/size.
> >
>
> This explanation is better, just need a few more bits of data and I
> think you're good to go.
>
> ~Gregory
next prev parent reply other threads:[~2025-07-21 20:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-23 15:29 [PATCH v3] cxl: docs/driver-api/conventions resolve conflicts btw CFMWS, LMH, ED Fabio M. De Francesco
2025-06-23 19:19 ` Gregory Price
2025-07-01 15:23 ` Dave Jiang
2025-07-03 19:40 ` Gregory Price
2025-07-04 10:05 ` Fabio M. De Francesco
2025-07-07 19:55 ` Gregory Price
2025-07-17 14:14 ` Fabio M. De Francesco
2025-07-21 0:51 ` Gregory Price
2025-07-21 20:24 ` Ira Weiny [this message]
2025-07-22 11:42 ` Fabio M. De Francesco
2025-07-01 13:17 ` Jonathan Cameron
2025-07-04 13:11 ` Fabio M. De Francesco
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=687ea20d2e508_34e0f2941@iweiny-mobl.notmuch \
--to=ira.weiny@intel.com \
--cc=alison.schofield@intel.com \
--cc=corbet@lwn.net \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=dave@stgolabs.net \
--cc=fabio.m.de.francesco@linux.intel.com \
--cc=gourry@gourry.net \
--cc=jonathan.cameron@huawei.com \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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).