From: Takashi Iwai <tiwai@suse.de>
To: Ming Lei <ming.lei@canonical.com>
Cc: Tom Gundersen <teg@jklm.no>, LKML <linux-kernel@vger.kernel.org>,
Greg KH <gregkh@linuxfoundation.org>, Stefan Roese <sr@denx.de>,
Arnd Bergmann <arnd@arndb.de>,
Abhay Salunke <Abhay_Salunke@dell.com>,
Kay Sievers <kay@vrfy.org>
Subject: Re: [PATCH v2] firmware loader: allow disabling of udev as firmware loader
Date: Fri, 06 Jun 2014 16:03:07 +0200 [thread overview]
Message-ID: <s5hegz2yw2s.wl%tiwai@suse.de> (raw)
In-Reply-To: <CACVXFVOgr1y5KQxGDzvyPfqKHo0e3CsN+3HWo-_dxo6bmufbLQ@mail.gmail.com>
At Fri, 6 Jun 2014 07:00:22 +0800,
Ming Lei wrote:
>
> On Thu, Jun 5, 2014 at 11:15 PM, Tom Gundersen <teg@jklm.no> wrote:
> > On Thu, Jun 5, 2014 at 4:54 PM, Ming Lei <ming.lei@canonical.com> wrote:
> >>> Ubuntu currently enables the firmware loader in both the kernel and in
> >>> udev, so would not yet have a problem here at the moment. However, I
> >>> spoke with Martin Pitt and he told me that both Debian and Ubuntu
> >>> would like to switch this off in udev once it is possible (i.e., once
> >>> this patch has been merged I guess). Fedora already did, and speaking
> >>> for Arch we definitely would like to do the same. I did not check with
> >>> other distros, but I'm pretty sure "everyone" will disable this in
> >>> udev by the next cycle. At which point having it enabled in the kernel
> >>> will cause real problems and bug reports.
> >>
> >> That won't cover the case of old distributions with new kernel,
> >
> > Again: disabling this option will not give problems (unless you have a
> > custom setup), even on old userspace, only keeping it enabled on
> > future userspace may.
> >
> >> do
> >> you want to break/confuse these users?
> >
> > Not really, no :)
> >
> >>> For distro kernels that's not a problem, as they know what to do, but
> >>> I guess for random kernel users we should give them the correct
> >>> recommendation.
> >>
> >> Also I remember that android users put firmware under their
> >> special path.
> >
> > That may be, but I don't think this text is primarily aimed at the
> > people who put together Android systems... Surely their non-standard
> > userspace means that a lot of the advice (and it is nothing else than
> > advice!) in the help text does not necessarily apply?
> >
> >>>>>> It only falls back if the request fw is _not_ found from direct loading,
> >>>>>> so it is reasonable to try to continue to look for it from user space.
> >>>>
> >>>>> Some drivers fall back to different firmware (e.g. different revision
> >>>>> suffix) if the requested file isn't found. So, this happens in
> >>>>> reality.
> >>>>
> >>>> So do you think the fallback is better or worse? For CPU microcode
> >>>> case, maybe it is fine, but for other devices, maybe it is better to
> >>>> get a firmware for working at least.
> >>>
> >>> What usecase do you have in mind here? For people using stock udev,
> >>> enabling the fallback will not give any benefit, but it will soon
> >>
> >> Again, we have old distributions, also it should make sense to fall back
> >> to userspace for non-exist firmwares under default path.
> >
> > Even on old distributions, falling back to stock udev will not give
> > any benefits. It will look in the same paths as the kernel and fail in
> > the same way.
> >
> >>> start giving real problems...
> >>
> >> If there isn't firmwares at default path for devices, the device may
> >> not work, and that is the real problem.
> >
> > These devices will never have worked with stock udev, as it looks in
> > the same path as the kernel (the paths the kernel looks in was taken
> > from udev to make sure they work the sam). So this must be a
> > special/custom setup by someone who knows what they are doing, and
> > hopefully knows how to answer the Kconfig.
>
> I have to say all your statement about old distributions is just your
> take for granted, and you can't verified on all old distributions at all.
> That is said, disabling fallback may cause regression on these
> distributions.
>
> Given that the user helper(fallback) has been used for tens of
> years on these distributions, I suggest you to change Kconfig
> help message as something like below:
>
> If your aren't sure, please check your udev/systemd version, if it
> is below than XXX or no udev/systemd shipped in your system,
> say Y here, otherwise say N.
Yeah, a detailed suggestion like the above would be more helpful.
Takashi
next prev parent reply other threads:[~2014-06-06 14:03 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-04 15:48 Takashi Iwai
2014-06-04 16:25 ` Greg Kroah-Hartman
2014-06-05 12:18 ` Ming Lei
[not found] ` <CAG-2HqU=LAXr0o2e9RRCmrX1eWouhepEZHaPfBjrs64xUeb=gw@mail.gmail.com>
2014-06-05 13:31 ` Ming Lei
2014-06-05 13:47 ` Takashi Iwai
2014-06-05 13:59 ` Ming Lei
2014-06-05 14:05 ` Takashi Iwai
2014-06-05 14:24 ` Ming Lei
2014-06-05 14:32 ` Tom Gundersen
2014-06-05 14:54 ` Ming Lei
2014-06-05 15:12 ` Takashi Iwai
2014-06-05 15:15 ` Tom Gundersen
2014-06-05 23:00 ` Ming Lei
2014-06-06 14:03 ` Takashi Iwai [this message]
2014-06-06 14:15 ` Tom Gundersen
2014-06-06 15:19 ` Ming Lei
2014-06-06 15:26 ` Ilia Mirkin
2014-06-06 15:22 ` Greg KH
2014-06-06 15:28 ` Takashi Iwai
[not found] ` <CAG-2HqVQ5gT3svBG+B-tE3m2aJ=T2TYjJ2vsA6k3ZxpyFu_6Kg@mail.gmail.com>
2014-06-06 15:44 ` Greg KH
2014-06-05 14:06 ` Tom Gundersen
2014-06-05 13:59 ` Tom Gundersen
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=s5hegz2yw2s.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=Abhay_Salunke@dell.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=kay@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.lei@canonical.com \
--cc=sr@denx.de \
--cc=teg@jklm.no \
/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®