From: Greg KH <greg@kroah.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Matthew Wilcox <willy@linux.intel.com>, linux-kernel@vger.kernel.org
Subject: Re: [REVIEW] NVM Express driver
Date: Fri, 4 Mar 2011 13:28:51 -0800 [thread overview]
Message-ID: <20110304212851.GB28680@kroah.com> (raw)
In-Reply-To: <20110304124348.6419c661@lxorguk.ukuu.org.uk>
On Fri, Mar 04, 2011 at 12:43:48PM +0000, Alan Cox wrote:
> On Thu, 3 Mar 2011 14:22:26 -0800
> > > How would the driver know that it should call request_firmware()?
> > > Do it every 60 seconds in case somebody's downloaded some new firmware?
> >
> > Ick, no, just use the function provided that lets you create a firmware
> > request and be notified when it is written to,
> > request_firmware_nowait(). That is what it is there for.
>
> Bunkum
>
> It's there for automated loading of needed firmware
And non-automated loading of firmware as well. Dell uses this for
updating their BIOSes just fine, with a userspace tool that initiates
the loading of the firmware.
> > Anyway, just use request_firmware_nowait(), you will be fine.
>
> Not really. You've got no way with the request_firmware interface for the
> user space and kernel space to reliably time objects together eg to do
> user side work before a firmware load.
How does Dell do it?
> Almost all the other stuff in the kernel which is for firmware
> programming as opposed to automatic loading is not using request_firmware
> - and for good reasons like needing to be able to specify the path to the
> object reliably - which cannot be done with namespaces.
>
> From a security perspective, a correctness perspective, for reliability
> and managability request_firmware is the wrong interface for flashing new
> firmware.
Tell me how you really feel now :)
So, what could be changed in the current firmware interface to fix this
problem in a manner which would solve these perceived issues?
thanks,
greg k-h
next prev parent reply other threads:[~2011-03-04 21:30 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 20:47 Matthew Wilcox
2011-03-03 21:13 ` Greg KH
2011-03-03 21:41 ` Matthew Wilcox
2011-03-03 21:51 ` Greg KH
2011-03-03 22:07 ` Matthew Wilcox
2011-03-03 22:22 ` Greg KH
2011-03-04 2:25 ` Andy Lutomirski
2011-03-04 9:02 ` el es
2011-03-04 21:29 ` Greg KH
2011-03-04 12:43 ` Alan Cox
2011-03-04 21:28 ` Greg KH [this message]
2011-03-04 21:59 ` Alan Cox
2011-03-04 22:10 ` Greg KH
2011-03-04 22:33 ` Alan Cox
2011-03-04 23:10 ` Greg KH
2011-03-05 10:28 ` Alan Cox
2011-03-04 12:52 ` Mark Brown
2011-03-03 21:33 ` Randy Dunlap
2011-03-04 13:06 ` Christoph Hellwig
2011-03-04 14:46 ` Matthew Wilcox
2011-03-11 22:29 ` Andi Kleen
2011-03-12 5:51 ` Matthew Wilcox
2011-03-13 17:14 ` Andi Kleen
2011-03-13 18:24 ` Arnd Bergmann
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=20110304212851.GB28680@kroah.com \
--to=greg@kroah.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=willy@linux.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®