ARM: NOMMU: Set ARM_DMA_MEM_BUFFERABLE for M-class cpus
authorVladimir Murzin <vladimir.murzin@arm.com>
Wed, 24 May 2017 10:24:31 +0000 (11:24 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 30 Jun 2017 17:03:10 +0000 (10:03 -0700)
commit1b11d39e6a6864a9dfb64e2c3ac03090e3b34399
tree0cc05ea30843b0a613eb1e1b2d7a6078c88e815c
parent1c51c429f30ea10428337f3a33c12059ba59f668
ARM: NOMMU: Set ARM_DMA_MEM_BUFFERABLE for M-class cpus

Now, we have dedicated non-cacheable region for consistent DMA
operations. However, that region can still be marked as bufferable by
MPU, so it'd be safer to have barriers by default. M-class machines
that didn't need it until now also likely won't need it in the future,
therefore, we offer this as an option.

Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Andras Szemzo <sza@esh.hu>
Tested-by: Alexandre TORGUE <alexandre.torgue@st.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/arm/mm/Kconfig