From: Jesse Barnes <jbarnes@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] pio barriers
Date: Tue, 11 Dec 2001 00:23:00 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805676@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805669@msgid-missing>
On Mon, Dec 10, 2001 at 03:58:19PM -0800, David Mosberger wrote:
> The comment is wrong, or at least misleading (I wrote it, so hopefully
> nobody is offended... ;-). mf.a is needed for inX/outX emulation, not
> really for ordering. Uncached accesses are not re-ordered by the CPU
> and mf will do just fine as far as ordering of cached accesses are
> concerned.
On our platform, uncached accesses can arrive out of orderif they come
from different cpus, so simple spinlock protection isn't quite enough
to guarantee that pios don't arrive out of order. We'll need a pio
barrier macro and (ideally) an spin_unlock variant that includes it.
> Can you get away with forcing the proper ordering with a dummy-read?
> If so, I suspect that would be preferable as that is the only platform
> independent way to do this (as far as I know).
Do you mean that a driver should do a dummy read following writes that
have to arrive prior to others? I guess that would be just as
invasive as introducing a pio barrier or another spinlock...
Jesse
next prev parent reply other threads:[~2001-12-11 0:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-10 22:47 [Linux-ia64] pio barriers Jesse Barnes
2001-12-10 22:57 ` Jack Steiner
2001-12-10 23:00 ` Jesse Barnes
2001-12-10 23:58 ` David Mosberger
2001-12-11 0:23 ` Jesse Barnes [this message]
2001-12-11 0:44 ` David Mosberger
2001-12-11 0:55 ` Jesse Barnes
2001-12-11 5:30 ` David Mosberger
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=marc-linux-ia64-105590698805676@msgid-missing \
--to=jbarnes@sgi.com \
--cc=linux-ia64@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