linux/arch/x86_64/mm
Magnus Damm ffd10a2b77 [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>
2005-11-14 19:55:17 -08:00
..
extable.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fault.c [PATCH] x86-64: Safe interrupts in oops_begin/end 2005-09-12 10:50:57 -07:00
init.c [PATCH] x86_64: Replace swiotlb extern with include 2005-11-14 19:55:15 -08:00
ioremap.c [PATCH] mm: init_mm without ptlock 2005-10-29 21:40:40 -07:00
k8topology.c [PATCH] x86_64: Make node boundaries consistent 2005-11-14 19:55:17 -08:00
Makefile [PATCH] reorganize x86-64 NUMA and DISCONTIGMEM config options 2005-06-23 09:45:06 -07:00
numa.c [PATCH] x86_64: Make node boundaries consistent 2005-11-14 19:55:17 -08:00
pageattr.c [PATCH] x86_64: Fix change_page_attr cache flushing 2005-10-10 16:10:33 -07:00
srat.c [PATCH] x86_64: Make node boundaries consistent 2005-11-14 19:55:17 -08:00