1. 31 10月, 2015 2 次提交
  2. 30 10月, 2015 3 次提交
  3. 31 3月, 2015 9 次提交
  4. 20 11月, 2014 1 次提交
  5. 17 9月, 2014 1 次提交
  6. 30 5月, 2014 1 次提交
  7. 20 2月, 2014 1 次提交
  8. 11 1月, 2014 1 次提交
  9. 23 11月, 2013 1 次提交
    • E
      PCI: Clear NumVFs when disabling SR-IOV in sriov_init() · 045cc22e
      ethan.zhao 提交于
      When SR-IOV is disabled (VF Enable is cleared), NumVFs is not very useful,
      so this patch clears it out to prevent confusing lspci output like that
      below.  We already clear NumVFs in sriov_disable(), and this does the same
      when we disable SR-IOV as part of parsing the SR-IOV capability.
      
        $ lspci -vvv -s 13:00.0
        13:00.0 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01)
            Capabilities: [160 v1] Single Root I/O Virtualization (SR-IOV)
                IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy+
                Initial VFs: 64, Total VFs: 64, Number of VFs: 64, ...
      
      [bhelgaas: changelog]
      Signed-off-by: Nethan.zhao <ethan.kernel@gmail.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      045cc22e
  10. 15 11月, 2013 1 次提交
  11. 01 8月, 2013 1 次提交
  12. 31 7月, 2013 1 次提交
  13. 26 7月, 2013 1 次提交
  14. 15 6月, 2013 2 次提交
  15. 06 6月, 2013 1 次提交
    • G
      PCI: Convert alloc_pci_dev(void) to pci_alloc_dev(bus) · 8b1fce04
      Gu Zheng 提交于
      Use the new pci_alloc_dev(bus) to replace the existing using of
      alloc_pci_dev(void).
      
      [bhelgaas: drop pci_bus ref later in pci_release_dev()]
      Signed-off-by: NGu Zheng <guz.fnst@cn.fujitsu.com>
      Signed-off-by: NJiang Liu <jiang.liu@huawei.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Neela Syam Kolli <megaraidlinux@lsi.com>
      Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      8b1fce04
  16. 01 6月, 2013 1 次提交
    • X
      PCI: Finish SR-IOV VF setup before adding the device · fbf33f51
      Xudong Hao 提交于
      Commit 4f535093 "PCI: Put pci_dev in device tree as early as possible"
      moves device registering from pci_bus_add_devices() to pci_device_add().
      That causes problems for virtual functions because device_add(&virtfn->dev)
      is called before setting the virtfn->is_virtfn flag, which then causes Xen
      to report PCI virtual functions as PCI physical functions.
      
      Fix it by setting virtfn->is_virtfn before calling pci_device_add().
      
      [Jiang Liu]: Move the setting of virtfn->is_virtfn ahead further for better
      readability and modify changelog.
      Signed-off-by: NXudong Hao <xudong.hao@intel.com>
      Signed-off-by: NJiang Liu <jiang.liu@huawei.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Cc: stable@vger.kernel.org	# v3.9+
      fbf33f51
  17. 25 4月, 2013 1 次提交
  18. 02 2月, 2013 1 次提交
  19. 26 1月, 2013 1 次提交
    • Y
      PCI: Put pci_dev in device tree as early as possible · 4f535093
      Yinghai Lu 提交于
      We want to put pci_dev structs in the device tree as soon as possible so
      for_each_pci_dev() iteration will not miss them, but driver attachment
      needs to be delayed until after pci_assign_unassigned_resources() to make
      sure all devices have resources assigned first.
      
      This patch moves device registering from pci_bus_add_devices() to
      pci_device_add(), which happens earlier, leaving driver attachment in
      pci_bus_add_devices().
      
      It also removes unattached child bus handling in pci_bus_add_devices().
      That's not needed because child bus via pci_add_new_bus() is already
      in parent bus children list.
      
      [bhelgaas: changelog]
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Acked-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      4f535093
  20. 11 1月, 2013 1 次提交
  21. 10 11月, 2012 3 次提交
  22. 21 9月, 2012 1 次提交
    • B
      Revert "PCI: Use hotplug-safe pci_get_domain_bus_and_slot()" · 94bb3464
      Bjorn Helgaas 提交于
      This reverts commit 433efd22.
      
      When we remove an SR-IOV device, we have this call chain:
      
          driver .remove() method
              pci_disable_sriov()
                  sriov_disable()
                      virtfn_remove()
                          pci_get_domain_bus_and_slot()
      
      sriov_disable() is only called for PFs, not for VFs.  When it's called
      for a PF, it loops through all the VFs and calls virtfn_remove() for
      each.  But we stop and remove VFs before PFs, so by the time we get
      to virtfn_remove(), the VFs have already been stopped and deleted
      from the device list.  Now pci_get_domain_bus_and_slot(), which uses
      bus_find_device() and relies on that device list, doesn't find the
      VFs, so the VF references aren't released correctly.
      Reported-by: NYinghai Lu <yinghai@kernel.org>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      94bb3464
  23. 13 9月, 2012 1 次提交
  24. 23 8月, 2012 1 次提交
  25. 14 6月, 2012 2 次提交