From: Takashi Iwai <tiwai@suse.de>
To: Kay Sievers <kay@vrfy.org>
Cc: Ming Lei <ming.lei@canonical.com>,
linux-kernel@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH 0/3] firmware: Fix usermodehelper deadlock at shutdown
Date: Thu, 09 May 2013 09:26:06 +0200 [thread overview]
Message-ID: <s5hobcky5pt.wl%tiwai@suse.de> (raw)
In-Reply-To: <CAPXgP13yH_JvdrewbXjvpuQg2E4oaqJAk6zrPMXvEHX-cns0qg@mail.gmail.com>
At Wed, 8 May 2013 20:46:43 +0200,
Kay Sievers wrote:
>
> On Wed, May 8, 2013 at 6:26 PM, Takashi Iwai <tiwai@suse.de> wrote:
> > At Thu, 9 May 2013 00:07:17 +0800,
> > Ming Lei wrote:
>
> >> On Wed, May 8, 2013 at 2:56 PM, Takashi Iwai <tiwai@suse.de> wrote:
> >> > Hi,
> >> >
> >> > this is a series of patches for the issue we faced in the firmware
> >> > loader code during debugging the problem with dell_rbu driver with
> >> > 3.9 kernel.
> >> >
> >> > The original problem was that the shutdown gets stuck when DELL BIOS
> >> > update is performed. This turned out to be a problem in the firmware
> >> > loader. Although the reason of dell_rbu driver breakage is still
> >>
> >> Sorry, from these patchset, I can't see why it is a problem in firmware.
> >>
> >> > unclear, we should fix the firmware loader side, at least, not to
> >> > stall during shutdown.
> >>
> >> Firstly you need to describe what/why is the stall? In fact, firmware
> >> loading can't stall forever and it will timeout, but the current 60sec
> >> timeout might be too long.
> >
> > The timeout check is activated only when uevent flag is set, and
> > dell_rbu driver doesn't set it explicitly (because it's not supposed
> > to be handled via udev or whatever).
>
> These use the firmware loader not in the way the interface was intended:
> drivers/misc/lattice-ecp3-config.c
> drivers/firmware/dell_rbu.c
>
> They just use the mechanism without any of the usual userspace setup.
> It's really a nasty hack to hijack the interface that way.
>
> The commit 6e3eaab02028c4087a92711b20abb9e72cc803a7 is a pretty broken
> idea to start with. If something triggers uevents during runtime which
> is not uncommon, these on-demand silently created firmware devices
> would get really confused and race against the udev firmware loader
> which cancels the events.
>
> As if the userspace firmware loading in general wasn't a bad enough
> idea already. :)
Luckily there are only few users, so conversion of such known drivers
should be easy. But the major question is whether we are allowed to
drop the non-hotplug f/w loading right now after years. It means a
clear user-space breakage, and we don't want it as much as possible.
Takashi
next prev parent reply other threads:[~2013-05-09 7:26 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-08 6:56 [PATCH 0/3] firmware: Fix usermodehelper deadlock at shutdown Takashi Iwai
2013-05-08 6:56 ` [PATCH 1/3] firmware: Avoid superfluous usermodehelper lock Takashi Iwai
2013-05-08 15:52 ` Ming Lei
2013-05-08 16:21 ` Takashi Iwai
2013-05-08 16:37 ` Takashi Iwai
2013-05-08 17:51 ` Takashi Iwai
2013-05-09 1:25 ` Ming Lei
2013-05-09 7:31 ` Takashi Iwai
2013-05-09 8:43 ` Ming Lei
2013-05-09 17:04 ` Takashi Iwai
2013-05-10 1:25 ` Ming Lei
2013-05-10 9:32 ` Takashi Iwai
2013-05-11 13:01 ` Ming Lei
2013-05-12 7:20 ` Takashi Iwai
2013-05-12 13:32 ` Ming Lei
2013-05-13 14:48 ` Takashi Iwai
2013-05-12 13:59 ` Ming Lei
2013-05-13 15:04 ` Takashi Iwai
2013-05-08 6:56 ` [PATCH 2/3] firmware: Avoid deadlock of usermodehelper lock at shutdown Takashi Iwai
2013-05-08 15:56 ` Ming Lei
2013-05-08 16:15 ` Takashi Iwai
2013-05-09 1:19 ` Ming Lei
2013-05-09 7:34 ` Takashi Iwai
2013-05-08 6:56 ` [PATCH 3/3] dell_rbu: Select CONFIG_FW_LOADER_USER_HELPER explicitly Takashi Iwai
2013-05-08 15:42 ` [PATCH 0/3] firmware: Fix usermodehelper deadlock at shutdown Greg Kroah-Hartman
2013-05-08 15:48 ` Takashi Iwai
2013-05-08 15:59 ` Ming Lei
2013-05-08 16:07 ` Ming Lei
2013-05-08 16:26 ` Takashi Iwai
2013-05-08 18:46 ` Kay Sievers
2013-05-09 7:26 ` Takashi Iwai [this message]
2013-05-21 17:02 ` Greg Kroah-Hartman
2013-05-22 1:21 ` Ming Lei
2013-05-22 16:25 ` Takashi Iwai
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=s5hobcky5pt.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=gregkh@linuxfoundation.org \
--cc=kay@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.lei@canonical.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