From: Greg KH <gregkh@linuxfoundation.org>
To: Nayeemahmed Badebade <nayeemahmed.badebade@sony.com>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
rafael@kernel.org, yoshihiro.toyama@sony.com,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 0/2] Add framework for user controlled driver probes
Date: Tue, 17 Sep 2024 12:11:22 +0200 [thread overview]
Message-ID: <2024091743-germinate-fructose-3ded@gregkh> (raw)
In-Reply-To: <ZulGr8Ul7y0T0NkQ@NAB-HP-ProDesk-600sony.com>
On Tue, Sep 17, 2024 at 02:36:55PM +0530, Nayeemahmed Badebade wrote:
> Hi Greg,
>
> Thank you for taking the time to check our patch and provide
> valuable feedback. We appreciate your comments/suggestions.
>
> Please find our reply to your comments.
>
> On Fri, Sep 13, 2024 at 06:36:38AM +0200, Greg KH wrote:
> > On Wed, Sep 11, 2024 at 07:53:17PM +0530, Nayeemahmed Badebade wrote:
> > > Hi,
> >
> > If Rob hadn't responded, I wouldn't have noticed these as they ended up
> > in spam for some reason. You might want to check your email settings...
> >
>
> I have ensured standard settings which we have been using are used this
> time, let me know if this email is received properly.
I got it this time, thanks.
> > > This patch series introduces a new framework in the form of a driver
> > > probe-control, aimed at addressing the need for deferring the probes
> > > from built-in drivers in kernels where modules are not used.
> >
> > Wait, why?
> >
>
> We have a scenario where a driver cannot be built as a module and ends up
> as a built-in driver. We don't want to probe this driver during boot as its
> not required at the time of booting.
> Example: drivers/pci/controller/dwc/pci-imx6.c
> So the intention is to only postpone some driver probes similar to:
> https://elinux.org/Deferred_Initcalls
> But instead of delaying initcall execution(which requires initmem to be kept
> and not freed during boot) we are trying to delay driver probes as this is
> much simpler.
> The proposed driver is a generic solution for managing such driver
> probes.
Again, please fix the drivers that are having problems with this, and
build them as a module and load them when you need/want them and can be
probed correctly.
> > > In such scenario, delaying the initialization of certain devices such
> > > as pcie based devices not needed during boot and giving user the control
> > > on probing these devices post boot, can help reduce overall boot time.
> > > This is achieved without modifying the driver code, simply by configuring
> > > the platform device tree.
> >
> > PCI devices should not be on the platform device tree.
> >
>
> You are right, we are referring to the pci host controller that will be
> listed in device tree and skipping its probe during boot as an example
> here.
pci host controllers should really be availble at boot time, wow your
hardware is b0rked, sorry. Just make it a module and load it when you
want/need it.
> > And what's wrong with async probing? That was written for this very
> > issue.
> >
>
> We have explored async probe as an option, but we noticed below:
> 1) Probe initiated via async
> 2) Boot continues with other setup.
> 3) Boot reaches stage where ip configuration is to be done via
> ip_auto_config() and 1) is still in progress, then boot waits for all
> async calls to be completed before proceeding with network setup.
> ip_auto_config()
> -> wait_for_devices()
> -> wait_for_device_probe()
> -> async_synchronize_full()
> 4) Similar thing happens with rootfs mount step in prepare_namespace()
> initcall
Again, if you make the problem driver as a module you should be ok,
right?
> So to avoid getting blocked on these probes which are not required
> during boot, we proposed this driver for managing such built-in driver
> probes execution.
Fix the broken drivers please :)
thanks,
greg k-h
next prev parent reply other threads:[~2024-09-17 10:11 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-11 14:23 [PATCH 0/2] Add framework for user controlled driver probes Nayeemahmed Badebade
2024-09-11 14:23 ` [PATCH 1/2] dt-bindings: probe-control: add probe control driver Nayeemahmed Badebade
2024-09-17 9:00 ` Krzysztof Kozlowski
2024-09-26 9:40 ` Nayeemahmed Badebade
2024-09-11 14:23 ` [PATCH 2/2] driver: core: " Nayeemahmed Badebade
2024-09-12 20:46 ` Rob Herring
2024-09-17 8:55 ` Nayeemahmed Badebade
2024-09-18 14:55 ` Rob Herring
2024-09-26 10:06 ` Nayeemahmed Badebade
2024-09-13 4:37 ` Greg KH
2024-09-17 9:22 ` Nayeemahmed Badebade
2024-09-13 4:36 ` [PATCH 0/2] Add framework for user controlled driver probes Greg KH
2024-09-17 9:06 ` Nayeemahmed Badebade
2024-09-17 9:03 ` Krzysztof Kozlowski
2024-09-17 9:21 ` Greg KH
2024-09-26 11:07 ` Nayeemahmed Badebade
2024-09-26 12:34 ` Krzysztof Kozlowski
2024-09-27 15:31 ` Nayeemahmed Badebade
2024-09-27 17:36 ` Rob Herring
2024-09-30 7:12 ` Nayeemahmed Badebade
2024-09-17 10:11 ` Greg KH [this message]
2024-09-27 14:14 ` Nayeemahmed Badebade
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=2024091743-germinate-fructose-3ded@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nayeemahmed.badebade@sony.com \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=yoshihiro.toyama@sony.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;
as well as URLs for NNTP newsgroup(s).