From owner-svn-src-all@FreeBSD.ORG Fri Feb 11 22:56:15 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B50A106566B; Fri, 11 Feb 2011 22:56:15 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4F5578FC0A; Fri, 11 Feb 2011 22:56:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p1BMuFI8076753; Fri, 11 Feb 2011 22:56:15 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p1BMuFoe076750; Fri, 11 Feb 2011 22:56:15 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201102112256.p1BMuFoe076750@svn.freebsd.org> From: Jung-uk Kim Date: Fri, 11 Feb 2011 22:56:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-sys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218585 - in vendor-sys/acpica/dist: . common compiler debugger dispatcher events executer generate/unix generate/unix/acpiexec generate/unix/acpinames generate/unix/acpisrc generate/un... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2011 22:56:15 -0000 Author: jkim Date: Fri Feb 11 22:56:14 2011 New Revision: 218585 URL: http://svn.freebsd.org/changeset/base/218585 Log: Import ACPICA 20110211. Added: vendor-sys/acpica/dist/compiler/aslbtypes.c (contents, props changed) vendor-sys/acpica/dist/compiler/aslwalks.c (contents, props changed) vendor-sys/acpica/dist/compiler/dtexpress.c (contents, props changed) vendor-sys/acpica/dist/debugger/dbmethod.c (contents, props changed) vendor-sys/acpica/dist/debugger/dbnames.c (contents, props changed) vendor-sys/acpica/dist/dispatcher/dsargs.c (contents, props changed) vendor-sys/acpica/dist/dispatcher/dscontrol.c (contents, props changed) vendor-sys/acpica/dist/dispatcher/dswload2.c (contents, props changed) vendor-sys/acpica/dist/generate/unix/ vendor-sys/acpica/dist/generate/unix/Makefile (contents, props changed) vendor-sys/acpica/dist/generate/unix/Makefile.config (contents, props changed) vendor-sys/acpica/dist/generate/unix/acpiexec/ vendor-sys/acpica/dist/generate/unix/acpiexec/Makefile (contents, props changed) vendor-sys/acpica/dist/generate/unix/acpinames/ vendor-sys/acpica/dist/generate/unix/acpinames/Makefile (contents, props changed) vendor-sys/acpica/dist/generate/unix/acpisrc/ vendor-sys/acpica/dist/generate/unix/acpisrc/Makefile (contents, props changed) vendor-sys/acpica/dist/generate/unix/acpixtract/ vendor-sys/acpica/dist/generate/unix/acpixtract/Makefile (contents, props changed) vendor-sys/acpica/dist/generate/unix/iasl/ vendor-sys/acpica/dist/generate/unix/iasl/Makefile (contents, props changed) vendor-sys/acpica/dist/generate/unix/readme.txt (contents, props changed) vendor-sys/acpica/dist/tools/acpinames/Makefile (contents, props changed) vendor-sys/acpica/dist/utilities/utdecode.c (contents, props changed) Modified: vendor-sys/acpica/dist/changes.txt vendor-sys/acpica/dist/common/dmtable.c vendor-sys/acpica/dist/common/dmtbdump.c vendor-sys/acpica/dist/common/dmtbinfo.c vendor-sys/acpica/dist/compiler/Makefile vendor-sys/acpica/dist/compiler/aslanalyze.c vendor-sys/acpica/dist/compiler/aslcompile.c vendor-sys/acpica/dist/compiler/aslcompiler.h vendor-sys/acpica/dist/compiler/aslcompiler.l vendor-sys/acpica/dist/compiler/aslcompiler.y vendor-sys/acpica/dist/compiler/aslmessages.h vendor-sys/acpica/dist/compiler/aslpredef.c vendor-sys/acpica/dist/compiler/asltree.c vendor-sys/acpica/dist/compiler/dtcompile.c vendor-sys/acpica/dist/compiler/dtcompiler.h vendor-sys/acpica/dist/compiler/dtfield.c vendor-sys/acpica/dist/compiler/dtio.c vendor-sys/acpica/dist/compiler/dttable.c vendor-sys/acpica/dist/compiler/dtutils.c vendor-sys/acpica/dist/debugger/dbcmds.c vendor-sys/acpica/dist/debugger/dbdisply.c vendor-sys/acpica/dist/debugger/dbinput.c vendor-sys/acpica/dist/dispatcher/dsopcode.c vendor-sys/acpica/dist/dispatcher/dswload.c vendor-sys/acpica/dist/events/evgpe.c vendor-sys/acpica/dist/events/evregion.c vendor-sys/acpica/dist/events/evxfregn.c vendor-sys/acpica/dist/executer/exfldio.c vendor-sys/acpica/dist/include/acdebug.h vendor-sys/acpica/dist/include/acdisasm.h vendor-sys/acpica/dist/include/acdispat.h vendor-sys/acpica/dist/include/acglobal.h vendor-sys/acpica/dist/include/aclocal.h vendor-sys/acpica/dist/include/acoutput.h vendor-sys/acpica/dist/include/acpixf.h vendor-sys/acpica/dist/include/actbl.h vendor-sys/acpica/dist/tables/tbfadt.c vendor-sys/acpica/dist/tests/misc/badcode.asl vendor-sys/acpica/dist/tools/acpiexec/Makefile vendor-sys/acpica/dist/tools/acpiexec/aecommon.h vendor-sys/acpica/dist/tools/acpiexec/aehandlers.c vendor-sys/acpica/dist/tools/acpiexec/aemain.c vendor-sys/acpica/dist/tools/acpisrc/astable.c vendor-sys/acpica/dist/utilities/utglobal.c Modified: vendor-sys/acpica/dist/changes.txt ============================================================================== --- vendor-sys/acpica/dist/changes.txt Fri Feb 11 22:43:10 2011 (r218584) +++ vendor-sys/acpica/dist/changes.txt Fri Feb 11 22:56:14 2011 (r218585) @@ -1,18 +1,107 @@ ---------------------------------------- +11 February 2011. Summary of changes for version 20110211: + +This release is available at www.acpica.org/downloads + +1) ACPI CA Core Subsystem: + +Added a mechanism to defer _REG methods for some early-installed handlers. +Most user handlers should be installed before call to AcpiEnableSubsystem. +However, Event handlers and region handlers should be installed after +AcpiInitializeObjects. Override handlers for the "default" regions should be +installed early, however. This change executes all _REG methods for the +default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any +chicken/egg issues between them. ACPICA BZ 848. + +Implemented an optimization for GPE detection. This optimization will simply +ignore GPE registers that contain no enabled GPEs -- there is no need to +read the register since this information is available internally. This +becomes more important on machines with a large GPE space. ACPICA bugzilla +884. Lin Ming. Suggestion from Joe Liu. + +Removed all use of the highly unreliable FADT revision field. The revision +number in the FADT has been found to be completely unreliable and cannot be +trusted. Only the actual table length can be used to infer the version. This +change updates the ACPICA core and the disassembler so that both no longer +even look at the FADT version and instead depend solely upon the FADT +length. + +Fix an unresolved name issue for the no-debug and no-error-message source +generation cases. The _AcpiModuleName was left undefined in these cases, but +it is actually needed as a parameter to some interfaces. Define +_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. + +Split several large files (makefiles and project files updated) + utglobal.c -> utdecode.c + dbcomds.c -> dbmethod.c dbnames.c + dsopcode.c -> dsargs.c dscontrol.c + dsload.c -> dsload2.c + aslanalyze.c -> aslbtypes.c aslwalks.c + +Example Code and Data Size: These are the sizes for the OS-independent +acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. + + Previous Release (VC 9.0): + Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total + Debug Version: 163.9K Code, 67.5K Data, 231.4K Total + Current Release (VC 9.0): + Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total + Debug Version: 163.9K Code, 67.5K Data, 231.4K Total + +2) iASL Compiler/Disassembler and Tools: + +iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. +These are useful C-style macros with the standard definitions. ACPICA +bugzilla 898. + +iASL/DTC: Added support for integer expressions and labels. Support for full +expressions for all integer fields in all ACPI tables. Support for labels in +"generic" portions of tables such as UEFI. See the iASL reference manual. + +Debugger: Added a command to display the status of global handlers. The +"handlers" command will display op region, fixed event, and miscellaneous +global handlers. installation status -- and for op regions, whether default +or user-installed handler will be used. + +iASL: Warn if reserved method incorrectly returns a value. Many predefined +names are defined such that they do not return a value. If implemented as a +method, issue a warning if such a name explicitly returns a value. ACPICA +Bugzilla 855. + +iASL: Added detection of GPE method name conflicts. Detects a conflict where +there are two GPE methods of the form _Lxy and _Exy in the same scope. (For +example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. + +iASL/DTC: Fixed a couple input scanner issues with comments and line +numbers. Comment remover could get confused and miss a comment ending. Fixed +a problem with line counter maintenance. + +iASL/DTC: Reduced the severity of some errors from fatal to error. There is +no need to abort on simple errors within a field definition. + +Debugger: Simplified the output of the help command. All help output now in +a single screen, instead of help subcommands. ACPICA Bugzilla 897. + + +---------------------------------------- 12 January 2011. Summary of changes for version 20110112: 1) ACPI CA Core Subsystem: Fixed a race condition between method execution and namespace walks that can possibly cause a fault. The problem was apparently introduced in version -20100528 as a result of a performance optimization that reduces the number of +20100528 as a result of a performance optimization that reduces the number +of namespace walks upon method exit by using the delete_namespace_subtree function instead of the delete_namespace_by_owner function used previously. Bug is a missing namespace lock in the delete_namespace_subtree function. dana.myers@oracle.com Fixed several issues and a possible fault with the automatic "serialized" -method support. History: This support changes a method to "serialized" on the +method support. History: This support changes a method to "serialized" on +the fly if the method generates an AE_ALREADY_EXISTS error, indicating the possibility that it cannot handle reentrancy. This fix repairs a couple of issues seen in the field, especially on machines with many cores: @@ -50,7 +139,8 @@ details. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release (VC 6.0): @@ -62,11 +152,13 @@ much larger code and data size. 2) iASL Compiler/Disassembler and Tools: -iASL: Added generic data types to the Data Table compiler. Add "generic" data +iASL: Added generic data types to the Data Table compiler. Add "generic" +data types such as UINT32, String, Unicode, etc., to simplify the generation of platform-defined tables such as UEFI. Lin Ming. -iASL: Added listing support for the Data Table Compiler. Adds listing support +iASL: Added listing support for the Data Table Compiler. Adds listing +support (-l) to display actual binary output for each line of input code. ---------------------------------------- @@ -98,13 +190,15 @@ when a Wake GPE is received if there is handler. ACPICA BZ 870. Fixed a problem with the Scope() operator during table parse and load phase. -During load phase (table load or method execution), the scope operator should +During load phase (table load or method execution), the scope operator +should not enter the target into the namespace. Instead, it should open a new scope at the target location. Linux BZ 19462, ACPICA BZ 882. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -163,7 +257,8 @@ longer needed in Execute_HID, Execute_CI Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -176,13 +271,16 @@ much larger code and data size. 2) iASL Compiler/Disassembler and Tools: iASL: Implemented additional compile-time validation for _HID strings. The -non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the length of +non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the length +of the string must be exactly seven or eight characters. For both _HID and _CID strings, all characters must be alphanumeric. ACPICA BZ 874. iASL: Allow certain "null" resource descriptors. Some BIOS code creates -descriptors that are mostly or all zeros, with the expectation that they will -be filled in at runtime. iASL now allows this as long as there is a "resource +descriptors that are mostly or all zeros, with the expectation that they +will +be filled in at runtime. iASL now allows this as long as there is a +"resource tag" (name) associated with the descriptor, which gives the ASL a handle needed to modify the descriptor. ACPICA BZ 873. @@ -192,7 +290,8 @@ threaded ACPICA tools/applications - inc _MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED option. ACPICA BZ 879. -AcpiExec: several fixes for the 64-bit version. Adds XSDT support and support +AcpiExec: several fixes for the 64-bit version. Adds XSDT support and +support for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. iASL: Moved all compiler messages to a new file, aslmessages.h. @@ -202,7 +301,8 @@ iASL: Moved all compiler messages to a n 1) ACPI CA Core Subsystem: -Removed the AcpiOsDerivePciId OSL interface. The various host implementations +Removed the AcpiOsDerivePciId OSL interface. The various host +implementations of this function were not OS-dependent and are now obsolete and can be removed from all host OSLs. This function has been replaced by AcpiHwDerivePciId, which is now part of the ACPICA core code. @@ -216,7 +316,8 @@ accordance with the ACPI specification a ACPICA BZ 871. The ACPI_THREAD_ID type is no longer configurable, internally it is now -always UINT64. This simplifies the ACPICA code, especially any printf output. +always UINT64. This simplifies the ACPICA code, especially any printf +output. UINT64 is the only common data type for all thread_id types across all operating systems. It is now up to the host OSL to cast the native thread_id type to UINT64 before returning the value to ACPICA (via AcpiOsGetThreadId). @@ -238,7 +339,8 @@ is used. ACPICA BZ 829. Lin Ming, Bob Mo Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -267,7 +369,8 @@ of size_t on 32-bit versus 64-bit genera Designed and implemented a new host interface to the _OSI support code. This will allow the host to dynamically add or remove multiple _OSI strings, as well as install an optional handler that is called for each _OSI invocation. -Also added a new AML debugger command, 'osi' to display and modify the global +Also added a new AML debugger command, 'osi' to display and modify the +global _OSI string table, and test support in the AcpiExec utility. See the ACPICA reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. New Functions: @@ -296,12 +399,14 @@ It should be a (UINT64 *). This may affe Fixed a couple problems with the recently modified Linux makefiles for iASL and AcpiExec. These new makefiles place the generated object files in the -local directory so that there can be no collisions between the files that are +local directory so that there can be no collisions between the files that +are shared between them that are compiled with different options. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -342,25 +447,29 @@ interface. This interface will set or cl 5) Remove GpeType argument from AcpiEnable and AcpiDisable. These interfaces are now used for "runtime" GPEs only. -Changed the behavior of the GPE install/remove handler interfaces. The GPE is +Changed the behavior of the GPE install/remove handler interfaces. The GPE +is no longer disabled during this process, as it was found to cause problems on some machines. Rafael J. Wysocki. Reverted a change introduced in version 20100528 to enable Embedded -Controller multi-byte transfers. This change was found to cause problems with +Controller multi-byte transfers. This change was found to cause problems +with Index Fields and possibly Bank Fields. It will be reintroduced when these problems have been resolved. Fixed a problem with references to Alias objects within Package Objects. A reference to an Alias within the definition of a Package was not always resolved properly. Aliases to objects like Processors, Thermal zones, etc. -were resolved to the actual object instead of a reference to the object as it +were resolved to the actual object instead of a reference to the object as +it should be. Package objects are only allowed to contain integer, string, buffer, package, and reference objects. Redhat bugzilla 608648. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -410,7 +519,8 @@ ACPI tables that have been seen in the f Implemented support to enable multi-byte transfers for Embedded Controller (EC) operation regions. Previously, the maximum data size passed to the EC operation region handler was a single byte. There are often EC Fields larger -than one byte that need to be transferred, and it is useful for the EC driver +than one byte that need to be transferred, and it is useful for the EC +driver to lock these as a single transaction. This change enables single transfers larger than 8 bits. This effectively changes the access to the EC space from ByteAcc to AnyAcc, and will probably require changes to the host OS Embedded @@ -427,12 +537,16 @@ node and an ACPI operand object. However namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. Implemented a performance optimization that reduces the number of namespace -walks. On control method exit, only walk the namespace if the method is known -to have created namespace objects outside of its local scope. Previously, the +walks. On control method exit, only walk the namespace if the method is +known +to have created namespace objects outside of its local scope. Previously, +the entire namespace was traversed on each control method exit. This change can -improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob Moore. +improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob +Moore. -Added support to truncate I/O addresses to 16 bits for Windows compatibility. +Added support to truncate I/O addresses to 16 bits for Windows +compatibility. Some ASL code has been seen in the field that inadvertently has bits set above bit 15. This feature is optional and is enabled if the BIOS requests any Windows OSI strings. It can also be enabled by the host OS. Matthew @@ -450,15 +564,18 @@ part of the ACPI spec. ACPICA BZ 860. Expanded all statistic counters used during namespace and device initialization from 16 to 32 bits in order to support very large namespaces. -Replaced all instances of %d in printf format specifiers with %u since nearly +Replaced all instances of %d in printf format specifiers with %u since +nearly all integers in ACPICA are unsigned. -Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly returned +Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly +returned as AE_NO_HANDLER. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -492,7 +609,8 @@ new table, and process any _Lxx/_Exx GPE runtime GPE that is referenced by an _Lxx/_Exx method in the new table is immediately enabled. Handles the FADT-defined GPEs as well as GPE Block Devices. Provides compatibility with other ACPI implementations. Two new -files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob Moore. +files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob +Moore. Fixed a regression introduced in version 20100331 within the table manager where initial table loading could fail. This was introduced in the fix for @@ -504,12 +622,14 @@ AcpiUtCopySimpleObject. The original cod where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 847. Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a -possible access beyond end-of-allocation. Also, now fully validate descriptor +possible access beyond end-of-allocation. Also, now fully validate +descriptor (size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -526,7 +646,8 @@ descriptors. This change implements vali are common to all address-type resource descriptors. These checks are implemented: Checks for valid Min/Max, length within the Min/Max window, valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as per -table 6-40 in the ACPI 4.0a specification. Also split the large aslrestype1.c +table 6-40 in the ACPI 4.0a specification. Also split the large +aslrestype1.c and aslrestype2.c files into five new files. ACPICA BZ 840. iASL: Added support for the _Wxx predefined names. This support was missing @@ -570,8 +691,10 @@ New: AcpiSetGpe Implemented write support for DataTable operation regions. These regions are -defined via the DataTableRegion() operator. Previously, only read support was -implemented. The ACPI specification allows DataTableRegions to be read/write, +defined via the DataTableRegion() operator. Previously, only read support +was +implemented. The ACPI specification allows DataTableRegions to be +read/write, however. Implemented a new subsystem option to force a copy of the DSDT to local @@ -581,7 +704,8 @@ the original DSDT, creating the need for not copy the DSDT. Implemented detection of a corrupted or replaced DSDT. This change adds -support to detect a DSDT that has been corrupted and/or replaced from outside +support to detect a DSDT that has been corrupted and/or replaced from +outside the OS (by firmware). This is typically catastrophic for the system, but has been seen on some machines. Once this problem has been detected, the DSDT copy option can be enabled via system configuration. Lin Ming, Bob Moore. @@ -594,7 +718,8 @@ was not set correctly. Alexey Starikovsk Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -610,7 +735,8 @@ iASL: Implement limited typechecking for control methods. The type of any returned static (unnamed) object is now validated. For example, Return(1). ACPICA BZ 786. -iASL: Fixed a predefined name object verification regression. Fixes a problem +iASL: Fixed a predefined name object verification regression. Fixes a +problem introduced in version 20100304. An error is incorrectly generated if a predefined name is declared as a static named object with a value defined using the keywords "Zero", "One", or "Ones". Lin Ming. @@ -629,21 +755,25 @@ Introduced in commit ae7d6fd: Properly h Fixed a possible problem with the AML Mutex handling function AcpiExReleaseMutex where the function could fault under the very rare -condition when the interpreter has blocked, the interpreter lock is released, +condition when the interpreter has blocked, the interpreter lock is +released, the interpreter is then reentered via the same thread, and attempts to -acquire an AML mutex that was previously acquired. FreeBSD report 140979. Lin +acquire an AML mutex that was previously acquired. FreeBSD report 140979. +Lin Ming. Implemented additional configuration support for the AML "Debug Object". Output from the debug object can now be enabled via a global variable, -AcpiGbl_EnableAmlDebugObject. This will assist with remote machine debugging. +AcpiGbl_EnableAmlDebugObject. This will assist with remote machine +debugging. This debug output is now available in the release version of ACPICA instead of just the debug version. Also, the entire debug output module can now be configured out of the ACPICA build if desired. One new file added, executer/exdebug.c. Lin Ming, Bob Moore. Added header support for the ACPI MCHI table (Management Controller Host -Interface Table). This table was added in ACPI 4.0, but the defining document +Interface Table). This table was added in ACPI 4.0, but the defining +document has only recently become available. Standardized output of integer values for ACPICA warnings/errors. Always use @@ -654,7 +784,8 @@ ACPI_DEBUG_PRINT invocations and were no Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -669,7 +800,8 @@ much larger code and data size. iASL: Implemented typechecking support for static (non-control method) predefined named objects that are declared with the Name() operator. For example, the type of this object is now validated to be of type Integer: -Name(_BBN, 1). This change migrates the compiler to using the core predefined +Name(_BBN, 1). This change migrates the compiler to using the core +predefined name table instead of maintaining a local version. Added a new file, aslpredef.c. ACPICA BZ 832. @@ -684,15 +816,20 @@ Added the 2010 copyright to all module h virtually every file in the ACPICA core subsystem, the iASL compiler, the tools/utilities, and the test suites. -Implemented a change to the AcpiGetDevices interface to eliminate unnecessary +Implemented a change to the AcpiGetDevices interface to eliminate +unnecessary invocations of the _STA method. In the case where a specific _HID is requested, do not run _STA until a _HID match is found. This eliminates -potentially dozens of _STA calls during a search for a particular device/HID, +potentially dozens of _STA calls during a search for a particular +device/HID, which in turn can improve boot times. ACPICA BZ 828. Lin Ming. -Implemented an additional repair for predefined method return values. Attempt -to repair unexpected NULL elements within returned Package objects. Create an -Integer of value zero, a NULL String, or a zero-length Buffer as appropriate. +Implemented an additional repair for predefined method return values. +Attempt +to repair unexpected NULL elements within returned Package objects. Create +an +Integer of value zero, a NULL String, or a zero-length Buffer as +appropriate. ACPICA BZ 818. Lin Ming, Bob Moore. Removed the obsolete ACPI_INTEGER data type. This type was introduced as the @@ -704,14 +841,16 @@ for now for compatibility with existing Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field in the parse tree object. -Added additional warning options for the gcc-4 generation. Updated the source +Added additional warning options for the gcc-4 generation. Updated the +source accordingly. This includes some code restructuring to eliminate unreachable code, elimination of some gotos, elimination of unused return values, some additional casting, and removal of redundant declarations. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -733,10 +872,12 @@ No functional changes for this release. Enhanced automatic data type conversions for predefined name repairs. This change expands the automatic repairs/conversions for predefined name return values to make Integers, Strings, and Buffers fully interchangeable. Also, a -Buffer can be converted to a Package of Integers if necessary. The nsrepair.c +Buffer can be converted to a Package of Integers if necessary. The +nsrepair.c module was completely restructured. Lin Ming, Bob Moore. -Implemented automatic removal of null package elements during predefined name +Implemented automatic removal of null package elements during predefined +name repairs. This change will automatically remove embedded and trailing NULL package elements from returned package objects that are defined to contain a variable number of sub-packages. The driver is then presented with a package @@ -745,7 +886,8 @@ with no null elements to deal with. ACPI Implemented a repair for the predefined _FDE and _GTM names. The expected return value for both names is a Buffer of 5 DWORDs. This repair fixes two possible problems (both seen in the field), where a package of integers is -returned, or a buffer of BYTEs is returned. With assistance from Jung-uk Kim. +returned, or a buffer of BYTEs is returned. With assistance from Jung-uk +Kim. Implemented additional module-level code support. This change will properly execute module-level code that is not at the root of the namespace (under a @@ -760,7 +902,8 @@ not been seen before. ACPICA BZ 826. Lin Fixed a possible memory leak during module-level code execution. An object could be leaked for each block of executed module-level code if the -interpreter slack mode is enabled This change deletes any implicitly returned +interpreter slack mode is enabled This change deletes any implicitly +returned object from the module-level code block. Lin Ming. Removed messages for successful predefined repair(s). The repair mechanism @@ -770,7 +913,8 @@ repairs were converted to ACPI_DEBUG_PRI Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -782,7 +926,8 @@ much larger code and data size. 2) iASL Compiler/Disassembler and Tools: -iASL: Fixed a regression introduced in 20091112 where intermediate .SRC files +iASL: Fixed a regression introduced in 20091112 where intermediate .SRC +files were no longer automatically removed at the termination of the compile. acpiexec: Implemented the -f option to specify default region fill value. @@ -808,19 +953,23 @@ attributes. Such regions are probably BI Linux BZ 14445. Lin Ming. Implemented an automatic repair for predefined methods that must return -sorted lists. This change will repair (by sorting) packages returned by _ALR, -_PSS, and _TSS. Drivers can now assume that the packages are correctly sorted +sorted lists. This change will repair (by sorting) packages returned by +_ALR, +_PSS, and _TSS. Drivers can now assume that the packages are correctly +sorted and do not contain NULL package elements. Adds one new file, namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. Fixed a possible fault during predefined name validation if a return Package object contains NULL elements. Also adds a warning if a NULL element is -followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement may +followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement +may include repair or removal of all such NULL elements where possible. Implemented additional module-level executable AML code support. This change will execute module-level code that is not at the root of the namespace -(under a Device object, etc.) at table load time. Module-level executable AML +(under a Device object, etc.) at table load time. Module-level executable +AML code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. Implemented a new internal function to create Integer objects. This function @@ -828,12 +977,14 @@ simplifies miscellaneous object creation Reduced the severity of predefined repair messages, Warning to Info. Since the object was successfully repaired, a warning is too severe. Reduced to an -info message for now. These messages may eventually be changed to debug-only. +info message for now. These messages may eventually be changed to debug- +only. ACPICA BZ 812. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -855,10 +1006,12 @@ exists, but is shorter than the declared technically legal, this is probably a coding error and it is seen in the field. ACPICA BZ 815. Lin Ming, Bob Moore. -iASL: Fixed a problem where the compiler could fault after the maximum number +iASL: Fixed a problem where the compiler could fault after the maximum +number of errors was reached (200). -acpixtract: Fixed a possible warning for pointer cast if the compiler warning +acpixtract: Fixed a possible warning for pointer cast if the compiler +warning level set very high. ---------------------------------------- @@ -878,7 +1031,8 @@ operand object was leaked. Lin Ming. Implemented a run-time repair for the _MAT predefined method. If the _MAT return value is defined as a Field object in the AML, and the field -size is less than or equal to the default width of an integer (32 or 64),_MAT +size is less than or equal to the default width of an integer (32 or +64),_MAT can incorrectly return an Integer instead of a Buffer. ACPICA now automatically repairs this problem. ACPICA BZ 810. @@ -891,7 +1045,8 @@ within the returned Package. ACPICA BZ 8 Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -934,8 +1089,10 @@ Fixed a possible memory leak in the inte the package initializer list is longer than the defined size of the package. This apparently can only happen if the BIOS changes the package size on the fly (seen in a _PSS object), as ASL compilers do not allow this. The -interpreter will truncate the package to the defined size (and issue an error -message), but previously could leave the extra objects undeleted if they were +interpreter will truncate the package to the defined size (and issue an +error +message), but previously could leave the extra objects undeleted if they +were pre-created during the argument processing (such is the case if the package consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. @@ -955,7 +1112,8 @@ return type cannot be performed. ACPICA Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -1005,13 +1163,17 @@ EINJ, ERST, and HEST. Other newly suppor have been some ACPI 4.0 changes to other existing tables. Split the large actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. -ACPI 4.0: Implemented predefined name validation for all new names. There are -31 new names in ACPI 4.0. The predefined validation module was split into two +ACPI 4.0: Implemented predefined name validation for all new names. There +are +31 new names in ACPI 4.0. The predefined validation module was split into +two files. The new file is namespace/nsrepair.c. ACPICA BZ 770. Implemented support for so-called "module-level executable code". This is -executable AML code that exists outside of any control method and is intended -to be executed at table load time. Although illegal since ACPI 2.0, this type +executable AML code that exists outside of any control method and is +intended +to be executed at table load time. Although illegal since ACPI 2.0, this +type of code still exists and is apparently still being created. Blocks of this code are now detected and executed as intended. Currently, the code blocks must exist under either an If, Else, or While construct; these are the @@ -1027,7 +1189,8 @@ be repaired: _ALR, _CSD, _HPX, _MLS, _PR 790. Fixed a regression introduced in 20090625 for the AcpiGetDevices interface. -The _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA +The _HID/_CID matching was broken and no longer matched IDs correctly. +ACPICA BZ 793. Fixed a problem with AcpiReset where the reset would silently fail if the @@ -1041,12 +1204,14 @@ does not exist during an attempt to writ (However, some hosts already delete the code that writes this bit, and the code may in fact be obsolete at this date.) ACPICA BZ 799. -Fixed a problem where AcpiTerminate could fault if inadvertently called twice +Fixed a problem where AcpiTerminate could fault if inadvertently called +twice in succession. ACPICA BZ 795. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -1091,7 +1256,8 @@ been added - utilities/utids.c. ACPICA B Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit transfers. The Value parameter has been extended from 32 bits to 64 bits in -order to support new ACPI 4.0 tables. These changes will require an update to +order to support new ACPI 4.0 tables. These changes will require an update +to all callers of these interfaces. See the ACPICA Programmer Reference for details. ACPICA BZ 768. @@ -1119,7 +1285,8 @@ tree head. ACPICA BZ 776. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -1143,7 +1310,8 @@ predefined names and control methods (31 1) ACPI CA Core Subsystem: Disabled the preservation of the SCI enable bit in the PM1 control register. -The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be +The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to +be a "preserved" bit - "OSPM always preserves this bit position", section 4.7.3.2.1. However, some machines fail if this bit is in fact preserved because the bit needs to be explicitly set by the OS as a workaround. No @@ -1155,7 +1323,8 @@ incorrectly formed _PRT package could ca ensure that each package element is actually a sub-package. Implemented a new interface to install or override a single control method, -AcpiInstallMethod. This interface is useful when debugging in order to repair +AcpiInstallMethod. This interface is useful when debugging in order to +repair an existing method or to install a missing method without having to override the entire ACPI table. See the ACPICA Programmer Reference for use and examples. Lin Ming, Bob Moore. @@ -1169,7 +1338,8 @@ caller. Lin Ming. Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple mutexes of the same sync level are acquired but then not released in strict -opposite order, the internally maintained Current Sync Level becomes confused +opposite order, the internally maintained Current Sync Level becomes +confused and can cause subsequent execution errors. ACPICA BZ 471. Changed the allowable release order for ASL mutex objects. The ACPI 4.0 @@ -1192,7 +1362,8 @@ and reduced code for this frequently use Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -1217,10 +1388,12 @@ Fixed a compatibility issue with the rec mechanism. For windows compatibility, 1) On a port protection violation, simply ignore the request and do not return an exception (allow the control method to continue execution.) 2) If only part of the request overlaps a -protected port, read/write the individual ports that are not protected. Linux +protected port, read/write the individual ports that are not protected. +Linux BZ 13036. Lin Ming -Enhanced the execution of the ASL/AML BreakPoint operator so that it actually +Enhanced the execution of the ASL/AML BreakPoint operator so that it +actually breaks into the AML debugger if the debugger is present. This matches the ACPI-defined behavior. @@ -1233,12 +1406,14 @@ ACPICA BZ 766, 767. Fixed a number of possible warnings when compiling with gcc 4+ (depending on warning options.) Examples include printf formats, aliasing, unused globals, missing prototypes, missing switch default statements, use of non-ANSI -library functions, use of non-ANSI constructs. See generate/unix/Makefile for +library functions, use of non-ANSI constructs. See generate/unix/Makefile +for a list of warning options used with gcc 3 and 4. ACPICA BZ 735. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -1250,10 +1425,12 @@ much larger code and data size. 2) iASL Compiler/Disassembler and Tools: -iASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on +iASL: Fixed a generation warning from Bison 2.3 and fixed several warnings +on the 64-bit build. -iASL: Fixed a problem where the Unix/Linux versions of the compiler could not +iASL: Fixed a problem where the Unix/Linux versions of the compiler could +not correctly digest Windows/DOS formatted files (with CR/LF). iASL: Added a new option for "quiet mode" (-va) that produces only the @@ -1281,8 +1458,10 @@ execute fully on Cygwin. 1) ACPI CA Core Subsystem: Fixed a possible race condition between AcpiWalkNamespace and dynamic table -unloads. Added a reader/writer locking mechanism to allow multiple concurrent -namespace walks (readers), but block a dynamic table unload until it can gain +unloads. Added a reader/writer locking mechanism to allow multiple +concurrent +namespace walks (readers), but block a dynamic table unload until it can +gain exclusive write access to the namespace. This fixes a problem where a table unload could (possibly catastrophically) delete the portion of the namespace that is currently being examined by a walk. Adds a new file, utlock.c, that @@ -1316,7 +1495,8 @@ performed on a per-field basis instead o Modified the handling of the PM1 Status Register ignored bit (bit 11.) Ignored bits must be "preserved" according to the ACPI spec. Usually, this means a read/modify/write when writing to the register. However, for status -registers, writing a one means clear the event. Writing a zero means preserve +registers, writing a one means clear the event. Writing a zero means +preserve the event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, and the ACPICA code now simply always writes a zero to the ignored bit. @@ -1356,7 +1536,8 @@ AcpiGetRegisterUnlocked function is no l This will improve performance for reads on these registers. ACPICA BZ 760. Fixed the parameter validation for AcpiRead/Write. Now return -AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if +AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS +if the register has an address of zero. Previously, these cases simply returned AE_OK. For optional registers such as PM1B status/enable/control, the caller should check for a valid register address before calling. ACPICA BZ 748. @@ -1369,27 +1550,33 @@ and condensing duplicate code to reduce Added new functions to transparently handle the possibly split PM1 A/B registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions -now handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ +now handle the split registers for PM1 Status, Enable, and Control. ACPICA +BZ 746. Added a function to handle the PM1 control registers, AcpiHwWritePm1Control. -This function writes both of the PM1 control registers (A/B). These registers +This function writes both of the PM1 control registers (A/B). These +registers are different than the PM1 A/B status and enable registers in that different values can be written to the A/B registers. Most notably, the SLP_TYP bits -can be different, as per the values returned from the _Sx predefined methods. +can be different, as per the values returned from the _Sx predefined +methods. Removed an extra register write within AcpiHwClearAcpiStatus. This function was writing an optional PM1B status register twice. The existing call to the low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B register. ACPICA BZ 751. -Split out the PM1 Status registers from the FADT. Added new globals for these +Split out the PM1 Status registers from the FADT. Added new globals for +these registers (A/B), similar to the way the PM1 Enable registers are handled. Instead of overloading the FADT Event Register blocks. This makes the code clearer and less prone to error. -Fixed the warning message for when the platform contains too many ACPI tables -for the default size of the global root table data structure. The calculation +Fixed the warning message for when the platform contains too many ACPI +tables +for the default size of the global root table data structure. The +calculation for the truncation value was incorrect. Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this @@ -1404,13 +1591,15 @@ Conditionally compile the AcpiSetFirmwar function is only needed on 64-bit host operating systems and is thus not included for 32-bit hosts. -Debug output: print the input and result for invocations of the _OSI reserved +Debug output: print the input and result for invocations of the _OSI +reserved control method via the ACPI_LV_INFO debug level. Also, reduced some of the verbosity of this debug level. Len Brown. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -1435,7 +1624,8 @@ virtually every file in the ACPICA core the tools/utilities. Implemented a change to allow the host to override any ACPI table, including -dynamically loaded tables. Previously, only the DSDT could be replaced by the +dynamically loaded tables. Previously, only the DSDT could be replaced by +the host. With this change, the AcpiOsTableOverride interface is called for each table found in the RSDT/XSDT during ACPICA initialization, and also whenever a table is dynamically loaded via the AML Load operator. @@ -1448,7 +1638,8 @@ with the actual namespace entry which is Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -1494,7 +1685,8 @@ file, components/hardware/hwxface.c Enhanced the FADT parsing and low-level ACPI register access: The ACPI register lengths within the FADT are now used, and the low level ACPI register access no longer hardcodes the ACPI register lengths. Given that -there may be some risk in actually trusting the FADT register lengths, a run- +there may be some risk in actually trusting the FADT register lengths, a +run- time option was added to fall back to the default hardcoded lengths if the FADT proves to contain incorrect values - UseDefaultRegisterWidths. This option is set to true for now, and a warning is issued if a suspicious FADT @@ -1507,12 +1699,14 @@ Packages. Lin Ming. Added semaphore support to the Linux/Unix application OS-services layer (OSL). ACPICA BZ 448. Lin Ming. -Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes will +Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes +will be implemented in the OSL, or will binary semaphores be used instead. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The -debug version of the code includes the debug output trace mechanism and has a +debug version of the code includes the debug output trace mechanism and has +a much larger code and data size. Previous Release: @@ -1524,7 +1718,8 @@ much larger code and data size. 2) iASL Compiler/Disassembler and Tools: -iASL: Completed the '-e' option to include additional ACPI tables in order to +iASL: Completed the '-e' option to include additional ACPI tables in order +to aid with disassembly and External statement generation. ACPICA BZ 742. Lin Ming. @@ -1541,7 +1736,8 @@ Disassembler: Updates for several ACPI d 1) ACPI CA Core Subsystem: -Restructured the ACPICA header files into public/private. acpi.h now includes +Restructured the ACPICA header files into public/private. acpi.h now +includes only the "public" acpica headers. All other acpica headers are "private" and should not be included by acpica users. One new file, accommon.h is used to include the commonly used private headers for acpica code generation. Future @@ -1558,7 +1754,8 @@ with a valid null-terminated string. Lin Updated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector into two: one for the 32-bit vector, another for the 64-bit vector. This is required because the host OS must setup the wake much differently for each -vector (real vs. protected mode, etc.) and the interface itself should not be +vector (real vs. protected mode, etc.) and the interface itself should not +be deciding which vector to use. Also, eliminated the GetFirmwareWakingVector interface, as it served no purpose (only the firmware reads the vector, OS only writes the vector.) ACPICA BZ 731. @@ -1599,13 +1796,15 @@ handler installation, and calling a cont source/tools/examples. *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***