summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMitchel Humpherys <mitchelh@codeaurora.org>2014-07-29 18:03:04 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:11:05 -0700
commit0fc87cab41e7ef0d757d98fb6846401e35f9ab1e (patch)
tree1f8959afe1b93435001761a858a6a11a24061989 /include/linux
parent59360e7926b75e8faff7815f553c71028be61f68 (diff)
iommu/arm-smmu: add support for iova_to_phys through ATS1PR
Currently, we provide the iommu_ops.iova_to_phys service by doing a table walk in software to translate IO virtual addresses to physical addresses. On SMMUs that support it, it can be useful to ask the SMMU itself to do the translation. This can be used to warm the TLBs for an SMMU. It can also be useful for testing and hardware validation. Since the address translation registers are optional on SMMUv2, only enable hardware translations when using SMMUv1 or when SMMU_IDR0.S1TS=1 and SMMU_IDR0.ATOSNS=0, as described in the ARM SMMU v1-v2 spec. Change-Id: I07157ced4b2d8a5974b69f84f0ba47ca1b99481b Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions