PCI/VMD: Configure MPS settings before adding devices
authorJon Derrick <jonathan.derrick@intel.com>
Thu, 13 Dec 2018 16:23:42 +0000 (09:23 -0700)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 30 Jan 2019 11:00:04 +0000 (11:00 +0000)
commit0294951030eb8e7d808d7f151a2cf0a2ef1afb64
tree70ac5c515267dbe235f17a1e0188a3a3b1d6127a
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
PCI/VMD: Configure MPS settings before adding devices

In order to provide the most performance and/or compatible settings,
ensure VMD root buses observe the pcie bus tuning settings by
configuring those settings prior to adding the devices to the pcie tree.

This patch open-codes pci_rescan_bus() and configures the buses prior to
adding devices and attaching drivers.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
drivers/pci/controller/vmd.c