diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2010-09-13 16:01:24 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-09-19 12:19:18 +0100 |
commit | d907387c42e9e39261629890e45a08ef4c3ed3fe (patch) | |
tree | c25c1c7bde121ccb9ac56a434113c16d24203647 /drivers/video/bf54x-lq043fb.c | |
parent | 79e27dc0677b969e2d53b76fa0fa58467cce946a (diff) | |
download | blackbird-obmc-linux-d907387c42e9e39261629890e45a08ef4c3ed3fe.tar.gz blackbird-obmc-linux-d907387c42e9e39261629890e45a08ef4c3ed3fe.zip |
ARM: 6383/1: Implement phys_mem_access_prot() to avoid attributes aliasing
ARMv7 onwards requires that there are no aliases to the same physical
location using different memory types (i.e. Normal vs Strongly Ordered).
Access to SO mappings when the unaligned accesses are handled in
hardware is also Unpredictable (pgprot_noncached() mappings in user
space).
The /dev/mem driver requires uncached mappings with O_SYNC. The patch
implements the phys_mem_access_prot() function which generates Strongly
Ordered memory attributes if !pfn_valid() (independent of O_SYNC) and
Normal Noncacheable (writecombine) if O_SYNC.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/video/bf54x-lq043fb.c')
0 files changed, 0 insertions, 0 deletions