public inbox for linux-cxl@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jonathan.cameron@huawei.com>
To: <alejandro.lucero-palau@amd.com>
Cc: <linux-cxl@vger.kernel.org>, <dan.j.williams@intel.com>,
	<dave.jiang@intel.com>, Alejandro Lucero <alucerop@amd.com>,
	Gregory Price <gourry@gourry.net>
Subject: Re: [PATCH v3 2/3] cxl/region: Factor out interleave ways setup
Date: Mon, 2 Mar 2026 15:26:43 +0000	[thread overview]
Message-ID: <20260302152643.00003027@huawei.com> (raw)
In-Reply-To: <20260228173603.1125109-3-alejandro.lucero-palau@amd.com>

On Sat, 28 Feb 2026 17:36:02 +0000
alejandro.lucero-palau@amd.com wrote:

> From: Alejandro Lucero <alucerop@amd.com>
> 
> Region creation based on Type3 devices can be triggered from user space
> allowing memory combination through interleaving.
> 
> In preparation for kernel driven region creation, that is Type2 drivers
> triggering region creation backed with its advertised CXL memory, factor
> out a common helper from the user-sysfs region setup for interleave ways.
> 
> Signed-off-by: Alejandro Lucero <alucerop@amd.com>
> Reviewed-by: Dave Jiang <dave.jiang@intel.com>
> Reviewed-by: Gregory Price <gourry@gourry.net>
> Tested-by: Gregory Price <gourry@gourry.net>

Maybe we should take this opportunity to make ->interleave_ways
unsigned and move all logic to assume this is never negative.

However this is a more minimal change so I'm fine with this and
potentially a future tidy up to make all ways values unsigned.

Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>


  reply	other threads:[~2026-03-02 15:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-28 17:36 [PATCH v3 0/3] cxl region changes for Type2 support alejandro.lucero-palau
2026-02-28 17:36 ` [PATCH v3 1/3] cxl: Make region type based on endpoint type alejandro.lucero-palau
2026-02-28 17:36 ` [PATCH v3 2/3] cxl/region: Factor out interleave ways setup alejandro.lucero-palau
2026-03-02 15:26   ` Jonathan Cameron [this message]
2026-03-03  1:01   ` Alison Schofield
2026-02-28 17:36 ` [PATCH v3 3/3] cxl/region: Factor out interleave granularity setup alejandro.lucero-palau
2026-03-16 23:57 ` [PATCH v3 0/3] cxl region changes for Type2 support Dave Jiang

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=20260302152643.00003027@huawei.com \
    --to=jonathan.cameron@huawei.com \
    --cc=alejandro.lucero-palau@amd.com \
    --cc=alucerop@amd.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=gourry@gourry.net \
    --cc=linux-cxl@vger.kernel.org \
    /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