On Wed, Feb 22, 2017 at 10:42:02AM +0530, Aneesh Kumar K.V wrote: > We will set LPCR with correct value for radix during int. This make sure we > start with a sanitized value of LPCR. In case of kexec, cpus can have LPCR > value based on the previous translation mode we were running. > > Fixes: fe036a0605d60 ("powerpc/64/kexec: Fix MMU cleanup on radix") > Cc: sta...@vger.kernel.org # v4.9+ > Acked-by: Michael Neuling <mi...@neuling.org> > Signed-off-by: Aneesh Kumar K.V <aneesh.ku...@linux.vnet.ibm.com> > --- > arch/powerpc/kernel/cpu_setup_power.S | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/powerpc/kernel/cpu_setup_power.S > b/arch/powerpc/kernel/cpu_setup_power.S > index 917188615bf5..7fe8c79e6937 100644 > --- a/arch/powerpc/kernel/cpu_setup_power.S > +++ b/arch/powerpc/kernel/cpu_setup_power.S > @@ -101,6 +101,8 @@ _GLOBAL(__setup_cpu_power9) > mfspr r3,SPRN_LPCR > LOAD_REG_IMMEDIATE(r4, LPCR_PECEDH | LPCR_PECE_HVEE | LPCR_HVICE) > or r3, r3, r4 > + LOAD_REG_IMMEDIATE(r4, LPCR_UPRT | LPCR_HR) > + andc r3, r3, r4 > bl __init_LPCR > bl __init_HFSCR > bl __init_tlb_power9 > @@ -122,6 +124,8 @@ _GLOBAL(__restore_cpu_power9) > mfspr r3,SPRN_LPCR > LOAD_REG_IMMEDIATE(r4, LPCR_PECEDH | LPCR_PECE_HVEE | LPCR_HVICE) > or r3, r3, r4 > + LOAD_REG_IMMEDIATE(r4, LPCR_UPRT | LPCR_HR) > + andc r3, r3, r4 > bl __init_LPCR > bl __init_HFSCR > bl __init_tlb_power9
What about LPCR_GTSE and other bits? Balbir Singh.