]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/mm: Add physical address to Linux page table dump
authorOliver O'Halloran <oohall@gmail.com>
Fri, 31 Mar 2017 01:37:49 +0000 (12:37 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Jun 2017 05:06:18 +0000 (07:06 +0200)
commit0393c1c8a606b2c8ccc1d7a1fad28c6c1d1bfeee
tree895ab0f1e44e48874de21cfcd45a2219d97b3907
parent35434c87b1d4a8b6b6476ba91e85beb58970aeef
powerpc/mm: Add physical address to Linux page table dump

commit aaa229529244a1135b29353fefb001c430db79f0 upstream.

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: 8eb07b187000 ("powerpc/mm: Dump linux pagetables")
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
[mpe: Print the physicall address with 0x like the other addresses]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/mm/dump_linuxpagetables.c