arm64: Make DMA coherent and strongly ordered mappings not executable
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 12 Mar 2014 16:07:06 +0000 (16:07 +0000)
committerMark Brown <broonie@linaro.org>
Wed, 14 May 2014 11:19:08 +0000 (12:19 +0100)
commite4cb973f4aa39836b5dc01f35f4c100607229e06
tree5831e55434c7204497c26a2c003e292f566dc051
parent5aab0869c941fc278fa72ff1d05bbbbb70f7d7c0
arm64: Make DMA coherent and strongly ordered mappings not executable

commit de2db7432917a82b62d55bb59635586eeca6d1bd upstream.

pgprot_{dmacoherent,writecombine,noncached} don't need to generate
executable mappings with side-effects like __sync_icache_dcache() being
called when the mapping is in user space.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
Tested-by: Laura Abbott <lauraa@codeaurora.org>
Tested-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 73e8697b71fa956642403304b96442fd4b57ce97)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/pgtable.h