Re: [RFC PATCH 2/3] powerpc/mm: Implement pmdp_establish for ppc64

2017-07-27 Thread Aneesh Kumar K.V
On 07/27/2017 06:26 PM, Michal Hocko wrote: On Thu 27-07-17 14:07:55, Aneesh Kumar K.V wrote: We can now use this to set pmd page table entries to absolute values. THP need to ensure that we always update pmd PTE entries such that we never mark the pmd none. pmdp_establish helps in

Re: [RFC PATCH 2/3] powerpc/mm: Implement pmdp_establish for ppc64

2017-07-27 Thread Michal Hocko
On Thu 27-07-17 14:07:55, Aneesh Kumar K.V wrote: > We can now use this to set pmd page table entries to absolute values. THP > need to ensure that we always update pmd PTE entries such that we never mark > the pmd none. pmdp_establish helps in implementing that. > > This doesn't flush the tlb.

[RFC PATCH 2/3] powerpc/mm: Implement pmdp_establish for ppc64

2017-07-27 Thread Aneesh Kumar K.V
We can now use this to set pmd page table entries to absolute values. THP need to ensure that we always update pmd PTE entries such that we never mark the pmd none. pmdp_establish helps in implementing that. This doesn't flush the tlb. Based on the old_pmd value returned caller can decide to call