Re: [Qemu-devel] [PATCH] pci: Fix pci_device_iommu_address_space() bus propagation

2015-08-18 Thread Benjamin Herrenschmidt
On Mon, 2015-08-17 at 21:50 +0300, Michael S. Tsirkin wrote: > On Mon, Aug 17, 2015 at 07:39:14PM +1000, Benjamin Herrenschmidt > wrote: > > On Sun, 2015-07-05 at 09:19 +1000, Benjamin Herrenschmidt wrote: > > > he current code walks up the bus tree for an iommu, however it > > > passes > > > to

Re: [Qemu-devel] [PATCH] pci: Fix pci_device_iommu_address_space() bus propagation

2015-08-17 Thread Michael S. Tsirkin
On Mon, Aug 17, 2015 at 07:39:14PM +1000, Benjamin Herrenschmidt wrote: > On Sun, 2015-07-05 at 09:19 +1000, Benjamin Herrenschmidt wrote: > > he current code walks up the bus tree for an iommu, however it passes > > to the iommu_fn() callback the bus/devfn of the immediate child of > > the level w

Re: [Qemu-devel] [PATCH] pci: Fix pci_device_iommu_address_space() bus propagation

2015-08-17 Thread Benjamin Herrenschmidt
On Sun, 2015-07-05 at 09:19 +1000, Benjamin Herrenschmidt wrote: > he current code walks up the bus tree for an iommu, however it passes > to the iommu_fn() callback the bus/devfn of the immediate child of > the level where the callback was found, rather than the original > bus/devfn where the sear

[Qemu-devel] [PATCH] pci: Fix pci_device_iommu_address_space() bus propagation

2015-07-04 Thread Benjamin Herrenschmidt
he current code walks up the bus tree for an iommu, however it passes to the iommu_fn() callback the bus/devfn of the immediate child of the level where the callback was found, rather than the original bus/devfn where the search started from. This prevents iommu's like POWER8 (and in fact also Q35