mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Will Deacon <will.deacon@arm.com>
To: "Wang, Yalin" <Yalin.Wang@sonymobile.com>
Cc: "'linux-arm-msm-owner@vger.kernel.org'" 
	<linux-arm-msm-owner@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Peng, Arthur" <Arthur.Peng@sonymobile.com>,
	"Zhang, Bojie" <Bojie.Zhang@sonymobile.com>,
	"Gu, Youcai 1 (EXT)" <Youcai1.Gu@sonymobile.com>,
	"Alevoor, Raghavendra 2" <Raghavendra.Alevoor@sonymobile.com>
Subject: Re: BUG report about ipt_do_table( )
Date: Thu, 10 Oct 2013 15:18:41 +0100	[thread overview]
Message-ID: <20131010141841.GF6199@mudshark.cambridge.arm.com> (raw)
In-Reply-To: <35FD53F367049845BC99AC72306C23D1014D1A0971B5@CNBJMBX05.corpusers.net>

On Thu, Oct 10, 2013 at 12:26:38PM +0100, Wang, Yalin wrote:
> Hi  Will ,

Hello,

> Seems your patch is better than mine,
> It make sure newinfo->initial_entries  update is 
> Seen by others . 
> 
> I will test by your patches , and update to you ASAP .

Thanks.

> I have another questions about this  BUG,
> Since all shared data will have this problem especially 
> Shared between different CPUs,
> 
> This means all shared data need a smp_wmb() , after 
> One CPU update it ? 

Only if the ordering of observability matters and isn't enforced by other
mechanisms (e.g. locks).

> But I see not all shared data are updated by this way,
> And kernel works well .  Why ??  a little curious .

Again, the barriers tend to be hidden inside things like locking primitives,
atomics, I/O accessors etc.

> Another is that , I read cortex-a15 whitepaper ,
> It says :
> 
> Load/Store cluster
>  All Load/Store, data transfers and cache maintenance operations
>  Partially out-of-order, 1 Load and 1 Store executed per cycle
>  Load cannot bypass a Store, Store cannot bypass a Store

It's hard to interpret this out of context. Please can you point me at the
whitepaper? Also, I was talking from the perspective of the architecture and
you're not using an A15 afaik.

> !! Store can't   bypass  store !! , but in this BUG , it seems later store can
> Be wrote into cache even before  the earlier store completed !
> Am I right ?

The architecture requires stores to be observed in program order from the
perspective of the CPU issuing them, but there aren't ordering guarantees
for stores to different locations when observed by a different CPU.

Will

  reply	other threads:[~2013-10-10 14:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-10  5:16 Wang, Yalin
2013-10-10  9:48 ` Will Deacon
2013-10-10 10:22   ` Wang, Yalin
2013-10-10 11:03     ` Will Deacon
2013-10-10 11:26       ` Wang, Yalin
2013-10-10 14:18         ` Will Deacon [this message]
2013-10-11  1:50           ` Wang, Yalin
2013-10-11 11:02             ` Will Deacon
2013-10-11 11:14               ` Wang, Yalin
2013-10-17  1:51                 ` Wang, Yalin
2013-10-17 10:41                   ` Will Deacon
2013-10-18  1:41                     ` Wang, Yalin

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=20131010141841.GF6199@mudshark.cambridge.arm.com \
    --to=will.deacon@arm.com \
    --cc=Arthur.Peng@sonymobile.com \
    --cc=Bojie.Zhang@sonymobile.com \
    --cc=Raghavendra.Alevoor@sonymobile.com \
    --cc=Yalin.Wang@sonymobile.com \
    --cc=Youcai1.Gu@sonymobile.com \
    --cc=linux-arm-msm-owner@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®