Re: [PATCH kernel] powerpc/powernv: Fix stale iommu table base after VFIO

2019-07-07 Thread Michael Ellerman
On Fri, 2019-06-28 at 06:53:00 UTC, Alexey Kardashevskiy wrote: > The powernv platform uses @dma_iommu_ops for non-bypass DMA. These ops > need an iommu_table pointer which is stored in > dev->archdata.iommu_table_base. It is initialized during > pcibios_setup_device() which handles boot time devic

[PATCH kernel] powerpc/powernv: Fix stale iommu table base after VFIO

2019-06-27 Thread Alexey Kardashevskiy
The powernv platform uses @dma_iommu_ops for non-bypass DMA. These ops need an iommu_table pointer which is stored in dev->archdata.iommu_table_base. It is initialized during pcibios_setup_device() which handles boot time devices. However when a device is taken from the system in order to pass it t