Skip to content
Commit 2b0140c6 authored by Jon Derrick's avatar Jon Derrick Committed by Bjorn Helgaas
Browse files

iommu/vt-d: Use pci_real_dma_dev() for mapping

The PCI device may have a DMA requester on another bus, such as VMD
subdevices needing to use the VMD endpoint.  This case requires the real
DMA device for the IOMMU mapping, so use pci_real_dma_dev() to find that
device.

Link: https://lore.kernel.org/r/1579613871-301529-5-git-send-email-jonathan.derrick@intel.com


Signed-off-by: default avatarJon Derrick <jonathan.derrick@intel.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
parent 2856ba60
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment