1. 09 1月, 2016 1 次提交
  2. 27 12月, 2014 1 次提交
  3. 24 9月, 2014 2 次提交
  4. 11 6月, 2014 2 次提交
  5. 15 11月, 2013 1 次提交
  6. 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
  7. 27 7月, 2011 1 次提交
  8. 13 7月, 2009 1 次提交
  9. 17 6月, 2009 1 次提交
  10. 23 10月, 2008 2 次提交
  11. 11 6月, 2008 1 次提交
    • A
      PCI: introduce pci_slot · f46753c5
      Alex Chiang 提交于
      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: NBadari Pulavarty <pbadari@us.ibm.com>
      Acked-by: NBenjamin 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: NAlex Chiang <achiang@hp.com>
      Signed-off-by: NMatthew 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: NKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      f46753c5
  12. 21 4月, 2008 1 次提交
  13. 12 7月, 2007 1 次提交
  14. 19 10月, 2006 1 次提交
  15. 05 10月, 2006 1 次提交
    • D
      IRQ: Maintain regs pointer globally rather than passing to IRQ handlers · 7d12e780
      David Howells 提交于
      Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
      of passing regs around manually through all ~1800 interrupt handlers in the
      Linux kernel.
      
      The regs pointer is used in few places, but it potentially costs both stack
      space and code to pass it around.  On the FRV arch, removing the regs parameter
      from all the genirq function results in a 20% speed up of the IRQ exit path
      (ie: from leaving timer_interrupt() to leaving do_IRQ()).
      
      Where appropriate, an arch may override the generic storage facility and do
      something different with the variable.  On FRV, for instance, the address is
      maintained in GR28 at all times inside the kernel as part of general exception
      handling.
      
      Having looked over the code, it appears that the parameter may be handed down
      through up to twenty or so layers of functions.  Consider a USB character
      device attached to a USB hub, attached to a USB controller that posts its
      interrupts through a cascaded auxiliary interrupt controller.  A character
      device driver may want to pass regs to the sysrq handler through the input
      layer which adds another few layers of parameter passing.
      
      I've build this code with allyesconfig for x86_64 and i386.  I've runtested the
      main part of the code on FRV and i386, though I can't test most of the drivers.
      I've also done partial conversion for powerpc and MIPS - these at least compile
      with minimal configurations.
      
      This will affect all archs.  Mostly the changes should be relatively easy.
      Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
      
      	struct pt_regs *old_regs = set_irq_regs(regs);
      
      And put the old one back at the end:
      
      	set_irq_regs(old_regs);
      
      Don't pass regs through to generic_handle_irq() or __do_IRQ().
      
      In timer_interrupt(), this sort of change will be necessary:
      
      	-	update_process_times(user_mode(regs));
      	-	profile_tick(CPU_PROFILING, regs);
      	+	update_process_times(user_mode(get_irq_regs()));
      	+	profile_tick(CPU_PROFILING);
      
      I'd like to move update_process_times()'s use of get_irq_regs() into itself,
      except that i386, alone of the archs, uses something other than user_mode().
      
      Some notes on the interrupt handling in the drivers:
      
       (*) input_dev() is now gone entirely.  The regs pointer is no longer stored in
           the input_dev struct.
      
       (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking.  It does
           something different depending on whether it's been supplied with a regs
           pointer or not.
      
       (*) Various IRQ handler function pointers have been moved to type
           irq_handler_t.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
      7d12e780
  16. 03 7月, 2006 1 次提交
  17. 01 7月, 2006 1 次提交
  18. 24 3月, 2006 1 次提交
  19. 09 6月, 2005 1 次提交
  20. 01 6月, 2005 1 次提交
    • S
      [PATCH] PCI Hotplug: more CPCI updates · bcc488ab
      Scott Murray 提交于
      Here is my third attempt at a patch to further update the CompactPCI
      hotplug driver infrastructure to address the pci_enable_device issue
      discussed on the list as well as a few other issues I discovered during
      some more testing.  This version addresses a few more issues pointed out
      by Prarit Bhargava.  Changes include:
      - cpci_enable_device and its recursive calling of pci_enable_device on
        new devices removed.
      - Use list_rwsem to avoid slot status change races between disable_slot
        and check_slots.
      - Fixed oopsing in cpci_hp_unregister_bus caused by calling list_del on
        a slot after calling pci_hp_deregister.
      - Removed kfree calls in cleanup_slots since release_slot will have
        done it already.
      - Reworked init_slots a bit to fix latch and adapter file updating on
        subsequent calls to cpci_hp_start.
      - Improved sanity checking in cpci_hp_register_controller.
      - Now shut things down correctly in cpci_hotplug_exit.
      - Switch to pci_get_slot instead of deprecated pci_find_slot.
      - A bunch of CodingStyle fixes.
      Signed-off-by: NScott Murray <scottm@somanetworks.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      bcc488ab
  21. 18 5月, 2005 1 次提交
    • S
      [PATCH] PCI Hotplug: CPCI update · 43b7d7cf
      Scott Murray 提交于
      [PATCH] CPCI: update
      
      I have finally done some work to update the CompactPCI hotplug driver to
      fix some of the outstanding issues in 2.6:
      - Added adapter and latch status ops so that those files will get created
        by the current PCI hotplug core.  This used to not be required, but
        seems to be now after some of the sysfs rework in the core.
      - Replaced slot list spinlock with a r/w semaphore to avoid any potential
        issues with sleeping.  This quiets all of the runtime warnings.
      - Reworked interrupt driven hot extraction handling to remove need for a
        polling operator for ENUM# status.  There are a lot of boards that only
        have an interrupt driven by ENUM#, so this lowers the bar to entry.
      - Replaced pci_visit_dev usage with better use of the PCI core functions.
        The new code is functionally equivalent to the previous code, but the
        use of pci_enable_device on insert needs to be investigated further, as
        I need to do some more testing to see if it is still necessary.
      Signed-off-by: NScott Murray <scottm@somanetworks.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      43b7d7cf
  22. 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