• Benjamin Herrenschmidt's avatar
    [POWERPC] DEBUG_PAGEALLOC for 64-bit · 370a908d
    Benjamin Herrenschmidt authored
    Here's an implementation of DEBUG_PAGEALLOC for 64 bits powerpc.
    It applies on top of the 32 bits patch.
    
    Unlike Anton's previous attempt, I'm not using updatepp. I'm removing
    the hash entries from the bolted mapping (using a map in RAM of all the
    slots). Expensive but it doesn't really matter, does it ? :-)
    
    Memory hot-added doesn't benefit from this unless it's added at an
    address that is below end_of_DRAM() as calculated at boot time.
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    
     arch/powerpc/Kconfig.debug      |    2
     arch/powerpc/mm/hash_utils_64.c |   84 ++++++++++++++++++++++++++++++++++++++--
     2 files changed, 82 insertions(+), 4 deletions(-)
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    370a908d
Kconfig.debug 5.85 KB