From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754475AbYFMSNv (ORCPT ); Fri, 13 Jun 2008 14:13:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751295AbYFMSNl (ORCPT ); Fri, 13 Jun 2008 14:13:41 -0400 Received: from mx1.redhat.com ([66.187.233.31]:47296 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750701AbYFMSNk (ORCPT ); Fri, 13 Jun 2008 14:13:40 -0400 Date: Fri, 13 Jun 2008 14:05:55 -0400 From: Vivek Goyal To: "Huang, Ying" Cc: Len Brown , "Eric W. Biederman" , Pavel Machek , nigel@nigel.suspend2.net, "Rafael J. Wysocki" , Andrew Morton , linux-pm@lists.linux-foundation.org, Kexec Mailing List , linux-kernel@vger.kernel.org Subject: Re: [linux-pm] [PATCH -mm 2/2] kexec jump -v11: save/restore device state Message-ID: <20080613180555.GB4906@redhat.com> References: <1213082106.22608.30.camel@caritas-dev.intel.com> <1213146074.21923.10.camel@caritas-dev.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1213146074.21923.10.camel@caritas-dev.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 11, 2008 at 09:01:14AM +0800, Huang, Ying wrote: > On Tue, 2008-06-10 at 14:01 -0400, Len Brown wrote: > > > > On Tue, 10 Jun 2008, Huang, Ying wrote: > > > > > This patch implements devices state save/restore before after kexec. > > > > > > > > > This patch together with features in kexec_jump patch can be used for > > > following: > > > > > > - A simple hibernation implementation without ACPI support. You can > > > kexec a hibernating kernel, save the memory image of original system > > > and shutdown the system. When resuming, you restore the memory image > > > of original system via ordinary kexec load then jump back. > > > > What part of ACPI's role in hibernation are you trying to avoid > > 1. enabling wake devices > > 2. removing power from the system > > 3. something else? > > ACPI S5 is used instead of S4 for this simple hibernation > implementation. That is, before creating the hibernation image, the ACPI > _PTS is not executed, devices are not put into low power state and wake > devices are not enabled. After creating the hibernation image, the image > is saved to disk and system is shutdown (go to S5). When resuming from > hibernated image, ACPI _BFS and _WAK are not executed too. Hi huang, Can't we implement ACPI S5 state as an option in current hibernation framework? Or kexec jump is a requirement for that? Thanks Vivek