From: David Mosberger <davidm@hpl.hp.com>
To: "Dan Maas" <dmaas@dcine.com>
Cc: <linux-kernel@vger.kernel.org>,
"Benjamin Herrenschmidt" <benh@kernel.crashing.org>,
"Ben Collins" <bcollins@debian.org>
Subject: Re: readl/writel and memory barriers
Date: Tue, 19 Feb 2002 09:10:44 -0800 [thread overview]
Message-ID: <15474.34580.625864.963930@napali.hpl.hp.com> (raw)
In-Reply-To: <092401c1b8e7$1d190660$1a01a8c0@allyourbase>
In-Reply-To: <092401c1b8e7$1d190660$1a01a8c0@allyourbase>
>>>>> On Mon, 18 Feb 2002 20:45:29 -0500, "Dan Maas" <dmaas@dcine.com> said:
Dan> In a quick survey of architectures that need explicit memory
Dan> barriers to enforce ordering of PCI accesses, it seems that
Dan> alpha and PPC include memory barriers inside readl() and
Dan> writel(), whereas MIPS, sparc64, ia64, and s390 do not include
Dan> them. (I'm not intimately familiar with these architectures so
Dan> forgive me if I got some wrong...). What is the official story
Dan> here?
On ia64, the fact that readl()/writel() are accessing uncached space
ensures the CPU doesn't reorder the accesses. Furthermore, the
accesses are performed through "volatile" pointers, which ensures that
the compiler doesn't reorder them (and, as a side-effect, such
pointers also generate ordered loads/stores, but this isn't strictly
needed, due to accessing uncached space).
--david
next prev parent reply other threads:[~2002-02-19 17:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-19 1:45 Dan Maas
2002-02-19 9:31 ` Alan Cox
2002-02-19 17:10 ` David Mosberger [this message]
2002-02-19 18:35 ` Jesse Barnes
2002-02-19 20:11 ` Dan Maas
2002-02-19 20:23 ` Jesse Barnes
2002-02-19 22:05 ` Keith Owens
2002-02-19 22:17 ` Jesse Barnes
2002-02-21 0:29 ` Randy.Dunlap
2002-02-23 4:48 ` Daniel Phillips
2002-02-25 16:19 ` Randy.Dunlap
2002-02-19 19:33 ` David Mosberger
2002-02-19 19:42 ` Jesse Barnes
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=15474.34580.625864.963930@napali.hpl.hp.com \
--to=davidm@hpl.hp.com \
--cc=bcollins@debian.org \
--cc=benh@kernel.crashing.org \
--cc=dmaas@dcine.com \
--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®