• Bob Picco's avatar
    [IA64] fix memory less node allocation · 97835245
    Bob Picco authored
    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: default avatarBob Picco <bob.picco@hp.com>
    Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
    97835245
discontig.c 20.6 KB