]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Add addr_limit to mm_context and use it to derive max slice index
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 22 Mar 2017 03:36:58 +0000 (09:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 1 Apr 2017 10:12:20 +0000 (21:12 +1100)
commitcb2bbbd706bbb9f35a64de51b19f763888dc416c
treee4ffce7347a62e55ac2cd99b3efdb2e62c7cf070
parent455b298ea1b9a1f0c97f98cfdfbdd8362abd0f10
powerpc/mm: Add addr_limit to mm_context and use it to derive max slice index

In the followup patch, we will increase the slice array size to handle
512TB range, but will limit the max addr to 128TB. Avoid doing
unnecessary computation and avoid doing slice mask related operation
above address limit.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu-hash.h
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/kernel/paca.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/mm/mmu_context_book3s64.c
arch/powerpc/mm/slice.c