aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pci.h
diff options
context:
space:
mode:
authorShawn Anastasio <shawn@anastas.io>2019-10-28 19:54:23 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2020-01-06 16:25:28 +1100
commit30d87ef8b38d471ab5c0f1226926ebd856da8647 (patch)
tree802ed763058ddab208230461e00070ce3772fe09 /arch/powerpc/include/asm/pci.h
parentpowerpc/powernv/iov: Ensure the pdn for VFs always contains a valid PE number (diff)
downloadlinux-dev-30d87ef8b38d471ab5c0f1226926ebd856da8647.tar.xz
linux-dev-30d87ef8b38d471ab5c0f1226926ebd856da8647.zip
powerpc/pci: Fix pcibios_setup_device() ordering
Move PCI device setup from pcibios_add_device() and pcibios_fixup_bus() to pcibios_bus_add_device(). This ensures that platform-specific DMA and IOMMU setup occurs after the device has been registered in sysfs, which is a requirement for IOMMU group assignment to work This fixes IOMMU group assignment for hotplugged devices on pseries, where the existing behavior results in IOMMU assignment before registration. Thanks to Lukas Wunner <lukas@wunner.de> for the suggestion. Signed-off-by: Shawn Anastasio <shawn@anastas.io> Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191028085424.12006-2-oohall@gmail.com
Diffstat (limited to 'arch/powerpc/include/asm/pci.h')
0 files changed, 0 insertions, 0 deletions