From: paulmck@linux.vnet.ibm.com (Paul E. McKenney)
To: linux-arm-kernel@lists.infradead.org
Subject: WARNING: suspicious RCU usage
Date: Sun, 10 Dec 2017 13:39:30 -0800 [thread overview]
Message-ID: <20171210213930.GL7829@linux.vnet.ibm.com> (raw)
In-Reply-To: <20171210193438.GP10595@n2100.armlinux.org.uk>
On Sun, Dec 10, 2017 at 07:34:39PM +0000, Russell King - ARM Linux wrote:
> On Sun, Dec 10, 2017 at 11:07:27AM -0800, Paul E. McKenney wrote:
> > On Sun, Dec 10, 2017 at 12:00:12PM +0000, Russell King - ARM Linux wrote:
> > > +Paul
> > >
> > > Annoyingly, it looks like calling "complete()" from a dying CPU is
> > > triggering the RCU usage warning. From what I remember, this is an
> > > old problem, and we still have no better solution for this other than
> > > to persist with the warning.
> >
> > I thought that this issue was resolved with tglx's use of IPIs from
> > the outgoing CPU. Or is this due to an additional complete() from the
> > ARM code? If so, could it also use tglx's IPI trick?
>
> I don't think it was tglx's IPI trick, I've had code sitting in my tree
> for a while for it, but it has its own set of problems which are not
> resolvable:
>
> 1. it needs more IPIs than we have available on all platforms
OK, I will ask the stupid question... Is it possible to multiplex
the IPIs, for example, by using smp_call_function_single()?
> 2. there's some optional locking in the GIC driver that cause problems
> for the cpu dying path.
On this, I must plead ignorance.
> The concensus last time around was that the IPI solution is a non-
> starter, so the seven year proven-reliable solution (disregarding the
> RCU warning) persists because I don't think anyone came up with a
> better solution.
Seven years already? Sigh, I don't have the heart to check because
I wouldn't want to find out that it has actually been longer. ;-)
Thanx, Paul
> > > I suspect the following lockdep warning is triggered by the RCU code
> > > bringing the console semaphore into the mix of locks.
> >
> > It does indeed look to me that it is quite possible that resolving
> > the complete() issue would prevent the lockdep splat from appearing,
> > which might in turn prevent acquisition of the console semaphore.
>
> Yea, if only it was simple to resolve that.
>
> --
> RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
> FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
> According to speedtest.net: 8.21Mbps down 510kbps up
>
next prev parent reply other threads:[~2017-12-10 21:39 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-10 11:39 WARNING: suspicious RCU usage Peng Fan
2017-12-10 12:00 ` Russell King - ARM Linux
2017-12-10 19:07 ` Paul E. McKenney
2017-12-10 19:34 ` Russell King - ARM Linux
2017-12-10 21:39 ` Paul E. McKenney [this message]
2017-12-10 21:54 ` Russell King - ARM Linux
2017-12-10 23:16 ` Paul E. McKenney
2017-12-12 16:49 ` Paul E. McKenney
2017-12-12 16:56 ` Fabio Estevam
2017-12-12 17:21 ` Paul E. McKenney
2017-12-12 17:34 ` Russell King - ARM Linux
2017-12-12 18:11 ` Fabio Estevam
2017-12-12 19:36 ` Paul E. McKenney
2017-12-12 19:44 ` Fabio Estevam
2017-12-12 19:54 ` Russell King - ARM Linux
2017-12-12 21:05 ` Fabio Estevam
2017-12-13 9:12 ` Russell King - ARM Linux
2017-12-15 6:38 ` Paul E. McKenney
2017-12-15 13:16 ` Fabio Estevam
2017-12-15 15:52 ` Paul E. McKenney
2017-12-15 18:23 ` Paul E. McKenney
2017-12-15 20:36 ` Fabio Estevam
2017-12-15 21:34 ` Paul E. McKenney
2017-12-15 21:43 ` Fabio Estevam
2017-12-15 22:56 ` Paul E. McKenney
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=20171210213930.GL7829@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.