powerpc: Rely on address instead of pte_user()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 25 Sep 2023 18:31:38 +0000 (20:31 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Oct 2023 06:12:46 +0000 (17:12 +1100)
commita78587473642aec302697cdaceb719a7f8791369
tree2b16d51c31c4c84c3d49ba4899e8adfaa0ac54f3
parent69339071bb27f0b1371cd23d6dada3f976261c20
powerpc: Rely on address instead of pte_user()

pte_user() may return 'false' when a user page is PAGE_NONE.

In that case it is still a user page and needs to be handled
as such. So use is_kernel_addr() instead.

And remove "user" text from ptdump as ptdump only dumps
kernel tables.

Note: no change done for book3s/64 which still has it
'priviledge' bit.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/c778dad89fad07727c31717a9c62f45357c29ebc.1695659959.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/nohash/pgtable.h
arch/powerpc/mm/book3s32/mmu.c
arch/powerpc/mm/nohash/e500.c
arch/powerpc/mm/pgtable.c
arch/powerpc/mm/ptdump/8xx.c
arch/powerpc/mm/ptdump/shared.c