From: Russell King Date: Fri, 20 Nov 2009 21:06:43 +0000 (+0000) Subject: ARM: dma-mapping: switch ARMv7 DMA mappings to retain 'memory' attribute X-Git-Tag: v2.6.33-rc1~384^2~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26a26d329688ab018e068b412b03d43d7c299f0a;p=pandora-kernel.git 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: Russell King Acked-by: Greg Ungerer Reviewed-by: Catalin Marinas --- Reading git-diff-tree failed