• Oliver O'Halloran's avatar
    powerpc/mm: Add physical address to Linux page table dump · aaa22952
    Oliver O'Halloran authored
    The current page table dumper scans the Linux page tables and coalesces mappings
    with adjacent virtual addresses and similar PTE flags. This behaviour is
    somewhat broken when you consider the IOREMAP space where entirely unrelated
    mappings will appear to be virtually contiguous. This patch modifies the range
    coalescing so that only ranges that are both physically and virtually contiguous
    are combined. This patch also adds to the dump output the physical address at
    the start of each range.
    
    Fixes: 8eb07b18 ("powerpc/mm: Dump linux pagetables")
    Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
    [mpe: Print the physicall address with 0x like the other addresses]
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    aaa22952
dump_linuxpagetables.c 10.8 KB