diff options
author | 2016-10-26 12:15:35 +1100 | |
---|---|---|
committer | 2016-11-23 17:21:42 -0600 | |
commit | f40ec3c748c6912f6266c56a7f7992de61b255ed (patch) | |
tree | e1dc6271fa4d4f61af0b413a995ddc1e8e8c8c2f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | PCI: Support INTx masking on ConnectX-4 with firmware x.14.1100+ (diff) | |
download | linux-dev-f40ec3c748c6912f6266c56a7f7992de61b255ed.tar.xz linux-dev-f40ec3c748c6912f6266c56a7f7992de61b255ed.zip |
PCI: Do any VF BAR updates before enabling the BARs
Previously we enabled VFs and enable their memory space before calling
pcibios_sriov_enable(). But pcibios_sriov_enable() may update the VF BARs:
for example, on PPC PowerNV we may change them to manage the association of
VFs to PEs.
Because 64-bit BARs cannot be updated atomically, it's unsafe to update
them while they're enabled. The half-updated state may conflict with other
devices in the system.
Call pcibios_sriov_enable() before enabling the VFs so any BAR updates
happen while the VF BARs are disabled.
[bhelgaas: changelog]
Tested-by: Carol Soto <clsoto@us.ibm.com>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions