Subject: Re: [PATCH V5 05/31] powerpc/mm: Move hash specific pte width and other defines to book3s

From: Anshuman Khandual <[email-masked]>
Date: Tue, 24 Nov 2015 16:49:16 +0530

On 11/23/2015 03:52 PM, Aneesh Kumar K.V wrote:
> This further make a copy of pte defines to book3s/64/hash*.h. This
> remove the dependency on ppc64-4k.h and ppc64-64k.h
> 

These files are pgtable-ppc64-4k.h and pgtable-ppc64-64k.h instead.

> Acked-by: Scott Wood <[email-masked]>
> Signed-off-by: Aneesh Kumar K.V <[email-masked]>

>  /* Additional PTE bits (don't change without checking asm in hash_low.S) */
>  #define _PAGE_SPECIAL	0x00000400 /* software: special page */
> @@ -74,8 +105,8 @@ static inline unsigned long __rpte_to_hidx(real_pte_t rpte, unsigned long index)
>  #define __rpte_to_pte(r)	((r).pte)
>  #define __rpte_sub_valid(rpte, index) \
>  	(pte_val(rpte.pte) & (_PAGE_HPTE_SUB0 >> (index)))
> -
> -/* Trick: we set __end to va + 64k, which happens works for
> +/*
> + * Trick: we set __end to va + 64k, which happens works for

The above change can be avoided in this patch and should be part
of a separate cleanup patch.