Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Aneesh Kumar K.V and committed by
Michael Ellerman
86590e52 548ad77d

+1 -1
+1 -1
arch/powerpc/mm/book3s64/hash_utils.c
··· 596 596 } 597 597 598 598 #ifdef CONFIG_HUGETLB_PAGE 599 - if (!hugetlb_disabled) { 599 + if (!hugetlb_disabled && !early_radix_enabled() ) { 600 600 /* Reserve 16G huge page memory sections for huge pages */ 601 601 of_scan_flat_dt(htab_dt_scan_hugepage_blocks, NULL); 602 602 }