Re: [PATCH] powerpc/book3s64/kuap: SPRN_AMR modification need CSI instructions before and after

2020-04-22 Thread Nicholas Piggin
Excerpts from Michael Ellerman's message of April 20, 2020 5:04 pm: > Nicholas Piggin writes: >> Excerpts from Nicholas Piggin's message of April 20, 2020 10:17 am: >>> Excerpts from Aneesh Kumar K.V's message of April 19, 2020 11:53 pm: As per the ISA, context synchronizing instructions is n

Re: [PATCH] powerpc/book3s64/kuap: SPRN_AMR modification need CSI instructions before and after

2020-04-20 Thread Michael Ellerman
Nicholas Piggin writes: > Excerpts from Nicholas Piggin's message of April 20, 2020 10:17 am: >> Excerpts from Aneesh Kumar K.V's message of April 19, 2020 11:53 pm: >>> As per the ISA, context synchronizing instructions is needed before and >>> after >>> SPRN_AMR update. Use isync before and the

Re: [PATCH] powerpc/book3s64/kuap: SPRN_AMR modification need CSI instructions before and after

2020-04-19 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of April 20, 2020 10:17 am: > Excerpts from Aneesh Kumar K.V's message of April 19, 2020 11:53 pm: >> As per the ISA, context synchronizing instructions is needed before and after >> SPRN_AMR update. Use isync before and the CSI after is implied by the rfid >

Re: [PATCH] powerpc/book3s64/kuap: SPRN_AMR modification need CSI instructions before and after

2020-04-19 Thread Nicholas Piggin
Excerpts from Aneesh Kumar K.V's message of April 19, 2020 11:53 pm: > As per the ISA, context synchronizing instructions is needed before and after > SPRN_AMR update. Use isync before and the CSI after is implied by the rfid > that we will use to switch to a new context. Not entirely sure if we n

[PATCH] powerpc/book3s64/kuap: SPRN_AMR modification need CSI instructions before and after

2020-04-19 Thread Aneesh Kumar K.V
As per the ISA, context synchronizing instructions is needed before and after SPRN_AMR update. Use isync before and the CSI after is implied by the rfid that we will use to switch to a new context. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/kup-radix.h | 9 -