]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/arm-smmu: set a more appropriate DMA mask
authorRobin Murphy <Robin.Murphy@arm.com>
Wed, 4 Mar 2015 16:41:05 +0000 (16:41 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 27 Mar 2015 13:39:36 +0000 (13:39 +0000)
commitf1d84548694fe45f3348c0379d7277fed05bbcf0
tree0868f35f00e9d905b8d14f0804587d8d538dd197
parent4a1c93cbe9b2cf559fee3316ee287bb042eb1aba
iommu/arm-smmu: set a more appropriate DMA mask

Since we use dma_map_page() as an architecture-independent means of
making page table updates visible to non-coherent SMMUs, we need to
have a suitable DMA mask set to discourage the DMA mapping layer from
creating bounce buffers and flushing those instead, if said page tables
happen to lie outside the default 32-bit mask.

Tested-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
[will: added error checking]
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c