aboutsummaryrefslogtreecommitdiff
path: root/lib/nmi_backtrace.c
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2015-12-18 14:18:42 +0000
committerDaniel Thompson <daniel.thompson@linaro.org>2016-03-15 14:22:14 +0000
commit62a1b30a65ff6137d0368f41c56a3faedf9d314d (patch)
treeb1c266db007f268a582fc723eb7a00881423d0f2 /lib/nmi_backtrace.c
parent563ff0286948e66af5c2eae069ec49527a371b41 (diff)
downloadlinux-62a1b30a65ff6137d0368f41c56a3faedf9d314d.tar.gz
WIP: Experimental changes to help study GIC state
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Diffstat (limited to 'lib/nmi_backtrace.c')
-rw-r--r--lib/nmi_backtrace.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/nmi_backtrace.c b/lib/nmi_backtrace.c
index f338f867a9a5..1efd7a77e552 100644
--- a/lib/nmi_backtrace.c
+++ b/lib/nmi_backtrace.c
@@ -54,6 +54,7 @@ void nmi_trigger_all_cpu_backtrace(bool include_self,
{
struct nmi_seq_buf *s;
int i, cpu, this_cpu = get_cpu();
+ bool gic_dump = true;
if (test_and_set_bit(0, &backtrace_flag)) {
/*
@@ -119,6 +120,17 @@ void nmi_trigger_all_cpu_backtrace(bool include_self,
}
}
+ /* Ensure debug info is easy to find. */
+ for_each_cpu(cpu, to_cpumask(backtrace_mask)) {
+
+ pr_err("No reply from cpu %d\n", cpu);
+ }
+
+ {
+ void gic_dump_regs(void);
+ gic_dump_regs();
+ }
+
clear_bit(0, &backtrace_flag);
smp_mb__after_atomic();
put_cpu();