[PATCH 10/10] ARM: dma-mapping: switch ARMv7 DMA mappings to retain'memory' attribute

Catalin Marinas catalin.marinas at arm.com
Mon Nov 23 07:21:23 EST 2009


On Sat, 2009-11-21 at 19:39 +0000, Russell King - ARM Linux wrote:
> 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: Russell King <rmk+kernel at arm.linux.org.uk>

Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>

-- 
Catalin




More information about the linux-arm-kernel mailing list