]> git.baikalelectronics.ru Git - kernel.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)
commitcc896ad88419880e76c845c70f66f2135d31e2b8
treea41618d769c024aaf9481e2c87bffab38af9ff59
parent550fdc79fdbea9777384761757aba1a30b6cb6f5
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: 0796cc493713 ("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