linux/drivers/acpi
Thomas Gleixner b04e7bdb98 ACPI: disable lower idle C-states across suspend/resume
device_suspend() calls ACPI suspend functions, which seems to have undesired
side effects on lower idle C-states. It took me some time to realize that
especially the VAIO BIOSes (both Andrews jinxed UP and my elfstruck SMP one)
show this effect. I'm quite sure that other bug reports against suspend/resume
about turning the system into a brick have the same root cause.

After fishing in the dark for quite some time, I realized that removing the ACPI
processor module before suspend (this removes the lower C-state functionality)
made the problem disappear. Interestingly enough the propability of having a
bricked box is influenced by various factors (interrupts, size of the ram image,
...). Even adding a bunch of printks in the wrong places made the problem go
away. The previous periodic tick implementation simply pampered over the
problem, which explains why the dyntick / clockevents changes made this more
prominent.

We avoid complex functionality during the boot process and we have to do the
same during suspend/resume. It is a similar scenario and equaly fragile.

Add suspend / resume functions to the ACPI processor code and disable the lower
idle C-states across suspend/resume. Fall back to the default idle
implementation (halt) instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Len Brown <lenb@kernel.org>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-09-22 17:15:34 -07:00
..
dispatcher
events
executer
hardware ACPI: enable GPEs before calling _WAK on resume 2007-08-24 01:24:47 -04:00
namespace ACPI: Fix a warning of discarding qualifiers from pointer target type 2007-08-25 01:38:40 -04:00
parser
resources
sleep ACPI: suspend: consolidate handling of Sx states addendum 2007-09-21 21:53:18 -04:00
tables ACPI: Validate XSDT, use RSDT if XSDT fails 2007-08-24 18:46:25 -04:00
utilities ACPI: add dump_stack() to trace acpi_format_exception programming errors 2007-08-25 01:39:02 -04:00
ac.c ACPI: Schedule /proc/acpi/event for removal 2007-08-23 15:20:26 -04:00
acpi_memhotplug.c
asus_acpi.c ACPI: Schedule /proc/acpi/event for removal 2007-08-23 15:20:26 -04:00
battery.c Pull events into release branch 2007-08-25 01:44:01 -04:00
bay.c
blacklist.c
bus.c ACPI: Schedule /proc/acpi/event for removal 2007-08-23 15:20:26 -04:00
button.c ACPI: Schedule /proc/acpi/event for removal 2007-08-23 15:20:26 -04:00
cm_sbs.c
container.c
debug.c
dock.c
ec.c ACPI: EC: Check if boot_ec was really found in DSDT 2007-08-30 22:20:13 -07:00
event.c ACPI: fix CONFIG_NET=n acpi_bus_generate_netlink_event build failure 2007-09-03 11:15:11 -04:00
fan.c
glue.c
Kconfig reverse CONFIG_ACPI_PROC_EVENT default 2007-08-27 10:27:48 -07:00
Makefile
numa.c
osl.c
pci_bind.c
pci_irq.c
pci_link.c
pci_root.c
power.c
processor_core.c ACPI: disable lower idle C-states across suspend/resume 2007-09-22 17:15:34 -07:00
processor_idle.c ACPI: disable lower idle C-states across suspend/resume 2007-09-22 17:15:34 -07:00
processor_perflib.c
processor_thermal.c
processor_throttling.c
sbs.c ACPI: Schedule /proc/acpi/event for removal 2007-08-23 15:20:26 -04:00
scan.c make drivers/acpi/scan.c:create_modalias() static 2007-08-25 01:38:51 -04:00
system.c
tables.c
thermal.c Pull events into release branch 2007-08-25 01:44:01 -04:00
toshiba_acpi.c
utils.c
video.c ACPI: video: remove dmesg spam 2007-09-18 13:45:20 -04:00