]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
powerpc/powernv/pci: Drop VF MPS fixup
authorOliver O'Halloran <oohall@gmail.com>
Wed, 2 Sep 2020 03:51:59 +0000 (13:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 May 2022 05:59:54 +0000 (15:59 +1000)
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
arch/powerpc/platforms/powernv/eeh-powernv.c

index 7c913187ab4aa4f7023205a52512302fa631f227..a83cb679dd59f5f72c1237077a76119c55bba0bc 100644 (file)
@@ -1641,24 +1641,6 @@ static struct eeh_ops pnv_eeh_ops = {
        .notify_resume          = NULL
 };
 
-#ifdef CONFIG_PCI_IOV
-static void pnv_pci_fixup_vf_mps(struct pci_dev *pdev)
-{
-       struct pci_dn *pdn = pci_get_pdn(pdev);
-       int parent_mps;
-
-       if (!pdev->is_virtfn)
-               return;
-
-       /* Synchronize MPS for VF and PF */
-       parent_mps = pcie_get_mps(pdev->physfn);
-       if ((128 << pdev->pcie_mpss) >= parent_mps)
-               pcie_set_mps(pdev, parent_mps);
-       pdn->mps = pcie_get_mps(pdev);
-}
-DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pnv_pci_fixup_vf_mps);
-#endif /* CONFIG_PCI_IOV */
-
 /**
  * eeh_powernv_init - Register platform dependent EEH operations
  *