aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2018-11-08 15:12:42 -0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-12-04 19:45:01 +1100
commit8d4a862276a9c30a269d368d324fb56529e6d5fd (patch)
treea2adc5809a07776554d7be9215cd93f4b72e5f60 /drivers/cpuidle
parentpowerpc/kconfig: remove PPC_STD_MMU_32 and PPC_STD_MMU (diff)
downloadlinux-dev-8d4a862276a9c30a269d368d324fb56529e6d5fd.tar.xz
linux-dev-8d4a862276a9c30a269d368d324fb56529e6d5fd.zip
powerpc/xmon: Fix invocation inside lock region
Currently xmon needs to get devtree_lock (through rtas_token()) during its invocation (at crash time). If there is a crash while devtree_lock is being held, then xmon tries to get the lock but spins forever and never get into the interactive debugger, as in the following case: int *ptr = NULL; raw_spin_lock_irqsave(&devtree_lock, flags); *ptr = 0xdeadbeef; This patch avoids calling rtas_token(), thus trying to get the same lock, at crash time. This new mechanism proposes getting the token at initialization time (xmon_init()) and just consuming it at crash time. This would allow xmon to be possible invoked independent of devtree_lock being held or not. Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Thiago Jung Bauermann <bauerman@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/cpuidle')
0 files changed, 0 insertions, 0 deletions