Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754025AbYCVUuV (ORCPT ); Sat, 22 Mar 2008 16:50:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755359AbYCVUuG (ORCPT ); Sat, 22 Mar 2008 16:50:06 -0400 Received: from netrider.rowland.org ([192.131.102.5]:4118 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754966AbYCVUuE (ORCPT ); Sat, 22 Mar 2008 16:50:04 -0400 Date: Sat, 22 Mar 2008 16:49:59 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: "Rafael J. Wysocki" cc: Pavel Machek , "Eric W. Biederman" , , Kexec Mailing List , , Andrew Morton , , Vivek Goyal , Len Brown Subject: Re: [linux-pm] [PATCH -mm] kexec jump -v9 In-Reply-To: <200803221845.13826.rjw@sisk.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1379 Lines: 26 On Sat, 22 Mar 2008, Rafael J. Wysocki wrote: > However, as far as the ACPI NVS area is concerned, this is probably not > necessary, because the spec wants us to restore the ACPI NVS before calling > _WAK, which is just after the image kernel gets the control back. So, in > theory, the ACPI NVS data could be stored in the image and restored by > the image kernel from a location known to it (the procedure may be to copy > the ACPI NVS data into a region of regular RAM before creating the image and > copy them back into the ACPI NVS area in platform->leave(), for example), but > I suspect that for this to work we'll have to switch ACPI off in the boot > kernel, just prior to passing control back to the image kernel. That sounds by far the simplest solution. If the boot kernel can tell (by looking at some header field in the image or any other way) that the hibernation used S5 instead of S4, then it should just turn off ACPI before passing control to the image kernel. Then the image kernel can turn ACPI back on and all should be well. If you do this, does the NVS region still need to be preserved? Alan Stern -- 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/