mirror-linux/arch/tile/include/asm
Chris Metcalf 511f838945 arch/tile: adopt the new nmi_backtrace framework
Previously tile was rolling its own method of capturing backtrace data
in the NMI handlers, but it was relying on running printk() from the NMI
handler, which is not always safe.  So adopt the nmi_backtrace model
(with the new cpumask extension) instead.

So we can call the nmi_backtrace code directly from the nmi handler,
move the nmi_enter()/exit() into the top-level tile NMI handler.

The semantics of the routine change slightly since it is now synchronous
with the remote cores completing the backtraces.  Previously it was
asynchronous, but with protection to avoid starting a new remote
backtrace if the old one was still in progress.

Link: http://lkml.kernel.org/r/1472487169-14923-4-git-send-email-cmetcalf@mellanox.com
Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
Cc: Daniel Thompson <daniel.thompson@linaro.org> [arm]
Cc: Petr Mladek <pmladek@suse.com>
Cc: Aaron Tomlin <atomlin@redhat.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-10-07 18:46:30 -07:00
..
Kbuild word-at-a-time.h: fix some Kbuild files 2015-10-06 14:52:48 -04:00
asm-offsets.h
atomic.h locking/atomic: Remove linux/atomic.h:atomic_fetch_or() 2016-06-16 10:48:32 +02:00
atomic_32.h locking/atomic, arch/tile: Fix tilepro build 2016-06-24 08:17:04 +02:00
atomic_64.h locking/atomic, arch/tile: Implement atomic{,64}_fetch_{add,sub,and,or,xor}() 2016-06-16 10:48:30 +02:00
backtrace.h
barrier.h locking/barriers, tile: Provide TILE specific smp_acquire__after_ctrl_dep() 2016-06-14 11:55:15 +02:00
bitops.h
bitops_32.h locking/atomic, arch/tile: Implement atomic{,64}_fetch_{add,sub,and,or,xor}() 2016-06-16 10:48:30 +02:00
bitops_64.h
cache.h
cacheflush.h
checksum.h
cmpxchg.h locking/cmpxchg, arch: Remove tas() definitions 2015-12-04 11:39:51 +01:00
compat.h
current.h
delay.h
device.h
dma-mapping.h dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00
dma.h
elf.h tile: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO 2016-07-25 12:15:06 -04:00
fixmap.h
ftrace.h tile: ftrace: fix function_graph tracer issues 2015-04-17 14:01:38 -04:00
futex.h locking/atomic, arch/tile: Fix tilepro build 2016-06-24 08:17:04 +02:00
hardirq.h
hardwall.h
highmem.h kmap_atomic_to_page() has no users, remove it 2015-11-09 15:11:24 -08:00
homecache.h
hugetlb.h mm/hugetlb: remove arch_prepare/release_hugepage from arch headers 2015-06-25 17:00:35 -07:00
hv_driver.h
ide.h
insn.h tile/jump_label: add jump label support for TILE-Gx 2016-01-04 15:09:31 -05:00
io.h tile: fix tilepro casts for readl, writel, etc 2016-01-18 14:49:23 -05:00
irq.h arch/tile: adopt the new nmi_backtrace framework 2016-10-07 18:46:30 -07:00
irq_work.h tile: support arch_irq_work_raise 2015-04-17 12:58:44 -04:00
irqflags.h
jump_label.h tile/jump_label: add jump label support for TILE-Gx 2016-01-04 15:09:31 -05:00
kdebug.h
kexec.h
kgdb.h
kmap_types.h
kprobes.h
linkage.h
mmu.h
mmu_context.h
mmzone.h
module.h
page.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2016-01-18 12:57:18 -08:00
pci.h PCI: Move pci_dma_* helpers to common code 2016-03-07 10:40:02 -06:00
percpu.h
perf_event.h
pgalloc.h
pgtable.h arch: fix has_transparent_hugepage() 2016-05-19 19:12:14 -07:00
pgtable_32.h
pgtable_64.h tile: Use the more common pr_warn instead of pr_warning 2014-11-11 15:51:42 -05:00
pmc.h
processor.h arch/tile: adopt prepare_exit_to_usermode() model from x86 2016-01-18 14:49:09 -05:00
ptrace.h
sections.h tile: Remove tile-specific _sinitdata and _einitdata 2014-10-02 10:19:33 -04:00
setup.h tile: allow disabling CONFIG_EARLY_PRINTK 2016-06-07 16:55:20 -04:00
sigframe.h
signal.h
smp.h tile: support arch_irq_work_raise 2015-04-17 12:58:44 -04:00
spinlock.h
spinlock_32.h tile: use READ_ONCE() in arch_spin_is_locked() 2015-04-28 22:43:16 -04:00
spinlock_64.h tile: use READ_ONCE() in arch_spin_is_locked() 2015-04-28 22:43:16 -04:00
spinlock_types.h
stack.h tile: improve stack backtrace 2015-05-11 11:22:40 -04:00
string.h
switch_to.h tile: Reorganize _switch_to() 2015-08-08 10:29:21 +02:00
syscall.h tile: enable full SECCOMP support 2015-07-30 12:32:16 -04:00
syscalls.h
thread_info.h signal: consolidate {TS,TLF}_RESTORE_SIGMASK code 2016-08-02 19:35:23 -04:00
tile-desc.h
tile-desc_32.h
tile-desc_64.h
timex.h
tlb.h
tlbflush.h
topology.h numa: remove stale node_has_online_mem() define 2016-01-18 14:49:33 -05:00
traps.h tile: support delivering NMIs for multicore backtrace 2015-05-11 11:22:31 -04:00
uaccess.h mm/usercopy: get rid of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS 2016-08-30 10:10:21 -07:00
unaligned.h
unistd.h
user.h
vdso.h tile: add clock_gettime support to vDSO 2014-10-02 13:56:07 -04:00
vga.h
word-at-a-time.h word-at-a-time.h: support zero_bytemask() on alpha and tile 2015-10-06 14:53:16 -04:00