Re: [PATCH -mm 3/3] PM: Improve handling of ACPI system state indicator (rev. 3)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rafael J. Wysocki
Date: Tuesday, August 28, 2007 - 3:05 pm

On Tuesday, 28 August 2007 21:57, Moore, Robert wrote:

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
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -mm 0/3] PM: Improve ACPI handling during suspend a ..., Rafael J. Wysocki, (Mon Aug 27, 2:47 pm)
[PATCH -mm 1/3] Hibernation: Enter platform hibernation st ..., Rafael J. Wysocki, (Mon Aug 27, 2:49 pm)
[PATCH -mm 2/3] PM: More fine grained ACPI handling during ..., Rafael J. Wysocki, (Mon Aug 27, 2:51 pm)
[PATCH -mm 3/3] PM: Improve handling of ACPI system state ..., Rafael J. Wysocki, (Mon Aug 27, 2:53 pm)
Re: [PATCH -mm 2/3] PM: More fine grained ACPI handling du ..., Rafael J. Wysocki, (Tue Aug 28, 2:35 pm)
Re: [PATCH -mm 3/3] PM: Improve handling of ACPI system st ..., Rafael J. Wysocki, (Tue Aug 28, 3:05 pm)
Re: [PATCH -mm 2/3] PM: More fine grained ACPI handling du ..., Rafael J. Wysocki, (Wed Aug 29, 8:22 am)
Re: [linux-pm] [PATCH -mm 3/3] PM: Improve handling of ACP ..., Rafael J. Wysocki, (Wed Aug 29, 8:26 am)
Re: [PATCH -mm 3/3] PM: Improve handling of ACPI system st ..., Rafael J. Wysocki, (Wed Aug 29, 12:40 pm)
Re: [linux-pm] [PATCH -mm 0/3] PM: Improve ACPI handling d ..., Rafael J. Wysocki, (Wed Aug 29, 3:31 pm)