]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Clear PCR on boot
authorMichael Neuling <mikey@neuling.org>
Fri, 18 May 2018 01:37:42 +0000 (11:37 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 May 2018 06:05:15 +0000 (16:05 +1000)
commita12c33f8dbd7db29928b24f513ff3a94fb4898ff
tree5d7a9292192cb0936af35357aa5f007640b95f85
parentad030908121723a7f6864949fbd84c515635eecb
powerpc/64s: Clear PCR on boot

Clear the PCR (Processor Compatibility Register) on boot to ensure we
are not running in a compatibility mode.

We've seen this cause problems when a crash (and kdump) occurs while
running compat mode guests. The kdump kernel then runs with the PCR
set and causes problems. The symptom in the kdump kernel (also seen in
petitboot after fast-reboot) is early userspace programs taking
sigills on newer instructions (seen in libc).

Signed-off-by: Michael Neuling <mikey@neuling.org>
Cc: stable@vger.kernel.org
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/cpu_setup_power.S
arch/powerpc/kernel/dt_cpu_ftrs.c