1. 28 2月, 2012 1 次提交
  2. 01 11月, 2011 1 次提交
  3. 08 6月, 2011 1 次提交
    • B
      pci/of: Match PCI devices to OF nodes dynamically · 98d9f30c
      Benjamin Herrenschmidt 提交于
      powerpc has two different ways of matching PCI devices to their
      corresponding OF node (if any) for historical reasons. The ppc64 one
      does a scan looking for matching bus/dev/fn, while the ppc32 one does a
      scan looking only for matching dev/fn on each level in order to be
      agnostic to busses being renumbered (which Linux does on some
      platforms).
      
      This removes both and instead moves the matching code to the PCI core
      itself. It's the most logical place to do it: when a pci_dev is created,
      we know the parent and thus can do a single level scan for the matching
      device_node (if any).
      
      The benefit is that all archs now get the matching for free. There's one
      hook the arch might want to provide to match a PHB bus to its device
      node. A default weak implementation is provided that looks for the
      parent device device node, but it's not entirely reliable on powerpc for
      various reasons so powerpc provides its own.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: NMichal Simek <monstr@monstr.eu>
      Acked-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      98d9f30c
  4. 28 4月, 2010 1 次提交
  5. 06 11月, 2008 1 次提交
  6. 21 4月, 2008 1 次提交
  7. 20 12月, 2007 1 次提交
  8. 29 11月, 2007 1 次提交
    • R
      pci hotplug: kernel-doc fixes · 26e6c66e
      Randy Dunlap 提交于
      acpiphp.h: not using kernel-doc, so change /** to /*
      acpiphp_core.c: lots of kernel-doc cleanups
      acpiphp_glue.c: lots of kernel-doc cleanups
      acpiphp_ibm.c: lots of kernel-doc cleanups
      cpqphp_core.c: lots of kernel-doc cleanups
      cpqphp_ctrl.c: lots of kernel-doc cleanups
      fakephp.c:  correct kernel-doc notation
      pciehp_ctrl.c: correct kernel-doc notation
      rpadlpar_core.c: correct function names & kernel-doc notation
      rpaphp_core.c: correct kernel-doc notation
      shpchp_ctrl.c: correct kernel-doc notation
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Kristen Accardi <kristen.c.accardi@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      26e6c66e
  9. 14 6月, 2007 1 次提交
    • B
      [POWERPC] Rewrite IO allocation & mapping on powerpc64 · 3d5134ee
      Benjamin Herrenschmidt 提交于
      This rewrites pretty much from scratch the handling of MMIO and PIO
      space allocations on powerpc64.  The main goals are:
      
       - Get rid of imalloc and use more common code where possible
       - Simplify the current mess so that PIO space is allocated and
         mapped in a single place for PCI bridges
       - Handle allocation constraints of PIO for all bridges including
         hot plugged ones within the 2GB space reserved for IO ports,
         so that devices on hotplugged busses will now work with drivers
         that assume IO ports fit in an int.
       - Cleanup and separate tracking of the ISA space in the reserved
         low 64K of IO space. No ISA -> Nothing mapped there.
      
      I booted a cell blade with IDE on PIO and MMIO and a dual G5 so
      far, that's it :-)
      
      With this patch, all allocations are done using the code in
      mm/vmalloc.c, though we use the low level __get_vm_area with
      explicit start/stop constraints in order to manage separate
      areas for vmalloc/vmap, ioremap, and PCI IOs.
      
      This greatly simplifies a lot of things, as you can see in the
      diffstat of that patch :-)
      
      A new pair of functions pcibios_map/unmap_io_space() now replace
      all of the previous code that used to manipulate PCI IOs space.
      The allocation is done at mapping time, which is now called from
      scan_phb's, just before the devices are probed (instead of after,
      which is by itself a bug fix). The only other caller is the PCI
      hotplug code for hot adding PCI-PCI bridges (slots).
      
      imalloc is gone, as is the "sub-allocation" thing, but I do beleive
      that hotplug should still work in the sense that the space allocation
      is always done by the PHB, but if you unmap a child bus of this PHB
      (which seems to be possible), then the code should properly tear
      down all the HPTE mappings for that area of the PHB allocated IO space.
      
      I now always reserve the first 64K of IO space for the bridge with
      the ISA bus on it. I have moved the code for tracking ISA in a separate
      file which should also make it smarter if we ever are capable of
      hot unplugging or re-plugging an ISA bridge.
      
      This should have a side effect on platforms like powermac where VGA IOs
      will no longer work. This is done on purpose though as they would have
      worked semi-randomly before. The idea at this point is to isolate drivers
      that might need to access those and fix them by providing a proper
      function to obtain an offset to the legacy IOs of a given bus.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      3d5134ee
  10. 03 5月, 2007 2 次提交
  11. 02 12月, 2006 1 次提交
  12. 27 3月, 2006 1 次提交
  13. 01 2月, 2006 6 次提交
  14. 10 1月, 2006 2 次提交
  15. 11 11月, 2005 1 次提交
  16. 10 11月, 2005 1 次提交
  17. 31 10月, 2005 1 次提交
    • T
      [PATCH] fix missing includes · 4e57b681
      Tim Schmielau 提交于
      I recently picked up my older work to remove unnecessary #includes of
      sched.h, starting from a patch by Dave Jones to not include sched.h
      from module.h. This reduces the number of indirect includes of sched.h
      by ~300. Another ~400 pointless direct includes can be removed after
      this disentangling (patch to follow later).
      However, quite a few indirect includes need to be fixed up for this.
      
      In order to feed the patches through -mm with as little disturbance as
      possible, I've split out the fixes I accumulated up to now (complete for
      i386 and x86_64, more archs to follow later) and post them before the real
      patch.  This way this large part of the patch is kept simple with only
      adding #includes, and all hunks are independent of each other.  So if any
      hunk rejects or gets in the way of other patches, just drop it.  My scripts
      will pick it up again in the next round.
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      4e57b681
  18. 09 9月, 2005 6 次提交
    • P
      [PATCH] Separate pci bits out of struct device_node · 1635317f
      Paul Mackerras 提交于
      This patch pulls the PCI-related junk out of struct device_node and
      puts it in a separate structure, struct pci_dn.  The device_node now
      just has a void * pointer in it, which points to a struct pci_dn for
      nodes that represent PCI devices.  It could potentially be used in
      future for device-specific data for other sorts of devices, such as
      virtual I/O devices.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      1635317f
    • J
      [PATCH] PCI Hotplug: rpaphp: Purify hotplug · 56d8456b
      John Rose 提交于
      Currently rpaphp registers the following bus types as hotplug slots:
      1) Actual PCI Hotplug slots
      2) Embedded/Internal PCI slots
      3) PCI Host Bridges
      
      The second and third bus types are not actually direct parents of
      removable adapters.  As such, the rpaphp has special case code to fake
      results for attributes like power, adapter status, etc.  This patch
      removes types 2 and 3 from the rpaphp module.
      
      This patch also changes the DLPAR module so that slots can be
      DLPAR-added/removed without having been designated as hotplug-capable.
      Signed-off-by: NJohn Rose <johnrose@austin.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      56d8456b
    • J
      [PATCH] PCI Hotplug: rpaphp: Export slot enable · 940903c5
      John Rose 提交于
      This patch exports rpaphp_config_pci_adapter() for use by the rpadlpar
      module.  It also changes this function by removing any dependencies on
      struct slot.  The patch also changes the RPA DLPAR-add path to enable
      newly-added slots in a separate step from that which registers them as
      hotplug slots.
      Signed-off-by: NJohn Rose <johnrose@austin.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      940903c5
    • J
      [PATCH] PCI Hotplug: rpaphp: Remove rpaphp_find_pci · 0945cd5f
      John Rose 提交于
      The rpaphp module currently uses a fragile method to find a pci device
      by its device node.  This function is unnecessary, so this patch scraps
      it.
      Signed-off-by: NJohn Rose <johnrose@austin.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0945cd5f
    • J
      [PATCH] PCI Hotplug: rpaphp: Change slot pci reference · 9c209c91
      John Rose 提交于
      The slot structure in the rpaphp module currently references the PCI
      contents of the slot using the PCI device of the parent bridge.  This
      is unnecessary, since the module is actually interested in the
      subordinate bus of the bridge.  The dependency on a PCI bridge device
      also prohibits the module from registering hotplug slots that have a
      root bridge as a parent, since root bridges on PPC64 don't have PCI
      devices.
      
      This patch changes struct slot to reference the PCI subsystem using a
      pci_bus rather than a pci_dev.
      Signed-off-by: NJohn Rose <johnrose@austin.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      9c209c91
    • J
      [PATCH] PCI Hotplug: rpaphp: Move VIO registration · 5eeb8c63
      John Rose 提交于
      Currently, rpaphp registers Virtual I/O slots as hotplug slots.  The
      only purpose of this registration is to ensure that the VIO subsystem
      is notified of new VIO buses during DLPAR adds.  Similarly, rpaphp
      notifies the VIO subsystem when a VIO bus is DLPAR-removed.  The rpaphp
      module has special case code to fake results for attributes like power,
      adapter status, etc.
      
      The VIO register/unregister functions could just as easily be made from
      the DLPAR module.  This patch moves the VIO registration calls to the
      DLPAR module, and removes the VIO fluff from rpaphp altogether.
      Signed-off-by: NJohn Rose <johnrose@austin.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      5eeb8c63
  19. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4