From: Ralf Baechle <ralf@linux-mips.org>
To: loody <miloody@gmail.com>
Cc: Linux MIPS Mailing List <linux-mips@linux-mips.org>
Subject: Re: some question about wmb in mips
Date: Sun, 27 Jun 2010 21:39:40 +0100 [thread overview]
Message-ID: <20100627203940.GA4554@linux-mips.org> (raw)
In-Reply-To: <AANLkTikXife5CaPBQ4k_FUUM6-VD2C7SOOEbyugRhIqG@mail.gmail.com>
On Mon, Jun 28, 2010 at 12:16:06AM +0800, loody wrote:
> Dear all:
> AFAIK, wmb in mips is implemented by calling sync,
> wmb->fast_wmb->__sync, which makes sure Loads and stores executed
> before the SYNC are completed before loads
> and stores after the SYNC can start
> But will this instruction write the cache back too?
No.
> take usb example, it will call this maco before it let host processing
> the commands on dram, so I wondering whether sync will write the cache
> back to memory.
SYNC is for memory consistency, not coherency.
Ralf
prev parent reply other threads:[~2010-06-28 2:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-27 16:16 some question about wmb in mips loody
2010-06-27 17:47 ` Maciej W. Rozycki
2010-06-27 20:52 ` Ralf Baechle
[not found] ` <AANLkTim53N4t7PXiRPNqtP0G9cEjMdQY77m73MVkApH5@mail.gmail.com>
2010-08-30 13:58 ` loody
2010-08-31 14:33 ` Ralf Baechle
2010-08-31 15:59 ` David Daney
2010-06-27 20:39 ` Ralf Baechle [this message]
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=20100627203940.GA4554@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=miloody@gmail.com \
/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.