public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm <linux-pm@lists.linux-foundation.org>,
	linux-acpi <linux-acpi@vger.kernel.org>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [linux-pm] [RFC PATCH 0/4] save and restore ACPI NVS memory during hibernation
Date: Tue, 8 Jul 2008 21:37:53 +0200	[thread overview]
Message-ID: <20080708193752.GD8694@ucw.cz> (raw)
In-Reply-To: <1215051868.5628.32.camel@rzhang-dt.sh.intel.com>

Hi!

> According to the ACPI spec, ACPI NVS memory region is required to
> be saved/restored by OS during hibernation.
> 
> Section 15.3.2 ACPI Spec 3.0b,
> "OSPM will call the _PTS control method some time before entering
> a sleeping state, to allow the platform???s AML code to update
> this memory image before entering the sleeping state.
> After the system awakes from an S4 state, OSPM will restore this
> memory area and call the _WAK control method to enable the BIOS
> to reclaim its memory image."
> 
> This patch set add the mechanism to save/restore ACPI NVS memory
> during hibernation.
> 
> Patch 01: call platform_begin before swsusp_shrink_memory.
> 	So that we can allocate enough pages for ACPI NVS memory
> 	before shrink the memory.

Why is it neccessary to allocate memory for a copy? We should be able
to save ACPI NVS area same way we are saving kernel pages, no?
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2008-07-09 14:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03  2:24 [RFC PATCH 0/4] save and restore ACPI NVS memory during hibernation Zhang Rui
2008-07-08 19:37 ` Pavel Machek [this message]
2008-07-09 19:37   ` [linux-pm] " Rafael J. Wysocki
2008-07-11 18:51     ` Pavel Machek
2008-07-11 19:18       ` Rafael J. Wysocki
2008-07-11 20:52         ` Pavel Machek
2008-07-11 20:59           ` Rafael J. Wysocki
2008-07-11 21:56             ` Yinghai Lu
2008-07-12  0:40               ` Rafael J. Wysocki
2008-07-14  6:26                 ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080708193752.GD8694@ucw.cz \
    --to=pavel@suse.cz \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox