Re: [PATCH V2 19/31] powerpc/mm: Convert 4k hash insert to C

2015-10-01 Thread Anshuman Khandual
On 10/01/2015 01:48 AM, Benjamin Herrenschmidt wrote: > On Wed, 2015-09-30 at 17:37 +0530, Anshuman Khandual wrote: >>> + if (unlikely(old_pte & _PAGE_BUSY)) >>> + return 0; >>> + /* If PTE permissions don't match, take page fault */ >> >> We are already

Re: [PATCH V2 19/31] powerpc/mm: Convert 4k hash insert to C

2015-09-30 Thread Benjamin Herrenschmidt
On Wed, 2015-09-30 at 17:37 +0530, Anshuman Khandual wrote: > > + if (unlikely(old_pte & _PAGE_BUSY)) > > + return 0; > > + /* If PTE permissions don't match, take page fault */ > > We are already in page fault interrupt path, will it be better > if we

Re: [PATCH V2 19/31] powerpc/mm: Convert 4k hash insert to C

2015-09-30 Thread Anshuman Khandual
On 09/30/2015 07:57 AM, Aneesh Kumar K.V wrote: > Signed-off-by: Aneesh Kumar K.V > --- > arch/powerpc/mm/Makefile| 3 + > arch/powerpc/mm/hash64_64k.c| 202 + > arch/powerpc/mm/hash_low_64.S | 380 > > arch/powerpc/mm/

[PATCH V2 19/31] powerpc/mm: Convert 4k hash insert to C

2015-09-29 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/Makefile| 3 + arch/powerpc/mm/hash64_64k.c| 202 + arch/powerpc/mm/hash_low_64.S | 380 arch/powerpc/mm/hash_utils_64.c | 4 +- 4 files changed, 208 insertions(+), 3