Re: [PATCH V11 02/17] PCI/IOV: add VF enable/disable hook
From: Wei Yang <hidden>
Date: 2015-02-10 01:36:29
Also in:
linux-pci
From: Wei Yang <hidden>
Date: 2015-02-10 01:36:29
Also in:
linux-pci
On Tue, Feb 10, 2015 at 11:26:19AM +1100, Benjamin Herrenschmidt wrote:
On Thu, 2015-01-15 at 10:27 +0800, Wei Yang wrote:quoted
+ if ((retval = pcibios_sriov_enable(dev, initial))) { + dev_err(&dev->dev, "Failure %d from pcibios_sriov_setup()\n", + retval); + return retval; + } +Don't we want pcibios_sriov_enable() to be able to crop the number of VFs or do we think any resource limits have been applied already ?
The second parameter "initial" is the number of VFs will be enabled. Arch dependent function will check the resources for these number of VFs. Do I catch your question correctly?
Ben.
-- Richard Yang Help you, Help me