summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorRobin Murphy <Robin.Murphy@arm.com>2015-07-29 19:46:09 +0100
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:15:19 -0700
commit78d859525375f75b08d4438facaa08ee4bd19593 (patch)
tree8f117885b4fe3be5646ab35321ef140b91050add /include/uapi
parent02effacf08f527f8e08858f77669aec102032e68 (diff)
iommu/io-pgtable-arm: Centralise sync points
With all current users now opted in to DMA API operations, make the iommu_dev pointer mandatory, rendering the flush_pgtable callback redundant for cache maintenance. However, since the DMA calls could be nops in the case of a coherent IOMMU, we still need to ensure the page table updates are fully synchronised against a subsequent page table walk. In the unmap path, the TLB sync will usually need to do this anyway, so just cement that requirement; in the map path which may consist solely of cacheable memory writes (in the coherent case), insert an appropriate barrier at the end of the operation, and obviate the need to call flush_pgtable on every individual update for synchronisation. Change-Id: I3716a707495ae0c8a625bbd81d8547ae08363a43 Signed-off-by: Robin Murphy <robin.murphy@arm.com> [will: slight clarification to tlb_sync comment] Signed-off-by: Will Deacon <will.deacon@arm.com> [pdaly@codeaurora.org Remove flush_pgtable()]
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions