From: sophian.yoma@gmail.com (yoma sophian)
To: linux-arm-kernel@lists.infradead.org
Subject: some question about writel implement in arm platform
Date: Fri, 17 Apr 2015 09:23:11 +0800 [thread overview]
Message-ID: <CADUS3o=0CB_9f2=VcHqmCKzQnujz2yGDvf5Y5oh7cxvbL2Y_Dg@mail.gmail.com> (raw)
In-Reply-To: <2505138.CuSGrDpcOa@wuerfel>
hi arnd:
2015-04-16 17:47 GMT+08:00 Arnd Bergmann <arnd@arndb.de>:
> On Thursday 16 April 2015 16:06:16 yoma sophian wrote:
>>
>> 2015-04-16 14:19 GMT+08:00 Arnd Bergmann <arnd@arndb.de>:
>> > On Thursday 16 April 2015 13:28:41 yoma sophian wrote:
>> >> hi all:
>> >> the implementation of writel in ARM is writel_relaxed() with barrier
>> >> before (DSB + outer cache sync).
>> >>
>> >> if the memory is device memory, shall we still need outer cache sync?
>> >
>> > Yes.
>> Take my platform for example, I use Cortex A9 with PL310 L2 cache controller.
>> if the memory is device memory, that mean it is un-cacheable why we
>> still need to out sync off the PL310 buffer in writel operation?
>
> The l2 sync is to ensure that prior memory writes are visible to a DMA
> master that gets triggered by the writel.
>
> If your device is not a DMA master, or the operation is unrelated to
> DMA, you can use writel_relaxed().
Thanks for your kind explanation.
prev parent reply other threads:[~2015-04-17 1:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-16 5:28 some question about writel implement in arm platform yoma sophian
2015-04-16 6:19 ` Arnd Bergmann
2015-04-16 8:06 ` yoma sophian
2015-04-16 9:47 ` Arnd Bergmann
2015-04-17 1:23 ` yoma sophian [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='CADUS3o=0CB_9f2=VcHqmCKzQnujz2yGDvf5Y5oh7cxvbL2Y_Dg@mail.gmail.com' \
--to=sophian.yoma@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).