[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-bd2753b2dda7bb43c7468826de75f49c6a7e8965@git.kernel.org>
Date: Fri, 8 Jun 2012 07:48:26 -0700
From: tip-bot for Yinghai Lu <yinghai@...nel.org>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...nel.org,
yinghai@...nel.org, a.p.zijlstra@...llo.nl,
torvalds@...ux-foundation.org, holt@....com,
xiyou.wangcong@...il.com, akpm@...ux-foundation.org,
tglx@...utronix.de
Subject: [tip:x86/urgent] x86/mm:
Only add extra pages count for the first memory range during pre-allocation early page table space
Commit-ID: bd2753b2dda7bb43c7468826de75f49c6a7e8965
Gitweb: http://git.kernel.org/tip/bd2753b2dda7bb43c7468826de75f49c6a7e8965
Author: Yinghai Lu <yinghai@...nel.org>
AuthorDate: Wed, 6 Jun 2012 10:55:40 -0700
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Fri, 8 Jun 2012 11:40:50 +0200
x86/mm: Only add extra pages count for the first memory range during pre-allocation early page table space
Robin found this regression:
| I just tried to boot an 8TB system. It fails very early in boot with:
| Kernel panic - not syncing: Cannot find space for the kernel page tables
git bisect commit 722bc6b16771ed80871e1fd81c86d3627dda2ac8.
A git revert of that commit does boot past that point on the 8TB
configuration.
That commit will add up extra pages for all memory range even
above 4g.
Try to limit that extra page count adding to first entry only.
Bisected-by: Robin Holt <holt@....com>
Tested-by: Robin Holt <holt@....com>
Signed-off-by: Yinghai Lu <yinghai@...nel.org>
Cc: WANG Cong <xiyou.wangcong@...il.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Link: http://lkml.kernel.org/r/CAE9FiQUj3wyzQxtq9yzBNc9u220p8JZ1FYHG7t%3DMOzJ%3D9BZMYA@mail.gmail.com
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
arch/x86/mm/init.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
index 97141c2..bc4e9d8 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -62,7 +62,8 @@ static void __init find_early_table_space(struct map_range *mr, unsigned long en
extra += PMD_SIZE;
#endif
/* The first 2/4M doesn't use large pages. */
- extra += mr->end - mr->start;
+ if (mr->start < PMD_SIZE)
+ extra += mr->end - mr->start;
ptes = (extra + PAGE_SIZE - 1) >> PAGE_SHIFT;
} else
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists