powerpc/mm/hash64: Store the slot information at the right offset for hugetlb
The hugetlb pte entries are at the PMD and PUD level, so we can't use PTRS_PER_PTE to find the second half of the page table. Use the right offset for PUD/PMD to get to the second half of the table. Fixes: bf9a95f9 ("powerpc: Free up four 64K PTE bits in 64K backed HPTE pages") Signed-off-by:Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Reviewed-by:
Ram Pai <linuxram@us.ibm.com> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au>
Showing
- arch/powerpc/include/asm/book3s/64/hash-4k.h 2 additions, 1 deletionarch/powerpc/include/asm/book3s/64/hash-4k.h
- arch/powerpc/include/asm/book3s/64/hash-64k.h 5 additions, 4 deletionsarch/powerpc/include/asm/book3s/64/hash-64k.h
- arch/powerpc/include/asm/book3s/64/pgtable.h 1 addition, 1 deletionarch/powerpc/include/asm/book3s/64/pgtable.h
- arch/powerpc/mm/hash64_4k.c 2 additions, 2 deletionsarch/powerpc/mm/hash64_4k.c
- arch/powerpc/mm/hash64_64k.c 4 additions, 4 deletionsarch/powerpc/mm/hash64_64k.c
- arch/powerpc/mm/hugetlbpage-hash64.c 7 additions, 3 deletionsarch/powerpc/mm/hugetlbpage-hash64.c
- arch/powerpc/mm/tlb_hash64.c 7 additions, 2 deletionsarch/powerpc/mm/tlb_hash64.c
Please register or sign in to comment