Re: [PATCH] powerpc/4xx: Fix setup_kuep() on SMP

2021-06-29 Thread Christophe Leroy
Le 29/06/2021 à 13:58, Michael Ellerman a écrit : Christophe Leroy writes: On SMP, setup_kuep() is also called from start_secondary() since commit 86f46f343272 ("powerpc/32s: Initialise KUAP and KUEP in C"). start_secondary() is not an __init function. Remove the __init marker from

Re: [PATCH] powerpc/4xx: Fix setup_kuep() on SMP

2021-06-29 Thread Michael Ellerman
Christophe Leroy writes: > On SMP, setup_kuep() is also called from start_secondary() since > commit 86f46f343272 ("powerpc/32s: Initialise KUAP and KUEP in C"). > > start_secondary() is not an __init function. > > Remove the __init marker from setup_kuep() and bail out when > not caller on the

[PATCH] powerpc/4xx: Fix setup_kuep() on SMP

2021-06-28 Thread Christophe Leroy
On SMP, setup_kuep() is also called from start_secondary() since commit 86f46f343272 ("powerpc/32s: Initialise KUAP and KUEP in C"). start_secondary() is not an __init function. Remove the __init marker from setup_kuep() and bail out when not caller on the first CPU as the work is already done.