1. 06 6月, 2018 2 次提交
  2. 05 6月, 2018 12 次提交
  3. 03 6月, 2018 6 次提交
  4. 02 6月, 2018 8 次提交
  5. 31 5月, 2018 7 次提交
  6. 26 5月, 2018 2 次提交
  7. 25 5月, 2018 3 次提交
    • 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
    • M
      PCI: rcar: Remove IRQ mappings in rcar_pcie_enable_msi() failpath · 0bbf6b92
      Marek Vasut 提交于
      The rcar_pcie_enable_msi() creates IRQ mappings using irq_create_mapping()
      before requesting the IRQs using devm_request_irq(). If devm_request_irq()
      fails for some reason, rcar_pcie_enable_msi() does not remove the mapping.
      
      Pull out the code for disposing IRQ mappings from rcar_pcie_teardown_msi()
      into a separate function and call it from both rcar_pcie_teardown_msi()
      and rcar_pcie_enable_msi() failpath to remove the mappings correctly.
      Reported-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: Phil Edworthy <phil.edworthy@renesas.com>
      Cc: Simon Horman <horms+renesas@verge.net.au>
      Cc: Wolfram Sang <wsa@the-dreams.de>
      Cc: linux-renesas-soc@vger.kernel.org
      0bbf6b92