lkml.org 
[lkml]   [2008]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: request_firmware vs. resume (was Re: [PATCH] bnx2 - use request_firmware())
    Date
    On Wednesday, 9 of July 2008, Theodore Tso wrote:
    > On Wed, Jul 09, 2008 at 11:13:54PM +0200, Rafael J. Wysocki wrote:
    > > > Be careful about request_firmware. Doing it right w.r.t.
    > > > suspend/resume is quite tricky: you have to load it from userspace
    > > > before kernel starts, so that you can use it during resume...
    > >
    > > Rather, you have to cache it in memory before your ->suspend() is invoked.
    >
    > Translation: so much for saving "non-swappable kernel memory".
    > Unless, of course we add a pre-suspend hook. (Which doesn't exist
    > yet, AFAICT from a quick perusal of Documentation/power/devices.txt.)

    No, it doesn't.

    You will be able to register a suspend notifier instead, but this requires
    one fix which is in the works.

    Thanks,
    Rafael


    \
     
     \ /
      Last update: 2008-07-09 23:59    [W:4.350 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site