From: Ben Hutchings <benh@debian.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "Michael Tokarev" <mjt@tls.msk.ru>,
"David Woodhouse" <dwmw2@infradead.org>,
"Johannes Berg" <johannes.berg@intel.com>,
"Greg Kroah-Hartman" <gregkh@suse.de>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
"Francois Romieu" <romieu@fr.zoreil.com>,
"David Miller" <davem@davemloft.net>,
netdev@vger.kernel.org, "Jarek Kamiński" <jarek@vilo.eu.org>,
Hayes <hayeswang@realtek.com>
Subject: Re: [PATCH] r8169: keep firmware in memory.
Date: Fri, 14 Jan 2011 16:30:35 +0000 [thread overview]
Message-ID: <20110114163035.GY3702@decadent.org.uk> (raw)
In-Reply-To: <AANLkTikiGeSfae3guWRMp_hsh61JibacPpwGZVbgSy7h@mail.gmail.com>
On Fri, Jan 14, 2011 at 08:05:22AM -0800, Linus Torvalds wrote:
> [ background for new people in discussion: once more, a driver resume
> didn't get a working firmware load. ]
>
> On Thu, Jan 13, 2011 at 10:52 PM, Michael Tokarev <mjt@tls.msk.ru> wrote:
> >
> > Given all this I think this is somewhat clumsy still. How
> > does other NIC drivers handles this situation - e.g. tg3?
> > Maybe this needs to be a generic solution instead of per-driver?
>
> We've had this bug several times - and not just for network drivers
> either.
[...]
> Maybe the firmware loader could be made more useful to automatically
> handle the caching (it already knows about built-in firmware) for the
> case where CONFIG_PM is enabled. So that drivers _could_ just
> basically do "request_firmware()" in their resume functions, and it
> would get satisfied from RAM for the re-request case.
[...]
This is something I started to implement, but never got finished. I
don't think it can be done without an API change, though, as we need
to know when to drop firmware from the cache. But perhaps this could
be done with a hook in the device-driver binding code.
Ben.
--
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
- Albert Camus
next prev parent reply other threads:[~2011-01-14 16:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-13 23:07 [PATCH] r8169: keep firmware in memory Francois Romieu
2011-01-14 5:50 ` David Miller
2011-01-14 6:52 ` Michael Tokarev
2011-01-14 16:05 ` Linus Torvalds
2011-01-14 16:30 ` Ben Hutchings [this message]
2011-01-14 17:21 ` Linus Torvalds
2011-01-14 21:44 ` Rafael J. Wysocki
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=20110114163035.GY3702@decadent.org.uk \
--to=benh@debian.org \
--cc=davem@davemloft.net \
--cc=dwmw2@infradead.org \
--cc=gregkh@suse.de \
--cc=hayeswang@realtek.com \
--cc=jarek@vilo.eu.org \
--cc=johannes.berg@intel.com \
--cc=mjt@tls.msk.ru \
--cc=netdev@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=romieu@fr.zoreil.com \
--cc=torvalds@linux-foundation.org \
/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