From: Jes Sorensen <jes@sgi.com>
To: Nick Piggin <npiggin@suse.de>
Cc: linux-arch@vger.kernel.org, jbarnes@virtuousgeek.org,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [rfc] add io barriers, remove mmiowb
Date: 22 May 2008 04:34:51 -0400 [thread overview]
Message-ID: <yq0fxsaivo4.fsf@jaguar.mkp.net> (raw)
In-Reply-To: <20080521152855.GE8897@wotan.suse.de>
>>>>> "Nick" == Nick Piggin <npiggin@suse.de> writes:
Nick> mb and wmb are now no longer guaranteed to order system memory
Nick> operations with device memory stores. mmiowb has been introduced
Nick> to provide this ordering (when combined with a mb, wmb, or
Nick> spin_unlock). Unfortunately, it appears to be rather less well
Nick> understood among both users and implementors than even the old
Nick> memory barrier scheme. It also subtly breaks existing code that
Nick> uses mb or wmb (if only on sn2). I really think it is not a good
Nick> solution.
Nick> The alternative I propose is to restore mb and wmb to their full
Nick> strength. This does mean that sn2 has to do the equivalent of
Nick> mb+mmiowb, wmb+mmiowb respectively, but that's the price you pay
Nick> for weak memory ordering.
Nick,
Introducing this constraint would make me less than pleased I have to
admit. It's a very expensive operation to do since it requires going
out talking to the PCI bridge, doing that on every wmb() is going to
really hurt :-(
Cheers,
Jes
next prev parent reply other threads:[~2008-05-22 8:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-21 15:28 [rfc] add io barriers, remove mmiowb Nick Piggin
2008-05-22 8:34 ` Jes Sorensen [this message]
2008-05-22 9:51 ` Nick Piggin
2008-05-22 12:28 ` Jes Sorensen
2008-05-22 16:34 ` Jesse Barnes
2008-05-23 1:44 ` Nick Piggin
2008-05-22 23:59 ` Paul Mackerras
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=yq0fxsaivo4.fsf@jaguar.mkp.net \
--to=jes@sgi.com \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-arch@vger.kernel.org \
--cc=npiggin@suse.de \
--cc=torvalds@linux-foundation.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