summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2017-03-16 17:00:18 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-09-25 07:25:45 (GMT)
commitc30a4670b500ae6c0a6b7dd8889e1e19d8c23191 (patch)
tree738a33e4373b2e4ee48e9f3f81838f5a3d24c7cb /include
parent734055968b9ef0bb89dd6a45c794da5ac29ab29f (diff)
downloadlinux-c30a4670b500ae6c0a6b7dd8889e1e19d8c23191.tar.xz
iommu/dma: Handle IOMMU API reserved regions
Now that it's simple to discover the necessary reservations for a given device/IOMMU combination, let's wire up the appropriate handling. Basic reserved regions and direct-mapped regions we simply have to carve out of IOVA space (the IOMMU core having already mapped the latter before attaching the device). For hardware MSI regions, we also pre-populate the cookie with matching msi_pages. That way, irqchip drivers which normally assume MSIs to require mapping at the IOMMU can keep working without having to special-case their iommu_dma_map_msi_msg() hook, or indeed be aware at all of quirks preventing the IOMMU from translating certain addresses. Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions