diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2010-09-13 19:01:24 +0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-09-19 15:19:18 +0400 |
commit | d907387c42e9e39261629890e45a08ef4c3ed3fe (patch) | |
tree | c25c1c7bde121ccb9ac56a434113c16d24203647 /Documentation/s390/driver-model.txt | |
parent | 79e27dc0677b969e2d53b76fa0fa58467cce946a (diff) | |
download | linux-d907387c42e9e39261629890e45a08ef4c3ed3fe.tar.xz |
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 'Documentation/s390/driver-model.txt')
0 files changed, 0 insertions, 0 deletions