Commit 790845e2 authored by Rashmica Gupta's avatar Rashmica Gupta Committed by Michael Ellerman

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: 1515ab93 ("powerpc/mm: Dump hash table")
Signed-off-by: default avatarRashmica Gupta <rashmica.g@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 6b1200fa
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment