arm64: dma-mapping: Use default iommu domain
When a device probes and arch_setup_dma_ops is called, check if the
device has an associated default iommu_domain. If it does, setup
a virtual address allocator of the type described by the
default domain's attributes.
The lifetime of any private data living in default_domain->iova_cookie
is tied to the lifetime of the associated iommu_group.
Mark arm_iommu_create_mapping and arm_iommu_attach_device as
deprecated, since clients will no longer need to use them now that
the iommu framework will associate them with a default domain.
Change-Id: I4cd9efc2ab824358d4342551392fdcf7928393ff
Signed-off-by:
Patrick Daly <pdaly@codeaurora.org>
Loading
Please register or sign in to comment