From: Shaohua Li <shaohua.li@intel.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Daniel Ritz <daniel.ritz-ml@swissonline.ch>,
Pavel Machek <pavel@ucw.cz>, "Rafael J. Wysocki" <rjw@sisk.pl>,
linux-kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] swsuspend breakage in 2.6.17-git
Date: Mon, 26 Jun 2006 09:26:53 +0800 [thread overview]
Message-ID: <1151285213.21189.28.camel@sli10-desk.sh.intel.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0606250943580.3747@g5.osdl.org>
On Sun, 2006-06-25 at 09:46 -0700, Linus Torvalds wrote:
>
> On Sun, 25 Jun 2006, Daniel Ritz wrote:
> >
> > commit b6370d96e09944c6e3ae8d5743ca8a8ab1f79f6c:
> > [PATCH] swsusp: i386 mark special saveable/unsaveable pages
> > breaks swsusp for me with a page fault in kernel/power/snapshot.c:save_arch_mem()
> >
> > the following patch makes suspend-resume working again, but some
> > problems still remain: fan goes on and stays on after resume (same as
> > in bug #5000). i guess this is a due to a change in ACPI which i still
> > have to track down along with the problem that acpi is not powering-off
> > my other laptop anymore...
> >
> > comments?
>
> Looking at that whole commit, it looks bogus.
>
> The rule about ACPI memory (whether NVS or not) according to what I have
> seen is that the OS is _not_ supposed to touch that memory except through
> ACPI routines.
>
> So saving and restoring those pages sounds really really wrong in the
> first place. We have no idea what current state it could screw up.
Below is from ACPI spec 3.0 (p405). From my understanding, OS should
save/restore NVS memory ?
ACPI Non-Volatile-Sleeping Memory (NVS). Memory identified by the BIOS
as being reserved by the BIOS for its use. OSPM is required to tag this
memory as cacheable, and to save and restore its image before entering
an S4 state. Except as directed by control methods, OSPM is not allowed
to use this physical memory. OSPM will call the _PTS control method some
time before entering a sleeping state, to allow the platforms 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.
Thanks,
Shaohua
next prev parent reply other threads:[~2006-06-26 1:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-25 14:05 Daniel Ritz
2006-06-25 16:46 ` Linus Torvalds
2006-06-26 1:26 ` Shaohua Li [this message]
2006-06-26 1:49 ` Linus Torvalds
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=1151285213.21189.28.camel@sli10-desk.sh.intel.com \
--to=shaohua.li@intel.com \
--cc=akpm@osdl.org \
--cc=daniel.ritz-ml@swissonline.ch \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
--cc=torvalds@osdl.org \
/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
all inboxes | Powered by JetHome®