1. 22 5月, 2011 2 次提交
  2. 09 2月, 2011 1 次提交
    • J
      PCI: Avoid potential NULL pointer dereference in pci_scan_bridge · 7c867c88
      Jesper Juhl 提交于
      pci_add_new_bus() calls pci_alloc_child_bus() which calls pci_alloc_bus()
      that allocates memory dynamically with kzalloc(). The return value of
      kzalloc() is the pointer that's eventually returned from
      pci_add_new_bus(), so since kzalloc() can fail and return NULL so can
      pci_add_new_bus(). Thus we may end up dereferencing a NULL pointer in
      drivers/pci/probe.c::pci_scan_bridge(). Seems to me we should test for
      this and bail out if it happens rather than crashing.
      Also removed some trailing whitespace that bugged me while looking at
      this.
      Signed-off-by: NJesper Juhl <jj@chaosbits.net>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      7c867c88
  3. 18 10月, 2010 1 次提交
  4. 31 7月, 2010 1 次提交
  5. 20 5月, 2010 1 次提交
  6. 23 4月, 2010 1 次提交
  7. 25 3月, 2010 3 次提交
  8. 27 2月, 2010 1 次提交
    • R
      PM: Allow PCI devices to suspend/resume asynchronously · a1e4d72c
      Rafael J. Wysocki 提交于
      Set power.async_suspend for all PCI devices and PCIe port services,
      so that they can be suspended and resumed in parallel with other
      devices they don't depend on in a known way (i.e. devices which are
      not their parents or children).
      
      This only affects the "regular" suspend and resume stages, which
      means in particular that the restoration of the PCI devices' standard
      configuration registers during resume will still be carried out
      synchronously (at the "early" resume stage).
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      a1e4d72c
  9. 24 2月, 2010 3 次提交
    • B
      PCI: augment bus resource table with a list · 2fe2abf8
      Bjorn Helgaas 提交于
      Previously we used a table of size PCI_BUS_NUM_RESOURCES (16) for resources
      forwarded to a bus by its upstream bridge.  We've increased this size
      several times when the table overflowed.
      
      But there's no good limit on the number of resources because host bridges
      and subtractive decode bridges can forward any number of ranges to their
      secondary buses.
      
      This patch reduces the table to only PCI_BRIDGE_RESOURCE_NUM (4) entries,
      which corresponds to the number of windows a PCI-to-PCI (3) or CardBus (4)
      bridge can positively decode.  Any additional resources, e.g., PCI host
      bridge windows or subtractively-decoded regions, are kept in a list.
      
      I'd prefer a single list rather than this split table/list approach, but
      that requires simultaneous changes to every architecture.  This approach
      only requires immediate changes where we set up (a) host bridges with more
      than four windows and (b) subtractive-decode P2P bridges, and we can
      incrementally change other architectures to use the list.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      2fe2abf8
    • B
      PCI: read bridge windows before filling in subtractive decode resources · 2adf7516
      Bjorn Helgaas 提交于
      No functional change; this fills in the bus subtractive decode resources
      after reading the bridge window information rather than before.  Also,
      print out the subtractive decode resources as we already do for the
      positive decode windows.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      2adf7516
    • B
      PCI: split up pci_read_bridge_bases() · fa27b2d1
      Bjorn Helgaas 提交于
      No functional change; this breaks up pci_read_bridge_bases() into separate
      pieces for the I/O, memory, and prefetchable memory windows, similar to how
      Yinghai recently split up pci_setup_bridge() in 68e84ff3bdc.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      fa27b2d1
  10. 23 2月, 2010 7 次提交
  11. 29 1月, 2010 1 次提交
  12. 05 12月, 2009 1 次提交
    • C
      PCI: add pci_request_acs · 5d990b62
      Chris Wright 提交于
      Commit ae21ee65 "PCI: acs p2p upsteram
      forwarding enabling" doesn't actually enable ACS.
      
      Add a function to pci core to allow an IOMMU to request that ACS
      be enabled.  The existing mechanism of using iommu_found() in the pci
      core to know when ACS should be enabled doesn't actually work due to
      initialization order;  iommu has only been detected not initialized.
      
      Have Intel and AMD IOMMUs request ACS, and Xen does as well during early
      init of dom0.
      
      Cc: Allen Kay <allen.m.kay@intel.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Joerg Roedel <joerg.roedel@amd.com>
      Signed-off-by: NChris Wright <chrisw@sous-sol.org>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      5d990b62
  13. 25 11月, 2009 1 次提交
  14. 07 11月, 2009 1 次提交
  15. 05 11月, 2009 9 次提交
  16. 15 9月, 2009 1 次提交
    • R
      PCI: Clear saved_state after the state has been restored · 4b77b0a2
      Rafael J. Wysocki 提交于
      Some PCI devices fail if their standard configuration registers are
      restored twice in a row.  Prevent this from happening by making
      pci_restore_state() clear the saved_state flag of the device right
      after the device's standard configuration registers have been
      populated with the previously saved values.
      
      Simplify PCI PM callbacks by removing the direct clearing of
      state_saved from them, as it shouldn't be necessary any more (except
      in pci_pm_thaw(), where it has to be cleared, so that the values saved
      during the "freeze" phase of hibernation are not used later by mistake).
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      4b77b0a2
  17. 10 9月, 2009 3 次提交
  18. 17 6月, 2009 1 次提交
  19. 12 6月, 2009 1 次提交