Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1185032
| From | Russell King - ARM Linux <linux@arm.linux.org.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/3] Shared NMI backtracing support for ARM/x86 |
| Date | 2015-07-15 22:40 +0200 |
| Message-ID | <pMBDb-1Vd-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Back in September, I stumbled across a single CPU IRQs-off lockup of an ARM SMP system, and decided to hack something together based on a much older hacky implementation used with StrongARM CPUs from early 2000s. This resulted in a copy of the x86 NMI backtrace code into ARM as it was back then, and feedback indicated that it wasn't a good time to push such an effort forward, as printk() in NMI context is dodgy. Over time, the x86 code has had this problem addressed, and last week I updated the patch which I've been carrying in my tree to move the shared code out of arch/x86 into lib/ rather than duplicating it, and switch the ARM implementation to use it. Discussing this with Thomas Gliexner, he agreed to give it a test over last weekend, and he has reported to me this evening "no explosion so far". Since then, I've made a change to add the NOKPROBE_SYMBOL() to the generic handler as per the x86 original code. I'm aware that there are other competing implementations out there - Daniel has one based on my patch from September time, but I don't think that goes far enough with code sharing. I'm also partially aware of an implementation from Petr too. arch/arm/include/asm/irq.h | 5 ++ arch/arm/kernel/smp.c | 18 +++++ arch/x86/kernel/apic/hw_nmi.c | 133 ++-------------------------------- include/linux/nmi.h | 6 ++ lib/Makefile | 2 +- lib/nmi_backtrace.c | 162 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 196 insertions(+), 130 deletions(-) -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 0/3] Shared NMI backtracing support for ARM/x86 Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-07-15 22:40 +0200
[PATCH 2/3] nmi: x86: convert to generic nmi handler Russell King <rmk+kernel@arm.linux.org.uk> - 2015-07-15 22:40 +0200
Re: [PATCH 2/3] nmi: x86: convert to generic nmi handler Thomas Gleixner <tglx@linutronix.de> - 2015-07-16 13:10 +0200
[PATCH 1/3] nmi: create generic NMI backtrace implementation Russell King <rmk+kernel@arm.linux.org.uk> - 2015-07-15 22:40 +0200
Re: [PATCH 1/3] nmi: create generic NMI backtrace implementation Thomas Gleixner <tglx@linutronix.de> - 2015-07-16 13:10 +0200
csiph-web