Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1183988

Re: mx6: suspicious RCU usage

From Russell King - ARM Linux <linux@arm.linux.org.uk>
Newsgroups linux.kernel
Subject Re: mx6: suspicious RCU usage
Date 2015-07-14 22:50 +0200
Message-ID <pMfjj-2VX-1@gated-at.bofh.it> (permalink)
References <pMaMG-4Md-5@gated-at.bofh.it> <pMaWl-5cM-15@gated-at.bofh.it> <pMaWm-5cM-37@gated-at.bofh.it> <pMbfI-5zr-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jul 14, 2015 at 09:26:00AM -0700, Paul E. McKenney wrote:
> On Tue, Jul 14, 2015 at 01:06:32PM -0300, Fabio Estevam wrote:
> > Hi Paul,
> > 
> > On Tue, Jul 14, 2015 at 1:00 PM, Paul E. McKenney
> > <paulmck@linux.vnet.ibm.com> wrote:
> > 
> > > Does this patch help?
> > >
> > >         https://lkml.org/lkml/2015/5/12/885
> > 
> > I am using an ARM 32-bit machine, so I used this one instead:
> > https://lkml.org/lkml/2015/5/12/892
> > 
> > , and it fixes the problem. Thanks!
> > 
> > Feel free to add:
> > 
> > Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
> 
> Glad it helped!
> 
> Russell, did you want me to push this, or would you rather take it?

If it's the one I'm thinking of (using the generic code) because it
doesn't actually solve the problem we have.  It may shut up the RCU
warning, but it doesn't solve the underlying problem - one which is
caused by the use of atomics (which use the exclusive instructions)
vs cache line migration between CPUs vs speculative prefetching...

It's possible right now that _dirty_ cache lines can be migrated to
the dying CPU, which are then lost on power down - and if we disable
the caches on the dying CPU, we then can't use exclusives, so atomics
(and all of the other normal kernel synchronisation mechanisms) are
out of the question.

-- 
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 — Previous in thread | Find similar | Unroll thread


Thread

mx6: suspicious RCU usage Fabio Estevam <festevam@gmail.com> - 2015-07-14 18:00 +0200
  Re: mx6: suspicious RCU usage "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2015-07-14 18:10 +0200
  Re: mx6: suspicious RCU usage "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2015-07-14 18:10 +0200
    Re: mx6: suspicious RCU usage Fabio Estevam <festevam@gmail.com> - 2015-07-14 18:10 +0200
      Re: mx6: suspicious RCU usage "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2015-07-14 21:30 +0200
      Re: mx6: suspicious RCU usage Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-07-14 22:50 +0200

csiph-web