• Benjamin Herrenschmidt's avatar
    powerpc: Handle both new style and old style reserve maps · c039e3a8
    Benjamin Herrenschmidt authored
    When Jeremy introduced the new device-tree based reserve map, he made
    the code in early_reserve_mem_dt() bail out if it found one, thus not
    reserving the initrd nor processing the old style map.
    
    I hit problems with variants of kexec that didn't put the initrd in
    the new style map either. While these could/will be fixed, I believe
    we should be safe here and rather reserve more than not enough.
    
    We could have a firmware passing stuff via the new style map, and
    in the middle, a kexec that knows nothing about it and adding other
    things to the old style map.
    
    I don't see a big issue with processing both and reserving everything
    that needs to be. memblock_reserve() supports overlaps fine these days.
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    c039e3a8
prom.c 24.3 KB