OSDN Git Service

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:19:08 +0000 (09:19 +0100)
commit287deb228d32bf1d361a60420dabb7f0742f807c
tree11315134b90a8cb992c8fae6244f5b0d9711d08b
parent63880b2f99747c04e12fba6588d0222dd90323f9
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