diff options
author | Nicolas Pitre <nico@cam.org> | 2009-01-16 23:02:54 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-01-28 16:55:00 +0000 |
commit | 08e445bd6a98fa09befe0cf6d67705324f913fc6 (patch) | |
tree | 34308727da79a6a36fc52ebe5b5d960b2bafaf6d /arch/arm/kernel | |
parent | ecbab71c521819716e204659dfe72fc39d00630a (diff) | |
download | op-kernel-dev-08e445bd6a98fa09befe0cf6d67705324f913fc6.zip op-kernel-dev-08e445bd6a98fa09befe0cf6d67705324f913fc6.tar.gz |
[ARM] 5366/1: fix shared memory coherency with VIVT L1 + L2 caches
When there are multiple L1-aliasing userland mappings of the same physical
page, we currently remap each of them uncached, to prevent VIVT cache
aliasing issues. (E.g. writes to one of the mappings not being immediately
visible via another mapping.) However, when we do this remapping, there
could still be stale data in the L2 cache, and an uncached mapping might
bypass L2 and go straight to RAM. This would cause reads from such
mappings to see old data (until the dirty L2 line is eventually evicted.)
This issue is solved by forcing a L2 cache flush whenever the shared page
is made L1 uncacheable.
Ideally, we would make L1 uncacheable and L2 cacheable as L2 is PIPT. But
Feroceon does not support that combination, and the TEX=5 C=0 B=0 encoding
for XSc3 doesn't appear to work in practice.
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
0 files changed, 0 insertions, 0 deletions