cmd: pci: Add command to set MPS of all PCIe devices
authorStephen Carlson <stcarlso@linux.microsoft.com>
Fri, 10 Mar 2023 19:07:13 +0000 (11:07 -0800)
committerTom Rini <trini@konsulko.com>
Thu, 30 Mar 2023 19:09:59 +0000 (15:09 -0400)
commit59b1c9be01934222cf773b35de7c8d086dabaef6
treef56283a9ea04afe388987fb53faf873336bb6d84
parent19213d7a65e9e3f8cfd0852599170636c894169e
cmd: pci: Add command to set MPS of all PCIe devices

Enable tuning of the PCI Express MPS (Maximum Payload Size) of
each device. The Maximum Read Request Size is not altered.

The SAFE method uses the largest MPS value supported by all devices in the
system for each device. This method is the same algorithm as used by Linux
pci=pcie_bus_safe.

The PEER2PEER method sets all devices to the minimal (128 byte) MPS, which
allows hot plug of devices later that might only support the minimum size,
and ensures compatibility of DMA between two devices on the bus.

Signed-off-by: Stephen Carlson <stcarlso@linux.microsoft.com>
cmd/Kconfig
cmd/Makefile
cmd/pci_mps.c [new file with mode: 0644]
include/pci.h