powerpc/mm/book3s64: Skip 16G page reservation with radix
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Mon, 22 Jun 2020 06:40:19 +0000 (12:10 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 22 Jun 2020 10:29:51 +0000 (20:29 +1000)
commit86590e524ee834b629afc55d8e5786091fbf84cc
tree5aa1de4f8edefdb9c2e3d69c7c750e5c9192b7c0
parent548ad77d10f7ad6e5f84a0026978da2ed1df0dae
powerpc/mm/book3s64: Skip 16G page reservation with radix

With hash translation, the hypervisor can hint the LPAR about 16GB contiguous range
via ibm,expected#pages. The kernel marks the range specified in the device tree
as reserved. Avoid doing this when using radix translation. Radix translation
only supports 1G gigantic hugepage and kernel can do the 1G gigantic hugepage
allocation via early memblock reservation. This can be done because with radix
translation pages are not required to be contiguous on the host.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200622064019.16682-1-aneesh.kumar@linux.ibm.com
arch/powerpc/mm/book3s64/hash_utils.c