From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: "Moore, Robert" <robert.moore@intel.com>
Cc: "Andrew Morton" <akpm@linux-foundation.org>,
"ACPI Devel Maling List" <linux-acpi@vger.kernel.org>,
"Len Brown" <lenb@kernel.org>,
"LKML" <linux-kernel@vger.kernel.org>,
"Pavel Machek" <pavel@ucw.cz>,
"pm list" <linux-pm@lists.linux-foundation.org>
Subject: Re: [PATCH -mm 3/3] PM: Improve handling of ACPI system state indicator (rev. 3)
Date: Wed, 29 Aug 2007 00:05:11 +0200 [thread overview]
Message-ID: <200708290005.12323.rjw@sisk.pl> (raw)
In-Reply-To: <B28E9812BAF6E2498B7EC5C427F293A4031EF65B@orsmsx415.amr.corp.intel.com>
On Tuesday, 28 August 2007 21:57, Moore, Robert wrote:
> Since these changes appear to affect the ACPICA core in a fairly big
> way, I would like to see a short, concise description of each change and
> why it is necessary.
All right. I'll describe the changes made by the current version of the
patches, but please note that if it's safe to run the AML interpreter with
IRQs disabled, it's better to do some of them in a different way.
1. Remove the execution of _GTS from acpi_enter_sleep_state_prep()
acpi_enter_sleep_state_prep() is called before disabling the nonboot
CPUs and _GTS should be executed after that, according to the spec.
2. Introduce acpi_enter_sleep_state_prep_late() that will execute _GTS
Necessary because of 1.
3. Split acpi_leave_sleep_state() into two functions:
acpi_leave_sleep_state_prep() and acpi_leave_sleep_state().
acpi_leave_sleep_state_prep() contains the code that should be executed
before enabling the nonboot CPUs, most importantly the execution of
_BFS, and acpi_leave_sleep_state() contains the remaining code (the
enabling of GPEs, the execution of _WAK and the enabling of power
buttons)
4. Change the code ordering in acpi_leave_sleep_state_prep() (introduced
in 3.) so that _SST is executed after _BFS
According to the spec, _BFS should be the first ACPI method executed
after leaving a sleep state
5. Introduce acpi_set_sleep_state_indicator() that will execute _SST for given
ACPI sleep state
Needed so that we can set the state indicator independently of the
other lower-level operations.
6. Remove the execution of _SST from acpi_leave_sleep_state()
No longer needed, because we can use acpi_set_sleep_state_indicator()
to set the state indicator appropriately from higher level routines.
The other changes affect only drivers/acpi/sleep/main.c and the files in
kernel/power .
Greetings,
Rafael
next prev parent reply other threads:[~2007-08-28 21:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-27 21:47 [PATCH -mm 0/3] PM: Improve ACPI handling during suspend and hibernation " Rafael J. Wysocki
2007-08-27 21:49 ` [PATCH -mm 1/3] Hibernation: Enter platform hibernation state in a consistent way " Rafael J. Wysocki
2007-08-27 21:51 ` [PATCH -mm 2/3] PM: More fine grained ACPI handling during suspend and hibernation " Rafael J. Wysocki
2007-08-28 19:48 ` Len Brown
2007-08-28 21:35 ` Rafael J. Wysocki
2007-08-29 15:22 ` Rafael J. Wysocki
2007-08-27 21:53 ` [PATCH -mm 3/3] PM: Improve handling of ACPI system state indicator " Rafael J. Wysocki
2007-08-28 19:57 ` Moore, Robert
2007-08-28 22:05 ` Rafael J. Wysocki [this message]
2007-08-29 16:54 ` Moore, Robert
2007-08-29 19:40 ` Rafael J. Wysocki
2007-08-29 15:26 ` [linux-pm] " Rafael J. Wysocki
2007-08-29 22:31 ` [linux-pm] [PATCH -mm 0/3] PM: Improve ACPI handling during suspend and hibernation " Rafael J. Wysocki
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=200708290005.12323.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@linux-foundation.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=pavel@ucw.cz \
--cc=robert.moore@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
Powered by JetHome