Skip to content

Commit a5d2803

Browse files
oohalmpe
authored andcommitted
powerpc/powernv/pci: Drop VF MPS fixup
The MPS field in the VF config space is marked as reserved in current versions of the SR-IOV spec. In other words, this fixup doesn't do anything. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200902035159.1762596-1-oohall@gmail.com
1 parent ad91f66 commit a5d2803

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

arch/powerpc/platforms/powernv/eeh-powernv.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,24 +1641,6 @@ static struct eeh_ops pnv_eeh_ops = {
16411641
.notify_resume = NULL
16421642
};
16431643

1644-
#ifdef CONFIG_PCI_IOV
1645-
static void pnv_pci_fixup_vf_mps(struct pci_dev *pdev)
1646-
{
1647-
struct pci_dn *pdn = pci_get_pdn(pdev);
1648-
int parent_mps;
1649-
1650-
if (!pdev->is_virtfn)
1651-
return;
1652-
1653-
/* Synchronize MPS for VF and PF */
1654-
parent_mps = pcie_get_mps(pdev->physfn);
1655-
if ((128 << pdev->pcie_mpss) >= parent_mps)
1656-
pcie_set_mps(pdev, parent_mps);
1657-
pdn->mps = pcie_get_mps(pdev);
1658-
}
1659-
DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pnv_pci_fixup_vf_mps);
1660-
#endif /* CONFIG_PCI_IOV */
1661-
16621644
/**
16631645
* eeh_powernv_init - Register platform dependent EEH operations
16641646
*

0 commit comments

Comments
 (0)