]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Program MPS for RCiEP devices
authorAshok Raj <ashok.raj@intel.com>
Fri, 27 Mar 2020 21:16:15 +0000 (14:16 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 14 May 2020 23:26:53 +0000 (18:26 -0500)
commit02a734d7f1727badd1356aec957d9f821fa04c15
treea405e395550788b5e68f4eb3b6f851b7ac76ae9f
parentd2842108e123a9dfe6652de0542775546f52ebdc
PCI: Program MPS for RCiEP devices

Root Complex Integrated Endpoints (RCiEPs) do not have an upstream bridge,
so pci_configure_mps() previously ignored them, which may result in reduced
performance.

Instead, program the Max_Payload_Size of RCiEPs to the maximum supported
value (unless it is limited for the PCIE_BUS_PEER2PEER case).  This also
affects the subsequent programming of Max_Read_Request_Size because Linux
programs MRRS based on the MPS value.

Fixes: 97fa9d9b6173 ("PCI: Move MPS configuration check to pci_configure_device()")
Link: https://lore.kernel.org/r/1585343775-4019-1-git-send-email-ashok.raj@intel.com
Tested-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org
drivers/pci/probe.c