]> git.karo-electronics.de Git - mv-sheeva.git/commit
[IA64] fix memory less node allocation
authorBob Picco <bob.picco@hp.com>
Sat, 29 Oct 2005 21:23:05 +0000 (17:23 -0400)
committerTony Luck <tony.luck@intel.com>
Tue, 8 Nov 2005 17:56:15 +0000 (09:56 -0800)
commit97835245768a638002722a36ba9a3b76d0910f68
tree14953474ff8aa28f61150518b9af2ef55968f6fc
parentf093182d313edde9b1f86dbdaf40ba4da2dbd0e7
[IA64] fix memory less node allocation

The original memory less node allocation attempted to use NODEDATA_ALIGN for
alignment.  The bootmem allocator only allows a power of two alignments. This
causes a BUG_ON for some nodes. For cpu only nodes just allocate with a
PERCPU_PAGE_SIZE alignment.

Some older firmware reports SLIT distances of 0xff and results in bestnode
not being computed. This is now treated correctly.

The failed allocation check was removed because it's redundant.  The
bootmem allocator already makes this check.

This fix has been boot tested on 4 node machine which has 4 cpu only nodes
and 1 memory node.  Thanks to Pete Keilty for reporting this and helping me
test it.

Signed-off-by: Bob Picco <bob.picco@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/mm/discontig.c