[PATCH v3 0/2] Disable VF's memory space on updating IOV BARs
Bjorn Helgaas
helgaas at kernel.org
Thu Nov 24 10:49:10 AEDT 2016
On Wed, Oct 26, 2016 at 12:15:34PM +1100, Gavin Shan wrote:
> This moves pcibios_sriov_enable() to the point before VF and VF BARs
> are enabled on PowerNV platform. Also, pci_update_resource() is used
> to update IOV BARs on PowerNV platform, the PF might have been functional
> when the function is called. We shouldn't disable PF's memory decoding
> at that point. Instead, the VF's memory space should be disabled.
>
> Changelog
> =========
> v3:
> * Disable VF's memory space when IOV BARs are updated in
> pcibios_sriov_enable().
> v2:
> * Added one patch calling pcibios_sriov_enable() before the VF
> and VF BARs are enabled.
>
> Gavin Shan (2):
> PCI: Call pcibios_sriov_enable() before IOV BARs are enabled
> PCI: Disable VF's memory space on updating IOV BAR in
> pci_update_resource()
>
> drivers/pci/iov.c | 14 +++++++-------
> drivers/pci/setup-res.c | 28 ++++++++++++++++++++--------
> 2 files changed, 27 insertions(+), 15 deletions(-)
I applied these to pci/virtualization for v4.10. Thanks for your
patience, Gavin.
More information about the Linuxppc-dev
mailing list