powerpc/mm/hash: Increase vmalloc space to 512T with hash MMU
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Feb 2019 11:15:09 +0000 (16:45 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Feb 2019 13:10:14 +0000 (00:10 +1100)
commit3d8810e02b7f811be3bc9ad2f433be4e245e8267
tree4e441325bf9c3b42231c0fe1fff8853335fef979
parentca6d5149d2ad0a8d2f9c28cbe379802260a0a5e0
powerpc/mm/hash: Increase vmalloc space to 512T with hash MMU

This patch updates the kernel non-linear virtual map to 512TB when
we're built with 64K page size and are using the hash MMU. We allocate
one context for the vmalloc region and hence the max virtual area size
is limited by the context map size (512TB for 64K and 64TB for 4K page
size).

This patch fixes boot failures with large amounts of system RAM where
we need large vmalloc space to handle per cpu allocations.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tested-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
arch/powerpc/include/asm/book3s/64/hash.h