Skip to content

Commit bba9cc2

Browse files
Jon Derrickjoergroedel
authored andcommitted
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: 2b0140c ("iommu/vt-d: Use pci_real_dma_dev() for mapping") Signed-off-by: Jon Derrick <[email protected]> Acked-by: Lu Baolu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=207575 Signed-off-by: Joerg Roedel <[email protected]>
1 parent 4fda230 commit bba9cc2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/iommu/intel-iommu.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,9 +2436,6 @@ struct dmar_domain *find_domain(struct device *dev)
24362436
if (unlikely(attach_deferred(dev) || iommu_dummy(dev)))
24372437
return NULL;
24382438

2439-
if (dev_is_pci(dev))
2440-
dev = &pci_real_dma_dev(to_pci_dev(dev))->dev;
2441-
24422439
/* No lock here, assumes no domain exit in normal case */
24432440
info = get_domain_info(dev);
24442441
if (likely(info))

0 commit comments

Comments
 (0)