aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-10-23 23:19:12 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-25 07:10:16 +0200
commit83643e5d134408e61504caa4e3e9dd776ddd4207 (patch)
tree50e31a4b43609ec480915363b5fad876b5da75ca /arch/x86/mm
parentf92a292abeee48559493433e4e947d0f49fcdd8d (diff)
downloadkernel_samsung_espresso10-83643e5d134408e61504caa4e3e9dd776ddd4207.zip
kernel_samsung_espresso10-83643e5d134408e61504caa4e3e9dd776ddd4207.tar.gz
kernel_samsung_espresso10-83643e5d134408e61504caa4e3e9dd776ddd4207.tar.bz2
x86: Fix S4 regression
commit 8548c84da2f47e71bbbe300f55edb768492575f7 upstream. Commit 4b239f458 ("x86-64, mm: Put early page table high") causes a S4 regression since 2.6.39, namely the machine reboots occasionally at S4 resume. It doesn't happen always, overall rate is about 1/20. But, like other bugs, once when this happens, it continues to happen. This patch fixes the problem by essentially reverting the memory assignment in the older way. Signed-off-by: Takashi Iwai <tiwai@suse.de> Cc: Rafael J. Wysocki <rjw@sisk.pl> Cc: Yinghai Lu <yinghai.lu@oracle.com> [ We'll hopefully find the real fix, but that's too late for 3.1 now ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r--arch/x86/mm/init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
index 3032644..87488b9 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -63,9 +63,8 @@ static void __init find_early_table_space(unsigned long end, int use_pse,
#ifdef CONFIG_X86_32
/* for fixmap */
tables += roundup(__end_of_fixed_addresses * sizeof(pte_t), PAGE_SIZE);
-
- good_end = max_pfn_mapped << PAGE_SHIFT;
#endif
+ good_end = max_pfn_mapped << PAGE_SHIFT;
base = memblock_find_in_range(start, good_end, tables, PAGE_SIZE);
if (base == MEMBLOCK_ERROR)