• Andi Kleen's avatar
    [PATCH] x86_64: Handle empty PXMs that only contain hotplug memory · a8062231
    Andi Kleen authored
    The node setup code would try to allocate the node metadata in the node
    itself, but that fails if there is no memory in there.
    
    This can happen with memory hotplug when the hotplug area defines an so
    far empty node.
    
    Now use bootmem to try to allocate the mem_map in other nodes.
    
    And if it fails don't panic, but just ignore the node.
    
    To make this work I added a new __alloc_bootmem_nopanic function that
    does what its name implies.
    
    TBD should try to use nearby nodes here.  Currently we just use any.
    It's hard to do it better because bootmem doesn't have proper fallback
    lists yet.
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    a8062231
srat.c 11.9 KB