All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Jiang <dave.jiang@intel.com>
To: Gregory Price <gourry@gourry.net>, linux-cxl@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com,
	dave@stgolabs.net, jonathan.cameron@huawei.com,
	alison.schofield@intel.com, vishal.l.verma@intel.com,
	ira.weiny@intel.com, dan.j.williams@intel.com
Subject: Re: [PATCH v5 0/3] pull region-specific logic into new files
Date: Fri, 27 Mar 2026 11:57:33 -0700	[thread overview]
Message-ID: <e0192e62-0891-4d18-b194-9dab5596e1b9@intel.com> (raw)
In-Reply-To: <20260327020203.876122-1-gourry@gourry.net>



On 3/26/26 7:02 PM, Gregory Price wrote:
> cxl/core/region.c presently contains logic to handle cxl_region,
> cxl_pmem_region, and cxl_dax_region.  The cxl_pmem_region and
> cxl_dax_region management code deserves new files to make it clear
> that this logic applies to a specific types of regions.
> 
> This also breaks up development space so fewer conflicts can occur, and
> it becomes clear where changes are actually happening.
> 
> I snuck in a cleanup.h fixup for devm_cxl_add_dax_region to tidy up some
> of the existing functions.
> 
> v4 -> v5:  Ira test fixes
>            Jonathan nit fixes
> 
> v3 -> v4:  address DJ's feedback on cleanup.h patch:
>            move __free() declaration to assignment point
>            restore local dev variable
> 
> v2 -> v3:  renamed from x_region to region_x because it's prettier
>            added cleanup.h
>            small nits asked for by Jonathan (commas)
> 
> Gregory Price (3):
>   cxl/core/region: move pmem region driver logic into region_pmem.c
>   cxl/core/region: move dax region device logic into region_dax.c
>   cxl/core: use cleanup.h for devm_cxl_add_dax_region
> 
>  drivers/cxl/core/Makefile      |   2 +-
>  drivers/cxl/core/core.h        |   2 +
>  drivers/cxl/core/region.c      | 283 ---------------------------------
>  drivers/cxl/core/region_dax.c  | 106 ++++++++++++
>  drivers/cxl/core/region_pmem.c | 191 ++++++++++++++++++++++
>  drivers/cxl/cxl.h              |   1 +
>  tools/testing/cxl/Kbuild       |   2 +-
>  7 files changed, 302 insertions(+), 285 deletions(-)
>  create mode 100644 drivers/cxl/core/region_dax.c
>  create mode 100644 drivers/cxl/core/region_pmem.c
> 

I applied to for-7.1/cxl-region-refactor branch and pushed to the cxl.git so it gets 0-day coverage. But I'm going hold off until the end to merge this in case of merge conflicts.

29990ab5cb40 cxl/core: use cleanup.h for devm_cxl_add_dax_region
d747cf98f091 cxl/core/region: move dax region device logic into region_dax.c
8a1ec5fb2360 cxl/core/region: move pmem region driver logic into region_pmem.c
 

      parent reply	other threads:[~2026-03-27 18:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-27  2:02 [PATCH v5 0/3] pull region-specific logic into new files Gregory Price
2026-03-27  2:02 ` [PATCH v5 1/3] cxl/core/region: move pmem region driver logic into region_pmem.c Gregory Price
2026-03-27 16:56   ` Ira Weiny
2026-03-27  2:02 ` [PATCH v5 2/3] cxl/core/region: move dax region device logic into region_dax.c Gregory Price
2026-03-27 16:57   ` Ira Weiny
2026-04-11  0:02   ` Anisa Su
2026-04-11  0:26     ` Dave Jiang
2026-04-11  5:09     ` Gregory Price
2026-04-11 17:39       ` Dan Williams
2026-04-13 17:00       ` Anisa Su
2026-03-27  2:02 ` [PATCH v5 3/3] cxl/core: use cleanup.h for devm_cxl_add_dax_region Gregory Price
2026-03-27 17:05   ` Ira Weiny
2026-03-27 18:57 ` Dave Jiang [this message]

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=e0192e62-0891-4d18-b194-9dab5596e1b9@intel.com \
    --to=dave.jiang@intel.com \
    --cc=alison.schofield@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave@stgolabs.net \
    --cc=gourry@gourry.net \
    --cc=ira.weiny@intel.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=kernel-team@meta.com \
    --cc=linux-cxl@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.