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

Christophe LEROY christophe.leroy at c-s.fr
Mon Apr 9 18:55:00 AEST 2018



Le 09/04/2018 à 10:33, Aneesh Kumar K.V a écrit :
> On 04/09/2018 12:49 PM, Christophe LEROY wrote:
>>
>>
>> Le 26/03/2018 à 12:04, Aneesh Kumar K.V a écrit :
>>> 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 <aneesh.kumar at linux.vnet.ibm.com>
>>> [mpe: Minor formatting tweaks and comment wording, switch BUG to WARN
>>>        in get_ea_context().]
>>> Signed-off-by: Michael Ellerman <mpe at 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

Yes compilation OK now.

Christophe

> 
> -aneesh


More information about the Linuxppc-dev mailing list