diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2017-01-09 23:59:46 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-09 23:59:45 -0800 |
commit | 875855417edbff79a4a6ab3917387d770059a8bc (patch) | |
tree | 4dd5ef4db289cf6df9d744d3d2ddd84e446b6a1f /drivers | |
parent | 09d27a060b31df6cf116a5f786126bf3d8e00860 (diff) | |
parent | 90d80a06deede1b9d3e857bd26c15d2bc05850ca (diff) |
Merge "iommu: support querying IOVA coherency"
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iommu/iommu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 8ab502d80270..a77a45088b9d 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -1336,6 +1336,13 @@ phys_addr_t iommu_iova_to_phys_hard(struct iommu_domain *domain, return domain->ops->iova_to_phys_hard(domain, iova); } +bool iommu_is_iova_coherent(struct iommu_domain *domain, dma_addr_t iova) +{ + if (unlikely(domain->ops->is_iova_coherent == NULL)) + return 0; + + return domain->ops->is_iova_coherent(domain, iova); +} static unsigned long iommu_get_pgsize_bitmap(struct iommu_domain *domain) { if (domain->ops->get_pgsize_bitmap) |