Skip to content
Commit 26a26d32 authored by Russell King's avatar Russell King
Browse files

ARM: dma-mapping: switch ARMv7 DMA mappings to retain 'memory' attribute



On ARMv7, it is invalid to map the same physical address multiple times
with different memory types.  Since system RAM is already mapped as
'memory', subsequent remapping of it must retain this attribute.

However, DMA memory maps it as "strongly ordered".  Fix this by introducing
'pgprot_dmacoherent()' which provides the necessary page table bits for
DMA mappings.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Acked-by: default avatarGreg Ungerer <gerg@uclinux.org>
Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent acaac256
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment