Good catch. Thanks Baolu.
Will do v5 fixing this and Christoph's nit
On Tue, 2020-01-21 at 09:06 +0800, Lu Baolu wrote:
> Hi,
>
> On 1/18/20 12:27 AM, Jon Derrick wrote:
> > The PCI device may have a DMA requester on another bus, such as VMD
> > subdevices needing to use the VMD endpoint. This ca
Hi,
On 1/18/20 12:27 AM, Jon Derrick wrote:
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 when mapping to IOMMU.
Signed-off-by: Jon Derrick
---
drivers/iommu/intel-iommu.c | 9 +
On Fri, Jan 17, 2020 at 09:27:26AM -0700, Jon Derrick wrote:
> + if (dev_is_pci(dev)) {
> + struct pci_dev *pdev;
> +
> + pdev = pci_real_dma_dev(to_pci_dev(dev));
> + dev = &pdev->dev;
I think this could be simplified to
if (dev_is_pci(dev))
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 when mapping to IOMMU.
Signed-off-by: Jon Derrick
---
drivers/iommu/intel-iommu.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/dr