1---------------------------------------- 218 December 2013. Summary of changes for version 20131218: 3 4Global note: The ACPI 5.0A specification was released this month. There 5are no changes needed for ACPICA since this release of ACPI is an 6errata/clarification release. The specification is available at 7acpi.info. 8 9 101) ACPICA kernel-resident subsystem: 11 12Added validation of the XSDT root table if it is present. Some older 13platforms contain an XSDT that is ill-formed or otherwise invalid (such 14as containing some or all entries that are NULL pointers). This change 15adds a new function to validate the XSDT before actually using it. If the 16XSDT is found to be invalid, ACPICA will now automatically fall back to 17using the RSDT instead. Original implementation by Zhao Yakui. Ported to 18ACPICA and enhanced by Lv Zheng and Bob Moore. 19 20Added a runtime option to ignore the XSDT and force the use of the RSDT. 21This change adds a runtime option that will force ACPICA to use the RSDT 22instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec 23requires that an XSDT be used instead of the RSDT, the XSDT has been 24found to be corrupt or ill-formed on some machines. Lv Zheng. 25 26Added a runtime option to favor 32-bit FADT register addresses over the 2764-bit addresses. This change adds an option to favor 32-bit FADT 28addresses when there is a conflict between the 32-bit and 64-bit versions 29of the same register. The default behavior is to use the 64-bit version 30in accordance with the ACPI specification. This can now be overridden via 31the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng. 32 33During the change above, the internal "Convert FADT" and "Verify FADT" 34functions have been merged to simplify the code, making it easier to 35understand and maintain. ACPICA BZ 933. 36 37Improve exception reporting and handling for GPE block installation. 38Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the 39status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019. 40 41Added helper macros to extract bus/segment numbers from the HEST table. 42This change adds two macros to extract the encoded bus and segment 43numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT. 44Betty Dall <betty.dall@hp.com> 45 46Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used 47by ACPICA. It is not a public macro, so it should have no effect on 48existing OSV code. Lv Zheng. 49 50Example Code and Data Size: These are the sizes for the OS-independent 51acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 52debug version of the code includes the debug output trace mechanism and 53has a much larger code and data size. 54 55 Current Release: 56 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 57 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 58 Previous Release: 59 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 60 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 61 62 632) iASL Compiler/Disassembler and Tools: 64 65Disassembler: Improved pathname support for emitted External() 66statements. This change adds full pathname support for external names 67that have been resolved internally by the inclusion of additional ACPI 68tables (via the iASL -e option). Without this change, the disassembler 69can emit multiple externals for the same object, or it become confused 70when the Scope() operator is used on an external object. Overall, greatly 71improves the ability to actually recompile the emitted ASL code when 72objects a referenced across multiple ACPI tables. Reported by Michael 73Tsirkin (mst@redhat.com). 74 75Tests/ASLTS: Updated functional control suite to execute with no errors. 76David Box. Fixed several errors related to the testing of the interpreter 77slack mode. Lv Zheng. 78 79iASL: Added support to detect names that are declared within a control 80method, but are unused (these are temporary names that are only valid 81during the time the method is executing). A remark is issued for these 82cases. ACPICA BZ 1022. 83 84iASL: Added full support for the DBG2 table. Adds full disassembler, 85table compiler, and template generator support for the DBG2 table (Debug 86Port 2 table). 87 88iASL: Added full support for the PCCT table, update the table definition. 89Updates the PCCT table definition in the actbl3.h header and adds table 90compiler and template generator support. 91 92iASL: Added an option to emit only error messages (no warnings/remarks). 93The -ve option will enable only error messages, warnings and remarks are 94suppressed. This can simplify debugging when only the errors are 95important, such as when an ACPI table is disassembled and there are many 96warnings and remarks -- but only the actual errors are of real interest. 97 98Example ACPICA code (source/tools/examples): Updated the example code so 99that it builds to an actual working program, not just example code. Added 100ACPI tables and execution of an example control method in the DSDT. Added 101makefile support for Unix generation. 102 103---------------------------------------- 10415 November 2013. Summary of changes for version 20131115: 105 106This release is available at https://acpica.org/downloads 107 108 1091) ACPICA kernel-resident subsystem: 110 111Resource Manager: Fixed loop termination for the "get AML length" 112function. The loop previously had an error termination on a NULL resource 113pointer, which can never happen since the loop simply increments a valid 114resource pointer. This fix changes the loop to terminate with an error on 115an invalid end-of-buffer condition. The problem can be seen as an 116infinite loop by callers to AcpiSetCurrentResources with an invalid or 117corrupted resource descriptor, or a resource descriptor that is missing 118an END_TAG descriptor. Reported by Dan Carpenter 119<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore. 120 121Table unload and ACPICA termination: Delete all attached data objects 122during namespace node deletion. This fix updates namespace node deletion 123to delete the entire list of attached objects (attached via 124AcpiAttachObject) instead of just one of the attached items. ACPICA BZ 1251024. Tomasz Nowicki (tomasz.nowicki@linaro.org). 126 127ACPICA termination: Added support to delete all objects attached to the 128root namespace node. This fix deletes any and all objects that have been 129attached to the root node via AcpiAttachData. Previously, none of these 130objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026. 131 132Debug output: Do not emit the function nesting level for the in-kernel 133build. The nesting level is really only useful during a single-thread 134execution. Therefore, only enable this output for the AcpiExec utility. 135Also, only emit the thread ID when executing under AcpiExec (Context 136switches are still always detected and a message is emitted). ACPICA BZ 137972. 138 139Example Code and Data Size: These are the sizes for the OS-independent 140acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 141debug version of the code includes the debug output trace mechanism and 142has a much larger code and data size. 143 144 Current Release: 145 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 146 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 147 Previous Release: 148 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 149 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 150 151 1522) iASL Compiler/Disassembler and Tools: 153 154AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the 155correct portable POSIX header for terminal control functions. 156 157Disassembler: Fixed control method invocation issues related to the use 158of the CondRefOf() operator. The problem is seen in the disassembly where 159control method invocations may not be disassembled properly if the 160control method name has been used previously as an argument to CondRefOf. 161The solution is to not attempt to emit an external declaration for the 162CondRefOf target (it is not necessary in the first place). This prevents 163disassembler object type confusion. ACPICA BZ 988. 164 165Unix Makefiles: Added an option to disable compiler optimizations and the 166_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA 167with optimizations (reportedly, gcc 4.4 for example). This change adds a 168command line option for make (NOOPT) that disables all compiler 169optimizations and the _FORTIFY_SOURCE compiler flag. The default 170optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ 1711034. Lv Zheng, Bob Moore. 172 173Tests/ASLTS: Added options to specify individual test cases and modes. 174This allows testers running aslts.sh to optionally specify individual 175test modes and test cases. Also added an option to disable the forced 176generation of the ACPICA tools from source if desired. Lv Zheng. 177 178---------------------------------------- 17927 September 2013. Summary of changes for version 20130927: 180 181This release is available at https://acpica.org/downloads 182 183 1841) ACPICA kernel-resident subsystem: 185 186Fixed a problem with store operations to reference objects. This change 187fixes a problem where a Store operation to an ArgX object that contained 188a 189reference to a field object did not complete the automatic dereference 190and 191then write to the actual field object. Instead, the object type of the 192field object was inadvertently changed to match the type of the source 193operand. The new behavior will actually write to the field object (buffer 194field or field unit), thus matching the correct ACPI-defined behavior. 195 196Implemented support to allow the host to redefine individual OSL 197prototypes. This change enables the host to redefine OSL prototypes found 198in the acpiosxf.h file. This allows the host to implement OSL interfaces 199with a macro or inlined function. Further, it allows the host to add any 200additional required modifiers such as __iomem, __init, __exit, etc., as 201necessary on a per-interface basis. Enables maximum flexibility for the 202OSL interfaces. Lv Zheng. 203 204Hardcoded the access width for the FADT-defined reset register. The ACPI 205specification requires the reset register width to be 8 bits. ACPICA now 206hardcodes the width to 8 and ignores the FADT width value. This provides 207compatibility with other ACPI implementations that have allowed BIOS code 208with bad register width values to go unnoticed. Matthew Garett, Bob 209Moore, 210Lv Zheng. 211 212Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is 213used 214in the OSL header (acpiosxf). The change modifies the position of this 215macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid 216build issues if the OSL defines the implementation of the interface to be 217an inline stub function. Lv Zheng. 218 219Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA 220initialization interfaces. This change adds a new macro for the main init 221and terminate external interfaces in order to support hosts that require 222additional or different processing for these functions. Changed from 223ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv 224Zheng, Bob Moore. 225 226Cleaned up the memory allocation macros for configurability. In the 227common 228case, the ACPI_ALLOCATE and related macros now resolve directly to their 229respective AcpiOs* OSL interfaces. Two options: 2301) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by 231default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define. 2322) For AcpiExec (and for debugging), the macros can optionally be 233resolved 234to the local ACPICA interfaces that track each allocation (local tracking 235is used to immediately detect memory leaks). 236Lv Zheng. 237 238Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel 239to predefine this macro to either TRUE or FALSE during the system build. 240 241Replaced __FUNCTION_ with __func__ in the gcc-specific header. 242 243Example Code and Data Size: These are the sizes for the OS-independent 244acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 245debug version of the code includes the debug output trace mechanism and 246has a much larger code and data size. 247 248 Current Release: 249 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 250 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 251 Previous Release: 252 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 253 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 254 255 2562) iASL Compiler/Disassembler and Tools: 257 258iASL: Implemented wildcard support for the -e option. This simplifies use 259when there are many SSDTs that must be included to resolve external 260method 261declarations. ACPICA BZ 1041. Example: 262 iasl -e ssdt*.dat -d dsdt.dat 263 264AcpiExec: Add history/line-editing for Unix/Linux systems. This change 265adds a portable module that implements full history and limited line 266editing for Unix and Linux systems. It does not use readline() due to 267portability issues. Instead it uses the POSIX termio interface to put the 268terminal in raw input mode so that the various special keys can be 269trapped 270(such as up/down-arrow for history support and left/right-arrow for line 271editing). Uses the existing debugger history mechanism. ACPICA BZ 1036. 272 273AcpiXtract: Add support to handle (ignore) "empty" lines containing only 274one or more spaces. This provides compatible with early or different 275versions of the AcpiDump utility. ACPICA BZ 1044. 276 277AcpiDump: Do not ignore tables that contain only an ACPI table header. 278Apparently, some BIOSs create SSDTs that contain an ACPI table header but 279no other data. This change adds support to dump these tables. Any tables 280shorter than the length of an ACPI table header remain in error (an error 281message is emitted). Reported by Yi Li. 282 283Debugger: Echo actual command along with the "unknown command" message. 284 285---------------------------------------- 28623 August 2013. Summary of changes for version 20130823: 287 2881) ACPICA kernel-resident subsystem: 289 290Implemented support for host-installed System Control Interrupt (SCI) 291handlers. Certain ACPI functionality requires the host to handle raw 292SCIs. For example, the "SCI Doorbell" that is defined for memory power 293state support requires the host device driver to handle SCIs to examine 294if the doorbell has been activated. Multiple SCI handlers can be 295installed to allow for future expansion. New external interfaces are 296AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for 297details. Lv Zheng, Bob Moore. ACPICA BZ 1032. 298 299Operation region support: Never locally free the handler "context" 300pointer. This change removes some dangerous code that attempts to free 301the handler context pointer in some (rare) circumstances. The owner of 302the handler owns this pointer and the ACPICA code should never touch it. 303Although not seen to be an issue in any kernel, it did show up as a 304problem (fault) under AcpiExec. Also, set the internal storage field for 305the context pointer to zero when the region is deactivated, simply for 306sanity. David Box. ACPICA BZ 1039. 307 308AcpiRead: On error, do not modify the return value target location. If an 309error happens in the middle of a split 32/32 64-bit I/O operation, do not 310modify the target of the return value pointer. Makes the code consistent 311with the rest of ACPICA. Bjorn Helgaas. 312 313Example Code and Data Size: These are the sizes for the OS-independent 314acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 315debug version of the code includes the debug output trace mechanism and 316has a much larger code and data size. 317 318 Current Release: 319 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 320 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 321 Previous Release: 322 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 323 Debug Version: 185.4K Code, 77.1K Data, 262.5K Total 324 325 3262) iASL Compiler/Disassembler and Tools: 327 328AcpiDump: Implemented several new features and fixed some problems: 3291) Added support to dump the RSDP, RSDT, and XSDT tables. 3302) Added support for multiple table instances (SSDT, UEFI). 3313) Added option to dump "customized" (overridden) tables (-c). 3324) Fixed a problem where some table filenames were improperly 333constructed. 3345) Improved some error messages, removed some unnecessary messages. 335 336iASL: Implemented additional support for disassembly of ACPI tables that 337contain invocations of external control methods. The -fe<file> option 338allows the import of a file that specifies the external methods along 339with the required number of arguments for each -- allowing for the 340correct disassembly of the table. This is a workaround for a limitation 341of AML code where the disassembler often cannot determine the number of 342arguments required for an external control method and generates incorrect 343ASL code. See the iASL reference for details. ACPICA BZ 1030. 344 345Debugger: Implemented a new command (paths) that displays the full 346pathnames (namepaths) and object types of all objects in the namespace. 347This is an alternative to the namespace command. 348 349Debugger: Implemented a new command (sci) that invokes the SCI dispatch 350mechanism and any installed handlers. 351 352iASL: Fixed a possible segfault for "too many parent prefixes" condition. 353This can occur if there are too many parent prefixes in a namepath (for 354example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035. 355 356Application OSLs: Set the return value for the PCI read functions. These 357functions simply return AE_OK, but should set the return value to zero 358also. This change implements this. ACPICA BZ 1038. 359 360Debugger: Prevent possible command line buffer overflow. Increase the 361size of a couple of the debugger line buffers, and ensure that overflow 362cannot happen. ACPICA BZ 1037. 363 364iASL: Changed to abort immediately on serious errors during the parsing 365phase. Due to the nature of ASL, there is no point in attempting to 366compile these types of errors, and they typically end up causing a 367cascade of hundreds of errors which obscure the original problem. 368 369---------------------------------------- 37025 July 2013. Summary of changes for version 20130725: 371 3721) ACPICA kernel-resident subsystem: 373 374Fixed a problem with the DerefOf operator where references to FieldUnits 375and BufferFields incorrectly returned the parent object, not the actual 376value of the object. After this change, a dereference of a FieldUnit 377reference results in a read operation on the field to get the value, and 378likewise, the appropriate BufferField value is extracted from the target 379buffer. 380 381Fixed a problem where the _WAK method could cause a fault under these 382circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK 383method returned no value. The problem is rarely seen because most kernels 384run ACPICA in slack mode. 385 386For the DerefOf operator, a fatal error now results if an attempt is made 387to dereference a reference (created by the Index operator) to a NULL 388package element. Provides compatibility with other ACPI implementations, 389and this behavior will be added to a future version of the ACPI 390specification. 391 392The ACPI Power Management Timer (defined in the FADT) is now optional. 393This provides compatibility with other ACPI implementations and will 394appear in the next version of the ACPI specification. If there is no PM 395Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of 396zero in the FADT indicates no PM timer. 397 398Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This 399allows the host to globally enable/disable all vendor strings, all 400feature strings, or both. Intended to be primarily used for debugging 401purposes only. Lv Zheng. 402 403Expose the collected _OSI data to the host via a global variable. This 404data tracks the highest level vendor ID that has been invoked by the BIOS 405so that the host (and potentially ACPICA itself) can change behaviors 406based upon the age of the BIOS. 407 408Example Code and Data Size: These are the sizes for the OS-independent 409acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 410debug version of the code includes the debug output trace mechanism and 411has a much larger code and data size. 412 413 Current Release: 414 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 415 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 416 Previous Release: 417 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 418 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 419 420 4212) iASL Compiler/Disassembler and Tools: 422 423iASL: Created the following enhancements for the -so option (create 424offset table): 4251)Add offsets for the last nameseg in each namepath for every supported 426object type 4272)Add support for Processor, Device, Thermal Zone, and Scope objects 4283)Add the actual AML opcode for the parent object of every supported 429object type 4304)Add support for the ZERO/ONE/ONES AML opcodes for integer objects 431 432Disassembler: Emit all unresolved external symbols in a single block. 433These are external references to control methods that could not be 434resolved, and thus, the disassembler had to make a guess at the number of 435arguments to parse. 436 437iASL: The argument to the -T option (create table template) is now 438optional. If not specified, the default table is a DSDT, typically the 439most common case. 440 441---------------------------------------- 44226 June 2013. Summary of changes for version 20130626: 443 4441) ACPICA kernel-resident subsystem: 445 446Fixed an issue with runtime repair of the _CST object. Null or invalid 447elements were not always removed properly. Lv Zheng. 448 449Removed an arbitrary restriction of 256 GPEs per GPE block (such as the 450FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, 451the maximum number of GPEs is 1016. Use of multiple GPE block devices 452makes the system-wide number of GPEs essentially unlimited. 453 454Example Code and Data Size: These are the sizes for the OS-independent 455acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 456debug version of the code includes the debug output trace mechanism and 457has a much larger code and data size. 458 459 Current Release: 460 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 461 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 462 Previous Release: 463 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 464 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 465 466 4672) iASL Compiler/Disassembler and Tools: 468 469Portable AcpiDump: Implemented full support for the Linux and FreeBSD 470hosts. Now supports Linux, FreeBSD, and Windows. 471 472Disassembler: Added some missing types for the HEST and EINJ tables: "Set 473Error Type With Address", "CMCI", "MCE", and "Flush Cacheline". 474 475iASL/Preprocessor: Implemented full support for nested 476#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. 477 478Disassembler: Expanded maximum output string length to 64K. Was 256 bytes 479max. The original purpose of this constraint was to limit the amount of 480debug output. However, the string function in question (UtPrintString) is 481now used for the disassembler also, where 256 bytes is insufficient. 482Reported by RehabMan@GitHub. 483 484iASL/DataTables: Fixed some problems and issues with compilation of DMAR 485tables. ACPICA BZ 999. Lv Zheng. 486 487iASL: Fixed a couple of error exit issues that could result in a "Could 488not delete <file>" message during ASL compilation. 489 490AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though 491the actual signatures for these tables are "FACP" and "APIC", 492respectively. 493 494AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI 495tables are allowed to have multiple instances. 496 497---------------------------------------- 49817 May 2013. Summary of changes for version 20130517: 499 5001) ACPICA kernel-resident subsystem: 501 502Fixed a regression introduced in version 20130328 for _INI methods. This 503change fixes a problem introduced in 20130328 where _INI methods are no 504longer executed properly because of a memory block that was not 505initialized correctly. ACPICA BZ 1016. Tomasz Nowicki 506<tomasz.nowicki@linaro.org>. 507 508Fixed a possible problem with the new extended sleep registers in the 509ACPI 5105.0 FADT. Do not use these registers (even if populated) unless the HW- 511reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 5121020. Lv Zheng. 513 514Implemented return value repair code for _CST predefined objects: Sort 515the 516list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. 517 518Implemented a debug-only option to disable loading of SSDTs from the 519RSDT/XSDT during ACPICA initialization. This can be useful for debugging 520ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in 521acglobal.h - ACPICA BZ 1005. Lv Zheng. 522 523Fixed some issues in the ACPICA initialization and termination code: 524Tomasz Nowicki <tomasz.nowicki@linaro.org> 5251) Clear events initialized flag upon event component termination. ACPICA 526BZ 1013. 5272) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 5283) Delete global lock pending lock during termination. ACPICA BZ 1012. 5294) Clear debug buffer global on termination to prevent possible multiple 530delete. ACPICA BZ 1010. 531 532Standardized all switch() blocks across the entire source base. After 533many 534years, different formatting for switch() had crept in. This change makes 535the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. 536 537Split some files to enhance ACPICA modularity and configurability: 5381) Split buffer dump routines into utilities/utbuffer.c 5392) Split internal error message routines into utilities/uterror.c 5403) Split table print utilities into tables/tbprint.c 5414) Split iASL command-line option processing into asloptions.c 542 543Makefile enhancements: 5441) Support for all new files above. 5452) Abort make on errors from any subcomponent. Chao Guan. 5463) Add build support for Apple Mac OS X. Liang Qi. 547 548Example Code and Data Size: These are the sizes for the OS-independent 549acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 550debug version of the code includes the debug output trace mechanism and 551has a much larger code and data size. 552 553 Current Release: 554 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 555 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 556 Previous Release: 557 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 558 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 559 560 5612) iASL Compiler/Disassembler and Tools: 562 563New utility: Implemented an easily portable version of the acpidump 564utility to extract ACPI tables from the system (or a file) in an ASCII 565hex 566dump format. The top-level code implements the various command line 567options, file I/O, and table dump routines. To port to a new host, only 568three functions need to be implemented to get tables -- since this 569functionality is OS-dependent. See the tools/acpidump/apmain.c module and 570the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 5711) The Windows version obtains the ACPI tables from the Registry. 5722) The Linux version is under development. 5733) Other hosts - If an OS-dependent module is submitted, it will be 574distributed with ACPICA. 575 576iASL: Fixed a regression for -D preprocessor option (define symbol). A 577restructuring/change to the initialization sequence caused this option to 578no longer work properly. 579 580iASL: Implemented a mechanism to disable specific warnings and remarks. 581Adds a new command line option, "-vw <messageid> as well as "#pragma 582disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore. 583 584iASL: Fix for too-strict package object validation. The package object 585validation for return values from the predefined names is a bit too 586strict, it does not allow names references within the package (which will 587be resolved at runtime.) These types of references cannot be validated at 588compile time. This change ignores named references within package objects 589for names that return or define static packages. 590 591Debugger: Fixed the 80-character command line limitation for the History 592command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. 593 594iASL: Added control method and package support for the -so option 595(generates AML offset table for BIOS support.) 596 597iASL: issue a remark if a non-serialized method creates named objects. If 598a thread blocks within the method for any reason, and another thread 599enters the method, the method will fail because an attempt will be made 600to 601create the same (named) object twice. In this case, issue a remark that 602the method should be marked serialized. NOTE: may become a warning later. 603ACPICA BZ 909. 604 605---------------------------------------- 60618 April 2013. Summary of changes for version 20130418: 607 6081) ACPICA kernel-resident subsystem: 609 610Fixed a possible buffer overrun during some rare but specific field unit 611read operations. This overrun can only happen if the DSDT version is 1 -- 612meaning that all AML integers are 32 bits -- and the field length is 613between 33 and 55 bits long. During the read, an internal buffer object 614is 615created for the field unit because the field is larger than an integer 616(32 617bits). However, in this case, the buffer will be incorrectly written 618beyond the end because the buffer length is less than the internal 619minimum 620of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes 621long, but a full 8 bytes will be written. 622 623Updated the Embedded Controller "orphan" _REG method support. This refers 624to _REG methods under the EC device that have no corresponding operation 625region. This is allowed by the ACPI specification. This update removes a 626dependency on the existence an ECDT table. It will execute an orphan _REG 627method as long as the operation region handler for the EC is installed at 628the EC device node and not the namespace root. Rui Zhang (original 629update), Bob Moore (update/integrate). 630 631Implemented run-time argument typechecking for all predefined ACPI names 632(_STA, _BIF, etc.) This change performs object typechecking on all 633incoming arguments for all predefined names executed via 634AcpiEvaluateObject. This ensures that ACPI-related device drivers are 635passing correct object types as well as the correct number of arguments 636(therefore identifying any issues immediately). Also, the ASL/namespace 637definition of the predefined name is checked against the ACPI 638specification for the proper argument count. Adds one new file, 639nsarguments.c 640 641Changed an exception code for the ASL UnLoad() operator. Changed the 642exception code for the case where the input DdbHandle is invalid, from 643AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. 644 645Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the 646global makefile. The use of this flag causes compiler errors on earlier 647versions of GCC, so it has been removed for compatibility. 648 649Miscellaneous cleanup: 6501) Removed some unused/obsolete macros 6512) Fixed a possible memory leak in the _OSI support 6523) Removed an unused variable in the predefined name support 6534) Windows OSL: remove obsolete reference to a memory list field 654 655Example Code and Data Size: These are the sizes for the OS-independent 656acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 657debug version of the code includes the debug output trace mechanism and 658has a much larger code and data size. 659 660 Current Release: 661 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 662 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 663 Previous Release: 664 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 665 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 666 667 6682) iASL Compiler/Disassembler and Tools: 669 670AcpiExec: Added installation of a handler for the SystemCMOS address 671space. This prevents control method abort if a method accesses this 672space. 673 674AcpiExec: Added support for multiple EC devices, and now install EC 675operation region handler(s) at the actual EC device instead of the 676namespace root. This reflects the typical behavior of host operating 677systems. 678 679AcpiExec: Updated to ensure that all operation region handlers are 680installed before the _REG methods are executed. This prevents a _REG 681method from aborting if it accesses an address space has no handler. 682AcpiExec installs a handler for every possible address space. 683 684Debugger: Enhanced the "handlers" command to display non-root handlers. 685This change enhances the handlers command to display handlers associated 686with individual devices throughout the namespace, in addition to the 687currently supported display of handlers associated with the root 688namespace 689node. 690 691ASL Test Suite: Several test suite errors have been identified and 692resolved, reducing the total error count during execution. Chao Guan. 693 694---------------------------------------- 69528 March 2013. Summary of changes for version 20130328: 696 6971) ACPICA kernel-resident subsystem: 698 699Fixed several possible race conditions with the internal object reference 700counting mechanism. Some of the external ACPICA interfaces update object 701reference counts without holding the interpreter or namespace lock. This 702change adds a spinlock to protect reference count updates on the internal 703ACPICA objects. Reported by and with assistance from Andriy Gapon 704(avg@FreeBSD.org). 705 706FADT support: Removed an extraneous warning for very large GPE register 707sets. This change removes a size mismatch warning if the legacy length 708field for a GPE register set is larger than the 64-bit GAS structure can 709accommodate. GPE register sets can be larger than the 255-bit width 710limitation of the GAS structure. Linn Crosetto (linn@hp.com). 711 712_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error 713return from this interface. Handles a possible timeout case if 714ACPI_WAIT_FOREVER is modified by the host to be a value less than 715"forever". Jung-uk Kim. 716 717Predefined name support: Add allowed/required argument type information 718to 719the master predefined info table. This change adds the infrastructure to 720enable typechecking on incoming arguments for all predefined 721methods/objects. It does not actually contain the code that will fully 722utilize this information, this is still under development. Also condenses 723some duplicate code for the predefined names into a new module, 724utilities/utpredef.c 725 726Example Code and Data Size: These are the sizes for the OS-independent 727acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 728debug version of the code includes the debug output trace mechanism and 729has a much larger code and data size. 730 731 Previous Release: 732 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 733 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 734 Current Release: 735 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 736 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 737 738 7392) iASL Compiler/Disassembler and Tools: 740 741iASL: Implemented a new option to simplify the development of ACPI- 742related 743BIOS code. Adds support for a new "offset table" output file. The -so 744option will create a C table containing the AML table offsets of various 745named objects in the namespace so that BIOS code can modify them easily 746at 747boot time. This can simplify BIOS runtime code by eliminating expensive 748searches for "magic values", enhancing boot times and adding greater 749reliability. With assistance from Lee Hamel. 750 751iASL: Allow additional predefined names to return zero-length packages. 752Now, all predefined names that are defined by the ACPI specification to 753return a "variable-length package of packages" are allowed to return a 754zero length top-level package. This allows the BIOS to tell the host that 755the requested feature is not supported, and supports existing BIOS/ASL 756code and practices. 757 758iASL: Changed the "result not used" warning to an error. This is the case 759where an ASL operator is effectively a NOOP because the result of the 760operation is not stored anywhere. For example: 761 Add (4, Local0) 762There is no target (missing 3rd argument), nor is the function return 763value used. This is potentially a very serious problem -- since the code 764was probably intended to do something, but for whatever reason, the value 765was not stored. Therefore, this issue has been upgraded from a warning to 766an error. 767 768AcpiHelp: Added allowable/required argument types to the predefined names 769info display. This feature utilizes the recent update to the predefined 770names table (above). 771 772---------------------------------------- 77314 February 2013. Summary of changes for version 20130214: 774 7751) ACPICA Kernel-resident Subsystem: 776 777Fixed a possible regression on some hosts: Reinstated the safe return 778macros (return_ACPI_STATUS, etc.) that ensure that the argument is 779evaluated only once. Although these macros are not needed for the ACPICA 780code itself, they are often used by ACPI-related host device drivers 781where 782the safe feature may be necessary. 783 784Fixed several issues related to the ACPI 5.0 reduced hardware support 785(SOC): Now ensure that if the platform declares itself as hardware- 786reduced 787via the FADT, the following functions become NOOPs (and always return 788AE_OK) because ACPI is always enabled by definition on these machines: 789 AcpiEnable 790 AcpiDisable 791 AcpiHwGetMode 792 AcpiHwSetMode 793 794Dynamic Object Repair: Implemented additional runtime repairs for 795predefined name return values. Both of these repairs can simplify code in 796the related device drivers that invoke these methods: 7971) For the _STR and _MLS names, automatically repair/convert an ASCII 798string to a Unicode buffer. 7992) For the _CRS, _PRS, and _DMA names, return a resource descriptor with 800a 801lone end tag descriptor in the following cases: A Return(0) was executed, 802a null buffer was returned, or no object at all was returned (non-slack 803mode only). Adds a new file, nsconvert.c 804ACPICA BZ 998. Bob Moore, Lv Zheng. 805 806Resource Manager: Added additional code to prevent possible infinite 807loops 808while traversing corrupted or ill-formed resource template buffers. Check 809for zero-length resource descriptors in all code that loops through 810resource templates (the length field is used to index through the 811template). This change also hardens the external AcpiWalkResources and 812AcpiWalkResourceBuffer interfaces. 813 814Local Cache Manager: Enhanced the main data structure to eliminate an 815unnecessary mechanism to access the next object in the list. Actually 816provides a small performance enhancement for hosts that use the local 817ACPICA cache manager. Jung-uk Kim. 818 819Example Code and Data Size: These are the sizes for the OS-independent 820acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 821debug version of the code includes the debug output trace mechanism and 822has a much larger code and data size. 823 824 Previous Release: 825 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 826 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 827 Current Release: 828 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 829 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 830 831 8322) iASL Compiler/Disassembler and Tools: 833 834iASL/Disassembler: Fixed several issues with the definition of the ACPI 8355.0 RASF table (RAS Feature Table). This change incorporates late changes 836that were made to the ACPI 5.0 specification. 837 838iASL/Disassembler: Added full support for the following new ACPI tables: 839 1) The MTMR table (MID Timer Table) 840 2) The VRTC table (Virtual Real Time Clock Table). 841Includes header file, disassembler, table compiler, and template support 842for both tables. 843 844iASL: Implemented compile-time validation of package objects returned by 845predefined names. This new feature validates static package objects 846returned by the various predefined names defined to return packages. Both 847object types and package lengths are validated, for both parent packages 848and sub-packages, if any. The code is similar in structure and behavior 849to 850the runtime repair mechanism within the AML interpreter and uses the 851existing predefined name information table. Adds a new file, aslprepkg.c. 852ACPICA BZ 938. 853 854iASL: Implemented auto-detection of binary ACPI tables for disassembly. 855This feature detects a binary file with a valid ACPI table header and 856invokes the disassembler automatically. Eliminates the need to 857specifically invoke the disassembler with the -d option. ACPICA BZ 862. 858 859iASL/Disassembler: Added several warnings for the case where there are 860unresolved control methods during the disassembly. This can potentially 861cause errors when the output file is compiled, because the disassembler 862assumes zero method arguments in these cases (it cannot determine the 863actual number of arguments without resolution/definition of the method). 864 865Debugger: Added support to display all resources with a single command. 866Invocation of the resources command with no arguments will now display 867all 868resources within the current namespace. 869 870AcpiHelp: Added descriptive text for each ACPICA exception code displayed 871via the -e option. 872 873---------------------------------------- 87417 January 2013. Summary of changes for version 20130117: 875 8761) ACPICA Kernel-resident Subsystem: 877 878Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 879return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 880objects to return a package containing one integer, most BIOS code 881returns 882two integers and the previous code reflects that. However, we also need 883to 884support BIOS code that actually implements to the ACPI spec, and this 885change reflects this. 886 887Fixed two issues with the ACPI_DEBUG_PRINT macros: 8881) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 889C compilers that require this support. 8902) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 891ACPI_DEBUG is already used by many of the various hosts. 892 893Updated all ACPICA copyrights and signons to 2013. Added the 2013 894copyright to all module headers and signons, including the standard Linux 895header. This affects virtually every file in the ACPICA core subsystem, 896iASL compiler, all ACPICA utilities, and the test suites. 897 898Example Code and Data Size: These are the sizes for the OS-independent 899acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 900debug version of the code includes the debug output trace mechanism and 901has a much larger code and data size. 902 903 Previous Release: 904 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 905 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 906 Current Release: 907 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 908 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 909 910 9112) iASL Compiler/Disassembler and Tools: 912 913Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 914prevent a possible fault on some hosts. Some C libraries modify the arg 915pointer parameter to vfprintf making it difficult to call it twice in the 916AcpiOsVprintf function. Use a local buffer to workaround this issue. This 917does not affect the Windows OSL since the Win C library does not modify 918the arg pointer. Chao Guan, Bob Moore. 919 920iASL: Fixed a possible infinite loop when the maximum error count is 921reached. If an output file other than the .AML file is specified (such as 922a listing file), and the maximum number of errors is reached, do not 923attempt to flush data to the output file(s) as the compiler is aborting. 924This can cause an infinite loop as the max error count code essentially 925keeps calling itself. 926 927iASL/Disassembler: Added an option (-in) to ignore NOOP 928opcodes/operators. 929Implemented for both the compiler and the disassembler. Often, the NOOP 930opcode is used as padding for packages that are changed dynamically by 931the 932BIOS. When disassembled and recompiled, these NOOPs will cause syntax 933errors. This option causes the disassembler to ignore all NOOP opcodes 934(0xA3), and it also causes the compiler to ignore all ASL source code 935NOOP 936statements as well. 937 938Debugger: Enhanced the Sleep command to execute all sleep states. This 939change allows Sleep to be invoked with no arguments and causes the 940debugger to execute all of the sleep states, 0-5, automatically. 941 942---------------------------------------- 94320 December 2012. Summary of changes for version 20121220: 944 9451) ACPICA Kernel-resident Subsystem: 946 947Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 948alternate entry point for AcpiWalkResources and improves the usability of 949the resource manager by accepting as input a buffer containing the output 950of either a _CRS, _PRS, or _AEI method. The key functionality is that the 951input buffer is not deleted by this interface so that it can be used by 952the host later. See the ACPICA reference for details. 953 954Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 955(DSDT version < 2). The constant will be truncated and this warning 956reflects that behavior. 957 958Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 959ExtendedInterrupt, and GpioInt descriptors. This change adds support to 960both get and set the new wake bit in these descriptors, separately from 961the existing share bit. Reported by Aaron Lu. 962 963Interpreter: Fix Store() when an implicit conversion is not possible. For 964example, in the cases such as a store of a string to an existing package 965object, implement the store as a CopyObject(). This is a small departure 966from the ACPI specification which states that the control method should 967be 968aborted in this case. However, the ASLTS suite depends on this behavior. 969 970Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 971macros: check if debug output is currently enabled as soon as possible to 972minimize performance impact if debug is in fact not enabled. 973 974Source code restructuring: Cleanup to improve modularity. The following 975new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 976psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 977Associated makefiles and project files have been updated. 978 979Changed an exception code for LoadTable operator. For the case where one 980of the input strings is too long, change the returned exception code from 981AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 982 983Fixed a possible memory leak in dispatcher error path. On error, delete 984the mutex object created during method mutex creation. Reported by 985tim.gardner@canonical.com. 986 987Example Code and Data Size: These are the sizes for the OS-independent 988acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 989debug version of the code includes the debug output trace mechanism and 990has a much larger code and data size. 991 992 Previous Release: 993 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 994 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 995 Current Release: 996 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 997 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 998 999 10002) iASL Compiler/Disassembler and Tools: 1001 1002iASL: Disallow a method call as argument to the ObjectType ASL operator. 1003This change tracks an errata to the ACPI 5.0 document. The AML grammar 1004will not allow the interpreter to differentiate between a method and a 1005method invocation when these are used as an argument to the ObjectType 1006operator. The ACPI specification change is to disallow a method 1007invocation 1008(UserTerm) for the ObjectType operator. 1009 1010Finish support for the TPM2 and CSRT tables in the headers, table 1011compiler, and disassembler. 1012 1013Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 1014always expires immediately if the semaphore is not available. The 1015original 1016code was using a relative-time timeout, but sem_timedwait requires the 1017use 1018of an absolute time. 1019 1020iASL: Added a remark if the Timer() operator is used within a 32-bit 1021table. This operator returns a 64-bit time value that will be truncated 1022within a 32-bit table. 1023 1024iASL Source code restructuring: Cleanup to improve modularity. The 1025following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 1026aslmethod.c, and aslfileio.c. Associated makefiles and project files have 1027been updated. 1028 1029 1030---------------------------------------- 103114 November 2012. Summary of changes for version 20121114: 1032 10331) ACPICA Kernel-resident Subsystem: 1034 1035Implemented a performance enhancement for ACPI/AML Package objects. This 1036change greatly increases the performance of Package objects within the 1037interpreter. It changes the processing of reference counts for packages 1038by 1039optimizing for the most common case where the package sub-objects are 1040either Integers, Strings, or Buffers. Increases the overall performance 1041of 1042the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 10432X.) 1044Chao Guan. ACPICA BZ 943. 1045 1046Implemented and deployed common macros to extract flag bits from resource 1047descriptors. Improves readability and maintainability of the code. Fixes 1048a 1049problem with the UART serial bus descriptor for the number of data bits 1050flags (was incorrectly 2 bits, should be 3). 1051 1052Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 1053of the macros and changed the SETx macros to the style of (destination, 1054source). Also added ACPI_CASTx companion macros. Lv Zheng. 1055 1056Example Code and Data Size: These are the sizes for the OS-independent 1057acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1058debug version of the code includes the debug output trace mechanism and 1059has a much larger code and data size. 1060 1061 Previous Release: 1062 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 1063 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 1064 Current Release: 1065 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 1066 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 1067 1068 10692) iASL Compiler/Disassembler and Tools: 1070 1071Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 1072adds the ShareAndWake and ExclusiveAndWake flags which were added to the 1073Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 1074 1075Disassembler: Fixed a problem with external declaration generation. Fixes 1076a problem where an incorrect pathname could be generated for an external 1077declaration if the original reference to the object includes leading 1078carats (^). ACPICA BZ 984. 1079 1080Debugger: Completed a major update for the Disassemble<method> command. 1081This command was out-of-date and did not properly disassemble control 1082methods that had any reasonable complexity. This fix brings the command 1083up 1084to the same level as the rest of the disassembler. Adds one new file, 1085dmdeferred.c, which is existing code that is now common with the main 1086disassembler and the debugger disassemble command. ACPICA MZ 978. 1087 1088iASL: Moved the parser entry prototype to avoid a duplicate declaration. 1089Newer versions of Bison emit this prototype, so moved the prototype out 1090of 1091the iASL header to where it is actually used in order to avoid a 1092duplicate 1093declaration. 1094 1095iASL/Tools: Standardized use of the stream I/O functions: 1096 1) Ensure check for I/O error after every fopen/fread/fwrite 1097 2) Ensure proper order of size/count arguments for fread/fwrite 1098 3) Use test of (Actual != Requested) after all fwrite, and most fread 1099 4) Standardize I/O error messages 1100Improves reliability and maintainability of the code. Bob Moore, Lv 1101Zheng. 1102ACPICA BZ 981. 1103 1104Disassembler: Prevent duplicate External() statements. During generation 1105of external statements, detect similar pathnames that are actually 1106duplicates such as these: 1107 External (\ABCD) 1108 External (ABCD) 1109Remove all leading '\' characters from pathnames during the external 1110statement generation so that duplicates will be detected and tossed. 1111ACPICA BZ 985. 1112 1113Tools: Replace low-level I/O with stream I/O functions. Replace 1114open/read/write/close with the stream I/O equivalents 1115fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 1116Moore. 1117 1118AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 1119name header so that AcpiXtract recognizes the output file/table. 1120 1121iASL: Remove obsolete -2 option flag. Originally intended to force the 1122compiler/disassembler into an ACPI 2.0 mode, this was never implemented 1123and the entire concept is now obsolete. 1124 1125---------------------------------------- 112618 October 2012. Summary of changes for version 20121018: 1127 1128 11291) ACPICA Kernel-resident Subsystem: 1130 1131Updated support for the ACPI 5.0 MPST table. Fixes some problems 1132introduced by late changes to the table as it was added to the ACPI 5.0 1133specification. Includes header, disassembler, and data table compiler 1134support as well as a new version of the MPST template. 1135 1136AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 11375.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 1138methods: _HID, _CID, and _UID. 1139 1140Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 1141ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 1142name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 1143names for their various drivers. Affects the AcpiGetObjectInfo external 1144interface, and other internal interfaces as well. 1145 1146Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 1147This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 1148on machines that support non-aligned transfers. Optimizes for this case 1149rather than using a strncpy. With assistance from Zheng Lv. 1150 1151Resource Manager: Small fix for buffer size calculation. Fixed a one byte 1152error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 1153 1154Added a new debug print message for AML mutex objects that are force- 1155released. At control method termination, any currently acquired mutex 1156objects are force-released. Adds a new debug-only message for each one 1157that is released. 1158 1159Audited/updated all ACPICA return macros and the function debug depth 1160counter: 1) Ensure that all functions that use the various TRACE macros 1161also use the appropriate ACPICA return macros. 2) Ensure that all normal 1162return statements surround the return expression (value) with parens to 1163ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 1164Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 1165 1166Global source code changes/maintenance: All extra lines at the start and 1167end of each source file have been removed for consistency. Also, within 1168comments, all new sentences start with a single space instead of a double 1169space, again for consistency across the code base. 1170 1171Example Code and Data Size: These are the sizes for the OS-independent 1172acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1173debug version of the code includes the debug output trace mechanism and 1174has a much larger code and data size. 1175 1176 Previous Release: 1177 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 1178 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 1179 Current Release: 1180 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 1181 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 1182 1183 11842) iASL Compiler/Disassembler and Tools: 1185 1186AcpiExec: Improved the algorithm used for memory leak/corruption 1187detection. Added some intelligence to the code that maintains the global 1188list of allocated memory. The list is now ordered by allocated memory 1189address, significantly improving performance. When running AcpiExec on 1190the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 1191on the platform and/or the environment. Note, this performance 1192enhancement affects the AcpiExec utility only, not the kernel-resident 1193ACPICA code. 1194 1195Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 1196the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 1197incorrect table offset reported for invalid opcodes. Report the original 119832-bit value for bad ACPI_NAMEs (as well as the repaired name.) 1199 1200Disassembler: Enhanced the -vt option to emit the binary table data in 1201hex format to assist with debugging. 1202 1203Fixed a potential filename buffer overflow in osunixdir.c. Increased the 1204size of file structure. Colin Ian King. 1205 1206---------------------------------------- 120713 September 2012. Summary of changes for version 20120913: 1208 1209 12101) ACPICA Kernel-resident Subsystem: 1211 1212ACPI 5.0: Added two new notify types for the Hardware Error Notification 1213Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 1214and 1215MCE(6). 1216 1217Table Manager: Merged/removed duplicate code in the root table resize 1218functions. One function is external, the other is internal. Lv Zheng, 1219ACPICA 1220BZ 846. 1221 1222Makefiles: Completely removed the obsolete "Linux" makefiles under 1223acpica/generate/linux. These makefiles are obsolete and have been 1224replaced 1225by 1226the generic unix makefiles under acpica/generate/unix. 1227 1228Makefiles: Ensure that binary files always copied properly. Minor rule 1229change 1230to ensure that the final binary output files are always copied up to the 1231appropriate binary directory (bin32 or bin64.) 1232 1233Example Code and Data Size: These are the sizes for the OS-independent 1234acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1235debug 1236version of the code includes the debug output trace mechanism and has a 1237much 1238larger code and data size. 1239 1240 Previous Release: 1241 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 1242 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 1243 Current Release: 1244 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 1245 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 1246 1247 12482) iASL Compiler/Disassembler and Tools: 1249 1250Disassembler: Fixed a possible fault during the disassembly of resource 1251descriptors when a second parse is required because of the invocation of 1252external control methods within the table. With assistance from 1253adq@lidskialf.net. ACPICA BZ 976. 1254 1255iASL: Fixed a namepath optimization problem. An error can occur if the 1256parse 1257node that contains the namepath to be optimized does not have a parent 1258node 1259that is a named object. This change fixes the problem. 1260 1261iASL: Fixed a regression where the AML file is not deleted on errors. The 1262AML 1263output file should be deleted if there are any errors during the 1264compiler. 1265The 1266only exception is if the -f (force output) option is used. ACPICA BZ 974. 1267 1268iASL: Added a feature to automatically increase internal line buffer 1269sizes. 1270Via realloc(), automatically increase the internal line buffer sizes as 1271necessary to support very long source code lines. The current version of 1272the 1273preprocessor requires a buffer long enough to contain full source code 1274lines. 1275This change increases the line buffer(s) if the input lines go beyond the 1276current buffer size. This eliminates errors that occurred when a source 1277code 1278line was longer than the buffer. 1279 1280iASL: Fixed a problem with constant folding in method declarations. The 1281SyncLevel term is a ByteConstExpr, and incorrect code would be generated 1282if a 1283Type3 opcode was used. 1284 1285Debugger: Improved command help support. For incorrect argument count, 1286display 1287full help for the command. For help command itself, allow an argument to 1288specify a command. 1289 1290Test Suites: Several bug fixes for the ASLTS suite reduces the number of 1291errors during execution of the suite. Guan Chao. 1292 1293---------------------------------------- 129416 August 2012. Summary of changes for version 20120816: 1295 1296 12971) ACPICA Kernel-resident Subsystem: 1298 1299Removed all use of the deprecated _GTS and _BFS predefined methods. The 1300_GTS 1301(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 1302deprecated and will probably be removed from the ACPI specification. 1303Windows 1304does not invoke them, and reportedly never will. The final nail in the 1305coffin 1306is that the ACPI specification states that these methods must be run with 1307interrupts off, which is not going to happen in a kernel interpreter. 1308Note: 1309Linux has removed all use of the methods also. It was discovered that 1310invoking these functions caused failures on some machines, probably 1311because 1312they were never tested since Windows does not call them. Affects two 1313external 1314interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 1315ACPICA BZ 969. 1316 1317Implemented support for complex bit-packed buffers returned from the _PLD 1318(Physical Location of Device) predefined method. Adds a new external 1319interface, AcpiDecodePldBuffer that parses the buffer into a more usable 1320C 1321structure. Note: C Bitfields cannot be used for this type of predefined 1322structure since the memory layout of individual bitfields is not defined 1323by 1324the C language. In addition, there are endian concerns where a compiler 1325will 1326change the bitfield ordering based on the machine type. The new ACPICA 1327interface eliminates these issues, and should be called after _PLD is 1328executed. ACPICA BZ 954. 1329 1330Implemented a change to allow a scope change to root (via "Scope (\)") 1331during 1332execution of module-level ASL code (code that is executed at table load 1333time.) Lin Ming. 1334 1335Added the Windows8/Server2012 string for the _OSI method. This change 1336adds 1337a 1338new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 13392012. 1340 1341Added header support for the new ACPI tables DBG2 (Debug Port Table Type 13422) 1343and CSRT (Core System Resource Table). 1344 1345Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 1346names. This simplifies access to the buffers returned by these predefined 1347names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 1348 1349GPE support: Removed an extraneous parameter from the various low-level 1350internal GPE functions. Tang Feng. 1351 1352Removed the linux makefiles from the unix packages. The generate/linux 1353makefiles are obsolete and have been removed from the unix tarball 1354release 1355packages. The replacement makefiles are under generate/unix, and there is 1356a 1357top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 1358 1359Updates for Unix makefiles: 13601) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 13612) Update linker flags (move to end of command line) for AcpiExec 1362utility. 1363Guan Chao. 1364 1365Split ACPICA initialization functions to new file, utxfinit.c. Split from 1366utxface.c to improve modularity and reduce file size. 1367 1368Example Code and Data Size: These are the sizes for the OS-independent 1369acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1370debug version of the code includes the debug output trace mechanism and 1371has a 1372much larger code and data size. 1373 1374 Previous Release: 1375 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 1376 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 1377 Current Release: 1378 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 1379 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 1380 1381 13822) iASL Compiler/Disassembler and Tools: 1383 1384iASL: Fixed a problem with constant folding for fixed-length constant 1385expressions. The constant-folding code was not being invoked for constant 1386expressions that allow the use of type 3/4/5 opcodes to generate 1387constants 1388for expressions such as ByteConstExpr, WordConstExpr, etc. This could 1389result 1390in the generation of invalid AML bytecode. ACPICA BZ 970. 1391 1392iASL: Fixed a generation issue on newer versions of Bison. Newer versions 1393apparently automatically emit some of the necessary externals. This 1394change 1395handles these versions in order to eliminate generation warnings. 1396 1397Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 1398 1399Disassembler: Add support to decode _PLD buffers. The decoded buffer 1400appears 1401within comments in the output file. 1402 1403Debugger: Fixed a regression with the "Threads" command where 1404AE_BAD_PARAMETER was always returned. 1405 1406---------------------------------------- 140711 July 2012. Summary of changes for version 20120711: 1408 14091) ACPICA Kernel-resident Subsystem: 1410 1411Fixed a possible fault in the return package object repair code. Fixes a 1412problem that can occur when a lone package object is wrapped with an 1413outer 1414package object in order to force conformance to the ACPI specification. 1415Can 1416affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 1417_DLM, 1418_CSD, _PSD, _TSD. 1419 1420Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 1421PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 1422ARB_DIS bit must be implemented in the host-dependent C3 processor power 1423state 1424support. Note, ARB_DIS is obsolete and only applies to older chipsets, 1425both 1426Intel and other vendors. (for Intel: ICH4-M and earlier) 1427 1428This change removes the code to disable/enable bus master arbitration 1429during 1430suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 1431causes 1432resume problems on some machines. The change has been in use for over 1433seven 1434years within Linux. 1435 1436Implemented two new external interfaces to support host-directed dynamic 1437ACPI 1438table load and unload. They are intended to simplify the host 1439implementation 1440of hot-plug support: 1441 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 1442 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 1443table. 1444See the ACPICA reference for additional details. Adds one new file, 1445components/tables/tbxfload.c 1446 1447Implemented and deployed two new interfaces for errors and warnings that 1448are 1449known to be caused by BIOS/firmware issues: 1450 AcpiBiosError: Prints "ACPI Firmware Error" message. 1451 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 1452Deployed these new interfaces in the ACPICA Table Manager code for ACPI 1453table 1454and FADT errors. Additional deployment to be completed as appropriate in 1455the 1456future. The associated conditional macros are ACPI_BIOS_ERROR and 1457ACPI_BIOS_WARNING. See the ACPICA reference for additional details. 1458ACPICA 1459BZ 1460843. 1461 1462Implicit notify support: ensure that no memory allocation occurs within a 1463critical region. This fix moves a memory allocation outside of the time 1464that a 1465spinlock is held. Fixes issues on systems that do not allow this 1466behavior. 1467Jung-uk Kim. 1468 1469Split exception code utilities and tables into a new file, 1470utilities/utexcep.c 1471 1472Example Code and Data Size: These are the sizes for the OS-independent 1473acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1474debug 1475version of the code includes the debug output trace mechanism and has a 1476much 1477larger code and data size. 1478 1479 Previous Release: 1480 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 1481 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 1482 Current Release: 1483 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 1484 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 1485 1486 14872) iASL Compiler/Disassembler and Tools: 1488 1489iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 1490of 14910. Jung-uk Kim. 1492 1493Debugger: Enhanced the "tables" command to emit additional information 1494about 1495the current set of ACPI tables, including the owner ID and flags decode. 1496 1497Debugger: Reimplemented the "unload" command to use the new 1498AcpiUnloadParentTable external interface. This command was disable 1499previously 1500due to need for an unload interface. 1501 1502AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 1503option 1504will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 1505 1506---------------------------------------- 150720 June 2012. Summary of changes for version 20120620: 1508 1509 15101) ACPICA Kernel-resident Subsystem: 1511 1512Implemented support to expand the "implicit notify" feature to allow 1513multiple 1514devices to be notified by a single GPE. This feature automatically 1515generates a 1516runtime device notification in the absence of a BIOS-provided GPE control 1517method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 1518notify is 1519provided by ACPICA for Windows compatibility, and is a workaround for 1520BIOS 1521AML 1522code errors. See the description of the AcpiSetupGpeForWake interface in 1523the 1524APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 1525 1526Changed some comments and internal function names to simplify and ensure 1527correctness of the Linux code translation. No functional changes. 1528 1529Example Code and Data Size: These are the sizes for the OS-independent 1530acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1531debug 1532version of the code includes the debug output trace mechanism and has a 1533much 1534larger code and data size. 1535 1536 Previous Release: 1537 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 1538 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 1539 Current Release: 1540 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 1541 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 1542 1543 15442) iASL Compiler/Disassembler and Tools: 1545 1546Disassembler: Added support to emit short, commented descriptions for the 1547ACPI 1548predefined names in order to improve the readability of the disassembled 1549output. ACPICA BZ 959. Changes include: 1550 1) Emit descriptions for all standard predefined names (_INI, _STA, 1551_PRW, 1552etc.) 1553 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 1554 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 1555etc.) 1556 1557AcpiSrc: Fixed several long-standing Linux code translation issues. 1558Argument 1559descriptions in function headers are now translated properly to lower 1560case 1561and 1562underscores. ACPICA BZ 961. Also fixes translation problems such as 1563these: 1564(old -> new) 1565 i_aSL -> iASL 1566 00-7_f -> 00-7F 1567 16_k -> 16K 1568 local_fADT -> local_FADT 1569 execute_oSI -> execute_OSI 1570 1571iASL: Fixed a problem where null bytes were inadvertently emitted into 1572some 1573listing files. 1574 1575iASL: Added the existing debug options to the standard help screen. There 1576are 1577no longer two different help screens. ACPICA BZ 957. 1578 1579AcpiHelp: Fixed some typos in the various predefined name descriptions. 1580Also 1581expand some of the descriptions where appropriate. 1582 1583iASL: Fixed the -ot option (display compile times/statistics). Was not 1584working 1585properly for standard output; only worked for the debug file case. 1586 1587---------------------------------------- 158818 May 2012. Summary of changes for version 20120518: 1589 1590 15911) ACPICA Core Subsystem: 1592 1593Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 1594defined 1595to block until asynchronous events such as notifies and GPEs have 1596completed. 1597Within ACPICA, it is only called before a notify or GPE handler is 1598removed/uninstalled. It also may be useful for the host OS within related 1599drivers such as the Embedded Controller driver. See the ACPICA reference 1600for 1601additional information. ACPICA BZ 868. 1602 1603ACPI Tables: Added a new error message for a possible overflow failure 1604during 1605the conversion of FADT 32-bit legacy register addresses to internal 1606common 160764- 1608bit GAS structure representation. The GAS has a one-byte "bit length" 1609field, 1610thus limiting the register length to 255 bits. ACPICA BZ 953. 1611 1612Example Code and Data Size: These are the sizes for the OS-independent 1613acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1614debug 1615version of the code includes the debug output trace mechanism and has a 1616much 1617larger code and data size. 1618 1619 Previous Release: 1620 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 1621 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 1622 Current Release: 1623 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 1624 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 1625 1626 16272) iASL Compiler/Disassembler and Tools: 1628 1629iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 1630macro. 1631This keyword was added late in the ACPI 5.0 release cycle and was not 1632implemented until now. 1633 1634Disassembler: Added support for Operation Region externals. Adds missing 1635support for operation regions that are defined in another table, and 1636referenced locally via a Field or BankField ASL operator. Now generates 1637the 1638correct External statement. 1639 1640Disassembler: Several additional fixes for the External() statement 1641generation 1642related to some ASL operators. Also, order the External() statements 1643alphabetically in the disassembler output. Fixes the External() 1644generation 1645for 1646the Create* field, Alias, and Scope operators: 1647 1) Create* buffer field operators - fix type mismatch warning on 1648disassembly 1649 2) Alias - implement missing External support 1650 3) Scope - fix to make sure all necessary externals are emitted. 1651 1652iASL: Improved pathname support. For include files, merge the prefix 1653pathname 1654with the file pathname and eliminate unnecessary components. Convert 1655backslashes in all pathnames to forward slashes, for readability. Include 1656file 1657pathname changes affect both #include and Include() type operators. 1658 1659iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 1660end 1661of a valid line by inserting a newline and then returning the EOF during 1662the 1663next call to GetNextLine. Prevents the line from being ignored due to EOF 1664condition. 1665 1666iASL: Implemented some changes to enhance the IDE support (-vi option.) 1667Error 1668and Warning messages are now correctly recognized for both the source 1669code 1670browser and the global error and warning counts. 1671 1672---------------------------------------- 167320 April 2012. Summary of changes for version 20120420: 1674 1675 16761) ACPICA Core Subsystem: 1677 1678Implemented support for multiple notify handlers. This change adds 1679support 1680to 1681allow multiple system and device notify handlers on Device, Thermal Zone, 1682and 1683Processor objects. This can simplify the host OS notification 1684implementation. 1685Also re-worked and restructured the entire notify support code to 1686simplify 1687handler installation, handler removal, notify event queuing, and notify 1688dispatch to handler(s). Note: there can still only be two global notify 1689handlers - one for system notifies and one for device notifies. There are 1690no 1691changes to the existing handler install/remove interfaces. Lin Ming, Bob 1692Moore, Rafael Wysocki. 1693 1694Fixed a regression in the package repair code where the object reference 1695count was calculated incorrectly. Regression was introduced in the commit 1696"Support to add Package wrappers". 1697 1698Fixed a couple possible memory leaks in the AML parser, in the error 1699recovery 1700path. Jesper Juhl, Lin Ming. 1701 1702Example Code and Data Size: These are the sizes for the OS-independent 1703acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1704debug version of the code includes the debug output trace mechanism and 1705has a 1706much larger code and data size. 1707 1708 Previous Release: 1709 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 1710 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 1711 Current Release: 1712 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 1713 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 1714 1715 17162) iASL Compiler/Disassembler and Tools: 1717 1718iASL: Fixed a problem with the resource descriptor support where the 1719length 1720of the StartDependentFn and StartDependentFnNoPrio descriptors were not 1721included in cumulative descriptor offset, resulting in incorrect values 1722for 1723resource tags within resource descriptors appearing after a 1724StartDependent* 1725descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 1726 1727iASL and Preprocessor: Implemented full support for the #line directive 1728to 1729correctly track original source file line numbers through the .i 1730preprocessor 1731output file - for error and warning messages. 1732 1733iASL: Expand the allowable byte constants for address space IDs. 1734Previously, 1735the allowable range was 0x80-0xFF (user-defined spaces), now the range is 17360x0A-0xFF to allow for custom and new IDs without changing the compiler. 1737 1738iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 1739 1740iASL: Add option to completely disable the preprocessor (-Pn). 1741 1742iASL: Now emit all error/warning messages to standard error (stderr) by 1743default (instead of the previous stdout). 1744 1745ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 1746Update 1747for resource descriptor offset fix above. Update/cleanup error output 1748routines. Enable and send iASL errors/warnings to an error logfile 1749(error.txt). Send all other iASL output to a logfile (compiler.txt). 1750Fixed 1751several extraneous "unrecognized operator" messages. 1752 1753---------------------------------------- 175420 March 2012. Summary of changes for version 20120320: 1755 1756 17571) ACPICA Core Subsystem: 1758 1759Enhanced the sleep/wake interfaces to optionally execute the _GTS method 1760(Going To Sleep) and the _BFS method (Back From Sleep). Windows 1761apparently 1762does not execute these methods, and therefore these methods are often 1763untested. It has been seen on some systems where the execution of these 1764methods causes errors and also prevents the machine from entering S5. It 1765is 1766therefore suggested that host operating systems do not execute these 1767methods 1768by default. In the future, perhaps these methods can be optionally 1769executed 1770based on the age of the system and/or what is the newest version of 1771Windows 1772that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 1773and 1774AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 1775Ming. 1776 1777Fixed a problem where the length of the local/common FADT was set too 1778early. 1779The local FADT table length cannot be set to the common length until the 1780original length has been examined. There is code that checks the table 1781length 1782and sets various fields appropriately. This can affect older machines 1783with 1784early FADT versions. For example, this can cause inadvertent writes to 1785the 1786CST_CNT register. Julian Anastasov. 1787 1788Fixed a mapping issue related to a physical table override. Use the 1789deferred 1790mapping mechanism for tables loaded via the physical override OSL 1791interface. 1792This allows for early mapping before the virtual memory manager is 1793available. 1794Thomas Renninger, Bob Moore. 1795 1796Enhanced the automatic return-object repair code: Repair a common problem 1797with 1798predefined methods that are defined to return a variable-length Package 1799of 1800sub-objects. If there is only one sub-object, some BIOS ASL code 1801mistakenly 1802simply returns the single object instead of a Package with one sub- 1803object. 1804This new support will repair this error by wrapping a Package object 1805around 1806the original object, creating the correct and expected Package with one 1807sub- 1808object. Names that can be repaired in this manner include: _ALR, _CSD, 1809_HPX, 1810_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 1811939. 1812 1813Changed the exception code returned for invalid ACPI paths passed as 1814parameters to external interfaces such as AcpiEvaluateObject. Was 1815AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 1816 1817Example Code and Data Size: These are the sizes for the OS-independent 1818acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1819debug 1820version of the code includes the debug output trace mechanism and has a 1821much 1822larger code and data size. 1823 1824 Previous Release: 1825 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 1826 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 1827 Current Release: 1828 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 1829 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 1830 1831 18322) iASL Compiler/Disassembler and Tools: 1833 1834iASL: Added the infrastructure and initial implementation of a integrated 1835C- 1836like preprocessor. This will simplify BIOS development process by 1837eliminating 1838the need for a separate preprocessing step during builds. On Windows, it 1839also 1840eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 1841features including full #define() macro support are still under 1842development. 1843These preprocessor directives are supported: 1844 #define 1845 #elif 1846 #else 1847 #endif 1848 #error 1849 #if 1850 #ifdef 1851 #ifndef 1852 #include 1853 #pragma message 1854 #undef 1855 #warning 1856In addition, these new command line options are supported: 1857 -D <symbol> Define symbol for preprocessor use 1858 -li Create preprocessed output file (*.i) 1859 -P Preprocess only and create preprocessor output file (*.i) 1860 1861Table Compiler: Fixed a problem where the equals operator within an 1862expression 1863did not work properly. 1864 1865Updated iASL to use the current versions of Bison/Flex. Updated the 1866Windows 1867project file to invoke these tools from the standard location. ACPICA BZ 1868904. 1869Versions supported: 1870 Flex for Windows: V2.5.4 1871 Bison for Windows: V2.4.1 1872 1873---------------------------------------- 187415 February 2012. Summary of changes for version 20120215: 1875 1876 18771) ACPICA Core Subsystem: 1878 1879There have been some major changes to the sleep/wake support code, as 1880described below (a - e). 1881 1882a) The AcpiLeaveSleepState has been split into two interfaces, similar to 1883AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 1884AcpiLeaveSleepStatePrep. This allows the host to perform actions between 1885the 1886time the _BFS method is called and the _WAK method is called. NOTE: all 1887hosts 1888must update their wake/resume code or else sleep/wake will not work 1889properly. 1890Rafael Wysocki. 1891 1892b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 1893_WAK 1894method. Some machines require that the GPEs are enabled before the _WAK 1895method 1896is executed. Thomas Renninger. 1897 1898c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) 1899bit. 1900Some BIOS code assumes that WAK_STS will be cleared on resume and use it 1901to 1902determine whether the system is rebooting or resuming. Matthew Garrett. 1903 1904d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 1905Sleep) to 1906match the ACPI specification requirement. Rafael Wysocki. 1907 1908e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 1909registers within the V5 FADT. This support adds two new files: 1910hardware/hwesleep.c implements the support for the new registers. Moved 1911all 1912sleep/wake external interfaces to hardware/hwxfsleep.c. 1913 1914 1915Added a new OSL interface for ACPI table overrides, 1916AcpiOsPhysicalTableOverride. This interface allows the host to override a 1917table via a physical address, instead of the logical address required by 1918AcpiOsTableOverride. This simplifies the host implementation. Initial 1919implementation by Thomas Renninger. The ACPICA implementation creates a 1920single 1921shared function for table overrides that attempts both a logical and a 1922physical override. 1923 1924Expanded the OSL memory read/write interfaces to 64-bit data 1925(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 1926transfer support for GAS register structures passed to AcpiRead and 1927AcpiWrite. 1928 1929Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 1930custom 1931build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 1932model. 1933See the ACPICA reference for details. ACPICA BZ 942. This option removes 1934about 193510% of the code and 5% of the static data, and the following hardware 1936ACPI 1937features become unavailable: 1938 PM Event and Control registers 1939 SCI interrupt (and handler) 1940 Fixed Events 1941 General Purpose Events (GPEs) 1942 Global Lock 1943 ACPI PM timer 1944 FACS table (Waking vectors and Global Lock) 1945 1946Updated the unix tarball directory structure to match the ACPICA git 1947source 1948tree. This ensures that the generic unix makefiles work properly (in 1949generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 1950867. 1951 1952Updated the return value of the _REV predefined method to integer value 5 1953to 1954reflect ACPI 5.0 support. 1955 1956Moved the external ACPI PM timer interface prototypes to the public 1957acpixf.h 1958file where they belong. 1959 1960Example Code and Data Size: These are the sizes for the OS-independent 1961acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1962debug 1963version of the code includes the debug output trace mechanism and has a 1964much 1965larger code and data size. 1966 1967 Previous Release: 1968 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 1969 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 1970 Current Release: 1971 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 1972 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 1973 1974 19752) iASL Compiler/Disassembler and Tools: 1976 1977Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 1978descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 1979incorrectly displayed. 1980 1981AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 1982specification. 1983 1984---------------------------------------- 198511 January 2012. Summary of changes for version 20120111: 1986 1987 19881) ACPICA Core Subsystem: 1989 1990Implemented a new mechanism to allow host device drivers to check for 1991address 1992range conflicts with ACPI Operation Regions. Both SystemMemory and 1993SystemIO 1994address spaces are supported. A new external interface, 1995AcpiCheckAddressRange, 1996allows drivers to check an address range against the ACPI namespace. See 1997the 1998ACPICA reference for additional details. Adds one new file, 1999utilities/utaddress.c. Lin Ming, Bob Moore. 2000 2001Fixed several issues with the ACPI 5.0 FADT support: Add the sleep 2002Control 2003and 2004Status registers, update the ACPI 5.0 flags, and update internal data 2005structures to handle an FADT larger than 256 bytes. The size of the ACPI 20065.0 2007FADT is 268 bytes. 2008 2009Updated all ACPICA copyrights and signons to 2012. Added the 2012 2010copyright to 2011all module headers and signons, including the standard Linux header. This 2012affects virtually every file in the ACPICA core subsystem, iASL compiler, 2013and 2014all ACPICA utilities. 2015 2016Example Code and Data Size: These are the sizes for the OS-independent 2017acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2018debug 2019version of the code includes the debug output trace mechanism and has a 2020much 2021larger code and data size. 2022 2023 Previous Release: 2024 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 2025 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 2026 Current Release: 2027 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 2028 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 2029 2030 20312) iASL Compiler/Disassembler and Tools: 2032 2033Disassembler: fixed a problem with the automatic resource tag generation 2034support. Fixes a problem where the resource tags are inadvertently not 2035constructed if the table being disassembled contains external references 2036to 2037control methods. Moved the actual construction of the tags to after the 2038final 2039namespace is constructed (after 2nd parse is invoked due to external 2040control 2041method references.) ACPICA BZ 941. 2042 2043Table Compiler: Make all "generic" operators caseless. These are the 2044operators 2045like UINT8, String, etc. Making these caseless improves ease-of-use. 2046ACPICA BZ 2047934. 2048 2049---------------------------------------- 205023 November 2011. Summary of changes for version 20111123: 2051 20520) ACPI 5.0 Support: 2053 2054This release contains full support for the ACPI 5.0 specification, as 2055summarized below. 2056 2057Reduced Hardware Support: 2058------------------------- 2059 2060This support allows for ACPI systems without the usual ACPI hardware. 2061This 2062support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 2063will 2064not attempt to initialize or use any of the usual ACPI hardware. Note, 2065when 2066this flag is set, all of the following ACPI hardware is assumed to be not 2067present and is not initialized or accessed: 2068 2069 General Purpose Events (GPEs) 2070 Fixed Events (PM1a/PM1b and PM Control) 2071 Power Management Timer and Console Buttons (power/sleep) 2072 Real-time Clock Alarm 2073 Global Lock 2074 System Control Interrupt (SCI) 2075 The FACS is assumed to be non-existent 2076 2077ACPI Tables: 2078------------ 2079 2080All new tables and updates to existing tables are fully supported in the 2081ACPICA headers (for use by device drivers), the disassembler, and the 2082iASL 2083Data Table Compiler. ACPI 5.0 defines these new tables: 2084 2085 BGRT /* Boot Graphics Resource Table */ 2086 DRTM /* Dynamic Root of Trust for Measurement table */ 2087 FPDT /* Firmware Performance Data Table */ 2088 GTDT /* Generic Timer Description Table */ 2089 MPST /* Memory Power State Table */ 2090 PCCT /* Platform Communications Channel Table */ 2091 PMTT /* Platform Memory Topology Table */ 2092 RASF /* RAS Feature table */ 2093 2094Operation Regions/SpaceIDs: 2095--------------------------- 2096 2097All new operation regions are fully supported by the iASL compiler, the 2098disassembler, and the ACPICA runtime code (for dispatch to region 2099handlers.) 2100The new operation region Space IDs are: 2101 2102 GeneralPurposeIo 2103 GenericSerialBus 2104 2105Resource Descriptors: 2106--------------------- 2107 2108All new ASL resource descriptors are fully supported by the iASL 2109compiler, 2110the 2111ASL/AML disassembler, and the ACPICA runtime Resource Manager code 2112(including 2113all new predefined resource tags). New descriptors are: 2114 2115 FixedDma 2116 GpioIo 2117 GpioInt 2118 I2cSerialBus 2119 SpiSerialBus 2120 UartSerialBus 2121 2122ASL/AML Operators, New and Modified: 2123------------------------------------ 2124 2125One new operator is added, the Connection operator, which is used to 2126associate 2127a GeneralPurposeIo or GenericSerialBus resource descriptor with 2128individual 2129field objects within an operation region. Several new protocols are 2130associated 2131with the AccessAs operator. All are fully supported by the iASL compiler, 2132disassembler, and runtime ACPICA AML interpreter: 2133 2134 Connection // Declare Field Connection 2135attributes 2136 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 2137 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes 2138Protocol 2139 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 2140 RawDataBuffer // Data type for Vendor Data 2141fields 2142 2143Predefined ASL/AML Objects: 2144--------------------------- 2145 2146All new predefined objects/control-methods are supported by the iASL 2147compiler 2148and the ACPICA runtime validation/repair (arguments and return values.) 2149New 2150predefined names include the following: 2151 2152Standard Predefined Names (Objects or Control Methods): 2153 _AEI, _CLS, _CPC, _CWS, _DEP, 2154 _DLM, _EVT, _GCP, _CRT, _GWS, 2155 _HRV, _PRE, _PSE, _SRT, _SUB. 2156 2157Resource Tags (Names used to access individual fields within resource 2158descriptors): 2159 _DBT, _DPL, _DRS, _END, _FLC, 2160 _IOR, _LIN, _MOD, _PAR, _PHA, 2161 _PIN, _PPI, _POL, _RXL, _SLV, 2162 _SPE, _STB, _TXL, _VEN. 2163 2164ACPICA External Interfaces: 2165--------------------------- 2166 2167Several new interfaces have been defined for use by ACPI-related device 2168drivers and other host OS services: 2169 2170AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 2171to 2172acquire and release AML mutexes that are defined in the DSDT/SSDT tables 2173provided by the BIOS. They are intended to be used in conjunction with 2174the 2175ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 2176mutual exclusion with the AML code/interpreter. 2177 2178AcpiGetEventResources: Returns the (formatted) resource descriptors as 2179defined 2180by the ACPI 5.0 _AEI object (ACPI Event Information). This object 2181provides 2182resource descriptors associated with hardware-reduced platform events, 2183similar 2184to the AcpiGetCurrentResources interface. 2185 2186Operation Region Handlers: For General Purpose IO and Generic Serial Bus 2187operation regions, information about the Connection() object and any 2188optional 2189length information is passed to the region handler within the Context 2190parameter. 2191 2192AcpiBufferToResource: This interface converts a raw AML buffer containing 2193a 2194resource template or resource descriptor to the ACPI_RESOURCE internal 2195format 2196suitable for use by device drivers. Can be used by an operation region 2197handler 2198to convert the Connection() buffer object into a ACPI_RESOURCE. 2199 2200Miscellaneous/Tools/TestSuites: 2201------------------------------- 2202 2203Support for extended _HID names (Four alpha characters instead of three). 2204Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 2205Support for ACPI 5.0 features in the ASLTS test suite. 2206Fully updated documentation (ACPICA and iASL reference documents.) 2207 2208ACPI Table Definition Language: 2209------------------------------- 2210 2211Support for this language was implemented and released as a subsystem of 2212the 2213iASL compiler in 2010. (See the iASL compiler User Guide.) 2214 2215 2216Non-ACPI 5.0 changes for this release: 2217-------------------------------------- 2218 22191) ACPICA Core Subsystem: 2220 2221Fix a problem with operation region declarations where a failure can 2222occur 2223if 2224the region name and an argument that evaluates to an object (such as the 2225region address) are in different namespace scopes. Lin Ming, ACPICA BZ 2226937. 2227 2228Do not abort an ACPI table load if an invalid space ID is found within. 2229This 2230will be caught later if the offending method is executed. ACPICA BZ 925. 2231 2232Fixed an issue with the FFixedHW space ID where the ID was not always 2233recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 2234 2235Fixed a problem with the 32-bit generation of the unix-specific OSL 2236(osunixxf.c). Lin Ming, ACPICA BZ 936. 2237 2238Several changes made to enable generation with the GCC 4.6 compiler. 2239ACPICA BZ 2240935. 2241 2242New error messages: Unsupported I/O requests (not 8/16/32 bit), and 2243Index/Bank 2244field registers out-of-range. 2245 22462) iASL Compiler/Disassembler and Tools: 2247 2248iASL: Implemented the __PATH__ operator, which returns the full pathname 2249of 2250the current source file. 2251 2252AcpiHelp: Automatically display expanded keyword information for all ASL 2253operators. 2254 2255Debugger: Add "Template" command to disassemble/dump resource template 2256buffers. 2257 2258Added a new master script to generate and execute the ASLTS test suite. 2259Automatically handles 32- and 64-bit generation. See tests/aslts.sh 2260 2261iASL: Fix problem with listing generation during processing of the 2262Switch() 2263operator where AML listing was disabled until the entire Switch block was 2264completed. 2265 2266iASL: Improve support for semicolon statement terminators. Fix "invalid 2267character" message for some cases when the semicolon is used. Semicolons 2268are 2269now allowed after every <Term> grammar element. ACPICA BZ 927. 2270 2271iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 2272923. 2273 2274Disassembler: Fix problem with disassembly of the DataTableRegion 2275operator 2276where an inadvertent "Unhandled deferred opcode" message could be 2277generated. 2278 22793) Example Code and Data Size 2280 2281These are the sizes for the OS-independent acpica.lib produced by the 2282Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 2283includes the debug output trace mechanism and has a much larger code and 2284data 2285size. 2286 2287 Previous Release: 2288 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 2289 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 2290 Current Release: 2291 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 2292 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 2293 2294---------------------------------------- 229522 September 2011. Summary of changes for version 20110922: 2296 22970) ACPI 5.0 News: 2298 2299Support for ACPI 5.0 in ACPICA has been underway for several months and 2300will 2301be released at the same time that ACPI 5.0 is officially released. 2302 2303The ACPI 5.0 specification is on track for release in the next few 2304months. 2305 23061) ACPICA Core Subsystem: 2307 2308Fixed a problem where the maximum sleep time for the Sleep() operator was 2309intended to be limited to two seconds, but was inadvertently limited to 231020 2311seconds instead. 2312 2313Linux and Unix makefiles: Added header file dependencies to ensure 2314correct 2315generation of ACPICA core code and utilities. Also simplified the 2316makefiles 2317considerably through the use of the vpath variable to specify search 2318paths. 2319ACPICA BZ 924. 2320 23212) iASL Compiler/Disassembler and Tools: 2322 2323iASL: Implemented support to check the access length for all fields 2324created to 2325access named Resource Descriptor fields. For example, if a resource field 2326is 2327defined to be two bits, a warning is issued if a CreateXxxxField() is 2328used 2329with an incorrect bit length. This is implemented for all current 2330resource 2331descriptor names. ACPICA BZ 930. 2332 2333Disassembler: Fixed a byte ordering problem with the output of 24-bit and 233456- 2335bit integers. 2336 2337iASL: Fixed a couple of issues associated with variable-length package 2338objects. 1) properly handle constants like One, Ones, Zero -- do not make 2339a 2340VAR_PACKAGE when these are used as a package length. 2) Allow the 2341VAR_PACKAGE 2342opcode (in addition to PACKAGE) when validating object types for 2343predefined 2344names. 2345 2346iASL: Emit statistics for all output files (instead of just the ASL input 2347and 2348AML output). Includes listings, hex files, etc. 2349 2350iASL: Added -G option to the table compiler to allow the compilation of 2351custom 2352ACPI tables. The only part of a table that is required is the standard 235336- 2354byte 2355ACPI header. 2356 2357AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 2358headers), 2359which also adds correct 64-bit support. Also, now all output filenames 2360are 2361completely lower case. 2362 2363AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 2364loading table files. A warning is issued for any such tables. The only 2365exception is an FADT. This also fixes a possible fault when attempting to 2366load 2367non-AML tables. ACPICA BZ 932. 2368 2369AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where 2370a 2371missing table terminator could cause a fault when using the -p option. 2372 2373AcpiSrc: Fixed a possible divide-by-zero fault when generating file 2374statistics. 2375 23763) Example Code and Data Size 2377 2378These are the sizes for the OS-independent acpica.lib produced by the 2379Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 2380includes the debug output trace mechanism and has a much larger code and 2381data 2382size. 2383 2384 Previous Release (VC 9.0): 2385 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 2386 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 2387 Current Release (VC 9.0): 2388 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 2389 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 2390 2391 2392---------------------------------------- 239323 June 2011. Summary of changes for version 20110623: 2394 23951) ACPI CA Core Subsystem: 2396 2397Updated the predefined name repair mechanism to not attempt repair of a 2398_TSS 2399return object if a _PSS object is present. We can only sort the _TSS 2400return 2401package if there is no _PSS within the same scope. This is because if 2402_PSS 2403is 2404present, the ACPI specification dictates that the _TSS Power Dissipation 2405field 2406is to be ignored, and therefore some BIOSs leave garbage values in the 2407_TSS 2408Power field(s). In this case, it is best to just return the _TSS package 2409as- 2410is. Reported by, and fixed with assistance from Fenghua Yu. 2411 2412Added an option to globally disable the control method return value 2413validation 2414and repair. This runtime option can be used to disable return value 2415repair 2416if 2417this is causing a problem on a particular machine. Also added an option 2418to 2419AcpiExec (-dr) to set this disable flag. 2420 2421All makefiles and project files: Major changes to improve generation of 2422ACPICA 2423tools. ACPICA BZ 912: 2424 Reduce default optimization levels to improve compatibility 2425 For Linux, add strict-aliasing=0 for gcc 4 2426 Cleanup and simplify use of command line defines 2427 Cleanup multithread library support 2428 Improve usage messages 2429 2430Linux-specific header: update handling of THREAD_ID and pthread. For the 243132- 2432bit case, improve casting to eliminate possible warnings, especially with 2433the 2434acpica tools. 2435 2436Example Code and Data Size: These are the sizes for the OS-independent 2437acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2438debug 2439version of the code includes the debug output trace mechanism and has a 2440much 2441larger code and data size. 2442 2443 Previous Release (VC 9.0): 2444 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 2445 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 2446 Current Release (VC 9.0): 2447 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 2448 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 2449 24502) iASL Compiler/Disassembler and Tools: 2451 2452With this release, a new utility named "acpihelp" has been added to the 2453ACPICA 2454package. This utility summarizes the ACPI specification chapters for the 2455ASL 2456and AML languages. It generates under Linux/Unix as well as Windows, and 2457provides the following functionality: 2458 Find/display ASL operator(s) -- with description and syntax. 2459 Find/display ASL keyword(s) -- with exact spelling and descriptions. 2460 Find/display ACPI predefined name(s) -- with description, number 2461 of arguments, and the return value data type. 2462 Find/display AML opcode name(s) -- with opcode, arguments, and 2463grammar. 2464 Decode/display AML opcode -- with opcode name, arguments, and 2465grammar. 2466 2467Service Layers: Make multi-thread support configurable. Conditionally 2468compile 2469the multi-thread support so that threading libraries will not be linked 2470if 2471not 2472necessary. The only tool that requires multi-thread support is AcpiExec. 2473 2474iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 2475of 2476Bison appear to want the interface to yyerror to be a const char * (or at 2477least this is a problem when generating iASL on some systems.) ACPICA BZ 2478923 2479Pierre Lejeune. 2480 2481Tools: Fix for systems where O_BINARY is not defined. Only used for 2482Windows 2483versions of the tools. 2484 2485---------------------------------------- 248627 May 2011. Summary of changes for version 20110527: 2487 24881) ACPI CA Core Subsystem: 2489 2490ASL Load() operator: Reinstate most restrictions on the incoming ACPI 2491table 2492signature. Now, only allow SSDT, OEMx, and a null signature. History: 2493 1) Originally, we checked the table signature for "SSDT" or "PSDT". 2494 (PSDT is now obsolete.) 2495 2) We added support for OEMx tables, signature "OEM" plus a fourth 2496 "don't care" character. 2497 3) Valid tables were encountered with a null signature, so we just 2498 gave up on validating the signature, (05/2008). 2499 4) We encountered non-AML tables such as the MADT, which caused 2500 interpreter errors and kernel faults. So now, we once again allow 2501 only SSDT, OEMx, and now, also a null signature. (05/2011). 2502 2503Added the missing _TDL predefined name to the global name list in order 2504to 2505enable validation. Affects both the core ACPICA code and the iASL 2506compiler. 2507 2508Example Code and Data Size: These are the sizes for the OS-independent 2509acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2510debug 2511version of the code includes the debug output trace mechanism and has a 2512much 2513larger code and data size. 2514 2515 Previous Release (VC 9.0): 2516 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 2517 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 2518 Current Release (VC 9.0): 2519 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 2520 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 2521 25222) iASL Compiler/Disassembler and Tools: 2523 2524Debugger/AcpiExec: Implemented support for "complex" method arguments on 2525the 2526debugger command line. This adds support beyond simple integers -- 2527including 2528Strings, Buffers, and Packages. Includes support for nested packages. 2529Increased the default command line buffer size to accommodate these 2530arguments. 2531See the ACPICA reference for details and syntax. ACPICA BZ 917. 2532 2533Debugger/AcpiExec: Implemented support for "default" method arguments for 2534the 2535Execute/Debug command. Now, the debugger will always invoke a control 2536method 2537with the required number of arguments -- even if the command line 2538specifies 2539none or insufficient arguments. It uses default integer values for any 2540missing 2541arguments. Also fixes a bug where only six method arguments maximum were 2542supported instead of the required seven. 2543 2544Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 2545and 2546also return status in order to prevent buffer overruns. See the ACPICA 2547reference for details and syntax. ACPICA BZ 921 2548 2549iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 2550makefiles to simplify support for the two different but similar parser 2551generators, bison and yacc. 2552 2553Updated the generic unix makefile for gcc 4. The default gcc version is 2554now 2555expected to be 4 or greater, since options specific to gcc 4 are used. 2556 2557---------------------------------------- 255813 April 2011. Summary of changes for version 20110413: 2559 25601) ACPI CA Core Subsystem: 2561 2562Implemented support to execute a so-called "orphan" _REG method under the 2563EC 2564device. This change will force the execution of a _REG method underneath 2565the 2566EC 2567device even if there is no corresponding operation region of type 2568EmbeddedControl. Fixes a problem seen on some machines and apparently is 2569compatible with Windows behavior. ACPICA BZ 875. 2570 2571Added more predefined methods that are eligible for automatic NULL 2572package 2573element removal. This change adds another group of predefined names to 2574the 2575list 2576of names that can be repaired by having NULL package elements dynamically 2577removed. This group are those methods that return a single variable- 2578length 2579package containing simple data types such as integers, buffers, strings. 2580This 2581includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 2582_PSL, 2583_Sx, 2584and _TZD. ACPICA BZ 914. 2585 2586Split and segregated all internal global lock functions to a new file, 2587evglock.c. 2588 2589Updated internal address SpaceID for DataTable regions. Moved this 2590internal 2591space 2592id in preparation for ACPI 5.0 changes that will include some new space 2593IDs. 2594This 2595change should not affect user/host code. 2596 2597Example Code and Data Size: These are the sizes for the OS-independent 2598acpica.lib 2599produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 2600version of 2601the code includes the debug output trace mechanism and has a much larger 2602code 2603and 2604data size. 2605 2606 Previous Release (VC 9.0): 2607 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 2608 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 2609 Current Release (VC 9.0): 2610 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 2611 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 2612 26132) iASL Compiler/Disassembler and Tools: 2614 2615iASL/DTC: Major update for new grammar features. Allow generic data types 2616in 2617custom ACPI tables. Field names are now optional. Any line can be split 2618to 2619multiple lines using the continuation char (\). Large buffers now use 2620line- 2621continuation character(s) and no colon on the continuation lines. See the 2622grammar 2623update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 2624Moore. 2625 2626iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 2627statements. 2628Since the parser stuffs a "zero" as the return value for these statements 2629(due 2630to 2631the underlying AML grammar), they were seen as "return with value" by the 2632iASL 2633semantic checking. They are now seen correctly as "null" return 2634statements. 2635 2636iASL: Check if a_REG declaration has a corresponding Operation Region. 2637Adds a 2638check for each _REG to ensure that there is in fact a corresponding 2639operation 2640region declaration in the same scope. If not, the _REG method is not very 2641useful 2642since it probably won't be executed. ACPICA BZ 915. 2643 2644iASL/DTC: Finish support for expression evaluation. Added a new 2645expression 2646parser 2647that implements c-style operator precedence and parenthesization. ACPICA 2648bugzilla 2649908. 2650 2651Disassembler/DTC: Remove support for () and <> style comments in data 2652tables. 2653Now 2654that DTC has full expression support, we don't want to have comment 2655strings 2656that 2657start with a parentheses or a less-than symbol. Now, only the standard /* 2658and 2659// 2660comments are supported, as well as the bracket [] comments. 2661 2662AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 2663"unusual" 2664headers in the acpidump file. Update the header validation to support 2665these 2666tables. Problem introduced in previous AcpiXtract version in the change 2667to 2668support "wrong checksum" error messages emitted by acpidump utility. 2669 2670iASL: Add a * option to generate all template files (as a synonym for 2671ALL) 2672as 2673in 2674"iasl -T *" or "iasl -T ALL". 2675 2676iASL/DTC: Do not abort compiler on fatal errors. We do not want to 2677completely 2678abort the compiler on "fatal" errors, simply should abort the current 2679compile. 2680This allows multiple compiles with a single (possibly wildcard) compiler 2681invocation. 2682 2683---------------------------------------- 268416 March 2011. Summary of changes for version 20110316: 2685 26861) ACPI CA Core Subsystem: 2687 2688Fixed a problem caused by a _PRW method appearing at the namespace root 2689scope 2690during the setup of wake GPEs. A fault could occur if a _PRW directly 2691under 2692the 2693root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 2694 2695Implemented support for "spurious" Global Lock interrupts. On some 2696systems, a 2697global lock interrupt can occur without the pending flag being set. Upon 2698a 2699GL 2700interrupt, we now ensure that a thread is actually waiting for the lock 2701before 2702signaling GL availability. Rafael Wysocki, Bob Moore. 2703 2704Example Code and Data Size: These are the sizes for the OS-independent 2705acpica.lib 2706produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 2707version of 2708the code includes the debug output trace mechanism and has a much larger 2709code 2710and 2711data size. 2712 2713 Previous Release (VC 9.0): 2714 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 2715 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 2716 Current Release (VC 9.0): 2717 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 2718 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 2719 27202) iASL Compiler/Disassembler and Tools: 2721 2722Implemented full support for the "SLIC" ACPI table. Includes support in 2723the 2724header files, disassembler, table compiler, and template generator. Bob 2725Moore, 2726Lin Ming. 2727 2728AcpiXtract: Correctly handle embedded comments and messages from 2729AcpiDump. 2730Apparently some or all versions of acpidump will occasionally emit a 2731comment 2732like 2733"Wrong checksum", etc., into the dump file. This was causing problems for 2734AcpiXtract. ACPICA BZ 905. 2735 2736iASL: Fix the Linux makefile by removing an inadvertent double file 2737inclusion. 2738ACPICA BZ 913. 2739 2740AcpiExec: Update installation of operation region handlers. Install one 2741handler 2742for a user-defined address space. This is used by the ASL test suite 2743(ASLTS). 2744 2745---------------------------------------- 274611 February 2011. Summary of changes for version 20110211: 2747 27481) ACPI CA Core Subsystem: 2749 2750Added a mechanism to defer _REG methods for some early-installed 2751handlers. 2752Most user handlers should be installed before call to 2753AcpiEnableSubsystem. 2754However, Event handlers and region handlers should be installed after 2755AcpiInitializeObjects. Override handlers for the "default" regions should 2756be 2757installed early, however. This change executes all _REG methods for the 2758default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 2759chicken/egg issues between them. ACPICA BZ 848. 2760 2761Implemented an optimization for GPE detection. This optimization will 2762simply 2763ignore GPE registers that contain no enabled GPEs -- there is no need to 2764read the register since this information is available internally. This 2765becomes more important on machines with a large GPE space. ACPICA 2766bugzilla 2767884. Lin Ming. Suggestion from Joe Liu. 2768 2769Removed all use of the highly unreliable FADT revision field. The 2770revision 2771number in the FADT has been found to be completely unreliable and cannot 2772be 2773trusted. Only the actual table length can be used to infer the version. 2774This 2775change updates the ACPICA core and the disassembler so that both no 2776longer 2777even look at the FADT version and instead depend solely upon the FADT 2778length. 2779 2780Fix an unresolved name issue for the no-debug and no-error-message source 2781generation cases. The _AcpiModuleName was left undefined in these cases, 2782but 2783it is actually needed as a parameter to some interfaces. Define 2784_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 2785 2786Split several large files (makefiles and project files updated) 2787 utglobal.c -> utdecode.c 2788 dbcomds.c -> dbmethod.c dbnames.c 2789 dsopcode.c -> dsargs.c dscontrol.c 2790 dsload.c -> dsload2.c 2791 aslanalyze.c -> aslbtypes.c aslwalks.c 2792 2793Example Code and Data Size: These are the sizes for the OS-independent 2794acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2795debug version of the code includes the debug output trace mechanism and 2796has 2797a much larger code and data size. 2798 2799 Previous Release (VC 9.0): 2800 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 2801 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 2802 Current Release (VC 9.0): 2803 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 2804 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 2805 28062) iASL Compiler/Disassembler and Tools: 2807 2808iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 2809These are useful C-style macros with the standard definitions. ACPICA 2810bugzilla 898. 2811 2812iASL/DTC: Added support for integer expressions and labels. Support for 2813full 2814expressions for all integer fields in all ACPI tables. Support for labels 2815in 2816"generic" portions of tables such as UEFI. See the iASL reference manual. 2817 2818Debugger: Added a command to display the status of global handlers. The 2819"handlers" command will display op region, fixed event, and miscellaneous 2820global handlers. installation status -- and for op regions, whether 2821default 2822or user-installed handler will be used. 2823 2824iASL: Warn if reserved method incorrectly returns a value. Many 2825predefined 2826names are defined such that they do not return a value. If implemented as 2827a 2828method, issue a warning if such a name explicitly returns a value. ACPICA 2829Bugzilla 855. 2830 2831iASL: Added detection of GPE method name conflicts. Detects a conflict 2832where 2833there are two GPE methods of the form _Lxy and _Exy in the same scope. 2834(For 2835example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 2836 2837iASL/DTC: Fixed a couple input scanner issues with comments and line 2838numbers. Comment remover could get confused and miss a comment ending. 2839Fixed 2840a problem with line counter maintenance. 2841 2842iASL/DTC: Reduced the severity of some errors from fatal to error. There 2843is 2844no need to abort on simple errors within a field definition. 2845 2846Debugger: Simplified the output of the help command. All help output now 2847in 2848a single screen, instead of help subcommands. ACPICA Bugzilla 897. 2849 2850---------------------------------------- 285112 January 2011. Summary of changes for version 20110112: 2852 28531) ACPI CA Core Subsystem: 2854 2855Fixed a race condition between method execution and namespace walks that 2856can 2857possibly cause a fault. The problem was apparently introduced in version 285820100528 as a result of a performance optimization that reduces the 2859number 2860of 2861namespace walks upon method exit by using the delete_namespace_subtree 2862function instead of the delete_namespace_by_owner function used 2863previously. 2864Bug is a missing namespace lock in the delete_namespace_subtree function. 2865dana.myers@oracle.com 2866 2867Fixed several issues and a possible fault with the automatic "serialized" 2868method support. History: This support changes a method to "serialized" on 2869the 2870fly if the method generates an AE_ALREADY_EXISTS error, indicating the 2871possibility that it cannot handle reentrancy. This fix repairs a couple 2872of 2873issues seen in the field, especially on machines with many cores: 2874 2875 1) Delete method children only upon the exit of the last thread, 2876 so as to not delete objects out from under other running threads 2877 (and possibly causing a fault.) 2878 2) Set the "serialized" bit for the method only upon the exit of the 2879 Last thread, so as to not cause deadlock when running threads 2880 attempt to exit. 2881 3) Cleanup the use of the AML "MethodFlags" and internal method flags 2882 so that there is no longer any confusion between the two. 2883 2884 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 2885 2886Debugger: Now lock the namespace for duration of a namespace dump. 2887Prevents 2888issues if the namespace is changing dynamically underneath the debugger. 2889Especially affects temporary namespace nodes, since the debugger displays 2890these also. 2891 2892Updated the ordering of include files. The ACPICA headers should appear 2893before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 2894set 2895any necessary compiler-specific defines, etc. Affects the ACPI-related 2896tools 2897and utilities. 2898 2899Updated all ACPICA copyrights and signons to 2011. Added the 2011 2900copyright 2901to all module headers and signons, including the Linux header. This 2902affects 2903virtually every file in the ACPICA core subsystem, iASL compiler, and all 2904utilities. 2905 2906Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 2907project files for VC++ 6.0 are now obsolete. New project files can be 2908found 2909under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 2910details. 2911 2912Example Code and Data Size: These are the sizes for the OS-independent 2913acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2914debug version of the code includes the debug output trace mechanism and 2915has a 2916much larger code and data size. 2917 2918 Previous Release (VC 6.0): 2919 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 2920 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 2921 Current Release (VC 9.0): 2922 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 2923 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 2924 29252) iASL Compiler/Disassembler and Tools: 2926 2927iASL: Added generic data types to the Data Table compiler. Add "generic" 2928data 2929types such as UINT32, String, Unicode, etc., to simplify the generation 2930of 2931platform-defined tables such as UEFI. Lin Ming. 2932 2933iASL: Added listing support for the Data Table Compiler. Adds listing 2934support 2935(-l) to display actual binary output for each line of input code. 2936 2937---------------------------------------- 293809 December 2010. Summary of changes for version 20101209: 2939 29401) ACPI CA Core Subsystem: 2941 2942Completed the major overhaul of the GPE support code that was begun in 2943July 29442010. Major features include: removal of _PRW execution in ACPICA (host 2945executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 2946changes to existing interfaces, simplification of GPE handler operation, 2947and 2948a handful of new interfaces: 2949 2950 AcpiUpdateAllGpes 2951 AcpiFinishGpe 2952 AcpiSetupGpeForWake 2953 AcpiSetGpeWakeMask 2954 One new file, evxfgpe.c to consolidate all external GPE interfaces. 2955 2956See the ACPICA Programmer Reference for full details and programming 2957information. See the new section 4.4 "General Purpose Event (GPE) 2958Support" 2959for a full overview, and section 8.7 "ACPI General Purpose Event 2960Management" 2961for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin 2962Ming, 2963Bob Moore, Rafael Wysocki. 2964 2965Implemented a new GPE feature for Windows compatibility, the "Implicit 2966Wake 2967GPE Notify". This feature will automatically issue a Notify(2) on a 2968device 2969when a Wake GPE is received if there is no corresponding GPE method or 2970handler. ACPICA BZ 870. 2971 2972Fixed a problem with the Scope() operator during table parse and load 2973phase. 2974During load phase (table load or method execution), the scope operator 2975should 2976not enter the target into the namespace. Instead, it should open a new 2977scope 2978at the target location. Linux BZ 19462, ACPICA BZ 882. 2979 2980Example Code and Data Size: These are the sizes for the OS-independent 2981acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2982debug version of the code includes the debug output trace mechanism and 2983has a 2984much larger code and data size. 2985 2986 Previous Release: 2987 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 2988 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 2989 Current Release: 2990 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 2991 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2992 29932) iASL Compiler/Disassembler and Tools: 2994 2995iASL: Relax the alphanumeric restriction on _CID strings. These strings 2996are 2997"bus-specific" per the ACPI specification, and therefore any characters 2998are 2999acceptable. The only checks that can be performed are for a null string 3000and 3001perhaps for a leading asterisk. ACPICA BZ 886. 3002 3003iASL: Fixed a problem where a syntax error that caused a premature EOF 3004condition on the source file emitted a very confusing error message. The 3005premature EOF is now detected correctly. ACPICA BZ 891. 3006 3007Disassembler: Decode the AccessSize within a Generic Address Structure 3008(byte 3009access, word access, etc.) Note, this field does not allow arbitrary bit 3010access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 3011 3012New: AcpiNames utility - Example namespace dump utility. Shows an example 3013of 3014ACPICA configuration for a minimal namespace dump utility. Uses table and 3015namespace managers, but no AML interpreter. Does not add any 3016functionality 3017over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 3018partition and configure ACPICA. ACPICA BZ 883. 3019 3020AML Debugger: Increased the debugger buffer size for method return 3021objects. 3022Was 4K, increased to 16K. Also enhanced error messages for debugger 3023method 3024execution, including the buffer overflow case. 3025 3026---------------------------------------- 302713 October 2010. Summary of changes for version 20101013: 3028 30291) ACPI CA Core Subsystem: 3030 3031Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 3032now 3033clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 3034HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 3035 3036Changed the type of the predefined namespace object _TZ from ThermalZone 3037to 3038Device. This was found to be confusing to the host software that 3039processes 3040the various thermal zones, since _TZ is not really a ThermalZone. 3041However, 3042a 3043Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 3044Zhang. 3045 3046Added Windows Vista SP2 to the list of supported _OSI strings. The actual 3047string is "Windows 2006 SP2". 3048 3049Eliminated duplicate code in AcpiUtExecute* functions. Now that the 3050nsrepair 3051code automatically repairs _HID-related strings, this type of code is no 3052longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 3053878. 3054 3055Example Code and Data Size: These are the sizes for the OS-independent 3056acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3057debug version of the code includes the debug output trace mechanism and 3058has a 3059much larger code and data size. 3060 3061 Previous Release: 3062 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 3063 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 3064 Current Release: 3065 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 3066 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 3067 30682) iASL Compiler/Disassembler and Tools: 3069 3070iASL: Implemented additional compile-time validation for _HID strings. 3071The 3072non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the 3073length 3074of 3075the string must be exactly seven or eight characters. For both _HID and 3076_CID 3077strings, all characters must be alphanumeric. ACPICA BZ 874. 3078 3079iASL: Allow certain "null" resource descriptors. Some BIOS code creates 3080descriptors that are mostly or all zeros, with the expectation that they 3081will 3082be filled in at runtime. iASL now allows this as long as there is a 3083"resource 3084tag" (name) associated with the descriptor, which gives the ASL a handle 3085needed to modify the descriptor. ACPICA BZ 873. 3086 3087Added single-thread support to the generic Unix application OSL. 3088Primarily 3089for iASL support, this change removes the use of semaphores in the 3090single- 3091threaded ACPICA tools/applications - increasing performance. The 3092_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 3093option. ACPICA BZ 879. 3094 3095AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 3096support 3097for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 3098 3099iASL: Moved all compiler messages to a new file, aslmessages.h. 3100 3101---------------------------------------- 310215 September 2010. Summary of changes for version 20100915: 3103 31041) ACPI CA Core Subsystem: 3105 3106Removed the AcpiOsDerivePciId OSL interface. The various host 3107implementations 3108of this function were not OS-dependent and are now obsolete and can be 3109removed from all host OSLs. This function has been replaced by 3110AcpiHwDerivePciId, which is now part of the ACPICA core code. 3111AcpiHwDerivePciId has been implemented without recursion. Adds one new 3112module, hwpci.c. ACPICA BZ 857. 3113 3114Implemented a dynamic repair for _HID and _CID strings. The following 3115problems are now repaired at runtime: 1) Remove a leading asterisk in the 3116string, and 2) the entire string is uppercased. Both repairs are in 3117accordance with the ACPI specification and will simplify host driver 3118code. 3119ACPICA BZ 871. 3120 3121The ACPI_THREAD_ID type is no longer configurable, internally it is now 3122always UINT64. This simplifies the ACPICA code, especially any printf 3123output. 3124UINT64 is the only common data type for all thread_id types across all 3125operating systems. It is now up to the host OSL to cast the native 3126thread_id 3127type to UINT64 before returning the value to ACPICA (via 3128AcpiOsGetThreadId). 3129Lin Ming, Bob Moore. 3130 3131Added the ACPI_INLINE type to enhance the ACPICA configuration. The 3132"inline" 3133keyword is not standard across compilers, and this type allows inline to 3134be 3135configured on a per-compiler basis. Lin Ming. 3136 3137Made the system global AcpiGbl_SystemAwakeAndRunning publically 3138available. 3139Added an extern for this boolean in acpixf.h. Some hosts utilize this 3140value 3141during suspend/restore operations. ACPICA BZ 869. 3142 3143All code that implements error/warning messages with the "ACPI:" prefix 3144has 3145been moved to a new module, utxferror.c. 3146 3147The UINT64_OVERLAY was moved to utmath.c, which is the only module where 3148it 3149is used. ACPICA BZ 829. Lin Ming, Bob Moore. 3150 3151Example Code and Data Size: These are the sizes for the OS-independent 3152acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3153debug version of the code includes the debug output trace mechanism and 3154has a 3155much larger code and data size. 3156 3157 Previous Release: 3158 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 3159 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 3160 Current Release: 3161 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 3162 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 3163 31642) iASL Compiler/Disassembler and Tools: 3165 3166iASL/Disassembler: Write ACPI errors to stderr instead of the output 3167file. 3168This keeps the output files free of random error messages that may 3169originate 3170from within the namespace/interpreter code. Used this opportunity to 3171merge 3172all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 3173866. Lin Ming, Bob Moore. 3174 3175Tools: update some printfs for ansi warnings on size_t. Handle width 3176change 3177of size_t on 32-bit versus 64-bit generations. Lin Ming. 3178 3179---------------------------------------- 318006 August 2010. Summary of changes for version 20100806: 3181 31821) ACPI CA Core Subsystem: 3183 3184Designed and implemented a new host interface to the _OSI support code. 3185This 3186will allow the host to dynamically add or remove multiple _OSI strings, 3187as 3188well as install an optional handler that is called for each _OSI 3189invocation. 3190Also added a new AML debugger command, 'osi' to display and modify the 3191global 3192_OSI string table, and test support in the AcpiExec utility. See the 3193ACPICA 3194reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 3195New Functions: 3196 AcpiInstallInterface - Add an _OSI string. 3197 AcpiRemoveInterface - Delete an _OSI string. 3198 AcpiInstallInterfaceHandler - Install optional _OSI handler. 3199Obsolete Functions: 3200 AcpiOsValidateInterface - no longer used. 3201New Files: 3202 source/components/utilities/utosi.c 3203 3204Re-introduced the support to enable multi-byte transfers for Embedded 3205Controller (EC) operation regions. A reported problem was found to be a 3206bug 3207in the host OS, not in the multi-byte support. Previously, the maximum 3208data 3209size passed to the EC operation region handler was a single byte. There 3210are 3211often EC Fields larger than one byte that need to be transferred, and it 3212is 3213useful for the EC driver to lock these as a single transaction. This 3214change 3215enables single transfers larger than 8 bits. This effectively changes the 3216access to the EC space from ByteAcc to AnyAcc, and will probably require 3217changes to the host OS Embedded Controller driver to enable 16/32/64/256- 3218bit 3219transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 3220 3221Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 3222prototype in acpiosxf.h had the output value pointer as a (void *). 3223It should be a (UINT64 *). This may affect some host OSL code. 3224 3225Fixed a couple problems with the recently modified Linux makefiles for 3226iASL 3227and AcpiExec. These new makefiles place the generated object files in the 3228local directory so that there can be no collisions between the files that 3229are 3230shared between them that are compiled with different options. 3231 3232Example Code and Data Size: These are the sizes for the OS-independent 3233acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3234debug version of the code includes the debug output trace mechanism and 3235has a 3236much larger code and data size. 3237 3238 Previous Release: 3239 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 3240 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 3241 Current Release: 3242 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 3243 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 3244 32452) iASL Compiler/Disassembler and Tools: 3246 3247iASL/Disassembler: Added a new option (-da, "disassemble all") to load 3248the 3249namespace from and disassemble an entire group of AML files. Useful for 3250loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 3251and 3252disassembling with one simple command. ACPICA BZ 865. Lin Ming. 3253 3254iASL: Allow multiple invocations of -e option. This change allows 3255multiple 3256uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 3257834. 3258Lin Ming. 3259 3260---------------------------------------- 326102 July 2010. Summary of changes for version 20100702: 3262 32631) ACPI CA Core Subsystem: 3264 3265Implemented several updates to the recently added GPE reference count 3266support. The model for "wake" GPEs is changing to give the host OS 3267complete 3268control of these GPEs. Eventually, the ACPICA core will not execute any 3269_PRW 3270methods, since the host already must execute them. Also, additional 3271changes 3272were made to help ensure that the reference counts are kept in proper 3273synchronization with reality. Rafael J. Wysocki. 3274 32751) Ensure that GPEs are not enabled twice during initialization. 32762) Ensure that GPE enable masks stay in sync with the reference count. 32773) Do not inadvertently enable GPEs when writing GPE registers. 32784) Remove the internal wake reference counter and add new AcpiGpeWakeup 3279interface. This interface will set or clear individual GPEs for wakeup. 32805) Remove GpeType argument from AcpiEnable and AcpiDisable. These 3281interfaces 3282are now used for "runtime" GPEs only. 3283 3284Changed the behavior of the GPE install/remove handler interfaces. The 3285GPE 3286is 3287no longer disabled during this process, as it was found to cause problems 3288on 3289some machines. Rafael J. Wysocki. 3290 3291Reverted a change introduced in version 20100528 to enable Embedded 3292Controller multi-byte transfers. This change was found to cause problems 3293with 3294Index Fields and possibly Bank Fields. It will be reintroduced when these 3295problems have been resolved. 3296 3297Fixed a problem with references to Alias objects within Package Objects. 3298A 3299reference to an Alias within the definition of a Package was not always 3300resolved properly. Aliases to objects like Processors, Thermal zones, 3301etc. 3302were resolved to the actual object instead of a reference to the object 3303as 3304it 3305should be. Package objects are only allowed to contain integer, string, 3306buffer, package, and reference objects. Redhat bugzilla 608648. 3307 3308Example Code and Data Size: These are the sizes for the OS-independent 3309acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3310debug version of the code includes the debug output trace mechanism and 3311has a 3312much larger code and data size. 3313 3314 Previous Release: 3315 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 3316 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 3317 Current Release: 3318 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 3319 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 3320 33212) iASL Compiler/Disassembler and Tools: 3322 3323iASL: Implemented a new compiler subsystem to allow definition and 3324compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 3325These 3326are called "ACPI Data Tables", and the new compiler is the "Data Table 3327Compiler". This compiler is intended to simplify the existing error-prone 3328process of creating these tables for the BIOS, as well as allowing the 3329disassembly, modification, recompilation, and override of existing ACPI 3330data 3331tables. See the iASL User Guide for detailed information. 3332 3333iASL: Implemented a new Template Generator option in support of the new 3334Data 3335Table Compiler. This option will create examples of all known ACPI tables 3336that can be used as the basis for table development. See the iASL 3337documentation and the -T option. 3338 3339Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 3340Descriptor Table). 3341 3342Updated the Linux makefiles for iASL and AcpiExec to place the generated 3343object files in the local directory so that there can be no collisions 3344between the shared files between them that are generated with different 3345options. 3346 3347Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. 3348Use 3349the #define __APPLE__ to enable this support. 3350 3351---------------------------------------- 335228 May 2010. Summary of changes for version 20100528: 3353 3354Note: The ACPI 4.0a specification was released on April 5, 2010 and is 3355available at www.acpi.info. This is primarily an errata release. 3356 33571) ACPI CA Core Subsystem: 3358 3359Undefined ACPI tables: We are looking for the definitions for the 3360following 3361ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 3362 3363Implemented support to enable multi-byte transfers for Embedded 3364Controller 3365(EC) operation regions. Previously, the maximum data size passed to the 3366EC 3367operation region handler was a single byte. There are often EC Fields 3368larger 3369than one byte that need to be transferred, and it is useful for the EC 3370driver 3371to lock these as a single transaction. This change enables single 3372transfers 3373larger than 8 bits. This effectively changes the access to the EC space 3374from 3375ByteAcc to AnyAcc, and will probably require changes to the host OS 3376Embedded 3377Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 3378bit 3379transfers. Alexey Starikovskiy, Lin Ming 3380 3381Implemented a performance enhancement for namespace search and access. 3382This 3383change enhances the performance of namespace searches and walks by adding 3384a 3385backpointer to the parent in each namespace node. On large namespaces, 3386this 3387change can improve overall ACPI performance by up to 9X. Adding a pointer 3388to 3389each namespace node increases the overall size of the internal namespace 3390by 3391about 5%, since each namespace entry usually consists of both a namespace 3392node and an ACPI operand object. However, this is the first growth of the 3393namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 3394 3395Implemented a performance optimization that reduces the number of 3396namespace 3397walks. On control method exit, only walk the namespace if the method is 3398known 3399to have created namespace objects outside of its local scope. Previously, 3400the 3401entire namespace was traversed on each control method exit. This change 3402can 3403improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 3404Moore. 3405 3406Added support to truncate I/O addresses to 16 bits for Windows 3407compatibility. 3408Some ASL code has been seen in the field that inadvertently has bits set 3409above bit 15. This feature is optional and is enabled if the BIOS 3410requests 3411any Windows OSI strings. It can also be enabled by the host OS. Matthew 3412Garrett, Bob Moore. 3413 3414Added support to limit the maximum time for the ASL Sleep() operator. To 3415prevent accidental deep sleeps, limit the maximum time that Sleep() will 3416actually sleep. Configurable, the default maximum is two seconds. ACPICA 3417bugzilla 854. 3418 3419Added run-time validation support for the _WDG and_WED Microsoft 3420predefined 3421methods. These objects are defined by "Windows Instrumentation", and are 3422not 3423part of the ACPI spec. ACPICA BZ 860. 3424 3425Expanded all statistic counters used during namespace and device 3426initialization from 16 to 32 bits in order to support very large 3427namespaces. 3428 3429Replaced all instances of %d in printf format specifiers with %u since 3430nearly 3431all integers in ACPICA are unsigned. 3432 3433Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 3434returned 3435as AE_NO_HANDLER. 3436 3437Example Code and Data Size: These are the sizes for the OS-independent 3438acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3439debug version of the code includes the debug output trace mechanism and 3440has a 3441much larger code and data size. 3442 3443 Previous Release: 3444 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 3445 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 3446 Current Release: 3447 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 3448 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 3449 34502) iASL Compiler/Disassembler and Tools: 3451 3452iASL: Added compiler support for the _WDG and_WED Microsoft predefined 3453methods. These objects are defined by "Windows Instrumentation", and are 3454not 3455part of the ACPI spec. ACPICA BZ 860. 3456 3457AcpiExec: added option to disable the memory tracking mechanism. The -dt 3458option will disable the tracking mechanism, which improves performance 3459considerably. 3460 3461AcpiExec: Restructured the command line options into -d (disable) and -e 3462(enable) options. 3463 3464---------------------------------------- 346528 April 2010. Summary of changes for version 20100428: 3466 34671) ACPI CA Core Subsystem: 3468 3469Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 3470including FADT-based and GPE Block Devices, execute any _PRW methods in 3471the 3472new table, and process any _Lxx/_Exx GPE methods in the new table. Any 3473runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 3474immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 3475Devices. Provides compatibility with other ACPI implementations. Two new 3476files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 3477Moore. 3478 3479Fixed a regression introduced in version 20100331 within the table 3480manager 3481where initial table loading could fail. This was introduced in the fix 3482for 3483AcpiReallocateRootTable. Also, renamed some of fields in the table 3484manager 3485data structures to clarify their meaning and use. 3486 3487Fixed a possible allocation overrun during internal object copy in 3488AcpiUtCopySimpleObject. The original code did not correctly handle the 3489case 3490where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 3491847. 3492 3493Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 3494possible access beyond end-of-allocation. Also, now fully validate 3495descriptor 3496(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 3497 3498Example Code and Data Size: These are the sizes for the OS-independent 3499acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3500debug version of the code includes the debug output trace mechanism and 3501has a 3502much larger code and data size. 3503 3504 Previous Release: 3505 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 3506 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 3507 Current Release: 3508 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 3509 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 3510 35112) iASL Compiler/Disassembler and Tools: 3512 3513iASL: Implemented Min/Max/Len/Gran validation for address resource 3514descriptors. This change implements validation for the address fields 3515that 3516are common to all address-type resource descriptors. These checks are 3517implemented: Checks for valid Min/Max, length within the Min/Max window, 3518valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as 3519per 3520table 6-40 in the ACPI 4.0a specification. Also split the large 3521aslrestype1.c 3522and aslrestype2.c files into five new files. ACPICA BZ 840. 3523 3524iASL: Added support for the _Wxx predefined names. This support was 3525missing 3526and these names were not recognized by the compiler as valid predefined 3527names. ACPICA BZ 851. 3528 3529iASL: Added an error for all predefined names that are defined to return 3530no 3531value and thus must be implemented as Control Methods. These include all 3532of 3533the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 3534names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 3535 3536iASL: Implemented the -ts option to emit hex AML data in ASL format, as 3537an 3538ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 3539be 3540dynamically loaded via the Load() operator. Also cleaned up output for 3541the 3542- 3543ta and -tc options. ACPICA BZ 853. 3544 3545Tests: Added a new file with examples of extended iASL error checking. 3546Demonstrates the advanced error checking ability of the iASL compiler. 3547Available at tests/misc/badcode.asl. 3548 3549---------------------------------------- 355031 March 2010. Summary of changes for version 20100331: 3551 35521) ACPI CA Core Subsystem: 3553 3554Completed a major update for the GPE support in order to improve support 3555for 3556shared GPEs and to simplify both host OS and ACPICA code. Added a 3557reference 3558count mechanism to support shared GPEs that require multiple device 3559drivers. 3560Several external interfaces have changed. One external interface has been 3561removed. One new external interface was added. Most of the GPE external 3562interfaces now use the GPE spinlock instead of the events mutex (and the 3563Flags parameter for many GPE interfaces has been removed.) See the 3564updated 3565ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 3566Rafael 3567Wysocki. ACPICA BZ 831. 3568 3569Changed: 3570 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 3571Removed: 3572 AcpiSetGpeType 3573New: 3574 AcpiSetGpe 3575 3576Implemented write support for DataTable operation regions. These regions 3577are 3578defined via the DataTableRegion() operator. Previously, only read support 3579was 3580implemented. The ACPI specification allows DataTableRegions to be 3581read/write, 3582however. 3583 3584Implemented a new subsystem option to force a copy of the DSDT to local 3585memory. Optionally copy the entire DSDT to local memory (instead of 3586simply 3587mapping it.) There are some (albeit very rare) BIOSs that corrupt or 3588replace 3589the original DSDT, creating the need for this option. Default is FALSE, 3590do 3591not copy the DSDT. 3592 3593Implemented detection of a corrupted or replaced DSDT. This change adds 3594support to detect a DSDT that has been corrupted and/or replaced from 3595outside 3596the OS (by firmware). This is typically catastrophic for the system, but 3597has 3598been seen on some machines. Once this problem has been detected, the DSDT 3599copy option can be enabled via system configuration. Lin Ming, Bob Moore. 3600 3601Fixed two problems with AcpiReallocateRootTable during the root table 3602copy. 3603When copying the root table to the new allocation, the length used was 3604incorrect. The new size was used instead of the current table size, 3605meaning 3606too much data was copied. Also, the count of available slots for ACPI 3607tables 3608was not set correctly. Alexey Starikovskiy, Bob Moore. 3609 3610Example Code and Data Size: These are the sizes for the OS-independent 3611acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3612debug version of the code includes the debug output trace mechanism and 3613has a 3614much larger code and data size. 3615 3616 Previous Release: 3617 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 3618 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 3619 Current Release: 3620 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 3621 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 3622 36232) iASL Compiler/Disassembler and Tools: 3624 3625iASL: Implement limited typechecking for values returned from predefined 3626control methods. The type of any returned static (unnamed) object is now 3627validated. For example, Return(1). ACPICA BZ 786. 3628 3629iASL: Fixed a predefined name object verification regression. Fixes a 3630problem 3631introduced in version 20100304. An error is incorrectly generated if a 3632predefined name is declared as a static named object with a value defined 3633using the keywords "Zero", "One", or "Ones". Lin Ming. 3634 3635iASL: Added Windows 7 support for the -g option (get local ACPI tables) 3636by 3637reducing the requested registry access rights. ACPICA BZ 842. 3638 3639Disassembler: fixed a possible fault when generating External() 3640statements. 3641Introduced in commit ae7d6fd: Properly handle externals with parent- 3642prefix 3643(carat). Fixes a string length allocation calculation. Lin Ming. 3644 3645---------------------------------------- 364604 March 2010. Summary of changes for version 20100304: 3647 36481) ACPI CA Core Subsystem: 3649 3650Fixed a possible problem with the AML Mutex handling function 3651AcpiExReleaseMutex where the function could fault under the very rare 3652condition when the interpreter has blocked, the interpreter lock is 3653released, 3654the interpreter is then reentered via the same thread, and attempts to 3655acquire an AML mutex that was previously acquired. FreeBSD report 140979. 3656Lin 3657Ming. 3658 3659Implemented additional configuration support for the AML "Debug Object". 3660Output from the debug object can now be enabled via a global variable, 3661AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 3662debugging. 3663This debug output is now available in the release version of ACPICA 3664instead 3665of just the debug version. Also, the entire debug output module can now 3666be 3667configured out of the ACPICA build if desired. One new file added, 3668executer/exdebug.c. Lin Ming, Bob Moore. 3669 3670Added header support for the ACPI MCHI table (Management Controller Host 3671Interface Table). This table was added in ACPI 4.0, but the defining 3672document 3673has only recently become available. 3674 3675Standardized output of integer values for ACPICA warnings/errors. Always 3676use 36770x prefix for hex output, always use %u for unsigned integer decimal 3678output. 3679Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 3680400 3681invocations.) These invocations were converted from the original 3682ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 3683 3684Example Code and Data Size: These are the sizes for the OS-independent 3685acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3686debug version of the code includes the debug output trace mechanism and 3687has a 3688much larger code and data size. 3689 3690 Previous Release: 3691 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 3692 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 3693 Current Release: 3694 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 3695 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 3696 36972) iASL Compiler/Disassembler and Tools: 3698 3699iASL: Implemented typechecking support for static (non-control method) 3700predefined named objects that are declared with the Name() operator. For 3701example, the type of this object is now validated to be of type Integer: 3702Name(_BBN, 1). This change migrates the compiler to using the core 3703predefined 3704name table instead of maintaining a local version. Added a new file, 3705aslpredef.c. ACPICA BZ 832. 3706 3707Disassembler: Added support for the ACPI 4.0 MCHI table. 3708 3709---------------------------------------- 371021 January 2010. Summary of changes for version 20100121: 3711 37121) ACPI CA Core Subsystem: 3713 3714Added the 2010 copyright to all module headers and signons. This affects 3715virtually every file in the ACPICA core subsystem, the iASL compiler, the 3716tools/utilities, and the test suites. 3717 3718Implemented a change to the AcpiGetDevices interface to eliminate 3719unnecessary 3720invocations of the _STA method. In the case where a specific _HID is 3721requested, do not run _STA until a _HID match is found. This eliminates 3722potentially dozens of _STA calls during a search for a particular 3723device/HID, 3724which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 3725 3726Implemented an additional repair for predefined method return values. 3727Attempt 3728to repair unexpected NULL elements within returned Package objects. 3729Create 3730an 3731Integer of value zero, a NULL String, or a zero-length Buffer as 3732appropriate. 3733ACPICA BZ 818. Lin Ming, Bob Moore. 3734 3735Removed the obsolete ACPI_INTEGER data type. This type was introduced as 3736the 3737code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 3738(with 373964-bit AML integers). It is now obsolete and this change removes it from 3740the 3741ACPICA code base, replaced by UINT64. The original typedef has been 3742retained 3743for now for compatibility with existing device driver code. ACPICA BZ 3744824. 3745 3746Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field 3747in 3748the parse tree object. 3749 3750Added additional warning options for the gcc-4 generation. Updated the 3751source 3752accordingly. This includes some code restructuring to eliminate 3753unreachable 3754code, elimination of some gotos, elimination of unused return values, 3755some 3756additional casting, and removal of redundant declarations. 3757 3758Example Code and Data Size: These are the sizes for the OS-independent 3759acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3760debug version of the code includes the debug output trace mechanism and 3761has a 3762much larger code and data size. 3763 3764 Previous Release: 3765 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 3766 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 3767 Current Release: 3768 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 3769 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 3770 37712) iASL Compiler/Disassembler and Tools: 3772 3773No functional changes for this release. 3774 3775---------------------------------------- 377614 December 2009. Summary of changes for version 20091214: 3777 37781) ACPI CA Core Subsystem: 3779 3780Enhanced automatic data type conversions for predefined name repairs. 3781This 3782change expands the automatic repairs/conversions for predefined name 3783return 3784values to make Integers, Strings, and Buffers fully interchangeable. 3785Also, 3786a 3787Buffer can be converted to a Package of Integers if necessary. The 3788nsrepair.c 3789module was completely restructured. Lin Ming, Bob Moore. 3790 3791Implemented automatic removal of null package elements during predefined 3792name 3793repairs. This change will automatically remove embedded and trailing NULL 3794package elements from returned package objects that are defined to 3795contain 3796a 3797variable number of sub-packages. The driver is then presented with a 3798package 3799with no null elements to deal with. ACPICA BZ 819. 3800 3801Implemented a repair for the predefined _FDE and _GTM names. The expected 3802return value for both names is a Buffer of 5 DWORDs. This repair fixes 3803two 3804possible problems (both seen in the field), where a package of integers 3805is 3806returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 3807Kim. 3808 3809Implemented additional module-level code support. This change will 3810properly 3811execute module-level code that is not at the root of the namespace (under 3812a 3813Device object, etc.). Now executes the code within the current scope 3814instead 3815of the root. ACPICA BZ 762. Lin Ming. 3816 3817Fixed possible mutex acquisition errors when running _REG methods. Fixes 3818a 3819problem where mutex errors can occur when running a _REG method that is 3820in 3821the same scope as a method-defined operation region or an operation 3822region 3823under a module-level IF block. This type of code is rare, so the problem 3824has 3825not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 3826 3827Fixed a possible memory leak during module-level code execution. An 3828object 3829could be leaked for each block of executed module-level code if the 3830interpreter slack mode is enabled This change deletes any implicitly 3831returned 3832object from the module-level code block. Lin Ming. 3833 3834Removed messages for successful predefined repair(s). The repair 3835mechanism 3836was considered too wordy. Now, messages are only unconditionally emitted 3837if 3838the return object cannot be repaired. Existing messages for successful 3839repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 3840827. 3841 3842Example Code and Data Size: These are the sizes for the OS-independent 3843acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3844debug version of the code includes the debug output trace mechanism and 3845has a 3846much larger code and data size. 3847 3848 Previous Release: 3849 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 3850 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 3851 Current Release: 3852 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 3853 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 3854 38552) iASL Compiler/Disassembler and Tools: 3856 3857iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 3858files 3859were no longer automatically removed at the termination of the compile. 3860 3861acpiexec: Implemented the -f option to specify default region fill value. 3862This option specifies the value used to initialize buffers that simulate 3863operation regions. Default value is zero. Useful for debugging problems 3864that 3865depend on a specific initial value for a region or field. 3866 3867---------------------------------------- 386812 November 2009. Summary of changes for version 20091112: 3869 38701) ACPI CA Core Subsystem: 3871 3872Implemented a post-order callback to AcpiWalkNamespace. The existing 3873interface only has a pre-order callback. This change adds an additional 3874parameter for a post-order callback which will be more useful for bus 3875scans. 3876ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 3877 3878Modified the behavior of the operation region memory mapping cache for 3879SystemMemory. Ensure that the memory mappings created for operation 3880regions 3881do not cross 4K page boundaries. Crossing a page boundary while mapping 3882regions can cause kernel warnings on some hosts if the pages have 3883different 3884attributes. Such regions are probably BIOS bugs, and this is the 3885workaround. 3886Linux BZ 14445. Lin Ming. 3887 3888Implemented an automatic repair for predefined methods that must return 3889sorted lists. This change will repair (by sorting) packages returned by 3890_ALR, 3891_PSS, and _TSS. Drivers can now assume that the packages are correctly 3892sorted 3893and do not contain NULL package elements. Adds one new file, 3894namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 3895 3896Fixed a possible fault during predefined name validation if a return 3897Package 3898object contains NULL elements. Also adds a warning if a NULL element is 3899followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 3900may 3901include repair or removal of all such NULL elements where possible. 3902 3903Implemented additional module-level executable AML code support. This 3904change 3905will execute module-level code that is not at the root of the namespace 3906(under a Device object, etc.) at table load time. Module-level executable 3907AML 3908code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 3909 3910Implemented a new internal function to create Integer objects. This 3911function 3912simplifies miscellaneous object creation code. ACPICA BZ 823. 3913 3914Reduced the severity of predefined repair messages, Warning to Info. 3915Since 3916the object was successfully repaired, a warning is too severe. Reduced to 3917an 3918info message for now. These messages may eventually be changed to debug- 3919only. 3920ACPICA BZ 812. 3921 3922Example Code and Data Size: These are the sizes for the OS-independent 3923acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3924debug version of the code includes the debug output trace mechanism and 3925has a 3926much larger code and data size. 3927 3928 Previous Release: 3929 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 3930 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 3931 Current Release: 3932 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 3933 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 3934 39352) iASL Compiler/Disassembler and Tools: 3936 3937iASL: Implemented Switch() with While(1) so that Break works correctly. 3938This 3939change correctly implements the Switch operator with a surrounding 3940While(1) 3941so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 3942 3943iASL: Added a message if a package initializer list is shorter than 3944package 3945length. Adds a new remark for a Package() declaration if an initializer 3946list 3947exists, but is shorter than the declared length of the package. Although 3948technically legal, this is probably a coding error and it is seen in the 3949field. ACPICA BZ 815. Lin Ming, Bob Moore. 3950 3951iASL: Fixed a problem where the compiler could fault after the maximum 3952number 3953of errors was reached (200). 3954 3955acpixtract: Fixed a possible warning for pointer cast if the compiler 3956warning 3957level set very high. 3958 3959---------------------------------------- 396013 October 2009. Summary of changes for version 20091013: 3961 39621) ACPI CA Core Subsystem: 3963 3964Fixed a problem where an Operation Region _REG method could be executed 3965more 3966than once. If a custom address space handler is installed by the host 3967before 3968the "initialize operation regions" phase of the ACPICA initialization, 3969any 3970_REG methods for that address space could be executed twice. This change 3971fixes the problem. ACPICA BZ 427. Lin Ming. 3972 3973Fixed a possible memory leak for the Scope() ASL operator. When the exact 3974invocation of "Scope(\)" is executed (change scope to root), one internal 3975operand object was leaked. Lin Ming. 3976 3977Implemented a run-time repair for the _MAT predefined method. If the _MAT 3978return value is defined as a Field object in the AML, and the field 3979size is less than or equal to the default width of an integer (32 or 398064),_MAT 3981can incorrectly return an Integer instead of a Buffer. ACPICA now 3982automatically repairs this problem. ACPICA BZ 810. 3983 3984Implemented a run-time repair for the _BIF and _BIX predefined methods. 3985The 3986"OEM Information" field is often incorrectly returned as an Integer with 3987value zero if the field is not supported by the platform. This is due to 3988an 3989ambiguity in the ACPI specification. The field should always be a string. 3990ACPICA now automatically repairs this problem by returning a NULL string 3991within the returned Package. ACPICA BZ 807. 3992 3993Example Code and Data Size: These are the sizes for the OS-independent 3994acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3995debug version of the code includes the debug output trace mechanism and 3996has a 3997much larger code and data size. 3998 3999 Previous Release: 4000 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 4001 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 4002 Current Release: 4003 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 4004 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 4005 40062) iASL Compiler/Disassembler and Tools: 4007 4008Disassembler: Fixed a problem where references to external symbols that 4009contained one or more parent-prefixes (carats) were not handled 4010correctly, 4011possibly causing a fault. ACPICA BZ 806. Lin Ming. 4012 4013Disassembler: Restructured the code so that all functions that handle 4014external symbols are in a single module. One new file is added, 4015common/dmextern.c. 4016 4017AML Debugger: Added a max count argument for the Batch command (which 4018executes multiple predefined methods within the namespace.) 4019 4020iASL: Updated the compiler documentation (User Reference.) Available at 4021http://www.acpica.org/documentation/. ACPICA BZ 750. 4022 4023AcpiXtract: Updated for Lint and other formatting changes. Close all open 4024files. 4025 4026---------------------------------------- 402703 September 2009. Summary of changes for version 20090903: 4028 40291) ACPI CA Core Subsystem: 4030 4031For Windows Vista compatibility, added the automatic execution of an _INI 4032method located at the namespace root (\_INI). This method is executed at 4033table load time. This support is in addition to the automatic execution 4034of 4035\_SB._INI. Lin Ming. 4036 4037Fixed a possible memory leak in the interpreter for AML package objects 4038if 4039the package initializer list is longer than the defined size of the 4040package. 4041This apparently can only happen if the BIOS changes the package size on 4042the 4043fly (seen in a _PSS object), as ASL compilers do not allow this. The 4044interpreter will truncate the package to the defined size (and issue an 4045error 4046message), but previously could leave the extra objects undeleted if they 4047were 4048pre-created during the argument processing (such is the case if the 4049package 4050consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 4051 4052Fixed a problem seen when a Buffer or String is stored to itself via ASL. 4053This has been reported in the field. Previously, ACPICA would zero out 4054the 4055buffer/string. Now, the operation is treated as a noop. Provides Windows 4056compatibility. ACPICA BZ 803. Lin Ming. 4057 4058Removed an extraneous error message for ASL constructs of the form 4059Store(LocalX,LocalX) when LocalX is uninitialized. These curious 4060statements 4061are seen in many BIOSs and are once again treated as NOOPs and no error 4062is 4063emitted when they are encountered. ACPICA BZ 785. 4064 4065Fixed an extraneous warning message if a _DSM reserved method returns a 4066Package object. _DSM can return any type of object, so validation on the 4067return type cannot be performed. ACPICA BZ 802. 4068 4069Example Code and Data Size: These are the sizes for the OS-independent 4070acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4071debug version of the code includes the debug output trace mechanism and 4072has a 4073much larger code and data size. 4074 4075 Previous Release: 4076 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 4077 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 4078 Current Release: 4079 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 4080 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 4081 40822) iASL Compiler/Disassembler and Tools: 4083 4084iASL: Fixed a problem with the use of the Alias operator and Resource 4085Templates. The correct alias is now constructed and no error is emitted. 4086ACPICA BZ 738. 4087 4088iASL: Implemented the -I option to specify additional search directories 4089for 4090include files. Allows multiple additional search paths for include files. 4091Directories are searched in the order specified on the command line 4092(after 4093the local directory is searched.) ACPICA BZ 800. 4094 4095iASL: Fixed a problem where the full pathname for include files was not 4096emitted for warnings/errors. This caused the IDE support to not work 4097properly. ACPICA BZ 765. 4098 4099iASL: Implemented the -@ option to specify a Windows-style response file 4100containing additional command line options. ACPICA BZ 801. 4101 4102AcpiExec: Added support to load multiple AML files simultaneously (such 4103as 4104a 4105DSDT and multiple SSDTs). Also added support for wildcards within the AML 4106pathname. These features allow all machine tables to be easily loaded and 4107debugged together. ACPICA BZ 804. 4108 4109Disassembler: Added missing support for disassembly of HEST table Error 4110Bank 4111subtables. 4112 4113---------------------------------------- 411430 July 2009. Summary of changes for version 20090730: 4115 4116The ACPI 4.0 implementation for ACPICA is complete with this release. 4117 41181) ACPI CA Core Subsystem: 4119 4120ACPI 4.0: Added header file support for all new and changed ACPI tables. 4121Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are 4122new 4123for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 4124BERT, 4125EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 4126There 4127have been some ACPI 4.0 changes to other existing tables. Split the large 4128actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 4129 4130ACPI 4.0: Implemented predefined name validation for all new names. There 4131are 413231 new names in ACPI 4.0. The predefined validation module was split into 4133two 4134files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 4135 4136Implemented support for so-called "module-level executable code". This is 4137executable AML code that exists outside of any control method and is 4138intended 4139to be executed at table load time. Although illegal since ACPI 2.0, this 4140type 4141of code still exists and is apparently still being created. Blocks of 4142this 4143code are now detected and executed as intended. Currently, the code 4144blocks 4145must exist under either an If, Else, or While construct; these are the 4146typical cases seen in the field. ACPICA BZ 762. Lin Ming. 4147 4148Implemented an automatic dynamic repair for predefined names that return 4149nested Package objects. This applies to predefined names that are defined 4150to 4151return a variable-length Package of sub-packages. If the number of sub- 4152packages is one, BIOS code is occasionally seen that creates a simple 4153single 4154package with no sub-packages. This code attempts to fix the problem by 4155wrapping a new package object around the existing package. These methods 4156can 4157be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA 4158BZ 4159790. 4160 4161Fixed a regression introduced in 20090625 for the AcpiGetDevices 4162interface. 4163The _HID/_CID matching was broken and no longer matched IDs correctly. 4164ACPICA 4165BZ 793. 4166 4167Fixed a problem with AcpiReset where the reset would silently fail if the 4168register was one of the protected I/O ports. AcpiReset now bypasses the 4169port 4170validation mechanism. This may eventually be driven into the 4171AcpiRead/Write 4172interfaces. 4173 4174Fixed a regression related to the recent update of the AcpiRead/Write 4175interfaces. A sleep/suspend could fail if the optional PM2 Control 4176register 4177does not exist during an attempt to write the Bus Master Arbitration bit. 4178(However, some hosts already delete the code that writes this bit, and 4179the 4180code may in fact be obsolete at this date.) ACPICA BZ 799. 4181 4182Fixed a problem where AcpiTerminate could fault if inadvertently called 4183twice 4184in succession. ACPICA BZ 795. 4185 4186Example Code and Data Size: These are the sizes for the OS-independent 4187acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4188debug version of the code includes the debug output trace mechanism and 4189has a 4190much larger code and data size. 4191 4192 Previous Release: 4193 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 4194 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 4195 Current Release: 4196 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 4197 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 4198 41992) iASL Compiler/Disassembler and Tools: 4200 4201ACPI 4.0: Implemented disassembler support for all new ACPI tables and 4202changes to existing tables. ACPICA BZ 775. 4203 4204---------------------------------------- 420525 June 2009. Summary of changes for version 20090625: 4206 4207The ACPI 4.0 Specification was released on June 16 and is available at 4208www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 4209continue for the next few releases. 4210 42111) ACPI CA Core Subsystem: 4212 4213ACPI 4.0: Implemented interpreter support for the IPMI operation region 4214address space. Includes support for bi-directional data buffers and an 4215IPMI 4216address space handler (to be installed by an IPMI device driver.) ACPICA 4217BZ 4218773. Lin Ming. 4219 4220ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. 4221Includes 4222support in both the header files and the disassembler. 4223 4224Completed a major update for the AcpiGetObjectInfo external interface. 4225Changes include: 4226 - Support for variable, unlimited length HID, UID, and CID strings. 4227 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 4228etc.) 4229 - Call the _SxW power methods on behalf of a device object. 4230 - Determine if a device is a PCI root bridge. 4231 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 4232These changes will require an update to all callers of this interface. 4233See 4234the updated ACPICA Programmer Reference for details. One new source file 4235has 4236been added - utilities/utids.c. ACPICA BZ 368, 780. 4237 4238Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 4239transfers. The Value parameter has been extended from 32 bits to 64 bits 4240in 4241order to support new ACPI 4.0 tables. These changes will require an 4242update 4243to 4244all callers of these interfaces. See the ACPICA Programmer Reference for 4245details. ACPICA BZ 768. 4246 4247Fixed several problems with AcpiAttachData. The handler was not invoked 4248when 4249the host node was deleted. The data sub-object was not automatically 4250deleted 4251when the host node was deleted. The interface to the handler had an 4252unused 4253parameter, this was removed. ACPICA BZ 778. 4254 4255Enhanced the function that dumps ACPI table headers. All non-printable 4256characters in the string fields are now replaced with '?' (Signature, 4257OemId, 4258OemTableId, and CompilerId.) ACPI tables with non-printable characters in 4259these fields are occasionally seen in the field. ACPICA BZ 788. 4260 4261Fixed a problem with predefined method repair code where the code that 4262attempts to repair/convert an object of incorrect type is only executed 4263on 4264the first time the predefined method is called. The mechanism that 4265disables 4266warnings on subsequent calls was interfering with the repair mechanism. 4267ACPICA BZ 781. 4268 4269Fixed a possible memory leak in the predefined validation/repair code 4270when 4271a 4272buffer is automatically converted to an expected string object. 4273 4274Removed obsolete 16-bit files from the distribution and from the current 4275git 4276tree head. ACPICA BZ 776. 4277 4278Example Code and Data Size: These are the sizes for the OS-independent 4279acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4280debug version of the code includes the debug output trace mechanism and 4281has a 4282much larger code and data size. 4283 4284 Previous Release: 4285 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 4286 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 4287 Current Release: 4288 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 4289 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 4290 42912) iASL Compiler/Disassembler and Tools: 4292 4293ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 4294operation region keyword. ACPICA BZ 771, 772. Lin Ming. 4295 4296ACPI 4.0: iASL - implemented compile-time validation support for all new 4297predefined names and control methods (31 total). ACPICA BZ 769. 4298 4299---------------------------------------- 430021 May 2009. Summary of changes for version 20090521: 4301 43021) ACPI CA Core Subsystem: 4303 4304Disabled the preservation of the SCI enable bit in the PM1 control 4305register. 4306The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification 4307to 4308be 4309a "preserved" bit - "OSPM always preserves this bit position", section 43104.7.3.2.1. However, some machines fail if this bit is in fact preserved 4311because the bit needs to be explicitly set by the OS as a workaround. No 4312machines fail if the bit is not preserved. Therefore, ACPICA no longer 4313attempts to preserve this bit. 4314 4315Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 4316incorrectly formed _PRT package could cause a fault. Added validation to 4317ensure that each package element is actually a sub-package. 4318 4319Implemented a new interface to install or override a single control 4320method, 4321AcpiInstallMethod. This interface is useful when debugging in order to 4322repair 4323an existing method or to install a missing method without having to 4324override 4325the entire ACPI table. See the ACPICA Programmer Reference for use and 4326examples. Lin Ming, Bob Moore. 4327 4328Fixed several reference count issues with the DdbHandle object that is 4329created from a Load or LoadTable operator. Prevent premature deletion of 4330the 4331object. Also, mark the object as invalid once the table has been 4332unloaded. 4333This is needed because the handle itself may not be deleted after the 4334table 4335unload, depending on whether it has been stored in a named object by the 4336caller. Lin Ming. 4337 4338Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 4339mutexes of the same sync level are acquired but then not released in 4340strict 4341opposite order, the internally maintained Current Sync Level becomes 4342confused 4343and can cause subsequent execution errors. ACPICA BZ 471. 4344 4345Changed the allowable release order for ASL mutex objects. The ACPI 4.0 4346specification has been changed to make the SyncLevel for mutex objects 4347more 4348useful. When releasing a mutex, the SyncLevel of the mutex must now be 4349the 4350same as the current sync level. This makes more sense than the previous 4351rule 4352(SyncLevel less than or equal). This change updates the code to match the 4353specification. 4354 4355Fixed a problem with the local version of the AcpiOsPurgeCache function. 4356The 4357(local) cache must be locked during all cache object deletions. Andrew 4358Baumann. 4359 4360Updated the Load operator to use operation region interfaces. This 4361replaces 4362direct memory mapping with region access calls. Now, all region accesses 4363go 4364through the installed region handler as they should. 4365 4366Simplified and optimized the NsGetNextNode function. Reduced parameter 4367count 4368and reduced code for this frequently used function. 4369 4370Example Code and Data Size: These are the sizes for the OS-independent 4371acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4372debug version of the code includes the debug output trace mechanism and 4373has a 4374much larger code and data size. 4375 4376 Previous Release: 4377 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 4378 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 4379 Current Release: 4380 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 4381 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 4382 43832) iASL Compiler/Disassembler and Tools: 4384 4385Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 4386problems 4387with sub-table disassembly and handling invalid sub-tables. Attempt 4388recovery 4389after an invalid sub-table ID. 4390 4391---------------------------------------- 439222 April 2009. Summary of changes for version 20090422: 4393 43941) ACPI CA Core Subsystem: 4395 4396Fixed a compatibility issue with the recently released I/O port 4397protection 4398mechanism. For windows compatibility, 1) On a port protection violation, 4399simply ignore the request and do not return an exception (allow the 4400control 4401method to continue execution.) 2) If only part of the request overlaps a 4402protected port, read/write the individual ports that are not protected. 4403Linux 4404BZ 13036. Lin Ming 4405 4406Enhanced the execution of the ASL/AML BreakPoint operator so that it 4407actually 4408breaks into the AML debugger if the debugger is present. This matches the 4409ACPI-defined behavior. 4410 4411Fixed several possible warnings related to the use of the configurable 4412ACPI_THREAD_ID. This type can now be configured as either an integer or a 4413pointer with no warnings. Also fixes several warnings in printf-like 4414statements for the 64-bit build when the type is configured as a pointer. 4415ACPICA BZ 766, 767. 4416 4417Fixed a number of possible warnings when compiling with gcc 4+ (depending 4418on 4419warning options.) Examples include printf formats, aliasing, unused 4420globals, 4421missing prototypes, missing switch default statements, use of non-ANSI 4422library functions, use of non-ANSI constructs. See generate/unix/Makefile 4423for 4424a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 4425 4426Example Code and Data Size: These are the sizes for the OS-independent 4427acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4428debug version of the code includes the debug output trace mechanism and 4429has a 4430much larger code and data size. 4431 4432 Previous Release: 4433 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 4434 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 4435 Current Release: 4436 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 4437 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 4438 44392) iASL Compiler/Disassembler and Tools: 4440 4441iASL: Fixed a generation warning from Bison 2.3 and fixed several 4442warnings 4443on 4444the 64-bit build. 4445 4446iASL: Fixed a problem where the Unix/Linux versions of the compiler could 4447not 4448correctly digest Windows/DOS formatted files (with CR/LF). 4449 4450iASL: Added a new option for "quiet mode" (-va) that produces only the 4451compilation summary, not individual errors and warnings. Useful for large 4452batch compilations. 4453 4454AcpiExec: Implemented a new option (-z) to enable a forced 4455semaphore/mutex 4456timeout that can be used to detect hang conditions during execution of 4457AML 4458code (includes both internal semaphores and AML-defined mutexes and 4459events.) 4460 4461Added new makefiles for the generation of acpica in a generic unix-like 4462environment. These makefiles are intended to generate the acpica tools 4463and 4464utilities from the original acpica git source tree structure. 4465 4466Test Suites: Updated and cleaned up the documentation files. Updated the 4467copyrights to 2009, affecting all source files. Use the new version of 4468iASL 4469with quiet mode. Increased the number of available semaphores in the 4470Windows 4471OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 4472added 4473an alternate implementation of the semaphore timeout to allow aslts to 4474execute fully on Cygwin. 4475 4476---------------------------------------- 447720 March 2009. Summary of changes for version 20090320: 4478 44791) ACPI CA Core Subsystem: 4480 4481Fixed a possible race condition between AcpiWalkNamespace and dynamic 4482table 4483unloads. Added a reader/writer locking mechanism to allow multiple 4484concurrent 4485namespace walks (readers), but block a dynamic table unload until it can 4486gain 4487exclusive write access to the namespace. This fixes a problem where a 4488table 4489unload could (possibly catastrophically) delete the portion of the 4490namespace 4491that is currently being examined by a walk. Adds a new file, utlock.c, 4492that 4493implements the reader/writer lock mechanism. ACPICA BZ 749. 4494 4495Fixed a regression introduced in version 20090220 where a change to the 4496FADT 4497handling could cause the ACPICA subsystem to access non-existent I/O 4498ports. 4499 4500Modified the handling of FADT register and table (FACS/DSDT) addresses. 4501The 4502FADT can contain both 32-bit and 64-bit versions of these addresses. 4503Previously, the 64-bit versions were favored, meaning that if both 32 and 450464 4505versions were valid, but not equal, the 64-bit version was used. This was 4506found to cause some machines to fail. Now, in this case, the 32-bit 4507version 4508is used instead. This now matches the Windows behavior. 4509 4510Implemented a new mechanism to protect certain I/O ports. Provides 4511Microsoft 4512compatibility and protects the standard PC I/O ports from access via AML 4513code. Adds a new file, hwvalid.c 4514 4515Fixed a possible extraneous warning message from the FADT support. The 4516message warns of a 32/64 length mismatch between the legacy and GAS 4517definitions for a register. 4518 4519Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 4520is 4521made obsolete by the port protection mechanism above. It was previously 4522used 4523to validate the entire address range of an operation region, which could 4524be 4525incorrect if the range included illegal ports, but fields within the 4526operation region did not actually access those ports. Validation is now 4527performed on a per-field basis instead of the entire region. 4528 4529Modified the handling of the PM1 Status Register ignored bit (bit 11.) 4530Ignored bits must be "preserved" according to the ACPI spec. Usually, 4531this 4532means a read/modify/write when writing to the register. However, for 4533status 4534registers, writing a one means clear the event. Writing a zero means 4535preserve 4536the event (do not clear.) This behavior is clarified in the ACPI 4.0 4537spec, 4538and the ACPICA code now simply always writes a zero to the ignored bit. 4539 4540Modified the handling of ignored bits for the PM1 A/B Control Registers. 4541As 4542per the ACPI specification, for the control registers, preserve 4543(read/modify/write) all bits that are defined as either reserved or 4544ignored. 4545 4546Updated the handling of write-only bits in the PM1 A/B Control Registers. 4547When reading the register, zero the write-only bits as per the ACPI spec. 4548ACPICA BZ 443. Lin Ming. 4549 4550Removed "Linux" from the list of supported _OSI strings. Linux no longer 4551wants to reply true to this request. The Windows strings are the only 4552paths 4553through the AML that are tested and known to work properly. 4554 4555 Previous Release: 4556 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 4557 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 4558 Current Release: 4559 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 4560 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 4561 45622) iASL Compiler/Disassembler and Tools: 4563 4564Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 4565and 4566aetables.c 4567 4568---------------------------------------- 456920 February 2009. Summary of changes for version 20090220: 4570 45711) ACPI CA Core Subsystem: 4572 4573Optimized the ACPI register locking. Removed locking for reads from the 4574ACPI 4575bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock 4576is 4577not required when reading the single-bit registers. The 4578AcpiGetRegisterUnlocked function is no longer needed and has been 4579removed. 4580This will improve performance for reads on these registers. ACPICA BZ 4581760. 4582 4583Fixed the parameter validation for AcpiRead/Write. Now return 4584AE_BAD_PARAMETER if the input register pointer is null, and 4585AE_BAD_ADDRESS 4586if 4587the register has an address of zero. Previously, these cases simply 4588returned 4589AE_OK. For optional registers such as PM1B status/enable/control, the 4590caller 4591should check for a valid register address before calling. ACPICA BZ 748. 4592 4593Renamed the external ACPI bit register access functions. Renamed 4594AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 4595functions. The new names are AcpiReadBitRegister and 4596AcpiWriteBitRegister. 4597Also, restructured the code for these functions by simplifying the code 4598path 4599and condensing duplicate code to reduce code size. 4600 4601Added new functions to transparently handle the possibly split PM1 A/B 4602registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two 4603functions 4604now handle the split registers for PM1 Status, Enable, and Control. 4605ACPICA 4606BZ 4607746. 4608 4609Added a function to handle the PM1 control registers, 4610AcpiHwWritePm1Control. 4611This function writes both of the PM1 control registers (A/B). These 4612registers 4613are different than the PM1 A/B status and enable registers in that 4614different 4615values can be written to the A/B registers. Most notably, the SLP_TYP 4616bits 4617can be different, as per the values returned from the _Sx predefined 4618methods. 4619 4620Removed an extra register write within AcpiHwClearAcpiStatus. This 4621function 4622was writing an optional PM1B status register twice. The existing call to 4623the 4624low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 4625A/B 4626register. ACPICA BZ 751. 4627 4628Split out the PM1 Status registers from the FADT. Added new globals for 4629these 4630registers (A/B), similar to the way the PM1 Enable registers are handled. 4631Instead of overloading the FADT Event Register blocks. This makes the 4632code 4633clearer and less prone to error. 4634 4635Fixed the warning message for when the platform contains too many ACPI 4636tables 4637for the default size of the global root table data structure. The 4638calculation 4639for the truncation value was incorrect. 4640 4641Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 4642obsolete macro, since it is now a simple reference to ->common.type. 4643There 4644were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 4645 4646Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 4647TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 4648simply SLEEP_TYPE. ACPICA BZ 754. 4649 4650Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 4651function is only needed on 64-bit host operating systems and is thus not 4652included for 32-bit hosts. 4653 4654Debug output: print the input and result for invocations of the _OSI 4655reserved 4656control method via the ACPI_LV_INFO debug level. Also, reduced some of 4657the 4658verbosity of this debug level. Len Brown. 4659 4660Example Code and Data Size: These are the sizes for the OS-independent 4661acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4662debug version of the code includes the debug output trace mechanism and 4663has a 4664much larger code and data size. 4665 4666 Previous Release: 4667 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 4668 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 4669 Current Release: 4670 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 4671 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 4672 46732) iASL Compiler/Disassembler and Tools: 4674 4675Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 4676various legal performance profiles. 4677 4678---------------------------------------- 467923 January 2009. Summary of changes for version 20090123: 4680 46811) ACPI CA Core Subsystem: 4682 4683Added the 2009 copyright to all module headers and signons. This affects 4684virtually every file in the ACPICA core subsystem, the iASL compiler, and 4685the tools/utilities. 4686 4687Implemented a change to allow the host to override any ACPI table, 4688including 4689dynamically loaded tables. Previously, only the DSDT could be replaced by 4690the 4691host. With this change, the AcpiOsTableOverride interface is called for 4692each 4693table found in the RSDT/XSDT during ACPICA initialization, and also 4694whenever 4695a table is dynamically loaded via the AML Load operator. 4696 4697Updated FADT flag definitions, especially the Boot Architecture flags. 4698 4699Debugger: For the Find command, automatically pad the input ACPI name 4700with 4701underscores if the name is shorter than 4 characters. This enables a 4702match 4703with the actual namespace entry which is itself padded with underscores. 4704 4705Example Code and Data Size: These are the sizes for the OS-independent 4706acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4707debug version of the code includes the debug output trace mechanism and 4708has a 4709much larger code and data size. 4710 4711 Previous Release: 4712 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 4713 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 4714 Current Release: 4715 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 4716 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 4717 47182) iASL Compiler/Disassembler and Tools: 4719 4720Fix build error under Bison-2.4. 4721 4722Dissasembler: Enhanced FADT support. Added decoding of the Boot 4723Architecture 4724flags. Now decode all flags, regardless of the FADT version. Flag output 4725includes the FADT version which first defined each flag. 4726 4727The iASL -g option now dumps the RSDT to a file (in addition to the FADT 4728and 4729DSDT). Windows only. 4730 4731---------------------------------------- 473204 December 2008. Summary of changes for version 20081204: 4733 47341) ACPI CA Core Subsystem: 4735 4736The ACPICA Programmer Reference has been completely updated and revamped 4737for 4738this release. This includes updates to the external interfaces, OSL 4739interfaces, the overview sections, and the debugger reference. 4740 4741Several new ACPICA interfaces have been implemented and documented in the 4742programmer reference: 4743AcpiReset - Writes the reset value to the FADT-defined reset register. 4744AcpiDisableAllGpes - Disable all available GPEs. 4745AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 4746AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 4747AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 4748AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 4749AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 4750 4751Most of the public ACPI hardware-related interfaces have been moved to a 4752new 4753file, components/hardware/hwxface.c 4754 4755Enhanced the FADT parsing and low-level ACPI register access: The ACPI 4756register lengths within the FADT are now used, and the low level ACPI 4757register access no longer hardcodes the ACPI register lengths. Given that 4758there may be some risk in actually trusting the FADT register lengths, a 4759run- 4760time option was added to fall back to the default hardcoded lengths if 4761the 4762FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 4763option is set to true for now, and a warning is issued if a suspicious 4764FADT 4765register length is overridden with the default value. 4766 4767Fixed a reference count issue in NsRepairObject. This problem was 4768introduced 4769in version 20081031 as part of a fix to repair Buffer objects within 4770Packages. Lin Ming. 4771 4772Added semaphore support to the Linux/Unix application OS-services layer 4773(OSL). ACPICA BZ 448. Lin Ming. 4774 4775Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 4776will 4777be implemented in the OSL, or will binary semaphores be used instead. 4778 4779Example Code and Data Size: These are the sizes for the OS-independent 4780acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4781debug version of the code includes the debug output trace mechanism and 4782has a 4783much larger code and data size. 4784 4785 Previous Release: 4786 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 4787 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 4788 Current Release: 4789 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 4790 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 4791 47922) iASL Compiler/Disassembler and Tools: 4793 4794iASL: Completed the '-e' option to include additional ACPI tables in 4795order 4796to 4797aid with disassembly and External statement generation. ACPICA BZ 742. 4798Lin 4799Ming. 4800 4801iASL: Removed the "named object in while loop" error. The compiler cannot 4802determine how many times a loop will execute. ACPICA BZ 730. 4803 4804Disassembler: Implemented support for FADT revision 2 (MS extension). 4805ACPICA 4806BZ 743. 4807 4808Disassembler: Updates for several ACPI data tables (HEST, EINJ, and 4809MCFG). 4810 4811---------------------------------------- 481231 October 2008. Summary of changes for version 20081031: 4813 48141) ACPI CA Core Subsystem: 4815 4816Restructured the ACPICA header files into public/private. acpi.h now 4817includes 4818only the "public" acpica headers. All other acpica headers are "private" 4819and 4820should not be included by acpica users. One new file, accommon.h is used 4821to 4822include the commonly used private headers for acpica code generation. 4823Future 4824plans include moving all private headers to a new subdirectory. 4825 4826Implemented an automatic Buffer->String return value conversion for 4827predefined ACPI methods. For these methods (such as _BIF), added 4828automatic 4829conversion for return objects that are required to be a String, but a 4830Buffer 4831was found instead. This can happen when reading string battery data from 4832an 4833operation region, because it used to be difficult to convert the data 4834from 4835buffer to string from within the ASL. Ensures that the host OS is 4836provided 4837with a valid null-terminated string. Linux BZ 11822. 4838 4839Updated the FACS waking vector interfaces. Split 4840AcpiSetFirmwareWakingVector 4841into two: one for the 32-bit vector, another for the 64-bit vector. This 4842is 4843required because the host OS must setup the wake much differently for 4844each 4845vector (real vs. protected mode, etc.) and the interface itself should 4846not 4847be 4848deciding which vector to use. Also, eliminated the 4849GetFirmwareWakingVector 4850interface, as it served no purpose (only the firmware reads the vector, 4851OS 4852only writes the vector.) ACPICA BZ 731. 4853 4854Implemented a mechanism to escape infinite AML While() loops. Added a 4855loop 4856counter to force exit from AML While loops if the count becomes too 4857large. 4858This can occur in poorly written AML when the hardware does not respond 4859within a while loop and the loop does not implement a timeout. The 4860maximum 4861loop count is configurable. A new exception code is returned when a loop 4862is 4863broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 4864 4865Optimized the execution of AML While loops. Previously, a control state 4866object was allocated and freed for each execution of the loop. The 4867optimization is to simply reuse the control state for each iteration. 4868This 4869speeds up the raw loop execution time by about 5%. 4870 4871Enhanced the implicit return mechanism. For Windows compatibility, return 4872an 4873implicit integer of value zero for methods that contain no executable 4874code. 4875Such methods are seen in the field as stubs (presumably), and can cause 4876drivers to fail if they expect a return value. Lin Ming. 4877 4878Allow multiple backslashes as root prefixes in namepaths. In a fully 4879qualified namepath, allow multiple backslash prefixes. This can happen 4880(and 4881is seen in the field) because of the use of a double-backslash in strings 4882(since backslash is the escape character) causing confusion. ACPICA BZ 4883739 4884Lin Ming. 4885 4886Emit a warning if two different FACS or DSDT tables are discovered in the 4887FADT. Checks if there are two valid but different addresses for the FACS 4888and 4889DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 4890 4891Consolidated the method argument count validation code. Merged the code 4892that 4893validates control method argument counts into the predefined validation 4894module. Eliminates possible multiple warnings for incorrect argument 4895counts. 4896 4897Implemented ACPICA example code. Includes code for ACPICA initialization, 4898handler installation, and calling a control method. Available at 4899source/tools/examples. 4900 4901Added a global pointer for FACS table to simplify internal FACS access. 4902Use 4903the global pointer instead of using AcpiGetTableByIndex for each FACS 4904access. 4905This simplifies the code for the Global Lock and the Firmware Waking 4906Vector(s). 4907 4908Example Code and Data Size: These are the sizes for the OS-independent 4909acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4910debug version of the code includes the debug output trace mechanism and 4911has a 4912much larger code and data size. 4913 4914 Previous Release: 4915 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 4916 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 4917 Current Release: 4918 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 4919 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 4920 49212) iASL Compiler/Disassembler and Tools: 4922 4923iASL: Improved disassembly of external method calls. Added the -e option 4924to 4925allow the inclusion of additional ACPI tables to help with the 4926disassembly 4927of 4928method invocations and the generation of external declarations during the 4929disassembly. Certain external method invocations cannot be disassembled 4930properly without the actual declaration of the method. Use the -e option 4931to 4932include the table where the external method(s) are actually declared. 4933Most 4934useful for disassembling SSDTs that make method calls back to the master 4935DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 4936-d 4937-e dsdt.aml ssdt1.aml 4938 4939iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 4940problem where the use of an alias within a namepath would result in a not 4941found error or cause the compiler to fault. Also now allows forward 4942references from the Alias operator itself. ACPICA BZ 738. 4943 4944---------------------------------------- 494526 September 2008. Summary of changes for version 20080926: 4946 49471) ACPI CA Core Subsystem: 4948 4949Designed and implemented a mechanism to validate predefined ACPI methods 4950and 4951objects. This code validates the predefined ACPI objects (objects whose 4952names 4953start with underscore) that appear in the namespace, at the time they are 4954evaluated. The argument count and the type of the returned object are 4955validated against the ACPI specification. The purpose of this validation 4956is 4957to detect problems with the BIOS-implemented predefined ACPI objects 4958before 4959the results are returned to the ACPI-related drivers. Future enhancements 4960may 4961include actual repair of incorrect return objects where possible. Two new 4962files are nspredef.c and acpredef.h. 4963 4964Fixed a fault in the AML parser if a memory allocation fails during the 4965Op 4966completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 4967 4968Fixed an issue with implicit return compatibility. This change improves 4969the 4970implicit return mechanism to be more compatible with the MS interpreter. 4971Lin 4972Ming, ACPICA BZ 349. 4973 4974Implemented support for zero-length buffer-to-string conversions. Allow 4975zero 4976length strings during interpreter buffer-to-string conversions. For 4977example, 4978during the ToDecimalString and ToHexString operators, as well as implicit 4979conversions. Fiodor Suietov, ACPICA BZ 585. 4980 4981Fixed two possible memory leaks in the error exit paths of 4982AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions 4983are 4984similar in that they use a stack of state objects in order to eliminate 4985recursion. The stack must be fully unwound and deallocated if an error 4986occurs. Lin Ming. ACPICA BZ 383. 4987 4988Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 4989global 4990ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 4991Moore ACPICA BZ 442. 4992 4993Removed the obsolete version number in module headers. Removed the 4994"$Revision" number that appeared in each module header. This version 4995number 4996was useful under SourceSafe and CVS, but has no meaning under git. It is 4997not 4998only incorrect, it could also be misleading. 4999 5000Example Code and Data Size: These are the sizes for the OS-independent 5001acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5002debug version of the code includes the debug output trace mechanism and 5003has a 5004much larger code and data size. 5005 5006 Previous Release: 5007 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 5008 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 5009 Current Release: 5010 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 5011 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 5012 5013---------------------------------------- 501429 August 2008. Summary of changes for version 20080829: 5015 50161) ACPI CA Core Subsystem: 5017 5018Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 5019Reference. Changes include the elimination of cheating on the Object 5020field 5021for the DdbHandle subtype, addition of a reference class field to 5022differentiate the various reference types (instead of an AML opcode), and 5023the 5024cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 5025 5026Reduce an error to a warning for an incorrect method argument count. 5027Previously aborted with an error if too few arguments were passed to a 5028control method via the external ACPICA interface. Now issue a warning 5029instead 5030and continue. Handles the case where the method inadvertently declares 5031too 5032many arguments, but does not actually use the extra ones. Applies mainly 5033to 5034the predefined methods. Lin Ming. Linux BZ 11032. 5035 5036Disallow the evaluation of named object types with no intrinsic value. 5037Return 5038AE_TYPE for objects that have no value and therefore evaluation is 5039undefined: 5040Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 5041of 5042these types were allowed, but an exception would be generated at some 5043point 5044during the evaluation. Now, the error is generated up front. 5045 5046Fixed a possible memory leak in the AcpiNsGetExternalPathname function 5047(nsnames.c). Fixes a leak in the error exit path. 5048 5049Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 5050debug 5051levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 5052ACPI_EXCEPTION 5053interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 5054ACPI_LV_EVENTS. 5055 5056Removed obsolete and/or unused exception codes from the acexcep.h header. 5057There is the possibility that certain device drivers may be affected if 5058they 5059use any of these exceptions. 5060 5061The ACPICA documentation has been added to the public git source tree, 5062under 5063acpica/documents. Included are the ACPICA programmer reference, the iASL 5064compiler reference, and the changes.txt release logfile. 5065 5066Example Code and Data Size: These are the sizes for the OS-independent 5067acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5068debug version of the code includes the debug output trace mechanism and 5069has a 5070much larger code and data size. 5071 5072 Previous Release: 5073 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 5074 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 5075 Current Release: 5076 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 5077 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 5078 50792) iASL Compiler/Disassembler and Tools: 5080 5081Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 5082defines _SCP with 3 arguments. Previous versions defined it with only 1 5083argument. iASL now allows both definitions. 5084 5085iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for 5086zero- 5087length subtables when disassembling ACPI tables. Also fixed a couple of 5088errors where a full 16-bit table type field was not extracted from the 5089input 5090properly. 5091 5092acpisrc: Improve comment counting mechanism for generating source code 5093statistics. Count first and last lines of multi-line comments as 5094whitespace, 5095not comment lines. Handle Linux legal header in addition to standard 5096acpica 5097header. 5098 5099---------------------------------------- 5100 510129 July 2008. Summary of changes for version 20080729: 5102 51031) ACPI CA Core Subsystem: 5104 5105Fix a possible deadlock in the GPE dispatch. Remove call to 5106AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 5107attempt 5108to acquire the GPE lock but can deadlock since the GPE lock is already 5109held 5110at dispatch time. This code was introduced in version 20060831 as a 5111response 5112to Linux BZ 6881 and has since been removed from Linux. 5113 5114Add a function to dereference returned reference objects. Examines the 5115return 5116object from a call to AcpiEvaluateObject. Any Index or RefOf references 5117are 5118automatically dereferenced in an attempt to return something useful 5119(these 5120reference types cannot be converted into an external ACPI_OBJECT.) 5121Provides 5122MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 5123 5124x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 5125subtables for the MADT and one new subtable for the SRAT. Includes 5126disassembler and AcpiSrc support. Data from the Intel 64 Architecture 5127x2APIC 5128Specification, June 2008. 5129 5130Additional error checking for pathname utilities. Add error check after 5131all 5132calls to AcpiNsGetPathnameLength. Add status return from 5133AcpiNsBuildExternalPath and check after all calls. Add parameter 5134validation 5135to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 5136 5137Return status from the global init function AcpiUtGlobalInitialize. This 5138is 5139used by both the kernel subsystem and the utilities such as iASL 5140compiler. 5141The function could possibly fail when the caches are initialized. Yang 5142Yi. 5143 5144Add a function to decode reference object types to strings. Created for 5145improved error messages. 5146 5147Improve object conversion error messages. Better error messages during 5148object 5149conversion from internal to the external ACPI_OBJECT. Used for external 5150calls 5151to AcpiEvaluateObject. 5152 5153Example Code and Data Size: These are the sizes for the OS-independent 5154acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5155debug version of the code includes the debug output trace mechanism and 5156has a 5157much larger code and data size. 5158 5159 Previous Release: 5160 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 5161 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 5162 Current Release: 5163 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 5164 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 5165 51662) iASL Compiler/Disassembler and Tools: 5167 5168Debugger: fix a possible hang when evaluating non-methods. Fixes a 5169problem 5170introduced in version 20080701. If the object being evaluated (via 5171execute 5172command) is not a method, the debugger can hang while trying to obtain 5173non- 5174existent parameters. 5175 5176iASL: relax error for using reserved "_T_x" identifiers. These names can 5177appear in a disassembled ASL file if they were emitted by the original 5178compiler. Instead of issuing an error or warning and forcing the user to 5179manually change these names, issue a remark instead. 5180 5181iASL: error if named object created in while loop. Emit an error if any 5182named 5183object is created within a While loop. If allowed, this code will 5184generate 5185a 5186run-time error on the second iteration of the loop when an attempt is 5187made 5188to 5189create the same named object twice. ACPICA bugzilla 730. 5190 5191iASL: Support absolute pathnames for include files. Add support for 5192absolute 5193pathnames within the Include operator. previously, only relative 5194pathnames 5195were supported. 5196 5197iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 5198Descriptor. 5199The ACPI spec requires one interrupt minimum. BZ 423 5200 5201iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 5202Handles the case for the Interrupt Resource Descriptor where 5203the ResourceSource argument is omitted but ResourceSourceIndex 5204is present. Now leave room for the Index. BZ 426 5205 5206iASL: Prevent error message if CondRefOf target does not exist. Fixes 5207cases 5208where an error message is emitted if the target does not exist. BZ 516 5209 5210iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 5211(get ACPI tables on Windows). This was apparently broken in version 521220070919. 5213 5214AcpiXtract: Handle EOF while extracting data. Correctly handle the case 5215where 5216the EOF happens immediately after the last table in the input file. Print 5217completion message. Previously, no message was displayed in this case. 5218 5219---------------------------------------- 522001 July 2008. Summary of changes for version 20080701: 5221 52220) Git source tree / acpica.org 5223 5224Fixed a problem where a git-clone from http would not transfer the entire 5225source tree. 5226 52271) ACPI CA Core Subsystem: 5228 5229Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 5230enable bit. Now performs a read-change-write of the enable register 5231instead 5232of simply writing out the cached enable mask. This will prevent 5233inadvertent 5234enabling of GPEs if a rogue GPE is received during initialization (before 5235GPE 5236handlers are installed.) 5237 5238Implemented a copy for dynamically loaded tables. Previously, dynamically 5239loaded tables were simply mapped - but on some machines this memory is 5240corrupted after suspend. Now copy the table to a local buffer. For the 5241OpRegion case, added checksum verify. Use the table length from the table 5242header, not the region length. For the Buffer case, use the table length 5243also. Dennis Noordsij, Bob Moore. BZ 10734 5244 5245Fixed a problem where the same ACPI table could not be dynamically loaded 5246and 5247unloaded more than once. Without this change, a table cannot be loaded 5248again 5249once it has been loaded/unloaded one time. The current mechanism does not 5250unregister a table upon an unload. During a load, if the same table is 5251found, 5252this no longer returns an exception. BZ 722 5253 5254Fixed a problem where the wrong descriptor length was calculated for the 5255EndTag descriptor in 64-bit mode. The "minimal" descriptors such as 5256EndTag 5257are calculated as 12 bytes long, but the actual length in the internal 5258descriptor is 16 because of the round-up to 8 on the 64-bit build. 5259Reported 5260by Linn Crosetto. BZ 728 5261 5262Fixed a possible memory leak in the Unload operator. The DdbHandle 5263returned 5264by Load() did not have its reference count decremented during unload, 5265leading 5266to a memory leak. Lin Ming. BZ 727 5267 5268Fixed a possible memory leak when deleting thermal/processor objects. Any 5269associated notify handlers (and objects) were not being deleted. Fiodor 5270Suietov. BZ 506 5271 5272Fixed the ordering of the ASCII names in the global mutex table to match 5273the 5274actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 5275only. 5276Vegard Nossum. BZ 726 5277 5278Enhanced the AcpiGetObjectInfo interface to return the number of required 5279arguments if the object is a control method. Added this call to the 5280debugger 5281so the proper number of default arguments are passed to a method. This 5282prevents a warning when executing methods from AcpiExec. 5283 5284Added a check for an invalid handle in AcpiGetObjectInfo. Return 5285AE_BAD_PARAMETER if input handle is invalid. BZ 474 5286 5287Fixed an extraneous warning from exconfig.c on the 64-bit build. 5288 5289Example Code and Data Size: These are the sizes for the OS-independent 5290acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5291debug version of the code includes the debug output trace mechanism and 5292has a 5293much larger code and data size. 5294 5295 Previous Release: 5296 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 5297 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 5298 Current Release: 5299 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 5300 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 5301 53022) iASL Compiler/Disassembler and Tools: 5303 5304iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 5305resource descriptor names. 5306 5307iASL: Detect invalid ASCII characters in input (windows version). Removed 5308the 5309"-CF" flag from the flex compile, enables correct detection of non-ASCII 5310characters in the input. BZ 441 5311 5312iASL: Eliminate warning when result of LoadTable is not used. Eliminate 5313the 5314"result of operation not used" warning when the DDB handle returned from 5315LoadTable is not used. The warning is not needed. BZ 590 5316 5317AcpiExec: Add support for dynamic table load/unload. Now calls _CFG 5318method 5319to 5320pass address of table to the AML. Added option to disable OpRegion 5321simulation 5322to allow creation of an OpRegion with a real address that was passed to 5323_CFG. 5324All of this allows testing of the Load and Unload operators from 5325AcpiExec. 5326 5327Debugger: update tables command for unloaded tables. Handle unloaded 5328tables 5329and use the standard table header output routine. 5330 5331---------------------------------------- 533209 June 2008. Summary of changes for version 20080609: 5333 53341) ACPI CA Core Subsystem: 5335 5336Implemented a workaround for reversed _PRT entries. A significant number 5337of 5338BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 5339change dynamically detects and repairs this problem. Provides 5340compatibility 5341with MS ACPI. BZ 6859 5342 5343Simplified the internal ACPI hardware interfaces to eliminate the locking 5344flag parameter from Register Read/Write. Added a new external interface, 5345AcpiGetRegisterUnlocked. 5346 5347Fixed a problem where the invocation of a GPE control method could hang. 5348This 5349was a regression introduced in 20080514. The new method argument count 5350validation mechanism can enter an infinite loop when a GPE method is 5351dispatched. Problem fixed by removing the obsolete code that passed GPE 5352block 5353information to the notify handler via the control method parameter 5354pointer. 5355 5356Fixed a problem where the _SST execution status was incorrectly returned 5357to 5358the caller of AcpiEnterSleepStatePrep. This was a regression introduced 5359in 536020080514. _SST is optional and a NOT_FOUND exception should never be 5361returned. BZ 716 5362 5363Fixed a problem where a deleted object could be accessed from within the 5364AML 5365parser. This was a regression introduced in version 20080123 as a fix for 5366the 5367Unload operator. Lin Ming. BZ 10669 5368 5369Cleaned up the debug operand dump mechanism. Eliminated unnecessary 5370operands 5371and eliminated the use of a negative index in a loop. Operands are now 5372displayed in the correct order, not backwards. This also fixes a 5373regression 5374introduced in 20080514 on 64-bit systems where the elimination of 5375ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 5376715 5377 5378Fixed a possible memory leak in EvPciConfigRegionSetup where the error 5379exit 5380path did not delete a locally allocated structure. 5381 5382Updated definitions for the DMAR and SRAT tables to synchronize with the 5383current specifications. Includes disassembler support. 5384 5385Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 5386loop termination value was used. Loop terminated on iteration early, 5387missing 5388one mutex. Linn Crosetto 5389 5390Example Code and Data Size: These are the sizes for the OS-independent 5391acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5392debug version of the code includes the debug output trace mechanism and 5393has a 5394much larger code and data size. 5395 5396 Previous Release: 5397 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 5398 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 5399 Current Release: 5400 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 5401 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 5402 54032) iASL Compiler/Disassembler and Tools: 5404 5405Disassembler: Implemented support for EisaId() within _CID objects. Now 5406disassemble integer _CID objects back to EisaId invocations, including 5407multiple integers within _CID packages. Includes single-step support for 5408debugger also. 5409 5410Disassembler: Added support for DMAR and SRAT table definition changes. 5411 5412---------------------------------------- 541314 May 2008. Summary of changes for version 20080514: 5414 54151) ACPI CA Core Subsystem: 5416 5417Fixed a problem where GPEs were enabled too early during the ACPICA 5418initialization. This could lead to "handler not installed" errors on some 5419machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 5420This 5421ensures that all operation regions and devices throughout the namespace 5422have 5423been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 5424 5425Implemented a change to the enter sleep code. Moved execution of the _GTS 5426method to just before setting sleep enable bit. The execution was moved 5427from 5428AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 5429immediately before the SLP_EN bit is set, as per the ACPI specification. 5430Luming Yu, BZ 1653. 5431 5432Implemented a fix to disable unknown GPEs (2nd version). Now always 5433disable 5434the GPE, even if ACPICA thinks that that it is already disabled. It is 5435possible that the AML or some other code has enabled the GPE unbeknownst 5436to 5437the ACPICA code. 5438 5439Fixed a problem with the Field operator where zero-length fields would 5440return 5441an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 5442ASL 5443field declarations in Field(), BankField(), and IndexField(). BZ 10606. 5444 5445Implemented a fix for the Load operator, now load the table at the 5446namespace 5447root. This reverts a change introduced in version 20071019. The table is 5448now 5449loaded at the namespace root even though this goes against the ACPI 5450specification. This provides compatibility with other ACPI 5451implementations. 5452The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 5453Ming. 5454 5455Fixed a problem where ACPICA would not Load() tables with unusual 5456signatures. 5457Now ignore ACPI table signature for Load() operator. Only "SSDT" is 5458acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 5459Therefore, signature validation is worthless. Apparently MS ACPI accepts 5460such 5461signatures, ACPICA must be compatible. BZ 10454. 5462 5463Fixed a possible negative array index in AcpiUtValidateException. Added 5464NULL 5465fields to the exception string arrays to eliminate a -1 subtraction on 5466the 5467SubStatus field. 5468 5469Updated the debug tracking macros to reduce overall code and data size. 5470Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 5471instead of pointers to static strings. Jan Beulich and Bob Moore. 5472 5473Implemented argument count checking in control method invocation via 5474AcpiEvaluateObject. Now emit an error if too few arguments, warning if 5475too 5476many. This applies only to extern programmatic control method execution, 5477not 5478method-to-method calls within the AML. Lin Ming. 5479 5480Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 5481no 5482longer needed, especially with the removal of 16-bit support. It was 5483replaced 5484mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 5485bit 5486on 548732/64-bit platforms is required. 5488 5489Added the C const qualifier for appropriate string constants -- mostly 5490MODULE_NAME and printf format strings. Jan Beulich. 5491 5492Example Code and Data Size: These are the sizes for the OS-independent 5493acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5494debug version of the code includes the debug output trace mechanism and 5495has a 5496much larger code and data size. 5497 5498 Previous Release: 5499 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 5500 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 5501 Current Release: 5502 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 5503 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 5504 55052) iASL Compiler/Disassembler and Tools: 5506 5507Implemented ACPI table revision ID validation in the disassembler. Zero 5508is 5509always invalid. For DSDTs, the ID controls the interpreter integer width. 55101 5511means 32-bit and this is unusual. 2 or greater is 64-bit. 5512 5513---------------------------------------- 551421 March 2008. Summary of changes for version 20080321: 5515 55161) ACPI CA Core Subsystem: 5517 5518Implemented an additional change to the GPE support in order to suppress 5519spurious or stray GPEs. The AcpiEvDisableGpe function will now 5520permanently 5521disable incoming GPEs that are neither enabled nor disabled -- meaning 5522that 5523the GPE is unknown to the system. This should prevent future interrupt 5524floods 5525from that GPE. BZ 6217 (Zhang Rui) 5526 5527Fixed a problem where NULL package elements were not returned to the 5528AcpiEvaluateObject interface correctly. The element was simply ignored 5529instead of returning a NULL ACPI_OBJECT package element, potentially 5530causing 5531a buffer overflow and/or confusing the caller who expected a fixed number 5532of 5533elements. BZ 10132 (Lin Ming, Bob Moore) 5534 5535Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 5536Dword, 5537Qword), Field, BankField, and IndexField operators when invoked from 5538inside 5539an executing control method. In this case, these operators created 5540namespace 5541nodes that were incorrectly left marked as permanent nodes instead of 5542temporary nodes. This could cause a problem if there is race condition 5543between an exiting control method and a running namespace walk. (Reported 5544by 5545Linn Crosetto) 5546 5547Fixed a problem where the CreateField and CreateXXXField operators would 5548incorrectly allow duplicate names (the name of the field) with no 5549exception 5550generated. 5551 5552Implemented several changes for Notify handling. Added support for new 5553Notify 5554values (ACPI 2.0+) and improved the Notify debug output. Notify on 5555PowerResource objects is no longer allowed, as per the ACPI 5556specification. 5557(Bob Moore, Zhang Rui) 5558 5559All Reference Objects returned via the AcpiEvaluateObject interface are 5560now 5561marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 5562for 5563NULL objects - either NULL package elements or unresolved named 5564references. 5565 5566Fixed a problem where an extraneous debug message was produced for 5567package 5568objects (when debugging enabled). The message "Package List length larger 5569than NumElements count" is now produced in the correct case, and is now 5570an 5571error message rather than a debug message. Added a debug message for the 5572opposite case, where NumElements is larger than the Package List (the 5573package 5574will be padded out with NULL elements as per the ACPI spec.) 5575 5576Implemented several improvements for the output of the ASL "Debug" object 5577to 5578clarify and keep all data for a given object on one output line. 5579 5580Fixed two size calculation issues with the variable-length Start 5581Dependent 5582resource descriptor. 5583 5584Example Code and Data Size: These are the sizes for the OS-independent 5585acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5586debug version of the code includes the debug output trace mechanism and 5587has 5588a much larger code and data size. 5589 5590 Previous Release: 5591 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 5592 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 5593 Current Release: 5594 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 5595 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 5596 55972) iASL Compiler/Disassembler and Tools: 5598 5599Fixed a problem with the use of the Switch operator where execution of 5600the 5601containing method by multiple concurrent threads could cause an 5602AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 5603actual Switch opcode, it must be simulated with local named temporary 5604variables and if/else pairs. The solution chosen was to mark any method 5605that 5606uses Switch as Serialized, thus preventing multiple thread entries. BZ 5607469. 5608 5609---------------------------------------- 561013 February 2008. Summary of changes for version 20080213: 5611 56121) ACPI CA Core Subsystem: 5613 5614Implemented another MS compatibility design change for GPE/Notify 5615handling. 5616GPEs are now cleared/enabled asynchronously to allow all pending notifies 5617to 5618complete first. It is expected that the OSL will queue the enable request 5619behind all pending notify requests (may require changes to the local host 5620OSL 5621in AcpiOsExecute). Alexey Starikovskiy. 5622 5623Fixed a problem where buffer and package objects passed as arguments to a 5624control method via the external AcpiEvaluateObject interface could cause 5625an 5626AE_AML_INTERNAL exception depending on the order and type of operators 5627executed by the target control method. 5628 5629Fixed a problem where resource descriptor size optimization could cause a 5630problem when a _CRS resource template is passed to a _SRS method. The 5631_SRS 5632resource template must use the same descriptors (with the same size) as 5633returned from _CRS. This change affects the following resource 5634descriptors: 5635IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 56369487) 5637 5638Fixed a problem where a CopyObject to RegionField, BankField, and 5639IndexField 5640objects did not perform an implicit conversion as it should. These types 5641must 5642retain their initial type permanently as per the ACPI specification. 5643However, 5644a CopyObject to all other object types should not perform an implicit 5645conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 5646 5647Fixed a problem with the AcpiGetDevices interface where the mechanism to 5648match device CIDs did not examine the entire list of available CIDs, but 5649instead aborted on the first non-matching CID. Andrew Patterson. 5650 5651Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 5652was 5653inadvertently changed to return a 16-bit value instead of a 32-bit value, 5654truncating the upper dword of a 64-bit value. This macro is only used to 5655display debug output, so no incorrect calculations were made. Also, 5656reimplemented the macro so that a 64-bit shift is not performed by 5657inefficient compilers. 5658 5659Added missing va_end statements that should correspond with each va_start 5660statement. 5661 5662Example Code and Data Size: These are the sizes for the OS-independent 5663acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5664debug version of the code includes the debug output trace mechanism and 5665has 5666a much larger code and data size. 5667 5668 Previous Release: 5669 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 5670 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 5671 Current Release: 5672 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 5673 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 5674 56752) iASL Compiler/Disassembler and Tools: 5676 5677Implemented full disassembler support for the following new ACPI tables: 5678BERT, EINJ, and ERST. Implemented partial disassembler support for the 5679complicated HEST table. These tables support the Windows Hardware Error 5680Architecture (WHEA). 5681 5682---------------------------------------- 568323 January 2008. Summary of changes for version 20080123: 5684 56851) ACPI CA Core Subsystem: 5686 5687Added the 2008 copyright to all module headers and signons. This affects 5688virtually every file in the ACPICA core subsystem, the iASL compiler, and 5689the tools/utilities. 5690 5691Fixed a problem with the SizeOf operator when used with Package and 5692Buffer 5693objects. These objects have deferred execution for some arguments, and 5694the 5695execution is now completed before the SizeOf is executed. This problem 5696caused 5697unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 5698BZ 56999558 5700 5701Implemented an enhancement to the interpreter "slack mode". In the 5702absence 5703of 5704an explicit return or an implicitly returned object from the last 5705executed 5706opcode, a control method will now implicitly return an integer of value 0 5707for 5708Microsoft compatibility. (Lin Ming) BZ 392 5709 5710Fixed a problem with the Load operator where an exception was not 5711returned 5712in 5713the case where the table is already loaded. (Lin Ming) BZ 463 5714 5715Implemented support for the use of DDBHandles as an Indexed Reference, as 5716per 5717the ACPI spec. (Lin Ming) BZ 486 5718 5719Implemented support for UserTerm (Method invocation) for the Unload 5720operator 5721as per the ACPI spec. (Lin Ming) BZ 580 5722 5723Fixed a problem with the LoadTable operator where the OemId and 5724OemTableId 5725input strings could cause unexpected failures if they were shorter than 5726the 5727maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 5728 5729Implemented support for UserTerm (Method invocation) for the Unload 5730operator 5731as per the ACPI spec. (Lin Ming) BZ 580 5732 5733Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 5734HEST, 5735IBFT, UEFI, WDAT. Disassembler support is forthcoming. 5736 5737Example Code and Data Size: These are the sizes for the OS-independent 5738acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5739debug version of the code includes the debug output trace mechanism and 5740has 5741a much larger code and data size. 5742 5743 Previous Release: 5744 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 5745 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 5746 Current Release: 5747 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 5748 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 5749 57502) iASL Compiler/Disassembler and Tools: 5751 5752Implemented support in the disassembler for checksum validation on 5753incoming 5754binary DSDTs and SSDTs. If incorrect, a message is displayed within the 5755table 5756header dump at the start of the disassembly. 5757 5758Implemented additional debugging information in the namespace listing 5759file 5760created during compilation. In addition to the namespace hierarchy, the 5761full 5762pathname to each namespace object is displayed. 5763 5764Fixed a problem with the disassembler where invalid ACPI tables could 5765cause 5766faults or infinite loops. 5767 5768Fixed an unexpected parse error when using the optional "parameter types" 5769list in a control method declaration. (Lin Ming) BZ 397 5770 5771Fixed a problem where two External declarations with the same name did 5772not 5773cause an error (Lin Ming) BZ 509 5774 5775Implemented support for full TermArgs (adding Argx, Localx and method 5776invocation) for the ParameterData parameter to the LoadTable operator. 5777(Lin 5778Ming) BZ 583,587 5779 5780---------------------------------------- 578119 December 2007. Summary of changes for version 20071219: 5782 57831) ACPI CA Core Subsystem: 5784 5785Implemented full support for deferred execution for the TermArg string 5786arguments for DataTableRegion. This enables forward references and full 5787operand resolution for the three string arguments. Similar to 5788OperationRegion 5789deferred argument execution.) Lin Ming. BZ 430 5790 5791Implemented full argument resolution support for the BankValue argument 5792to 5793BankField. Previously, only constants were supported, now any TermArg may 5794be 5795used. Lin Ming BZ 387, 393 5796 5797Fixed a problem with AcpiGetDevices where the search of a branch of the 5798device tree could be terminated prematurely. In accordance with the ACPI 5799specification, the search down the current branch is terminated if a 5800device 5801is both not present and not functional (instead of just not present.) 5802Yakui 5803Zhao. 5804 5805Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 5806if 5807the underlying AML code changed the GPE enable registers. Now, any 5808unknown 5809incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 5810disabled 5811instead of simply ignored. Rui Zhang. 5812 5813Fixed a problem with Index Fields where the Index register was 5814incorrectly 5815limited to a maximum of 32 bits. Now any size may be used. 5816 5817Fixed a couple memory leaks associated with "implicit return" objects 5818when 5819the AML Interpreter slack mode is enabled. Lin Ming BZ 349 5820 5821Example Code and Data Size: These are the sizes for the OS-independent 5822acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5823debug version of the code includes the debug output trace mechanism and 5824has 5825a much larger code and data size. 5826 5827 Previous Release: 5828 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 5829 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 5830 Current Release: 5831 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 5832 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 5833 5834---------------------------------------- 583514 November 2007. Summary of changes for version 20071114: 5836 58371) ACPI CA Core Subsystem: 5838 5839Implemented event counters for each of the Fixed Events, the ACPI SCI 5840(interrupt) itself, and control methods executed. Named 5841AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 5842These 5843should be useful for debugging and statistics. 5844 5845Implemented a new external interface, AcpiGetStatistics, to retrieve the 5846contents of the various event counters. Returns the current values for 5847AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 5848AcpiMethodCount. The interface can be expanded in the future if new 5849counters 5850are added. Device drivers should use this interface rather than access 5851the 5852counters directly. 5853 5854Fixed a problem with the FromBCD and ToBCD operators. With some 5855compilers, 5856the ShortDivide function worked incorrectly, causing problems with the 5857BCD 5858functions with large input values. A truncation from 64-bit to 32-bit 5859inadvertently occurred. Internal BZ 435. Lin Ming 5860 5861Fixed a problem with Index references passed as method arguments. 5862References 5863passed as arguments to control methods were dereferenced immediately 5864(before 5865control was passed to the called method). The references are now 5866correctly 5867passed directly to the called method. BZ 5389. Lin Ming 5868 5869Fixed a problem with CopyObject used in conjunction with the Index 5870operator. 5871The reference was incorrectly dereferenced before the copy. The reference 5872is 5873now correctly copied. BZ 5391. Lin Ming 5874 5875Fixed a problem with Control Method references within Package objects. 5876These 5877references are now correctly generated. This completes the package 5878construction overhaul that began in version 20071019. 5879 5880Example Code and Data Size: These are the sizes for the OS-independent 5881acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5882debug version of the code includes the debug output trace mechanism and 5883has 5884a much larger code and data size. 5885 5886 Previous Release: 5887 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 5888 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 5889 Current Release: 5890 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 5891 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 5892 5893 58942) iASL Compiler/Disassembler and Tools: 5895 5896The AcpiExec utility now installs handlers for all of the predefined 5897Operation Region types. New types supported are: PCI_Config, CMOS, and 5898PCIBARTarget. 5899 5900Fixed a problem with the 64-bit version of AcpiExec where the extended 5901(64- 5902bit) address fields for the DSDT and FACS within the FADT were not being 5903used, causing truncation of the upper 32-bits of these addresses. Lin 5904Ming 5905and Bob Moore 5906 5907---------------------------------------- 590819 October 2007. Summary of changes for version 20071019: 5909 59101) ACPI CA Core Subsystem: 5911 5912Fixed a problem with the Alias operator when the target of the alias is a 5913named ASL operator that opens a new scope -- Scope, Device, 5914PowerResource, 5915Processor, and ThermalZone. In these cases, any children of the original 5916operator could not be accessed via the alias, potentially causing 5917unexpected 5918AE_NOT_FOUND exceptions. (BZ 9067) 5919 5920Fixed a problem with the Package operator where all named references were 5921created as object references and left otherwise unresolved. According to 5922the 5923ACPI specification, a Package can only contain Data Objects or references 5924to 5925control methods. The implication is that named references to Data Objects 5926(Integer, Buffer, String, Package, BufferField, Field) should be resolved 5927immediately upon package creation. This is the approach taken with this 5928change. References to all other named objects (Methods, Devices, Scopes, 5929etc.) are all now properly created as reference objects. (BZ 5328) 5930 5931Reverted a change to Notify handling that was introduced in version 593220070508. This version changed the Notify handling from asynchronous to 5933fully synchronous (Device driver Notify handling with respect to the 5934Notify 5935ASL operator). It was found that this change caused more problems than it 5936solved and was removed by most users. 5937 5938Fixed a problem with the Increment and Decrement operators where the type 5939of 5940the target object could be unexpectedly and incorrectly changed. (BZ 353) 5941Lin Ming. 5942 5943Fixed a problem with the Load and LoadTable operators where the table 5944location within the namespace was ignored. Instead, the table was always 5945loaded into the root or current scope. Lin Ming. 5946 5947Fixed a problem with the Load operator when loading a table from a buffer 5948object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 5949 5950Fixed a problem with the Debug object where a store of a DdbHandle 5951reference 5952object to the Debug object could cause a fault. 5953 5954Added a table checksum verification for the Load operator, in the case 5955where 5956the load is from a buffer. (BZ 578). 5957 5958Implemented additional parameter validation for the LoadTable operator. 5959The 5960length of the input strings SignatureString, OemIdString, and OemTableId 5961are 5962now checked for maximum lengths. (BZ 582) Lin Ming. 5963 5964Example Code and Data Size: These are the sizes for the OS-independent 5965acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5966debug version of the code includes the debug output trace mechanism and 5967has 5968a much larger code and data size. 5969 5970 Previous Release: 5971 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 5972 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 5973 Current Release: 5974 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 5975 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 5976 5977 59782) iASL Compiler/Disassembler: 5979 5980Fixed a problem where if a single file was specified and the file did not 5981exist, no error message was emitted. (Introduced with wildcard support in 5982version 20070917.) 5983 5984---------------------------------------- 598519 September 2007. Summary of changes for version 20070919: 5986 59871) ACPI CA Core Subsystem: 5988 5989Designed and implemented new external interfaces to install and remove 5990handlers for ACPI table-related events. Current events that are defined 5991are 5992LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 5993they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 5994AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 5995 5996Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 5997(acpi_serialized option on Linux) could cause some systems to hang during 5998initialization. (Bob Moore) BZ 8171 5999 6000Fixed a problem where objects of certain types (Device, ThermalZone, 6001Processor, PowerResource) can be not found if they are declared and 6002referenced from within the same control method (Lin Ming) BZ 341 6003 6004Example Code and Data Size: These are the sizes for the OS-independent 6005acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6006debug version of the code includes the debug output trace mechanism and 6007has 6008a much larger code and data size. 6009 6010 Previous Release: 6011 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 6012 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 6013 Current Release: 6014 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 6015 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 6016 6017 60182) iASL Compiler/Disassembler: 6019 6020Implemented support to allow multiple files to be compiled/disassembled 6021in 6022a 6023single invocation. This includes command line wildcard support for both 6024the 6025Windows and Unix versions of the compiler. This feature simplifies the 6026disassembly and compilation of multiple ACPI tables in a single 6027directory. 6028 6029---------------------------------------- 603008 May 2007. Summary of changes for version 20070508: 6031 60321) ACPI CA Core Subsystem: 6033 6034Implemented a Microsoft compatibility design change for the handling of 6035the 6036Notify AML operator. Previously, notify handlers were dispatched and 6037executed completely asynchronously in a deferred thread. The new design 6038still executes the notify handlers in a different thread, but the 6039original 6040thread that executed the Notify() now waits at a synchronization point 6041for 6042the notify handler to complete. Some machines depend on a synchronous 6043Notify 6044operator in order to operate correctly. 6045 6046Implemented support to allow Package objects to be passed as method 6047arguments to the external AcpiEvaluateObject interface. Previously, this 6048would return the AE_NOT_IMPLEMENTED exception. This feature had not been 6049implemented since there were no reserved control methods that required it 6050until recently. 6051 6052Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 6053that 6054contained invalid non-zero values in reserved fields could cause later 6055failures because these fields have meaning in later revisions of the 6056FADT. 6057For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 6058fields 6059are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 6060 6061Fixed a problem where the Global Lock handle was not properly updated if 6062a 6063thread that acquired the Global Lock via executing AML code then 6064attempted 6065to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 6066Joe 6067Liu. 6068 6069Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 6070could be corrupted if the interrupt being removed was at the head of the 6071list. Reported by Linn Crosetto. 6072 6073Example Code and Data Size: These are the sizes for the OS-independent 6074acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6075debug version of the code includes the debug output trace mechanism and 6076has 6077a much larger code and data size. 6078 6079 Previous Release: 6080 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 6081 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 6082 Current Release: 6083 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 6084 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 6085 6086---------------------------------------- 608720 March 2007. Summary of changes for version 20070320: 6088 60891) ACPI CA Core Subsystem: 6090 6091Implemented a change to the order of interpretation and evaluation of AML 6092operand objects within the AML interpreter. The interpreter now evaluates 6093operands in the order that they appear in the AML stream (and the 6094corresponding ASL code), instead of in the reverse order (after the 6095entire 6096operand list has been parsed). The previous behavior caused several 6097subtle 6098incompatibilities with the Microsoft AML interpreter as well as being 6099somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 6100 6101Implemented a change to the ACPI Global Lock support. All interfaces to 6102the 6103global lock now allow the same thread to acquire the lock multiple times. 6104This affects the AcpiAcquireGlobalLock external interface to the global 6105lock 6106as well as the internal use of the global lock to support AML fields -- a 6107control method that is holding the global lock can now simultaneously 6108access 6109AML fields that require global lock protection. Previously, in both 6110cases, 6111this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 6112to 6113AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 6114Controller. There is no change to the behavior of the AML Acquire 6115operator, 6116as this can already be used to acquire a mutex multiple times by the same 6117thread. BZ 8066. With assistance from Alexey Starikovskiy. 6118 6119Fixed a problem where invalid objects could be referenced in the AML 6120Interpreter after error conditions. During operand evaluation, ensure 6121that 6122the internal "Return Object" field is cleared on error and only valid 6123pointers are stored there. Caused occasional access to deleted objects 6124that 6125resulted in "large reference count" warning messages. Valery Podrezov. 6126 6127Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 6128on 6129deeply nested control method invocations. BZ 7873, local BZ 487. Valery 6130Podrezov. 6131 6132Fixed an internal problem with the handling of result objects on the 6133interpreter result stack. BZ 7872. Valery Podrezov. 6134 6135Removed obsolete code that handled the case where AML_NAME_OP is the 6136target 6137of a reference (Reference.Opcode). This code was no longer necessary. BZ 61387874. Valery Podrezov. 6139 6140Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This 6141was 6142a 6143remnant from the previously discontinued 16-bit support. 6144 6145Example Code and Data Size: These are the sizes for the OS-independent 6146acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6147debug version of the code includes the debug output trace mechanism and 6148has 6149a much larger code and data size. 6150 6151 Previous Release: 6152 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 6153 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 6154 Current Release: 6155 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 6156 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 6157 6158---------------------------------------- 615926 January 2007. Summary of changes for version 20070126: 6160 61611) ACPI CA Core Subsystem: 6162 6163Added the 2007 copyright to all module headers and signons. This affects 6164virtually every file in the ACPICA core subsystem, the iASL compiler, and 6165the utilities. 6166 6167Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 6168during a table load. A bad pointer was passed in the case where the DSDT 6169is 6170overridden, causing a fault in this case. 6171 6172Example Code and Data Size: These are the sizes for the OS-independent 6173acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6174debug version of the code includes the debug output trace mechanism and 6175has 6176a much larger code and data size. 6177 6178 Previous Release: 6179 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 6180 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 6181 Current Release: 6182 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 6183 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 6184 6185---------------------------------------- 618615 December 2006. Summary of changes for version 20061215: 6187 61881) ACPI CA Core Subsystem: 6189 6190Support for 16-bit ACPICA has been completely removed since it is no 6191longer 6192necessary and it clutters the code. All 16-bit macros, types, and 6193conditional compiles have been removed, cleaning up and simplifying the 6194code 6195across the entire subsystem. DOS support is no longer needed since the 6196bootable Linux firmware kit is now available. 6197 6198The handler for the Global Lock is now removed during AcpiTerminate to 6199enable a clean subsystem restart, via the implementation of the 6200AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 6201HP) 6202 6203Implemented enhancements to the multithreading support within the 6204debugger 6205to enable improved multithreading debugging and evaluation of the 6206subsystem. 6207(Valery Podrezov) 6208 6209Debugger: Enhanced the Statistics/Memory command to emit the total 6210(maximum) 6211memory used during the execution, as well as the maximum memory consumed 6212by 6213each of the various object types. (Valery Podrezov) 6214 6215Example Code and Data Size: These are the sizes for the OS-independent 6216acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6217debug version of the code includes the debug output trace mechanism and 6218has 6219a much larger code and data size. 6220 6221 Previous Release: 6222 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 6223 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 6224 Current Release: 6225 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 6226 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 6227 6228 62292) iASL Compiler/Disassembler and Tools: 6230 6231AcpiExec: Implemented a new option (-m) to display full memory use 6232statistics upon subsystem/program termination. (Valery Podrezov) 6233 6234---------------------------------------- 623509 November 2006. Summary of changes for version 20061109: 6236 62371) ACPI CA Core Subsystem: 6238 6239Optimized the Load ASL operator in the case where the source operand is 6240an 6241operation region. Simply map the operation region memory, instead of 6242performing a bytewise read. (Region must be of type SystemMemory, see 6243below.) 6244 6245Fixed the Load ASL operator for the case where the source operand is a 6246region field. A buffer object is also allowed as the source operand. BZ 6247480 6248 6249Fixed a problem where the Load ASL operator allowed the source operand to 6250be 6251an operation region of any type. It is now restricted to regions of type 6252SystemMemory, as per the ACPI specification. BZ 481 6253 6254Additional cleanup and optimizations for the new Table Manager code. 6255 6256AcpiEnable will now fail if all of the required ACPI tables are not 6257loaded 6258(FADT, FACS, DSDT). BZ 477 6259 6260Added #pragma pack(8/4) to acobject.h to ensure that the structures in 6261this 6262header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 6263manually optimized to be aligned and will not work if it is byte-packed. 6264 6265Example Code and Data Size: These are the sizes for the OS-independent 6266acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6267debug version of the code includes the debug output trace mechanism and 6268has 6269a much larger code and data size. 6270 6271 Previous Release: 6272 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 6273 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 6274 Current Release: 6275 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 6276 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 6277 6278 62792) iASL Compiler/Disassembler and Tools: 6280 6281Fixed a problem where the presence of the _OSI predefined control method 6282within complex expressions could cause an internal compiler error. 6283 6284AcpiExec: Implemented full region support for multiple address spaces. 6285SpaceId is now part of the REGION object. BZ 429 6286 6287---------------------------------------- 628811 October 2006. Summary of changes for version 20061011: 6289 62901) ACPI CA Core Subsystem: 6291 6292Completed an AML interpreter performance enhancement for control method 6293execution. Previously a 2-pass parse/execution, control methods are now 6294completely parsed and executed in a single pass. This improves overall 6295interpreter performance by ~25%, reduces code size, and reduces CPU stack 6296use. (Valery Podrezov + interpreter changes in version 20051202 that 6297eliminated namespace loading during the pass one parse.) 6298 6299Implemented _CID support for PCI Root Bridge detection. If the _HID does 6300not 6301match the predefined PCI Root Bridge IDs, the _CID list (if present) is 6302now 6303obtained and also checked for an ID match. 6304 6305Implemented additional support for the PCI _ADR execution: upsearch until 6306a 6307device scope is found before executing _ADR. This allows PCI_Config 6308operation regions to be declared locally within control methods 6309underneath 6310PCI device objects. 6311 6312Fixed a problem with a possible race condition between threads executing 6313AcpiWalkNamespace and the AML interpreter. This condition was removed by 6314modifying AcpiWalkNamespace to (by default) ignore all temporary 6315namespace 6316entries created during any concurrent control method execution. An 6317additional namespace race condition is known to exist between 6318AcpiWalkNamespace and the Load/Unload ASL operators and is still under 6319investigation. 6320 6321Restructured the AML ParseLoop function, breaking it into several 6322subfunctions in order to reduce CPU stack use and improve 6323maintainability. 6324(Mikhail Kouzmich) 6325 6326AcpiGetHandle: Fix for parameter validation to detect invalid 6327combinations 6328of prefix handle and pathname. BZ 478 6329 6330Example Code and Data Size: These are the sizes for the OS-independent 6331acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6332debug version of the code includes the debug output trace mechanism and 6333has 6334a much larger code and data size. 6335 6336 Previous Release: 6337 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 6338 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 6339 Current Release: 6340 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 6341 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 6342 63432) iASL Compiler/Disassembler and Tools: 6344 6345Ported the -g option (get local ACPI tables) to the new ACPICA Table 6346Manager 6347to restore original behavior. 6348 6349---------------------------------------- 635027 September 2006. Summary of changes for version 20060927: 6351 63521) ACPI CA Core Subsystem: 6353 6354Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 6355These functions now use a spinlock for mutual exclusion and the interrupt 6356level indication flag is not needed. 6357 6358Fixed a problem with the Global Lock where the lock could appear to be 6359obtained before it is actually obtained. The global lock semaphore was 6360inadvertently created with one unit instead of zero units. (BZ 464) 6361Fiodor 6362Suietov. 6363 6364Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 6365during 6366a read from a buffer or region field. (BZ 458) Fiodor Suietov. 6367 6368Example Code and Data Size: These are the sizes for the OS-independent 6369acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6370debug version of the code includes the debug output trace mechanism and 6371has 6372a much larger code and data size. 6373 6374 Previous Release: 6375 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 6376 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 6377 Current Release: 6378 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 6379 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 6380 6381 63822) iASL Compiler/Disassembler and Tools: 6383 6384Fixed a compilation problem with the pre-defined Resource Descriptor 6385field 6386names where an "object does not exist" error could be incorrectly 6387generated 6388if the parent ResourceTemplate pathname places the template within a 6389different namespace scope than the current scope. (BZ 7212) 6390 6391Fixed a problem where the compiler could hang after syntax errors 6392detected 6393in an ElseIf construct. (BZ 453) 6394 6395Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 6396operator. An incorrect output filename was produced when this parameter 6397was 6398a null string (""). Now, the original input filename is used as the AML 6399output filename, with an ".aml" extension. 6400 6401Implemented a generic batch command mode for the AcpiExec utility 6402(execute 6403any AML debugger command) (Valery Podrezov). 6404 6405---------------------------------------- 640612 September 2006. Summary of changes for version 20060912: 6407 64081) ACPI CA Core Subsystem: 6409 6410Enhanced the implementation of the "serialized mode" of the interpreter 6411(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 6412specified, instead of creating a serialization semaphore per control 6413method, 6414the interpreter lock is simply no longer released before a blocking 6415operation during control method execution. This effectively makes the AML 6416Interpreter single-threaded. The overhead of a semaphore per-method is 6417eliminated. 6418 6419Fixed a regression where an error was no longer emitted if a control 6420method 6421attempts to create 2 objects of the same name. This once again returns 6422AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 6423that 6424will dynamically serialize the control method to possible prevent future 6425errors. (BZ 440) 6426 6427Integrated a fix for a problem with PCI Express HID detection in the PCI 6428Config Space setup procedure. (BZ 7145) 6429 6430Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 6431AcpiHwInitialize function - the FADT registers are now validated when the 6432table is loaded. 6433 6434Added two new warnings during FADT verification - 1) if the FADT is 6435larger 6436than the largest known FADT version, and 2) if there is a mismatch 6437between 6438a 643932-bit block address and the 64-bit X counterpart (when both are non- 6440zero.) 6441 6442Example Code and Data Size: These are the sizes for the OS-independent 6443acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6444debug version of the code includes the debug output trace mechanism and 6445has 6446a much larger code and data size. 6447 6448 Previous Release: 6449 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 6450 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 6451 Current Release: 6452 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 6453 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 6454 6455 64562) iASL Compiler/Disassembler and Tools: 6457 6458Fixed a problem with the implementation of the Switch() operator where 6459the 6460temporary variable was declared too close to the actual Switch, instead 6461of 6462at method level. This could cause a problem if the Switch() operator is 6463within a while loop, causing an error on the second iteration. (BZ 460) 6464 6465Disassembler - fix for error emitted for unknown type for target of scope 6466operator. Now, ignore it and continue. 6467 6468Disassembly of an FADT now verifies the input FADT and reports any errors 6469found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 6470 6471Disassembly of raw data buffers with byte initialization data now 6472prefixes 6473each output line with the current buffer offset. 6474 6475Disassembly of ASF! table now includes all variable-length data fields at 6476the end of some of the subtables. 6477 6478The disassembler now emits a comment if a buffer appears to be a 6479ResourceTemplate, but cannot be disassembled as such because the EndTag 6480does 6481not appear at the very end of the buffer. 6482 6483AcpiExec - Added the "-t" command line option to enable the serialized 6484mode 6485of the AML interpreter. 6486 6487---------------------------------------- 648831 August 2006. Summary of changes for version 20060831: 6489 64901) ACPI CA Core Subsystem: 6491 6492Miscellaneous fixes for the Table Manager: 6493- Correctly initialize internal common FADT for all 64-bit "X" fields 6494- Fixed a couple table mapping issues during table load 6495- Fixed a couple alignment issues for IA64 6496- Initialize input array to zero in AcpiInitializeTables 6497- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 6498AcpiGetTableByIndex 6499 6500Change for GPE support: when a "wake" GPE is received, all wake GPEs are 6501now 6502immediately disabled to prevent the waking GPE from firing again and to 6503prevent other wake GPEs from interrupting the wake process. 6504 6505Added the AcpiGpeCount global that tracks the number of processed GPEs, 6506to 6507be used for debugging systems with a large number of ACPI interrupts. 6508 6509Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 6510both the ACPICA headers and the disassembler. 6511 6512Example Code and Data Size: These are the sizes for the OS-independent 6513acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6514debug version of the code includes the debug output trace mechanism and 6515has 6516a much larger code and data size. 6517 6518 Previous Release: 6519 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 6520 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 6521 Current Release: 6522 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 6523 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 6524 6525 65262) iASL Compiler/Disassembler and Tools: 6527 6528Disassembler support for the DMAR ACPI table. 6529 6530---------------------------------------- 653123 August 2006. Summary of changes for version 20060823: 6532 65331) ACPI CA Core Subsystem: 6534 6535The Table Manager component has been completely redesigned and 6536reimplemented. The new design is much simpler, and reduces the overall 6537code 6538and data size of the kernel-resident ACPICA by approximately 5%. Also, it 6539is 6540now possible to obtain the ACPI tables very early during kernel 6541initialization, even before dynamic memory management is initialized. 6542(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 6543 6544Obsolete ACPICA interfaces: 6545 6546- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 6547init 6548time). 6549- AcpiLoadTable: Not needed. 6550- AcpiUnloadTable: Not needed. 6551 6552New ACPICA interfaces: 6553 6554- AcpiInitializeTables: Must be called before the table manager can be 6555used. 6556- AcpiReallocateRootTable: Used to transfer the root table to dynamically 6557allocated memory after it becomes available. 6558- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI 6559tables 6560in the RSDT/XSDT. 6561 6562Other ACPICA changes: 6563 6564- AcpiGetTableHeader returns the actual mapped table header, not a copy. 6565Use 6566AcpiOsUnmapMemory to free this mapping. 6567- AcpiGetTable returns the actual mapped table. The mapping is managed 6568internally and must not be deleted by the caller. Use of this interface 6569causes no additional dynamic memory allocation. 6570- AcpiFindRootPointer: Support for physical addressing has been 6571eliminated, 6572it appeared to be unused. 6573- The interface to AcpiOsMapMemory has changed to be consistent with the 6574other allocation interfaces. 6575- The interface to AcpiOsGetRootPointer has changed to eliminate 6576unnecessary 6577parameters. 6578- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 657964- 6580bit platforms. Was previously 64 bits on all platforms. 6581- The interface to the ACPI Global Lock acquire/release macros have 6582changed 6583slightly since ACPICA no longer keeps a local copy of the FACS with a 6584constructed pointer to the actual global lock. 6585 6586Porting to the new table manager: 6587 6588- AcpiInitializeTables: Must be called once, and can be called anytime 6589during the OS initialization process. It allows the host to specify an 6590area 6591of memory to be used to store the internal version of the RSDT/XSDT (root 6592table). This allows the host to access ACPI tables before memory 6593management 6594is initialized and running. 6595- AcpiReallocateRootTable: Can be called after memory management is 6596running 6597to copy the root table to a dynamically allocated array, freeing up the 6598scratch memory specified in the call to AcpiInitializeTables. 6599- AcpiSubsystemInitialize: This existing interface is independent of the 6600Table Manager, and does not have to be called before the Table Manager 6601can 6602be used, it only must be called before the rest of ACPICA can be used. 6603- ACPI Tables: Some changes have been made to the names and structure of 6604the 6605actbl.h and actbl1.h header files and may require changes to existing 6606code. 6607For example, bitfields have been completely removed because of their lack 6608of 6609portability across C compilers. 6610- Update interfaces to the Global Lock acquire/release macros if local 6611versions are used. (see acwin.h) 6612 6613Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 6614 6615New files: tbfind.c 6616 6617Example Code and Data Size: These are the sizes for the OS-independent 6618acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6619debug version of the code includes the debug output trace mechanism and 6620has 6621a much larger code and data size. 6622 6623 Previous Release: 6624 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 6625 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 6626 Current Release: 6627 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 6628 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 6629 6630 66312) iASL Compiler/Disassembler and Tools: 6632 6633No changes for this release. 6634 6635---------------------------------------- 663621 July 2006. Summary of changes for version 20060721: 6637 66381) ACPI CA Core Subsystem: 6639 6640The full source code for the ASL test suite used to validate the iASL 6641compiler and the ACPICA core subsystem is being released with the ACPICA 6642source for the first time. The source is contained in a separate package 6643and 6644consists of over 1100 files that exercise all ASL/AML operators. The 6645package 6646should appear on the Intel/ACPI web site shortly. (Valery Podrezov, 6647Fiodor 6648Suietov) 6649 6650Completed a new design and implementation for support of the ACPI Global 6651Lock. On the OS side, the global lock is now treated as a standard AML 6652mutex. Previously, multiple OS threads could "acquire" the global lock 6653simultaneously. However, this could cause the BIOS to be starved out of 6654the 6655lock - especially in cases such as the Embedded Controller driver where 6656there is a tight coupling between the OS and the BIOS. 6657 6658Implemented an optimization for the ACPI Global Lock interrupt mechanism. 6659The Global Lock interrupt handler no longer queues the execution of a 6660separate thread to signal the global lock semaphore. Instead, the 6661semaphore 6662is signaled directly from the interrupt handler. 6663 6664Implemented support within the AML interpreter for package objects that 6665contain a larger AML length (package list length) than the package 6666element 6667count. In this case, the length of the package is truncated to match the 6668package element count. Some BIOS code apparently modifies the package 6669length 6670on the fly, and this change supports this behavior. Provides 6671compatibility 6672with the MS AML interpreter. (With assistance from Fiodor Suietov) 6673 6674Implemented a temporary fix for the BankValue parameter of a Bank Field 6675to 6676support all constant values, now including the Zero and One opcodes. 6677Evaluation of this parameter must eventually be converted to a full 6678TermArg 6679evaluation. A not-implemented error is now returned (temporarily) for 6680non- 6681constant values for this parameter. 6682 6683Fixed problem reports (Fiodor Suietov) integrated: 6684- Fix for premature object deletion after CopyObject on Operation Region 6685(BZ 6686350) 6687 6688Example Code and Data Size: These are the sizes for the OS-independent 6689acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6690debug version of the code includes the debug output trace mechanism and 6691has 6692a much larger code and data size. 6693 6694 Previous Release: 6695 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 6696 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 6697 Current Release: 6698 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 6699 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 6700 6701 67022) iASL Compiler/Disassembler and Tools: 6703 6704No changes for this release. 6705 6706---------------------------------------- 670707 July 2006. Summary of changes for version 20060707: 6708 67091) ACPI CA Core Subsystem: 6710 6711Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 6712that do not allow the initialization of address pointers within packed 6713structures - even though the hardware itself may support misaligned 6714transfers. Some of the debug data structures are packed by default to 6715minimize size. 6716 6717Added an error message for the case where AcpiOsGetThreadId() returns 6718zero. 6719A non-zero value is required by the core ACPICA code to ensure the proper 6720operation of AML mutexes and recursive control methods. 6721 6722The DSDT is now the only ACPI table that determines whether the AML 6723interpreter is in 32-bit or 64-bit mode. Not really a functional change, 6724but 6725the hooks for per-table 32/64 switching have been removed from the code. 6726A 6727clarification to the ACPI specification is forthcoming in ACPI 3.0B. 6728 6729Fixed a possible leak of an OwnerID in the error path of 6730AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 6731deletion to a single place in AcpiTbUninstallTable to correct possible 6732leaks 6733when using the AcpiTbDeleteTablesByType interface (with assistance from 6734Lance Ortiz.) 6735 6736Fixed a problem with Serialized control methods where the semaphore 6737associated with the method could be over-signaled after multiple method 6738invocations. 6739 6740Fixed two issues with the locking of the internal namespace data 6741structure. 6742Both the Unload() operator and AcpiUnloadTable interface now lock the 6743namespace during the namespace deletion associated with the table unload 6744(with assistance from Linn Crosetto.) 6745 6746Fixed problem reports (Valery Podrezov) integrated: 6747- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 6748 6749Fixed problem reports (Fiodor Suietov) integrated: 6750- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 6751- On Address Space handler deletion, needless deactivation call (BZ 374) 6752- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 6753375) 6754- Possible memory leak, Notify sub-objects of Processor, Power, 6755ThermalZone 6756(BZ 376) 6757- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 6758- Minimum Length of RSDT should be validated (BZ 379) 6759- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 6760Handler (BZ (380) 6761- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 6762loaded 6763(BZ 381) 6764 6765Example Code and Data Size: These are the sizes for the OS-independent 6766acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6767debug version of the code includes the debug output trace mechanism and 6768has 6769a much larger code and data size. 6770 6771 Previous Release: 6772 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 6773 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 6774 Current Release: 6775 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 6776 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 6777 6778 67792) iASL Compiler/Disassembler and Tools: 6780 6781Fixed problem reports: 6782Compiler segfault when ASL contains a long (>1024) String declaration (BZ 6783436) 6784 6785---------------------------------------- 678623 June 2006. Summary of changes for version 20060623: 6787 67881) ACPI CA Core Subsystem: 6789 6790Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 6791allows the type to be customized to the host OS for improved efficiency 6792(since a spinlock is usually a very small object.) 6793 6794Implemented support for "ignored" bits in the ACPI registers. According 6795to 6796the ACPI specification, these bits should be preserved when writing the 6797registers via a read/modify/write cycle. There are 3 bits preserved in 6798this 6799manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 6800 6801Implemented the initial deployment of new OSL mutex interfaces. Since 6802some 6803host operating systems have separate mutex and semaphore objects, this 6804feature was requested. The base code now uses mutexes (and the new mutex 6805interfaces) wherever a binary semaphore was used previously. However, for 6806the current release, the mutex interfaces are defined as macros to map 6807them 6808to the existing semaphore interfaces. Therefore, no OSL changes are 6809required 6810at this time. (See acpiosxf.h) 6811 6812Fixed several problems with the support for the control method SyncLevel 6813parameter. The SyncLevel now works according to the ACPI specification 6814and 6815in concert with the Mutex SyncLevel parameter, since the current 6816SyncLevel 6817is a property of the executing thread. Mutual exclusion for control 6818methods 6819is now implemented with a mutex instead of a semaphore. 6820 6821Fixed three instances of the use of the C shift operator in the bitfield 6822support code (exfldio.c) to avoid the use of a shift value larger than 6823the 6824target data width. The behavior of C compilers is undefined in this case 6825and 6826can cause unpredictable results, and therefore the case must be detected 6827and 6828avoided. (Fiodor Suietov) 6829 6830Added an info message whenever an SSDT or OEM table is loaded dynamically 6831via the Load() or LoadTable() ASL operators. This should improve 6832debugging 6833capability since it will show exactly what tables have been loaded 6834(beyond 6835the tables present in the RSDT/XSDT.) 6836 6837Example Code and Data Size: These are the sizes for the OS-independent 6838acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6839debug version of the code includes the debug output trace mechanism and 6840has 6841a much larger code and data size. 6842 6843 Previous Release: 6844 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 6845 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 6846 Current Release: 6847 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 6848 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 6849 6850 68512) iASL Compiler/Disassembler and Tools: 6852 6853No changes for this release. 6854 6855---------------------------------------- 685608 June 2006. Summary of changes for version 20060608: 6857 68581) ACPI CA Core Subsystem: 6859 6860Converted the locking mutex used for the ACPI hardware to a spinlock. 6861This 6862change should eliminate all problems caused by attempting to acquire a 6863semaphore at interrupt level, and it means that all ACPICA external 6864interfaces that directly access the ACPI hardware can be safely called 6865from 6866interrupt level. OSL code that implements the semaphore interfaces should 6867be 6868able to eliminate any workarounds for being called at interrupt level. 6869 6870Fixed a regression introduced in 20060526 where the ACPI device 6871initialization could be prematurely aborted with an AE_NOT_FOUND if a 6872device 6873did not have an optional _INI method. 6874 6875Fixed an IndexField issue where a write to the Data Register should be 6876limited in size to the AccessSize (width) of the IndexField itself. (BZ 6877433, 6878Fiodor Suietov) 6879 6880Fixed problem reports (Valery Podrezov) integrated: 6881- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 6882 6883Fixed problem reports (Fiodor Suietov) integrated: 6884- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 6885 6886Removed four global mutexes that were obsolete and were no longer being 6887used. 6888 6889Example Code and Data Size: These are the sizes for the OS-independent 6890acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6891debug version of the code includes the debug output trace mechanism and 6892has 6893a much larger code and data size. 6894 6895 Previous Release: 6896 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 6897 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 6898 Current Release: 6899 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 6900 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 6901 6902 69032) iASL Compiler/Disassembler and Tools: 6904 6905Fixed a fault when using -g option (get tables from registry) on Windows 6906machines. 6907 6908Fixed problem reports integrated: 6909- Generate error if CreateField NumBits parameter is zero. (BZ 405) 6910- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 6911Suietov) 6912- Global table revision override (-r) is ignored (BZ 413) 6913 6914---------------------------------------- 691526 May 2006. Summary of changes for version 20060526: 6916 69171) ACPI CA Core Subsystem: 6918 6919Restructured, flattened, and simplified the internal interfaces for 6920namespace object evaluation - resulting in smaller code, less CPU stack 6921use, 6922and fewer interfaces. (With assistance from Mikhail Kouzmich) 6923 6924Fixed a problem with the CopyObject operator where the first parameter 6925was 6926not typed correctly for the parser, interpreter, compiler, and 6927disassembler. 6928Caused various errors and unexpected behavior. 6929 6930Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 6931produced incorrect results with some C compilers. Since the behavior of C 6932compilers when the shift value is larger than the datatype width is 6933apparently not well defined, the interpreter now detects this condition 6934and 6935simply returns zero as expected in all such cases. (BZ 395) 6936 6937Fixed problem reports (Valery Podrezov) integrated: 6938- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 6939- Allow interpreter to handle nested method declarations (BZ 5361) 6940 6941Fixed problem reports (Fiodor Suietov) integrated: 6942- AcpiTerminate doesn't free debug memory allocation list objects (BZ 6943355) 6944- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 6945356) 6946- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 6947- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 6948- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 6949- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 6950- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 6951- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 6952- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 6953365) 6954- Status of the Global Initialization Handler call not used (BZ 366) 6955- Incorrect object parameter to Global Initialization Handler (BZ 367) 6956 6957Example Code and Data Size: These are the sizes for the OS-independent 6958acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6959debug version of the code includes the debug output trace mechanism and 6960has 6961a much larger code and data size. 6962 6963 Previous Release: 6964 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 6965 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 6966 Current Release: 6967 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 6968 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 6969 6970 69712) iASL Compiler/Disassembler and Tools: 6972 6973Modified the parser to allow the names IO, DMA, and IRQ to be used as 6974namespace identifiers with no collision with existing resource descriptor 6975macro names. This provides compatibility with other ASL compilers and is 6976most useful for disassembly/recompilation of existing tables without 6977parse 6978errors. (With assistance from Thomas Renninger) 6979 6980Disassembler: fixed an incorrect disassembly problem with the 6981DataTableRegion and CopyObject operators. Fixed a possible fault during 6982disassembly of some Alias operators. 6983 6984---------------------------------------- 698512 May 2006. Summary of changes for version 20060512: 6986 69871) ACPI CA Core Subsystem: 6988 6989Replaced the AcpiOsQueueForExecution interface with a new interface named 6990AcpiOsExecute. The major difference is that the new interface does not 6991have 6992a Priority parameter, this appeared to be useless and has been replaced 6993by 6994a 6995Type parameter. The Type tells the host what type of execution is being 6996requested, such as global lock handler, notify handler, GPE handler, etc. 6997This allows the host to queue and execute the request as appropriate for 6998the 6999request type, possibly using different work queues and different 7000priorities 7001for the various request types. This enables fixes for multithreading 7002deadlock problems such as BZ #5534, and will require changes to all 7003existing 7004OS interface layers. (Alexey Starikovskiy and Bob Moore) 7005 7006Fixed a possible memory leak associated with the support for the so- 7007called 7008"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 7009Suietov) 7010 7011Fixed a problem with the Load() operator where a table load from an 7012operation region could overwrite an internal table buffer by up to 7 7013bytes 7014and cause alignment faults on IPF systems. (With assistance from Luming 7015Yu) 7016 7017Example Code and Data Size: These are the sizes for the OS-independent 7018acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7019debug version of the code includes the debug output trace mechanism and 7020has 7021a much larger code and data size. 7022 7023 Previous Release: 7024 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 7025 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 7026 Current Release: 7027 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 7028 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 7029 7030 7031 70322) iASL Compiler/Disassembler and Tools: 7033 7034Disassembler: Implemented support to cross reference the internal 7035namespace 7036and automatically generate ASL External() statements for symbols not 7037defined 7038within the current table being disassembled. This will simplify the 7039disassembly and recompilation of interdependent tables such as SSDTs 7040since 7041these statements will no longer have to be added manually. 7042 7043Disassembler: Implemented experimental support to automatically detect 7044invocations of external control methods and generate appropriate 7045External() 7046statements. This is problematic because the AML cannot be correctly 7047parsed 7048until the number of arguments for each control method is known. 7049Currently, 7050standalone method invocations and invocations as the source operand of a 7051Store() statement are supported. 7052 7053Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 7054LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 7055LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 7056more readable and likely closer to the original ASL source. 7057 7058---------------------------------------- 705921 April 2006. Summary of changes for version 20060421: 7060 70611) ACPI CA Core Subsystem: 7062 7063Removed a device initialization optimization introduced in 20051216 where 7064the _STA method was not run unless an _INI was also present for the same 7065device. This optimization could cause problems because it could allow 7066_INI 7067methods to be run within a not-present device subtree. (If a not-present 7068device had no _INI, _STA would not be run, the not-present status would 7069not 7070be discovered, and the children of the device would be incorrectly 7071traversed.) 7072 7073Implemented a new _STA optimization where namespace subtrees that do not 7074contain _INI are identified and ignored during device initialization. 7075Selectively running _STA can significantly improve boot time on large 7076machines (with assistance from Len Brown.) 7077 7078Implemented support for the device initialization case where the returned 7079_STA flags indicate a device not-present but functioning. In this case, 7080_INI 7081is not run, but the device children are examined for presence, as per the 7082ACPI specification. 7083 7084Implemented an additional change to the IndexField support in order to 7085conform to MS behavior. The value written to the Index Register is not 7086simply a byte offset, it is a byte offset in units of the access width of 7087the parent Index Field. (Fiodor Suietov) 7088 7089Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 7090interface is called during the creation of all AML operation regions, and 7091allows the host OS to exert control over what addresses it will allow the 7092AML code to access. Operation Regions whose addresses are disallowed will 7093cause a runtime exception when they are actually accessed (will not 7094affect 7095or abort table loading.) See oswinxf or osunixxf for an example 7096implementation. 7097 7098Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 7099interface allows the host OS to match the various "optional" 7100interface/behavior strings for the _OSI predefined control method as 7101appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 7102for an example implementation. 7103 7104Restructured and corrected various problems in the exception handling 7105code 7106paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 7107(with assistance from Takayoshi Kochi.) 7108 7109Modified the Linux source converter to ignore quoted string literals 7110while 7111converting identifiers from mixed to lower case. This will correct 7112problems 7113with the disassembler and other areas where such strings must not be 7114modified. 7115 7116The ACPI_FUNCTION_* macros no longer require quotes around the function 7117name. This allows the Linux source converter to convert the names, now 7118that 7119the converter ignores quoted strings. 7120 7121Example Code and Data Size: These are the sizes for the OS-independent 7122acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7123debug version of the code includes the debug output trace mechanism and 7124has 7125a much larger code and data size. 7126 7127 Previous Release: 7128 7129 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 7130 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 7131 Current Release: 7132 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 7133 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 7134 7135 71362) iASL Compiler/Disassembler and Tools: 7137 7138Implemented 3 new warnings for iASL, and implemented multiple warning 7139levels 7140(w2 flag). 7141 71421) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 7143not 7144WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 7145check for the possible timeout, a warning is issued. 7146 71472) Useless operators: If an ASL operator does not specify an optional 7148target 7149operand and it also does not use the function return value from the 7150operator, a warning is issued since the operator effectively does 7151nothing. 7152 71533) Unreferenced objects: If a namespace object is created, but never 7154referenced, a warning is issued. This is a warning level 2 since there 7155are 7156cases where this is ok, such as when a secondary table is loaded that 7157uses 7158the unreferenced objects. Even so, care is taken to only flag objects 7159that 7160don't look like they will ever be used. For example, the reserved methods 7161(starting with an underscore) are usually not referenced because it is 7162expected that the OS will invoke them. 7163 7164---------------------------------------- 716531 March 2006. Summary of changes for version 20060331: 7166 71671) ACPI CA Core Subsystem: 7168 7169Implemented header file support for the following additional ACPI tables: 7170ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 7171support, 7172all current and known ACPI tables are now defined in the ACPICA headers 7173and 7174are available for use by device drivers and other software. 7175 7176Implemented support to allow tables that contain ACPI names with invalid 7177characters to be loaded. Previously, this would cause the table load to 7178fail, but since there are several known cases of such tables on existing 7179machines, this change was made to enable ACPI support for them. Also, 7180this 7181matches the behavior of the Microsoft ACPI implementation. 7182 7183Fixed a couple regressions introduced during the memory optimization in 7184the 718520060317 release. The namespace node definition required additional 7186reorganization and an internal datatype that had been changed to 8-bit 7187was 7188restored to 32-bit. (Valery Podrezov) 7189 7190Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 7191could be passed through to AcpiOsReleaseObject which is unexpected. Such 7192null pointers are now trapped and ignored, matching the behavior of the 7193previous implementation before the deployment of AcpiOsReleaseObject. 7194(Valery Podrezov, Fiodor Suietov) 7195 7196Fixed a memory mapping leak during the deletion of a SystemMemory 7197operation 7198region where a cached memory mapping was not deleted. This became a 7199noticeable problem for operation regions that are defined within 7200frequently 7201used control methods. (Dana Meyers) 7202 7203Reorganized the ACPI table header files into two main files: one for the 7204ACPI tables consumed by the ACPICA core, and another for the 7205miscellaneous 7206ACPI tables that are consumed by the drivers and other software. The 7207various 7208FADT definitions were merged into one common section and three different 7209tables (ACPI 1.0, 1.0+, and 2.0) 7210 7211Example Code and Data Size: These are the sizes for the OS-independent 7212acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7213debug version of the code includes the debug output trace mechanism and 7214has 7215a much larger code and data size. 7216 7217 Previous Release: 7218 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 7219 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 7220 Current Release: 7221 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 7222 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 7223 7224 72252) iASL Compiler/Disassembler and Tools: 7226 7227Disassembler: Implemented support to decode and format all non-AML ACPI 7228tables (tables other than DSDTs and SSDTs.) This includes the new tables 7229added to the ACPICA headers, therefore all current and known ACPI tables 7230are 7231supported. 7232 7233Disassembler: The change to allow ACPI names with invalid characters also 7234enables the disassembly of such tables. Invalid characters within names 7235are 7236changed to '*' to make the name printable; the iASL compiler will still 7237generate an error for such names, however, since this is an invalid ACPI 7238character. 7239 7240Implemented an option for AcpiXtract (-a) to extract all tables found in 7241the 7242input file. The default invocation extracts only the DSDTs and SSDTs. 7243 7244Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 7245makefile for the AcpiXtract utility. 7246 7247---------------------------------------- 724817 March 2006. Summary of changes for version 20060317: 7249 72501) ACPI CA Core Subsystem: 7251 7252Implemented the use of a cache object for all internal namespace nodes. 7253Since there are about 1000 static nodes in a typical system, this will 7254decrease memory use for cache implementations that minimize per- 7255allocation 7256overhead (such as a slab allocator.) 7257 7258Removed the reference count mechanism for internal namespace nodes, since 7259it 7260was deemed unnecessary. This reduces the size of each namespace node by 7261about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit 7262case, 7263and 32 bytes for the 64-bit case. 7264 7265Optimized several internal data structures to reduce object size on 64- 7266bit 7267platforms by packing data within the 64-bit alignment. This includes the 7268frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 7269instances corresponding to the namespace objects. 7270 7271Added two new strings for the predefined _OSI method: "Windows 2001.1 7272SP1" 7273and "Windows 2006". 7274 7275Split the allocation tracking mechanism out to a separate file, from 7276utalloc.c to uttrack.c. This mechanism appears to be only useful for 7277application-level code. Kernels may wish to not include uttrack.c in 7278distributions. 7279 7280Removed all remnants of the obsolete ACPI_REPORT_* macros and the 7281associated 7282code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 7283macros.) 7284 7285Code and Data Size: These are the sizes for the acpica.lib produced by 7286the 7287Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 7288ACPI 7289driver or OSPM code. The debug version of the code includes the debug 7290output 7291trace mechanism and has a much larger code and data size. Note that these 7292values will vary depending on the efficiency of the compiler and the 7293compiler options used during generation. 7294 7295 Previous Release: 7296 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 7297 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 7298 Current Release: 7299 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 7300 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 7301 7302 73032) iASL Compiler/Disassembler and Tools: 7304 7305Implemented an ANSI C version of the acpixtract utility. This version 7306will 7307automatically extract the DSDT and all SSDTs from the input acpidump text 7308file and dump the binary output to separate files. It can also display a 7309summary of the input file including the headers for each table found and 7310will extract any single ACPI table, with any signature. (See 7311source/tools/acpixtract) 7312 7313---------------------------------------- 731410 March 2006. Summary of changes for version 20060310: 7315 73161) ACPI CA Core Subsystem: 7317 7318Tagged all external interfaces to the subsystem with the new 7319ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to 7320assist 7321kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 7322macro. The default definition is NULL. 7323 7324Added the ACPI_THREAD_ID type for the return value from 7325AcpiOsGetThreadId. 7326This allows the host to define this as necessary to simplify kernel 7327integration. The default definition is ACPI_NATIVE_UINT. 7328 7329Fixed two interpreter problems related to error processing, the deletion 7330of 7331objects, and placing invalid pointers onto the internal operator result 7332stack. BZ 6028, 6151 (Valery Podrezov) 7333 7334Increased the reference count threshold where a warning is emitted for 7335large 7336reference counts in order to eliminate unnecessary warnings on systems 7337with 7338large namespaces (especially 64-bit.) Increased the value from 0x400 to 73390x800. 7340 7341Due to universal disagreement as to the meaning of the 'c' in the 7342calloc() 7343function, the ACPI_MEM_CALLOCATE macro has been renamed to 7344ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 7345ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 7346ACPI_FREE. 7347 7348Code and Data Size: These are the sizes for the acpica.lib produced by 7349the 7350Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 7351ACPI 7352driver or OSPM code. The debug version of the code includes the debug 7353output 7354trace mechanism and has a much larger code and data size. Note that these 7355values will vary depending on the efficiency of the compiler and the 7356compiler options used during generation. 7357 7358 Previous Release: 7359 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 7360 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 7361 Current Release: 7362 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 7363 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 7364 7365 73662) iASL Compiler/Disassembler: 7367 7368Disassembler: implemented support for symbolic resource descriptor 7369references. If a CreateXxxxField operator references a fixed offset 7370within 7371a 7372resource descriptor, a name is assigned to the descriptor and the offset 7373is 7374translated to the appropriate resource tag and pathname. The addition of 7375this support brings the disassembled code very close to the original ASL 7376source code and helps eliminate run-time errors when the disassembled 7377code 7378is modified (and recompiled) in such a way as to invalidate the original 7379fixed offsets. 7380 7381Implemented support for a Descriptor Name as the last parameter to the 7382ASL 7383Register() macro. This parameter was inadvertently left out of the ACPI 7384specification, and will be added for ACPI 3.0b. 7385 7386Fixed a problem where the use of the "_OSI" string (versus the full path 7387"\_OSI") caused an internal compiler error. ("No back ptr to op") 7388 7389Fixed a problem with the error message that occurs when an invalid string 7390is 7391used for a _HID object (such as one with an embedded asterisk: 7392"*PNP010A".) 7393The correct message is now displayed. 7394 7395---------------------------------------- 739617 February 2006. Summary of changes for version 20060217: 7397 73981) ACPI CA Core Subsystem: 7399 7400Implemented a change to the IndexField support to match the behavior of 7401the 7402Microsoft AML interpreter. The value written to the Index register is now 7403a 7404byte offset, no longer an index based upon the width of the Data 7405register. 7406This should fix IndexField problems seen on some machines where the Data 7407register is not exactly one byte wide. The ACPI specification will be 7408clarified on this point. 7409 7410Fixed a problem where several resource descriptor types could overrun the 7411internal descriptor buffer due to size miscalculation: VendorShort, 7412VendorLong, and Interrupt. This was noticed on IA64 machines, but could 7413affect all platforms. 7414 7415Fixed a problem where individual resource descriptors were misaligned 7416within 7417the internal buffer, causing alignment faults on IA64 platforms. 7418 7419Code and Data Size: These are the sizes for the acpica.lib produced by 7420the 7421Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 7422ACPI 7423driver or OSPM code. The debug version of the code includes the debug 7424output 7425trace mechanism and has a much larger code and data size. Note that these 7426values will vary depending on the efficiency of the compiler and the 7427compiler options used during generation. 7428 7429 Previous Release: 7430 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 7431 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 7432 Current Release: 7433 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 7434 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 7435 7436 74372) iASL Compiler/Disassembler: 7438 7439Implemented support for new reserved names: _WDG and _WED are Microsoft 7440extensions for Windows Instrumentation Management, _TDL is a new ACPI- 7441defined method (Throttling Depth Limit.) 7442 7443Fixed a problem where a zero-length VendorShort or VendorLong resource 7444descriptor was incorrectly emitted as a descriptor of length one. 7445 7446---------------------------------------- 744710 February 2006. Summary of changes for version 20060210: 7448 74491) ACPI CA Core Subsystem: 7450 7451Removed a couple of extraneous ACPI_ERROR messages that appeared during 7452normal execution. These became apparent after the conversion from 7453ACPI_DEBUG_PRINT. 7454 7455Fixed a problem where the CreateField operator could hang if the BitIndex 7456or 7457NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 7458 7459Fixed a problem where a DeRefOf operation on a buffer object incorrectly 7460failed with an exception. This also fixes a couple of related RefOf and 7461DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 7462 7463Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 7464of 7465AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 7466BZ 74675480) 7468 7469Implemented a memory cleanup at the end of the execution of each 7470iteration 7471of an AML While() loop, preventing the accumulation of outstanding 7472objects. 7473(Valery Podrezov, BZ 5427) 7474 7475Eliminated a chunk of duplicate code in the object resolution code. 7476(Valery 7477Podrezov, BZ 5336) 7478 7479Fixed several warnings during the 64-bit code generation. 7480 7481The AcpiSrc source code conversion tool now inserts one line of 7482whitespace 7483after an if() statement that is followed immediately by a comment, 7484improving 7485readability of the Linux code. 7486 7487Code and Data Size: The current and previous library sizes for the core 7488subsystem are shown below. These are the code and data sizes for the 7489acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 7490These 7491values do not include any ACPI driver or OSPM code. The debug version of 7492the 7493code includes the debug output trace mechanism and has a much larger code 7494and data size. Note that these values will vary depending on the 7495efficiency 7496of the compiler and the compiler options used during generation. 7497 7498 Previous Release: 7499 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 7500 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 7501 Current Release: 7502 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 7503 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 7504 7505 75062) iASL Compiler/Disassembler: 7507 7508Fixed a problem with the disassembly of a BankField operator with a 7509complex 7510expression for the BankValue parameter. 7511 7512---------------------------------------- 751327 January 2006. Summary of changes for version 20060127: 7514 75151) ACPI CA Core Subsystem: 7516 7517Implemented support in the Resource Manager to allow unresolved 7518namestring 7519references within resource package objects for the _PRT method. This 7520support 7521is in addition to the previously implemented unresolved reference support 7522within the AML parser. If the interpreter slack mode is enabled, these 7523unresolved references will be passed through to the caller as a NULL 7524package 7525entry. 7526 7527Implemented and deployed new macros and functions for error and warning 7528messages across the subsystem. These macros are simpler and generate less 7529code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 7530ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 7531macros remain defined to allow ACPI drivers time to migrate to the new 7532macros. 7533 7534Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of 7535the 7536Acquire/Release Lock OSL interfaces. 7537 7538Fixed a problem where Alias ASL operators are sometimes not correctly 7539resolved, in both the interpreter and the iASL compiler. 7540 7541Fixed several problems with the implementation of the 7542ConcatenateResTemplate 7543ASL operator. As per the ACPI specification, zero length buffers are now 7544treated as a single EndTag. One-length buffers always cause a fatal 7545exception. Non-zero length buffers that do not end with a full 2-byte 7546EndTag 7547cause a fatal exception. 7548 7549Fixed a possible structure overwrite in the AcpiGetObjectInfo external 7550interface. (With assistance from Thomas Renninger) 7551 7552Code and Data Size: The current and previous library sizes for the core 7553subsystem are shown below. These are the code and data sizes for the 7554acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 7555These 7556values do not include any ACPI driver or OSPM code. The debug version of 7557the 7558code includes the debug output trace mechanism and has a much larger code 7559and data size. Note that these values will vary depending on the 7560efficiency 7561of the compiler and the compiler options used during generation. 7562 7563 Previous Release: 7564 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 7565 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 7566 Current Release: 7567 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 7568 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 7569 7570 75712) iASL Compiler/Disassembler: 7572 7573Fixed an internal error that was generated for any forward references to 7574ASL 7575Alias objects. 7576 7577---------------------------------------- 757813 January 2006. Summary of changes for version 20060113: 7579 75801) ACPI CA Core Subsystem: 7581 7582Added 2006 copyright to all module headers and signons. This affects 7583virtually every file in the ACPICA core subsystem, iASL compiler, and the 7584utilities. 7585 7586Enhanced the ACPICA error reporting in order to simplify user migration 7587to 7588the non-debug version of ACPICA. Replaced all instances of the 7589ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN 7590debug 7591levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 7592respectively. This preserves all error and warning messages in the non- 7593debug 7594version of the ACPICA code (this has been referred to as the "debug lite" 7595option.) Over 200 cases were converted to create a total of over 380 7596error/warning messages across the ACPICA code. This increases the code 7597and 7598data size of the default non-debug version of the code somewhat (about 759913K), 7600but all error/warning reporting may be disabled if desired (and code 7601eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 7602configuration option. The size of the debug version of ACPICA remains 7603about 7604the same. 7605 7606Fixed a memory leak within the AML Debugger "Set" command. One object was 7607not properly deleted for every successful invocation of the command. 7608 7609Code and Data Size: The current and previous library sizes for the core 7610subsystem are shown below. These are the code and data sizes for the 7611acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 7612These 7613values do not include any ACPI driver or OSPM code. The debug version of 7614the 7615code includes the debug output trace mechanism and has a much larger code 7616and data size. Note that these values will vary depending on the 7617efficiency 7618of the compiler and the compiler options used during generation. 7619 7620 Previous Release: 7621 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 7622 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 7623 Current Release: 7624 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 7625 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 7626 7627 76282) iASL Compiler/Disassembler: 7629 7630The compiler now officially supports the ACPI 3.0a specification that was 7631released on December 30, 2005. (Specification is available at 7632www.acpi.info) 7633 7634---------------------------------------- 763516 December 2005. Summary of changes for version 20051216: 7636 76371) ACPI CA Core Subsystem: 7638 7639Implemented optional support to allow unresolved names within ASL Package 7640objects. A null object is inserted in the package when a named reference 7641cannot be located in the current namespace. Enabled via the interpreter 7642slack flag, this should eliminate AE_NOT_FOUND exceptions seen on 7643machines 7644that contain such code. 7645 7646Implemented an optimization to the initialization sequence that can 7647improve 7648boot time. During ACPI device initialization, the _STA method is now run 7649if 7650and only if the _INI method exists. The _STA method is used to determine 7651if 7652the device is present; An _INI can only be run if _STA returns present, 7653but 7654it is a waste of time to run the _STA method if the _INI does not exist. 7655(Prototype and assistance from Dong Wei) 7656 7657Implemented use of the C99 uintptr_t for the pointer casting macros if it 7658is 7659available in the current compiler. Otherwise, the default (void *) cast 7660is 7661used as before. 7662 7663Fixed some possible memory leaks found within the execution path of the 7664Break, Continue, If, and CreateField operators. (Valery Podrezov) 7665 7666Fixed a problem introduced in the 20051202 release where an exception is 7667generated during method execution if a control method attempts to declare 7668another method. 7669 7670Moved resource descriptor string constants that are used by both the AML 7671disassembler and AML debugger to the common utilities directory so that 7672these components are independent. 7673 7674Implemented support in the AcpiExec utility (-e switch) to globally 7675ignore 7676exceptions during control method execution (method is not aborted.) 7677 7678Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 7679generation. 7680 7681Code and Data Size: The current and previous library sizes for the core 7682subsystem are shown below. These are the code and data sizes for the 7683acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 7684These 7685values do not include any ACPI driver or OSPM code. The debug version of 7686the 7687code includes the debug output trace mechanism and has a much larger code 7688and data size. Note that these values will vary depending on the 7689efficiency 7690of the compiler and the compiler options used during generation. 7691 7692 Previous Release: 7693 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 7694 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 7695 Current Release: 7696 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 7697 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 7698 7699 77002) iASL Compiler/Disassembler: 7701 7702Fixed a problem where a CPU stack overflow fault could occur if a 7703recursive 7704method call was made from within a Return statement. 7705 7706---------------------------------------- 770702 December 2005. Summary of changes for version 20051202: 7708 77091) ACPI CA Core Subsystem: 7710 7711Modified the parsing of control methods to no longer create namespace 7712objects during the first pass of the parse. Objects are now created only 7713during the execute phase, at the moment the namespace creation operator 7714is 7715encountered in the AML (Name, OperationRegion, CreateByteField, etc.) 7716This 7717should eliminate ALREADY_EXISTS exceptions seen on some machines where 7718reentrant control methods are protected by an AML mutex. The mutex will 7719now 7720correctly block multiple threads from attempting to create the same 7721object 7722more than once. 7723 7724Increased the number of available Owner Ids for namespace object tracking 7725from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 7726on 7727some machines with a large number of ACPI tables (either static or 7728dynamic). 7729 7730Fixed a problem with the AcpiExec utility where a fault could occur when 7731the 7732-b switch (batch mode) is used. 7733 7734Enhanced the namespace dump routine to output the owner ID for each 7735namespace object. 7736 7737Code and Data Size: The current and previous library sizes for the core 7738subsystem are shown below. These are the code and data sizes for the 7739acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 7740These 7741values do not include any ACPI driver or OSPM code. The debug version of 7742the 7743code includes the debug output trace mechanism and has a much larger code 7744and data size. Note that these values will vary depending on the 7745efficiency 7746of the compiler and the compiler options used during generation. 7747 7748 Previous Release: 7749 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 7750 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 7751 Current Release: 7752 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 7753 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 7754 7755 77562) iASL Compiler/Disassembler: 7757 7758Fixed a parse error during compilation of certain Switch/Case constructs. 7759To 7760simplify the parse, the grammar now allows for multiple Default 7761statements 7762and this error is now detected and flagged during the analysis phase. 7763 7764Disassembler: The disassembly now includes the contents of the original 7765table header within a comment at the start of the file. This includes the 7766name and version of the original ASL compiler. 7767 7768---------------------------------------- 776917 November 2005. Summary of changes for version 20051117: 7770 77711) ACPI CA Core Subsystem: 7772 7773Fixed a problem in the AML parser where the method thread count could be 7774decremented below zero if any errors occurred during the method parse 7775phase. 7776This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 7777machines. 7778This also fixed a related regression with the mechanism that detects and 7779corrects methods that cannot properly handle reentrancy (related to the 7780deployment of the new OwnerId mechanism.) 7781 7782Eliminated the pre-parsing of control methods (to detect errors) during 7783table load. Related to the problem above, this was causing unwind issues 7784if 7785any errors occurred during the parse, and it seemed to be overkill. A 7786table 7787load should not be aborted if there are problems with any single control 7788method, thus rendering this feature rather pointless. 7789 7790Fixed a problem with the new table-driven resource manager where an 7791internal 7792buffer overflow could occur for small resource templates. 7793 7794Implemented a new external interface, AcpiGetVendorResource. This 7795interface 7796will find and return a vendor-defined resource descriptor within a _CRS 7797or 7798_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 7799Helgaas. 7800 7801Removed the length limit (200) on string objects as per the upcoming ACPI 78023.0A specification. This affects the following areas of the interpreter: 78031) 7804any implicit conversion of a Buffer to a String, 2) a String object 7805result 7806of the ASL Concatentate operator, 3) the String object result of the ASL 7807ToString operator. 7808 7809Fixed a problem in the Windows OS interface layer (OSL) where a 7810WAIT_FOREVER 7811on a semaphore object would incorrectly timeout. This allows the 7812multithreading features of the AcpiExec utility to work properly under 7813Windows. 7814 7815Updated the Linux makefiles for the iASL compiler and AcpiExec to include 7816the recently added file named "utresrc.c". 7817 7818Code and Data Size: The current and previous library sizes for the core 7819subsystem are shown below. These are the code and data sizes for the 7820acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 7821These 7822values do not include any ACPI driver or OSPM code. The debug version of 7823the 7824code includes the debug output trace mechanism and has a much larger code 7825and data size. Note that these values will vary depending on the 7826efficiency 7827of the compiler and the compiler options used during generation. 7828 7829 Previous Release: 7830 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 7831 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 7832 Current Release: 7833 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 7834 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 7835 7836 78372) iASL Compiler/Disassembler: 7838 7839Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 7840specification. For the iASL compiler, this means that string literals 7841within 7842the source ASL can be of any length. 7843 7844Enhanced the listing output to dump the AML code for resource descriptors 7845immediately after the ASL code for each descriptor, instead of in a block 7846at 7847the end of the entire resource template. 7848 7849Enhanced the compiler debug output to dump the entire original parse tree 7850constructed during the parse phase, before any transforms are applied to 7851the 7852tree. The transformed tree is dumped also. 7853 7854---------------------------------------- 785502 November 2005. Summary of changes for version 20051102: 7856 78571) ACPI CA Core Subsystem: 7858 7859Modified the subsystem initialization sequence to improve GPE support. 7860The 7861GPE initialization has been split into two parts in order to defer 7862execution 7863of the _PRW methods (Power Resources for Wake) until after the hardware 7864is 7865fully initialized and the SCI handler is installed. This allows the _PRW 7866methods to access fields protected by the Global Lock. This will fix 7867systems 7868where a NO_GLOBAL_LOCK exception has been seen during initialization. 7869 7870Converted the ACPI internal object disassemble and display code within 7871the 7872AML debugger to fully table-driven operation, reducing code size and 7873increasing maintainability. 7874 7875Fixed a regression with the ConcatenateResTemplate() ASL operator 7876introduced 7877in the 20051021 release. 7878 7879Implemented support for "local" internal ACPI object types within the 7880debugger "Object" command and the AcpiWalkNamespace external interfaces. 7881These local types include RegionFields, BankFields, IndexFields, Alias, 7882and 7883reference objects. 7884 7885Moved common AML resource handling code into a new file, "utresrc.c". 7886This 7887code is shared by both the Resource Manager and the AML Debugger. 7888 7889Code and Data Size: The current and previous library sizes for the core 7890subsystem are shown below. These are the code and data sizes for the 7891acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 7892These 7893values do not include any ACPI driver or OSPM code. The debug version of 7894the 7895code includes the debug output trace mechanism and has a much larger code 7896and data size. Note that these values will vary depending on the 7897efficiency 7898of the compiler and the compiler options used during generation. 7899 7900 Previous Release: 7901 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 7902 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 7903 Current Release: 7904 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 7905 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 7906 7907 79082) iASL Compiler/Disassembler: 7909 7910Fixed a problem with very large initializer lists (more than 4000 7911elements) 7912for both Buffer and Package objects where the parse stack could overflow. 7913 7914Enhanced the pre-compile source code scan for non-ASCII characters to 7915ignore 7916characters within comment fields. The scan is now always performed and is 7917no 7918longer optional, detecting invalid characters within a source file 7919immediately rather than during the parse phase or later. 7920 7921Enhanced the ASL grammar definition to force early reductions on all 7922list- 7923style grammar elements so that the overall parse stack usage is greatly 7924reduced. This should improve performance and reduce the possibility of 7925parse 7926stack overflow. 7927 7928Eliminated all reduce/reduce conflicts in the iASL parser generation. 7929Also, 7930with the addition of a %expected statement, the compiler generates from 7931source with no warnings. 7932 7933Fixed a possible segment fault in the disassembler if the input filename 7934does not contain a "dot" extension (Thomas Renninger). 7935 7936---------------------------------------- 793721 October 2005. Summary of changes for version 20051021: 7938 79391) ACPI CA Core Subsystem: 7940 7941Implemented support for the EM64T and other x86-64 processors. This 7942essentially entails recognizing that these processors support non-aligned 7943memory transfers. Previously, all 64-bit processors were assumed to lack 7944hardware support for non-aligned transfers. 7945 7946Completed conversion of the Resource Manager to nearly full table-driven 7947operation. Specifically, the resource conversion code (convert AML to 7948internal format and the reverse) and the debug code to dump internal 7949resource descriptors are fully table-driven, reducing code and data size 7950and 7951improving maintainability. 7952 7953The OSL interfaces for Acquire and Release Lock now use a 64-bit flag 7954word 7955on 64-bit processors instead of a fixed 32-bit word. (With assistance 7956from 7957Alexey Starikovskiy) 7958 7959Implemented support within the resource conversion code for the Type- 7960Specific byte within the various ACPI 3.0 *WordSpace macros. 7961 7962Fixed some issues within the resource conversion code for the type- 7963specific 7964flags for both Memory and I/O address resource descriptors. For Memory, 7965implemented support for the MTP and TTP flags. For I/O, split the TRS and 7966TTP flags into two separate fields. 7967 7968Code and Data Size: The current and previous library sizes for the core 7969subsystem are shown below. These are the code and data sizes for the 7970acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 7971These 7972values do not include any ACPI driver or OSPM code. The debug version of 7973the 7974code includes the debug output trace mechanism and has a much larger code 7975and data size. Note that these values will vary depending on the 7976efficiency 7977of the compiler and the compiler options used during generation. 7978 7979 Previous Release: 7980 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 7981 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 7982 Current Release: 7983 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 7984 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 7985 7986 7987 79882) iASL Compiler/Disassembler: 7989 7990Relaxed a compiler restriction that disallowed a ResourceIndex byte if 7991the 7992corresponding ResourceSource string was not also present in a resource 7993descriptor declaration. This restriction caused problems with existing 7994AML/ASL code that includes the Index byte without the string. When such 7995AML 7996was disassembled, it could not be compiled without modification. Further, 7997the modified code created a resource template with a different size than 7998the 7999original, breaking code that used fixed offsets into the resource 8000template 8001buffer. 8002 8003Removed a recent feature of the disassembler to ignore a lone 8004ResourceIndex 8005byte. This byte is now emitted if present so that the exact AML can be 8006reproduced when the disassembled code is recompiled. 8007 8008Improved comments and text alignment for the resource descriptor code 8009emitted by the disassembler. 8010 8011Implemented disassembler support for the ACPI 3.0 AccessSize field within 8012a 8013Register() resource descriptor. 8014 8015---------------------------------------- 801630 September 2005. Summary of changes for version 20050930: 8017 80181) ACPI CA Core Subsystem: 8019 8020Completed a major overhaul of the Resource Manager code - specifically, 8021optimizations in the area of the AML/internal resource conversion code. 8022The 8023code has been optimized to simplify and eliminate duplicated code, CPU 8024stack 8025use has been decreased by optimizing function parameters and local 8026variables, and naming conventions across the manager have been 8027standardized 8028for clarity and ease of maintenance (this includes function, parameter, 8029variable, and struct/typedef names.) The update may force changes in some 8030driver code, depending on how resources are handled by the host OS. 8031 8032All Resource Manager dispatch and information tables have been moved to a 8033single location for clarity and ease of maintenance. One new file was 8034created, named "rsinfo.c". 8035 8036The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 8037guarantee that the argument is not evaluated twice, making them less 8038prone 8039to macro side-effects. However, since there exists the possibility of 8040additional stack use if a particular compiler cannot optimize them (such 8041as 8042in the debug generation case), the original macros are optionally 8043available. 8044Note that some invocations of the return_VALUE macro may now cause size 8045mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 8046to 8047eliminate these. (From Randy Dunlap) 8048 8049Implemented a new mechanism to enable debug tracing for individual 8050control 8051methods. A new external interface, AcpiDebugTrace, is provided to enable 8052this mechanism. The intent is to allow the host OS to easily enable and 8053disable tracing for problematic control methods. This interface can be 8054easily exposed to a user or debugger interface if desired. See the file 8055psxface.c for details. 8056 8057AcpiUtCallocate will now return a valid pointer if a length of zero is 8058specified - a length of one is used and a warning is issued. This matches 8059the behavior of AcpiUtAllocate. 8060 8061Code and Data Size: The current and previous library sizes for the core 8062subsystem are shown below. These are the code and data sizes for the 8063acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 8064These 8065values do not include any ACPI driver or OSPM code. The debug version of 8066the 8067code includes the debug output trace mechanism and has a much larger code 8068and data size. Note that these values will vary depending on the 8069efficiency 8070of the compiler and the compiler options used during generation. 8071 8072 Previous Release: 8073 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 8074 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 8075 Current Release: 8076 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 8077 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 8078 8079 80802) iASL Compiler/Disassembler: 8081 8082A remark is issued if the effective compile-time length of a package or 8083buffer is zero. Previously, this was a warning. 8084 8085---------------------------------------- 808616 September 2005. Summary of changes for version 20050916: 8087 80881) ACPI CA Core Subsystem: 8089 8090Fixed a problem within the Resource Manager where support for the Generic 8091Register descriptor was not fully implemented. This descriptor is now 8092fully 8093recognized, parsed, disassembled, and displayed. 8094 8095Completely restructured the Resource Manager code to utilize table-driven 8096dispatch and lookup, eliminating many of the large switch() statements. 8097This 8098reduces overall subsystem code size and code complexity. Affects the 8099resource parsing and construction, disassembly, and debug dump output. 8100 8101Cleaned up and restructured the debug dump output for all resource 8102descriptors. Improved readability of the output and reduced code size. 8103 8104Fixed a problem where changes to internal data structures caused the 8105optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 8106 8107Code and Data Size: The current and previous library sizes for the core 8108subsystem are shown below. These are the code and data sizes for the 8109acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 8110These 8111values do not include any ACPI driver or OSPM code. The debug version of 8112the 8113code includes the debug output trace mechanism and has a much larger code 8114and data size. Note that these values will vary depending on the 8115efficiency 8116of the compiler and the compiler options used during generation. 8117 8118 Previous Release: 8119 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 8120 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 8121 Current Release: 8122 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 8123 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 8124 8125 81262) iASL Compiler/Disassembler: 8127 8128Updated the disassembler to automatically insert an EndDependentFn() 8129macro 8130into the ASL stream if this macro is missing in the original AML code, 8131simplifying compilation of the resulting ASL module. 8132 8133Fixed a problem in the disassembler where a disassembled ResourceSource 8134string (within a large resource descriptor) was not surrounded by quotes 8135and 8136not followed by a comma, causing errors when the resulting ASL module was 8137compiled. Also, escape sequences within a ResourceSource string are now 8138handled correctly (especially "\\") 8139 8140---------------------------------------- 814102 September 2005. Summary of changes for version 20050902: 8142 81431) ACPI CA Core Subsystem: 8144 8145Fixed a problem with the internal Owner ID allocation and deallocation 8146mechanisms for control method execution and recursive method invocation. 8147This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 8148messages seen on some systems. Recursive method invocation depth is 8149currently limited to 255. (Alexey Starikovskiy) 8150 8151Completely eliminated all vestiges of support for the "module-level 8152executable code" until this support is fully implemented and debugged. 8153This 8154should eliminate the NO_RETURN_VALUE exceptions seen during table load on 8155some systems that invoke this support. 8156 8157Fixed a problem within the resource manager code where the transaction 8158flags 8159for a 64-bit address descriptor were handled incorrectly in the type- 8160specific flag byte. 8161 8162Consolidated duplicate code within the address descriptor resource 8163manager 8164code, reducing overall subsystem code size. 8165 8166Fixed a fault when using the AML debugger "disassemble" command to 8167disassemble individual control methods. 8168 8169Removed references to the "release_current" directory within the Unix 8170release package. 8171 8172Code and Data Size: The current and previous core subsystem library sizes 8173are shown below. These are the code and data sizes for the acpica.lib 8174produced by the Microsoft Visual C++ 6.0 compiler. These values do not 8175include any ACPI driver or OSPM code. The debug version of the code 8176includes 8177the debug output trace mechanism and has a much larger code and data 8178size. 8179Note that these values will vary depending on the efficiency of the 8180compiler 8181and the compiler options used during generation. 8182 8183 Previous Release: 8184 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 8185 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 8186 Current Release: 8187 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 8188 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 8189 8190 81912) iASL Compiler/Disassembler: 8192 8193Implemented an error check for illegal duplicate values in the interrupt 8194and 8195dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 8196Interrupt(). 8197 8198Implemented error checking for the Irq() and IrqNoFlags() macros to 8199detect 8200too many values in the interrupt list (16 max) and invalid values in the 8201list (range 0 - 15) 8202 8203The maximum length string literal within an ASL file is now restricted to 8204200 characters as per the ACPI specification. 8205 8206Fixed a fault when using the -ln option (generate namespace listing). 8207 8208Implemented an error check to determine if a DescriptorName within a 8209resource descriptor has already been used within the current scope. 8210 8211---------------------------------------- 821215 August 2005. Summary of changes for version 20050815: 8213 82141) ACPI CA Core Subsystem: 8215 8216Implemented a full bytewise compare to determine if a table load request 8217is 8218attempting to load a duplicate table. The compare is performed if the 8219table 8220signatures and table lengths match. This will allow different tables with 8221the same OEM Table ID and revision to be loaded - probably against the 8222ACPI 8223specification, but discovered in the field nonetheless. 8224 8225Added the changes.txt logfile to each of the zipped release packages. 8226 8227Code and Data Size: Current and previous core subsystem library sizes are 8228shown below. These are the code and data sizes for the acpica.lib 8229produced 8230by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8231any ACPI driver or OSPM code. The debug version of the code includes the 8232debug output trace mechanism and has a much larger code and data size. 8233Note 8234that these values will vary depending on the efficiency of the compiler 8235and 8236the compiler options used during generation. 8237 8238 Previous Release: 8239 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 8240 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 8241 Current Release: 8242 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 8243 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 8244 8245 82462) iASL Compiler/Disassembler: 8247 8248Fixed a problem where incorrect AML code could be generated for Package 8249objects if optimization is disabled (via the -oa switch). 8250 8251Fixed a problem with where incorrect AML code is generated for variable- 8252length packages when the package length is not specified and the number 8253of 8254initializer values is greater than 255. 8255 8256 8257---------------------------------------- 825829 July 2005. Summary of changes for version 20050729: 8259 82601) ACPI CA Core Subsystem: 8261 8262Implemented support to ignore an attempt to install/load a particular 8263ACPI 8264table more than once. Apparently there exists BIOS code that repeatedly 8265attempts to load the same SSDT upon certain events. With assistance from 8266Venkatesh Pallipadi. 8267 8268Restructured the main interface to the AML parser in order to correctly 8269handle all exceptional conditions. This will prevent leakage of the 8270OwnerId 8271resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 8272some 8273machines. With assistance from Alexey Starikovskiy. 8274 8275Support for "module level code" has been disabled in this version due to 8276a 8277number of issues that have appeared on various machines. The support can 8278be 8279enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 8280compilation. When the issues are fully resolved, the code will be enabled 8281by 8282default again. 8283 8284Modified the internal functions for debug print support to define the 8285FunctionName parameter as a (const char *) for compatibility with 8286compiler 8287built-in macros such as __FUNCTION__, etc. 8288 8289Linted the entire ACPICA source tree for both 32-bit and 64-bit. 8290 8291Implemented support to display an object count summary for the AML 8292Debugger 8293commands Object and Methods. 8294 8295Code and Data Size: Current and previous core subsystem library sizes are 8296shown below. These are the code and data sizes for the acpica.lib 8297produced 8298by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8299any ACPI driver or OSPM code. The debug version of the code includes the 8300debug output trace mechanism and has a much larger code and data size. 8301Note 8302that these values will vary depending on the efficiency of the compiler 8303and 8304the compiler options used during generation. 8305 8306 Previous Release: 8307 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 8308 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 8309 Current Release: 8310 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 8311 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 8312 8313 83142) iASL Compiler/Disassembler: 8315 8316Fixed a regression that appeared in the 20050708 version of the compiler 8317where an error message was inadvertently emitted for invocations of the 8318_OSI 8319reserved control method. 8320 8321---------------------------------------- 832208 July 2005. Summary of changes for version 20050708: 8323 83241) ACPI CA Core Subsystem: 8325 8326The use of the CPU stack in the debug version of the subsystem has been 8327considerably reduced. Previously, a debug structure was declared in every 8328function that used the debug macros. This structure has been removed in 8329favor of declaring the individual elements as parameters to the debug 8330functions. This reduces the cumulative stack use during nested execution 8331of 8332ACPI function calls at the cost of a small increase in the code size of 8333the 8334debug version of the subsystem. With assistance from Alexey Starikovskiy 8335and 8336Len Brown. 8337 8338Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 8339headers to define a macro that will return the current function name at 8340runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 8341by 8342the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 8343compiler-dependent header, the function name is saved on the CPU stack 8344(one 8345pointer per function.) This mechanism is used because apparently there 8346exists no standard ANSI-C defined macro that that returns the function 8347name. 8348 8349Redesigned and reimplemented the "Owner ID" mechanism used to track 8350namespace objects created/deleted by ACPI tables and control method 8351execution. A bitmap is now used to allocate and free the IDs, thus 8352solving 8353the wraparound problem present in the previous implementation. The size 8354of 8355the namespace node descriptor was reduced by 2 bytes as a result (Alexey 8356Starikovskiy). 8357 8358Removed the UINT32_BIT and UINT16_BIT types that were used for the 8359bitfield 8360flag definitions within the headers for the predefined ACPI tables. These 8361have been replaced by UINT8_BIT in order to increase the code portability 8362of 8363the subsystem. If the use of UINT8 remains a problem, we may be forced to 8364eliminate bitfields entirely because of a lack of portability. 8365 8366Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 8367This 8368is a frequently used function and this improvement increases the 8369performance 8370of the entire subsystem (Alexey Starikovskiy). 8371 8372Fixed several possible memory leaks and the inverse - premature object 8373deletion (Alexey Starikovskiy). 8374 8375Code and Data Size: Current and previous core subsystem library sizes are 8376shown below. These are the code and data sizes for the acpica.lib 8377produced 8378by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8379any ACPI driver or OSPM code. The debug version of the code includes the 8380debug output trace mechanism and has a much larger code and data size. 8381Note 8382that these values will vary depending on the efficiency of the compiler 8383and 8384the compiler options used during generation. 8385 8386 Previous Release: 8387 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 8388 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 8389 Current Release: 8390 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 8391 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 8392 8393---------------------------------------- 839424 June 2005. Summary of changes for version 20050624: 8395 83961) ACPI CA Core Subsystem: 8397 8398Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 8399the host-defined cache object. This allows the OSL implementation to 8400define 8401and type this object in any manner desired, simplifying the OSL 8402implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 8403Linux, and should be defined in the OS-specific header file for other 8404operating systems as required. 8405 8406Changed the interface to AcpiOsAcquireObject to directly return the 8407requested object as the function return (instead of ACPI_STATUS.) This 8408change was made for performance reasons, since this is the purpose of the 8409interface in the first place. AcpiOsAcquireObject is now similar to the 8410AcpiOsAllocate interface. 8411 8412Implemented a new AML debugger command named Businfo. This command 8413displays 8414information about all devices that have an associate _PRT object. The 8415_ADR, 8416_HID, _UID, and _CID are displayed for these devices. 8417 8418Modified the initialization sequence in AcpiInitializeSubsystem to call 8419the 8420OSL interface AcpiOslInitialize first, before any local initialization. 8421This 8422change was required because the global initialization now calls OSL 8423interfaces. 8424 8425Enhanced the Dump command to display the entire contents of Package 8426objects 8427(including all sub-objects and their values.) 8428 8429Restructured the code base to split some files because of size and/or 8430because the code logically belonged in a separate file. New files are 8431listed 8432below. All makefiles and project files included in the ACPI CA release 8433have 8434been updated. 8435 utilities/utcache.c /* Local cache interfaces */ 8436 utilities/utmutex.c /* Local mutex support */ 8437 utilities/utstate.c /* State object support */ 8438 interpreter/parser/psloop.c /* Main AML parse loop */ 8439 8440Code and Data Size: Current and previous core subsystem library sizes are 8441shown below. These are the code and data sizes for the acpica.lib 8442produced 8443by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8444any ACPI driver or OSPM code. The debug version of the code includes the 8445debug output trace mechanism and has a much larger code and data size. 8446Note 8447that these values will vary depending on the efficiency of the compiler 8448and 8449the compiler options used during generation. 8450 8451 Previous Release: 8452 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 8453 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 8454 Current Release: 8455 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 8456 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 8457 8458 84592) iASL Compiler/Disassembler: 8460 8461Fixed a regression introduced in version 20050513 where the use of a 8462Package 8463object within a Case() statement caused a compile time exception. The 8464original behavior has been restored (a Match() operator is emitted.) 8465 8466---------------------------------------- 846717 June 2005. Summary of changes for version 20050617: 8468 84691) ACPI CA Core Subsystem: 8470 8471Moved the object cache operations into the OS interface layer (OSL) to 8472allow 8473the host OS to handle these operations if desired (for example, the Linux 8474OSL will invoke the slab allocator). This support is optional; the 8475compile 8476time define ACPI_USE_LOCAL_CACHE may be used to utilize the original 8477cache 8478code in the ACPI CA core. The new OSL interfaces are shown below. See 8479utalloc.c for an example implementation, and acpiosxf.h for the exact 8480interface definitions. With assistance from Alexey Starikovskiy. 8481 AcpiOsCreateCache 8482 AcpiOsDeleteCache 8483 AcpiOsPurgeCache 8484 AcpiOsAcquireObject 8485 AcpiOsReleaseObject 8486 8487Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 8488return 8489and restore a flags parameter. This fits better with many OS lock models. 8490Note: the current execution state (interrupt handler or not) is no longer 8491passed to these interfaces. If necessary, the OSL must determine this 8492state 8493by itself, a simple and fast operation. With assistance from Alexey 8494Starikovskiy. 8495 8496Fixed a problem in the ACPI table handling where a valid XSDT was assumed 8497present if the revision of the RSDP was 2 or greater. According to the 8498ACPI 8499specification, the XSDT is optional in all cases, and the table manager 8500therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 8501Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs 8502contain 8503only the RSDT. 8504 8505Fixed an interpreter problem with the Mid() operator in the case of an 8506input 8507string where the resulting output string is of zero length. It now 8508correctly 8509returns a valid, null terminated string object instead of a string object 8510with a null pointer. 8511 8512Fixed a problem with the control method argument handling to allow a 8513store 8514to an Arg object that already contains an object of type Device. The 8515Device 8516object is now correctly overwritten. Previously, an error was returned. 8517 8518 8519Enhanced the debugger Find command to emit object values in addition to 8520the 8521found object pathnames. The output format is the same as the dump 8522namespace 8523command. 8524 8525Enhanced the debugger Set command. It now has the ability to set the 8526value 8527of any Named integer object in the namespace (Previously, only method 8528locals 8529and args could be set.) 8530 8531Code and Data Size: Current and previous core subsystem library sizes are 8532shown below. These are the code and data sizes for the acpica.lib 8533produced 8534by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8535any ACPI driver or OSPM code. The debug version of the code includes the 8536debug output trace mechanism and has a much larger code and data size. 8537Note 8538that these values will vary depending on the efficiency of the compiler 8539and 8540the compiler options used during generation. 8541 8542 Previous Release: 8543 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 8544 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 8545 Current Release: 8546 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 8547 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 8548 8549 85502) iASL Compiler/Disassembler: 8551 8552Fixed a regression in the disassembler where if/else/while constructs 8553were 8554output incorrectly. This problem was introduced in the previous release 8555(20050526). This problem also affected the single-step disassembly in the 8556debugger. 8557 8558Fixed a problem where compiling the reserved _OSI method would randomly 8559(but 8560rarely) produce compile errors. 8561 8562Enhanced the disassembler to emit compilable code in the face of 8563incorrect 8564AML resource descriptors. If the optional ResourceSourceIndex is present, 8565but the ResourceSource is not, do not emit the ResourceSourceIndex in the 8566disassembly. Otherwise, the resulting code cannot be compiled without 8567errors. 8568 8569---------------------------------------- 857026 May 2005. Summary of changes for version 20050526: 8571 85721) ACPI CA Core Subsystem: 8573 8574Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 8575the module level (not within a control method.) These opcodes are 8576executed 8577exactly once at the time the table is loaded. This type of code was legal 8578up 8579until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 8580in 8581order to provide backwards compatibility with earlier BIOS 8582implementations. 8583This eliminates the "Encountered executable code at module level" warning 8584that was previously generated upon detection of such code. 8585 8586Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 8587inadvertently be generated during the lookup of namespace objects in the 8588second pass parse of ACPI tables and control methods. It appears that 8589this 8590problem could occur during the resolution of forward references to 8591namespace 8592objects. 8593 8594Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 8595corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 8596allows the deadlock detection debug code to be compiled out in the normal 8597case, improving mutex performance (and overall subsystem performance) 8598considerably. 8599 8600Implemented a handful of miscellaneous fixes for possible memory leaks on 8601error conditions and error handling control paths. These fixes were 8602suggested by FreeBSD and the Coverity Prevent source code analysis tool. 8603 8604Added a check for a null RSDT pointer in AcpiGetFirmwareTable 8605(tbxfroot.c) 8606to prevent a fault in this error case. 8607 8608Code and Data Size: Current and previous core subsystem library sizes are 8609shown below. These are the code and data sizes for the acpica.lib 8610produced 8611by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8612any ACPI driver or OSPM code. The debug version of the code includes the 8613debug output trace mechanism and has a much larger code and data size. 8614Note 8615that these values will vary depending on the efficiency of the compiler 8616and 8617the compiler options used during generation. 8618 8619 Previous Release: 8620 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 8621 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 8622 Current Release: 8623 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 8624 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 8625 8626 86272) iASL Compiler/Disassembler: 8628 8629Implemented support to allow Type 1 and Type 2 ASL operators to appear at 8630the module level (not within a control method.) These operators will be 8631executed once at the time the table is loaded. This type of code was 8632legal 8633up until the release of ACPI 2.0B (2002) and is now supported by the iASL 8634compiler in order to provide backwards compatibility with earlier BIOS 8635ASL 8636code. 8637 8638The ACPI integer width (specified via the table revision ID or the -r 8639override, 32 or 64 bits) is now used internally during compile-time 8640constant 8641folding to ensure that constants are truncated to 32 bits if necessary. 8642Previously, the revision ID value was only emitted in the AML table 8643header. 8644 8645An error message is now generated for the Mutex and Method operators if 8646the 8647SyncLevel parameter is outside the legal range of 0 through 15. 8648 8649Fixed a problem with the Method operator ParameterTypes list handling 8650(ACPI 86513.0). Previously, more than 2 types or 2 arguments generated a syntax 8652error. 8653The actual underlying implementation of method argument typechecking is 8654still under development, however. 8655 8656---------------------------------------- 865713 May 2005. Summary of changes for version 20050513: 8658 86591) ACPI CA Core Subsystem: 8660 8661Implemented support for PCI Express root bridges -- added support for 8662device 8663PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 8664 8665The interpreter now automatically truncates incoming 64-bit constants to 866632 8667bits if currently executing out of a 32-bit ACPI table (Revision < 2). 8668This 8669also affects the iASL compiler constant folding. (Note: as per below, the 8670iASL compiler no longer allows 64-bit constants within 32-bit tables.) 8671 8672Fixed a problem where string and buffer objects with "static" pointers 8673(pointers to initialization data within an ACPI table) were not handled 8674consistently. The internal object copy operation now always copies the 8675data 8676to a newly allocated buffer, regardless of whether the source object is 8677static or not. 8678 8679Fixed a problem with the FromBCD operator where an implicit result 8680conversion was improperly performed while storing the result to the 8681target 8682operand. Since this is an "explicit conversion" operator, the implicit 8683conversion should never be performed on the output. 8684 8685Fixed a problem with the CopyObject operator where a copy to an existing 8686named object did not always completely overwrite the existing object 8687stored 8688at name. Specifically, a buffer-to-buffer copy did not delete the 8689existing 8690buffer. 8691 8692Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces 8693and 8694structs for consistency. 8695 8696Code and Data Size: Current and previous core subsystem library sizes are 8697shown below. These are the code and data sizes for the acpica.lib 8698produced 8699by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8700any ACPI driver or OSPM code. The debug version of the code includes the 8701debug output trace mechanism and has a much larger code and data size. 8702Note 8703that these values will vary depending on the efficiency of the compiler 8704and 8705the compiler options used during generation. 8706 8707 Previous Release: 8708 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 8709 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 8710 Current Release: (Same sizes) 8711 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 8712 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 8713 8714 87152) iASL Compiler/Disassembler: 8716 8717The compiler now emits a warning if an attempt is made to generate a 64- 8718bit 8719integer constant from within a 32-bit ACPI table (Revision < 2). The 8720integer 8721is truncated to 32 bits. 8722 8723Fixed a problem with large package objects: if the static length of the 8724package is greater than 255, the "variable length package" opcode is 8725emitted. Previously, this caused an error. This requires an update to the 8726ACPI spec, since it currently (incorrectly) states that packages larger 8727than 8728255 elements are not allowed. 8729 8730The disassembler now correctly handles variable length packages and 8731packages 8732larger than 255 elements. 8733 8734---------------------------------------- 873508 April 2005. Summary of changes for version 20050408: 8736 87371) ACPI CA Core Subsystem: 8738 8739Fixed three cases in the interpreter where an "index" argument to an ASL 8740function was still (internally) 32 bits instead of the required 64 bits. 8741This was the Index argument to the Index, Mid, and Match operators. 8742 8743The "strupr" function is now permanently local (AcpiUtStrupr), since this 8744is 8745not a POSIX-defined function and not present in most kernel-level C 8746libraries. All references to the C library strupr function have been 8747removed 8748from the headers. 8749 8750Completed the deployment of static functions/prototypes. All prototypes 8751with 8752the static attribute have been moved from the headers to the owning C 8753file. 8754 8755Implemented an extract option (-e) for the AcpiBin utility (AML binary 8756utility). This option allows the utility to extract individual ACPI 8757tables 8758from the output of AcpiDmp. It provides the same functionality of the 8759acpixtract.pl perl script without the worry of setting the correct perl 8760options. AcpiBin runs on Windows and has not yet been generated/validated 8761in 8762the Linux/Unix environment (but should be soon). 8763 8764Updated and fixed the table dump option for AcpiBin (-d). This option 8765converts a single ACPI table to a hex/ascii file, similar to the output 8766of 8767AcpiDmp. 8768 8769Code and Data Size: Current and previous core subsystem library sizes are 8770shown below. These are the code and data sizes for the acpica.lib 8771produced 8772by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8773any ACPI driver or OSPM code. The debug version of the code includes the 8774debug output trace mechanism and has a much larger code and data size. 8775Note 8776that these values will vary depending on the efficiency of the compiler 8777and 8778the compiler options used during generation. 8779 8780 Previous Release: 8781 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 8782 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 8783 Current Release: 8784 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 8785 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 8786 8787 87882) iASL Compiler/Disassembler: 8789 8790Disassembler fix: Added a check to ensure that the table length found in 8791the 8792ACPI table header within the input file is not longer than the actual 8793input 8794file size. This indicates some kind of file or table corruption. 8795 8796---------------------------------------- 879729 March 2005. Summary of changes for version 20050329: 8798 87991) ACPI CA Core Subsystem: 8800 8801An error is now generated if an attempt is made to create a Buffer Field 8802of 8803length zero (A CreateField with a length operand of zero.) 8804 8805The interpreter now issues a warning whenever executable code at the 8806module 8807level is detected during ACPI table load. This will give some idea of the 8808prevalence of this type of code. 8809 8810Implemented support for references to named objects (other than control 8811methods) within package objects. 8812 8813Enhanced package object output for the debug object. Package objects are 8814now 8815completely dumped, showing all elements. 8816 8817Enhanced miscellaneous object output for the debug object. Any object can 8818now be written to the debug object (for example, a device object can be 8819written, and the type of the object will be displayed.) 8820 8821The "static" qualifier has been added to all local functions across both 8822the 8823core subsystem and the iASL compiler. 8824 8825The number of "long" lines (> 80 chars) within the source has been 8826significantly reduced, by about 1/3. 8827 8828Cleaned up all header files to ensure that all CA/iASL functions are 8829prototyped (even static functions) and the formatting is consistent. 8830 8831Two new header files have been added, acopcode.h and acnames.h. 8832 8833Removed several obsolete functions that were no longer used. 8834 8835Code and Data Size: Current and previous core subsystem library sizes are 8836shown below. These are the code and data sizes for the acpica.lib 8837produced 8838by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8839any ACPI driver or OSPM code. The debug version of the code includes the 8840debug output trace mechanism and has a much larger code and data size. 8841Note 8842that these values will vary depending on the efficiency of the compiler 8843and 8844the compiler options used during generation. 8845 8846 Previous Release: 8847 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8848 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 8849 Current Release: 8850 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 8851 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 8852 8853 8854 88552) iASL Compiler/Disassembler: 8856 8857Fixed a problem with the resource descriptor generation/support. For the 8858ResourceSourceIndex and the ResourceSource fields, both must be present, 8859or 8860both must be not present - can't have one without the other. 8861 8862The compiler now returns non-zero from the main procedure if any errors 8863have 8864occurred during the compilation. 8865 8866 8867---------------------------------------- 886809 March 2005. Summary of changes for version 20050309: 8869 88701) ACPI CA Core Subsystem: 8871 8872The string-to-buffer implicit conversion code has been modified again 8873after 8874a change to the ACPI specification. In order to match the behavior of 8875the 8876other major ACPI implementation, the target buffer is no longer truncated 8877if 8878the source string is smaller than an existing target buffer. This change 8879requires an update to the ACPI spec, and should eliminate the recent 8880AE_AML_BUFFER_LIMIT issues. 8881 8882The "implicit return" support was rewritten to a new algorithm that 8883solves 8884the general case. Rather than attempt to determine when a method is about 8885to 8886exit, the result of every ASL operator is saved momentarily until the 8887very 8888next ASL operator is executed. Therefore, no matter how the method exits, 8889there will always be a saved implicit return value. This feature is only 8890enabled with the AcpiGbl_EnableInterpreterSlack flag, and should 8891eliminate 8892AE_AML_NO_RETURN_VALUE errors when enabled. 8893 8894Implemented implicit conversion support for the predicate (operand) of 8895the 8896If, Else, and While operators. String and Buffer arguments are 8897automatically 8898converted to Integers. 8899 8900Changed the string-to-integer conversion behavior to match the new ACPI 8901errata: "If no integer object exists, a new integer is created. The ASCII 8902string is interpreted as a hexadecimal constant. Each string character is 8903interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 8904with the first character as the most significant digit, and ending with 8905the 8906first non-hexadecimal character or end-of-string." This means that the 8907first 8908non-hex character terminates the conversion and this is the code that was 8909changed. 8910 8911Fixed a problem where the ObjectType operator would fail (fault) when 8912used 8913on an Index of a Package which pointed to a null package element. The 8914operator now properly returns zero (Uninitialized) in this case. 8915 8916Fixed a problem where the While operator used excessive memory by not 8917properly popping the result stack during execution. There was no memory 8918leak 8919after execution, however. (Code provided by Valery Podrezov.) 8920 8921Fixed a problem where references to control methods within Package 8922objects 8923caused the method to be invoked, instead of producing a reference object 8924pointing to the method. 8925 8926Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) 8927to 8928improve performance and reduce code size. (Code provided by Alexey 8929Starikovskiy.) 8930 8931Code and Data Size: Current and previous core subsystem library sizes are 8932shown below. These are the code and data sizes for the acpica.lib 8933produced 8934by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8935any ACPI driver or OSPM code. The debug version of the code includes the 8936debug output trace mechanism and has a much larger code and data size. 8937Note 8938that these values will vary depending on the efficiency of the compiler 8939and 8940the compiler options used during generation. 8941 8942 Previous Release: 8943 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8944 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 8945 Current Release: 8946 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8947 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 8948 8949 89502) iASL Compiler/Disassembler: 8951 8952Fixed a problem with the Return operator with no arguments. Since the AML 8953grammar for the byte encoding requires an operand for the Return opcode, 8954the 8955compiler now emits a Return(Zero) for this case. An ACPI specification 8956update has been written for this case. 8957 8958For tables other than the DSDT, namepath optimization is automatically 8959disabled. This is because SSDTs can be loaded anywhere in the namespace, 8960the 8961compiler has no knowledge of where, and thus cannot optimize namepaths. 8962 8963Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 8964inadvertently omitted from the ACPI specification, and will require an 8965update to the spec. 8966 8967The source file scan for ASCII characters is now optional (-a). This 8968change 8969was made because some vendors place non-ascii characters within comments. 8970However, the scan is simply a brute-force byte compare to ensure all 8971characters in the file are in the range 0x00 to 0x7F. 8972 8973Fixed a problem with the CondRefOf operator where the compiler was 8974inappropriately checking for the existence of the target. Since the point 8975of 8976the operator is to check for the existence of the target at run-time, the 8977compiler no longer checks for the target existence. 8978 8979Fixed a problem where errors generated from the internal AML interpreter 8980during constant folding were not handled properly, causing a fault. 8981 8982Fixed a problem with overly aggressive range checking for the Stall 8983operator. The valid range (max 255) is now only checked if the operand is 8984of 8985type Integer. All other operand types cannot be statically checked. 8986 8987Fixed a problem where control method references within the RefOf, 8988DeRefOf, 8989and ObjectType operators were not treated properly. They are now treated 8990as 8991actual references, not method invocations. 8992 8993Fixed and enhanced the "list namespace" option (-ln). This option was 8994broken 8995a number of releases ago. 8996 8997Improved error handling for the Field, IndexField, and BankField 8998operators. 8999The compiler now cleanly reports and recovers from errors in the field 9000component (FieldUnit) list. 9001 9002Fixed a disassembler problem where the optional ResourceDescriptor fields 9003TRS and TTP were not always handled correctly. 9004 9005Disassembler - Comments in output now use "//" instead of "/*" 9006 9007---------------------------------------- 900828 February 2005. Summary of changes for version 20050228: 9009 90101) ACPI CA Core Subsystem: 9011 9012Fixed a problem where the result of an Index() operator (an object 9013reference) must increment the reference count on the target object for 9014the 9015life of the object reference. 9016 9017Implemented AML Interpreter and Debugger support for the new ACPI 3.0 9018Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 9019WordSpace 9020resource descriptors. 9021 9022Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 9023Space Descriptor" string, indicating interpreter support for the 9024descriptors 9025above. 9026 9027Implemented header support for the new ACPI 3.0 FADT flag bits. 9028 9029Implemented header support for the new ACPI 3.0 PCI Express bits for the 9030PM1 9031status/enable registers. 9032 9033Updated header support for the MADT processor local Apic struct and MADT 9034platform interrupt source struct for new ACPI 3.0 fields. 9035 9036Implemented header support for the SRAT and SLIT ACPI tables. 9037 9038Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 9039flag 9040at runtime. 9041 9042Code and Data Size: Current and previous core subsystem library sizes are 9043shown below. These are the code and data sizes for the acpica.lib 9044produced 9045by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9046any ACPI driver or OSPM code. The debug version of the code includes the 9047debug output trace mechanism and has a much larger code and data size. 9048Note 9049that these values will vary depending on the efficiency of the compiler 9050and 9051the compiler options used during generation. 9052 9053 Previous Release: 9054 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 9055 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 9056 Current Release: 9057 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 9058 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 9059 9060 90612) iASL Compiler/Disassembler: 9062 9063Fixed a problem with the internal 64-bit String-to-integer conversion 9064with 9065strings less than two characters long. 9066 9067Fixed a problem with constant folding where the result of the Index() 9068operator can not be considered a constant. This means that Index() cannot 9069be 9070a type3 opcode and this will require an update to the ACPI specification. 9071 9072Disassembler: Implemented support for the TTP, MTP, and TRS resource 9073descriptor fields. These fields were inadvertently ignored and not output 9074in 9075the disassembly of the resource descriptor. 9076 9077 9078 ---------------------------------------- 907911 February 2005. Summary of changes for version 20050211: 9080 90811) ACPI CA Core Subsystem: 9082 9083Implemented ACPI 3.0 support for implicit conversion within the Match() 9084operator. MatchObjects can now be of type integer, buffer, or string 9085instead 9086of just type integer. Package elements are implicitly converted to the 9087type 9088of the MatchObject. This change aligns the behavior of Match() with the 9089behavior of the other logical operators (LLess(), etc.) It also requires 9090an 9091errata change to the ACPI specification as this support was intended for 9092ACPI 3.0, but was inadvertently omitted. 9093 9094Fixed a problem with the internal implicit "to buffer" conversion. 9095Strings 9096that are converted to buffers will cause buffer truncation if the string 9097is 9098smaller than the target buffer. Integers that are converted to buffers 9099will 9100not cause buffer truncation, only zero extension (both as per the ACPI 9101spec.) The problem was introduced when code was added to truncate the 9102buffer, but this should not be performed in all cases, only the string 9103case. 9104 9105Fixed a problem with the Buffer and Package operators where the 9106interpreter 9107would get confused if two such operators were used as operands to an ASL 9108operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 9109stack was not being popped after the execution of these operators, 9110resulting 9111in an AE_NO_RETURN_VALUE exception. 9112 9113Fixed a problem with constructs of the form Store(Index(...),...). The 9114reference object returned from Index was inadvertently resolved to an 9115actual 9116value. This problem was introduced in version 20050114 when the behavior 9117of 9118Store() was modified to restrict the object types that can be used as the 9119source operand (to match the ACPI specification.) 9120 9121Reduced excessive stack use within the AcpiGetObjectInfo procedure. 9122 9123Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 9124 9125Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 9126 9127Code and Data Size: Current and previous core subsystem library sizes are 9128shown below. These are the code and data sizes for the acpica.lib 9129produced 9130by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9131any ACPI driver or OSPM code. The debug version of the code includes the 9132debug output trace mechanism and has a much larger code and data size. 9133Note 9134that these values will vary depending on the efficiency of the compiler 9135and 9136the compiler options used during generation. 9137 9138 Previous Release: 9139 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 9140 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 9141 Current Release: 9142 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 9143 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 9144 9145 91462) iASL Compiler/Disassembler: 9147 9148Fixed a code generation problem in the constant folding optimization code 9149where incorrect code was generated if a constant was reduced to a buffer 9150object (i.e., a reduced type 5 opcode.) 9151 9152Fixed a typechecking problem for the ToBuffer operator. Caused by an 9153incorrect return type in the internal opcode information table. 9154 9155---------------------------------------- 915625 January 2005. Summary of changes for version 20050125: 9157 91581) ACPI CA Core Subsystem: 9159 9160Fixed a recently introduced problem with the Global Lock where the 9161underlying semaphore was not created. This problem was introduced in 9162version 20050114, and caused an AE_AML_NO_OPERAND exception during an 9163Acquire() operation on _GL. 9164 9165The local object cache is now optional, and is disabled by default. Both 9166AcpiExec and the iASL compiler enable the cache because they run in user 9167mode and this enhances their performance. #define 9168ACPI_ENABLE_OBJECT_CACHE 9169to enable the local cache. 9170 9171Fixed an issue in the internal function AcpiUtEvaluateObject concerning 9172the 9173optional "implicit return" support where an error was returned if no 9174return 9175object was expected, but one was implicitly returned. AE_OK is now 9176returned 9177in this case and the implicitly returned object is deleted. 9178AcpiUtEvaluateObject is only occasionally used, and only to execute 9179reserved 9180methods such as _STA and _INI where the return type is known up front. 9181 9182Fixed a few issues with the internal convert-to-integer code. It now 9183returns 9184an error if an attempt is made to convert a null string, a string of only 9185blanks/tabs, or a zero-length buffer. This affects both implicit 9186conversion 9187and explicit conversion via the ToInteger() operator. 9188 9189The internal debug code in AcpiUtAcquireMutex has been commented out. It 9190is 9191not needed for normal operation and should increase the performance of 9192the 9193entire subsystem. The code remains in case it is needed for debug 9194purposes 9195again. 9196 9197The AcpiExec source and makefile are included in the Unix/Linux package 9198for 9199the first time. 9200 9201Code and Data Size: Current and previous core subsystem library sizes are 9202shown below. These are the code and data sizes for the acpica.lib 9203produced 9204by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9205any ACPI driver or OSPM code. The debug version of the code includes the 9206debug output trace mechanism and has a much larger code and data size. 9207Note 9208that these values will vary depending on the efficiency of the compiler 9209and 9210the compiler options used during generation. 9211 9212 Previous Release: 9213 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 9214 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 9215 Current Release: 9216 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 9217 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 9218 92192) iASL Compiler/Disassembler: 9220 9221Switch/Case support: A warning is now issued if the type of the Switch 9222value 9223cannot be determined at compile time. For example, Switch(Arg0) will 9224generate the warning, and the type is assumed to be an integer. As per 9225the 9226ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 9227the 9228warning. 9229 9230Switch/Case support: Implemented support for buffer and string objects as 9231the switch value. This is an ACPI 3.0 feature, now that LEqual supports 9232buffers and strings. 9233 9234Switch/Case support: The emitted code for the LEqual() comparisons now 9235uses 9236the switch value as the first operand, not the second. The case value is 9237now 9238the second operand, and this allows the case value to be implicitly 9239converted to the type of the switch value, not the other way around. 9240 9241Switch/Case support: Temporary variables are now emitted immediately 9242within 9243the control method, not at the global level. This means that there are 9244now 924536 temps available per-method, not 36 temps per-module as was the case 9246with 9247the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 9248 9249---------------------------------------- 925014 January 2005. Summary of changes for version 20050114: 9251 9252Added 2005 copyright to all module headers. This affects every module in 9253the core subsystem, iASL compiler, and the utilities. 9254 92551) ACPI CA Core Subsystem: 9256 9257Fixed an issue with the String-to-Buffer conversion code where the string 9258null terminator was not included in the buffer after conversion, but 9259there 9260is existing ASL that assumes the string null terminator is included. This 9261is 9262the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 9263introduced in the previous version when the code was updated to correctly 9264set the converted buffer size as per the ACPI specification. The ACPI 9265spec 9266is ambiguous and will be updated to specify that the null terminator must 9267be 9268included in the converted buffer. This also affects the ToBuffer() ASL 9269operator. 9270 9271Fixed a problem with the Mid() ASL/AML operator where it did not work 9272correctly on Buffer objects. Newly created sub-buffers were not being 9273marked 9274as initialized. 9275 9276 9277Fixed a problem in AcpiTbFindTable where incorrect string compares were 9278performed on the OemId and OemTableId table header fields. These fields 9279are 9280not null terminated, so strncmp is now used instead of strcmp. 9281 9282Implemented a restriction on the Store() ASL/AML operator to align the 9283behavior with the ACPI specification. Previously, any object could be 9284used 9285as the source operand. Now, the only objects that may be used are 9286Integers, 9287Buffers, Strings, Packages, Object References, and DDB Handles. If 9288necessary, the original behavior can be restored by enabling the 9289EnableInterpreterSlack flag. 9290 9291Enhanced the optional "implicit return" support to allow an implicit 9292return 9293value from methods that are invoked externally via the AcpiEvaluateObject 9294interface. This enables implicit returns from the _STA and _INI methods, 9295for example. 9296 9297Changed the Revision() ASL/AML operator to return the current version of 9298the 9299AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 9300returned 9301the supported ACPI version (This is the function of the _REV method). 9302 9303Updated the _REV predefined method to return the currently supported 9304version 9305of ACPI, now 3. 9306 9307Implemented batch mode option for the AcpiExec utility (-b). 9308 9309Code and Data Size: Current and previous core subsystem library sizes are 9310shown below. These are the code and data sizes for the acpica.lib 9311produced 9312by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9313any ACPI driver or OSPM code. The debug version of the code includes the 9314debug output trace mechanism and has a much larger code and data size. 9315Note 9316that these values will vary depending on the efficiency of the compiler 9317and 9318the compiler options used during generation. 9319 9320 Previous Release: 9321 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 9322 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 9323 Current Release: 9324 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 9325 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 9326 9327---------------------------------------- 932810 December 2004. Summary of changes for version 20041210: 9329 9330ACPI 3.0 support is nearing completion in both the iASL compiler and the 9331ACPI CA core subsystem. 9332 93331) ACPI CA Core Subsystem: 9334 9335Fixed a problem in the ToDecimalString operator where the resulting 9336string 9337length was incorrectly calculated. The length is now calculated exactly, 9338eliminating incorrect AE_STRING_LIMIT exceptions. 9339 9340Fixed a problem in the ToHexString operator to allow a maximum 200 9341character 9342string to be produced. 9343 9344Fixed a problem in the internal string-to-buffer and buffer-to-buffer 9345copy 9346routine where the length of the resulting buffer was not truncated to the 9347new size (if the target buffer already existed). 9348 9349Code and Data Size: Current and previous core subsystem library sizes are 9350shown below. These are the code and data sizes for the acpica.lib 9351produced 9352by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9353any ACPI driver or OSPM code. The debug version of the code includes the 9354debug output trace mechanism and has a much larger code and data size. 9355Note 9356that these values will vary depending on the efficiency of the compiler 9357and 9358the compiler options used during generation. 9359 9360 Previous Release: 9361 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 9362 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 9363 Current Release: 9364 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 9365 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 9366 9367 93682) iASL Compiler/Disassembler: 9369 9370Implemented the new ACPI 3.0 resource template macros - DWordSpace, 9371ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 9372Includes support in the disassembler. 9373 9374Implemented support for the new (ACPI 3.0) parameter to the Register 9375macro, 9376AccessSize. 9377 9378Fixed a problem where the _HE resource name for the Interrupt macro was 9379referencing bit 0 instead of bit 1. 9380 9381Implemented check for maximum 255 interrupts in the Interrupt macro. 9382 9383Fixed a problem with the predefined resource descriptor names where 9384incorrect AML code was generated if the offset within the resource buffer 9385was 0 or 1. The optimizer shortened the AML code to a single byte opcode 9386but did not update the surrounding package lengths. 9387 9388Changes to the Dma macro: All channels within the channel list must be 9389in 9390the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 9391optional (default is BusMaster). 9392 9393Implemented check for maximum 7 data bytes for the VendorShort macro. 9394 9395The ReadWrite parameter is now optional for the Memory32 and similar 9396macros. 9397 9398---------------------------------------- 939903 December 2004. Summary of changes for version 20041203: 9400 94011) ACPI CA Core Subsystem: 9402 9403The low-level field insertion/extraction code (exfldio) has been 9404completely 9405rewritten to eliminate unnecessary complexity, bugs, and boundary 9406conditions. 9407 9408Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 9409ToDecimalString 9410operators where the input operand could be inadvertently deleted if no 9411conversion was necessary (e.g., if the input to ToInteger was an Integer 9412object.) 9413 9414Fixed a problem with the ToDecimalString and ToHexString where an 9415incorrect 9416exception code was returned if the resulting string would be > 200 chars. 9417AE_STRING_LIMIT is now returned. 9418 9419Fixed a problem with the Concatenate operator where AE_OK was always 9420returned, even if the operation failed. 9421 9422Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 9423semaphores to be allocated. 9424 9425Code and Data Size: Current and previous core subsystem library sizes are 9426shown below. These are the code and data sizes for the acpica.lib 9427produced 9428by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9429any ACPI driver or OSPM code. The debug version of the code includes the 9430debug output trace mechanism and has a much larger code and data size. 9431Note 9432that these values will vary depending on the efficiency of the compiler 9433and 9434the compiler options used during generation. 9435 9436 Previous Release: 9437 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 9438 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 9439 Current Release: 9440 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 9441 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 9442 9443 94442) iASL Compiler/Disassembler: 9445 9446Fixed typechecking for the ObjectType and SizeOf operators. Problem was 9447recently introduced in 20041119. 9448 9449Fixed a problem with the ToUUID macro where the upper nybble of each 9450buffer 9451byte was inadvertently set to zero. 9452 9453---------------------------------------- 945419 November 2004. Summary of changes for version 20041119: 9455 94561) ACPI CA Core Subsystem: 9457 9458Fixed a problem in the internal ConvertToInteger routine where new 9459integers 9460were not truncated to 32 bits for 32-bit ACPI tables. This routine 9461converts 9462buffers and strings to integers. 9463 9464Implemented support to store a value to an Index() on a String object. 9465This 9466is an ACPI 2.0 feature that had not yet been implemented. 9467 9468Implemented new behavior for storing objects to individual package 9469elements 9470(via the Index() operator). The previous behavior was to invoke the 9471implicit 9472conversion rules if an object was already present at the index. The new 9473behavior is to simply delete any existing object and directly store the 9474new 9475object. Although the ACPI specification seems unclear on this subject, 9476other 9477ACPI implementations behave in this manner. (This is the root of the 9478AE_BAD_HEX_CONSTANT issue.) 9479 9480Modified the RSDP memory scan mechanism to support the extended checksum 9481for 9482ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 9483RSDP signature is found with a valid checksum. 9484 9485Code and Data Size: Current and previous core subsystem library sizes are 9486shown below. These are the code and data sizes for the acpica.lib 9487produced 9488by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9489any ACPI driver or OSPM code. The debug version of the code includes the 9490debug output trace mechanism and has a much larger code and data size. 9491Note 9492that these values will vary depending on the efficiency of the compiler 9493and 9494the compiler options used during generation. 9495 9496 Previous Release: 9497 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 9498 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 9499 Current Release: 9500 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 9501 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 9502 9503 95042) iASL Compiler/Disassembler: 9505 9506Fixed a missing semicolon in the aslcompiler.y file. 9507 9508---------------------------------------- 950905 November 2004. Summary of changes for version 20041105: 9510 95111) ACPI CA Core Subsystem: 9512 9513Implemented support for FADT revision 2. This was an interim table 9514(between 9515ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 9516 9517Implemented optional support to allow uninitialized LocalX and ArgX 9518variables in a control method. The variables are initialized to an 9519Integer 9520object with a value of zero. This support is enabled by setting the 9521AcpiGbl_EnableInterpreterSlack flag to TRUE. 9522 9523Implemented support for Integer objects for the SizeOf operator. Either 95244 9525or 8 is returned, depending on the current integer size (32-bit or 64- 9526bit, 9527depending on the parent table revision). 9528 9529Fixed a problem in the implementation of the SizeOf and ObjectType 9530operators 9531where the operand was resolved to a value too early, causing incorrect 9532return values for some objects. 9533 9534Fixed some possible memory leaks during exceptional conditions. 9535 9536Code and Data Size: Current and previous core subsystem library sizes are 9537shown below. These are the code and data sizes for the acpica.lib 9538produced 9539by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9540any ACPI driver or OSPM code. The debug version of the code includes the 9541debug output trace mechanism and has a much larger code and data size. 9542Note 9543that these values will vary depending on the efficiency of the compiler 9544and 9545the compiler options used during generation. 9546 9547 Previous Release: 9548 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 9549 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 9550 Current Release: 9551 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 9552 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 9553 9554 95552) iASL Compiler/Disassembler: 9556 9557Implemented support for all ACPI 3.0 reserved names and methods. 9558 9559Implemented all ACPI 3.0 grammar elements in the front-end, including 9560support for semicolons. 9561 9562Implemented the ACPI 3.0 Function() and ToUUID() macros 9563 9564Fixed a problem in the disassembler where a Scope() operator would not be 9565emitted properly if the target of the scope was in another table. 9566 9567---------------------------------------- 956815 October 2004. Summary of changes for version 20041015: 9569 9570Note: ACPI CA is currently undergoing an in-depth and complete formal 9571evaluation to test/verify the following areas. Other suggestions are 9572welcome. This will result in an increase in the frequency of releases and 9573the number of bug fixes in the next few months. 9574 - Functional tests for all ASL/AML operators 9575 - All implicit/explicit type conversions 9576 - Bit fields and operation regions 9577 - 64-bit math support and 32-bit-only "truncated" math support 9578 - Exceptional conditions, both compiler and interpreter 9579 - Dynamic object deletion and memory leaks 9580 - ACPI 3.0 support when implemented 9581 - External interfaces to the ACPI subsystem 9582 9583 95841) ACPI CA Core Subsystem: 9585 9586Fixed two alignment issues on 64-bit platforms - within debug statements 9587in 9588AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 9589Address 9590field within the non-aligned ACPI generic address structure. 9591 9592Fixed a problem in the Increment and Decrement operators where incorrect 9593operand resolution could result in the inadvertent modification of the 9594original integer when the integer is passed into another method as an 9595argument and the arg is then incremented/decremented. 9596 9597Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 9598bit 9599BCD number were truncated during conversion. 9600 9601Fixed a problem in the ToDecimal operator where the length of the 9602resulting 9603string could be set incorrectly too long if the input operand was a 9604Buffer 9605object. 9606 9607Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 9608(0) 9609within a buffer would prematurely terminate a compare between buffer 9610objects. 9611 9612Added a check for string overflow (>200 characters as per the ACPI 9613specification) during the Concatenate operator with two string operands. 9614 9615Code and Data Size: Current and previous core subsystem library sizes are 9616shown below. These are the code and data sizes for the acpica.lib 9617produced 9618by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9619any ACPI driver or OSPM code. The debug version of the code includes the 9620debug output trace mechanism and has a much larger code and data size. 9621Note 9622that these values will vary depending on the efficiency of the compiler 9623and 9624the compiler options used during generation. 9625 9626 Previous Release: 9627 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 9628 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 9629 Current Release: 9630 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 9631 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 9632 9633 9634 96352) iASL Compiler/Disassembler: 9636 9637Allow the use of the ObjectType operator on uninitialized Locals and Args 9638(returns 0 as per the ACPI specification). 9639 9640Fixed a problem where the compiler would fault if there was a syntax 9641error 9642in the FieldName of all of the various CreateXXXField operators. 9643 9644Disallow the use of lower case letters within the EISAID macro, as per 9645the 9646ACPI specification. All EISAID strings must be of the form "UUUNNNN" 9647Where 9648U is an uppercase letter and N is a hex digit. 9649 9650 9651---------------------------------------- 965206 October 2004. Summary of changes for version 20041006: 9653 96541) ACPI CA Core Subsystem: 9655 9656Implemented support for the ACPI 3.0 Timer operator. This ASL function 9657implements a 64-bit timer with 100 nanosecond granularity. 9658 9659Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 9660implement the ACPI 3.0 Timer operator. This allows the host OS to 9661implement 9662the timer with the best clock available. Also, it keeps the core 9663subsystem 9664out of the clock handling business, since the host OS (usually) performs 9665this function. 9666 9667Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 9668functions use a 64-bit address which is part of the packed ACPI Generic 9669Address Structure. Since the structure is non-aligned, the alignment 9670macros 9671are now used to extract the address to a local variable before use. 9672 9673Fixed a problem where the ToInteger operator assumed all input strings 9674were 9675hexadecimal. The operator now handles both decimal strings and hex 9676strings 9677(prefixed with "0x"). 9678 9679Fixed a problem where the string length in the string object created as a 9680result of the internal ConvertToString procedure could be incorrect. This 9681potentially affected all implicit conversions and also the 9682ToDecimalString 9683and ToHexString operators. 9684 9685Fixed two problems in the ToString operator. If the length parameter was 9686zero, an incorrect string object was created and the value of the input 9687length parameter was inadvertently changed from zero to Ones. 9688 9689Fixed a problem where the optional ResourceSource string in the 9690ExtendedIRQ 9691resource macro was ignored. 9692 9693Simplified the interfaces to the internal division functions, reducing 9694code 9695size and complexity. 9696 9697Code and Data Size: Current and previous core subsystem library sizes are 9698shown below. These are the code and data sizes for the acpica.lib 9699produced 9700by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9701any ACPI driver or OSPM code. The debug version of the code includes the 9702debug output trace mechanism and has a much larger code and data size. 9703Note 9704that these values will vary depending on the efficiency of the compiler 9705and 9706the compiler options used during generation. 9707 9708 Previous Release: 9709 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 9710 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 9711 Current Release: 9712 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 9713 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 9714 9715 97162) iASL Compiler/Disassembler: 9717 9718Implemented support for the ACPI 3.0 Timer operator. 9719 9720Fixed a problem where the Default() operator was inadvertently ignored in 9721a 9722Switch/Case block. This was a problem in the translation of the Switch 9723statement to If...Else pairs. 9724 9725Added support to allow a standalone Return operator, with no parentheses 9726(or 9727operands). 9728 9729Fixed a problem with code generation for the ElseIf operator where the 9730translated Else...If parse tree was improperly constructed leading to the 9731loss of some code. 9732 9733---------------------------------------- 973422 September 2004. Summary of changes for version 20040922: 9735 97361) ACPI CA Core Subsystem: 9737 9738Fixed a problem with the implementation of the LNot() operator where 9739"Ones" 9740was not returned for the TRUE case. Changed the code to return Ones 9741instead 9742of (!Arg) which was usually 1. This change affects iASL constant folding 9743for 9744this operator also. 9745 9746Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was 9747not 9748initialized properly -- Now zero the entire buffer in this case where the 9749buffer already exists. 9750 9751Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 9752Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 9753related code considerably. This will require changes/updates to all OS 9754interface layers (OSLs.) 9755 9756Implemented a new external interface, AcpiInstallExceptionHandler, to 9757allow 9758a system exception handler to be installed. This handler is invoked upon 9759any 9760run-time exception that occurs during control method execution. 9761 9762Added support for the DSDT in AcpiTbFindTable. This allows the 9763DataTableRegion() operator to access the local copy of the DSDT. 9764 9765Code and Data Size: Current and previous core subsystem library sizes are 9766shown below. These are the code and data sizes for the acpica.lib 9767produced 9768by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9769any ACPI driver or OSPM code. The debug version of the code includes the 9770debug output trace mechanism and has a much larger code and data size. 9771Note 9772that these values will vary depending on the efficiency of the compiler 9773and 9774the compiler options used during generation. 9775 9776 Previous Release: 9777 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 9778 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 9779 Current Release: 9780 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 9781 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 9782 9783 97842) iASL Compiler/Disassembler: 9785 9786Fixed a problem with constant folding and the LNot operator. LNot was 9787returning 1 in the TRUE case, not Ones as per the ACPI specification. 9788This 9789could result in the generation of an incorrect folded/reduced constant. 9790 9791End-Of-File is now allowed within a "//"-style comment. A parse error no 9792longer occurs if such a comment is at the very end of the input ASL 9793source 9794file. 9795 9796Implemented the "-r" option to override the Revision in the table header. 9797The initial use of this option will be to simplify the evaluation of the 9798AML 9799interpreter by allowing a single ASL source module to be compiled for 9800either 980132-bit or 64-bit integers. 9802 9803 9804---------------------------------------- 980527 August 2004. Summary of changes for version 20040827: 9806 98071) ACPI CA Core Subsystem: 9808 9809- Implemented support for implicit object conversion in the non-numeric 9810logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, 9811and 9812LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 9813the second operand is implicitly converted on the fly to match the type 9814of 9815the first operand. For example: 9816 9817 LEqual (Source1, Source2) 9818 9819Source1 and Source2 must each evaluate to an integer, a string, or a 9820buffer. 9821The data type of Source1 dictates the required type of Source2. Source2 9822is 9823implicitly converted if necessary to match the type of Source1. 9824 9825- Updated and corrected the behavior of the string conversion support. 9826The 9827rules concerning conversion of buffers to strings (according to the ACPI 9828specification) are as follows: 9829 9830ToDecimalString - explicit byte-wise conversion of buffer to string of 9831decimal values (0-255) separated by commas. ToHexString - explicit byte- 9832wise 9833conversion of buffer to string of hex values (0-FF) separated by commas. 9834ToString - explicit byte-wise conversion of buffer to string. Byte-by- 9835byte 9836copy with no transform except NULL terminated. Any other implicit buffer- 9837to- 9838string conversion - byte-wise conversion of buffer to string of hex 9839values 9840(0-FF) separated by spaces. 9841 9842- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 9843 9844- Fixed a problem in AcpiNsGetPathnameLength where the returned length 9845was 9846one byte too short in the case of a node in the root scope. This could 9847cause a fault during debug output. 9848 9849- Code and Data Size: Current and previous core subsystem library sizes 9850are 9851shown below. These are the code and data sizes for the acpica.lib 9852produced 9853by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9854any ACPI driver or OSPM code. The debug version of the code includes the 9855debug output trace mechanism and has a much larger code and data size. 9856Note 9857that these values will vary depending on the efficiency of the compiler 9858and 9859the compiler options used during generation. 9860 9861 Previous Release: 9862 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 9863 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 9864 Current Release: 9865 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 9866 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 9867 9868 98692) iASL Compiler/Disassembler: 9870 9871- Fixed a Linux generation error. 9872 9873 9874---------------------------------------- 987516 August 2004. Summary of changes for version 20040816: 9876 98771) ACPI CA Core Subsystem: 9878 9879Designed and implemented support within the AML interpreter for the so- 9880called "implicit return". This support returns the result of the last 9881ASL 9882operation within a control method, in the absence of an explicit Return() 9883operator. A few machines depend on this behavior, even though it is not 9884explicitly supported by the ASL language. It is optional support that 9885can 9886be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 9887 9888Removed support for the PCI_Config address space from the internal low 9889level 9890hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 9891support was not used internally, and would not work correctly anyway 9892because 9893the PCI bus number and segment number were not supported. There are 9894separate interfaces for PCI configuration space access because of the 9895unique 9896interface. 9897 9898Code and Data Size: Current and previous core subsystem library sizes are 9899shown below. These are the code and data sizes for the acpica.lib 9900produced 9901by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9902any ACPI driver or OSPM code. The debug version of the code includes the 9903debug output trace mechanism and has a much larger code and data size. 9904Note 9905that these values will vary depending on the efficiency of the compiler 9906and 9907the compiler options used during generation. 9908 9909 Previous Release: 9910 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 9911 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 9912 Current Release: 9913 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 9914 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 9915 9916 99172) iASL Compiler/Disassembler: 9918 9919Fixed a problem where constants in ASL expressions at the root level (not 9920within a control method) could be inadvertently truncated during code 9921generation. This problem was introduced in the 20040715 release. 9922 9923 9924---------------------------------------- 992515 July 2004. Summary of changes for version 20040715: 9926 99271) ACPI CA Core Subsystem: 9928 9929Restructured the internal HW GPE interfaces to pass/track the current 9930state 9931of interrupts (enabled/disabled) in order to avoid possible deadlock and 9932increase flexibility of the interfaces. 9933 9934Implemented a "lexicographical compare" for String and Buffer objects 9935within 9936the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual - 9937- 9938as per further clarification to the ACPI specification. Behavior is 9939similar 9940to C library "strcmp". 9941 9942Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 9943external function. In the 32-bit non-debug case, the stack use has been 9944reduced from 168 bytes to 32 bytes. 9945 9946Deployed a new run-time configuration flag, 9947AcpiGbl_EnableInterpreterSlack, 9948whose purpose is to allow the AML interpreter to forgive certain bad AML 9949constructs. Default setting is FALSE. 9950 9951Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 9952IO 9953support code. If enabled, it allows field access to go beyond the end of 9954a 9955region definition if the field is within the region length rounded up to 9956the 9957next access width boundary (a common coding error.) 9958 9959Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 9960ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 9961these 9962symbols are lowercased by the latest version of the AcpiSrc tool. 9963 9964The prototypes for the PCI interfaces in acpiosxf.h have been updated to 9965rename "Register" to simply "Reg" to prevent certain compilers from 9966complaining. 9967 9968Code and Data Size: Current and previous core subsystem library sizes are 9969shown below. These are the code and data sizes for the acpica.lib 9970produced 9971by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9972any ACPI driver or OSPM code. The debug version of the code includes the 9973debug output trace mechanism and has a much larger code and data size. 9974Note 9975that these values will vary depending on the efficiency of the compiler 9976and 9977the compiler options used during generation. 9978 9979 Previous Release: 9980 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 9981 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 9982 Current Release: 9983 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 9984 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 9985 9986 99872) iASL Compiler/Disassembler: 9988 9989Implemented full support for Package objects within the Case() operator. 9990Note: The Break() operator is currently not supported within Case blocks 9991(TermLists) as there is some question about backward compatibility with 9992ACPI 99931.0 interpreters. 9994 9995 9996Fixed a problem where complex terms were not supported properly within 9997the 9998Switch() operator. 9999 10000Eliminated extraneous warning for compiler-emitted reserved names of the 10001form "_T_x". (Used in Switch/Case operators.) 10002 10003Eliminated optimization messages for "_T_x" objects and small constants 10004within the DefinitionBlock operator. 10005 10006 10007---------------------------------------- 1000815 June 2004. Summary of changes for version 20040615: 10009 100101) ACPI CA Core Subsystem: 10011 10012Implemented support for Buffer and String objects (as per ACPI 2.0) for 10013the 10014following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 10015LLessEqual. 10016 10017All directory names in the entire source package are lower case, as they 10018were in earlier releases. 10019 10020Implemented "Disassemble" command in the AML debugger that will 10021disassemble 10022a single control method. 10023 10024Code and Data Size: Current and previous core subsystem library sizes are 10025shown below. These are the code and data sizes for the acpica.lib 10026produced 10027by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10028any ACPI driver or OSPM code. The debug version of the code includes the 10029debug output trace mechanism and has a much larger code and data size. 10030Note 10031that these values will vary depending on the efficiency of the compiler 10032and 10033the compiler options used during generation. 10034 10035 Previous Release: 10036 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 10037 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 10038 10039 Current Release: 10040 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 10041 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 10042 10043 100442) iASL Compiler/Disassembler: 10045 10046Implemented support for Buffer and String objects (as per ACPI 2.0) for 10047the 10048following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 10049LLessEqual. 10050 10051All directory names in the entire source package are lower case, as they 10052were in earlier releases. 10053 10054Fixed a fault when using the -g or -d<nofilename> options if the FADT was 10055not found. 10056 10057Fixed an issue with the Windows version of the compiler where later 10058versions 10059of Windows place the FADT in the registry under the name "FADT" and not 10060"FACP" as earlier versions did. This applies when using the -g or - 10061d<nofilename> options. The compiler now looks for both strings as 10062necessary. 10063 10064Fixed a problem with compiler namepath optimization where a namepath 10065within 10066the Scope() operator could not be optimized if the namepath was a subpath 10067of 10068the current scope path. 10069 10070---------------------------------------- 1007127 May 2004. Summary of changes for version 20040527: 10072 100731) ACPI CA Core Subsystem: 10074 10075Completed a new design and implementation for EBDA (Extended BIOS Data 10076Area) 10077support in the RSDP scan code. The original code improperly scanned for 10078the 10079EBDA by simply scanning from memory location 0 to 0x400. The correct 10080method 10081is to first obtain the EBDA pointer from within the BIOS data area, then 10082scan 1K of memory starting at the EBDA pointer. There appear to be few 10083if 10084any machines that place the RSDP in the EBDA, however. 10085 10086Integrated a fix for a possible fault during evaluation of BufferField 10087arguments. Obsolete code that was causing the problem was removed. 10088 10089Found and fixed a problem in the Field Support Code where data could be 10090corrupted on a bit field read that starts on an aligned boundary but does 10091not end on an aligned boundary. Merged the read/write "datum length" 10092calculation code into a common procedure. 10093 10094Rolled in a couple of changes to the FreeBSD-specific header. 10095 10096 10097Code and Data Size: Current and previous core subsystem library sizes are 10098shown below. These are the code and data sizes for the acpica.lib 10099produced 10100by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10101any ACPI driver or OSPM code. The debug version of the code includes the 10102debug output trace mechanism and has a much larger code and data size. 10103Note 10104that these values will vary depending on the efficiency of the compiler 10105and 10106the compiler options used during generation. 10107 10108 Previous Release: 10109 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 10110 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 10111 Current Release: 10112 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 10113 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 10114 10115 101162) iASL Compiler/Disassembler: 10117 10118Fixed a generation warning produced by some overly-verbose compilers for 10119a 1012064-bit constant. 10121 10122---------------------------------------- 1012314 May 2004. Summary of changes for version 20040514: 10124 101251) ACPI CA Core Subsystem: 10126 10127Fixed a problem where hardware GPE enable bits sometimes not set properly 10128during and after GPE method execution. Result of 04/27 changes. 10129 10130Removed extra "clear all GPEs" when sleeping/waking. 10131 10132Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 10133AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 10134to 10135the new AcpiEv* calls as appropriate. 10136 10137ACPI_OS_NAME was removed from the OS-specific headers. The default name 10138is 10139now "Microsoft Windows NT" for maximum compatibility. However this can 10140be 10141changed by modifying the acconfig.h file. 10142 10143Allow a single invocation of AcpiInstallNotifyHandler for a handler that 10144traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 10145 10146Run _INI methods on ThermalZone objects. This is against the ACPI 10147specification, but there is apparently ASL code in the field that has 10148these 10149_INI methods, and apparently "other" AML interpreters execute them. 10150 10151Performed a full 16/32/64 bit lint that resulted in some small changes. 10152 10153Added a sleep simulation command to the AML debugger to test sleep code. 10154 10155Code and Data Size: Current and previous core subsystem library sizes are 10156shown below. These are the code and data sizes for the acpica.lib 10157produced 10158by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10159any ACPI driver or OSPM code. The debug version of the code includes the 10160debug output trace mechanism and has a much larger code and data size. 10161Note 10162that these values will vary depending on the efficiency of the compiler 10163and 10164the compiler options used during generation. 10165 10166 Previous Release: 10167 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 10168 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 10169 Current Release: 10170 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 10171 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 10172 10173---------------------------------------- 1017427 April 2004. Summary of changes for version 20040427: 10175 101761) ACPI CA Core Subsystem: 10177 10178Completed a major overhaul of the GPE handling within ACPI CA. There are 10179now three types of GPEs: wake-only, runtime-only, and combination 10180wake/run. 10181The only GPEs allowed to be combination wake/run are for button-style 10182devices such as a control-method power button, control-method sleep 10183button, 10184or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 10185not 10186referenced by any _PRW methods are marked for "runtime" and hardware 10187enabled. Any GPE that is referenced by a _PRW method is marked for 10188"wake" 10189(and disabled at runtime). However, at sleep time, only those GPEs that 10190have been specifically enabled for wake via the AcpiEnableGpe interface 10191will 10192actually be hardware enabled. 10193 10194A new external interface has been added, AcpiSetGpeType(), that is meant 10195to 10196be used by device drivers to force a GPE to a particular type. It will 10197be 10198especially useful for the drivers for the button devices mentioned above. 10199 10200Completed restructuring of the ACPI CA initialization sequence so that 10201default operation region handlers are installed before GPEs are 10202initialized 10203and the _PRW methods are executed. This will prevent errors when the 10204_PRW 10205methods attempt to access system memory or I/O space. 10206 10207GPE enable/disable no longer reads the GPE enable register. We now keep 10208the 10209enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 10210thus no longer depend on the hardware to maintain these bits. 10211 10212Always clear the wake status and fixed/GPE status bits before sleep, even 10213for state S5. 10214 10215Improved the AML debugger output for displaying the GPE blocks and their 10216current status. 10217 10218Added new strings for the _OSI method, of the form "Windows 2001 SPx" 10219where 10220x = 0,1,2,3,4. 10221 10222Fixed a problem where the physical address was incorrectly calculated 10223when 10224the Load() operator was used to directly load from an Operation Region 10225(vs. 10226loading from a Field object.) Also added check for minimum table length 10227for 10228this case. 10229 10230Fix for multiple mutex acquisition. Restore original thread SyncLevel on 10231mutex release. 10232 10233Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 10234consistency with the other fields returned. 10235 10236Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 10237structure for each GPE in the system, so the size of this structure is 10238important. 10239 10240CPU stack requirement reduction: Cleaned up the method execution and 10241object 10242evaluation paths so that now a parameter structure is passed, instead of 10243copying the various method parameters over and over again. 10244 10245In evregion.c: Correctly exit and reenter the interpreter region if and 10246only if dispatching an operation region request to a user-installed 10247handler. 10248Do not exit/reenter when dispatching to a default handler (e.g., default 10249system memory or I/O handlers) 10250 10251 10252Notes for updating drivers for the new GPE support. The following 10253changes 10254must be made to ACPI-related device drivers that are attached to one or 10255more 10256GPEs: (This information will be added to the ACPI CA Programmer 10257Reference.) 10258 102591) AcpiInstallGpeHandler no longer automatically enables the GPE, you 10260must 10261explicitly call AcpiEnableGpe. 102622) There is a new interface called AcpiSetGpeType. This should be called 10263before enabling the GPE. Also, this interface will automatically disable 10264the GPE if it is currently enabled. 102653) AcpiEnableGpe no longer supports a GPE type flag. 10266 10267Specific drivers that must be changed: 102681) EC driver: 10269 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 10270AeGpeHandler, NULL); 10271 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 10272 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 10273 102742) Button Drivers (Power, Lid, Sleep): 10275Run _PRW method under parent device 10276If _PRW exists: /* This is a control-method button */ 10277 Extract GPE number and possibly GpeDevice 10278 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 10279 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 10280 10281For all other devices that have _PRWs, we automatically set the GPE type 10282to 10283ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. 10284This 10285must be done on a selective basis, usually requiring some kind of user 10286app 10287to allow the user to pick the wake devices. 10288 10289 10290Code and Data Size: Current and previous core subsystem library sizes are 10291shown below. These are the code and data sizes for the acpica.lib 10292produced 10293by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10294any ACPI driver or OSPM code. The debug version of the code includes the 10295debug output trace mechanism and has a much larger code and data size. 10296Note 10297that these values will vary depending on the efficiency of the compiler 10298and 10299the compiler options used during generation. 10300 10301 Previous Release: 10302 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 10303 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 10304 Current Release: 10305 10306 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 10307 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 10308 10309 10310 10311---------------------------------------- 1031202 April 2004. Summary of changes for version 20040402: 10313 103141) ACPI CA Core Subsystem: 10315 10316Fixed an interpreter problem where an indirect store through an ArgX 10317parameter was incorrectly applying the "implicit conversion rules" during 10318the store. From the ACPI specification: "If the target is a method local 10319or 10320argument (LocalX or ArgX), no conversion is performed and the result is 10321stored directly to the target". The new behavior is to disable implicit 10322conversion during ALL stores to an ArgX. 10323 10324Changed the behavior of the _PRW method scan to ignore any and all errors 10325returned by a given _PRW. This prevents the scan from aborting from the 10326failure of any single _PRW. 10327 10328Moved the runtime configuration parameters from the global init procedure 10329to 10330static variables in acglobal.h. This will allow the host to override the 10331default values easily. 10332 10333Code and Data Size: Current and previous core subsystem library sizes are 10334shown below. These are the code and data sizes for the acpica.lib 10335produced 10336by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10337any ACPI driver or OSPM code. The debug version of the code includes the 10338debug output trace mechanism and has a much larger code and data size. 10339Note 10340that these values will vary depending on the efficiency of the compiler 10341and 10342the compiler options used during generation. 10343 10344 Previous Release: 10345 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 10346 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 10347 Current Release: 10348 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 10349 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 10350 10351 103522) iASL Compiler/Disassembler: 10353 10354iASL now fully disassembles SSDTs. However, External() statements are 10355not 10356generated automatically for unresolved symbols at this time. This is a 10357planned feature for future implementation. 10358 10359Fixed a scoping problem in the disassembler that occurs when the type of 10360the 10361target of a Scope() operator is overridden. This problem caused an 10362incorrectly nested internal namespace to be constructed. 10363 10364Any warnings or errors that are emitted during disassembly are now 10365commented 10366out automatically so that the resulting file can be recompiled without 10367any 10368hand editing. 10369 10370---------------------------------------- 1037126 March 2004. Summary of changes for version 20040326: 10372 103731) ACPI CA Core Subsystem: 10374 10375Implemented support for "wake" GPEs via interaction between GPEs and the 10376_PRW methods. Every GPE that is pointed to by one or more _PRWs is 10377identified as a WAKE GPE and by default will no longer be enabled at 10378runtime. Previously, we were blindly enabling all GPEs with a 10379corresponding 10380_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 10381We 10382believe this has been the cause of thousands of "spurious" GPEs on some 10383systems. 10384 10385This new GPE behavior is can be reverted to the original behavior (enable 10386ALL GPEs at runtime) via a runtime flag. 10387 10388Fixed a problem where aliased control methods could not access objects 10389properly. The proper scope within the namespace was not initialized 10390(transferred to the target of the aliased method) before executing the 10391target method. 10392 10393Fixed a potential race condition on internal object deletion on the 10394return 10395object in AcpiEvaluateObject. 10396 10397Integrated a fix for resource descriptors where both _MEM and _MTP were 10398being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 10399wide, 0x0F instead of 0x03.) 10400 10401Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, 10402preventing 10403a 10404fault in some cases. 10405 10406Updated Notify() values for debug statements in evmisc.c 10407 10408Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 10409 10410Code and Data Size: Current and previous core subsystem library sizes are 10411shown below. These are the code and data sizes for the acpica.lib 10412produced 10413by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10414any ACPI driver or OSPM code. The debug version of the code includes the 10415debug output trace mechanism and has a much larger code and data size. 10416Note 10417that these values will vary depending on the efficiency of the compiler 10418and 10419the compiler options used during generation. 10420 10421 Previous Release: 10422 10423 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 10424 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 10425 Current Release: 10426 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 10427 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 10428 10429---------------------------------------- 1043011 March 2004. Summary of changes for version 20040311: 10431 104321) ACPI CA Core Subsystem: 10433 10434Fixed a problem where errors occurring during the parse phase of control 10435method execution did not abort cleanly. For example, objects created and 10436installed in the namespace were not deleted. This caused all subsequent 10437invocations of the method to return the AE_ALREADY_EXISTS exception. 10438 10439Implemented a mechanism to force a control method to "Serialized" 10440execution 10441if the method attempts to create namespace objects. (The root of the 10442AE_ALREADY_EXISTS problem.) 10443 10444Implemented support for the predefined _OSI "internal" control method. 10445Initial supported strings are "Linux", "Windows 2000", "Windows 2001", 10446and 10447"Windows 2001.1", and can be easily upgraded for new strings as 10448necessary. 10449This feature will allow "other" operating systems to execute the fully 10450tested, "Windows" code path through the ASL code 10451 10452Global Lock Support: Now allows multiple acquires and releases with any 10453internal thread. Removed concept of "owning thread" for this special 10454mutex. 10455 10456Fixed two functions that were inappropriately declaring large objects on 10457the 10458CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 10459during 10460method execution considerably. 10461 10462Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 10463S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 10464 10465Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 10466defined on the machine. 10467 10468Implemented two runtime options: One to force all control method 10469execution 10470to "Serialized" to mimic Windows behavior, another to disable _OSI 10471support 10472if it causes problems on a given machine. 10473 10474Code and Data Size: Current and previous core subsystem library sizes are 10475shown below. These are the code and data sizes for the acpica.lib 10476produced 10477by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10478any ACPI driver or OSPM code. The debug version of the code includes the 10479debug output trace mechanism and has a much larger code and data size. 10480Note 10481that these values will vary depending on the efficiency of the compiler 10482and 10483the compiler options used during generation. 10484 10485 Previous Release: 10486 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 10487 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 10488 Current Release: 10489 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 10490 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 10491 104922) iASL Compiler/Disassembler: 10493 10494Fixed an array size problem for FreeBSD that would cause the compiler to 10495fault. 10496 10497---------------------------------------- 1049820 February 2004. Summary of changes for version 20040220: 10499 10500 105011) ACPI CA Core Subsystem: 10502 10503Implemented execution of _SxD methods for Device objects in the 10504GetObjectInfo interface. 10505 10506Fixed calls to _SST method to pass the correct arguments. 10507 10508Added a call to _SST on wake to restore to "working" state. 10509 10510Check for End-Of-Buffer failure case in the WalkResources interface. 10511 10512Integrated fix for 64-bit alignment issue in acglobal.h by moving two 10513structures to the beginning of the file. 10514 10515After wake, clear GPE status register(s) before enabling GPEs. 10516 10517After wake, clear/enable power button. (Perhaps we should clear/enable 10518all 10519fixed events upon wake.) 10520 10521Fixed a couple of possible memory leaks in the Namespace manager. 10522 10523Integrated latest acnetbsd.h file. 10524 10525---------------------------------------- 1052611 February 2004. Summary of changes for version 20040211: 10527 10528 105291) ACPI CA Core Subsystem: 10530 10531Completed investigation and implementation of the call-by-reference 10532mechanism for control method arguments. 10533 10534Fixed a problem where a store of an object into an indexed package could 10535fail if the store occurs within a different method than the method that 10536created the package. 10537 10538Fixed a problem where the ToDecimal operator could return incorrect 10539results. 10540 10541Fixed a problem where the CopyObject operator could fail on some of the 10542more 10543obscure objects (e.g., Reference objects.) 10544 10545Improved the output of the Debug object to display buffer, package, and 10546index objects. 10547 10548Fixed a problem where constructs of the form "RefOf (ArgX)" did not 10549return 10550the expected result. 10551 10552Added permanent ACPI_REPORT_ERROR macros for all instances of the 10553ACPI_AML_INTERNAL exception. 10554 10555Integrated latest version of acfreebsd.h 10556 10557---------------------------------------- 1055816 January 2004. Summary of changes for version 20040116: 10559 10560The purpose of this release is primarily to update the copyright years in 10561each module, thus causing a huge number of diffs. There are a few small 10562functional changes, however. 10563 105641) ACPI CA Core Subsystem: 10565 10566Improved error messages when there is a problem finding one or more of 10567the 10568required base ACPI tables 10569 10570Reintroduced the definition of APIC_HEADER in actbl.h 10571 10572Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 10573 10574Removed extraneous reference to NewObj in dsmthdat.c 10575 105762) iASL compiler 10577 10578Fixed a problem introduced in December that disabled the correct 10579disassembly 10580of Resource Templates 10581 10582 10583---------------------------------------- 1058403 December 2003. Summary of changes for version 20031203: 10585 105861) ACPI CA Core Subsystem: 10587 10588Changed the initialization of Operation Regions during subsystem 10589init to perform two entire walks of the ACPI namespace; The first 10590to initialize the regions themselves, the second to execute the 10591_REG methods. This fixed some interdependencies across _REG 10592methods found on some machines. 10593 10594Fixed a problem where a Store(Local0, Local1) could simply update 10595the object reference count, and not create a new copy of the 10596object if the Local1 is uninitialized. 10597 10598Implemented support for the _SST reserved method during sleep 10599transitions. 10600 10601Implemented support to clear the SLP_TYP and SLP_EN bits when 10602waking up, this is apparently required by some machines. 10603 10604When sleeping, clear the wake status only if SleepState is not S5. 10605 10606Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 10607pointer arithmetic advanced a string pointer too far. 10608 10609Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 10610could be returned if the requested table has not been loaded. 10611 10612Within the support for IRQ resources, restructured the handling of 10613the active and edge/level bits. 10614 10615Fixed a few problems in AcpiPsxExecute() where memory could be 10616leaked under certain error conditions. 10617 10618Improved error messages for the cases where the ACPI mode could 10619not be entered. 10620 10621Code and Data Size: Current and previous core subsystem library 10622sizes are shown below. These are the code and data sizes for the 10623acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 10624these values do not include any ACPI driver or OSPM code. The 10625debug version of the code includes the debug output trace 10626mechanism and has a much larger code and data size. Note that 10627these values will vary depending on the efficiency of the compiler 10628and the compiler options used during generation. 10629 10630 Previous Release (20031029): 10631 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 10632 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 10633 Current Release: 10634 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 10635 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 10636 106372) iASL Compiler/Disassembler: 10638 10639Implemented a fix for the iASL disassembler where a bad index was 10640generated. This was most noticeable on 64-bit platforms 10641 10642 10643---------------------------------------- 1064429 October 2003. Summary of changes for version 20031029: 10645 106461) ACPI CA Core Subsystem: 10647 10648 10649Fixed a problem where a level-triggered GPE with an associated 10650_Lxx control method was incorrectly cleared twice. 10651 10652Fixed a problem with the Field support code where an access can 10653occur beyond the end-of-region if the field is non-aligned but 10654extends to the very end of the parent region (resulted in an 10655AE_AML_REGION_LIMIT exception.) 10656 10657Fixed a problem with ACPI Fixed Events where an RT Clock handler 10658would not get invoked on an RTC event. The RTC event bitmasks for 10659the PM1 registers were not being initialized properly. 10660 10661Implemented support for executing _STA and _INI methods for 10662Processor objects. Although this is currently not part of the 10663ACPI specification, there is existing ASL code that depends on the 10664init-time execution of these methods. 10665 10666Implemented and deployed a GetDescriptorName function to decode 10667the various types of internal descriptors. Guards against null 10668descriptors during debug output also. 10669 10670Implemented and deployed a GetNodeName function to extract the 4- 10671character namespace node name. This function simplifies the debug 10672and error output, as well as guarding against null pointers during 10673output. 10674 10675Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 10676simplify the debug and error output of 64-bit integers. This 10677macro replaces the HIDWORD and LODWORD macros for dumping these 10678integers. 10679 10680Updated the implementation of the Stall() operator to only call 10681AcpiOsStall(), and also return an error if the operand is larger 10682than 255. This preserves the required behavior of not 10683relinquishing the processor, as would happen if AcpiOsSleep() was 10684called for "long stalls". 10685 10686Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 10687initialized are now treated as NOOPs. 10688 10689Cleaned up a handful of warnings during 64-bit generation. 10690 10691Fixed a reported error where and incorrect GPE number was passed 10692to the GPE dispatch handler. This value is only used for error 10693output, however. Used this opportunity to clean up and streamline 10694the GPE dispatch code. 10695 10696Code and Data Size: Current and previous core subsystem library 10697sizes are shown below. These are the code and data sizes for the 10698acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 10699these values do not include any ACPI driver or OSPM code. The 10700 10701debug version of the code includes the debug output trace 10702mechanism and has a much larger code and data size. Note that 10703these values will vary depending on the efficiency of the compiler 10704and the compiler options used during generation. 10705 10706 Previous Release (20031002): 10707 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 10708 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 10709 Current Release: 10710 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 10711 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 10712 10713 107142) iASL Compiler/Disassembler: 10715 10716Updated the iASL compiler to return an error if the operand to the 10717Stall() operator is larger than 255. 10718 10719 10720---------------------------------------- 1072102 October 2003. Summary of changes for version 20031002: 10722 10723 107241) ACPI CA Core Subsystem: 10725 10726Fixed a problem with Index Fields where the index was not 10727incremented for fields that require multiple writes to the 10728index/data registers (Fields that are wider than the data 10729register.) 10730 10731Fixed a problem with all Field objects where a write could go 10732beyond the end-of-field if the field was larger than the access 10733granularity and therefore required multiple writes to complete the 10734request. An extra write beyond the end of the field could happen 10735inadvertently. 10736 10737Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 10738would incorrectly be returned if the width of the Data Register 10739was larger than the specified field access width. 10740 10741Completed fixes for LoadTable() and Unload() and verified their 10742operation. Implemented full support for the "DdbHandle" object 10743throughout the ACPI CA subsystem. 10744 10745Implemented full support for the MADT and ECDT tables in the ACPI 10746CA header files. Even though these tables are not directly 10747consumed by ACPI CA, the header definitions are useful for ACPI 10748device drivers. 10749 10750Integrated resource descriptor fixes posted to the Linux ACPI 10751list. This included checks for minimum descriptor length, and 10752support for trailing NULL strings within descriptors that have 10753optional string elements. 10754 10755Code and Data Size: Current and previous core subsystem library 10756sizes are shown below. These are the code and data sizes for the 10757acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 10758these values do not include any ACPI driver or OSPM code. The 10759debug version of the code includes the debug output trace 10760mechanism and has a much larger code and data size. Note that 10761these values will vary depending on the efficiency of the compiler 10762and the compiler options used during generation. 10763 10764 Previous Release (20030918): 10765 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 10766 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 10767 Current Release: 10768 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 10769 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 10770 10771 107722) iASL Compiler: 10773 10774Implemented detection of non-ASCII characters within the input 10775source ASL file. This catches attempts to compile binary (AML) 10776files early in the compile, with an informative error message. 10777 10778Fixed a problem where the disassembler would fault if the output 10779filename could not be generated or if the output file could not be 10780opened. 10781 10782---------------------------------------- 1078318 September 2003. Summary of changes for version 20030918: 10784 10785 107861) ACPI CA Core Subsystem: 10787 10788Found and fixed a longstanding problem with the late execution of 10789the various deferred AML opcodes (such as Operation Regions, 10790Buffer Fields, Buffers, and Packages). If the name string 10791specified for the name of the new object placed the object in a 10792scope other than the current scope, the initialization/execution 10793of the opcode failed. The solution to this problem was to 10794implement a mechanism where the late execution of such opcodes 10795does not attempt to lookup/create the name a second time in an 10796incorrect scope. This fixes the "region size computed 10797incorrectly" problem. 10798 10799Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 10800Global Lock AE_BAD_PARAMETER error. 10801 10802Fixed several 64-bit issues with prototypes, casting and data 10803types. 10804 10805Removed duplicate prototype from acdisasm.h 10806 10807Fixed an issue involving EC Operation Region Detach (Shaohua Li) 10808 10809Code and Data Size: Current and previous core subsystem library 10810sizes are shown below. These are the code and data sizes for the 10811acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 10812these values do not include any ACPI driver or OSPM code. The 10813debug version of the code includes the debug output trace 10814mechanism and has a much larger code and data size. Note that 10815these values will vary depending on the efficiency of the compiler 10816and the compiler options used during generation. 10817 10818 Previous Release: 10819 10820 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 10821 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 10822 Current Release: 10823 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 10824 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 10825 10826 108272) Linux: 10828 10829Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 10830correct sleep time in seconds. 10831 10832---------------------------------------- 1083314 July 2003. Summary of changes for version 20030619: 10834 108351) ACPI CA Core Subsystem: 10836 10837Parse SSDTs in order discovered, as opposed to reverse order 10838(Hrvoje Habjanic) 10839 10840Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 10841Klausner, 10842 Nate Lawson) 10843 10844 108452) Linux: 10846 10847Dynamically allocate SDT list (suggested by Andi Kleen) 10848 10849proc function return value cleanups (Andi Kleen) 10850 10851Correctly handle NMI watchdog during long stalls (Andrew Morton) 10852 10853Make it so acpismp=force works (reported by Andrew Morton) 10854 10855 10856---------------------------------------- 1085719 June 2003. Summary of changes for version 20030619: 10858 108591) ACPI CA Core Subsystem: 10860 10861Fix To/FromBCD, eliminating the need for an arch-specific #define. 10862 10863Do not acquire a semaphore in the S5 shutdown path. 10864 10865Fix ex_digits_needed for 0. (Takayoshi Kochi) 10866 10867Fix sleep/stall code reversal. (Andi Kleen) 10868 10869Revert a change having to do with control method calling 10870semantics. 10871 108722) Linux: 10873 10874acpiphp update (Takayoshi Kochi) 10875 10876Export acpi_disabled for sonypi (Stelian Pop) 10877 10878Mention acpismp=force in config help 10879 10880Re-add acpitable.c and acpismp=force. This improves backwards 10881 10882compatibility and also cleans up the code to a significant degree. 10883 10884Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 10885 10886---------------------------------------- 1088722 May 2003. Summary of changes for version 20030522: 10888 108891) ACPI CA Core Subsystem: 10890 10891Found and fixed a reported problem where an AE_NOT_FOUND error 10892occurred occasionally during _BST evaluation. This turned out to 10893be an Owner ID allocation issue where a called method did not get 10894a new ID assigned to it. Eventually, (after 64k calls), the Owner 10895ID UINT16 would wraparound so that the ID would be the same as the 10896caller's and the called method would delete the caller's 10897namespace. 10898 10899Implemented extended error reporting for control methods that are 10900aborted due to a run-time exception. Output includes the exact 10901AML instruction that caused the method abort, a dump of the method 10902locals and arguments at the time of the abort, and a trace of all 10903nested control method calls. 10904 10905Modified the interpreter to allow the creation of buffers of zero 10906length from the AML code. Implemented new code to ensure that no 10907attempt is made to actually allocate a memory buffer (of length 10908zero) - instead, a simple buffer object with a NULL buffer pointer 10909and length zero is created. A warning is no longer issued when 10910the AML attempts to create a zero-length buffer. 10911 10912Implemented a workaround for the "leading asterisk issue" in 10913_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 10914asterisk is automatically removed if present in any HID, UID, or 10915CID strings. The iASL compiler will still flag this asterisk as 10916an error, however. 10917 10918Implemented full support for _CID methods that return a package of 10919multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 10920now additionally returns a device _CID list if present. This 10921required a change to the external interface in order to pass an 10922ACPI_BUFFER object as a parameter since the _CID list is of 10923variable length. 10924 10925Fixed a problem with the new AE_SAME_HANDLER exception where 10926handler initialization code did not know about this exception. 10927 10928Code and Data Size: Current and previous core subsystem library 10929sizes are shown below. These are the code and data sizes for the 10930acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 10931these values do not include any ACPI driver or OSPM code. The 10932debug version of the code includes the debug output trace 10933mechanism and has a much larger code and data size. Note that 10934these values will vary depending on the efficiency of the compiler 10935and the compiler options used during generation. 10936 10937 Previous Release (20030509): 10938 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 10939 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 10940 Current Release: 10941 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 10942 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 10943 10944 109452) Linux: 10946 10947Fixed a bug in which we would reinitialize the ACPI interrupt 10948after it was already working, thus disabling all ACPI and the IRQs 10949for any other device sharing the interrupt. (Thanks to Stian 10950Jordet) 10951 10952Toshiba driver update (John Belmonte) 10953 10954Return only 0 or 1 for our interrupt handler status (Andrew 10955Morton) 10956 10957 109583) iASL Compiler: 10959 10960Fixed a reported problem where multiple (nested) ElseIf() 10961statements were not handled correctly by the compiler, resulting 10962in incorrect warnings and incorrect AML code. This was a problem 10963in both the ASL parser and the code generator. 10964 10965 109664) Documentation: 10967 10968Added changes to existing interfaces, new exception codes, and new 10969text concerning reference count object management versus garbage 10970collection. 10971 10972---------------------------------------- 1097309 May 2003. Summary of changes for version 20030509. 10974 10975 109761) ACPI CA Core Subsystem: 10977 10978Changed the subsystem initialization sequence to hold off 10979installation of address space handlers until the hardware has been 10980initialized and the system has entered ACPI mode. This is because 10981the installation of space handlers can cause _REG methods to be 10982run. Previously, the _REG methods could potentially be run before 10983ACPI mode was enabled. 10984 10985Fixed some memory leak issues related to address space handler and 10986notify handler installation. There were some problems with the 10987reference count mechanism caused by the fact that the handler 10988objects are shared across several namespace objects. 10989 10990Fixed a reported problem where reference counts within the 10991namespace were not properly updated when named objects created by 10992method execution were deleted. 10993 10994Fixed a reported problem where multiple SSDTs caused a deletion 10995issue during subsystem termination. Restructured the table data 10996structures to simplify the linked lists and the related code. 10997 10998Fixed a problem where the table ID associated with secondary 10999tables (SSDTs) was not being propagated into the namespace objects 11000created by those tables. This would only present a problem for 11001tables that are unloaded at run-time, however. 11002 11003Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 11004type as the length parameter (instead of UINT32). 11005 11006Solved a long-standing problem where an ALREADY_EXISTS error 11007appears on various systems. This problem could happen when there 11008are multiple PCI_Config operation regions under a single PCI root 11009bus. This doesn't happen very frequently, but there are some 11010systems that do this in the ASL. 11011 11012Fixed a reported problem where the internal DeleteNode function 11013was incorrectly handling the case where a namespace node was the 11014first in the parent's child list, and had additional peers (not 11015the only child, but first in the list of children.) 11016 11017Code and Data Size: Current core subsystem library sizes are shown 11018below. These are the code and data sizes for the acpica.lib 11019produced by the Microsoft Visual C++ 6.0 compiler, and these 11020values do not include any ACPI driver or OSPM code. The debug 11021version of the code includes the debug output trace mechanism and 11022has a much larger code and data size. Note that these values will 11023vary depending on the efficiency of the compiler and the compiler 11024options used during generation. 11025 11026 Previous Release 11027 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 11028 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 11029 Current Release: 11030 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 11031 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 11032 11033 110342) Linux: 11035 11036Allow ":" in OS override string (Ducrot Bruno) 11037 11038Kobject fix (Greg KH) 11039 11040 110413 iASL Compiler/Disassembler: 11042 11043Fixed a problem in the generation of the C source code files (AML 11044is emitted in C source statements for BIOS inclusion) where the 11045Ascii dump that appears within a C comment at the end of each line 11046could cause a compile time error if the AML sequence happens to 11047have an open comment or close comment sequence embedded. 11048 11049 11050---------------------------------------- 1105124 April 2003. Summary of changes for version 20030424. 11052 11053 110541) ACPI CA Core Subsystem: 11055 11056Support for big-endian systems has been implemented. Most of the 11057support has been invisibly added behind big-endian versions of the 11058ACPI_MOVE_* macros. 11059 11060Fixed a problem in AcpiHwDisableGpeBlock() and 11061AcpiHwClearGpeBlock() where an incorrect offset was passed to the 11062low level hardware write routine. The offset parameter was 11063actually eliminated from the low level read/write routines because 11064they had become obsolete. 11065 11066Fixed a problem where a handler object was deleted twice during 11067the removal of a fixed event handler. 11068 11069 110702) Linux: 11071 11072A fix for SMP systems with link devices was contributed by 11073 11074Compaq's Dan Zink. 11075 11076(2.5) Return whether we handled the interrupt in our IRQ handler. 11077(Linux ISRs no longer return void, so we can propagate the handler 11078return value from the ACPI CA core back to the OS.) 11079 11080 11081 110823) Documentation: 11083 11084The ACPI CA Programmer Reference has been updated to reflect new 11085interfaces and changes to existing interfaces. 11086 11087---------------------------------------- 1108828 March 2003. Summary of changes for version 20030328. 11089 110901) ACPI CA Core Subsystem: 11091 11092The GPE Block Device support has been completed. New interfaces 11093are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 11094interfaces (enable, disable, clear, getstatus) have been split 11095into separate interfaces for Fixed Events and General Purpose 11096Events (GPEs) in order to support GPE Block Devices properly. 11097 11098Fixed a problem where the error message "Failed to acquire 11099semaphore" would appear during operations on the embedded 11100controller (EC). 11101 11102Code and Data Size: Current core subsystem library sizes are shown 11103below. These are the code and data sizes for the acpica.lib 11104produced by the Microsoft Visual C++ 6.0 compiler, and these 11105values do not include any ACPI driver or OSPM code. The debug 11106version of the code includes the debug output trace mechanism and 11107has a much larger code and data size. Note that these values will 11108vary depending on the efficiency of the compiler and the compiler 11109options used during generation. 11110 11111 Previous Release 11112 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 11113 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 11114 Current Release: 11115 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 11116 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 11117 11118 11119---------------------------------------- 1112028 February 2003. Summary of changes for version 20030228. 11121 11122 111231) ACPI CA Core Subsystem: 11124 11125The GPE handling and dispatch code has been completely overhauled 11126in preparation for support of GPE Block Devices (ID ACPI0006). 11127This affects internal data structures and code only; there should 11128be no differences visible externally. One new file has been 11129added, evgpeblk.c 11130 11131The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 11132fields that are used to determine the GPE block lengths. The 11133REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 11134structures are ignored. This is per the ACPI specification but it 11135isn't very clear. The full 256 Block 0/1 GPEs are now supported 11136(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 11137 11138In the SCI interrupt handler, removed the read of the PM1_CONTROL 11139register to look at the SCI_EN bit. On some machines, this read 11140causes an SMI event and greatly slows down SCI events. (This may 11141in fact be the cause of slow battery status response on some 11142systems.) 11143 11144Fixed a problem where a store of a NULL string to a package object 11145could cause the premature deletion of the object. This was seen 11146during execution of the battery _BIF method on some systems, 11147resulting in no battery data being returned. 11148 11149Added AcpiWalkResources interface to simplify parsing of resource 11150lists. 11151 11152Code and Data Size: Current core subsystem library sizes are shown 11153below. These are the code and data sizes for the acpica.lib 11154produced by the Microsoft Visual C++ 6.0 compiler, and these 11155values do not include any ACPI driver or OSPM code. The debug 11156version of the code includes the debug output trace mechanism and 11157has a much larger code and data size. Note that these values will 11158vary depending on the efficiency of the compiler and the compiler 11159options used during generation. 11160 11161 Previous Release 11162 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 11163 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 11164 Current Release: 11165 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 11166 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 11167 11168 111692) Linux 11170 11171S3 fixes (Ole Rohne) 11172 11173Update ACPI PHP driver with to use new acpi_walk_resource API 11174(Bjorn Helgaas) 11175 11176Add S4BIOS support (Pavel Machek) 11177 11178Map in entire table before performing checksum (John Stultz) 11179 11180Expand the mem= cmdline to allow the specification of reserved and 11181ACPI DATA blocks (Pavel Machek) 11182 11183Never use ACPI on VISWS 11184 11185Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 11186 11187Revert a change that allowed P_BLK lengths to be 4 or 5. This is 11188causing us to think that some systems support C2 when they really 11189don't. 11190 11191Do not count processor objects for non-present CPUs (Thanks to 11192Dominik Brodowski) 11193 11194 111953) iASL Compiler: 11196 11197Fixed a problem where ASL include files could not be found and 11198opened. 11199 11200Added support for the _PDC reserved name. 11201 11202 11203---------------------------------------- 1120422 January 2003. Summary of changes for version 20030122. 11205 11206 112071) ACPI CA Core Subsystem: 11208 11209Added a check for constructs of the form: Store (Local0, Local0) 11210where Local0 is not initialized. Apparently, some BIOS 11211programmers believe that this is a NOOP. Since this store doesn't 11212do anything anyway, the new prototype behavior will ignore this 11213error. This is a case where we can relax the strict checking in 11214the interpreter in the name of compatibility. 11215 11216 112172) Linux 11218 11219The AcpiSrc Source Conversion Utility has been released with the 11220Linux package for the first time. This is the utility that is 11221used to convert the ACPI CA base source code to the Linux version. 11222 11223(Both) Handle P_BLK lengths shorter than 6 more gracefully 11224 11225(Both) Move more headers to include/acpi, and delete an unused 11226header. 11227 11228(Both) Move drivers/acpi/include directory to include/acpi 11229 11230(Both) Boot functions don't use cmdline, so don't pass it around 11231 11232(Both) Remove include of unused header (Adrian Bunk) 11233 11234(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 11235the 11236former now also includes the latter, acpiphp.h only needs the one, 11237now. 11238 11239(2.5) Make it possible to select method of bios restoring after S3 11240resume. [=> no more ugly ifdefs] (Pavel Machek) 11241 11242(2.5) Make proc write interfaces work (Pavel Machek) 11243 11244(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 11245 11246(2.5) Break out ACPI Perf code into its own module, under cpufreq 11247(Dominik Brodowski) 11248 11249(2.4) S4BIOS support (Ducrot Bruno) 11250 11251(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 11252Visinoni) 11253 11254 112553) iASL Compiler: 11256 11257Added support to disassemble SSDT and PSDTs. 11258 11259Implemented support to obtain SSDTs from the Windows registry if 11260available. 11261 11262 11263---------------------------------------- 1126409 January 2003. Summary of changes for version 20030109. 11265 112661) ACPI CA Core Subsystem: 11267 11268Changed the behavior of the internal Buffer-to-String conversion 11269function. The current ACPI specification states that the contents 11270of the buffer are "converted to a string of two-character 11271hexadecimal numbers, each separated by a space". Unfortunately, 11272this definition is not backwards compatible with existing ACPI 1.0 11273implementations (although the behavior was not defined in the ACPI 112741.0 specification). The new behavior simply copies data from the 11275buffer to the string until a null character is found or the end of 11276the buffer is reached. The new String object is always null 11277terminated. This problem was seen during the generation of _BIF 11278battery data where incorrect strings were returned for battery 11279type, etc. This will also require an errata to the ACPI 11280specification. 11281 11282Renamed all instances of NATIVE_UINT and NATIVE_INT to 11283ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 11284 11285Copyright in all module headers (both Linux and non-Linux) has be 11286updated to 2003. 11287 11288Code and Data Size: Current core subsystem library sizes are shown 11289below. These are the code and data sizes for the acpica.lib 11290produced by the Microsoft Visual C++ 6.0 compiler, and these 11291values do not include any ACPI driver or OSPM code. The debug 11292version of the code includes the debug output trace mechanism and 11293has a much larger code and data size. Note that these values will 11294vary depending on the efficiency of the compiler and the compiler 11295options used during generation. 11296 11297 Previous Release 11298 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 11299 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 11300 Current Release: 11301 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 11302 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 11303 11304 113052) Linux 11306 11307Fixed an oops on module insertion/removal (Matthew Tippett) 11308 11309(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 11310 11311(2.5) Replace pr_debug (Randy Dunlap) 11312 11313(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 11314 11315(Both) Eliminate spawning of thread from timer callback, in favor 11316of schedule_work() 11317 11318(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 11319 11320(Both) Added define for Fixed Function HW region (Matthew Wilcox) 11321 11322(Both) Add missing statics to button.c (Pavel Machek) 11323 11324Several changes have been made to the source code translation 11325utility that generates the Linux Code in order to make the code 11326more "Linux-like": 11327 11328All typedefs on structs and unions have been removed in keeping 11329with the Linux coding style. 11330 11331Removed the non-Linux SourceSafe module revision number from each 11332module header. 11333 11334Completed major overhaul of symbols to be lowercased for linux. 11335Doubled the number of symbols that are lowercased. 11336 11337Fixed a problem where identifiers within procedure headers and 11338within quotes were not fully lower cased (they were left with a 11339starting capital.) 11340 11341Some C macros whose only purpose is to allow the generation of 16- 11342bit code are now completely removed in the Linux code, increasing 11343readability and maintainability. 11344 11345---------------------------------------- 11346 1134712 December 2002. Summary of changes for version 20021212. 11348 11349 113501) ACPI CA Core Subsystem: 11351 11352Fixed a problem where the creation of a zero-length AML Buffer 11353would cause a fault. 11354 11355Fixed a problem where a Buffer object that pointed to a static AML 11356buffer (in an ACPI table) could inadvertently be deleted, causing 11357memory corruption. 11358 11359Fixed a problem where a user buffer (passed in to the external 11360ACPI CA interfaces) could be overwritten if the buffer was too 11361small to complete the operation, causing memory corruption. 11362 11363Fixed a problem in the Buffer-to-String conversion code where a 11364string of length one was always returned, regardless of the size 11365of the input Buffer object. 11366 11367Removed the NATIVE_CHAR data type across the entire source due to 11368lack of need and lack of consistent use. 11369 11370Code and Data Size: Current core subsystem library sizes are shown 11371below. These are the code and data sizes for the acpica.lib 11372produced by the Microsoft Visual C++ 6.0 compiler, and these 11373values do not include any ACPI driver or OSPM code. The debug 11374version of the code includes the debug output trace mechanism and 11375has a much larger code and data size. Note that these values will 11376vary depending on the efficiency of the compiler and the compiler 11377options used during generation. 11378 11379 Previous Release 11380 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 11381 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 11382 Current Release: 11383 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 11384 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 11385 11386 11387---------------------------------------- 1138805 December 2002. Summary of changes for version 20021205. 11389 113901) ACPI CA Core Subsystem: 11391 11392Fixed a problem where a store to a String or Buffer object could 11393cause corruption of the DSDT if the object type being stored was 11394the same as the target object type and the length of the object 11395being stored was equal to or smaller than the original (existing) 11396target object. This was seen to cause corruption of battery _BIF 11397buffers if the _BIF method modified the buffer on the fly. 11398 11399Fixed a problem where an internal error was generated if a control 11400method invocation was used in an OperationRegion, Buffer, or 11401Package declaration. This was caused by the deferred parsing of 11402the control method and thus the deferred creation of the internal 11403method object. The solution to this problem was to create the 11404internal method object at the moment the method is encountered in 11405the first pass - so that subsequent references to the method will 11406able to obtain the required parameter count and thus properly 11407parse the method invocation. This problem presented itself as an 11408AE_AML_INTERNAL during the pass 1 parse phase during table load. 11409 11410Fixed a problem where the internal String object copy routine did 11411not always allocate sufficient memory for the target String object 11412and caused memory corruption. This problem was seen to cause 11413"Allocation already present in list!" errors as memory allocation 11414became corrupted. 11415 11416Implemented a new function for the evaluation of namespace objects 11417that allows the specification of the allowable return object 11418types. This simplifies a lot of code that checks for a return 11419object of one or more specific objects returned from the 11420evaluation (such as _STA, etc.) This may become and external 11421function if it would be useful to ACPI-related drivers. 11422 11423Completed another round of prefixing #defines with "ACPI_" for 11424clarity. 11425 11426Completed additional code restructuring to allow more modular 11427linking for iASL compiler and AcpiExec. Several files were split 11428creating new files. New files: nsparse.c dsinit.c evgpe.c 11429 11430Implemented an abort mechanism to terminate an executing control 11431method via the AML debugger. This feature is useful for debugging 11432control methods that depend (wait) for specific hardware 11433responses. 11434 11435Code and Data Size: Current core subsystem library sizes are shown 11436below. These are the code and data sizes for the acpica.lib 11437produced by the Microsoft Visual C++ 6.0 compiler, and these 11438values do not include any ACPI driver or OSPM code. The debug 11439version of the code includes the debug output trace mechanism and 11440has a much larger code and data size. Note that these values will 11441vary depending on the efficiency of the compiler and the compiler 11442options used during generation. 11443 11444 Previous Release 11445 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 11446 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 11447 Current Release: 11448 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 11449 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 11450 11451 114522) iASL Compiler/Disassembler 11453 11454Fixed a compiler code generation problem for "Interrupt" Resource 11455Descriptors. If specified in the ASL, the optional "Resource 11456Source Index" and "Resource Source" fields were not inserted into 11457the correct location within the AML resource descriptor, creating 11458an invalid descriptor. 11459 11460Fixed a disassembler problem for "Interrupt" resource descriptors. 11461The optional "Resource Source Index" and "Resource Source" fields 11462were ignored. 11463 11464 11465---------------------------------------- 1146622 November 2002. Summary of changes for version 20021122. 11467 11468 114691) ACPI CA Core Subsystem: 11470 11471Fixed a reported problem where an object stored to a Method Local 11472or Arg was not copied to a new object during the store - the 11473object pointer was simply copied to the Local/Arg. This caused 11474all subsequent operations on the Local/Arg to also affect the 11475original source of the store operation. 11476 11477Fixed a problem where a store operation to a Method Local or Arg 11478was not completed properly if the Local/Arg contained a reference 11479(from RefOf) to a named field. The general-purpose store-to- 11480namespace-node code is now used so that this case is handled 11481automatically. 11482 11483Fixed a problem where the internal object copy routine would cause 11484a protection fault if the object being copied was a Package and 11485contained either 1) a NULL package element or 2) a nested sub- 11486package. 11487 11488Fixed a problem with the GPE initialization that resulted from an 11489ambiguity in the ACPI specification. One section of the 11490specification states that both the address and length of the GPE 11491block must be zero if the block is not supported. Another section 11492implies that only the address need be zero if the block is not 11493supported. The code has been changed so that both the address and 11494the length must be non-zero to indicate a valid GPE block (i.e., 11495if either the address or the length is zero, the GPE block is 11496invalid.) 11497 11498Code and Data Size: Current core subsystem library sizes are shown 11499below. These are the code and data sizes for the acpica.lib 11500produced by the Microsoft Visual C++ 6.0 compiler, and these 11501values do not include any ACPI driver or OSPM code. The debug 11502version of the code includes the debug output trace mechanism and 11503has a much larger code and data size. Note that these values will 11504vary depending on the efficiency of the compiler and the compiler 11505options used during generation. 11506 11507 Previous Release 11508 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 11509 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 11510 Current Release: 11511 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 11512 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 11513 11514 115152) Linux 11516 11517Cleaned up EC driver. Exported an external EC read/write 11518interface. By going through this, other drivers (most notably 11519sonypi) will be able to serialize access to the EC. 11520 11521 115223) iASL Compiler/Disassembler 11523 11524Implemented support to optionally generate include files for both 11525ASM and C (the -i switch). This simplifies BIOS development by 11526automatically creating include files that contain external 11527declarations for the symbols that are created within the 11528 11529(optionally generated) ASM and C AML source files. 11530 11531 11532---------------------------------------- 1153315 November 2002. Summary of changes for version 20021115. 11534 115351) ACPI CA Core Subsystem: 11536 11537Fixed a memory leak problem where an error during resolution of 11538 11539method arguments during a method invocation from another method 11540failed to cleanup properly by deleting all successfully resolved 11541argument objects. 11542 11543Fixed a problem where the target of the Index() operator was not 11544correctly constructed if the source object was a package. This 11545problem has not been detected because the use of a target operand 11546with Index() is very rare. 11547 11548Fixed a problem with the Index() operator where an attempt was 11549made to delete the operand objects twice. 11550 11551Fixed a problem where an attempt was made to delete an operand 11552twice during execution of the CondRefOf() operator if the target 11553did not exist. 11554 11555Implemented the first of perhaps several internal create object 11556functions that create and initialize a specific object type. This 11557consolidates duplicated code wherever the object is created, thus 11558shrinking the size of the subsystem. 11559 11560Implemented improved debug/error messages for errors that occur 11561during nested method invocations. All executing method pathnames 11562are displayed (with the error) as the call stack is unwound - thus 11563simplifying debug. 11564 11565Fixed a problem introduced in the 10/02 release that caused 11566premature deletion of a buffer object if a buffer was used as an 11567ASL operand where an integer operand is required (Thus causing an 11568implicit object conversion from Buffer to Integer.) The change in 11569the 10/02 release was attempting to fix a memory leak (albeit 11570incorrectly.) 11571 11572Code and Data Size: Current core subsystem library sizes are shown 11573below. These are the code and data sizes for the acpica.lib 11574produced by the Microsoft Visual C++ 6.0 compiler, and these 11575values do not include any ACPI driver or OSPM code. The debug 11576version of the code includes the debug output trace mechanism and 11577has a much larger code and data size. Note that these values will 11578vary depending on the efficiency of the compiler and the compiler 11579options used during generation. 11580 11581 Previous Release 11582 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 11583 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 11584 Current Release: 11585 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 11586 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 11587 11588 115892) Linux 11590 11591Changed the implementation of the ACPI semaphores to use down() 11592instead of down_interruptable(). It is important that the 11593execution of ACPI control methods not be interrupted by signals. 11594Methods must run to completion, or the system may be left in an 11595unknown/unstable state. 11596 11597Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 11598(Shawn Starr) 11599 11600 116013) iASL Compiler/Disassembler 11602 11603 11604Changed the default location of output files. All output files 11605are now placed in the current directory by default instead of in 11606the directory of the source file. This change may affect some 11607existing makefiles, but it brings the behavior of the compiler in 11608line with other similar tools. The location of the output files 11609can be overridden with the -p command line switch. 11610 11611 11612---------------------------------------- 1161311 November 2002. Summary of changes for version 20021111. 11614 11615 116160) ACPI Specification 2.0B is released and is now available at: 11617http://www.acpi.info/index.html 11618 11619 116201) ACPI CA Core Subsystem: 11621 11622Implemented support for the ACPI 2.0 SMBus Operation Regions. 11623This includes the early detection and handoff of the request to 11624the SMBus region handler (avoiding all of the complex field 11625support code), and support for the bidirectional return packet 11626from an SMBus write operation. This paves the way for the 11627development of SMBus drivers in each host operating system. 11628 11629Fixed a problem where the semaphore WAIT_FOREVER constant was 11630defined as 32 bits, but must be 16 bits according to the ACPI 11631specification. This had the side effect of causing ASL 11632Mutex/Event timeouts even though the ASL code requested a wait 11633forever. Changed all internal references to the ACPI timeout 11634parameter to 16 bits to prevent future problems. Changed the name 11635of WAIT_FOREVER to ACPI_WAIT_FOREVER. 11636 11637Code and Data Size: Current core subsystem library sizes are shown 11638below. These are the code and data sizes for the acpica.lib 11639produced by the Microsoft Visual C++ 6.0 compiler, and these 11640values do not include any ACPI driver or OSPM code. The debug 11641version of the code includes the debug output trace mechanism and 11642has a much larger code and data size. Note that these values will 11643vary depending on the efficiency of the compiler and the compiler 11644options used during generation. 11645 11646 Previous Release 11647 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 11648 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 11649 Current Release: 11650 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 11651 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 11652 11653 116542) Linux 11655 11656Module loading/unloading fixes (John Cagle) 11657 11658 116593) iASL Compiler/Disassembler 11660 11661Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 11662 11663Implemented support for the disassembly of all SMBus protocol 11664keywords (SMBQuick, SMBWord, etc.) 11665 11666---------------------------------------- 1166701 November 2002. Summary of changes for version 20021101. 11668 11669 116701) ACPI CA Core Subsystem: 11671 11672Fixed a problem where platforms that have a GPE1 block but no GPE0 11673block were not handled correctly. This resulted in a "GPE 11674overlap" error message. GPE0 is no longer required. 11675 11676Removed code added in the previous release that inserted nodes 11677into the namespace in alphabetical order. This caused some side- 11678effects on various machines. The root cause of the problem is 11679still under investigation since in theory, the internal ordering 11680of the namespace nodes should not matter. 11681 11682 11683Enhanced error reporting for the case where a named object is not 11684found during control method execution. The full ACPI namepath 11685(name reference) of the object that was not found is displayed in 11686this case. 11687 11688Note: as a result of the overhaul of the namespace object types in 11689the previous release, the namespace nodes for the predefined 11690scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 11691instead of ACPI_TYPE_ANY. This simplifies the namespace 11692management code but may affect code that walks the namespace tree 11693looking for specific object types. 11694 11695Code and Data Size: Current core subsystem library sizes are shown 11696below. These are the code and data sizes for the acpica.lib 11697produced by the Microsoft Visual C++ 6.0 compiler, and these 11698values do not include any ACPI driver or OSPM code. The debug 11699version of the code includes the debug output trace mechanism and 11700has a much larger code and data size. Note that these values will 11701vary depending on the efficiency of the compiler and the compiler 11702options used during generation. 11703 11704 Previous Release 11705 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 11706 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 11707 Current Release: 11708 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 11709 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 11710 11711 117122) Linux 11713 11714Fixed a problem introduced in the previous release where the 11715Processor and Thermal objects were not recognized and installed in 11716/proc. This was related to the scope type change described above. 11717 11718 117193) iASL Compiler/Disassembler 11720 11721Implemented the -g option to get all of the required ACPI tables 11722from the registry and save them to files (Windows version of the 11723compiler only.) The required tables are the FADT, FACS, and DSDT. 11724 11725Added ACPI table checksum validation during table disassembly in 11726order to catch corrupted tables. 11727 11728 11729---------------------------------------- 1173022 October 2002. Summary of changes for version 20021022. 11731 117321) ACPI CA Core Subsystem: 11733 11734Implemented a restriction on the Scope operator that the target 11735must already exist in the namespace at the time the operator is 11736encountered (during table load or method execution). In other 11737words, forward references are not allowed and Scope() cannot 11738create a new object. This changes the previous behavior where the 11739interpreter would create the name if not found. This new behavior 11740correctly enables the search-to-root algorithm during namespace 11741lookup of the target name. Because of this upsearch, this fixes 11742the known Compaq _SB_.OKEC problem and makes both the AML 11743interpreter and iASL compiler compatible with other ACPI 11744implementations. 11745 11746Completed a major overhaul of the internal ACPI object types for 11747the ACPI Namespace and the associated operand objects. Many of 11748these types had become obsolete with the introduction of the two- 11749pass namespace load. This cleanup simplifies the code and makes 11750the entire namespace load mechanism much clearer and easier to 11751understand. 11752 11753Improved debug output for tracking scope opening/closing to help 11754diagnose scoping issues. The old scope name as well as the new 11755scope name are displayed. Also improved error messages for 11756problems with ASL Mutex objects and error messages for GPE 11757problems. 11758 11759Cleaned up the namespace dump code, removed obsolete code. 11760 11761All string output (for all namespace/object dumps) now uses the 11762common ACPI string output procedure which handles escapes properly 11763and does not emit non-printable characters. 11764 11765Fixed some issues with constants in the 64-bit version of the 11766local C library (utclib.c) 11767 11768 117692) Linux 11770 11771EC Driver: No longer attempts to acquire the Global Lock at 11772interrupt level. 11773 11774 117753) iASL Compiler/Disassembler 11776 11777Implemented ACPI 2.0B grammar change that disallows all Type 1 and 117782 opcodes outside of a control method. This means that the 11779"executable" operators (versus the "namespace" operators) cannot 11780be used at the table level; they can only be used within a control 11781method. 11782 11783Implemented the restriction on the Scope() operator where the 11784target must already exist in the namespace at the time the 11785operator is encountered (during ASL compilation). In other words, 11786forward references are not allowed and Scope() cannot create a new 11787object. This makes the iASL compiler compatible with other ACPI 11788implementations and makes the Scope() implementation adhere to the 11789ACPI specification. 11790 11791Fixed a problem where namepath optimization for the Alias operator 11792was optimizing the wrong path (of the two namepaths.) This caused 11793a "Missing alias link" error message. 11794 11795Fixed a problem where an "unknown reserved name" warning could be 11796incorrectly generated for names like "_SB" when the trailing 11797underscore is not used in the original ASL. 11798 11799Fixed a problem where the reserved name check did not handle 11800NamePaths with multiple NameSegs correctly. The first nameseg of 11801the NamePath was examined instead of the last NameSeg. 11802 11803 11804---------------------------------------- 11805 1180602 October 2002. Summary of changes for this release. 11807 11808 118091) ACPI CA Core Subsystem version 20021002: 11810 11811Fixed a problem where a store/copy of a string to an existing 11812string did not always set the string length properly in the String 11813object. 11814 11815Fixed a reported problem with the ToString operator where the 11816behavior was identical to the ToHexString operator instead of just 11817simply converting a raw buffer to a string data type. 11818 11819Fixed a problem where CopyObject and the other "explicit" 11820conversion operators were not updating the internal namespace node 11821type as part of the store operation. 11822 11823Fixed a memory leak during implicit source operand conversion 11824where the original object was not deleted if it was converted to a 11825new object of a different type. 11826 11827Enhanced error messages for all problems associated with namespace 11828lookups. Common procedure generates and prints the lookup name as 11829well as the formatted status. 11830 11831Completed implementation of a new design for the Alias support 11832within the namespace. The existing design did not handle the case 11833where a new object was assigned to one of the two names due to the 11834use of an explicit conversion operator, resulting in the two names 11835pointing to two different objects. The new design simply points 11836the Alias name to the original name node - not to the object. 11837This results in a level of indirection that must be handled in the 11838name resolution mechanism. 11839 11840Code and Data Size: Current core subsystem library sizes are shown 11841below. These are the code and data sizes for the acpica.lib 11842produced by the Microsoft Visual C++ 6.0 compiler, and these 11843values do not include any ACPI driver or OSPM code. The debug 11844version of the code includes the debug output trace mechanism and 11845has a larger code and data size. Note that these values will vary 11846depending on the efficiency of the compiler and the compiler 11847options used during generation. 11848 11849 Previous Release 11850 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 11851 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 11852 Current Release: 11853 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 11854 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 11855 11856 118572) Linux 11858 11859Initialize thermal driver's timer before it is used. (Knut 11860Neumann) 11861 11862Allow handling negative celsius values. (Kochi Takayoshi) 11863 11864Fix thermal management and make trip points. R/W (Pavel Machek) 11865 11866Fix /proc/acpi/sleep. (P. Christeas) 11867 11868IA64 fixes. (David Mosberger) 11869 11870Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 11871 11872Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 11873Brodowski) 11874 11875 118763) iASL Compiler/Disassembler 11877 11878Clarified some warning/error messages. 11879 11880 11881---------------------------------------- 1188218 September 2002. Summary of changes for this release. 11883 11884 118851) ACPI CA Core Subsystem version 20020918: 11886 11887Fixed a reported problem with reference chaining (via the Index() 11888and RefOf() operators) in the ObjectType() and SizeOf() operators. 11889The definition of these operators includes the dereferencing of 11890all chained references to return information on the base object. 11891 11892Fixed a problem with stores to indexed package elements - the 11893existing code would not complete the store if an "implicit 11894conversion" was not performed. In other words, if the existing 11895object (package element) was to be replaced completely, the code 11896didn't handle this case. 11897 11898Relaxed typechecking on the ASL "Scope" operator to allow the 11899target name to refer to an object of type Integer, String, or 11900Buffer, in addition to the scoping object types (Device, 11901predefined Scopes, Processor, PowerResource, and ThermalZone.) 11902This allows existing AML code that has workarounds for a bug in 11903Windows to function properly. A warning is issued, however. This 11904affects both the AML interpreter and the iASL compiler. Below is 11905an example of this type of ASL code: 11906 11907 Name(DEB,0x00) 11908 Scope(DEB) 11909 { 11910 11911Fixed some reported problems with 64-bit integer support in the 11912local implementation of C library functions (clib.c) 11913 11914 119152) Linux 11916 11917Use ACPI fix map region instead of IOAPIC region, since it is 11918undefined in non-SMP. 11919 11920Ensure that the SCI has the proper polarity and trigger, even on 11921systems that do not have an interrupt override entry in the MADT. 11922 119232.5 big driver reorganization (Pat Mochel) 11924 11925Use early table mapping code from acpitable.c (Andi Kleen) 11926 11927New blacklist entries (Andi Kleen) 11928 11929Blacklist improvements. Split blacklist code out into a separate 11930file. Move checking the blacklist to very early. Previously, we 11931would use ACPI tables, and then halfway through init, check the 11932blacklist -- too late. Now, it's early enough to completely fall- 11933back to non-ACPI. 11934 11935 119363) iASL Compiler/Disassembler version 20020918: 11937 11938Fixed a problem where the typechecking code didn't know that an 11939alias could point to a method. In other words, aliases were not 11940being dereferenced during typechecking. 11941 11942 11943---------------------------------------- 1194429 August 2002. Summary of changes for this release. 11945 119461) ACPI CA Core Subsystem Version 20020829: 11947 11948If the target of a Scope() operator already exists, it must be an 11949object type that actually opens a scope -- such as a Device, 11950Method, Scope, etc. This is a fatal runtime error. Similar error 11951check has been added to the iASL compiler also. 11952 11953Tightened up the namespace load to disallow multiple names in the 11954same scope. This previously was allowed if both objects were of 11955the same type. (i.e., a lookup was the same as entering a new 11956name). 11957 11958 119592) Linux 11960 11961Ensure that the ACPI interrupt has the proper trigger and 11962polarity. 11963 11964local_irq_disable is extraneous. (Matthew Wilcox) 11965 11966Make "acpi=off" actually do what it says, and not use the ACPI 11967interpreter *or* the tables. 11968 11969Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 11970Takayoshi) 11971 11972 119733) iASL Compiler/Disassembler Version 20020829: 11974 11975Implemented namepath optimization for name declarations. For 11976example, a declaration like "Method (\_SB_.ABCD)" would get 11977optimized to "Method (ABCD)" if the declaration is within the 11978\_SB_ scope. This optimization is in addition to the named 11979reference path optimization first released in the previous 11980version. This would seem to complete all possible optimizations 11981for namepaths within the ASL/AML. 11982 11983If the target of a Scope() operator already exists, it must be an 11984object type that actually opens a scope -- such as a Device, 11985Method, Scope, etc. 11986 11987Implemented a check and warning for unreachable code in the same 11988block below a Return() statement. 11989 11990Fixed a problem where the listing file was not generated if the 11991compiler aborted if the maximum error count was exceeded (200). 11992 11993Fixed a problem where the typechecking of method return values was 11994broken. This includes the check for a return value when the 11995method is invoked as a TermArg (a return value is expected.) 11996 11997Fixed a reported problem where EOF conditions during a quoted 11998string or comment caused a fault. 11999 12000 12001---------------------------------------- 1200215 August 2002. Summary of changes for this release. 12003 120041) ACPI CA Core Subsystem Version 20020815: 12005 12006Fixed a reported problem where a Store to a method argument that 12007contains a reference did not perform the indirect store correctly. 12008This problem was created during the conversion to the new 12009reference object model - the indirect store to a method argument 12010code was not updated to reflect the new model. 12011 12012Reworked the ACPI mode change code to better conform to ACPI 2.0, 12013handle corner cases, and improve code legibility (Kochi Takayoshi) 12014 12015Fixed a problem with the pathname parsing for the carat (^) 12016prefix. The heavy use of the carat operator by the new namepath 12017optimization in the iASL compiler uncovered a problem with the AML 12018interpreter handling of this prefix. In the case where one or 12019more carats precede a single nameseg, the nameseg was treated as 12020standalone and the search rule (to root) was inadvertently 12021applied. This could cause both the iASL compiler and the 12022interpreter to find the wrong object or to miss the error that 12023should occur if the object does not exist at that exact pathname. 12024 12025Found and fixed the problem where the HP Pavilion DSDT would not 12026load. This was a relatively minor tweak to the table loading code 12027(a problem caused by the unexpected encounter with a method 12028invocation not within a control method), but it does not solve the 12029overall issue of the execution of AML code at the table level. 12030This investigation is still ongoing. 12031 12032Code and Data Size: Current core subsystem library sizes are shown 12033below. These are the code and data sizes for the acpica.lib 12034produced by the Microsoft Visual C++ 6.0 compiler, and these 12035values do not include any ACPI driver or OSPM code. The debug 12036version of the code includes the debug output trace mechanism and 12037has a larger code and data size. Note that these values will vary 12038depending on the efficiency of the compiler and the compiler 12039options used during generation. 12040 12041 Previous Release 12042 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 12043 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 12044 Current Release: 12045 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 12046 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 12047 12048 120492) Linux 12050 12051Remove redundant slab.h include (Brad Hards) 12052 12053Fix several bugs in thermal.c (Herbert Nachtnebel) 12054 12055Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 12056 12057Change acpi_system_suspend to use updated irq functions (Pavel 12058Machek) 12059 12060Export acpi_get_firmware_table (Matthew Wilcox) 12061 12062Use proper root proc entry for ACPI (Kochi Takayoshi) 12063 12064Fix early-boot table parsing (Bjorn Helgaas) 12065 12066 120673) iASL Compiler/Disassembler 12068 12069Reworked the compiler options to make them more consistent and to 12070use two-letter options where appropriate. We were running out of 12071sensible letters. This may break some makefiles, so check the 12072current options list by invoking the compiler with no parameters. 12073 12074Completed the design and implementation of the ASL namepath 12075optimization option for the compiler. This option optimizes all 12076references to named objects to the shortest possible path. The 12077first attempt tries to utilize a single nameseg (4 characters) and 12078the "search-to-root" algorithm used by the interpreter. If that 12079cannot be used (because either the name is not in the search path 12080or there is a conflict with another object with the same name), 12081the pathname is optimized using the carat prefix (usually a 12082shorter string than specifying the entire path from the root.) 12083 12084Implemented support to obtain the DSDT from the Windows registry 12085(when the disassembly option is specified with no input file). 12086Added this code as the implementation for AcpiOsTableOverride in 12087the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 12088utility) to scan memory for the DSDT to the AcpiOsTableOverride 12089function in the DOS OSL to make the disassembler truly OS 12090independent. 12091 12092Implemented a new option to disassemble and compile in one step. 12093When used without an input filename, this option will grab the 12094DSDT from the local machine, disassemble it, and compile it in one 12095step. 12096 12097Added a warning message for invalid escapes (a backslash followed 12098by any character other than the allowable escapes). This catches 12099the quoted string error "\_SB_" (which should be "\\_SB_" ). 12100 12101Also, there are numerous instances in the ACPI specification where 12102this error occurs. 12103 12104Added a compiler option to disable all optimizations. This is 12105basically the "compatibility mode" because by using this option, 12106the AML code will come out exactly the same as other ASL 12107compilers. 12108 12109Added error messages for incorrectly ordered dependent resource 12110functions. This includes: missing EndDependentFn macro at end of 12111dependent resource list, nested dependent function macros (both 12112start and end), and missing StartDependentFn macro. These are 12113common errors that should be caught at compile time. 12114 12115Implemented _OSI support for the disassembler and compiler. _OSI 12116must be included in the namespace for proper disassembly (because 12117the disassembler must know the number of arguments.) 12118 12119Added an "optimization" message type that is optional (off by 12120default). This message is used for all optimizations - including 12121constant folding, integer optimization, and namepath optimization. 12122 12123---------------------------------------- 1212425 July 2002. Summary of changes for this release. 12125 12126 121271) ACPI CA Core Subsystem Version 20020725: 12128 12129The AML Disassembler has been enhanced to produce compilable ASL 12130code and has been integrated into the iASL compiler (see below) as 12131well as the single-step disassembly for the AML debugger and the 12132disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 12133resource templates and macros are fully supported. The 12134disassembler has been tested on over 30 different AML files, 12135producing identical AML when the resulting disassembled ASL file 12136is recompiled with the same ASL compiler. 12137 12138Modified the Resource Manager to allow zero interrupts and zero 12139dma channels during the GetCurrentResources call. This was 12140causing problems on some platforms. 12141 12142Added the AcpiOsRedirectOutput interface to the OSL to simplify 12143output redirection for the AcpiOsPrintf and AcpiOsVprintf 12144interfaces. 12145 12146Code and Data Size: Current core subsystem library sizes are shown 12147below. These are the code and data sizes for the acpica.lib 12148produced by the Microsoft Visual C++ 6.0 compiler, and these 12149values do not include any ACPI driver or OSPM code. The debug 12150version of the code includes the debug output trace mechanism and 12151has a larger code and data size. Note that these values will vary 12152depending on the efficiency of the compiler and the compiler 12153options used during generation. 12154 12155 Previous Release 12156 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 12157 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 12158 Current Release: 12159 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 12160 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 12161 12162 121632) Linux 12164 12165Fixed a panic in the EC driver (Dominik Brodowski) 12166 12167Implemented checksum of the R/XSDT itself during Linux table scan 12168(Richard Schaal) 12169 12170 121713) iASL compiler 12172 12173The AML disassembler is integrated into the compiler. The "-d" 12174option invokes the disassembler to completely disassemble an 12175input AML file, producing as output a text ASL file with the 12176extension ".dsl" (to avoid name collisions with existing .asl 12177source files.) A future enhancement will allow the disassembler 12178to obtain the BIOS DSDT from the registry under Windows. 12179 12180Fixed a problem with the VendorShort and VendorLong resource 12181descriptors where an invalid AML sequence was created. 12182 12183Implemented a fix for BufferData term in the ASL parser. It was 12184inadvertently defined twice, allowing invalid syntax to pass and 12185causing reduction conflicts. 12186 12187Fixed a problem where the Ones opcode could get converted to a 12188value of zero if "Ones" was used where a byte, word or dword value 12189was expected. The 64-bit value is now truncated to the correct 12190size with the correct value. 12191 12192 12193 12194---------------------------------------- 1219502 July 2002. Summary of changes for this release. 12196 12197 121981) ACPI CA Core Subsystem Version 20020702: 12199 12200The Table Manager code has been restructured to add several new 12201features. Tables that are not required by the core subsystem 12202(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 12203validated in any way and are returned from AcpiGetFirmwareTable if 12204requested. The AcpiOsTableOverride interface is now called for 12205each table that is loaded by the subsystem in order to allow the 12206host to override any table it chooses. Previously, only the DSDT 12207could be overridden. Added one new files, tbrsdt.c and 12208tbgetall.c. 12209 12210Fixed a problem with the conversion of internal package objects to 12211external objects (when a package is returned from a control 12212method.) The return buffer length was set to zero instead of the 12213proper length of the package object. 12214 12215Fixed a reported problem with the use of the RefOf and DeRefOf 12216operators when passing reference arguments to control methods. A 12217new type of Reference object is used internally for references 12218produced by the RefOf operator. 12219 12220Added additional error messages in the Resource Manager to explain 12221AE_BAD_DATA errors when they occur during resource parsing. 12222 12223Split the AcpiEnableSubsystem into two primitives to enable a 12224finer granularity initialization sequence. These two calls should 12225be called in this order: AcpiEnableSubsystem (flags), 12226AcpiInitializeObjects (flags). The flags parameter remains the 12227same. 12228 12229 122302) Linux 12231 12232Updated the ACPI utilities module to understand the new style of 12233fully resolved package objects that are now returned from the core 12234subsystem. This eliminates errors of the form: 12235 12236 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 12237 acpi_utils-0430 [145] acpi_evaluate_reference: 12238 Invalid element in package (not a device reference) 12239 12240The method evaluation utility uses the new buffer allocation 12241scheme instead of calling AcpiEvaluate Object twice. 12242 12243Added support for ECDT. This allows the use of the Embedded 12244 12245Controller before the namespace has been fully initialized, which 12246is necessary for ACPI 2.0 support, and for some laptops to 12247initialize properly. (Laptops using ECDT are still rare, so only 12248limited testing was performed of the added functionality.) 12249 12250Fixed memory leaks in the EC driver. 12251 12252Eliminated a brittle code structure in acpi_bus_init(). 12253 12254Eliminated the acpi_evaluate() helper function in utils.c. It is 12255no longer needed since acpi_evaluate_object can optionally 12256allocate memory for the return object. 12257 12258Implemented fix for keyboard hang when getting battery readings on 12259some systems (Stephen White) 12260 12261PCI IRQ routing update (Dominik Brodowski) 12262 12263Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 12264support 12265 12266---------------------------------------- 1226711 June 2002. Summary of changes for this release. 12268 12269 122701) ACPI CA Core Subsystem Version 20020611: 12271 12272Fixed a reported problem where constants such as Zero and One 12273appearing within _PRT packages were not handled correctly within 12274the resource manager code. Originally reported against the ASL 12275compiler because the code generator now optimizes integers to 12276their minimal AML representation (i.e. AML constants if possible.) 12277The _PRT code now handles all AML constant opcodes correctly 12278(Zero, One, Ones, Revision). 12279 12280Fixed a problem with the Concatenate operator in the AML 12281interpreter where a buffer result object was incorrectly marked as 12282not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 12283 12284All package sub-objects are now fully resolved before they are 12285returned from the external ACPI interfaces. This means that name 12286strings are resolved to object handles, and constant operators 12287(Zero, One, Ones, Revision) are resolved to Integers. 12288 12289Implemented immediate resolution of the AML Constant opcodes 12290(Zero, One, Ones, Revision) to Integer objects upon detection 12291within the AML stream. This has simplified and reduced the 12292generated code size of the subsystem by eliminating about 10 12293switch statements for these constants (which previously were 12294contained in Reference objects.) The complicating issues are that 12295the Zero opcode is used as a "placeholder" for unspecified 12296optional target operands and stores to constants are defined to be 12297no-ops. 12298 12299Code and Data Size: Current core subsystem library sizes are shown 12300below. These are the code and data sizes for the acpica.lib 12301produced by the Microsoft Visual C++ 6.0 compiler, and these 12302values do not include any ACPI driver or OSPM code. The debug 12303version of the code includes the debug output trace mechanism and 12304has a larger code and data size. Note that these values will vary 12305depending on the efficiency of the compiler and the compiler 12306options used during generation. 12307 12308 Previous Release 12309 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 12310 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 12311 Current Release: 12312 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 12313 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 12314 12315 123162) Linux 12317 12318 12319Added preliminary support for obtaining _TRA data for PCI root 12320bridges (Bjorn Helgaas). 12321 12322 123233) iASL Compiler Version X2046: 12324 12325Fixed a problem where the "_DDN" reserved name was defined to be a 12326control method with one argument. There are no arguments, and 12327_DDN does not have to be a control method. 12328 12329Fixed a problem with the Linux version of the compiler where the 12330source lines printed with error messages were the wrong lines. 12331This turned out to be the "LF versus CR/LF" difference between 12332Windows and Unix. This appears to be the longstanding issue 12333concerning listing output and error messages. 12334 12335Fixed a problem with the Linux version of compiler where opcode 12336names within error messages were wrong. This was caused by a 12337slight difference in the output of the Flex tool on Linux versus 12338Windows. 12339 12340Fixed a problem with the Linux compiler where the hex output files 12341contained some garbage data caused by an internal buffer overrun. 12342 12343 12344---------------------------------------- 1234517 May 2002. Summary of changes for this release. 12346 12347 123481) ACPI CA Core Subsystem Version 20020517: 12349 12350Implemented a workaround to an BIOS bug discovered on the HP 12351OmniBook where the FADT revision number and the table size are 12352inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 12353behavior is to fallback to using only the ACPI 1.0 fields of the 12354FADT if the table is too small to be a ACPI 2.0 table as claimed 12355by the revision number. Although this is a BIOS bug, this is a 12356case where the workaround is simple enough and with no side 12357effects, so it seemed prudent to add it. A warning message is 12358issued, however. 12359 12360Implemented minimum size checks for the fixed-length ACPI tables - 12361- the FADT and FACS, as well as consistency checks between the 12362revision number and the table size. 12363 12364Fixed a reported problem in the table override support where the 12365new table pointer was incorrectly treated as a physical address 12366instead of a logical address. 12367 12368Eliminated the use of the AE_AML_ERROR exception and replaced it 12369with more descriptive codes. 12370 12371Fixed a problem where an exception would occur if an ASL Field was 12372defined with no named Field Units underneath it (used by some 12373index fields). 12374 12375Code and Data Size: Current core subsystem library sizes are shown 12376below. These are the code and data sizes for the acpica.lib 12377produced by the Microsoft Visual C++ 6.0 compiler, and these 12378values do not include any ACPI driver or OSPM code. The debug 12379version of the code includes the debug output trace mechanism and 12380has a larger code and data size. Note that these values will vary 12381depending on the efficiency of the compiler and the compiler 12382options used during generation. 12383 12384 Previous Release 12385 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 12386 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 12387 Current Release: 12388 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 12389 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 12390 12391 12392 123932) Linux 12394 12395Much work done on ACPI init (MADT and PCI IRQ routing support). 12396(Paul D. and Dominik Brodowski) 12397 12398Fix PCI IRQ-related panic on boot (Sam Revitch) 12399 12400Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 12401 12402Fix "MHz" typo (Dominik Brodowski) 12403 12404Fix RTC year 2000 issue (Dominik Brodowski) 12405 12406Preclude multiple button proc entries (Eric Brunet) 12407 12408Moved arch-specific code out of include/platform/aclinux.h 12409 124103) iASL Compiler Version X2044: 12411 12412Implemented error checking for the string used in the EISAID macro 12413(Usually used in the definition of the _HID object.) The code now 12414strictly enforces the PnP format - exactly 7 characters, 3 12415uppercase letters and 4 hex digits. 12416 12417If a raw string is used in the definition of the _HID object 12418(instead of the EISAID macro), the string must contain all 12419alphanumeric characters (e.g., "*PNP0011" is not allowed because 12420of the asterisk.) 12421 12422Implemented checking for invalid use of ACPI reserved names for 12423most of the name creation operators (Name, Device, Event, Mutex, 12424OperationRegion, PowerResource, Processor, and ThermalZone.) 12425Previously, this check was only performed for control methods. 12426 12427Implemented an additional check on the Name operator to emit an 12428error if a reserved name that must be implemented in ASL as a 12429control method is used. We know that a reserved name must be a 12430method if it is defined with input arguments. 12431 12432The warning emitted when a namespace object reference is not found 12433during the cross reference phase has been changed into an error. 12434The "External" directive should be used for names defined in other 12435modules. 12436 12437 124384) Tools and Utilities 12439 12440The 16-bit tools (adump16 and aexec16) have been regenerated and 12441tested. 12442 12443Fixed a problem with the output of both acpidump and adump16 where 12444the indentation of closing parentheses and brackets was not 12445 12446aligned properly with the parent block. 12447 12448 12449---------------------------------------- 1245003 May 2002. Summary of changes for this release. 12451 12452 124531) ACPI CA Core Subsystem Version 20020503: 12454 12455Added support a new OSL interface that allows the host operating 12456 12457system software to override the DSDT found in the firmware - 12458AcpiOsTableOverride. With this interface, the OSL can examine the 12459version of the firmware DSDT and replace it with a different one 12460if desired. 12461 12462Added new external interfaces for accessing ACPI registers from 12463device drivers and other system software - AcpiGetRegister and 12464AcpiSetRegister. This was simply an externalization of the 12465existing AcpiHwBitRegister interfaces. 12466 12467Fixed a regression introduced in the previous build where the 12468ASL/AML CreateField operator always returned an error, 12469"destination must be a NS Node". 12470 12471Extended the maximum time (before failure) to successfully enable 12472ACPI mode to 3 seconds. 12473 12474Code and Data Size: Current core subsystem library sizes are shown 12475below. These are the code and data sizes for the acpica.lib 12476produced by the Microsoft Visual C++ 6.0 compiler, and these 12477values do not include any ACPI driver or OSPM code. The debug 12478version of the code includes the debug output trace mechanism and 12479has a larger code and data size. Note that these values will vary 12480depending on the efficiency of the compiler and the compiler 12481options used during generation. 12482 12483 Previous Release 12484 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 12485 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 12486 Current Release: 12487 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 12488 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 12489 12490 124912) Linux 12492 12493Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 12494free. While 3 out of 4 of our in-house systems work fine, the last 12495one still hangs when testing the LAPIC timer. 12496 12497Renamed many files in 2.5 kernel release to omit "acpi_" from the 12498name. 12499 12500Added warning on boot for Presario 711FR. 12501 12502Sleep improvements (Pavel Machek) 12503 12504ACPI can now be built without CONFIG_PCI enabled. 12505 12506IA64: Fixed memory map functions (JI Lee) 12507 12508 125093) iASL Compiler Version X2043: 12510 12511Added support to allow the compiler to be integrated into the MS 12512VC++ development environment for one-button compilation of single 12513files or entire projects -- with error-to-source-line mapping. 12514 12515Implemented support for compile-time constant folding for the 12516Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 12517specification. This allows the ASL writer to use expressions 12518instead of Integer/Buffer/String constants in terms that must 12519evaluate to constants at compile time and will also simplify the 12520emitted AML in any such sub-expressions that can be folded 12521(evaluated at compile-time.) This increases the size of the 12522compiler significantly because a portion of the ACPI CA AML 12523interpreter is included within the compiler in order to pre- 12524evaluate constant expressions. 12525 12526 12527Fixed a problem with the "Unicode" ASL macro that caused the 12528compiler to fault. (This macro is used in conjunction with the 12529_STR reserved name.) 12530 12531Implemented an AML opcode optimization to use the Zero, One, and 12532Ones opcodes where possible to further reduce the size of integer 12533constants and thus reduce the overall size of the generated AML 12534code. 12535 12536Implemented error checking for new reserved terms for ACPI version 125372.0A. 12538 12539Implemented the -qr option to display the current list of ACPI 12540reserved names known to the compiler. 12541 12542Implemented the -qc option to display the current list of ASL 12543operators that are allowed within constant expressions and can 12544therefore be folded at compile time if the operands are constants. 12545 12546 125474) Documentation 12548 12549Updated the Programmer's Reference for new interfaces, data types, 12550and memory allocation model options. 12551 12552Updated the iASL Compiler User Reference to apply new format and 12553add information about new features and options. 12554 12555---------------------------------------- 1255619 April 2002. Summary of changes for this release. 12557 125581) ACPI CA Core Subsystem Version 20020419: 12559 12560The source code base for the Core Subsystem has been completely 12561cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 12562versions. The Lint option files used are included in the 12563/acpi/generate/lint directory. 12564 12565Implemented enhanced status/error checking across the entire 12566Hardware manager subsystem. Any hardware errors (reported from 12567the OSL) are now bubbled up and will abort a running control 12568method. 12569 12570 12571Fixed a problem where the per-ACPI-table integer width (32 or 64) 12572was stored only with control method nodes, causing a fault when 12573non-control method code was executed during table loading. The 12574solution implemented uses a global variable to indicate table 12575width across the entire ACPI subsystem. Therefore, ACPI CA does 12576not support mixed integer widths across different ACPI tables 12577(DSDT, SSDT). 12578 12579Fixed a problem where NULL extended fields (X fields) in an ACPI 125802.0 ACPI FADT caused the table load to fail. Although the 12581existing ACPI specification is a bit fuzzy on this topic, the new 12582behavior is to fall back on a ACPI 1.0 field if the corresponding 12583ACPI 2.0 X field is zero (even though the table revision indicates 12584a full ACPI 2.0 table.) The ACPI specification will be updated to 12585clarify this issue. 12586 12587Fixed a problem with the SystemMemory operation region handler 12588where memory was always accessed byte-wise even if the AML- 12589specified access width was larger than a byte. This caused 12590problems on systems with memory-mapped I/O. Memory is now 12591accessed with the width specified. On systems that do not support 12592non-aligned transfers, a check is made to guarantee proper address 12593alignment before proceeding in order to avoid an AML-caused 12594alignment fault within the kernel. 12595 12596 12597Fixed a problem with the ExtendedIrq resource where only one byte 12598of the 4-byte Irq field was extracted. 12599 12600Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 12601function was out of date and required a rewrite. 12602 12603Code and Data Size: Current core subsystem library sizes are shown 12604below. These are the code and data sizes for the acpica.lib 12605produced by the Microsoft Visual C++ 6.0 compiler, and these 12606values do not include any ACPI driver or OSPM code. The debug 12607version of the code includes the debug output trace mechanism and 12608has a larger code and data size. Note that these values will vary 12609depending on the efficiency of the compiler and the compiler 12610options used during generation. 12611 12612 Previous Release 12613 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 12614 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 12615 Current Release: 12616 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 12617 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 12618 12619 126202) Linux 12621 12622PCI IRQ routing fixes (Dominik Brodowski) 12623 12624 126253) iASL Compiler Version X2042: 12626 12627Implemented an additional compile-time error check for a field 12628unit whose size + minimum access width would cause a run-time 12629access beyond the end-of-region. Previously, only the field size 12630itself was checked. 12631 12632The Core subsystem and iASL compiler now share a common parse 12633object in preparation for compile-time evaluation of the type 126343/4/5 ASL operators. 12635 12636 12637---------------------------------------- 12638Summary of changes for this release: 03_29_02 12639 126401) ACPI CA Core Subsystem Version 20020329: 12641 12642Implemented support for late evaluation of TermArg operands to 12643Buffer and Package objects. This allows complex expressions to be 12644used in the declarations of these object types. 12645 12646Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 126471.0, if the field was larger than 32 bits, it was returned as a 12648buffer - otherwise it was returned as an integer. In ACPI 2.0, 12649the field is returned as a buffer only if the field is larger than 1265064 bits. The TableRevision is now considered when making this 12651conversion to avoid incompatibility with existing ASL code. 12652 12653Implemented logical addressing for AcpiOsGetRootPointer. This 12654allows an RSDP with either a logical or physical address. With 12655this support, the host OS can now override all ACPI tables with 12656one logical RSDP. Includes implementation of "typed" pointer 12657support to allow a common data type for both physical and logical 12658pointers internally. This required a change to the 12659AcpiOsGetRootPointer interface. 12660 12661Implemented the use of ACPI 2.0 Generic Address Structures for all 12662GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 12663mapped I/O for these ACPI features. 12664 12665Initialization now ignores not only non-required tables (All 12666tables other than the FADT, FACS, DSDT, and SSDTs), but also does 12667not validate the table headers of unrecognized tables. 12668 12669Fixed a problem where a notify handler could only be 12670installed/removed on an object of type Device. All "notify" 12671 12672objects are now supported -- Devices, Processor, Power, and 12673Thermal. 12674 12675Removed most verbosity from the ACPI_DB_INFO debug level. Only 12676critical information is returned when this debug level is enabled. 12677 12678Code and Data Size: Current core subsystem library sizes are shown 12679below. These are the code and data sizes for the acpica.lib 12680produced by the Microsoft Visual C++ 6.0 compiler, and these 12681values do not include any ACPI driver or OSPM code. The debug 12682version of the code includes the debug output trace mechanism and 12683has a larger code and data size. Note that these values will vary 12684depending on the efficiency of the compiler and the compiler 12685options used during generation. 12686 12687 Previous Release 12688 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 12689 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 12690 Current Release: 12691 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 12692 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 12693 12694 126952) Linux: 12696 12697The processor driver (acpi_processor.c) now fully supports ACPI 126982.0-based processor performance control (e.g. Intel(R) 12699SpeedStep(TM) technology) Note that older laptops that only have 12700the Intel "applet" interface are not supported through this. The 12701'limit' and 'performance' interface (/proc) are fully functional. 12702[Note that basic policy for controlling performance state 12703transitions will be included in the next version of ospmd.] The 12704idle handler was modified to more aggressively use C2, and PIIX4 12705errata handling underwent a complete overhaul (big thanks to 12706Dominik Brodowski). 12707 12708Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 12709based devices in the ACPI namespace are now dynamically bound 12710(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 12711This allows, among other things, ACPI to resolve bus numbers for 12712subordinate PCI bridges. 12713 12714Enhanced PCI IRQ routing to get the proper bus number for _PRT 12715entries defined underneath PCI bridges. 12716 12717Added IBM 600E to bad bios list due to invalid _ADR value for 12718PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 12719 12720In the process of adding full MADT support (e.g. IOAPIC) for IA32 12721(acpi.c, mpparse.c) -- stay tuned. 12722 12723Added back visual differentiation between fixed-feature and 12724control-method buttons in dmesg. Buttons are also subtyped (e.g. 12725button/power/PWRF) to simplify button identification. 12726 12727We no longer use -Wno-unused when compiling debug. Please ignore 12728any "_THIS_MODULE defined but not used" messages. 12729 12730Can now shut down the system using "magic sysrq" key. 12731 12732 127333) iASL Compiler version 2041: 12734 12735Fixed a problem where conversion errors for hex/octal/decimal 12736constants were not reported. 12737 12738Implemented a fix for the General Register template Address field. 12739This field was 8 bits when it should be 64. 12740 12741Fixed a problem where errors/warnings were no longer being emitted 12742within the listing output file. 12743 12744Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 12745exactly 4 characters, alphanumeric only. 12746 12747 12748 12749 12750---------------------------------------- 12751Summary of changes for this release: 03_08_02 12752 12753 127541) ACPI CA Core Subsystem Version 20020308: 12755 12756Fixed a problem with AML Fields where the use of the "AccessAny" 12757keyword could cause an interpreter error due to attempting to read 12758or write beyond the end of the parent Operation Region. 12759 12760Fixed a problem in the SystemMemory Operation Region handler where 12761an attempt was made to map memory beyond the end of the region. 12762This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 12763errors on some Linux systems. 12764 12765Fixed a problem where the interpreter/namespace "search to root" 12766algorithm was not functioning for some object types. Relaxed the 12767internal restriction on the search to allow upsearches for all 12768external object types as well as most internal types. 12769 12770 127712) Linux: 12772 12773We now use safe_halt() macro versus individual calls to sti | hlt. 12774 12775Writing to the processor limit interface should now work. "echo 1" 12776will increase the limit, 2 will decrease, and 0 will reset to the 12777 12778default. 12779 12780 127813) ASL compiler: 12782 12783Fixed segfault on Linux version. 12784 12785 12786---------------------------------------- 12787Summary of changes for this release: 02_25_02 12788 127891) ACPI CA Core Subsystem: 12790 12791 12792Fixed a problem where the GPE bit masks were not initialized 12793properly, causing erratic GPE behavior. 12794 12795Implemented limited support for multiple calling conventions. The 12796code can be generated with either the VPL (variable parameter 12797list, or "C") convention, or the FPL (fixed parameter list, or 12798"Pascal") convention. The core subsystem is about 3.4% smaller 12799when generated with FPL. 12800 12801 128022) Linux 12803 12804Re-add some /proc/acpi/event functionality that was lost during 12805the rewrite 12806 12807Resolved issue with /proc events for fixed-feature buttons showing 12808up as the system device. 12809 12810Fixed checks on C2/C3 latencies to be inclusive of maximum values. 12811 12812Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 12813 12814Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 12815 12816Fixed limit interface & usage to fix bugs with passive cooling 12817hysterisis. 12818 12819Restructured PRT support. 12820 12821 12822---------------------------------------- 12823Summary of changes for this label: 02_14_02 12824 12825 128261) ACPI CA Core Subsystem: 12827 12828Implemented support in AcpiLoadTable to allow loading of FACS and 12829FADT tables. 12830 12831Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 12832been removed. All 64-bit platforms should be migrated to the ACPI 128332.0 tables. The actbl71.h header has been removed from the source 12834tree. 12835 12836All C macros defined within the subsystem have been prefixed with 12837"ACPI_" to avoid collision with other system include files. 12838 12839Removed the return value for the two AcpiOsPrint interfaces, since 12840it is never used and causes lint warnings for ignoring the return 12841value. 12842 12843Added error checking to all internal mutex acquire and release 12844calls. Although a failure from one of these interfaces is 12845probably a fatal system error, these checks will cause the 12846immediate abort of the currently executing method or interface. 12847 12848Fixed a problem where the AcpiSetCurrentResources interface could 12849fault. This was a side effect of the deployment of the new memory 12850allocation model. 12851 12852Fixed a couple of problems with the Global Lock support introduced 12853in the last major build. The "common" (1.0/2.0) internal FACS was 12854being overwritten with the FACS signature and clobbering the 12855Global Lock pointer. Also, the actual firmware FACS was being 12856unmapped after construction of the "common" FACS, preventing 12857access to the actual Global Lock field within it. The "common" 12858internal FACS is no longer installed as an actual ACPI table; it 12859is used simply as a global. 12860 12861Code and Data Size: Current core subsystem library sizes are shown 12862below. These are the code and data sizes for the acpica.lib 12863produced by the Microsoft Visual C++ 6.0 compiler, and these 12864values do not include any ACPI driver or OSPM code. The debug 12865version of the code includes the debug output trace mechanism and 12866has a larger code and data size. Note that these values will vary 12867depending on the efficiency of the compiler and the compiler 12868options used during generation. 12869 12870 Previous Release (02_07_01) 12871 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 12872 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 12873 Current Release: 12874 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 12875 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 12876 12877 128782) Linux 12879 12880Updated Linux-specific code for core macro and OSL interface 12881changes described above. 12882 12883Improved /proc/acpi/event. It now can be opened only once and has 12884proper poll functionality. 12885 12886Fixed and restructured power management (acpi_bus). 12887 12888Only create /proc "view by type" when devices of that class exist. 12889 12890Fixed "charging/discharging" bug (and others) in acpi_battery. 12891 12892Improved thermal zone code. 12893 12894 128953) ASL Compiler, version X2039: 12896 12897 12898Implemented the new compiler restriction on ASL String hex/octal 12899escapes to non-null, ASCII values. An error results if an invalid 12900value is used. (This will require an ACPI 2.0 specification 12901change.) 12902 12903AML object labels that are output to the optional C and ASM source 12904are now prefixed with both the ACPI table signature and table ID 12905to help guarantee uniqueness within a large BIOS project. 12906 12907 12908---------------------------------------- 12909Summary of changes for this label: 02_01_02 12910 129111) ACPI CA Core Subsystem: 12912 12913ACPI 2.0 support is complete in the entire Core Subsystem and the 12914ASL compiler. All new ACPI 2.0 operators are implemented and all 12915other changes for ACPI 2.0 support are complete. With 12916simultaneous code and data optimizations throughout the subsystem, 12917ACPI 2.0 support has been implemented with almost no additional 12918cost in terms of code and data size. 12919 12920Implemented a new mechanism for allocation of return buffers. If 12921the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 12922be allocated on behalf of the caller. Consolidated all return 12923buffer validation and allocation to a common procedure. Return 12924buffers will be allocated via the primary OSL allocation interface 12925since it appears that a separate pool is not needed by most users. 12926If a separate pool is required for these buffers, the caller can 12927still use the original mechanism and pre-allocate the buffer(s). 12928 12929Implemented support for string operands within the DerefOf 12930operator. 12931 12932Restructured the Hardware and Event managers to be table driven, 12933simplifying the source code and reducing the amount of generated 12934code. 12935 12936Split the common read/write low-level ACPI register bitfield 12937procedure into a separate read and write, simplifying the code 12938considerably. 12939 12940Obsoleted the AcpiOsCallocate OSL interface. This interface was 12941used only a handful of times and didn't have enough critical mass 12942for a separate interface. Replaced with a common calloc procedure 12943in the core. 12944 12945Fixed a reported problem with the GPE number mapping mechanism 12946that allows GPE1 numbers to be non-contiguous with GPE0. 12947Reorganized the GPE information and shrunk a large array that was 12948originally large enough to hold info for all possible GPEs (256) 12949to simply large enough to hold all GPEs up to the largest GPE 12950number on the machine. 12951 12952Fixed a reported problem with resource structure alignment on 64- 12953bit platforms. 12954 12955Changed the AcpiEnableEvent and AcpiDisableEvent external 12956interfaces to not require any flags for the common case of 12957enabling/disabling a GPE. 12958 12959Implemented support to allow a "Notify" on a Processor object. 12960 12961Most TBDs in comments within the source code have been resolved 12962and eliminated. 12963 12964 12965Fixed a problem in the interpreter where a standalone parent 12966prefix (^) was not handled correctly in the interpreter and 12967debugger. 12968 12969Removed obsolete and unnecessary GPE save/restore code. 12970 12971Implemented Field support in the ASL Load operator. This allows a 12972table to be loaded from a named field, in addition to loading a 12973table directly from an Operation Region. 12974 12975Implemented timeout and handle support in the external Global Lock 12976interfaces. 12977 12978Fixed a problem in the AcpiDump utility where pathnames were no 12979longer being generated correctly during the dump of named objects. 12980 12981Modified the AML debugger to give a full display of if/while 12982predicates instead of just one AML opcode at a time. (The 12983predicate can have several nested ASL statements.) The old method 12984was confusing during single stepping. 12985 12986Code and Data Size: Current core subsystem library sizes are shown 12987below. These are the code and data sizes for the acpica.lib 12988produced by the Microsoft Visual C++ 6.0 compiler, and these 12989values do not include any ACPI driver or OSPM code. The debug 12990version of the code includes the debug output trace mechanism and 12991has a larger code and data size. Note that these values will vary 12992depending on the efficiency of the compiler and the compiler 12993options used during generation. 12994 12995 Previous Release (12_18_01) 12996 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 12997 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 12998 Current Release: 12999 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 13000 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 13001 130022) Linux 13003 13004 Implemented fix for PIIX reverse throttling errata (Processor 13005driver) 13006 13007Added new Limit interface (Processor and Thermal drivers) 13008 13009New thermal policy (Thermal driver) 13010 13011Many updates to /proc 13012 13013Battery "low" event support (Battery driver) 13014 13015Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 13016 13017IA32 - IA64 initialization unification, no longer experimental 13018 13019Menuconfig options redesigned 13020 130213) ASL Compiler, version X2037: 13022 13023Implemented several new output features to simplify integration of 13024AML code into firmware: 1) Output the AML in C source code with 13025labels for each named ASL object. The original ASL source code 13026is interleaved as C comments. 2) Output the AML in ASM source code 13027with labels and interleaved ASL source. 3) Output the AML in 13028raw hex table form, in either C or ASM. 13029 13030Implemented support for optional string parameters to the 13031LoadTable operator. 13032 13033Completed support for embedded escape sequences within string 13034literals. The compiler now supports all single character escapes 13035as well as the Octal and Hex escapes. Note: the insertion of a 13036null byte into a string literal (via the hex/octal escape) causes 13037the string to be immediately terminated. A warning is issued. 13038 13039Fixed a problem where incorrect AML was generated for the case 13040where an ASL namepath consists of a single parent prefix ( 13041 13042) with no trailing name segments. 13043 13044The compiler has been successfully generated with a 64-bit C 13045compiler. 13046 13047 13048 13049 13050---------------------------------------- 13051Summary of changes for this label: 12_18_01 13052 130531) Linux 13054 13055Enhanced blacklist with reason and severity fields. Any table's 13056signature may now be used to identify a blacklisted system. 13057 13058Call _PIC control method to inform the firmware which interrupt 13059model the OS is using. Turn on any disabled link devices. 13060 13061Cleaned up busmgr /proc error handling (Andreas Dilger) 13062 13063 2) ACPI CA Core Subsystem: 13064 13065Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 13066while loop) 13067 13068Completed implementation of the ACPI 2.0 "Continue", 13069"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 13070operators. All new ACPI 2.0 operators are now implemented in both 13071the ASL compiler and the AML interpreter. The only remaining ACPI 130722.0 task is support for the String data type in the DerefOf 13073operator. Fixed a problem with AcquireMutex where the status code 13074was lost if the caller had to actually wait for the mutex. 13075 13076Increased the maximum ASL Field size from 64K bits to 4G bits. 13077 13078Completed implementation of the external Global Lock interfaces -- 13079AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 13080Handler parameters were added. 13081 13082Completed another pass at removing warnings and issues when 13083compiling with 64-bit compilers. The code now compiles cleanly 13084with the Intel 64-bit C/C++ compiler. Most notably, the pointer 13085add and subtract (diff) macros have changed considerably. 13086 13087 13088Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1308964-bit platforms, 32-bits on all others. This type is used 13090wherever memory allocation and/or the C sizeof() operator is used, 13091and affects the OSL memory allocation interfaces AcpiOsAllocate 13092and AcpiOsCallocate. 13093 13094Implemented sticky user breakpoints in the AML debugger. 13095 13096Code and Data Size: Current core subsystem library sizes are shown 13097below. These are the code and data sizes for the acpica.lib 13098produced by the Microsoft Visual C++ 6.0 compiler, and these 13099values do not include any ACPI driver or OSPM code. The debug 13100version of the code includes the debug output trace mechanism and 13101has a larger code and data size. Note that these values will vary 13102depending on the efficiency of the compiler and the compiler 13103options used during generation. 13104 13105 Previous Release (12_05_01) 13106 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 13107 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 13108 Current Release: 13109 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 13110 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 13111 13112 3) ASL Compiler, version X2034: 13113 13114Now checks for (and generates an error if detected) the use of a 13115Break or Continue statement without an enclosing While statement. 13116 13117 13118Successfully generated the compiler with the Intel 64-bit C 13119compiler. 13120 13121 ---------------------------------------- 13122Summary of changes for this label: 12_05_01 13123 13124 1) ACPI CA Core Subsystem: 13125 13126The ACPI 2.0 CopyObject operator is fully implemented. This 13127operator creates a new copy of an object (and is also used to 13128bypass the "implicit conversion" mechanism of the Store operator.) 13129 13130The ACPI 2.0 semantics for the SizeOf operator are fully 13131implemented. The change is that performing a SizeOf on a 13132reference object causes an automatic dereference of the object to 13133tha actual value before the size is evaluated. This behavior was 13134undefined in ACPI 1.0. 13135 13136The ACPI 2.0 semantics for the Extended IRQ resource descriptor 13137have been implemented. The interrupt polarity and mode are now 13138independently set. 13139 13140Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 13141appearing in Package objects were not properly converted to 13142integers when the internal Package was converted to an external 13143object (via the AcpiEvaluateObject interface.) 13144 13145Fixed a problem with the namespace object deletion mechanism for 13146objects created by control methods. There were two parts to this 13147problem: 1) Objects created during the initialization phase method 13148parse were not being deleted, and 2) The object owner ID mechanism 13149to track objects was broken. 13150 13151Fixed a problem where the use of the ASL Scope operator within a 13152control method would result in an invalid opcode exception. 13153 13154Fixed a problem introduced in the previous label where the buffer 13155length required for the _PRT structure was not being returned 13156correctly. 13157 13158Code and Data Size: Current core subsystem library sizes are shown 13159below. These are the code and data sizes for the acpica.lib 13160produced by the Microsoft Visual C++ 6.0 compiler, and these 13161values do not include any ACPI driver or OSPM code. The debug 13162version of the code includes the debug output trace mechanism and 13163has a larger code and data size. Note that these values will vary 13164depending on the efficiency of the compiler and the compiler 13165options used during generation. 13166 13167 Previous Release (11_20_01) 13168 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 13169 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 13170 13171 Current Release: 13172 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 13173 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 13174 13175 2) Linux: 13176 13177Updated all files to apply cleanly against 2.4.16. 13178 13179Added basic PCI Interrupt Routing Table (PRT) support for IA32 13180(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 13181version supports both static and dyanmic PRT entries, but dynamic 13182entries are treated as if they were static (not yet 13183reconfigurable). Architecture- specific code to use this data is 13184absent on IA32 but should be available shortly. 13185 13186Changed the initialization sequence to start the ACPI interpreter 13187(acpi_init) prior to initialization of the PCI driver (pci_init) 13188in init/main.c. This ordering is required to support PRT and 13189facilitate other (future) enhancement. A side effect is that the 13190ACPI bus driver and certain device drivers can no longer be loaded 13191as modules. 13192 13193Modified the 'make menuconfig' options to allow PCI Interrupt 13194Routing support to be included without the ACPI Bus and other 13195device drivers. 13196 13197 3) ASL Compiler, version X2033: 13198 13199Fixed some issues with the use of the new CopyObject and 13200DataTableRegion operators. Both are fully functional. 13201 13202 ---------------------------------------- 13203Summary of changes for this label: 11_20_01 13204 13205 20 November 2001. Summary of changes for this release. 13206 13207 1) ACPI CA Core Subsystem: 13208 13209Updated Index support to match ACPI 2.0 semantics. Storing a 13210Integer, String, or Buffer to an Index of a Buffer will store only 13211the least-significant byte of the source to the Indexed buffer 13212byte. Multiple writes are not performed. 13213 13214Fixed a problem where the access type used in an AccessAs ASL 13215operator was not recorded correctly into the field object. 13216 13217Fixed a problem where ASL Event objects were created in a 13218signalled state. Events are now created in an unsignalled state. 13219 13220The internal object cache is now purged after table loading and 13221initialization to reduce the use of dynamic kernel memory -- on 13222the assumption that object use is greatest during the parse phase 13223of the entire table (versus the run-time use of individual control 13224methods.) 13225 13226ACPI 2.0 variable-length packages are now fully operational. 13227 13228Code and Data Size: Code and Data optimizations have permitted new 13229feature development with an actual reduction in the library size. 13230Current core subsystem library sizes are shown below. These are 13231the code and data sizes for the acpica.lib produced by the 13232Microsoft Visual C++ 6.0 compiler, and these values do not include 13233any ACPI driver or OSPM code. The debug version of the code 13234includes the debug output trace mechanism and has a larger code 13235and data size. Note that these values will vary depending on the 13236efficiency of the compiler and the compiler options used during 13237generation. 13238 13239 Previous Release (11_09_01): 13240 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 13241 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 13242 13243 Current Release: 13244 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 13245 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 13246 13247 2) Linux: 13248 13249Enhanced the ACPI boot-time initialization code to allow the use 13250of Local APIC tables for processor enumeration on IA-32, and to 13251pave the way for a fully MPS-free boot (on SMP systems) in the 13252near future. This functionality replaces 13253arch/i386/kernel/acpitables.c, which was introduced in an earlier 132542.4.15-preX release. To enable this feature you must add 13255"acpi_boot=on" to the kernel command line -- see the help entry 13256for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 13257the works... 13258 13259Restructured the configuration options to allow boot-time table 13260parsing support without inclusion of the ACPI Interpreter (and 13261other) code. 13262 13263NOTE: This release does not include fixes for the reported events, 13264power-down, and thermal passive cooling issues (coming soon). 13265 13266 3) ASL Compiler: 13267 13268Added additional typechecking for Fields within restricted access 13269Operation Regions. All fields within EC and CMOS regions must be 13270declared with ByteAcc. All fields withing SMBus regions must be 13271declared with the BufferAcc access type. 13272 13273Fixed a problem where the listing file output of control methods 13274no longer interleaved the actual AML code with the ASL source 13275code. 13276 13277 13278 13279 13280---------------------------------------- 13281Summary of changes for this label: 11_09_01 13282 132831) ACPI CA Core Subsystem: 13284 13285Implemented ACPI 2.0-defined support for writes to fields with a 13286Buffer, String, or Integer source operand that is smaller than the 13287target field. In these cases, the source operand is zero-extended 13288to fill the target field. 13289 13290Fixed a problem where a Field starting bit offset (within the 13291parent operation region) was calculated incorrectly if the 13292 13293alignment of the field differed from the access width. This 13294affected CreateWordField, CreateDwordField, CreateQwordField, and 13295possibly other fields that use the "AccessAny" keyword. 13296 13297Fixed a problem introduced in the 11_02_01 release where indirect 13298stores through method arguments did not operate correctly. 13299 133002) Linux: 13301 13302Implemented boot-time ACPI table parsing support 13303(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 13304facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 13305legacy BIOS interfaces (e.g. MPS) for the configuration of system 13306processors, memory, and interrupts during setup_arch(). Note that 13307this patch does not include the required architecture-specific 13308changes required to apply this information -- subsequent patches 13309will be posted for both IA32 and IA64 to achieve this. 13310 13311Added low-level sleep support for IA32 platforms, courtesy of Pat 13312Mochel. This allows IA32 systems to transition to/from various 13313sleeping states (e.g. S1, S3), although the lack of a centralized 13314driver model and power-manageable drivers will prevent its 13315(successful) use on most systems. 13316 13317Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 13318submenu, unified IA32 and IA64 options, added new "Boot using ACPI 13319tables" option, etc. 13320 13321Increased the default timeout for the EC driver from 1ms to 10ms 13322(1000 cycles of 10us) to try to address AE_TIME errors during EC 13323transactions. 13324 13325 ---------------------------------------- 13326Summary of changes for this label: 11_02_01 13327 133281) ACPI CA Core Subsystem: 13329 13330ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 13331(QWordAcc keyword). All ACPI 2.0 64-bit support is now 13332implemented. 13333 13334OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 13335changes to support ACPI 2.0 Qword field access. Read/Write 13336PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 13337accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 13338the value parameter for the address space handler interface is now 13339an ACPI_INTEGER. OSL implementations of these interfaces must now 13340handle the case where the Width parameter is 64. 13341 13342Index Fields: Fixed a problem where unaligned bit assembly and 13343disassembly for IndexFields was not supported correctly. 13344 13345Index and Bank Fields: Nested Index and Bank Fields are now 13346supported. During field access, a check is performed to ensure 13347that the value written to an Index or Bank register is not out of 13348the range of the register. The Index (or Bank) register is 13349written before each access to the field data. Future support will 13350include allowing individual IndexFields to be wider than the 13351DataRegister width. 13352 13353Fields: Fixed a problem where the AML interpreter was incorrectly 13354attempting to write beyond the end of a Field/OpRegion. This was 13355a boundary case that occurred when a DWORD field was written to a 13356BYTE access OpRegion, forcing multiple writes and causing the 13357interpreter to write one datum too many. 13358 13359Fields: Fixed a problem with Field/OpRegion access where the 13360starting bit address of a field was incorrectly calculated if the 13361current access type was wider than a byte (WordAcc, DwordAcc, or 13362QwordAcc). 13363 13364Fields: Fixed a problem where forward references to individual 13365FieldUnits (individual Field names within a Field definition) were 13366not resolved during the AML table load. 13367 13368Fields: Fixed a problem where forward references from a Field 13369definition to the parent Operation Region definition were not 13370resolved during the AML table load. 13371 13372Fields: Duplicate FieldUnit names within a scope are now detected 13373during AML table load. 13374 13375Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 13376returned an incorrect name for the root node. 13377 13378Code and Data Size: Code and Data optimizations have permitted new 13379feature development with an actual reduction in the library size. 13380Current core subsystem library sizes are shown below. These are 13381the code and data sizes for the acpica.lib produced by the 13382Microsoft Visual C++ 6.0 compiler, and these values do not include 13383any ACPI driver or OSPM code. The debug version of the code 13384includes the debug output trace mechanism and has a larger code 13385and data size. Note that these values will vary depending on the 13386efficiency of the compiler and the compiler options used during 13387generation. 13388 13389 Previous Release (10_18_01): 13390 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 13391 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 13392 13393 Current Release: 13394 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 13395 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 13396 13397 2) Linux: 13398 13399Improved /proc processor output (Pavel Machek) Re-added 13400MODULE_LICENSE("GPL") to all modules. 13401 13402 3) ASL Compiler version X2030: 13403 13404Duplicate FieldUnit names within a scope are now detected and 13405flagged as errors. 13406 13407 4) Documentation: 13408 13409Programmer Reference updated to reflect OSL and address space 13410handler interface changes described above. 13411 13412---------------------------------------- 13413Summary of changes for this label: 10_18_01 13414 13415ACPI CA Core Subsystem: 13416 13417Fixed a problem with the internal object reference count mechanism 13418that occasionally caused premature object deletion. This resolves 13419all of the outstanding problem reports where an object is deleted 13420in the middle of an interpreter evaluation. Although this problem 13421only showed up in rather obscure cases, the solution to the 13422problem involved an adjustment of all reference counts involving 13423objects attached to namespace nodes. 13424 13425Fixed a problem with Field support in the interpreter where 13426writing to an aligned field whose length is an exact multiple (2 13427or greater) of the field access granularity would cause an attempt 13428to write beyond the end of the field. 13429 13430The top level AML opcode execution functions within the 13431interpreter have been renamed with a more meaningful and 13432consistent naming convention. The modules exmonad.c and 13433exdyadic.c were eliminated. New modules are exoparg1.c, 13434exoparg2.c, exoparg3.c, and exoparg6.c. 13435 13436Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 13437 13438Fixed a problem where the AML debugger was causing some internal 13439objects to not be deleted during subsystem termination. 13440 13441Fixed a problem with the external AcpiEvaluateObject interface 13442where the subsystem would fault if the named object to be 13443evaluated refered to a constant such as Zero, Ones, etc. 13444 13445Fixed a problem with IndexFields and BankFields where the 13446subsystem would fault if the index, data, or bank registers were 13447not defined in the same scope as the field itself. 13448 13449Added printf format string checking for compilers that support 13450this feature. Corrected more than 50 instances of issues with 13451format specifiers within invocations of ACPI_DEBUG_PRINT 13452throughout the core subsystem code. 13453 13454The ASL "Revision" operator now returns the ACPI support level 13455implemented in the core - the value "2" since the ACPI 2.0 support 13456is more than 50% implemented. 13457 13458Enhanced the output of the AML debugger "dump namespace" command 13459to output in a more human-readable form. 13460 13461Current core subsystem library code sizes are shown below. These 13462 13463are the code and data sizes for the acpica.lib produced by the 13464Microsoft Visual C++ 6.0 compiler, and these values do not include 13465any ACPI driver or OSPM code. The debug version of the code 13466includes the full debug trace mechanism -- leading to a much 13467 13468larger code and data size. Note that these values will vary 13469depending on the efficiency of the compiler and the compiler 13470options used during generation. 13471 13472 Previous Label (09_20_01): 13473 Non-Debug Version: 65K Code, 5K Data, 70K Total 13474 Debug Version: 138K Code, 58K Data, 196K Total 13475 13476 This Label: 13477 13478 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 13479 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 13480 13481Linux: 13482 13483Implemented a "Bad BIOS Blacklist" to track machines that have 13484known ASL/AML problems. 13485 13486Enhanced the /proc interface for the thermal zone driver and added 13487support for _HOT (the critical suspend trip point). The 'info' 13488file now includes threshold/policy information, and allows setting 13489of _SCP (cooling preference) and _TZP (polling frequency) values 13490to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 13491frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 13492preference to the passive/quiet mode (if supported by the ASL). 13493 13494Implemented a workaround for a gcc bug that resuted in an OOPs 13495when loading the control method battery driver. 13496 13497 ---------------------------------------- 13498Summary of changes for this label: 09_20_01 13499 13500 ACPI CA Core Subsystem: 13501 13502The AcpiEnableEvent and AcpiDisableEvent interfaces have been 13503modified to allow individual GPE levels to be flagged as wake- 13504enabled (i.e., these GPEs are to remain enabled when the platform 13505sleeps.) 13506 13507The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 13508support wake-enabled GPEs. This means that upon entering the 13509sleep state, all GPEs that are not wake-enabled are disabled. 13510When leaving the sleep state, these GPEs are reenabled. 13511 13512A local double-precision divide/modulo module has been added to 13513enhance portability to OS kernels where a 64-bit math library is 13514not available. The new module is "utmath.c". 13515 13516Several optimizations have been made to reduce the use of CPU 13517stack. Originally over 2K, the maximum stack usage is now below 135182K at 1860 bytes (1.82k) 13519 13520Fixed a problem with the AcpiGetFirmwareTable interface where the 13521root table pointer was not mapped into a logical address properly. 13522 13523Fixed a problem where a NULL pointer was being dereferenced in the 13524interpreter code for the ASL Notify operator. 13525 13526Fixed a problem where the use of the ASL Revision operator 13527returned an error. This operator now returns the current version 13528of the ACPI CA core subsystem. 13529 13530Fixed a problem where objects passed as control method parameters 13531to AcpiEvaluateObject were always deleted at method termination. 13532However, these objects may end up being stored into the namespace 13533by the called method. The object reference count mechanism was 13534applied to these objects instead of a force delete. 13535 13536Fixed a problem where static strings or buffers (contained in the 13537AML code) that are declared as package elements within the ASL 13538code could cause a fault because the interpreter would attempt to 13539delete them. These objects are now marked with the "static 13540object" flag to prevent any attempt to delete them. 13541 13542Implemented an interpreter optimization to use operands directly 13543from the state object instead of extracting the operands to local 13544variables. This reduces stack use and code size, and improves 13545performance. 13546 13547The module exxface.c was eliminated as it was an unnecessary extra 13548layer of code. 13549 13550Current core subsystem library code sizes are shown below. These 13551are the code and data sizes for the acpica.lib produced by the 13552Microsoft Visual C++ 6.0 compiler, and these values do not include 13553any ACPI driver or OSPM code. The debug version of the code 13554includes the full debug trace mechanism -- leading to a much 13555larger code and data size. Note that these values will vary 13556depending on the efficiency of the compiler and the compiler 13557options used during generation. 13558 13559 Non-Debug Version: 65K Code, 5K Data, 70K Total 13560(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 13561Total (Previously 195K) 13562 13563Linux: 13564 13565Support for ACPI 2.0 64-bit integers has been added. All ACPI 13566Integer objects are now 64 bits wide 13567 13568All Acpi data types and structures are now in lower case. Only 13569Acpi macros are upper case for differentiation. 13570 13571 Documentation: 13572 13573Changes to the external interfaces as described above. 13574 13575 ---------------------------------------- 13576Summary of changes for this label: 08_31_01 13577 13578 ACPI CA Core Subsystem: 13579 13580A bug with interpreter implementation of the ASL Divide operator 13581was found and fixed. The implicit function return value (not the 13582explicit store operands) was returning the remainder instead of 13583the quotient. This was a longstanding bug and it fixes several 13584known outstanding issues on various platforms. 13585 13586The ACPI_DEBUG_PRINT and function trace entry/exit macros have 13587been further optimized for size. There are 700 invocations of the 13588DEBUG_PRINT macro alone, so each optimization reduces the size of 13589the debug version of the subsystem significantly. 13590 13591A stack trace mechanism has been implemented. The maximum stack 13592usage is about 2K on 32-bit platforms. The debugger command "stat 13593stack" will display the current maximum stack usage. 13594 13595All public symbols and global variables within the subsystem are 13596now prefixed with the string "Acpi". This keeps all of the 13597symbols grouped together in a kernel map, and avoids conflicts 13598with other kernel subsystems. 13599 13600Most of the internal fixed lookup tables have been moved into the 13601code segment via the const operator. 13602 13603Several enhancements have been made to the interpreter to both 13604reduce the code size and improve performance. 13605 13606Current core subsystem library code sizes are shown below. These 13607are the code and data sizes for the acpica.lib produced by the 13608Microsoft Visual C++ 6.0 compiler, and these values do not include 13609any ACPI driver or OSPM code. The debug version of the code 13610includes the full debug trace mechanism which contains over 700 13611invocations of the DEBUG_PRINT macro, 500 function entry macro 13612invocations, and over 900 function exit macro invocations -- 13613leading to a much larger code and data size. Note that these 13614values will vary depending on the efficiency of the compiler and 13615the compiler options used during generation. 13616 13617 Non-Debug Version: 64K Code, 5K Data, 69K Total 13618Debug Version: 137K Code, 58K Data, 195K Total 13619 13620 Linux: 13621 13622Implemented wbinvd() macro, pending a kernel-wide definition. 13623 13624Fixed /proc/acpi/event to handle poll() and short reads. 13625 13626 ASL Compiler, version X2026: 13627 13628Fixed a problem introduced in the previous label where the AML 13629 13630code emitted for package objects produced packages with zero 13631length. 13632 13633 ---------------------------------------- 13634Summary of changes for this label: 08_16_01 13635 13636ACPI CA Core Subsystem: 13637 13638The following ACPI 2.0 ASL operators have been implemented in the 13639AML interpreter (These are already supported by the Intel ASL 13640compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 13641ToBuffer. Support for 64-bit AML constants is implemented in the 13642AML parser, debugger, and disassembler. 13643 13644The internal memory tracking mechanism (leak detection code) has 13645been upgraded to reduce the memory overhead (a separate tracking 13646block is no longer allocated for each memory allocation), and now 13647supports all of the internal object caches. 13648 13649The data structures and code for the internal object caches have 13650been coelesced and optimized so that there is a single cache and 13651memory list data structure and a single group of functions that 13652implement generic cache management. This has reduced the code 13653size in both the debug and release versions of the subsystem. 13654 13655The DEBUG_PRINT macro(s) have been optimized for size and replaced 13656by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 13657different, because it generates a single call to an internal 13658function. This results in a savings of about 90 bytes per 13659invocation, resulting in an overall code and data savings of about 1366016% in the debug version of the subsystem. 13661 13662 Linux: 13663 13664Fixed C3 disk corruption problems and re-enabled C3 on supporting 13665machines. 13666 13667Integrated low-level sleep code by Patrick Mochel. 13668 13669Further tweaked source code Linuxization. 13670 13671Other minor fixes. 13672 13673 ASL Compiler: 13674 13675Support for ACPI 2.0 variable length packages is fixed/completed. 13676 13677Fixed a problem where the optional length parameter for the ACPI 136782.0 ToString operator. 13679 13680Fixed multiple extraneous error messages when a syntax error is 13681detected within the declaration line of a control method. 13682 13683 ---------------------------------------- 13684Summary of changes for this label: 07_17_01 13685 13686ACPI CA Core Subsystem: 13687 13688Added a new interface named AcpiGetFirmwareTable to obtain any 13689ACPI table via the ACPI signature. The interface can be called at 13690any time during kernel initialization, even before the kernel 13691virtual memory manager is initialized and paging is enabled. This 13692allows kernel subsystems to obtain ACPI tables very early, even 13693before the ACPI CA subsystem is initialized. 13694 13695Fixed a problem where Fields defined with the AnyAcc attribute 13696could be resolved to the incorrect address under the following 13697conditions: 1) the field width is larger than 8 bits and 2) the 13698parent operation region is not defined on a DWORD boundary. 13699 13700Fixed a problem where the interpreter is not being locked during 13701namespace initialization (during execution of the _INI control 13702methods), causing an error when an attempt is made to release it 13703later. 13704 13705ACPI 2.0 support in the AML Interpreter has begun and will be 13706ongoing throughout the rest of this year. In this label, The Mod 13707operator is implemented. 13708 13709Added a new data type to contain full PCI addresses named 13710ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 13711and Function values. 13712 13713 Linux: 13714 13715Enhanced the Linux version of the source code to change most 13716capitalized ACPI type names to lowercase. For example, all 13717instances of ACPI_STATUS are changed to acpi_status. This will 13718result in a large diff, but the change is strictly cosmetic and 13719aligns the CA code closer to the Linux coding standard. 13720 13721OSL Interfaces: 13722 13723The interfaces to the PCI configuration space have been changed to 13724add the PCI Segment number and to split the single 32-bit combined 13725DeviceFunction field into two 16-bit fields. This was 13726accomplished by moving the four values that define an address in 13727PCI configuration space (segment, bus, device, and function) to 13728the new ACPI_PCI_ID structure. 13729 13730The changes to the PCI configuration space interfaces led to a 13731reexamination of the complete set of address space access 13732interfaces for PCI, I/O, and Memory. The previously existing 18 13733interfaces have proven difficult to maintain (any small change 13734must be propagated across at least 6 interfaces) and do not easily 13735allow for future expansion to 64 bits if necessary. Also, on some 13736systems, it would not be appropriate to demultiplex the access 13737width (8, 16, 32,or 64) before calling the OSL if the 13738corresponding native OS interfaces contain a similar access width 13739parameter. For these reasons, the 18 address space interfaces 13740have been replaced by these 6 new ones: 13741 13742AcpiOsReadPciConfiguration 13743AcpiOsWritePciConfiguration 13744AcpiOsReadMemory 13745AcpiOsWriteMemory 13746AcpiOsReadPort 13747AcpiOsWritePort 13748 13749Added a new interface named AcpiOsGetRootPointer to allow the OSL 13750to perform the platform and/or OS-specific actions necessary to 13751obtain the ACPI RSDP table pointer. On IA-32 platforms, this 13752interface will simply call down to the CA core to perform the low- 13753memory search for the table. On IA-64, the RSDP is obtained from 13754EFI. Migrating this interface to the OSL allows the CA core to 13755 13756remain OS and platform independent. 13757 13758Added a new interface named AcpiOsSignal to provide a generic 13759"function code and pointer" interface for various miscellaneous 13760signals and notifications that must be made to the host OS. The 13761first such signals are intended to support the ASL Fatal and 13762Breakpoint operators. In the latter case, the AcpiOsBreakpoint 13763interface has been obsoleted. 13764 13765The definition of the AcpiFormatException interface has been 13766changed to simplify its use. The caller no longer must supply a 13767buffer to the call; A pointer to a const string is now returned 13768directly. This allows the call to be easily used in printf 13769statements, etc. since the caller does not have to manage a local 13770buffer. 13771 13772 13773 ASL Compiler, Version X2025: 13774 13775The ACPI 2.0 Switch/Case/Default operators have been implemented 13776and are fully functional. They will work with all ACPI 1.0 13777interpreters, since the operators are simply translated to If/Else 13778pairs. 13779 13780The ACPI 2.0 ElseIf operator is implemented and will also work 13781with 1.0 interpreters, for the same reason. 13782 13783Implemented support for ACPI 2.0 variable-length packages. These 13784packages have a separate opcode, and their size is determined by 13785the interpreter at run-time. 13786 13787Documentation The ACPI CA Programmer Reference has been updated to 13788reflect the new interfaces and changes to existing interfaces. 13789 13790 ------------------------------------------ 13791Summary of changes for this label: 06_15_01 13792 13793 ACPI CA Core Subsystem: 13794 13795Fixed a problem where a DWORD-accessed field within a Buffer 13796object would get its byte address inadvertently rounded down to 13797the nearest DWORD. Buffers are always Byte-accessible. 13798 13799 ASL Compiler, version X2024: 13800 13801Fixed a problem where the Switch() operator would either fault or 13802hang the compiler. Note however, that the AML code for this ACPI 138032.0 operator is not yet implemented. 13804 13805Compiler uses the new AcpiOsGetTimer interface to obtain compile 13806timings. 13807 13808Implementation of the CreateField operator automatically converts 13809a reference to a named field within a resource descriptor from a 13810byte offset to a bit offset if required. 13811 13812Added some missing named fields from the resource descriptor 13813support. These are the names that are automatically created by the 13814compiler to reference fields within a descriptor. They are only 13815valid at compile time and are not passed through to the AML 13816interpreter. 13817 13818Resource descriptor named fields are now typed as Integers and 13819subject to compile-time typechecking when used in expressions. 13820 13821 ------------------------------------------ 13822Summary of changes for this label: 05_18_01 13823 13824 ACPI CA Core Subsystem: 13825 13826Fixed a couple of problems in the Field support code where bits 13827from adjacent fields could be returned along with the proper field 13828bits. Restructured the field support code to improve performance, 13829readability and maintainability. 13830 13831New DEBUG_PRINTP macro automatically inserts the procedure name 13832into the output, saving hundreds of copies of procedure name 13833strings within the source, shrinking the memory footprint of the 13834debug version of the core subsystem. 13835 13836 Source Code Structure: 13837 13838The source code directory tree was restructured to reflect the 13839current organization of the component architecture. Some files 13840and directories have been moved and/or renamed. 13841 13842 Linux: 13843 13844Fixed leaking kacpidpc processes. 13845 13846Fixed queueing event data even when /proc/acpi/event is not 13847opened. 13848 13849 ASL Compiler, version X2020: 13850 13851Memory allocation performance enhancement - over 24X compile time 13852improvement on large ASL files. Parse nodes and namestring 13853buffers are now allocated from a large internal compiler buffer. 13854 13855The temporary .SRC file is deleted unless the "-s" option is 13856specified 13857 13858The "-d" debug output option now sends all output to the .DBG file 13859instead of the console. 13860 13861"External" second parameter is now optional 13862 13863"ElseIf" syntax now properly allows the predicate 13864 13865Last operand to "Load" now recognized as a Target operand 13866 13867Debug object can now be used anywhere as a normal object. 13868 13869ResourceTemplate now returns an object of type BUFFER 13870 13871EISAID now returns an object of type INTEGER 13872 13873"Index" now works with a STRING operand 13874 13875"LoadTable" now accepts optional parameters 13876 13877"ToString" length parameter is now optional 13878 13879"Interrupt (ResourceType," parse error fixed. 13880 13881"Register" with a user-defined region space parse error fixed 13882 13883Escaped backslash at the end of a string ("\\") scan/parse error 13884fixed 13885 13886"Revision" is now an object of type INTEGER. 13887 13888 13889 13890------------------------------------------ 13891Summary of changes for this label: 05_02_01 13892 13893Linux: 13894 13895/proc/acpi/event now blocks properly. 13896 13897Removed /proc/sys/acpi. You can still dump your DSDT from 13898/proc/acpi/dsdt. 13899 13900 ACPI CA Core Subsystem: 13901 13902Fixed a problem introduced in the previous label where some of the 13903"small" resource descriptor types were not recognized. 13904 13905Improved error messages for the case where an ASL Field is outside 13906the range of the parent operation region. 13907 13908 ASL Compiler, version X2018: 13909 13910 13911Added error detection for ASL Fields that extend beyond the length 13912of the parent operation region (only if the length of the region 13913is known at compile time.) This includes fields that have a 13914minimum access width that is smaller than the parent region, and 13915individual field units that are partially or entirely beyond the 13916extent of the parent. 13917 13918 13919 13920------------------------------------------ 13921Summary of changes for this label: 04_27_01 13922 13923 ACPI CA Core Subsystem: 13924 13925Fixed a problem where the namespace mutex could be released at the 13926wrong time during execution of AcpiRemoveAddressSpaceHandler. 13927 13928Added optional thread ID output for debug traces, to simplify 13929debugging of multiple threads. Added context switch notification 13930when the debug code realizes that a different thread is now 13931executing ACPI code. 13932 13933Some additional external data types have been prefixed with the 13934string "ACPI_" for consistency. This may effect existing code. 13935The data types affected are the external callback typedefs - e.g., 13936 13937WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 13938 13939 Linux: 13940 13941Fixed an issue with the OSL semaphore implementation where a 13942thread was waking up with an error from receiving a SIGCHLD 13943signal. 13944 13945Linux version of ACPI CA now uses the system C library for string 13946manipulation routines instead of a local implementation. 13947 13948Cleaned up comments and removed TBDs. 13949 13950 ASL Compiler, version X2017: 13951 13952Enhanced error detection and reporting for all file I/O 13953operations. 13954 13955 Documentation: 13956 13957Programmer Reference updated to version 1.06. 13958 13959 13960 13961------------------------------------------ 13962Summary of changes for this label: 04_13_01 13963 13964 ACPI CA Core Subsystem: 13965 13966Restructured support for BufferFields and RegionFields. 13967BankFields support is now fully operational. All known 32-bit 13968limitations on field sizes have been removed. Both BufferFields 13969and (Operation) RegionFields are now supported by the same field 13970management code. 13971 13972Resource support now supports QWORD address and IO resources. The 1397316/32/64 bit address structures and the Extended IRQ structure 13974have been changed to properly handle Source Resource strings. 13975 13976A ThreadId of -1 is now used to indicate a "mutex not acquired" 13977condition internally and must never be returned by AcpiOsThreadId. 13978This reserved value was changed from 0 since Unix systems allow a 13979thread ID of 0. 13980 13981Linux: 13982 13983Driver code reorganized to enhance portability 13984 13985Added a kernel configuration option to control ACPI_DEBUG 13986 13987Fixed the EC driver to honor _GLK. 13988 13989ASL Compiler, version X2016: 13990 13991Fixed support for the "FixedHw" keyword. Previously, the FixedHw 13992address space was set to 0, not 0x7f as it should be. 13993 13994 ------------------------------------------ 13995Summary of changes for this label: 03_13_01 13996 13997 ACPI CA Core Subsystem: 13998 13999During ACPI initialization, the _SB_._INI method is now run if 14000present. 14001 14002Notify handler fix - notifies are deferred until the parent method 14003completes execution. This fixes the "mutex already acquired" 14004issue seen occasionally. 14005 14006Part of the "implicit conversion" rules in ACPI 2.0 have been 14007found to cause compatibility problems with existing ASL/AML. The 14008convert "result-to-target-type" implementation has been removed 14009for stores to method Args and Locals. Source operand conversion 14010is still fully implemented. Possible changes to ACPI 2.0 14011specification pending. 14012 14013Fix to AcpiRsCalculatePciRoutingTableLength to return correct 14014length. 14015 14016Fix for compiler warnings for 64-bit compiles. 14017 14018 Linux: 14019 14020/proc output aligned for easier parsing. 14021 14022Release-version compile problem fixed. 14023 14024New kernel configuration options documented in Configure.help. 14025 14026IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 14027context" message. 14028 14029 OSPM: 14030 14031Power resource driver integrated with bus manager. 14032 14033Fixed kernel fault during active cooling for thermal zones. 14034 14035Source Code: 14036 14037The source code tree has been restructured. 14038 14039 14040 14041------------------------------------------ 14042Summary of changes for this label: 03_02_01 14043 14044 Linux OS Services Layer (OSL): 14045 14046Major revision of all Linux-specific code. 14047 14048Modularized all ACPI-specific drivers. 14049 14050Added new thermal zone and power resource drivers. 14051 14052Revamped /proc interface (new functionality is under /proc/acpi). 14053 14054New kernel configuration options. 14055 14056 Linux known issues: 14057 14058New kernel configuration options not documented in Configure.help 14059yet. 14060 14061 14062Module dependencies not currently implemented. If used, they 14063should be loaded in this order: busmgr, power, ec, system, 14064processor, battery, ac_adapter, button, thermal. 14065 14066Modules will not load if CONFIG_MODVERSION is set. 14067 14068IBM 600E - entering S5 may reboot instead of shutting down. 14069 14070IBM 600E - Sleep button may generate "Invalid <NULL> context" 14071message. 14072 14073Some systems may fail with "execution mutex already acquired" 14074message. 14075 14076 ACPI CA Core Subsystem: 14077 14078Added a new OSL Interface, AcpiOsGetThreadId. This was required 14079for the deadlock detection code. Defined to return a non-zero, 32- 14080bit thread ID for the currently executing thread. May be a non- 14081zero constant integer on single-thread systems. 14082 14083Implemented deadlock detection for internal subsystem mutexes. We 14084may add conditional compilation for this code (debug only) later. 14085 14086ASL/AML Mutex object semantics are now fully supported. This 14087includes multiple acquires/releases by owner and support for the 14088 14089Mutex SyncLevel parameter. 14090 14091A new "Force Release" mechanism automatically frees all ASL 14092Mutexes that have been acquired but not released when a thread 14093exits the interpreter. This forces conformance to the ACPI spec 14094("All mutexes must be released when an invocation exits") and 14095prevents deadlocked ASL threads. This mechanism can be expanded 14096(later) to monitor other resource acquisitions if OEM ASL code 14097continues to misbehave (which it will). 14098 14099Several new ACPI exception codes have been added for the Mutex 14100support. 14101 14102Recursive method calls are now allowed and supported (the ACPI 14103spec does in fact allow recursive method calls.) The number of 14104recursive calls is subject to the restrictions imposed by the 14105SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 14106parameter. 14107 14108Implemented support for the SyncLevel parameter for control 14109methods (ACPI 2.0 feature) 14110 14111Fixed a deadlock problem when multiple threads attempted to use 14112the interpreter. 14113 14114Fixed a problem where the string length of a String package 14115element was not always set in a package returned from 14116AcpiEvaluateObject. 14117 14118Fixed a problem where the length of a String package element was 14119not always included in the length of the overall package returned 14120from AcpiEvaluateObject. 14121 14122Added external interfaces (Acpi*) to the ACPI debug memory 14123manager. This manager keeps a list of all outstanding 14124allocations, and can therefore detect memory leaks and attempts to 14125free memory blocks more than once. Useful for code such as the 14126power manager, etc. May not be appropriate for device drivers. 14127Performance with the debug code enabled is slow. 14128 14129The ACPI Global Lock is now an optional hardware element. 14130 14131 ASL Compiler Version X2015: 14132 14133Integrated changes to allow the compiler to be generated on 14134multiple platforms. 14135 14136Linux makefile added to generate the compiler on Linux 14137 14138 Source Code: 14139 14140All platform-specific headers have been moved to their own 14141subdirectory, Include/Platform. 14142 14143New source file added, Interpreter/ammutex.c 14144 14145New header file, Include/acstruct.h 14146 14147 Documentation: 14148 14149The programmer reference has been updated for the following new 14150interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 14151 14152 ------------------------------------------ 14153Summary of changes for this label: 02_08_01 14154 14155Core ACPI CA Subsystem: Fixed a problem where an error was 14156incorrectly returned if the return resource buffer was larger than 14157the actual data (in the resource interfaces). 14158 14159References to named objects within packages are resolved to the 14160 14161full pathname string before packages are returned directly (via 14162the AcpiEvaluateObject interface) or indirectly via the resource 14163interfaces. 14164 14165Linux OS Services Layer (OSL): 14166 14167Improved /proc battery interface. 14168 14169 14170Added C-state debugging output and other miscellaneous fixes. 14171 14172ASL Compiler Version X2014: 14173 14174All defined method arguments can now be used as local variables, 14175including the ones that are not actually passed in as parameters. 14176The compiler tracks initialization of the arguments and issues an 14177exception if they are used without prior assignment (just like 14178locals). 14179 14180The -o option now specifies a filename prefix that is used for all 14181output files, including the AML output file. Otherwise, the 14182default behavior is as follows: 1) the AML goes to the file 14183specified in the DSDT. 2) all other output files use the input 14184source filename as the base. 14185 14186 ------------------------------------------ 14187Summary of changes for this label: 01_25_01 14188 14189Core ACPI CA Subsystem: Restructured the implementation of object 14190store support within the interpreter. This includes support for 14191the Store operator as well as any ASL operators that include a 14192target operand. 14193 14194Partially implemented support for Implicit Result-to-Target 14195conversion. This is when a result object is converted on the fly 14196to the type of an existing target object. Completion of this 14197support is pending further analysis of the ACPI specification 14198concerning this matter. 14199 14200CPU-specific code has been removed from the subsystem (hardware 14201directory). 14202 14203New Power Management Timer functions added 14204 14205Linux OS Services Layer (OSL): Moved system state transition code 14206to the core, fixed it, and modified Linux OSL accordingly. 14207 14208Fixed C2 and C3 latency calculations. 14209 14210 14211We no longer use the compilation date for the version message on 14212initialization, but retrieve the version from AcpiGetSystemInfo(). 14213 14214Incorporated for fix Sony VAIO machines. 14215 14216Documentation: The Programmer Reference has been updated and 14217reformatted. 14218 14219 14220ASL Compiler: Version X2013: Fixed a problem where the line 14221numbering and error reporting could get out of sync in the 14222presence of multiple include files. 14223 14224 ------------------------------------------ 14225Summary of changes for this label: 01_15_01 14226 14227Core ACPI CA Subsystem: 14228 14229Implemented support for type conversions in the execution of the 14230ASL Concatenate operator (The second operand is converted to 14231match the type of the first operand before concatenation.) 14232 14233Support for implicit source operand conversion is partially 14234implemented. The ASL source operand types Integer, Buffer, and 14235String are freely interchangeable for most ASL operators and are 14236converted by the interpreter on the fly as required. Implicit 14237Target operand conversion (where the result is converted to the 14238target type before storing) is not yet implemented. 14239 14240Support for 32-bit and 64-bit BCD integers is implemented. 14241 14242Problem fixed where a field read on an aligned field could cause a 14243read past the end of the field. 14244 14245New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 14246does not return a value, but the caller expects one. (The ASL 14247compiler flags this as a warning.) 14248 14249ASL Compiler: 14250 14251Version X2011: 142521. Static typechecking of all operands is implemented. This 14253prevents the use of invalid objects (such as using a Package where 14254an Integer is required) at compile time instead of at interpreter 14255run-time. 142562. The ASL source line is printed with ALL errors and warnings. 142573. Bug fix for source EOF without final linefeed. 142584. Debug option is split into a parse trace and a namespace trace. 142595. Namespace output option (-n) includes initial values for 14260integers and strings. 142616. Parse-only option added for quick syntax checking. 142627. Compiler checks for duplicate ACPI name declarations 14263 14264Version X2012: 142651. Relaxed typechecking to allow interchangeability between 14266strings, integers, and buffers. These types are now converted by 14267the interpreter at runtime. 142682. Compiler reports time taken by each internal subsystem in the 14269debug output file. 14270 14271 14272 ------------------------------------------ 14273Summary of changes for this label: 12_14_00 14274 14275ASL Compiler: 14276 14277This is the first official release of the compiler. Since the 14278compiler requires elements of the Core Subsystem, this label 14279synchronizes everything. 14280 14281------------------------------------------ 14282Summary of changes for this label: 12_08_00 14283 14284 14285Fixed a problem where named references within the ASL definition 14286of both OperationRegions and CreateXXXFields did not work 14287properly. The symptom was an AE_AML_OPERAND_TYPE during 14288initialization of the region/field. This is similar (but not 14289related internally) to the problem that was fixed in the last 14290label. 14291 14292Implemented both 32-bit and 64-bit support for the BCD ASL 14293functions ToBCD and FromBCD. 14294 14295Updated all legal headers to include "2000" in the copyright 14296years. 14297 14298 ------------------------------------------ 14299Summary of changes for this label: 12_01_00 14300 14301Fixed a problem where method invocations within the ASL definition 14302of both OperationRegions and CreateXXXFields did not work 14303properly. The symptom was an AE_AML_OPERAND_TYPE during 14304initialization of the region/field: 14305 14306 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 14307[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 14308(0x3005) 14309 14310Fixed a problem where operators with more than one nested 14311subexpression would fail. The symptoms were varied, by mostly 14312AE_AML_OPERAND_TYPE errors. This was actually a rather serious 14313problem that has gone unnoticed until now. 14314 14315 Subtract (Add (1,2), Multiply (3,4)) 14316 14317Fixed a problem where AcpiGetHandle didn't quite get fixed in the 14318previous build (The prefix part of a relative path was handled 14319incorrectly). 14320 14321Fixed a problem where Operation Region initialization failed if 14322the operation region name was a "namepath" instead of a simple 14323"nameseg". Symptom was an AE_NO_OPERAND error. 14324 14325Fixed a problem where an assignment to a local variable via the 14326indirect RefOf mechanism only worked for the first such 14327assignment. Subsequent assignments were ignored. 14328 14329 ------------------------------------------ 14330Summary of changes for this label: 11_15_00 14331 14332ACPI 2.0 table support with backwards support for ACPI 1.0 and the 143330.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 14334the AML interpreter does NOT have support for the new 2.0 ASL 14335grammar terms at this time. 14336 14337All ACPI hardware access is via the GAS structures in the ACPI 2.0 14338FADT. 14339 14340All physical memory addresses across all platforms are now 64 bits 14341wide. Logical address width remains dependent on the platform 14342(i.e., "void *"). 14343 14344AcpiOsMapMemory interface changed to a 64-bit physical address. 14345 14346The AML interpreter integer size is now 64 bits, as per the ACPI 143472.0 specification. 14348 14349For backwards compatibility with ACPI 1.0, ACPI tables with a 14350revision number less than 2 use 32-bit integers only. 14351 14352Fixed a problem where the evaluation of OpRegion operands did not 14353always resolve them to numbers properly. 14354 14355------------------------------------------ 14356Summary of changes for this label: 10_20_00 14357 14358Fix for CBN_._STA issue. This fix will allow correct access to 14359CBN_ OpRegions when the _STA returns 0x8. 14360 14361Support to convert ACPI constants (Ones, Zeros, One) to actual 14362values before a package object is returned 14363 14364Fix for method call as predicate to if/while construct causing 14365incorrect if/while behavior 14366 14367Fix for Else block package lengths sometimes calculated wrong (if 14368block > 63 bytes) 14369 14370Fix for Processor object length field, was always zero 14371 14372Table load abort if FACP sanity check fails 14373 14374Fix for problem with Scope(name) if name already exists 14375 14376Warning emitted if a named object referenced cannot be found 14377(resolved) during method execution. 14378 14379 14380 14381 14382 14383------------------------------------------ 14384Summary of changes for this label: 9_29_00 14385 14386New table initialization interfaces: AcpiInitializeSubsystem no 14387longer has any parameters AcpiFindRootPointer - Find the RSDP (if 14388necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 14389>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 14390AcpiLoadTables 14391 14392Note: These interface changes require changes to all existing OSDs 14393 14394The PCI_Config default address space handler is always installed 14395at the root namespace object. 14396 14397------------------------------------------- 14398Summary of changes for this label: 09_15_00 14399 14400The new initialization architecture is implemented. New 14401interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 14402AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 14403 14404(Namespace is automatically loaded when a table is loaded) 14405 14406The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1440752 bytes to 32 bytes. There is usually one of these for every 14408namespace object, so the memory savings is significant. 14409 14410Implemented just-in-time evaluation of the CreateField operators. 14411 14412Bug fixes for IA-64 support have been integrated. 14413 14414Additional code review comments have been implemented 14415 14416The so-called "third pass parse" has been replaced by a final walk 14417through the namespace to initialize all operation regions (address 14418spaces) and fields that have not yet been initialized during the 14419execution of the various _INI and REG methods. 14420 14421New file - namespace/nsinit.c 14422 14423------------------------------------------- 14424Summary of changes for this label: 09_01_00 14425 14426Namespace manager data structures have been reworked to change the 14427primary object from a table to a single object. This has 14428resulted in dynamic memory savings of 3X within the namespace and 144292X overall in the ACPI CA subsystem. 14430 14431Fixed problem where the call to AcpiEvFindPciRootBuses was 14432inadvertently left commented out. 14433 14434Reduced the warning count when generating the source with the GCC 14435compiler. 14436 14437Revision numbers added to each module header showing the 14438SourceSafe version of the file. Please refer to this version 14439number when giving us feedback or comments on individual modules. 14440 14441The main object types within the subsystem have been renamed to 14442clarify their purpose: 14443 14444ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 14445ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 14446ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 14447 14448NOTE: no changes to the initialization sequence are included in 14449this label. 14450 14451------------------------------------------- 14452Summary of changes for this label: 08_23_00 14453 14454Fixed problem where TerminateControlMethod was being called 14455multiple times per method 14456 14457Fixed debugger problem where single stepping caused a semaphore to 14458be oversignalled 14459 14460Improved performance through additional parse object caching - 14461added ACPI_EXTENDED_OP type 14462 14463------------------------------------------- 14464Summary of changes for this label: 08_10_00 14465 14466Parser/Interpreter integration: Eliminated the creation of 14467complete parse trees for ACPI tables and control methods. 14468Instead, parse subtrees are created and then deleted as soon as 14469they are processed (Either entered into the namespace or executed 14470by the interpreter). This reduces the use of dynamic kernel 14471memory significantly. (about 10X) 14472 14473Exception codes broken into classes and renumbered. Be sure to 14474recompile all code that includes acexcep.h. Hopefully we won't 14475have to renumber the codes again now that they are split into 14476classes (environment, programmer, AML code, ACPI table, and 14477internal). 14478 14479Fixed some additional alignment issues in the Resource Manager 14480subcomponent 14481 14482Implemented semaphore tracking in the AcpiExec utility, and fixed 14483several places where mutexes/semaphores were being unlocked 14484without a corresponding lock operation. There are no known 14485semaphore or mutex "leaks" at this time. 14486 14487Fixed the case where an ASL Return operator is used to return an 14488unnamed package. 14489 14490------------------------------------------- 14491Summary of changes for this label: 07_28_00 14492 14493Fixed a problem with the way addresses were calculated in 14494AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 14495manifested itself when a Field was created with WordAccess or 14496DwordAccess, but the field unit defined within the Field was less 14497 14498than a Word or Dword. 14499 14500Fixed a problem in AmlDumpOperands() module's loop to pull 14501operands off of the operand stack to display information. The 14502problem manifested itself as a TLB error on 64-bit systems when 14503accessing an operand stack with two or more operands. 14504 14505Fixed a problem with the PCI configuration space handlers where 14506context was getting confused between accesses. This required a 14507change to the generic address space handler and address space 14508setup definitions. Handlers now get both a global handler context 14509(this is the one passed in by the user when executing 14510AcpiInstallAddressSpaceHandler() and a specific region context 14511that is unique to each region (For example, the _ADR, _SEG and 14512_BBN values associated with a specific region). The generic 14513function definitions have changed to the following: 14514 14515typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 14516UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 14517*HandlerContext, // This used to be void *Context void 14518*RegionContext); // This is an additional parameter 14519 14520typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 14521RegionHandle, UINT32 Function, void *HandlerContext, void 14522**RegionContext); // This used to be **ReturnContext 14523 14524------------------------------------------- 14525Summary of changes for this label: 07_21_00 14526 14527Major file consolidation and rename. All files within the 14528interpreter have been renamed as well as most header files. This 14529was done to prevent collisions with existing files in the host 14530OSs -- filenames such as "config.h" and "global.h" seem to be 14531quite common. The VC project files have been updated. All 14532makefiles will require modification. 14533 14534The parser/interpreter integration continues in Phase 5 with the 14535implementation of a complete 2-pass parse (the AML is parsed 14536twice) for each table; This avoids the construction of a huge 14537parse tree and therefore reduces the amount of dynamic memory 14538required by the subsystem. Greater use of the parse object cache 14539means that performance is unaffected. 14540 14541Many comments from the two code reviews have been rolled in. 14542 14543The 64-bit alignment support is complete. 14544 14545------------------------------------------- 14546Summary of changes for this label: 06_30_00 14547 14548With a nod and a tip of the hat to the technology of yesteryear, 14549we've added support in the source code for 80 column output 14550devices. The code is now mostly constrained to 80 columns or 14551less to support environments and editors that 1) cannot display 14552or print more than 80 characters on a single line, and 2) cannot 14553disable line wrapping. 14554 14555A major restructuring of the namespace data structure has been 14556completed. The result is 1) cleaner and more 14557understandable/maintainable code, and 2) a significant reduction 14558in the dynamic memory requirement for each named ACPI object 14559(almost half). 14560 14561------------------------------------------- 14562Summary of changes for this label: 06_23_00 14563 14564Linux support has been added. In order to obtain approval to get 14565the ACPI CA subsystem into the Linux kernel, we've had to make 14566quite a few changes to the base subsystem that will affect all 14567users (all the changes are generic and OS- independent). The 14568effects of these global changes have been somewhat far reaching. 14569Files have been merged and/or renamed and interfaces have been 14570renamed. The major changes are described below. 14571 14572Osd* interfaces renamed to AcpiOs* to eliminate namespace 14573pollution/confusion within our target kernels. All OSD 14574interfaces must be modified to match the new naming convention. 14575 14576Files merged across the subsystem. A number of the smaller source 14577and header files have been merged to reduce the file count and 14578increase the density of the existing files. There are too many 14579to list here. In general, makefiles that call out individual 14580files will require rebuilding. 14581 14582Interpreter files renamed. All interpreter files now have the 14583prefix am* instead of ie* and is*. 14584 14585Header files renamed: The acapi.h file is now acpixf.h. The 14586acpiosd.h file is now acpiosxf.h. We are removing references to 14587the acronym "API" since it is somewhat windowsy. The new name is 14588"external interface" or xface or xf in the filenames.j 14589 14590 14591All manifest constants have been forced to upper case (some were 14592mixed case.) Also, the string "ACPI_" has been prepended to many 14593(not all) of the constants, typedefs, and structs. 14594 14595The globals "DebugLevel" and "DebugLayer" have been renamed 14596"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 14597 14598All other globals within the subsystem are now prefixed with 14599"AcpiGbl_" Internal procedures within the subsystem are now 14600prefixed with "Acpi" (with only a few exceptions). The original 14601two-letter abbreviation for the subcomponent remains after "Acpi" 14602- for example, CmCallocate became AcpiCmCallocate. 14603 14604Added a source code translation/conversion utility. Used to 14605generate the Linux source code, it can be modified to generate 14606other types of source as well. Can also be used to cleanup 14607existing source by removing extraneous spaces and blank lines. 14608Found in tools/acpisrc/* 14609 14610OsdUnMapMemory was renamed to OsdUnmapMemory and then 14611AcpiOsUnmapMemory. (UnMap became Unmap). 14612 14613A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 14614When set to one, this indicates that the caller wants to use the 14615 14616semaphore as a mutex, not a counting semaphore. ACPI CA uses 14617both types. However, implementers of this call may want to use 14618different OS primitives depending on the type of semaphore 14619requested. For example, some operating systems provide separate 14620 14621"mutex" and "semaphore" interfaces - where the mutex interface is 14622much faster because it doesn't have all the overhead of a full 14623semaphore implementation. 14624 14625Fixed a deadlock problem where a method that accesses the PCI 14626address space can block forever if it is the first access to the 14627space. 14628 14629------------------------------------------- 14630Summary of changes for this label: 06_02_00 14631 14632Support for environments that cannot handle unaligned data 14633accesses (e.g. firmware and OS environments devoid of alignment 14634handler technology namely SAL/EFI and the IA-64 Linux kernel) has 14635been added (via configurable macros) in these three areas: - 14636Transfer of data from the raw AML byte stream is done via byte 14637moves instead of word/dword/qword moves. - External objects are 14638aligned within the user buffer, including package elements (sub- 14639objects). - Conversion of name strings to UINT32 Acpi Names is now 14640done byte-wise. 14641 14642The Store operator was modified to mimic Microsoft's 14643implementation when storing to a Buffer Field. 14644 14645Added a check of the BM_STS bit before entering C3. 14646 14647The methods subdirectory has been obsoleted and removed. A new 14648file, cmeval.c subsumes the functionality. 14649 14650A 16-bit (DOS) version of AcpiExec has been developed. The 14651makefile is under the acpiexec directory. 14652