Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5b37e7ec authored by Patrick Daly's avatar Patrick Daly
Browse files

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: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 533f63f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment