[lkml]   [2008]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [linux-pm] [PATCH -mm] kexec jump -v9

    On Thu, 2008-03-20 at 20:52 -0400, Alan Stern wrote:
    > For an S5 hibernation, the interpreter state within the image is wrong.
    > The image kernel needs to have the interpreter state from the boot
    > kernel -- I don't know if this is possible.

    It's possible.

    1) When hibernating, allocate a page (or pages if one isn't enough) for
    the data to end up in after the atomic restore.
    2) Put the location(s) in the image header.
    3) At resume time, allocate an equivalent number of extra 'safe' pages
    and set up extra pbes for the atomic restore to copy data from the extra
    pages to the ones allocated when hibernating.
    4) At the appropriate point in time, copy the NVS data to the extra
    'safe' pages allocated in step 3.

    The data will then be available to the resumed kernel post-resume.

    I've been using this method to pass data from the boot kernel to the
    resumed kernel for a while now. (I'm using it for I/O speed statistics
    and state preservation).



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