1. 03 1月, 2013 2 次提交
  2. 01 12月, 2012 1 次提交
    • J
      s390/pci: PCI hotplug support via SCLP · 7441b062
      Jan Glauber 提交于
      Add SCLP PCI configure/deconfigure and implement a PCI hotplug
      controller (s390_pci_hpc). The hotplug controller creates a slot
      for every PCI function in stand-by or configured state. The PCI
      functions are named after the PCI function ID (fid). By writing to
      the power attribute in /sys/bus/pci/slots/<fid>/power the PCI function
      is moved to stand-by or configured state. If moved to the configured
      state the device is automatically scanned by the s390 PCI layer.
      Signed-off-by: NJan Glauber <jang@linux.vnet.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      7441b062
  3. 29 11月, 2012 1 次提交
  4. 25 9月, 2012 2 次提交
    • J
      PCI: acpiphp: Handle PCIe ports without native hotplug capability · 5ba113f7
      Jiang Liu 提交于
      Commit 0d52f54e (PCI / ACPI: Make acpiphp
      ignore root bridges using PCIe native hotplug) added code that made the
      acpiphp driver completely ignore PCIe root complexes for which the kernel
      had been granted control of the native PCIe hotplug feature by the BIOS
      through _OSC. Later commit 619a5182
      "PCI hotplug: Always allow acpiphp to handle non-PCIe bridges" relaxed
      the constraints to allow acpiphp driver handle non-PCIe bridges under
      such a complex.  The constraint needs to be relaxed further to allow
      acpiphp driver to handle PCIe ports without native PCIe hotplug capability.
      
      Some MR-IOV switch chipsets, such PLX8696, support multiple virtual PCIe
      switches and may migrate downstream ports among virtual switches.  To
      migrate a downstream port from the source virtual switch to the target, the
      port needs to be hot-removed from the source and hot-added into the target.
      The pciehp driver can't be used here because there are no slots within the
      virtual PCIe switch.  So acpiphp driver is used to support downstream port
      migration.  A typical configuration is as below:
      
          [Root without native PCIe HP]
              [Upstream port of vswitch without native PCIe HP]
                  [Downstream port of vswitch with native PCIe HP]
                      [PCIe endpoint]
      
      Here acpiphp driver will be used to handle root ports and upstream port
      in the virtual switch, and pciehp driver will be used to handle downstream
      ports in the virtual switch.
      Signed-off-by: NJiang Liu <liuj97@gmail.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Acked-by: NRafael J. Wysocki <rjw@sisk.pl>
      5ba113f7
    • T
      PCI/ACPI: Pass acpi_pci_root to acpi_pci_drivers' add/remove interface · 55bfe3c0
      Taku Izumi 提交于
      This patch changes .add/.remove interfaces of acpi_pci_driver.
      In the current implementation acpi_handle is passed as a parameter
      of .add/.remove interface.  However, the acpi_pci_root structure
      contains more useful information than just the acpi_handle.  This
      enables us to avoid some useless lookups in each acpi_pci_driver.
      
      Note: This changes interfaces used by acpi_pci_register_driver(), an
      exported symbol.  This patch updates all the in-kernel users, but any
      out-of-kernel acpi_pci_register_driver() users will need updates.
      
      [bhelgaas: changelog]
      Signed-off-by: NTaku Izumi <izumi.taku@jp.fujitsu.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      55bfe3c0
  5. 18 9月, 2012 1 次提交
  6. 13 9月, 2012 1 次提交
  7. 11 9月, 2012 1 次提交
  8. 08 9月, 2012 1 次提交
  9. 25 8月, 2012 1 次提交
    • B
      PCI: Remove the fakephp driver · c2b5acc3
      Bjorn Helgaas 提交于
      The fakephp driver was scheduled for removal in 2011.
      
      Fakephp presented /sys/bus/pci/slots/.../power files for every PCI
      function.  Writing "0" to one of these files logically removed the device
      from the system.  The PCI core now provides the same functionality with
      /sys/bus/pci/devices/.../remove.
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      c2b5acc3
  10. 24 8月, 2012 2 次提交
  11. 23 8月, 2012 2 次提交
  12. 18 8月, 2012 1 次提交
  13. 24 7月, 2012 1 次提交
  14. 16 7月, 2012 1 次提交
    • J
      PCI: hotplug: ensure a consistent return value in error case · 83d05710
      Julia Lawall 提交于
      Typically, the return value desired for the failure of a function with an
      integer return value is a negative integer.  In these cases, the return
      value is sometimes a negative integer and sometimes 0, due to a subsequent
      initialization of the return variable within the loop.
      
      A simplified version of the semantic match that finds this problem is:
      (http://coccinelle.lip6.fr/)
      
      //<smpl>
      @r exists@
      identifier ret;
      position p;
      constant C;
      expression e1,e3,e4;
      statement S;
      @@
      
      ret = -C
      ... when != ret = e3
          when any
      if@p (...) S
      ... when any
      if (\(ret != 0\|ret < 0\|ret > 0\) || ...) { ... return ...; }
      ... when != ret = e3
          when any
      *if@p (...)
      {
        ... when != ret = e4
        return ret;
      }
      //</smpl>
      
      [bhelgaas: squashed into one patch]
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      83d05710
  15. 13 7月, 2012 1 次提交
  16. 11 7月, 2012 2 次提交
  17. 21 6月, 2012 2 次提交
  18. 14 6月, 2012 14 次提交
  19. 28 2月, 2012 2 次提交
  20. 15 2月, 2012 1 次提交