From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mx6: Set shared override bit in PL310 AUX_CTRL register
Date: Thu, 12 Mar 2015 01:04:31 +0000 [thread overview]
Message-ID: <20150312010430.GG8656@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1426104732-26695-1-git-send-email-festevam@gmail.com>
On Wed, Mar 11, 2015 at 05:12:12PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Having bit 22 cleared in the PL310 Auxiliary Control register (shared
> attribute override enable) has the side effect of transforming Normal
> Shared Non-cacheable reads into Cacheable no-allocate reads.
>
> Coherent DMA buffers in Linux always have a Cacheable alias via the
> kernel linear mapping and the processor can speculatively load cache
> lines into the PL310 controller.
No, this is wrong. They do not. CMA remaps pages to be non-cacheable
rather than the old technique where the above statement was true.
There's some corner cases which make that less effective than it once
was, and as I've already said, those need to be fixed. The reason
that these were missed is because all the ARM CMA work bypassed me -
CMA on ARM has had zero review from the point of view of the ARM
architecture, so it's not surprising it gets stuff like this wrong.
Once that's fixed, setting bit 22 is not necessary.
--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
next prev parent reply other threads:[~2015-03-12 1:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-11 20:12 [U-Boot] [PATCH] mx6: Set shared override bit in PL310 AUX_CTRL register Fabio Estevam
2015-03-12 1:04 ` Russell King - ARM Linux [this message]
2015-03-12 2:27 ` Fabio Estevam
2015-03-12 9:31 ` Catalin Marinas
2015-03-12 9:32 ` Catalin Marinas
2015-03-12 13:41 ` Tom Rini
2015-03-12 13:57 ` Fabio Estevam
2015-03-12 14:25 ` Fabio Estevam
2015-03-12 14:43 ` Nishanth Menon
2015-03-12 15:15 ` Fabio Estevam
2015-03-12 15:34 ` Nishanth Menon
2015-04-10 0:35 ` Fabio Estevam
2015-04-10 5:45 ` Nishanth Menon
2015-03-12 14:17 ` Nishanth Menon
2015-05-15 13:35 ` Stefano Babic
2015-05-15 13:37 ` Fabio Estevam
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=20150312010430.GG8656@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=u-boot@lists.denx.de \
/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