Thread (21 messages) 21 messages, 4 authors, 2018-01-27

Re: [PATCH v2 2/5] powerpc/32: Fix hugepage allocation on 8xx at hint address

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2018-01-27 09:37:42
Also in: lkml

"Aneesh Kumar K.V" [off-list ref] writes:
Christophe Leroy [off-list ref] writes:
quoted
On the 8xx, the page size is set in the PMD entry and applies to
all pages of the page table pointed by the said PMD entry.
...
quoted
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c
index a9b9083c5e49..79e1378ee303 100644
--- a/arch/powerpc/mm/hugetlbpage.c
+++ b/arch/powerpc/mm/hugetlbpage.c
@@ -553,9 +553,11 @@ unsigned long hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
 	struct hstate *hstate = hstate_file(file);
 	int mmu_psize = shift_to_mmu_psize(huge_page_shift(hstate));
 
+#ifdef CONFIG_PPC_RADIX_MMU
 	if (radix_enabled())
 		return radix__hugetlb_get_unmapped_area(file, addr, len,
 						       pgoff, flags);
+#endif
if (0) didn't remove the following radix__hugetlb_get_unmapped_area for
you? 
It will remove the call, but you still need at least a prototype, or an
empty static inline.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help