From: Rashmica Gupta Date: Tue, 12 Feb 2019 23:29:49 +0000 (+1100) Subject: powerpc/mm: Check secondary hash page table X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=790845e2f12709d273d08ea7a2af7c2593689519;p=openwrt%2Fstaging%2Fblogic.git powerpc/mm: Check secondary hash page table We were always calling base_hpte_find() with primary = true, even when we wanted to check the secondary table. mpe: I broke this when refactoring Rashmica's original patch. Fixes: 1515ab932156 ("powerpc/mm: Dump hash table") Signed-off-by: Rashmica Gupta Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/mm/ptdump/hashpagetable.c b/arch/powerpc/mm/ptdump/hashpagetable.c index 869294695048..b430e4e08af6 100644 --- a/arch/powerpc/mm/ptdump/hashpagetable.c +++ b/arch/powerpc/mm/ptdump/hashpagetable.c @@ -342,7 +342,7 @@ static unsigned long hpte_find(struct pg_state *st, unsigned long ea, int psize) /* Look in secondary table */ if (slot == -1) - slot = base_hpte_find(ea, psize, true, &v, &r); + slot = base_hpte_find(ea, psize, false, &v, &r); /* No entry found */ if (slot == -1)