Re: [PATCH v2 7/7] PCI: Set NumVFs before computing how many buses VFs require

2015-11-02 Thread Wei Yang
On Mon, Nov 02, 2015 at 07:39:48AM -0800, Alexander Duyck wrote: >On 11/02/2015 12:27 AM, Wei Yang wrote: >>On Fri, Oct 30, 2015 at 09:03:54AM -0700, Alexander Duyck wrote: >>>On 10/29/2015 10:22 PM, Wei Yang wrote: On Thu, Oct 29, 2015 at 05:23:36PM -0500, Bjorn Helgaas wrote: >From: Alexa

Re: [PATCH v2 7/7] PCI: Set NumVFs before computing how many buses VFs require

2015-11-02 Thread Alexander Duyck
On 11/02/2015 12:27 AM, Wei Yang wrote: On Fri, Oct 30, 2015 at 09:03:54AM -0700, Alexander Duyck wrote: On 10/29/2015 10:22 PM, Wei Yang wrote: On Thu, Oct 29, 2015 at 05:23:36PM -0500, Bjorn Helgaas wrote: From: Alexander Duyck VF bus numbers depend on the First VF Offset and VF Stride, an

Re: [PATCH v2 7/7] PCI: Set NumVFs before computing how many buses VFs require

2015-11-02 Thread Wei Yang
On Fri, Oct 30, 2015 at 09:03:54AM -0700, Alexander Duyck wrote: >On 10/29/2015 10:22 PM, Wei Yang wrote: >>On Thu, Oct 29, 2015 at 05:23:36PM -0500, Bjorn Helgaas wrote: >>>From: Alexander Duyck >>> >>>VF bus numbers depend on the First VF Offset and VF Stride, and per >>>sections 3.3.9 and 3.3.1

Re: [PATCH v2 7/7] PCI: Set NumVFs before computing how many buses VFs require

2015-10-30 Thread Alexander Duyck
On 10/29/2015 10:22 PM, Wei Yang wrote: On Thu, Oct 29, 2015 at 05:23:36PM -0500, Bjorn Helgaas wrote: From: Alexander Duyck VF bus numbers depend on the First VF Offset and VF Stride, and per sections 3.3.9 and 3.3.10 of the SR-IOV spec r1.1, these depend on the NumVF value. Wait until after

Re: [PATCH v2 7/7] PCI: Set NumVFs before computing how many buses VFs require

2015-10-29 Thread Wei Yang
On Thu, Oct 29, 2015 at 05:23:36PM -0500, Bjorn Helgaas wrote: >From: Alexander Duyck > >VF bus numbers depend on the First VF Offset and VF Stride, and per >sections 3.3.9 and 3.3.10 of the SR-IOV spec r1.1, these depend on the >NumVF value. > >Wait until after we set NumVFs to compute and valida

[PATCH v2 7/7] PCI: Set NumVFs before computing how many buses VFs require

2015-10-29 Thread Bjorn Helgaas
From: Alexander Duyck VF bus numbers depend on the First VF Offset and VF Stride, and per sections 3.3.9 and 3.3.10 of the SR-IOV spec r1.1, these depend on the NumVF value. Wait until after we set NumVFs to compute and validate the bus number of the last VF. [bhelgaas: changelog, add spec refe