diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2023-01-10 10:54:05 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-01-13 16:39:15 +0100 |
commit | 6caeb33fa986151f745fc62190bc28a593b8a0d2 (patch) | |
tree | da00db74ae49871abc47005f96002d6268c59df6 /drivers/iommu/tegra-gart.c | |
parent | 1b932ceddd19de1cdf2a86f1fca77c37dad758cc (diff) | |
download | linux-stable-6caeb33fa986151f745fc62190bc28a593b8a0d2.tar.gz linux-stable-6caeb33fa986151f745fc62190bc28a593b8a0d2.tar.bz2 linux-stable-6caeb33fa986151f745fc62190bc28a593b8a0d2.zip |
iommu: Add set_platform_dma_ops iommu ops
When VFIO finishes assigning a device to user space and calls
iommu_group_release_dma_owner() to return the device to kernel, the IOMMU
core will attach the default domain to the device. Unfortunately, some
IOMMU drivers don't support default domain, hence in the end, the core
calls .detach_dev instead.
This adds set_platform_dma_ops iommu ops to make it clear that what it
does is returning control back to the platform DMA ops.
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20230110025408.667767-3-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/tegra-gart.c')
0 files changed, 0 insertions, 0 deletions