From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Add call to non-crashing cores through IPI
Date: Mon, 22 Nov 2010 10:47:40 +0000 [thread overview]
Message-ID: <20101122104740.GA30744@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <AANLkTikJiXFG_kGV4=wTKOzViy-h9VtGRHKVBuh76fE2@mail.gmail.com>
On Mon, Nov 22, 2010 at 10:53:00AM +0100, Per Fransson wrote:
> >
> > I wonder whether it is good idea to enable interrupts here? What
> > if we came here from an interrupt handler with interrupts already
> > disabled?
> >
> > I guess you did this because smp_call_function() needs to have
> > interrupts enabled, right?
> >
>
> Yup, that's why I did it.
>
> > As we still need to make sure that all the secondary CPUs are
> > stopped, should we do just something like:
> >
> > ? ? ? ?smp_send_stop();
> >
> > and then in ipi_cpu_stop() we check whether oops_in_progress is set
> > and save the cpu state before entering that never-ending loop?
>
> But we still need to wait for it to complete, right? Will smp_send_stop()
> handle the requirements of the underlying ipi regardless of the initial state?
In a crashing state, any kind of IPIs are not guaranteed. The other
CPUs may be in an IRQ-protected region waiting for a lock which the
crashing CPU already holds, and so the IPI won't be received.
However, we do need smp_send_stop() to wait for a limited time for the
other CPUs to respond to the request. We should also do something more
intelligent than spinning in a while(1) loop.
next prev parent reply other threads:[~2010-11-22 10:47 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-19 10:08 [PATCH] Add call to non-crashing cores through IPI Per Fransson
2010-11-22 7:24 ` Mika Westerberg
2010-11-22 9:47 ` Maxim Uvarov
2010-11-22 9:53 ` Per Fransson
2010-11-22 10:47 ` Russell King - ARM Linux [this message]
2010-11-22 11:27 ` Russell King - ARM Linux
2010-11-22 13:07 ` Santosh Shilimkar
2010-11-22 14:21 ` Russell King - ARM Linux
2010-11-22 17:25 ` Santosh Shilimkar
2010-11-22 14:31 ` Per Fransson
2010-11-22 14:40 ` Russell King - ARM Linux
2010-11-22 17:03 ` Per Fransson
2010-11-22 17:12 ` Catalin Marinas
2010-11-22 20:09 ` Maxim Uvarov
2010-11-22 22:14 ` Per Fransson
2010-11-22 22:30 ` Per Fransson
2010-11-23 9:14 ` Catalin Marinas
2010-11-23 10:57 ` Per Fransson
2010-11-23 12:37 ` Catalin Marinas
2010-11-23 12:41 ` Mika Westerberg
2010-11-23 12:48 ` Catalin Marinas
2010-11-23 13:01 ` Maxim Uvarov
2010-11-23 16:31 ` Per Fransson
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=20101122104740.GA30744@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--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).