diff options
author | Chris Metcalf <cmetcalf@ezchip.com> | 2015-05-04 17:26:35 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@ezchip.com> | 2015-05-11 11:22:31 -0400 |
commit | e5701b74ccfdbbb0b4d9abcc7d0c569bf5e5375b (patch) | |
tree | 12fd2d5402bea262d4a191504f3ad25b5263ae3a /arch/tile/kernel/intvec_64.S | |
parent | b4287df82991ca608f44d7ac12ad9b3bc39d5baa (diff) | |
download | op-kernel-dev-e5701b74ccfdbbb0b4d9abcc7d0c569bf5e5375b.zip op-kernel-dev-e5701b74ccfdbbb0b4d9abcc7d0c569bf5e5375b.tar.gz |
tile: support delivering NMIs for multicore backtrace
A new hypervisor service was added some time ago (MDE 4.2.1 or
later, or MDE 4.3 or later) that allows cores to request NMIs
to be delivered to other cores. Use this facility to deliver
a request that causes a backtrace to be generated on each core,
and hook it into the magic SysRq functionality.
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
Diffstat (limited to 'arch/tile/kernel/intvec_64.S')
-rw-r--r-- | arch/tile/kernel/intvec_64.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/tile/kernel/intvec_64.S b/arch/tile/kernel/intvec_64.S index 5b67efc..800b91d 100644 --- a/arch/tile/kernel/intvec_64.S +++ b/arch/tile/kernel/intvec_64.S @@ -515,6 +515,10 @@ intvec_\vecname: .ifc \c_routine, handle_perf_interrupt mfspr r2, AUX_PERF_COUNT_STS .endif + .ifc \c_routine, do_nmi + mfspr r2, SPR_SYSTEM_SAVE_K_2 /* nmi type */ + .else + .endif .endif .endif .endif @@ -1571,3 +1575,5 @@ intrpt_start: /* Synthetic interrupt delivered only by the simulator */ int_hand INT_BREAKPOINT, BREAKPOINT, do_breakpoint + /* Synthetic interrupt delivered by hv */ + int_hand INT_NMI_DWNCL, NMI_DWNCL, do_nmi, handle_nmi |