Re: [PATCH for-4.8 V2 03/10] powerpc/mm/radix: Add radix_set_pte to use in early init

2016-07-25 Thread Nicholas Piggin
On Mon, 25 Jul 2016 18:36:09 +1000 Michael Ellerman wrote: > "Aneesh Kumar K.V" writes: > > > We want to use the static key based feature check in set_pte_at. > > Since we call radix__map_kernel_page early in boot before jump > > label is initialized we can't call set_pte_at there. Add > > radi

Re: [PATCH for-4.8 V2 03/10] powerpc/mm/radix: Add radix_set_pte to use in early init

2016-07-25 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > We want to use the static key based feature check in set_pte_at. Since > we call radix__map_kernel_page early in boot before jump label is > initialized we can't call set_pte_at there. Add radix__set_pte for the > same. Although this is an OK solution to this problem

Re: [PATCH for-4.8 V2 03/10] powerpc/mm/radix: Add radix_set_pte to use in early init

2016-07-25 Thread Michael Ellerman
Nicholas Piggin writes: > On Sat, 23 Jul 2016 14:42:36 +0530 > "Aneesh Kumar K.V" wrote: >> @@ -102,7 +123,7 @@ int radix__map_kernel_page(unsigned long ea, >> unsigned long pa, } >> >> set_the_pte: >> -set_pte_at(&init_mm, ea, ptep, pfn_pte(pa >> PAGE_SHIFT, >> flags)); >> +radix__se

Re: [PATCH for-4.8 V2 03/10] powerpc/mm/radix: Add radix_set_pte to use in early init

2016-07-24 Thread Nicholas Piggin
On Sat, 23 Jul 2016 14:42:36 +0530 "Aneesh Kumar K.V" wrote: > We want to use the static key based feature check in set_pte_at. Since > we call radix__map_kernel_page early in boot before jump label is > initialized we can't call set_pte_at there. Add radix__set_pte for the > same. > > Signed-of

[PATCH for-4.8 V2 03/10] powerpc/mm/radix: Add radix_set_pte to use in early init

2016-07-23 Thread Aneesh Kumar K.V
We want to use the static key based feature check in set_pte_at. Since we call radix__map_kernel_page early in boot before jump label is initialized we can't call set_pte_at there. Add radix__set_pte for the same. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/pgtable-radix.c | 23 +