iommu/vt-d: Remove real DMA lookup in find_domain
authorJon Derrick <jonathan.derrick@intel.com>
Wed, 27 May 2020 16:56:17 +0000 (10:56 -0600)
committerJoerg Roedel <jroedel@suse.de>
Fri, 29 May 2020 13:11:52 +0000 (15:11 +0200)
commitbba9cc2cf82840bd3c9b3f4f7edac2dc8329c241
tree8f6d0f30d5b5651e45ae87364c0d5b8cfbe74a67
parent4fda230ecddc2573ed88632e98b69b0b9b68c0ad
iommu/vt-d: Remove real DMA lookup in find_domain

By removing the real DMA indirection in find_domain(), we can allow
sub-devices of a real DMA device to have their own valid
device_domain_info. The dmar lookup and context entry removal paths have
been fixed to account for sub-devices.

Fixes: 2b0140c69637 ("iommu/vt-d: Use pci_real_dma_dev() for mapping")
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20200527165617.297470-4-jonathan.derrick@intel.com
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=207575
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c