Re: [PATCH v2 5/7] PCI: Wait 1 second between disabling VFs and clearing NumVFs

2015-11-02 Thread Wei Yang
On Thu, Oct 29, 2015 at 05:23:22PM -0500, Bjorn Helgaas wrote: >From: Alexander Duyck > >Per sec 3.3.3.1 of the SR-IOV spec, r1.1, we must allow 1.0s after clearing >VF Enable before reading any field in the SR-IOV Extended Capability. > >Wait 1 second before calling pci_iov_set_numvfs(), which re

Re: [PATCH v2 5/7] PCI: Wait 1 second between disabling VFs and clearing NumVFs

2015-11-02 Thread Wei Yang
On Mon, Nov 02, 2015 at 07:46:24AM -0800, Alexander Duyck wrote: >On 11/02/2015 12:33 AM, Wei Yang wrote: >>On Fri, Oct 30, 2015 at 08:57:17AM -0700, Alexander Duyck wrote: >>>On 10/29/2015 11:00 PM, ethan zhao wrote: Wei, On 2015/10/30 13:14, Wei Yang wrote: >On Thu, Oct 29, 2015

Re: [PATCH v2 5/7] PCI: Wait 1 second between disabling VFs and clearing NumVFs

2015-11-02 Thread Alexander Duyck
On 11/02/2015 12:33 AM, Wei Yang wrote: On Fri, Oct 30, 2015 at 08:57:17AM -0700, Alexander Duyck wrote: On 10/29/2015 11:00 PM, ethan zhao wrote: Wei, On 2015/10/30 13:14, Wei Yang wrote: On Thu, Oct 29, 2015 at 05:23:22PM -0500, Bjorn Helgaas wrote: From: Alexander Duyck Per sec 3.3.3.1

Re: [PATCH v2 5/7] PCI: Wait 1 second between disabling VFs and clearing NumVFs

2015-11-02 Thread Wei Yang
On Fri, Oct 30, 2015 at 08:57:17AM -0700, Alexander Duyck wrote: >On 10/29/2015 11:00 PM, ethan zhao wrote: >>Wei, >> >>On 2015/10/30 13:14, Wei Yang wrote: >>>On Thu, Oct 29, 2015 at 05:23:22PM -0500, Bjorn Helgaas wrote: From: Alexander Duyck Per sec 3.3.3.1 of the SR-IOV spec, r1.1

Re: [PATCH v2 5/7] PCI: Wait 1 second between disabling VFs and clearing NumVFs

2015-10-30 Thread Alexander Duyck
On 10/29/2015 11:00 PM, ethan zhao wrote: Wei, On 2015/10/30 13:14, Wei Yang wrote: On Thu, Oct 29, 2015 at 05:23:22PM -0500, Bjorn Helgaas wrote: From: Alexander Duyck Per sec 3.3.3.1 of the SR-IOV spec, r1.1, we must allow 1.0s after clearing VF Enable before reading any field in the SR-

Re: [PATCH v2 5/7] PCI: Wait 1 second between disabling VFs and clearing NumVFs

2015-10-29 Thread ethan zhao
Wei, On 2015/10/30 13:14, Wei Yang wrote: On Thu, Oct 29, 2015 at 05:23:22PM -0500, Bjorn Helgaas wrote: From: Alexander Duyck Per sec 3.3.3.1 of the SR-IOV spec, r1.1, we must allow 1.0s after clearing VF Enable before reading any field in the SR-IOV Extended Capability. Wait 1 second befor

Re: [PATCH v2 5/7] PCI: Wait 1 second between disabling VFs and clearing NumVFs

2015-10-29 Thread Wei Yang
On Thu, Oct 29, 2015 at 05:23:22PM -0500, Bjorn Helgaas wrote: >From: Alexander Duyck > >Per sec 3.3.3.1 of the SR-IOV spec, r1.1, we must allow 1.0s after clearing >VF Enable before reading any field in the SR-IOV Extended Capability. > >Wait 1 second before calling pci_iov_set_numvfs(), which re

[PATCH v2 5/7] PCI: Wait 1 second between disabling VFs and clearing NumVFs

2015-10-29 Thread Bjorn Helgaas
From: Alexander Duyck Per sec 3.3.3.1 of the SR-IOV spec, r1.1, we must allow 1.0s after clearing VF Enable before reading any field in the SR-IOV Extended Capability. Wait 1 second before calling pci_iov_set_numvfs(), which reads PCI_SRIOV_VF_OFFSET and PCI_SRIOV_VF_STRIDE after it sets PCI_SRI