Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Oliver O'Halloran and committed by
Michael Ellerman
a5d28039 ad91f66f

-18
-18
arch/powerpc/platforms/powernv/eeh-powernv.c
··· 1641 1641 .notify_resume = NULL 1642 1642 }; 1643 1643 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 - 1662 1644 /** 1663 1645 * eeh_powernv_init - Register platform dependent EEH operations 1664 1646 *