• Yinghai Lu's avatar
    powerpc/PCI: Clip bridge windows to fit in upstream windows · 3ebfe46a
    Yinghai Lu authored
    Every PCI-PCI bridge window should fit inside an upstream bridge window
    because orphaned address space is unreachable from the primary side of the
    upstream bridge.  If we inherit invalid bridge windows that overlap an
    upstream window from firmware, clip them to fit and update the bridge
    accordingly.
    
    [bhelgaas: changelog]
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=85491Reported-by: default avatarMarek Kordik <kordikmarek@gmail.com>
    Fixes: 5b285415 ("PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resources")
    Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
    Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
    CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    CC: Paul Mackerras <paulus@samba.org>
    CC: Michael Ellerman <mpe@ellerman.id.au>
    CC: Gavin Shan <gwshan@linux.vnet.ibm.com>
    CC: Anton Blanchard <anton@samba.org>
    CC: Sebastian Ott <sebott@linux.vnet.ibm.com>
    CC: Wei Yang <weiyang@linux.vnet.ibm.com>
    CC: Andrew Murray <amurray@embedded-bits.co.uk>
    CC: linuxppc-dev@lists.ozlabs.org
    3ebfe46a
pci-common.c 46.5 KB