From: Gregory Price <gourry@gourry.net>
To: Alison Schofield <alison.schofield@intel.com>
Cc: linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-team@meta.com, dave@stgolabs.net,
jonathan.cameron@huawei.com, dave.jiang@intel.com,
vishal.l.verma@intel.com, ira.weiny@intel.com,
dan.j.williams@intel.com
Subject: Re: [PATCH v4 1/3] cxl/core/region: move pmem region driver logic into region_pmem.c
Date: Mon, 23 Mar 2026 01:37:49 -0400 [thread overview]
Message-ID: <acDRrRchRUSRBUbm@gourry-fedora-PF4VCD3F> (raw)
In-Reply-To: <acCnaN9MIRByjUPd@aschofie-mobl2.lan>
On Sun, Mar 22, 2026 at 07:37:28PM -0700, Alison Schofield wrote:
> On Sun, Mar 22, 2026 at 09:16:36AM -0400, Gregory Price wrote:
> > core/region.c is overloaded with per-region control logic (pmem, dax,
> > sysram, etc). Move the pmem region driver logic from region.c into
> > region_pmem.c make it clear that this code only applies to pmem regions.
> >
> > No functional changes.
>
> This always adds region_pmem.o regardless of CONFIG_CXL_PMEM.
> Are you heading towards conditionally compiling, where region_pmem.o is
> omitted if !CONFIG_CXL_PMEM?
>
> Similar question for region_dax.o
>
I hadn't considered going that far, but it doesn't seem unreasonable?
It just seemed natural to break out the code this way, but I don't know
if adding more Kconfig cruft is worth it just to save some .o's and a
smaller amount of code.
The recent pmem/nvdimm Kconfig change does kind of show that we might
have some bloat for some deployments which might not care about pmem -
for example.
~Gregory
next prev parent reply other threads:[~2026-03-23 5:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-22 13:16 [PATCH v4 0/3] pull region-specific logic into new files Gregory Price
2026-03-22 13:16 ` [PATCH v4 1/3] cxl/core/region: move pmem region driver logic into region_pmem.c Gregory Price
2026-03-23 2:37 ` Alison Schofield
2026-03-23 5:37 ` Gregory Price [this message]
2026-03-24 3:49 ` Alison Schofield
2026-03-24 15:11 ` Gregory Price
2026-03-23 15:08 ` Jonathan Cameron
2026-03-23 15:47 ` Gregory Price
2026-03-23 17:58 ` Jonathan Cameron
2026-04-11 20:34 ` Dan Williams
2026-03-25 1:31 ` Alison Schofield
2026-03-22 13:16 ` [PATCH v4 2/3] cxl/core/region: move dax region device logic into region_dax.c Gregory Price
2026-03-23 15:11 ` Jonathan Cameron
2026-03-25 1:31 ` Alison Schofield
2026-03-22 13:16 ` [PATCH v4 3/3] cxl/core: use cleanup.h for devm_cxl_add_dax_region Gregory Price
2026-03-23 12:17 ` Jonathan Cameron
2026-03-25 1:33 ` Alison Schofield
2026-03-26 16:28 ` [PATCH v4 0/3] pull region-specific logic into new files Ira Weiny
2026-03-26 16:34 ` Gregory Price
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=acDRrRchRUSRBUbm@gourry-fedora-PF4VCD3F \
--to=gourry@gourry.net \
--cc=alison.schofield@intel.com \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=dave@stgolabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox