powerpc/mm: Fix page table dump to work on Radix
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Aug 2018 11:29:45 +0000 (21:29 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:24:02 +0000 (09:24 +0100)
commit0b1f1204554e4ade5af9ea8d59ce6b59ef95e894
tree30bdf2abe6ac5d8a1f064b245e61694b14660ab6
parent2b9aed7cb2e2dd48092ce1950a0c4bdd792a19d3
powerpc/mm: Fix page table dump to work on Radix

[ Upstream commit 0d923962ab69c27cca664a2d535e90ef655110ca ]

When we're running on Book3S with the Radix MMU enabled the page table
dump currently prints the wrong addresses because it uses the wrong
start address.

Fix it to use PAGE_OFFSET rather than KERN_VIRT_START.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/mm/dump_linuxpagetables.c