lkml.org 
[lkml]   [2020]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 136/343] powerpc/mm: Check secondary hash page table
    Date
    From: Rashmica Gupta <rashmica.g@gmail.com>

    [ Upstream commit 790845e2f12709d273d08ea7a2af7c2593689519 ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    arch/powerpc/mm/dump_hashpagetable.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/powerpc/mm/dump_hashpagetable.c b/arch/powerpc/mm/dump_hashpagetable.c
    index 5c4c93dcff190..f666d74f05f51 100644
    --- a/arch/powerpc/mm/dump_hashpagetable.c
    +++ b/arch/powerpc/mm/dump_hashpagetable.c
    @@ -343,7 +343,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)
    --
    2.20.1


    \
     
     \ /
      Last update: 2020-01-24 10:56    [W:2.156 / U:24.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site