Skip to content

Commit

Permalink
powerpc/powernv/pci: Drop VF MPS fixup
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Oliver O'Halloran authored and Michael Ellerman committed May 22, 2022
1 parent ad91f66 commit a5d2803
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions arch/powerpc/platforms/powernv/eeh-powernv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit a5d2803

Please sign in to comment.