mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: "Bryan O'Sullivan" <bos@pathscale.com>
Cc: akpm@osdl.org, ak@suse.de, paulus@samba.org, bcrl@kvack.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Define flush_wc, a way to flush write combining store buffers
Date: Thu, 09 Mar 2006 10:40:29 +1100	[thread overview]
Message-ID: <1141861230.11221.189.camel@localhost.localdomain> (raw)
In-Reply-To: <1141854208.27555.1.camel@localhost.localdomain>

On Wed, 2006-03-08 at 13:43 -0800, Bryan O'Sullivan wrote:
> On Thu, 2006-03-09 at 08:38 +1100, Benjamin Herrenschmidt wrote:
> 
> > I think people already don't undersatnd the existing gazillion of
> > barriers we have with quite unclear semantics in some cases, it's not
> > time to add a new one ...
> 
> What do you suggest I do, then?  This makes a substantial difference to
> performance for us.  Should I confine this somehow to the ipath driver
> directory and have a nest of ifdefs in an include file there?

What bothers me is that because of that exact same argument "it makes
substantial difference for us", we end up with basically barriers
tailored for architectures... that is as many kind of barriers as we
have architectuers... like mmiowb :)

Currently, PowerPC is losing significant performances for example to try
to "fit" in the linux barriers for things like IOs which would leak out
of spinlocks if we didn't have a strong barrier in pretty much every
writeX() or things like that. We could use the same argument you are
making to come up with yet another set of barriers that are more
friendly to ppc ...

At the end of the day, however, the problem is that pretty much no
driver write understand anything about any of the barriers and get them
all wrong...

Which makes me thing we are trying to use the wrong tool or providing
the wrong level of abstraction or something there...

Ben.



  parent reply	other threads:[~2006-03-08 23:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-08 21:31 Bryan O'Sullivan
2006-03-08 21:38 ` Benjamin Herrenschmidt
2006-03-08 21:37   ` Benjamin LaHaise
2006-03-08 21:43   ` Bryan O'Sullivan
2006-03-08 14:21     ` Andi Kleen
2006-03-08 21:57       ` Bryan O'Sullivan
2006-03-08 14:38         ` Andi Kleen
2006-03-09  1:26           ` Bryan O'Sullivan
2006-03-08 23:40     ` Benjamin Herrenschmidt [this message]
2006-03-09  1:48       ` Bryan O'Sullivan
2006-03-08 22:06 ` Alan Cox
2006-03-08 14:35   ` Andi Kleen
2006-03-08 22:05     ` Bryan O'Sullivan
2006-03-08 14:40       ` Andi Kleen

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=1141861230.11221.189.camel@localhost.localdomain \
    --to=benh@kernel.crashing.org \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=bcrl@kvack.org \
    --cc=bos@pathscale.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulus@samba.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®