1. 11 Jun, 2010 1 commit
    • Jiri Slaby's avatar
      PCI: hotplug/cpqphp, fix NULL dereference · a7ef7d1f
      Jiri Slaby authored
      
      
      There are devices out there which are PCI Hot-plug controllers with
      compaq PCI IDs, but are not bridges, hence have pdev->subordinate
      NULL. But cpqphp expects the pointer to be non-NULL.
      
      Add a check to the probe function to avoid oopses like:
      BUG: unable to handle kernel NULL pointer dereference at 00000050
      IP: [<f82e3c41>] cpqhpc_probe+0x951/0x1120 [cpqphp]
      *pdpt = 0000000033779001 *pde = 0000000000000000
      ...
      
      The device here was:
      00:0b.0 PCI Hot-plug controller [0804]: Compaq Computer Corporation PCI Hotplug Controller [0e11:a0f7] (rev 11)
      	Subsystem: Compaq Computer Corporation Device [0e11:a2f8]
      
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      a7ef7d1f
  2. 18 May, 2010 1 commit
  3. 16 Mar, 2010 1 commit
  4. 22 Feb, 2010 1 commit
  5. 16 Jun, 2009 1 commit
  6. 11 Jun, 2009 6 commits
  7. 29 Dec, 2008 1 commit
  8. 23 Oct, 2008 1 commit
  9. 22 Oct, 2008 2 commits
  10. 10 Jun, 2008 1 commit
    • Alex Chiang's avatar
      PCI: introduce pci_slot · f46753c5
      Alex Chiang authored
      
      
      Currently, /sys/bus/pci/slots/ only exposes hotplug attributes when a
      hotplug driver is loaded, but PCI slots have attributes such as address,
      speed, width, etc.  that are not related to hotplug at all.
      
      Introduce pci_slot as the primary data structure and kobject model.
      Hotplug attributes described in hotplug_slot become a secondary
      structure associated with the pci_slot.
      
      This patch only creates the infrastructure that allows the separation of
      PCI slot attributes and hotplug attributes.  In this patch, the PCI
      hotplug core remains the only user of this infrastructure, and thus,
      /sys/bus/pci/slots/ will still only become populated when a hotplug
      driver is loaded.
      
      A later patch in this series will add a second user of this new
      infrastructure and demonstrate splitting the task of exposing pci_slot
      attributes from hotplug_slot attributes.
      
        - Make pci_slot the primary sysfs entity. hotplug_slot becomes a
          subsidiary structure.
          o pci_create_slot() creates and registers a slot with the PCI core
          o pci_slot_add_hotplug() gives it hotplug capability
      
        - Change the prototype of pci_hp_register() to take the bus and
          slot number (on parent bus) as parameters.
      
        - Remove all the ->get_address methods since this functionality is
          now handled by pci_slot directly.
      
      [achiang@hp.com: rpaphp-correctly-pci_hp_register-for-empty-pci-slots]
      Tested-by: default avatarBadari Pulavarty <pbadari@us.ibm.com>
      Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      [akpm@linux-foundation.org: build fix]
      [akpm@linux-foundation.org: make headers_check happy]
      [akpm@linux-foundation.org: nuther build fix]
      [akpm@linux-foundation.org: fix typo in #include]
      Signed-off-by: default avatarAlex Chiang <achiang@hp.com>
      Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
      Cc: Greg KH <greg@kroah.com>
      Cc: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
      Cc: Len Brown <lenb@kernel.org>
      Acked-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      f46753c5
  11. 20 Apr, 2008 1 commit
  12. 28 Nov, 2007 1 commit
    • Randy Dunlap's avatar
      pci hotplug: kernel-doc fixes · 26e6c66e
      Randy Dunlap authored
      
      
      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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Kristen Accardi <kristen.c.accardi@intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      26e6c66e
  13. 12 Oct, 2007 1 commit
  14. 11 Oct, 2007 1 commit
  15. 11 Jul, 2007 1 commit
    • Auke Kok's avatar
      PCI: Change all drivers to use pci_device->revision · 44c10138
      Auke Kok authored
      
      
      Instead of all drivers reading pci config space to get the revision
      ID, they can now use the pci_device->revision member.
      
      This exposes some issues where drivers where reading a word or a dword
      for the revision number, and adding useless error-handling around the
      read. Some drivers even just read it for no purpose of all.
      
      In devices where the revision ID is being copied over and used in what
      appears to be the equivalent of hotpath, I have left the copy code
      and the cached copy as not to influence the driver's performance.
      
      Compile tested with make all{yes,mod}config on x86_64 and i386.
      
      Signed-off-by: default avatarAuke Kok <auke-jan.h.kok@intel.com>
      Acked-by: default avatarDave Jones <davej@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      44c10138
  16. 18 Oct, 2006 1 commit
  17. 02 Jul, 2006 1 commit
  18. 30 Jun, 2006 1 commit
  19. 27 Jun, 2006 1 commit
  20. 23 Mar, 2006 2 commits
  21. 09 Jan, 2006 2 commits
  22. 28 Oct, 2005 1 commit
  23. 27 Jun, 2005 1 commit
  24. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      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