powerpc/mm/hash: Always clear UPRT and Host Radix bits when setting up CPU
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 22 Feb 2017 05:12:02 +0000 (10:42 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 22 Feb 2017 21:26:15 +0000 (08:26 +1100)
commitfda2d27db6eae5c2468f9e4657539b72bbc238bb
treeca6ab3baa54b697c79fc467a491fc029587a4ce5
parentf558b37bf4c35a54e1949f6533f39c64091bf60d
powerpc/mm/hash: Always clear UPRT and Host Radix bits when setting up CPU

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: stable@vger.kernel.org # v4.9+
Acked-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/cpu_setup_power.S