powerpc/mm/radix: Update Radix tree size as per ISA 3.0
ISA 3.0 updated it to be encoded as Radix tree size = 2^(RTS + 31). We have it encoded as 2^(RTS + 28). Add a helper with the correct encoding and use it instead of opencoding. Fixes: 2bfd65e4 ("powerpc/mm/radix: Add radix callbacks for early init routines") Reviewed-by:Balbir Singh <bsingharora@gmail.com> Signed-off-by:
Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au>
Showing
- arch/powerpc/include/asm/book3s/64/radix.h 15 additions, 0 deletionsarch/powerpc/include/asm/book3s/64/radix.h
- arch/powerpc/mm/mmu_context_book3s64.c 1 addition, 1 deletionarch/powerpc/mm/mmu_context_book3s64.c
- arch/powerpc/mm/pgtable-radix.c 3 additions, 6 deletionsarch/powerpc/mm/pgtable-radix.c
Loading
Please register or sign in to comment