Re: [PATCH 1/7] powerpc: introduce pte_set_hash_slot() helper

2017-10-18 Thread Michael Ellerman
Ram Pai writes: > diff --git a/arch/powerpc/include/asm/book3s/64/hash-64k.h > b/arch/powerpc/include/asm/book3s/64/hash-64k.h > index 9732837..6652669 100644 > --- a/arch/powerpc/include/asm/book3s/64/hash-64k.h > +++ b/arch/powerpc/include/asm/book3s/64/hash-64k.h > @@ -74,6 +74,31 @@ static in

Re: [PATCH 1/7] powerpc: introduce pte_set_hash_slot() helper

2017-09-13 Thread Balbir Singh
On Sat, Sep 9, 2017 at 8:44 AM, Ram Pai wrote: > Introduce pte_set_hash_slot().It sets the (H_PAGE_F_SECOND|H_PAGE_F_GIX) > bits at the appropriate location in the PTE of 4K PTE. For > 64K PTE, it sets the bits in the second part of the PTE. Though > the implementation f

[PATCH 1/7] powerpc: introduce pte_set_hash_slot() helper

2017-09-08 Thread Ram Pai
Introduce pte_set_hash_slot().It sets the (H_PAGE_F_SECOND|H_PAGE_F_GIX) bits at the appropriate location in the PTE of 4K PTE. For 64K PTE, it sets the bits in the second part of the PTE. Though the implementation for the former just needs the slot parameter, it does tak