diff options
author | Magnus Damm <magnus@valinux.co.jp> | 2005-11-05 11:25:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-14 22:55:17 -0500 |
commit | ffd10a2b77bca50dd05ba26acd5a6e68bcc8f61f (patch) | |
tree | 92bd5c702cde0c6582950ff66f648e59bf5fb2cd /arch/x86_64/mm/numa.c | |
parent | e583538f077d5f70191670b47a046ba436ec3428 (diff) |
[PATCH] x86_64: Make node boundaries consistent
The current x86_64 NUMA memory code is inconsequent when it comes to node
memory ranges. The exact behaviour varies depending on which config option
that is used.
setup_node_bootmem() has start and end as arguments and these are used to
calculate the size of the node like this: (end - start). This is all fine
if end is pointing to the first non-available byte. The problem is that the
current x86_64 code sometimes treats it as the last present byte and sometimes
as the first non-available byte. The result is that some configurations might
lose a page at the end of the range.
This patch tries to fix CONFIG_ACPI_NUMA, CONFIG_K8_NUMA and CONFIG_NUMA_EMU
so they all treat the end variable as the first non-available byte. This is
the same way as the single node code.
The patch is boot tested on dual x86_64 hardware with the above configurations,
but maybe the removed code is needed as some workaround?
Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/mm/numa.c')
-rw-r--r-- | arch/x86_64/mm/numa.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86_64/mm/numa.c b/arch/x86_64/mm/numa.c index edd5559380d3..629ff0621b3d 100644 --- a/arch/x86_64/mm/numa.c +++ b/arch/x86_64/mm/numa.c | |||
@@ -209,8 +209,6 @@ static int numa_emulation(unsigned long start_pfn, unsigned long end_pfn) | |||
209 | if (i == numa_fake-1) | 209 | if (i == numa_fake-1) |
210 | sz = (end_pfn<<PAGE_SHIFT) - nodes[i].start; | 210 | sz = (end_pfn<<PAGE_SHIFT) - nodes[i].start; |
211 | nodes[i].end = nodes[i].start + sz; | 211 | nodes[i].end = nodes[i].start + sz; |
212 | if (i != numa_fake-1) | ||
213 | nodes[i].end--; | ||
214 | printk(KERN_INFO "Faking node %d at %016Lx-%016Lx (%LuMB)\n", | 212 | printk(KERN_INFO "Faking node %d at %016Lx-%016Lx (%LuMB)\n", |
215 | i, | 213 | i, |
216 | nodes[i].start, nodes[i].end, | 214 | nodes[i].start, nodes[i].end, |