powerpc/powernv: Reset HILE before kexec_sequence()
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Wed, 22 Jul 2015 05:50:51 +0000 (15:50 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Aug 2015 08:19:09 +0000 (18:19 +1000)
commite72bb8a5a884d022231149d407653923a1d79e53
treeb07c26c87efccbab40ecf5ca96665bd6df8afa3e
parentffebf5f391dfa9da3e086abad3eef7d3e5300249
powerpc/powernv: Reset HILE before kexec_sequence()

On powernv secondary cpus are returned to OPAL, and will then enter
the target kernel in big-endian. However if it is set the HILE bit
will persist, causing the first exception in the target kernel to be
delivered in litte-endian regardless of the current endianness.

If running on top of OPAL make sure the HILE bit is reset once we've
finished waiting for all of the secondaries to be returned to OPAL.

Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/setup.c