From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: change_page_attr() implementation for ARM?
Date: Thu, 13 Oct 2011 09:52:43 +0100 [thread overview]
Message-ID: <20111013085243.GB6300@arm.com> (raw)
In-Reply-To: <401E54CE964CD94BAE1EB4A729C7087E3722519EE2@HQMAIL04.nvidia.com>
On Thu, Oct 13, 2011 at 03:27:58AM +0100, Krishna Reddy wrote:
> >> On Cortex-A9, we have observed stale data being read from
> >> write-combine (C=0 B=1) memory regions mapped into userspace which
> >> have a duplicate cacheable mapping in the kernel address space (due
> >> to the kernel linear mapping).
> >>
> >> The issue appears to be due to speculative prefetch on the
> >> cacheable kernel linear mapping which gets lines into the L2 cache.
> >> When reads are performed on the write-combine mapping for this
> >> address range, these reads get the stale data from L2 instead of
> >> memory.
>
> >If your system has a PL310, there is bit 22 in the auxiliary control
> >register which makes reads via the non-cacheable mapping not to hit
> >the L2 cache. I had this patch queued in Russell's system for a long
> >time:
> >http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=6529/1
> >Alternatively, you can pass this bit via your platform code.
>
> Is this is a quick fix for ARM processors with PL310. Can this be
> expected in future versions of ARM processors with different L2 cache?
That's specific to the PL310 cache controller, nothing to do with the
CPU. It's a configuration bit that may be useful in some scenarios.
--
Catalin
next prev parent reply other threads:[~2011-10-13 8:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-21 22:10 change_page_attr() implementation for ARM? Vinod Rex
2011-09-23 9:04 ` Catalin Marinas
2011-10-13 2:27 ` Krishna Reddy
2011-10-13 8:49 ` Russell King - ARM Linux
2011-10-13 8:59 ` Catalin Marinas
2011-10-13 8:52 ` Catalin Marinas [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-10-17 5:05 Hiroshi Doyu
2013-10-17 10:13 ` Catalin Marinas
[not found] ` <20131017101325.GD23462-5wv7dgnIgG8@public.gmane.org>
2013-10-17 10:28 ` Hiroshi Doyu
2013-10-17 10:28 ` Hiroshi Doyu
2013-11-12 13:45 ` Hiroshi Doyu
2013-11-14 15:41 ` Catalin Marinas
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=20111013085243.GB6300@arm.com \
--to=catalin.marinas@arm.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 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.