• Gavin Shan's avatar
    powerpc/powernv: Reserve M64 PEs based on BARs · 96a2f92b
    Gavin Shan authored
    On PHB3, some PEs might be reserved in advance to reflect the M64
    segments consumed by those PEs. We're reserving PEs based on the
    M64 window of root port, which might contain VF BAR. The PEs for
    VFs are allocated dynamically, not reserved based on the consumed
    M64 segments. So the M64 window of root port isn't reliable for
    the task. Instead, we go through M64 BARs (VF BARs excluded) of
    PCI devices under the specified root bus and reserve PEs accordingly,
    as the patch does.
    Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    96a2f92b
pci.h 6.8 KB