All of lore.kernel.org
 help / color / mirror / Atom feed
From: olof@lixom.net (Olof Johansson)
To: Linas Vepstas <linas@austin.ibm.com>
Cc: netdev@vger.kernel.org, jgarzik@pobox.com, linuxppc-dev@ozlabs.org
Subject: Re: [PATCH v2] gianfar: Add I/O barriers when touching buffer descriptor ownership.
Date: Fri, 4 May 2007 18:24:51 -0500	[thread overview]
Message-ID: <20070504232451.GA15433@lixom.net> (raw)
In-Reply-To: <20070504221309.GR6193@austin.ibm.com>

On Fri, May 04, 2007 at 05:13:09PM -0500, Linas Vepstas wrote:
> On Wed, May 02, 2007 at 03:40:20PM -0500, Scott Wood wrote:
> > 
> > Well, Segher doesn't want me to use iobarrier (because it's not I/O). 
> > Andy doesn't want me to use wmb() (because it's sync).  I don't think 
> > something like gfar_wmb() would be appropriate.  So the remaining 
> > options are either eieio(), 
> 
> ? Just curious... the original intent of eieio was to order I/O, 
> such as MMIO; it has no effect on memory that isn't marked 
> cache-inhibited or write-trhough or guarded. Has this changed?
> I guess I haven't kept up with the times ... is eieio now
> being used to provide some other kind of barrier?
> Is eieio providing some sort of SMP synchronization side-effect?
> 
> Point being: if Segher doesn't let you "use iobarrier (because 
> it's not I/O)", then I don't understand why eieio would work (since
> that's for io only).  

Eieio has always worked for regular cachable memory as well, it just never
orders _between_ cache inhibited/guarded and cachable memory.

Book II 2.03 has a pretty good description of it on page 367.



-Olof

  reply	other threads:[~2007-05-04 23:23 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-02 19:57 [PATCH v2] gianfar: Add I/O barriers when touching buffer descriptor ownership Scott Wood
2007-05-02 20:09 ` Kumar Gala
2007-05-02 20:09   ` Kumar Gala
2007-05-02 20:12   ` Scott Wood
2007-05-02 20:12     ` Scott Wood
2007-05-02 20:20     ` Kumar Gala
2007-05-02 20:20       ` Kumar Gala
2007-05-02 20:40       ` Scott Wood
2007-05-02 20:40         ` Scott Wood
2007-05-02 21:23         ` Kumar Gala
2007-05-02 21:23           ` Kumar Gala
2007-05-02 21:30           ` Scott Wood
2007-05-02 21:30             ` Scott Wood
2007-05-03  2:10             ` Kumar Gala
2007-05-03  2:10               ` Kumar Gala
2007-05-03 16:00               ` Scott Wood
2007-05-03 16:38                 ` Segher Boessenkool
2007-05-03 16:38                   ` Segher Boessenkool
2007-05-02 23:42         ` Segher Boessenkool
2007-05-04 22:13         ` Linas Vepstas
2007-05-04 22:13           ` Linas Vepstas
2007-05-04 23:24           ` Olof Johansson [this message]
2007-05-05  0:41           ` Segher Boessenkool
2007-05-05  0:41             ` Segher Boessenkool

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=20070504232451.GA15433@lixom.net \
    --to=olof@lixom.net \
    --cc=jgarzik@pobox.com \
    --cc=linas@austin.ibm.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=netdev@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 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.