alistair23-linux/arch/x86/kernel/acpi
Rafael J. Wysocki 3038edabf4 x86 ACPI: fix breakage of resume on 64-bit UP systems with SMP kernel
x86 ACPI: Fix breakage of resume on 64-bit UP systems with SMP kernel

We are now using per CPU GDT tables in head_64.S and the original
early_gdt_descr.address is invalidated after boot by
setup_per_cpu_areas().  This breaks resume from suspend to RAM on
x86_64 UP systems using SMP kernels, because this part of head_64.S
is also executed during the resume and the invalid GDT address
causes the system to crash.  It doesn't break on 'true' SMP systems,
because early_gdt_descr.address is modified every time
native_cpu_up() runs.  However, during resume it should point to the
GDT of the boot CPU rather than to another CPU's GDT.

For this reason, during suspend to RAM always make
early_gdt_descr.address point to the boot CPU's GDT.

This fixes http://bugzilla.kernel.org/show_bug.cgi?id=11568, which
is a regression from 2.6.26.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@suse.cz>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Reported-and-tested-by: Andy Wettstein <ajw1980@gmail.com>
2008-10-17 14:19:49 +02:00
..
realmode x86 ACPI: normalize segment descriptor register on resume 2008-07-05 08:25:40 +02:00
boot.c Merge branch 'linus' into x86/quirks 2008-10-12 12:43:21 +02:00
cstate.c cpumask: change cpumask_of_cpu_ptr to use new cpumask_of_cpu 2008-07-26 16:40:33 +02:00
Makefile kbuild, suspend, x86: fix rebuild of wakeup.bin 2008-05-04 20:04:45 +02:00
processor.c ACPI: Disable the C2C3_FFH access mode HW has no MWAIT support 2008-07-16 23:27:04 +02:00
sleep.c x86 ACPI: fix breakage of resume on 64-bit UP systems with SMP kernel 2008-10-17 14:19:49 +02:00
sleep.h x86: move suspend wakeup code to C 2008-04-17 17:41:37 +02:00
wakeup_32.S x86: move suspend wakeup code to C 2008-04-17 17:41:37 +02:00
wakeup_64.S x86: move suspend wakeup code to C 2008-04-17 17:41:37 +02:00
wakeup_rm.S x86: move suspend wakeup code to C 2008-04-17 17:41:37 +02:00