From: <dan.j.williams@intel.com>
To: Mike Rapoport <rppt@kernel.org>, <dan.j.williams@intel.com>
Cc: "Dave Jiang" <dave.jiang@intel.com>,
"Ira Weiny" <ira.weiny@intel.com>,
"Vishal Verma" <vishal.l.verma@intel.com>,
jane.chu@oracle.com, "Michał Cłapiński" <mclapinski@google.com>,
"Pasha Tatashin" <pasha.tatashin@soleen.com>,
"Tyler Hicks" <code@tyhicks.com>,
linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev
Subject: Re: [PATCH v2 1/1] nvdimm: allow exposing RAM carveouts as NVDIMM DIMM devices
Date: Wed, 22 Oct 2025 16:29:23 -0700 [thread overview]
Message-ID: <68f968d34154f_10e9100e0@dwillia2-mobl4.notmuch> (raw)
In-Reply-To: <aPjujSjgLSWsAtsb@kernel.org>
Mike Rapoport wrote:
[..]
> > > +config RAMDAX
> > > + tristate "Support persistent memory interfaces on RAM carveouts"
> > > + depends on OF || X86
> >
> > I see no compile time dependency for CONFIG_OF. The one call to
> > dev_of_node() looks like it still builds in the CONFIG_OF=n case. For
> > CONFIG_X86 the situation is different because the kernel needs
> > infrastructure to build the device.
> >
> > So maybe change the dependency to drop OF and make it:
> >
> > depends on X86_PMEM_LEGACY if X86
>
> We can't put if in a depends statement :(
Ugh, yeah, whoops.
> My intention with "depends on OF || X86" was that if it's not really
> possible to use this driver if it's not X86 or OF because there's nothing
> to define a platform device for ramdax to bind.
>
> Maybe what we actually need is
>
> select X86_PMEM_LEGACY_DEVICE if X86
> default n
> so that it could be only explicitly enabled in the configuration and if it
> is, it will also enable X86_PMEM_LEGACY_DEVICE on x86.
> With default set to no it won't be build "accidentailly", but OTOH cloud
> providers can disable X86_PMEM_LEGACY and enable RAMDAX and distros can
> build them as modules on x86 and architectures that support OF.
>
> What do you think?
Perhaps:
depends on X86_PMEM_LEGACY || OF || COMPILE_TEST
...because it is awkward to select symbols that has dependencies that
may be missing, and it shows that this driver has no compile time
dependencies on those symbols.
[..]
> With how driver_override is implemented it's possible to get fireworks with
> any platform device :)
True.
> I'll add a manual check for of_match_node() to be on the safer side.
Sounds good.
next prev parent reply other threads:[~2025-10-22 23:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-15 8:00 [PATCH v2 0/1] nvdimm: allow exposing RAM as libnvdimm DIMMs Mike Rapoport
2025-10-15 8:00 ` [PATCH v2 1/1] nvdimm: allow exposing RAM carveouts as NVDIMM DIMM devices Mike Rapoport
2025-10-18 0:08 ` dan.j.williams
2025-10-22 14:47 ` Mike Rapoport
2025-10-22 23:29 ` dan.j.williams [this message]
2025-10-23 7:39 ` Mike Rapoport
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=68f968d34154f_10e9100e0@dwillia2-mobl4.notmuch \
--to=dan.j.williams@intel.com \
--cc=code@tyhicks.com \
--cc=dave.jiang@intel.com \
--cc=ira.weiny@intel.com \
--cc=jane.chu@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mclapinski@google.com \
--cc=nvdimm@lists.linux.dev \
--cc=pasha.tatashin@soleen.com \
--cc=rppt@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
all inboxes | Powered by JetHome®