From: <dan.j.williams@intel.com>
To: Michal Clapinski <mclapinski@google.com>,
Dan Williams <dan.j.williams@intel.com>,
Vishal Verma <vishal.l.verma@intel.com>,
"Dave Jiang" <dave.jiang@intel.com>, <nvdimm@lists.linux.dev>,
<linux-cxl@vger.kernel.org>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>,
<linux-kernel@vger.kernel.org>,
Michal Clapinski <mclapinski@google.com>
Subject: Re: [PATCH 1/1] dax: add PROBE_PREFER_ASYNCHRONOUS to the pmem driver
Date: Wed, 22 Oct 2025 16:38:04 -0700 [thread overview]
Message-ID: <68f96adc63d_10e9100fc@dwillia2-mobl4.notmuch> (raw)
In-Reply-To: <20251002131900.3252980-1-mclapinski@google.com>
Michal Clapinski wrote:
> Comments in linux/device/driver.h say that the goal is to do async
> probing on all devices. The current behavior unnecessarily slows down
> the boot by synchronous probing dax_pmem devices, so let's change that.
>
> Signed-off-by: Michal Clapinski <mclapinski@google.com>
> ---
> drivers/dax/pmem.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/dax/pmem.c b/drivers/dax/pmem.c
> index bee93066a849..737654e8c5e8 100644
> --- a/drivers/dax/pmem.c
> +++ b/drivers/dax/pmem.c
> @@ -77,6 +77,7 @@ static struct nd_device_driver dax_pmem_driver = {
> .probe = dax_pmem_probe,
> .drv = {
> .name = "dax_pmem",
> + .probe_type = PROBE_PREFER_ASYNCHRONOUS,
> },
> .type = ND_DRIVER_DAX_PMEM,
> };
Hi Michal,
Apologies for not commenting earlier. When this first flew by I paused
because libnvdimm predated some of the driver core work on asynchronous
and has some local asynchronous registration.
Can you say a bit more about how this patch in particular helps your
case? For example, the pmem devices registered by memmap= (nd_e820
driver), should end up in the nd_async_device_register() path.
So even though the final attach is synchronous with device arrival, it
should still be async with respect to other device probing.
However, I believe that falls back to synchronous probing if the driver
is loaded after the device has already arrived. Is that the case you are
hitting?
I am ok with this in concept, but if we do this it should be done for
all dax drivers, not just dax_pmem.
next prev parent reply other threads:[~2025-10-22 23:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-02 13:19 Michal Clapinski
2025-10-22 20:57 ` Michał Cłapiński
2025-10-22 23:38 ` dan.j.williams [this message]
2025-10-22 23:53 ` Michał Cłapiński
2025-10-23 3:50 ` dan.j.williams
2025-10-23 14:57 ` Ira Weiny
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=68f96adc63d_10e9100fc@dwillia2-mobl4.notmuch \
--to=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mclapinski@google.com \
--cc=nvdimm@lists.linux.dev \
--cc=pasha.tatashin@soleen.com \
--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®