1. 14 6月, 2006 5 次提交
    • A
      ACPI: execute Notify() handlers on new thread · b8d35192
      Alexey Starikovskiy 提交于
      http://bugzilla.kernel.org/show_bug.cgi?id=5534
      
      Thanks to Peter Wainwright for isolating the issue.
      Thanks to Andi Kleen and Bob Moore for feedback.
      Thanks to Richard Mace and others for testing.
      Updates by Konstantin Karasyov.
      Signed-off-by: NKonstantin Karasyov <konstantin.a.karasyov@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      b8d35192
    • B
      ACPI: ACPICA 20060512 · 958dd242
      Bob Moore 提交于
      Replaced the acpi_os_queue_for_execution() with a new
      interface named acpi_os_execute(). The major difference is
      that the new interface does not have a Priority parameter,
      this appeared to be useless and has been replaced by
      a Type parameter. The Type tells the OS what type of
      execution is being requested, such as global lock handler,
      notify handler, GPE handler, etc. This allows the host
      to queue and execute the request as appropriate for the
      request type, possibly using different work queues and
      different priorities for the various request types. This
      enables fixes for multithreading deadlock problems such as
      http://bugzilla.kernel.org/show_bug.cgi?id=5534
      (Alexey Starikovskiy and Bob Moore)
      
      Fixed a possible memory leak associated with the
      support for the so-called "implicit return" ACPI
      extension. Reported by FreeBSD  (Fiodor Suietov)
      http://bugzilla.kernel.org/show_bug.cgi?id=6514
      
      Fixed a problem with the Load() operator where a table
      load from an operation region could overwrite an internal
      table buffer by up to 7 bytes and cause alignment faults
      on IPF systems. (With assistance from Luming Yu)
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      958dd242
    • B
      ACPI: ACPICA 20060421 · b229cf92
      Bob Moore 提交于
      Removed a device initialization optimization introduced in
      20051216 where the _STA method was not run unless an _INI
      was also present for the same device. This optimization
      could cause problems because it could allow _INI methods
      to be run within a not-present device subtree (If a
      not-present device had no _INI, _STA would not be run,
      the not-present status would not be discovered, and the
      children of the device would be incorrectly traversed.)
      
      Implemented a new _STA optimization where namespace
      subtrees that do not contain _INI are identified and
      ignored during device initialization. Selectively running
      _STA can significantly improve boot time on large machines
      (with assistance from Len Brown.)
      
      Implemented support for the device initialization case
      where the returned _STA flags indicate a device not-present
      but functioning. In this case, _INI is not run, but the
      device children are examined for presence, as per the
      ACPI specification.
      
      Implemented an additional change to the IndexField support
      in order to conform to MS behavior. The value written to
      the Index Register is not simply a byte offset, it is a
      byte offset in units of the access width of the parent
      Index Field. (Fiodor Suietov)
      
      Defined and deployed a new OSL interface,
      acpi_os_validate_address().  This interface is called during
      the creation of all AML operation regions, and allows
      the host OS to exert control over what addresses it will
      allow the AML code to access. Operation Regions whose
      addresses are disallowed will cause a runtime exception
      when they are actually accessed (will not affect or abort
      table loading.)
      
      Defined and deployed a new OSL interface,
      acpi_os_validate_interface().  This interface allows the host OS
      to match the various "optional" interface/behavior strings
      for the _OSI predefined control method as appropriate
      (with assistance from Bjorn Helgaas.)
      
      Restructured and corrected various problems in the
      exception handling code paths within DsCallControlMethod
      and DsTerminateControlMethod in dsmethod (with assistance
      from Takayoshi Kochi.)
      
      Modified the Linux source converter to ignore quoted string
      literals while converting identifiers from mixed to lower
      case. This will correct problems with the disassembler
      and other areas where such strings must not be modified.
      
      The ACPI_FUNCTION_* macros no longer require quotes around
      the function name. This allows the Linux source converter
      to convert the names, now that the converter ignores
      quoted strings.
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      b229cf92
    • B
      ACPI: ACPICA 20060331 · 793c2388
      Bob Moore 提交于
      Implemented header file support for the following
      additional ACPI tables: ASF!, BOOT, CPEP, DBGP, MCFG, SPCR,
      SPMI, TCPA, and WDRT. With this support, all current and
      known ACPI tables are now defined in the ACPICA headers and
      are available for use by device drivers and other software.
      
      Implemented support to allow tables that contain ACPI
      names with invalid characters to be loaded. Previously,
      this would cause the table load to fail, but since
      there are several known cases of such tables on
      existing machines, this change was made to enable
      ACPI support for them. Also, this matches the
      behavior of the Microsoft ACPI implementation.
      https://bugzilla.novell.com/show_bug.cgi?id=147621
      
      Fixed a couple regressions introduced during the memory
      optimization in the 20060317 release. The namespace
      node definition required additional reorganization and
      an internal datatype that had been changed to 8-bit was
      restored to 32-bit. (Valery Podrezov)
      
      Fixed a problem where a null pointer passed to
      acpi_ut_delete_generic_state() could be passed through
      to acpi_os_release_object which is unexpected. Such
      null pointers are now trapped and ignored, matching
      the behavior of the previous implementation before the
      deployment of acpi_os_release_object().  (Valery Podrezov,
      Fiodor Suietov)
      
      Fixed a memory mapping leak during the deletion of
      a SystemMemory operation region where a cached memory
      mapping was not deleted. This became a noticeable problem
      for operation regions that are defined within frequently
      used control methods. (Dana Meyers)
      
      Reorganized the ACPI table header files into two main
      files: one for the ACPI tables consumed by the ACPICA core,
      and another for the miscellaneous ACPI tables that are
      consumed by the drivers and other software. The various
      FADT definitions were merged into one common section and
      three different tables (ACPI 1.0, 1.0+, and 2.0)
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      793c2388
    • B
      [ACPI] ACPICA 20060317 · 61686124
      Bob Moore 提交于
      Implemented the use of a cache object for all internal
      namespace nodes. Since there are about 1000 static nodes
      in a typical system, this will decrease memory use for
      cache implementations that minimize per-allocation overhead
      (such as a slab allocator.)
      
      Removed the reference count mechanism for internal
      namespace nodes, since it was deemed unnecessary. This
      reduces the size of each namespace node by about 5%-10%
      on all platforms. Nodes are now 20 bytes for the 32-bit
      case, and 32 bytes for the 64-bit case.
      
      Optimized several internal data structures to reduce
      object size on 64-bit platforms by packing data within
      the 64-bit alignment. This includes the frequently used
      ACPI_OPERAND_OBJECT, of which there can be ~1000 static
      instances corresponding to the namespace objects.
      
      Added two new strings for the predefined _OSI method:
      "Windows 2001.1 SP1" and "Windows 2006".
      
      Split the allocation tracking mechanism out to a separate
      file, from utalloc.c to uttrack.c. This mechanism appears
      to be only useful for application-level code. Kernels may
      wish to not include uttrack.c in distributions.
      
      Removed all remnants of the obsolete ACPI_REPORT_* macros
      and the associated code. (These macros have been replaced
      by the ACPI_ERROR and ACPI_WARNING macros.)
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      61686124
  2. 02 4月, 2006 2 次提交
  3. 01 4月, 2006 3 次提交
    • L
      ACPI: inline trivial acpi_os_get_thread_id() · ec7381d6
      Len Brown 提交于
      acpi_os_get_thread_id() is used only for debugging
      code that is not enabled on Linux, so stub it out.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      ec7381d6
    • B
      ACPI: ACPICA 20060310 · 8313524a
      Bob Moore 提交于
      Tagged all external interfaces to the subsystem with the
      new ACPI_EXPORT_SYMBOL macro. This macro can be defined
      as necessary to assist kernel integration. For Linux,
      the macro resolves to the EXPORT_SYMBOL macro. The default
      definition is NULL.
      
      Added the ACPI_THREAD_ID type for the return value from
      acpi_os_get_thread_id(). This allows the host to define this
      as necessary to simplify kernel integration. The default
      definition is ACPI_NATIVE_UINT.
      
      Valery Podrezov fixed two interpreter problems related
      to error processing, the deletion of objects, and placing
      invalid pointers onto the internal operator result stack.
      http://bugzilla.kernel.org/show_bug.cgi?id=6028
      http://bugzilla.kernel.org/show_bug.cgi?id=6151
      
      Increased the reference count threshold where a warning is
      emitted for large reference counts in order to eliminate
      unnecessary warnings on systems with large namespaces
      (especially 64-bit.) Increased the value from 0x400
      to 0x800.
      
      Due to universal disagreement as to the meaning of the
      'c' in the calloc() function, the ACPI_MEM_CALLOCATE
      macro has been renamed to ACPI_ALLOCATE_ZEROED so that the
      purpose of the interface is 'clear'. ACPI_MEM_ALLOCATE and
      ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and ACPI_FREE.
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      8313524a
    • B
      ACPI: ACPICA 20060217 · ea936b78
      Bob Moore 提交于
      Implemented a change to the IndexField support to match
      the behavior of the Microsoft AML interpreter. The value
      written to the Index register is now a byte offset,
      no longer an index based upon the width of the Data
      register. This should fix IndexField problems seen on
      some machines where the Data register is not exactly one
      byte wide. The ACPI specification will be clarified on
      this point.
      
      Fixed a problem where several resource descriptor
      types could overrun the internal descriptor buffer due
      to size miscalculation: VendorShort, VendorLong, and
      Interrupt. This was noticed on IA64 machines, but could
      affect all platforms.
      
      Fixed a problem where individual resource descriptors were
      misaligned within the internal buffer, causing alignment
      faults on IA64 platforms.
      Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      ea936b78
  4. 31 3月, 2006 30 次提交