1. 08 6月, 2018 1 次提交
  2. 06 6月, 2018 2 次提交
  3. 05 6月, 2018 12 次提交
  4. 03 6月, 2018 6 次提交
  5. 02 6月, 2018 8 次提交
  6. 31 5月, 2018 7 次提交
  7. 26 5月, 2018 2 次提交
  8. 25 5月, 2018 2 次提交
    • J
      PCI/IOV: Allow PF drivers to limit total_VFs to 0 · 8d85a7a4
      Jakub Kicinski 提交于
      Some SR-IOV PF drivers implement .sriov_configure(), which allows
      user-space to enable VFs by writing the desired number of VFs to the sysfs
      "sriov_numvfs" file (see sriov_numvfs_store()).
      
      The PCI core limits the number of VFs to the TotalVFs advertised by the
      device in its SR-IOV capability.  The PF driver can limit the number of VFs
      to even fewer (it may have pre-allocated data structures or knowledge of
      device limitations) by calling pci_sriov_set_totalvfs(), but previously it
      could not limit the VFs to 0.
      
      Change pci_sriov_get_totalvfs() so it always respects the VF limit imposed
      by the PF driver, even if the limit is 0.
      
      This sequence:
      
        pci_sriov_set_totalvfs(dev, 0);
        x = pci_sriov_get_totalvfs(dev);
      
      previously set "x" to TotalVFs from the SR-IOV capability.  Now it will set
      "x" to 0.
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      [bhelgaas: split to separate patch]
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      8d85a7a4
    • D
      PCI: hv: Do not wait forever on a device that has disappeared · c3635da2
      Dexuan Cui 提交于
      Before the guest finishes the device initialization, the device can be
      removed anytime by the host, and after that the host won't respond to
      the guest's request, so the guest should be prepared to handle this
      case.
      
      Add a polling mechanism to detect device presence.
      Signed-off-by: NDexuan Cui <decui@microsoft.com>
      [lorenzo.pieralisi@arm.com: edited commit log]
      Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Reviewed-by: NHaiyang Zhang <haiyangz@microsoft.com>
      Cc: Stephen Hemminger <sthemmin@microsoft.com>
      Cc: K. Y. Srinivasan <kys@microsoft.com>
      c3635da2