Thread (9 messages) 9 messages, 4 authors, 2018-04-09

Re: [PATCH V6 2/4] powerpc/mm: Add support for handling > 512TB address in SLB miss

flat view

From: Aneesh Kumar K.V <hidden>
Date: 2018-04-09 08:35:05
Subsystem: linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Linus Torvalds

On 04/09/2018 12:49 PM, Christophe LEROY wrote:

Le 26/03/2018 à 12:04, Aneesh Kumar K.V a écrit :
quoted
For addresses above 512TB we allocate additional mmu contexts. To make
it all easy, addresses above 512TB are handled with IR/DR=1 and with
stack frame setup.

The mmu_context_t is also updated to track the new extended_ids. To
support upto 4PB we need a total 8 contexts.

Signed-off-by: Aneesh Kumar K.V <redacted>
[mpe: Minor formatting tweaks and comment wording, switch BUG to WARN
       in get_ea_context().]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Compilation fails on mpc885_ads_defconfig + CONFIG_HUGETLBFS :

   CC      arch/powerpc/mm/slice.o
arch/powerpc/mm/slice.c: In function 'slice_get_unmapped_area':
arch/powerpc/mm/slice.c:655:2: error: implicit declaration of function 'need_extra_context' [-Werror=implicit-function-declaration]
arch/powerpc/mm/slice.c:656:3: error: implicit declaration of function 'alloc_extended_context' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [arch/powerpc/mm/slice.o] Error 1
make: *** [arch/powerpc/mm] Error 2

something like below?
diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c
index 9cd87d1..205fe55 100644
--- a/arch/powerpc/mm/slice.c
+++ b/arch/powerpc/mm/slice.c
@@ -35,6 +35,7 @@
 #include <asm/mmu.h>
 #include <asm/copro.h>
 #include <asm/hugetlb.h>
+#include <asm/mmu_context.h>

 static DEFINE_SPINLOCK(slice_convert_lock);

PPC64 was including that header via include/linux/pkeys.h

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