]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 12 Apr 2017 13:00:25 +0000 (23:00 +1000)
commitaaa229529244a1135b29353fefb001c430db79f0
treea41618d769c024aaf9481e2c87bffab38af9ff59
parent70538eaa70c36340b4bb27206cad31839e916f40
powerpc/mm: Add physical address to Linux page table dump

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>
arch/powerpc/mm/dump_linuxpagetables.c