diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2014-07-15 17:00:55 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-08-05 15:41:12 +1000 |
commit | dff4a39e880062b358be2f08de878a49425036c4 (patch) | |
tree | 0a288cce8018c5a1d4ee682676c1530687f60663 /arch/powerpc/kernel/ppc32.h | |
parent | 9e5c6e5a3be0b2e17ff61b9b74adef4a2c9e6934 (diff) |
powerpc/powernv: Fix IOMMU table for VFIO dev
On PHB3, PCI devices can bypass IOMMU for DMA access. If we pass
through one PCI device, whose hose driver ever enable the bypass
mode, pdev->dev.archdata.dma_data.iommu_table_base isn't IOMMU
table. However, EEH needs access the IOMMU table when the device
is owned by guest.
The patch fixes pdev->dev.archdata.dma_data.iommu_table when
passing through the device to guest in pnv_pci_ioda2_set_bypass().
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/ppc32.h')
0 files changed, 0 insertions, 0 deletions