Re: [PATCH] powerpc/mm: Fix pte_pagesize_index() crash on 4K w/64K hash

2015-07-25 Thread Michael Ellerman
On Fri, 2015-07-24 at 12:15 +0530, Aneesh Kumar K.V wrote: > Michael Ellerman writes: > > > The powerpc kernel can be built to have either a 4K PAGE_SIZE or a 64K > > PAGE_SIZE. ... > > diff --git a/arch/powerpc/include/asm/pgtable-ppc64.h > > b/arch/powerpc/include/asm/pgtable-ppc64.h > > index

Re: [PATCH] powerpc/mm: Fix pte_pagesize_index() crash on 4K w/64K hash

2015-07-23 Thread Aneesh Kumar K.V
Michael Ellerman writes: > The powerpc kernel can be built to have either a 4K PAGE_SIZE or a 64K > PAGE_SIZE. > > However when built with a 4K PAGE_SIZE there is an additional config > option which can be enabled, PPC_HAS_HASH_64K, which means the kernel > also knows how to hash a 64K page even

[PATCH] powerpc/mm: Fix pte_pagesize_index() crash on 4K w/64K hash

2015-07-23 Thread Michael Ellerman
The powerpc kernel can be built to have either a 4K PAGE_SIZE or a 64K PAGE_SIZE. However when built with a 4K PAGE_SIZE there is an additional config option which can be enabled, PPC_HAS_HASH_64K, which means the kernel also knows how to hash a 64K page even though the base PAGE_SIZE is 4K. This