summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorNicholas Piggin2016-10-13 04:17:14 +0200
committerMichael Ellerman2016-10-27 12:55:14 +0200
commitfb479e44a9e240a23c2d208c2ace23542a47f41c (patch)
tree998673dbd87d521a08c1e579d20cdb9d10b9b302 /drivers/misc
parentpowerpc/mm/radix: Use tlbiel only if we ever ran on the current cpu (diff)
downloadkernel-qcow2-linux-fb479e44a9e240a23c2d208c2ace23542a47f41c.tar.gz
kernel-qcow2-linux-fb479e44a9e240a23c2d208c2ace23542a47f41c.tar.xz
kernel-qcow2-linux-fb479e44a9e240a23c2d208c2ace23542a47f41c.zip
powerpc/64s: relocation, register save fixes for system reset interrupt
This patch does a couple of things. First of all, powernv immediately explodes when running a relocated kernel, because the system reset exception for handling sleeps does not do correct relocated branches. Secondly, the sleep handling code trashes the condition and cfar registers, which we would like to preserve for debugging purposes (for non-sleep case exception). This patch changes the exception to use the standard format that saves registers before any tests or branches are made. It adds the test for idle-wakeup as an "extra" to break out of the normal exception path. Then it branches to a relocated idle handler that calls the various idle handling functions. After this patch, POWER8 CPU simulator now boots powernv kernel that is running at non-zero. Fixes: 948cf67c4726 ("powerpc: Add NAP mode support on Power7 in HV mode") Cc: stable@vger.kernel.org # v3.0+ Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Acked-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com> Acked-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions