aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/xmon/xmon.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>2019-05-14 02:03:00 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2019-07-04 10:43:50 -0400
commitd6eacedd1f0ebf00bdf1c77715d194f7c1036fd4 (patch)
treebf977356cbeb533eb3a4e2d73d4923eba6188be3 /arch/powerpc/xmon/xmon.c
parent259a948c4ba1829ae4a3c31bb6e40ad458a21254 (diff)
powerpc/book3s: Use config independent helpers for page table walk
Even when we have HugeTLB and THP disabled, kernel linear map can still be mapped with hugepages. This is only an issue with radix translation because hash MMU doesn't map kernel linear range in linux page table and other kernel map areas are not mapped using hugepage. Add config independent helpers and put WARN_ON() when we don't expect things to be mapped via hugepages. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/xmon/xmon.c')
-rw-r--r--arch/powerpc/xmon/xmon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index f879e9fe9733..2ec20a5bb556 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -3098,7 +3098,7 @@ static void show_pte(unsigned long addr)
3098 3098
3099 printf("pgd @ 0x%px\n", pgdir); 3099 printf("pgd @ 0x%px\n", pgdir);
3100 3100
3101 if (pgd_huge(*pgdp)) { 3101 if (pgd_is_leaf(*pgdp)) {
3102 format_pte(pgdp, pgd_val(*pgdp)); 3102 format_pte(pgdp, pgd_val(*pgdp));
3103 return; 3103 return;
3104 } 3104 }
@@ -3111,7 +3111,7 @@ static void show_pte(unsigned long addr)
3111 return; 3111 return;
3112 } 3112 }
3113 3113
3114 if (pud_huge(*pudp)) { 3114 if (pud_is_leaf(*pudp)) {
3115 format_pte(pudp, pud_val(*pudp)); 3115 format_pte(pudp, pud_val(*pudp));
3116 return; 3116 return;
3117 } 3117 }
@@ -3125,7 +3125,7 @@ static void show_pte(unsigned long addr)
3125 return; 3125 return;
3126 } 3126 }
3127 3127
3128 if (pmd_huge(*pmdp)) { 3128 if (pmd_is_leaf(*pmdp)) {
3129 format_pte(pmdp, pmd_val(*pmdp)); 3129 format_pte(pmdp, pmd_val(*pmdp));
3130 return; 3130 return;
3131 } 3131 }