1. 14 Jan, 2014 4 commits
    • Rafael J. Wysocki's avatar
      PCI: Add global pci_lock_rescan_remove() · 9d16947b
      Rafael J. Wysocki authored
      There are multiple PCI device addition and removal code paths that may be
      run concurrently with the generic PCI bus rescan and device removal that
      can be triggered via sysfs.  If that happens, it may lead to multiple
      different, potentially dangerous race conditions.
      
      The most straightforward way to address those problems is to run
      the code in question under the same lock that is used by the
      generic rescan/remove code in pci-sysfs.c.  To prepare for those
      changes, move the definition of the global PCI remove/rescan lock
      to probe.c and provide global wrappers, pci_lock_rescan_remove()
      and pci_unlock_rescan_remove(), allowing drivers to manipulate
      that lock.  Also provide pci_stop_and_remove_bus_device_locked()
      for the callers of pci_stop_and_remove_bus_device() who only need
      to hold the rescan/remove lock around it.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      9d16947b
    • Bjorn Helgaas's avatar
      Merge branch 'pci/ifndefs' into next · a870614a
      Bjorn Helgaas authored
      * pci/ifndefs:
        PCI: Cleanup pci.h whitespace
        PCI: Reorder so actual code comes before stubs
      a870614a
    • Bjorn Helgaas's avatar
      PCI: Cleanup pci.h whitespace · 2ee546c4
      Bjorn Helgaas authored
      Put empty or trivial inline stub functions on one line when they fit.  No
      functional change.
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      2ee546c4
    • Bjorn Helgaas's avatar
      PCI: Reorder so actual code comes before stubs · 4c859804
      Bjorn Helgaas authored
      Consistently use the:
      
          #ifdef CONFIG_PCI_FOO
          int pci_foo(...);
          #else
          static inline int pci_foo(...) { return -1; }
          #endif
      
      pattern, instead of sometimes using "#ifndef CONFIG_PCI_FOO".
      
      No functional change.
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      4c859804
  2. 13 Jan, 2014 9 commits
  3. 10 Jan, 2014 5 commits
    • Stephen Hemminger's avatar
      PCI: Remove unused ID-Based Ordering support · 7c2dd2d7
      Stephen Hemminger authored
      My philosophy is unused code is dead code.  And dead code is subject to bit
      rot and is a likely source of bugs.  Use it or lose it.
      
      This reverts b48d4425 ("PCI: add ID-based ordering enable/disable
      support"), removing these interfaces:
      
          pci_enable_ido()
          pci_disable_ido()
      
      [bhelgaas: split to separate patch, also remove prototypes from pci.h]
      Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      CC: Jesse Barnes <jbarnes@virtuousgeek.org>
      7c2dd2d7
    • Stephen Hemminger's avatar
      PCI: Remove unused Optimized Buffer Flush/Fill support · ecc86356
      Stephen Hemminger authored
      My philosophy is unused code is dead code.  And dead code is subject to bit
      rot and is a likely source of bugs.  Use it or lose it.
      
      This reverts 48a92a81 ("PCI: add OBFF enable/disable support"),
      removing these interfaces:
      
          pci_enable_obff()
          pci_disable_obff()
      
      [bhelgaas: split to separate patch, also remove prototypes from pci.h]
      Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      CC: Jesse Barnes <jbarnes@virtuousgeek.org>
      ecc86356
    • Stephen Hemminger's avatar
      PCI: Remove unused Latency Tolerance Reporting support · 3ea8197e
      Stephen Hemminger authored
      My philosophy is unused code is dead code.  And dead code is subject to bit
      rot and is a likely source of bugs.  Use it or lose it.
      
      This reverts 51c2e0a7 ("PCI: add latency tolerance reporting
      enable/disable support"), removing these interfaces:
      
          pci_enable_ltr()
          pci_disable_ltr()
          pci_set_ltr()
      
      [bhelgaas: split to separate patch, also remove prototypes from pci.h]
      Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      CC: Jesse Barnes <jbarnes@virtuousgeek.org>
      3ea8197e
    • Bjorn Helgaas's avatar
      Merge branch 'pci/resource' into next · 96702be5
      Bjorn Helgaas authored
      * pci/resource:
        PCI: Allocate 64-bit BARs above 4G when possible
        PCI: Enforce bus address limits in resource allocation
        PCI: Split out bridge window override of minimum allocation address
        agp/ati: Use PCI_COMMAND instead of hard-coded 4
        agp/intel: Use CPU physical address, not bus address, for ioremap()
        agp/intel: Use pci_bus_address() to get GTTADR bus address
        agp/intel: Use pci_bus_address() to get MMADR bus address
        agp/intel: Support 64-bit GMADR
        agp/intel: Rename gtt_bus_addr to gtt_phys_addr
        drm/i915: Rename gtt_bus_addr to gtt_phys_addr
        agp: Use pci_resource_start() to get CPU physical address for BAR
        agp: Support 64-bit APBASE
        PCI: Add pci_bus_address() to get bus address of a BAR
        PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev
        PCI: Change pci_bus_region addresses to dma_addr_t
      96702be5
    • Stephen Hemminger's avatar
      PCI: Removed unused parts of Page Request Interface support · b340cacc
      Stephen Hemminger authored
      My philosophy is unused code is dead code.  And dead code is subject to bit
      rot and is a likely source of bugs.  Use it or lose it.
      
      This reverts parts of c320b976 ("PCI: Add implementation for PRI
      capability"), removing these interfaces:
      
          pci_pri_enabled()
          pci_pri_stopped()
          pci_pri_status()
      
      [bhelgaas: split to separate patch]
      Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      CC: Joerg Roedel <joro@8bytes.org>
      b340cacc
  4. 08 Jan, 2014 4 commits
  5. 07 Jan, 2014 13 commits
  6. 04 Jan, 2014 4 commits
  7. 03 Jan, 2014 1 commit