public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
From: "Fabio M. De Francesco" <fabio.m.de.francesco@linux.intel.com>
To: Gregory Price <gourry@gourry.net>
Cc: linux-cxl@vger.kernel.org, Davidlohr Bueso <dave@stgolabs.net>,
	Jonathan Cameron <jonathan.cameron@huawei.com>,
	Dave Jiang <dave.jiang@intel.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,
	ALOK TIWARI <alok.a.tiwari@oracle.com>,
	Randy Dunlap <rdunlap@infradead.org>
Subject: Re: [PATCH v4] cxl: docs/driver-api/conventions resolve conflicts between CFMWS, LMH, Decoders
Date: Mon, 01 Sep 2025 14:26:27 +0200	[thread overview]
Message-ID: <6403027.OV4Wx5bFTl@fdefranc-mobl3> (raw)
In-Reply-To: <aK9pUhETnNgs-7UG@gourry-fedora-PF4VCD3F>

On Wednesday, August 27, 2025 10:23:46 PM Central European Summer Time Gregory Price wrote:
> On Wed, Aug 20, 2025 at 05:06:39PM +0200, Fabio M. De Francesco wrote:
> > +
> > +E.g, a real x86 platform with two CFMWS, 384 GB total memory, and LMH
> > +starting at 2 GB:
> > +
> > +Window | CFMWS Base | CFMWS Size | HDM Decoder Base | HDM Decoder Size | Ways | Granularity
> > +  0    |   0 GB     |     2 GB   |      0 GB        |       3 GB       |  12  |    256
> > +  1    |   4 GB     |   380 GB   |      0 GB        |     380 GB       |  12  |    256
> > +
> 
> This may be a dumb question, but... how is validation supposed to work?
> 
> Like in theory according to the above something like the following would
> also be valid:
> 
> Window | CFMWS Base | CFMWS Size | HDM Decoder Base | HDM Decoder Size
>   0    |   4 GB     |   380 GB   |      2 GB        |     382 GB      
> 
I'm sorry, it seems that a mistake with copy/pasting I made has led you to 
hypothesize a case that is out of scope of this document.

A case like the one you described will still lead the CXL driver to fail.

Please refer to my reply to Robert and to an old email from Dan.[1][2]

Thanks,

Fabio

[1] https://lore.kernel.org/linux-cxl/4179950.vuYhMxLoTh@fdefranc-mobl3/
[2] https://lore.kernel.org/linux-cxl/67ec4d61c3fd6_288d2947b@dwillia2-xfh.jf.intel.com.notmuch/
>
> (ignoring ways/granularity, i didn't adjust those).
> 
> The entirety of the CFMWS would be contained within the HDM decoder, but
> with carve-outs on either end.  This would be "allowed" according to the
> logic here.
> 
> This would effectively allow all HDM decoder base/size values to be valid
> as long as one CFMWS is contained entirely within it.
> 
> As a result, wouldn't it then also be valid to have an HDM Decoder cover
> more than one CFMWS range (two full CFMWS described by a single HDM
> decoder).
> 
> That seems like it could cause issues.
> 
> ~Gregory
> 
> 





  reply	other threads:[~2025-09-01 12:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-20 15:06 [PATCH v4] cxl: docs/driver-api/conventions resolve conflicts between CFMWS, LMH, Decoders Fabio M. De Francesco
2025-08-21 15:22 ` Dave Jiang
2025-08-22  1:55 ` Bagas Sanjaya
2025-08-26 13:49 ` Robert Richter
2025-09-01 12:22   ` Fabio M. De Francesco
2025-09-01 15:23     ` Robert Richter
2025-08-27 20:23 ` Gregory Price
2025-09-01 12:26   ` Fabio M. De Francesco [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-20 14:55 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=6403027.OV4Wx5bFTl@fdefranc-mobl3 \
    --to=fabio.m.de.francesco@linux.intel.com \
    --cc=alison.schofield@intel.com \
    --cc=alok.a.tiwari@oracle.com \
    --cc=corbet@lwn.net \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=dave@stgolabs.net \
    --cc=gourry@gourry.net \
    --cc=ira.weiny@intel.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@infradead.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