OSDN Git Service

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)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:51 +0000 (11:14 -0700)
commit922d32b8b4fc9b53e40213fcd6bc5f80fee8d73b
tree3b1d8085e7bb7bf9bcf507a3e9b7b08a8af8528e
parentab1900e31088ad5a62199b6abd797aa9e9f79971
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.

Change-Id: Ia97122cef853cb48c9ad45a2a35717dd85cd9764
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>
[pdaly@codeaurora.org Take upstream version]
drivers/iommu/arm-smmu.c