Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760592AbYCUWFy (ORCPT ); Fri, 21 Mar 2008 18:05:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753460AbYCUWFr (ORCPT ); Fri, 21 Mar 2008 18:05:47 -0400 Received: from mail.tuxonice.net ([67.207.135.122]:58347 "EHLO mail.tuxonice.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753307AbYCUWFr (ORCPT ); Fri, 21 Mar 2008 18:05:47 -0400 X-Bogosity: Ham, spamicity=0.000000 Subject: Re: [linux-pm] [PATCH -mm] kexec jump -v9 From: Nigel Cunningham Reply-To: nigel@nigel.suspend2.net To: Alan Stern Cc: "Rafael J. Wysocki" , Pavel Machek , "Eric W. Biederman" , Kexec Mailing List , linux-kernel@vger.kernel.org, Andrew Morton , linux-pm@lists.linux-foundation.org, Vivek Goyal , Len Brown In-Reply-To: References: Content-Type: text/plain Date: Sat, 22 Mar 2008 09:05:47 +1100 Message-Id: <1206137147.30885.6.camel@nigel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1220 Lines: 33 Hi. 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). Regards, Nigel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/