• Lu Baolu's avatar
    iommu: Add API to request DMA domain for device · 7423e017
    Lu Baolu authored
    Normally during iommu probing a device, a default doamin will
    be allocated and attached to the device. The domain type of
    the default domain is statically defined, which results in a
    situation where the allocated default domain isn't suitable
    for the device due to some limitations. We already have API
    iommu_request_dm_for_dev() to replace a DMA domain with an
    identity one. This adds iommu_request_dma_domain_for_dev()
    to request a dma domain if an allocated identity domain isn't
    suitable for the device in question.
    Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
    Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
    7423e017
iommu.c 55.6 KB