]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit08607afba64cc7a14d22b8aa2837d00f1d877d83
treec56b0d782a094c9d18a014a268b5f10a3cbba1d8
parent84953f969bd198b342330b4867856d228260c96e
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