1. 29 8月, 2009 1 次提交
  2. 17 3月, 2009 4 次提交
  3. 07 2月, 2009 1 次提交
  4. 31 12月, 2008 2 次提交
  5. 12 11月, 2008 1 次提交
    • B
      ACPI: pci_link: remove acpi_irq_balance_set() interface · 32836259
      Bjorn Helgaas 提交于
      This removes the acpi_irq_balance_set() interface from the PCI
      interrupt link driver.
      
      x86 used acpi_irq_balance_set() to tell the PCI interrupt link
      driver to configure links to minimize IRQ sharing.  But the link
      driver can easily figure out whether to turn on IRQ balancing
      based on the IRQ model (PIC/IOAPIC/etc), so we can get rid of
      that external interface.
      
      It's better for the driver to figure this out at init-time.  If
      we set it externally via the x86 code, the interface reduces
      modularity, and we depend on the fact that acpi_process_madt()
      happens before we process the kernel command line.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      32836259
  6. 23 10月, 2008 1 次提交
  7. 11 10月, 2008 1 次提交
  8. 15 8月, 2008 1 次提交
    • B
      ACPI: bounds check IRQ to prevent memory corruption · fa46d352
      Bjorn Helgaas 提交于
      acpi_penalize_isa_irq() should validate irq before using it to
      index the acpi_irq_penalty[] table.
      
      Here's the path I'm concerned about:
      
          pnpacpi_parse_allocated_irqresource()
          {
      	...
      	irq = acpi_register_gsi(gsi, triggering, polarity);
      	if (irq >= 0)
      		pcibios_penalize_isa_irq(irq, 1);
      
      There's no guarantee that acpi_register_gsi() will return an IRQ
      within the bounds of acpi_irq_penalty[].
      
      I have not seen a failure I can attribute to this.  However,
      ACPI_MAX_IRQS is only 256, and I'm pretty sure ia64 can have
      IRQs larger than that.
      
      I think this should go in 2.6.27.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      fa46d352
  9. 18 7月, 2008 1 次提交
    • B
      ACPI: stop complaints about interrupt link End Tags and blank IRQ descriptors · 4a5e3638
      Bjorn Helgaas 提交于
      Silently ignore _PRS End Tags.  We already ignore Start Dependent Functions in
      _PRS, and we already ignore End Tags in _CRS, so we might as well ignore End
      Tags in _PRS as well.
      
      Silently ignore _PRS IRQ descriptors that mention no interrupts.  The spec
      allows this (section 6.4.2.1 in ACPI 3.0b spec), and it probably means the
      interrupt link can't be configured at all.
      
      This patch doesn't change any functional behavior; it just removes confusing
      complaints like these:
      
          ACPI: Blank IRQ resource
          ACPI: Resource is not an IRQ entry
      
      when parsing _PRS data "23 00 00 18 79 00" from an IBM xSeries 335 dual
      Pentium IV Xeon 2.40 GHz machine.  For more details, see
          http://bugzilla.kernel.org/show_bug.cgi?id=11049
      
      The "23 00 00 18" part is a three-byte-long small IRQ resource with no bits set
      in the IRQ mask ("00 00"), and level-triggered, active low, shareable ("18").
      
      The "79 00" is an End Tag (type 0x7).  It is superfluous since there is no
      Start Dependent Function tag and there are no resources after it, but it is
      harmless.
      
      Thanks to Gabriele Trombetti <g.trombetti.lkrnl1213@logicschema.com>
      (aka Kurk) for reporting this and testing the patch.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      4a5e3638
  10. 07 2月, 2008 1 次提交
    • A
      ACPI: misc cleanups · e5685b9d
      Adrian Bunk 提交于
          This patch contains the following possible cleanups:
          - make the following needlessly global code static:
            - drivers/acpi/bay.c:dev_attr_eject
            - drivers/acpi/bay.c:dev_attr_present
            - drivers/acpi/dock.c:dev_attr_docked
            - drivers/acpi/dock.c:dev_attr_flags
            - drivers/acpi/dock.c:dev_attr_uid
            - drivers/acpi/dock.c:dev_attr_undock
            - drivers/acpi/pci_bind.c:acpi_pci_unbind()
            - drivers/acpi/pci_link.c:acpi_link_lock
            - drivers/acpi/sbs.c:acpi_sbs_callback()
            - drivers/acpi/sbshc.c:acpi_smbus_transaction()
            - drivers/acpi/sleep/main.c:acpi_sleep_prepare()
          - #if 0 the following unused global functions:
            - drivers/acpi/numa.c:acpi_unmap_pxm_to_node()
          - remove the following unused EXPORT_SYMBOL's:
            - acpi_register_gsi
            - acpi_unregister_gsi
            - acpi_strict
            - acpi_bus_receive_event
            - register_acpi_bus_type
            - unregister_acpi_bus_type
            - acpi_os_printf
            - acpi_os_sleep
            - acpi_os_stall
            - acpi_os_read_pci_configuration
            - acpi_os_create_semaphore
            - acpi_os_delete_semaphore
            - acpi_os_wait_semaphore
            - acpi_os_signal_semaphore
            - acpi_os_signal
            - acpi_pci_irq_enable
            - acpi_get_pxm
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Acked-by: NAlexey Starikovskiy <astarikovskiy@suse.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      e5685b9d
  11. 25 1月, 2008 1 次提交
  12. 24 7月, 2007 1 次提交
  13. 22 7月, 2007 1 次提交
  14. 13 2月, 2007 3 次提交
    • L
      ACPI: delete extra #defines in /drivers/acpi/ drivers · 7cda93e0
      Len Brown 提交于
      Cosmetic only.
      
      Except in a single case, #define ACPI_*_DRIVER_NAME
      were invoked 0 or 1 times.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      7cda93e0
    • L
      ACPI: fix acpi_driver.name usage · c2b6705b
      Len Brown 提交于
      It was erroneously used as a description rather than a name.
      
      ie. turn this:
      
      lenb@se7525gp2:/sys> ls bus/acpi/drivers
      ACPI AC Adapter Driver  ACPI Embedded Controller Driver  ACPI Power Resource Driver
      ACPI Battery Driver     ACPI Fan Driver                  ACPI Processor Driver
      ACPI Button Driver      ACPI PCI Interrupt Link Driver   ACPI Thermal Zone Driver
      ACPI container driver   ACPI PCI Root Bridge Driver      hpet
      
      into this:
      
      lenb@se7525gp2:~> ls /sys/bus/acpi/drivers
      ac  battery  button  container  ec  fan  hpet  pci_link  pci_root  power  processor  thermal
      Signed-off-by: NLen Brown <len.brown@intel.com>
      c2b6705b
    • L
      ACPI: clean up ACPI_MODULE_NAME() use · f52fd66d
      Len Brown 提交于
      cosmetic only
      
      Make "module name" actually match the file name.
      Invoke with ';' as leaving it off confuses Lindent and gcc doesn't care.
      Fix indentation where Lindent did get confused.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      f52fd66d
  15. 03 2月, 2007 2 次提交
  16. 21 12月, 2006 1 次提交
  17. 14 10月, 2006 2 次提交
  18. 10 7月, 2006 1 次提交
  19. 30 6月, 2006 2 次提交
  20. 27 6月, 2006 4 次提交
  21. 20 6月, 2006 1 次提交
  22. 14 5月, 2006 1 次提交
  23. 27 1月, 2006 1 次提交
  24. 13 12月, 2005 1 次提交
    • D
      [PATCH] ACPI: fix sleeping whilst atomic warnings on resume · a64882e7
      Dave Jones 提交于
      This has been broken for months.  On resume, we call acpi_pci_link_set()
      with interrupts off, so we get a warning when we try to do a kmalloc of non
      atomic memory.  The actual allocation is just 2 long's (plus extra byte for
      some reason I can't fathom), so a simple conversion to GFP_ATOMIC is
      probably the safest way to fix this.
      
      The error looks like this..
      
      Debug: sleeping function called from invalid context at mm/slab.c:2486
      in_atomic():0, irqs_disabled():1
       [<c0143f6c>] kmem_cache_alloc+0x40/0x56
       [<c0206a2e>] acpi_pci_link_set+0x3f/0x17f
       [<c0206f96>] irqrouter_resume+0x1e/0x3c
       [<c0239bca>] __sysdev_resume+0x11/0x6b
       [<c0239e88>] sysdev_resume+0x34/0x52
       [<c023de21>] device_power_up+0x5/0xa
      Signed-off-by: NDave Jones <davej@redhat.com>
      Cc: "Brown, Len" <len.brown@intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a64882e7
  25. 10 12月, 2005 1 次提交
    • B
      [ACPI] ACPICA 20050930 · 50eca3eb
      Bob Moore 提交于
      Completed a major overhaul of the Resource Manager code -
      specifically, optimizations in the area of the AML/internal
      resource conversion code. The code has been optimized to
      simplify and eliminate duplicated code, CPU stack use has
      been decreased by optimizing function parameters and local
      variables, and naming conventions across the manager have
      been standardized for clarity and ease of maintenance (this
      includes function, parameter, variable, and struct/typedef
      names.)
      
      All Resource Manager dispatch and information tables have
      been moved to a single location for clarity and ease of
      maintenance. One new file was created, named "rsinfo.c".
      
      The ACPI return macros (return_ACPI_STATUS, etc.) have
      been modified to guarantee that the argument is
      not evaluated twice, making them less prone to macro
      side-effects. However, since there exists the possibility
      of additional stack use if a particular compiler cannot
      optimize them (such as in the debug generation case),
      the original macros are optionally available.  Note that
      some invocations of the return_VALUE macro may now cause
      size mismatch warnings; the return_UINT8 and return_UINT32
      macros are provided to eliminate these. (From Randy Dunlap)
      
      Implemented a new mechanism to enable debug tracing for
      individual control methods. A new external interface,
      acpi_debug_trace(), is provided to enable this mechanism. The
      intent is to allow the host OS to easily enable and disable
      tracing for problematic control methods. This interface
      can be easily exposed to a user or debugger interface if
      desired. See the file psxface.c for details.
      
      acpi_ut_callocate() will now return a valid pointer if a
      length of zero is specified - a length of one is used
      and a warning is issued. This matches the behavior of
      acpi_ut_allocate().
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      50eca3eb
  26. 22 9月, 2005 1 次提交
  27. 05 8月, 2005 2 次提交