From: daniel.thompson@linaro.org (Daniel Thompson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: add basic support for on-demand backtrace of other CPUs
Date: Thu, 16 Jul 2015 10:13:26 +0100 [thread overview]
Message-ID: <55A775B6.8080505@linaro.org> (raw)
In-Reply-To: <E1ZFTSw-0006vI-C2@rmk-PC.arm.linux.org.uk>
On 15/07/15 21:39, Russell King wrote:
> As we now have generic infrastructure to support backtracing of other
> CPUs in the system on lockups, we can start to implement this for ARM.
> Initially, we add an IPI based implementation, as the GIC code needs
> modification to support the generation of FIQ IPIs, and not all ARM
> platforms have the ability to raise a FIQ in the non-secure world.
>
> This provides us with a "best efforts" implementation in the absence
> of FIQs.
>
> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
> ---
> diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
> index 90dfbedfbfb8..3a20c386fd33 100644
> --- a/arch/arm/kernel/smp.c
> +++ b/arch/arm/kernel/smp.c
> @@ -21,6 +21,7 @@
> #include <linux/cpu.h>
> #include <linux/seq_file.h>
> #include <linux/irq.h>
> +#include <linux/nmi.h>
> #include <linux/percpu.h>
> #include <linux/clockchips.h>
> #include <linux/completion.h>
> @@ -72,6 +73,7 @@ enum ipi_msg_type {
> IPI_CPU_STOP,
> IPI_IRQ_WORK,
> IPI_COMPLETION,
> + IPI_CPU_BACKTRACE = 15,
Even with the potential for (eventually) being signalled by FIQ, is this
IPI really so special it needs to be placed outside the scope of NR_IPI
and the accounting and tracing support it brings with it?
next prev parent reply other threads:[~2015-07-16 9:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 20:39 [PATCH 0/3] Shared NMI backtracing support for ARM/x86 Russell King - ARM Linux
2015-07-15 20:39 ` [PATCH 1/3] nmi: create generic NMI backtrace implementation Russell King
2015-07-16 9:11 ` Daniel Thompson
2015-07-16 9:37 ` Russell King - ARM Linux
2015-07-16 9:51 ` Daniel Thompson
2015-07-25 14:42 ` Russell King - ARM Linux
2015-07-28 8:29 ` Daniel Thompson
2015-07-16 11:07 ` Thomas Gleixner
2015-07-15 20:39 ` [PATCH 2/3] nmi: x86: convert to generic nmi handler Russell King
2015-07-16 11:07 ` Thomas Gleixner
2015-07-15 20:39 ` [PATCH 3/3] ARM: add basic support for on-demand backtrace of other CPUs Russell King
2015-07-16 9:13 ` Daniel Thompson [this message]
2015-07-16 9:39 ` Russell King - ARM Linux
2015-07-16 9:55 ` [PATCH 0/3] Shared NMI backtracing support for ARM/x86 Daniel Thompson
2015-07-21 9:34 ` Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55A775B6.8080505@linaro.org \
--to=daniel.thompson@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).