]> git.baikalelectronics.ru Git - kernel.git/commit
powernv: Fix VFIO support with PHB3
authorThadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Mon, 9 Dec 2013 16:41:01 +0000 (14:41 -0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Dec 2013 00:28:38 +0000 (11:28 +1100)
commit4478b7c19b708e4f19b90b1ac1f314a0af0cbc7d
treec56b0d782a094c9d18a014a268b5f10a3cbba1d8
parent8fd320b9ff03b926727fd57513272230059c2c6d
powernv: Fix VFIO support with PHB3

I have recently found out that no iommu_groups could be found under
/sys/ on a P8. That prevents PCI passthrough from working.

During my investigation, I found out there seems to be a missing
iommu_register_group for PHB3. The following patch seems to fix the
problem. After applying it, I see iommu_groups under
/sys/kernel/iommu_groups/, and can also bind vfio-pci to an adapter,
which gives me a device at /dev/vfio/.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/pci-ioda.c