powerpc/powernv: Override pcibios_default_alignment() to force PCI devices to be...
authorYongji Xie <elohimes@gmail.com>
Mon, 10 Apr 2017 11:58:13 +0000 (19:58 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 19 Apr 2017 17:51:26 +0000 (12:51 -0500)
commit382746376993cfa6d6c4e546c67384201c0f3a82
treef51dc2c2c9130559dd400eeed5c08304c0c371dc
parent0a701aa6378496ea54fb065c68b41d918e372e94
powerpc/powernv: Override pcibios_default_alignment() to force PCI devices to be page aligned

Override pcibios_default_alignment() to set default alignment to PAGE_SIZE
for all PCI devices on PowerNV platform.  Thus sub-page BARs would not
share a page and could be mapped into guest when VFIO passthrough them.

Signed-off-by: Yongji Xie <elohimes@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/powerpc/include/asm/machdep.h
arch/powerpc/kernel/pci-common.c
arch/powerpc/platforms/powernv/pci-ioda.c