diff options
| author | Rashmica Gupta <rashmica.g@gmail.com> | 2019-02-12 18:29:49 -0500 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-03-01 22:43:05 -0500 |
| commit | 790845e2f12709d273d08ea7a2af7c2593689519 (patch) | |
| tree | f36adbe03cfe8409a4fdaa984cb5a523f9f25742 | |
| parent | 6b1200facc051a3e487a52cbabd745f7c8f4e9f8 (diff) | |
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 <rashmica.g@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
| -rw-r--r-- | arch/powerpc/mm/ptdump/hashpagetable.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 342 | 342 | ||
| 343 | /* Look in secondary table */ | 343 | /* Look in secondary table */ |
| 344 | if (slot == -1) | 344 | if (slot == -1) |
| 345 | slot = base_hpte_find(ea, psize, true, &v, &r); | 345 | slot = base_hpte_find(ea, psize, false, &v, &r); |
| 346 | 346 | ||
| 347 | /* No entry found */ | 347 | /* No entry found */ |
| 348 | if (slot == -1) | 348 | if (slot == -1) |
