1---------------------------------------- 230 September 2016. Summary of changes for version 20160930: 3 4 51) ACPICA kernel-resident subsystem: 6 7Fixed a regression in the internal AcpiTbFindTable function where a non 8AE_OK exception could inadvertently be returned even if the function did 9not fail. This problem affects the following operators: 10 DataTableRegion 11 LoadTable 12 13Fixed a regression in the LoadTable operator where a load to any 14namespace location other than the root no longer worked properly. 15 16Increased the maximum loop count value that will result in the 17AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to 18prevent infinite loops within the AML interpreter and thus the host OS 19kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to 201,048,575). 21 22Moved the AcpiGbl_MaxLoopIterations configuration variable to the public 23acpixf.h file. This allows hosts to easily configure the maximum loop 24count at runtime. 25 26Removed an illegal character in the strtoul64.c file. This character 27caused errors with some C compilers. 28 29Example Code and Data Size: These are the sizes for the OS-independent 30acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 31debug version of the code includes the debug output trace mechanism and 32has a much larger code and data size. 33 34 Current Release: 35 Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total 36 Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 37 Previous Release: 38 Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total 39 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 40 41 422) iASL Compiler/Disassembler and Tools: 43 44Disassembler: Fixed a problem with the conversion of Else{If{ blocks into 45the simpler ASL ElseIf keyword. During the conversion, a trailing If 46block could be lost and missing from the disassembled output. 47 48iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+, 49the missing rule caused a parse error when using the Index operator as an 50operand to ObjectType. This construct now compiles properly. Example: 51 ObjectType(PKG1[4]). 52 53iASL: Correctly handle unresolved symbols in the hardware map file (-lm 54option). Previously, unresolved symbols could cause a protection fault. 55Such symbols are now marked as unresolved in the map file. 56 57iASL: Implemented support to allow control method invocations as an 58operand to the ASL DeRefOf operator. Example: 59 DeRefOf(MTH1(Local0)) 60 61Disassembler: Improved support for the ToPLD ASL macro. Detection of a 62possible _PLD buffer now includes examination of both the normal buffer 63length (16 or 20) as well as the surrounding AML package length. 64 65Disassembler: Fixed a problem with the decoding of complex expressions 66within the Divide operator for ASL+. For the case where both the quotient 67and remainder targets are specified, the entire statement cannot be 68disassembled. Previously, the output incorrectly contained a mix of ASL- 69and ASL+ operators. This mixed statement causes a syntax error when 70compiled. Example: 71 Divide (Add (INT1, 6), 128, RSLT, QUOT) // was incorrectly 72disassembled to: 73 Divide (INT1 + 6, 128, RSLT, QUOT) 74 75iASL/Tools: Added support to process AML and non-AML ACPI tables 76consistently. For the disassembler and AcpiExec, allow all types of ACPI 77tables (AML and data tables). For the iASL -e option, allow only AML 78tables (DSDT/SSDT). 79 80---------------------------------------- 8131 August 2016. Summary of changes for version 20160831: 82 83 841) ACPICA kernel-resident subsystem: 85 86Improve support for the so-called "module-level code", which is defined 87to be math, logical and control AML opcodes that appear outside of any 88control method. This change improves the support by adding more opcodes 89that can be executed in the manner. Some other issues have been solved, 90and the ASL grammar changes to support such code under all scope 91operators (Device, etc.) are complete. Lv Zheng. 92 93UEFI support: these OSL functions have been implemented. This is an 94additional step toward supporting the AcpiExec utility natively (with 95full hardware access) under UEFI. Marcelo Ferreira. 96 AcpiOsReadPciConfiguration 97 AcpiOsWritePciConfiguration 98 99Fixed a possible mutex error during control method auto-serialization. Lv 100Zheng. 101 102Updated support for the Generic Address Structure by fully implementing 103all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv 104Zheng. 105 106Updated the return value for the internal _OSI method. Instead of 1070xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF 108for 64-bit ACPI tables. This fixes an incompatibility with other ACPI 109implementations, and will be reflected and clarified in the next version 110of the ACPI specification. 111 112Implemented two new table events that can be passed to an ACPICA table 113handler. These events are used to indicate a table installation or 114uninstallation. These events are used in addition to existed table load 115and unload events. Lv Zheng. 116 117Implemented a cleanup for all internal string-to-integer conversions. 118Consolidate multiple versions of this functionality and limit possible 119bases to either 10 or 16 to simplify the code. Adds a new file, 120utstrtoul64. 121 122Cleanup the inclusion order of the various compiler-specific headers. 123This simplifies build configuration management. The compiler-specific 124headers are now split out from the host-specific headers. Lv Zheng. 125 126Example Code and Data Size: These are the sizes for the OS-independent 127acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 128debug version of the code includes the debug output trace mechanism and 129has a much larger code and data size. 130 131 Current Release: 132 Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total 133 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 134 135 1362) iASL Compiler/Disassembler and Tools: 137 138iASL/AcpiExec: Added a command line option to display the build date/time 139of the tool (-vd). This can be useful to verify that the correct version 140of the tools are being used. 141 142AML Debugger: Implemented a new subcommand ("execute predef") to execute 143all predefined control methods and names within the current namespace. 144This can be useful for debugging problems with ACPI tables and the ACPI 145namespace. 146 147---------------------------------------- 14829 July 2016. Summary of changes for version 20160729: 149 150 1511) ACPICA kernel-resident subsystem: 152 153Implemented basic UEFI support for the various ACPICA tools. This 154includes: 1551) An OSL to implement the various AcpiOs* interfaces on UEFI. 1562) Support to obtain the ACPI tables on UEFI. 1573) Local implementation of required C library functions not available on 158UEFI. 1594) A front-end (main) function for the tools for UEFI-related 160initialization. 161 162The initial deployment of this support is the AcpiDump utility executing 163as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit"). 164Current environments supported are Linux/Unix. MSVC generation is not 165supported at this time. See the generate/efi/README file for build 166instructions. Lv Zheng. 167 168Future plans include porting the AcpiExec utility to execute natively on 169the platform with I/O and memory access. This will allow viewing/dump of 170the platform namespace and native execution of ACPI control methods that 171access the actual hardware. To fully implement this support, the OSL 172functions below must be implemented with UEFI interfaces. Any community 173help in the implementation of these functions would be appreciated: 174 AcpiOsReadPort 175 AcpiOsWritePort 176 AcpiOsReadMemory 177 AcpiOsWriteMemory 178 AcpiOsReadPciConfiguration 179 AcpiOsWritePciConfiguration 180 181Restructured and standardized the C library configuration for ACPICA, 182resulting in the various configuration options below. This includes a 183global restructuring of the compiler-dependent and platform-dependent 184include files. These changes may affect the existing platform-dependent 185configuration files on some hosts. Lv Zheng. 186 187The current C library configuration options appear below. For any issues, 188it may be helpful to examine the existing compiler-dependent and 189platform-dependent files as examples. Lv Zheng. 190 1911) Linux kernel: 192 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 193library. 194 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 1952) Unix/Windows/BSD applications: 196 ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C 197library. 198 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 1993) UEFI applications: 200 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 201library. 202 ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library. 2034) UEFI applications (EDK2/StdLib): 204 ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library. 205 ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library. 206 207 208AML interpreter: "module-level code" support. Allows for execution of so- 209called "executable" AML code (math/logical operations, etc.) outside of 210control methods not just at the module level (top level) but also within 211any scope declared outside of a control method - Scope{}, Device{}, 212Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng. 213 214Simplified the configuration of the "maximum AML loops" global option by 215adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be 216modified at runtime. 217 218 219Example Code and Data Size: These are the sizes for the OS-independent 220acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 221debug version of the code includes the debug output trace mechanism and 222has a much larger code and data size. 223 224 Current Release: 225 Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total 226 Debug Version: 199.0K Code, 81.8K Data, 280.8K Total 227 228 2292) iASL Compiler/Disassembler and Tools: 230 231iASL: Add full support for the RASF ACPI table (RAS Features Table). 232Includes disassembler, data table compiler, and header support. 233 234iASL Expand "module-level code" support. Allows for 235compilation/disassembly of so-called "executable" AML code (math/logical 236operations, etc.) outside of control methods not just at the module level 237(top level) but also within any scope declared outside of a control 238method - Scope{}, Device{}, Processor{}, PowerResource{}, and 239ThermalZone{}. 240 241AcpiDump: Added support for dumping all SSDTs on newer versions of 242Windows. These tables are now easily available -- SSDTs are not available 243through the registry on older versions. 244 245---------------------------------------- 24627 May 2016. Summary of changes for version 20160527: 247 248 2491) ACPICA kernel-resident subsystem: 250 251Temporarily reverted the new arbitrary bit length/alignment support in 252AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been 253a number of regressions with the new code that need to be fully resolved 254and tested before this support can be finally integrated into ACPICA. 255Apologies for any inconveniences these issues may have caused. 256 257The ACPI message macros are not configurable (ACPI_MSG_ERROR, 258ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR, 259and ACPI_MSG_BIOS_WARNING). Lv Zheng. 260 261Fixed a couple of GCC warnings associated with the use of the -Wcast-qual 262option. Adds a new return macro, return_STR. Junk-uk Kim. 263 264Example Code and Data Size: These are the sizes for the OS-independent 265acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 266debug version of the code includes the debug output trace mechanism and 267has a much larger code and data size. 268 269 Current Release: 270 Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total 271 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 272 Previous Release: 273 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 274 Debug Version: 200.9K Code, 82.2K Data, 283.1K Total 275 276---------------------------------------- 27722 April 2016. Summary of changes for version 20160422: 278 2791) ACPICA kernel-resident subsystem: 280 281Fixed a regression in the GAS (generic address structure) arbitrary bit 282support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior 283and incorrect return values. Lv Zheng. ACPICA BZ 1270. 284 285ACPI 6.0: Added support for new/renamed resource macros. One new argument 286was added to each of these macros, and the original name has been 287deprecated. The AML disassembler will always disassemble to the new 288names. Support for the new macros was added to iASL, disassembler, 289resource manager, and the acpihelp utility. ACPICA BZ 1274. 290 291 I2cSerialBus -> I2cSerialBusV2 292 SpiSerialBus -> SpiSerialBusV2 293 UartSerialBus -> UartSerialBusV2 294 295ACPI 6.0: Added support for a new integer field that was appended to the 296package object returned by the _BIX method. This adds iASL compile-time 297and AML runtime error checking. ACPICA BZ 1273. 298 299ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm 300Subspace Type2" (Headers, Disassembler, and data table compiler). 301 302Example Code and Data Size: These are the sizes for the OS-independent 303acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 304debug version of the code includes the debug output trace mechanism and 305has a much larger code and data size. 306 307 Current Release: 308 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 309 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 310 Previous Release: 311 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 312 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 313 314 3152) iASL Compiler/Disassembler and Tools: 316 317iASL: Implemented an ASL grammar extension to allow/enable executable 318"module-level code" to be created and executed under the various 319operators that create new scopes. This type of AML code is already 320supported in all known AML interpreters, and the grammar change will 321appear in the next version of the ACPI specification. Simplifies the 322conditional runtime creation of named objects under these object types: 323 324 Device 325 PowerResource 326 Processor 327 Scope 328 ThermalZone 329 330iASL: Implemented a new ASL extension, a "For" loop macro to add greater 331ease-of-use to the ASL language. The syntax is similar to the 332corresponding C operator, and is implemented with the existing AML While 333opcode -- thus requiring no changes to existing AML interpreters. 334 335 For (Initialize, Predicate, Update) {TermList} 336 337Grammar: 338 ForTerm := 339 For ( 340 Initializer // Nothing | TermArg => ComputationalData 341 Predicate // Nothing | TermArg => ComputationalData 342 Update // Nothing | TermArg => ComputationalData 343 ) {TermList} 344 345 346iASL: The _HID/_ADR detection and validation has been enhanced to search 347under conditionals in order to allow these objects to be conditionally 348created at runtime. 349 350iASL: Fixed several issues with the constant folding feature. The 351improvement allows better detection and resolution of statements that can 352be folded at compile time. ACPICA BZ 1266. 353 354iASL/Disassembler: Fixed a couple issues with the Else{If{}...} 355conversion to the ASL ElseIf operator where incorrect ASL code could be 356generated. 357 358iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where 359sometimes an extra (and extraneous) set of parentheses were emitted for 360some combinations of operators. Although this did not cause any problems 361with recompilation of the disassembled code, it made the code more 362difficult to read. David Box. ACPICA BZ 1231. 363 364iASL: Changed to ignore the unreferenced detection for predefined names 365of resource descriptor elements, when the resource descriptor is 366created/defined within a control method. 367 368iASL: Disassembler: Fix a possible fault with externally declared Buffer 369objects. 370 371---------------------------------------- 37218 March 2016. Summary of changes for version 20160318: 373 3741) ACPICA kernel-resident subsystem: 375 376Added support for arbitrary bit lengths and bit offsets for registers 377defined by the Generic Address Structure. Previously, only aligned bit 378lengths of 8/16/32/64 were supported. This was sufficient for many years, 379but recently some machines have been seen that require arbitrary bit- 380level support. ACPICA BZ 1240. Lv Zheng. 381 382Fixed an issue where the \_SB._INI method sometimes must be evaluated 383before any _REG methods are evaluated. Lv Zheng. 384 385Implemented several changes related to ACPI table support 386(Headers/Disassembler/TableCompiler): 387NFIT: For ACPI 6.1, updated to add some additional new fields and 388constants. 389FADT: Updated a warning message and set compliance to ACPI 6.1 (Version 3906). 391DMAR: Added new constants per the 10/2014 DMAR spec. 392IORT: Added new subtable per the 10/2015 IORT spec. 393HEST: For ACPI 6.1, added new constants and new subtable. 394DBG2: Added new constants per the 12/2015 DBG2 spec. 395FPDT: Fixed several incorrect fields, add the FPDT boot record structure. 396ACPICA BZ 1249. 397ERST/EINJ: Updated disassembler with new "Execute Timings" actions. 398 399Updated header support for the DMAR table to match the current version of 400the related spec. 401 402Added extensions to the ASL Concatenate operator to allow any ACPI object 403to be passed as an operand. Any object other than Integer/String/Buffer 404simply returns a string containing the object type. This extends the 405usefulness of the Printf macros. Previously, Concatenate would abort the 406control method if a non-data object was encountered. 407 408ACPICA source code: Deployed the C "const" keyword across the source code 409where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD). 410 411Example Code and Data Size: These are the sizes for the OS-independent 412acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 413debug version of the code includes the debug output trace mechanism and 414has a much larger code and data size. 415 416 Current Release: 417 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 418 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 419 Previous Release: 420 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 421 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 422 423 4242) iASL Compiler/Disassembler and Tools: 425 426iASL/Disassembler: Improved the heuristic used to determine the number of 427arguments for an externally defined control method (a method in another 428table). Although this is an improvement, there is no deterministic way to 429"guess" the number of method arguments. Only the ACPI 6.0 External opcode 430will completely solve this problem as it is deployed (automatically) in 431newer BIOS code. 432 433iASL/Disassembler: Fixed an ordering issue for emitted External() ASL 434statements that could cause errors when the disassembled file is 435compiled. ACPICA BZ 1243. David Box. 436 437iASL: Fixed a regression caused by the merger of the two versions of the 438local strtoul64. Because of a dependency on a global variable, strtoul64 439could return an error for integers greater than a 32-bit value. ACPICA BZ 4401260. 441 442iASL: Fixed a regression where a fault could occur for an ASL Return 443statement if it invokes a control method that is not resolved. ACPICA BZ 4441264. 445 446AcpiXtract: Improved input file validation: detection of binary files and 447non-acpidump text files. 448 449---------------------------------------- 45012 February 2016. Summary of changes for version 20160212: 451 4521) ACPICA kernel-resident subsystem: 453 454Implemented full support for the ACPI 6.1 specification (released in 455January). This version of the specification is available at: 456http://www.uefi.org/specifications 457 458Only a relatively small number of changes were required in ACPICA to 459support ACPI 6.1, in these areas: 460- New predefined names 461- New _HID values 462- A new subtable for HEST 463- A few other header changes for new values 464 465Ensure \_SB_._INI is executed before any _REG methods are executed. There 466appears to be existing BIOS code that relies on this behavior. Lv Zheng. 467 468Reverted a change made in version 20151218 which enabled method 469invocations to be targets of various ASL operators (SuperName and Target 470grammar elements). While the new behavior is supported by the ACPI 471specification, other AML interpreters do not support this behavior and 472never will. The ACPI specification will be updated for ACPI 6.2 to remove 473this support. Therefore, the change was reverted to the original ACPICA 474behavior. 475 476ACPICA now supports the GCC 6 compiler. 477 478Current Release: (Note: build changes increased sizes) 479 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 480 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 481Previous Release: 482 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 483 Debug Version: 200.4K Code, 81.9K Data, 282.3K Total 484 485 4862) iASL Compiler/Disassembler and Tools: 487 488Completed full support for the ACPI 6.0 External() AML opcode. The 489compiler emits an external AML opcode for each ASL External statement. 490This opcode is used by the disassembler to assist with the disassembly of 491external control methods by specifying the required number of arguments 492for the method. AML interpreters do not use this opcode. To ensure that 493interpreters do not even see the opcode, a block of one or more external 494opcodes is surrounded by an "If(0)" construct. As this feature becomes 495commonly deployed in BIOS code, the ability of disassemblers to correctly 496disassemble AML code will be greatly improved. David Box. 497 498iASL: Implemented support for an optional cross-reference output file. 499The -lx option will create a the cross-reference file with the suffix 500"xrf". Three different types of cross-reference are created in this file: 501- List of object references made from within each control method 502- Invocation (caller) list for each user-defined control method 503- List of references to each non-method object in the namespace 504 505iASL: Method invocations as ASL Target operands are now disallowed and 506flagged as errors in preparation for ACPI 6.2 (see the description of the 507problem above). 508 509---------------------------------------- 5108 January 2016. Summary of changes for version 20160108: 511 5121) ACPICA kernel-resident subsystem: 513 514Updated all ACPICA copyrights and signons to 2016: Added the 2016 515copyright to all source code module headers and utility/tool signons. 516This includes the standard Linux dual-license header. This affects 517virtually every file in the ACPICA core subsystem, iASL compiler, all 518ACPICA utilities, and the ACPICA test suite. 519 520Fixed a regression introduced in version 20151218 concerning the 521execution of so-called module-level ASL/AML code. Namespace objects 522created under a module-level If() construct were not properly/fully 523entered into the namespace and could cause an interpreter fault when 524accessed. 525 526Example Code and Data Size: These are the sizes for the OS-independent 527acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 528debug version of the code includes the debug output trace mechanism and 529has a much larger code and data size. 530 531Current Release: 532 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 533 Debug Version: 200.4K Code, 81.9K Data, 282.4K Total 534 Previous Release: 535 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 536 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 537 538 5392) iASL Compiler/Disassembler and Tools: 540 541Fixed a problem with the compilation of the GpioIo and GpioInt resource 542descriptors. The _PIN field name was incorrectly defined to be an array 543of 32-bit values, but the _PIN values are in fact 16 bits each. This 544would cause incorrect bit width warnings when using Word (16-bit) fields 545to access the descriptors. 546 547 548---------------------------------------- 54918 December 2015. Summary of changes for version 20151218: 550 5511) ACPICA kernel-resident subsystem: 552 553Implemented per-AML-table execution of "module-level code" as individual 554ACPI tables are loaded into the namespace during ACPICA initialization. 555In other words, any module-level code within an AML table is executed 556immediately after the table is loaded, instead of batched and executed 557after all of the tables have been loaded. This provides compatibility 558with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng, 559David Box. 560 561To fully support the feature above, the default operation region handlers 562for the SystemMemory, SystemIO, and PCI_Config address spaces are now 563installed before any ACPI tables are loaded. This enables module-level 564code to access these address spaces during the table load and module- 565level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David 566Box. 567 568Implemented several changes to the internal _REG support in conjunction 569with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples 570utilities for the changes above. Although these tools were changed, host 571operating systems that simply use the default handlers for SystemMemory, 572SystemIO, and PCI_Config spaces should not require any update. Lv Zheng. 573 574For example, in the code below, DEV1 is conditionally added to the 575namespace by the DSDT via module-level code that accesses an operation 576region. The SSDT references DEV1 via the Scope operator. DEV1 must be 577created immediately after the DSDT is loaded in order for the SSDT to 578successfully reference DEV1. Previously, this code would cause an 579AE_NOT_EXIST exception during the load of the SSDT. Now, this code is 580fully supported by ACPICA. 581 582 DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1) 583 { 584 OperationRegion (OPR1, SystemMemory, 0x400, 32) 585 Field (OPR1, AnyAcc, NoLock, Preserve) 586 { 587 FLD1, 1 588 } 589 If (FLD1) 590 { 591 Device (\DEV1) 592 { 593 } 594 } 595 } 596 DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1) 597 { 598 External (\DEV1, DeviceObj) 599 Scope (\DEV1) 600 { 601 } 602 } 603 604Fixed an AML interpreter problem where control method invocations were 605not handled correctly when the invocation was itself a SuperName argument 606to another ASL operator. In these cases, the method was not invoked. 607ACPICA BZ 1002. Affects the following ASL operators that have a SuperName 608argument: 609 Store 610 Acquire, Wait 611 CondRefOf, RefOf 612 Decrement, Increment 613 Load, Unload 614 Notify 615 Signal, Release, Reset 616 SizeOf 617 618Implemented automatic String-to-ObjectReference conversion support for 619packages returned by predefined names (such as _DEP). A common BIOS error 620is to add double quotes around an ObjectReference namepath, which turns 621the reference into an unexpected string object. This support detects the 622problem and corrects it before the package is returned to the caller that 623invoked the method. Lv Zheng. 624 625Implemented extensions to the Concatenate operator. Concatenate now 626accepts any type of object, it is not restricted to simply 627Integer/String/Buffer. For objects other than these 3 basic data types, 628the argument is treated as a string containing the name of the object 629type. This expands the utility of Concatenate and the Printf/Fprintf 630macros. ACPICA BZ 1222. 631 632Cleaned up the output of the ASL Debug object. The timer() value is now 633optional and no longer emitted by default. Also, the basic data types of 634Integer/String/Buffer are simply emitted as their values, without a data 635type string -- since the data type is obvious from the output. ACPICA BZ 6361221. 637 638Example Code and Data Size: These are the sizes for the OS-independent 639acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 640debug version of the code includes the debug output trace mechanism and 641has a much larger code and data size. 642 643 Current Release: 644 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 645 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 646 Previous Release: 647 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 648 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 649 650 6512) iASL Compiler/Disassembler and Tools: 652 653iASL: Fixed some issues with the ASL Include() operator. This operator 654was incorrectly defined in the iASL parser rules, causing a new scope to 655be opened for the code within the include file. This could lead to 656several issues, including allowing ASL code that is technically illegal 657and not supported by AML interpreters. Note, this does not affect the 658related #include preprocessor operator. ACPICA BZ 1212. 659 660iASL/Disassembler: Implemented support for the ASL ElseIf operator. This 661operator is essentially an ASL macro since there is no AML opcode 662associated with it. The code emitted by the iASL compiler for ElseIf is 663an Else opcode followed immediately by an If opcode. The disassembler 664will now emit an ElseIf if it finds an Else immediately followed by an 665If. This simplifies the decoded ASL, especially for deeply nested 666If..Else and large Switch constructs. Thus, the disassembled code more 667closely follows the original source ASL. ACPICA BZ 1211. Example: 668 669 Old disassembly: 670 Else 671 { 672 If (Arg0 == 0x02) 673 { 674 Local0 = 0x05 675 } 676 } 677 678 New disassembly: 679 ElseIf (Arg0 == 0x02) 680 { 681 Local0 = 0x05 682 } 683 684AcpiExec: Added support for the new module level code behavior and the 685early region installation. This required a small change to the 686initialization, since AcpiExec must install its own operation region 687handlers. 688 689AcpiExec: Added support to make the debug object timer optional. Default 690is timer disabled. This cleans up the debug object output -- the timer 691data is rarely used. 692 693AcpiExec: Multiple ACPI tables are now loaded in the order that they 694appear on the command line. This can be important when there are 695interdependencies/references between the tables. 696 697iASL/Templates. Add support to generate template files with multiple 698SSDTs within a single output file. Also added ommand line support to 699specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ 7001223, 1225. 701 702 703---------------------------------------- 70424 November 2015. Summary of changes for version 20151124: 705 7061) ACPICA kernel-resident subsystem: 707 708Fixed a possible regression for a previous update to FADT handling. The 709FADT no longer has a fixed table ID, causing some issues with code that 710was hardwired to a specific ID. Lv Zheng. 711 712Fixed a problem where the method auto-serialization could interfere with 713the current SyncLevel. This change makes the auto-serialization support 714transparent to the SyncLevel support and management. 715 716Removed support for the _SUB predefined name in AcpiGetObjectInfo. This 717interface is intended for early access to the namespace during the 718initial namespace device discovery walk. The _SUB method has been seen to 719access operation regions in some cases, causing errors because the 720operation regions are not fully initialized. 721 722AML Debugger: Fixed some issues with the terminate/quit/exit commands 723that can cause faults. Lv Zheng. 724 725AML Debugger: Add thread ID support so that single-step mode only applies 726to the AML Debugger thread. This prevents runtime errors within some 727kernels. Lv Zheng. 728 729Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx 730methods that are invoked by this interface are optional, removed warnings 731emitted for the case where one or more of these methods do not exist. 732ACPICA BZ 1208, original change by Prarit Bhargava. 733 734Made a major pass through the entire ACPICA source code base to 735standardize formatting that has diverged a bit over time. There are no 736functional changes, but this will of course cause quite a few code 737differences from the previous ACPICA release. 738 739Example Code and Data Size: These are the sizes for the OS-independent 740acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 741debug version of the code includes the debug output trace mechanism and 742has a much larger code and data size. 743 744 Current Release: 745 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 746 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 747 Previous Release: 748 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 749 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 750 751 7522) iASL Compiler/Disassembler and Tools: 753 754iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple 755definition blocks within a single ASL file and the resulting AML file. 756Support for this type of file was also added to the various tools that 757use binary AML files: acpiexec, acpixtract, and the AML disassembler. The 758example code below shows two definition blocks within the same file: 759 760 DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template", 7610x12345678) 762 { 763 } 764 DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01) 765 { 766 } 767 768iASL: Enhanced typechecking for the Name() operator. All expressions for 769the value of the named object must be reduced/folded to a single constant 770at compile time, as per the ACPI specification (the AML definition of 771Name()). 772 773iASL: Fixed some code indentation issues for the -ic and -ia options (C 774and assembly headers). Now all emitted code correctly begins in column 1. 775 776iASL: Added an error message for an attempt to open a Scope() on an 777object defined in an SSDT. The DSDT is always loaded into the namespace 778first, so any attempt to open a Scope on an SSDT object will fail at 779runtime. 780 781 782---------------------------------------- 78330 September 2015. Summary of changes for version 20150930: 784 7851) ACPICA kernel-resident subsystem: 786 787Debugger: Implemented several changes and bug fixes to assist support for 788the in-kernel version of the AML debugger. Lv Zheng. 789- Fix the "predefined" command for in-kernel debugger. 790- Do not enter debug command loop for the help and version commands. 791- Disallow "execute" command during execution/single-step of a method. 792 793Interpreter: Updated runtime typechecking for all operators that have 794target operands. The operand is resolved and validated that it is legal. 795For example, the target cannot be a non-data object such as a Device, 796Mutex, ThermalZone, etc., as per the ACPI specification. 797 798Debugger: Fixed the double-mutex user I/O handshake to work when local 799deadlock detection is enabled. 800 801Debugger: limited display of method locals and arguments (LocalX and 802ArgX) to only those that have actually been initialized. This prevents 803lines of extraneous output. 804 805Updated the definition of the NFIT table to correct the bit polarity of 806one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED 807 808Example Code and Data Size: These are the sizes for the OS-independent 809acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 810debug version of the code includes the debug output trace mechanism and 811has a much larger code and data size. 812 813 Current Release: 814 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 815 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 816 Previous Release: 817 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 818 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 819 820 8212) iASL Compiler/Disassembler and Tools: 822 823iASL: Improved the compile-time typechecking for operands of many of the 824ASL operators: 825 826-- Added an option to disable compiler operand/operator typechecking (- 827ot). 828 829-- For the following operators, the TermArg operands are now validated 830when possible to be Integer data objects: BankField, OperationRegion, 831DataTableRegion, Buffer, and Package. 832 833-- Store (Source, Target): Both the source and target operands are 834resolved and checked that the operands are both legal. For example, 835neither operand can be a non-data object such as a Device, Mutex, 836ThermalZone, etc. Note, as per the ACPI specification, the CopyObject 837operator can be used to store an object to any type of target object. 838 839-- Store (Source, Target): If the source is a Package object, the target 840must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target 841is a Package, the source must also be a Package. 842 843-- Store (Source, Target): A warning is issued if the source and target 844resolve to the identical named object. 845 846-- Store (Source, <method invocation>): An error is generated for the 847target method invocation, as this construct is not supported by the AML 848interpreter. 849 850-- For all ASL math and logic operators, the target operand must be a 851data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This 852includes the function return value also. 853 854-- External declarations are also included in the typechecking where 855possible. External objects defined using the UnknownObj keyword cannot be 856typechecked, however. 857 858iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index 859operator: 860- Legacy code: Index(PKG1, 3) 861- New ASL+ code: PKG1[3] 862This completes the ACPI 6.0 ASL+ support as it was the only operator not 863supported. 864 865iASL: Fixed the file suffix for the preprocessor output file (.i). Two 866spaces were inadvertently appended to the filename, causing file access 867and deletion problems on some systems. 868 869ASL Test Suite (ASLTS): Updated the master makefile to generate all 870possible compiler output files when building the test suite -- thus 871exercising these features of the compiler. These files are automatically 872deleted when the test suite exits. 873 874 875---------------------------------------- 87618 August 2015. Summary of changes for version 20150818: 877 8781) ACPICA kernel-resident subsystem: 879 880Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv 881Zheng. ACPICA BZ 1186. 882 883Completed development to ensure that the ACPICA Disassembler and Debugger 884are fully standalone components of ACPICA. Removed cross-component 885dependences. Lv Zheng. 886 887The max-number-of-AML-loops is now runtime configurable (previously was 888compile-time only). This is essentially a loop timeout to force-abort 889infinite AML loops. ACPCIA BZ 1192. 890 891Debugger: Cleanup output to dump ACPI names and namepaths without any 892trailing underscores. Lv Zheng. ACPICA BZ 1135. 893 894Removed unnecessary conditional compilations across the Debugger and 895Disassembler components where entire modules could be left uncompiled. 896 897The aapits test is deprecated and has been removed from the ACPICA git 898tree. The test has never been completed and has not been maintained, thus 899becoming rather useless. ACPICA BZ 1015, 794. 900 901A batch of small changes to close bugzilla and other reports: 902- Remove duplicate code for _PLD processing. ACPICA BZ 1176. 903- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185. 904- iASL: Support POSIX yacc again in makefile. Jung-uk Kim. 905- ACPI table support: general cleanup and simplification. Lv Zheng, Bob 906Moore. 907- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable. 908ACPICA BZ 1184. 909- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML 910operators. 911- Debugger: Split debugger initialization/termination interfaces. Lv 912Zheng. 913- AcpiExec: Emit OemTableId for SSDTs during the load phase for table 914identification. 915- AcpiExec: Add debug message during _REG method phase during table 916load/init. 917- AcpiNames: Fix a regression where some output was missing and no longer 918emitted. 919- Debugger: General cleanup and simplification. Lv Zheng. 920- Disassembler: Cleanup use of several global option variables. Lv Zheng. 921 922Example Code and Data Size: These are the sizes for the OS-independent 923acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 924debug version of the code includes the debug output trace mechanism and 925has a much larger code and data size. 926 927 Current Release: 928 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 929 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 930 Previous Release: 931 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 932 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 933 934 9352) iASL Compiler/Disassembler and Tools: 936 937AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT 938were not handled properly and caused load errors. Now, properly invoke 939and use the ACPICA auto-reallocate mechanism for ACPI table data 940structures. ACPICA BZ 1188 941 942AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA 943BZ 1190. 944 945AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For 946AcpiExec, this means that no control methods (like _REG/_INI/_STA) are 947executed during initialization. ACPICA BZ 1187, 1189. 948 949iASL/Disassembler: Implemented a prototype "listing" mode that emits AML 950that corresponds to each disassembled ASL statement, to simplify 951debugging. ACPICA BZ 1191. 952 953Debugger: Add option to the "objects" command to display a summary of the 954current namespace objects (Object type and count). This is displayed if 955the command is entered with no arguments. 956 957AcpiNames: Add -x option to specify debug level, similar to AcpiExec. 958 959 960---------------------------------------- 96117 July 2015. Summary of changes for version 20150717: 962 9631) ACPICA kernel-resident subsystem: 964 965Improved the partitioning between the Debugger and Disassembler 966components. This allows the Debugger to be used standalone within kernel 967code without the Disassembler (which is used for single stepping also). 968This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng. 969 970Debugger: Implemented a new command to trace the execution of control 971methods (Trace). This is especially useful for the in-kernel version of 972the debugger when file I/O may not be available for method trace output. 973See the ACPICA reference for more information. Lv Zheng. 974 975Moved all C library prototypes (used for the local versions of these 976functions when requested) to a new header, acclib.h 977Cleaned up the use of non-ANSI C library functions. These functions are 978implemented locally in ACPICA. Moved all such functions to a common 979source file, utnonansi.c 980 981Debugger: Fixed a problem with the "!!" command (get last command 982executed) where the debugger could enter an infinite loop and eventually 983crash. 984 985Removed the use of local macros that were used for some of the standard C 986library functions to automatically cast input parameters. This mostly 987affected the is* functions where the input parameter is defined to be an 988int. This required a few modifications to the main ACPICA source code to 989provide casting for these functions and eliminate possible compiler 990warnings for these parameters. 991 992Across the source code, added additional status/error checking to resolve 993issues discovered by static source code analysis tools such as Coverity. 994 995Example Code and Data Size: These are the sizes for the OS-independent 996acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 997debug version of the code includes the debug output trace mechanism and 998has a much larger code and data size. 999 1000 Current Release: 1001 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 1002 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 1003 Previous Release: 1004 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 1005 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 1006 1007 10082) iASL Compiler/Disassembler and Tools: 1009 1010iASL: Fixed a regression where the device map file feature no longer 1011worked properly when used in conjunction with the disassembler. It only 1012worked properly with the compiler itself. 1013 1014iASL: Implemented a new warning for method LocalX variables that are set 1015but never used (similar to a C compiler such as gcc). This also applies 1016to ArgX variables that are not defined by the parent method, and are 1017instead (legally) used as local variables. 1018 1019iASL/Preprocessor: Finished the pass-through of line numbers from the 1020preprocessor to the compiler. This ensures that compiler errors/warnings 1021have the correct original line numbers and filenames, regardless of any 1022#include files. 1023 1024iASL/Preprocessor: Fixed a couple of issues with comment handling and the 1025pass-through of comments to the preprocessor output file (which becomes 1026the compiler input file). Also fixed a problem with // comments that 1027appear after a math expression. 1028 1029iASL: Added support for the TCPA server table to the table compiler and 1030template generator. (The client table was already previously supported) 1031 1032iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to 1033identify the iASL compiler. 1034 1035Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined 1036multiple times. The new names are ACPI_SIGN_NEGATIVE and 1037ACPI_SIGN_POSITIVE. 1038 1039AcpiHelp: Update to expand help messages for the iASL preprocessor 1040directives. 1041 1042 1043---------------------------------------- 104419 June 2015. Summary of changes for version 20150619: 1045 1046Two regressions in version 20150616 have been addressed: 1047 1048Fixes some problems/issues with the C library macro removal (ACPI_STRLEN, 1049etc.) This update changes ACPICA to only use the standard headers for 1050functions, or the prototypes for the local versions of the C library 1051functions. Across the source code, this required some additional casts 1052for some Clib invocations for portability. Moved all local prototypes to 1053a new file, acclib.h 1054 1055Fixes several problems with recent changes to the handling of the FACS 1056table that could cause some systems not to boot. 1057 1058 1059---------------------------------------- 106016 June 2015. Summary of changes for version 20150616: 1061 1062 10631) ACPICA kernel-resident subsystem: 1064 1065Across the entire ACPICA source code base, the various macros for the C 1066library functions (such as ACPI_STRLEN, etc.) have been removed and 1067replaced by the standard C library names (strlen, etc.) The original 1068purpose for these macros is no longer applicable. This simplification 1069reduces the number of macros used in the ACPICA source code 1070significantly, improving readability and maintainability. 1071 1072Implemented support for a new ACPI table, the OSDT. This table, the 1073"override" SDT, can be loaded directly by the host OS at boot time. It 1074enables the replacement of existing namespace objects that were installed 1075via the DSDT and/or SSDTs. The primary purpose for this is to replace 1076buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated 1077for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob 1078Moore. 1079 1080Added support for systems with (improperly) two FACS tables -- a "32-bit" 1081table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit 1082X field). This change will support both automatically. There continues to 1083be systems found with this issue. This support requires a change to the 1084AcpiSetFirmwareWakingVector interface. Also, a public global variable has 1085been added to allow the host to select which FACS is desired 1086(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more 1087details Lv Zheng. 1088 1089Added a new feature to allow for systems that do not contain an FACS. 1090Although this is already supported on hardware-reduced platforms, the 1091feature has been extended for all platforms. The reasoning is that we do 1092not want to abort the entire ACPICA initialization just because the 1093system is seriously buggy and has no FACS. 1094 1095Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were 1096not correctly transcribed from the ACPI specification in ACPICA version 109720150515. 1098 1099Implemented support for the _CLS object in the AcpiGetObjectInfo external 1100interface. 1101 1102Updated the definitions of the TCPA and TPM2 ACPI tables to the more 1103recent TCG ACPI Specification, December 14, 2014. Table disassembler and 1104compiler also updated. Note: The TCPA "server" table is not supported by 1105the disassembler/table-compiler at this time. 1106 1107ACPI 6.0: Added definitions for the new GIC version field in the MADT. 1108 1109Example Code and Data Size: These are the sizes for the OS-independent 1110acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1111debug version of the code includes the debug output trace mechanism and 1112has a much larger code and data size. 1113 1114 Current Release: 1115 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 1116 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 1117 Previous Release: 1118 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 1119 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 1120 1121 11222) iASL Compiler/Disassembler and Tools: 1123 1124Disassembler: Fixed a problem with the new symbolic operator disassembler 1125where incorrect ASL code could be emitted in some cases for the "non- 1126commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and 1127ShiftRight. The actual problem cases seem to be rather unusual in common 1128ASL code, however. David Box. 1129 1130Modified the linux version of acpidump to obtain ACPI tables from not 1131just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv 1132Zheng. 1133 1134iASL: Fixed a problem where the user preprocessor output file (.i) 1135contained extra data that was not expected. The compiler was using this 1136file as a temporary file and passed through #line directives in order to 1137keep compiler error messages in sync with the input file and line number 1138across multiple include files. The (.i) is no longer a temporary file as 1139the compiler uses a new, different file for the original purpose. 1140 1141iASL: Fixed a problem where comments within the original ASL source code 1142file were not passed through to the preprocessor output file, nor any 1143listing files. 1144 1145iASL: Fixed some issues for the handling of the "#include" preprocessor 1146directive and the similar (but not the same) "Include" ASL operator. 1147 1148iASL: Add support for the new OSDT in both the disassembler and compiler. 1149 1150iASL: Fixed a problem with the constant folding support where a Buffer 1151object could be incorrectly generated (incorrectly formed) during a 1152conversion to a Store() operator. 1153 1154AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new 1155description text for the _REV predefined name. _REV now permanently 1156returns 2, as per the ACPI 6.0 specification. 1157 1158Debugger: Enhanced the output of the Debug ASL object for references 1159produced by the Index operator. For Buffers and strings, only output the 1160actual byte pointed to by the index. For packages, only print the single 1161package element decoded by the index. Previously, the entire 1162buffer/string/package was emitted. 1163 1164iASL/Table-compiler: Fixed a regression where the "generic" data types 1165were no longer recognized, causing errors. 1166 1167 1168---------------------------------------- 116915 May 2015. Summary of changes for version 20150515: 1170 1171This release implements most of ACPI 6.0 as described below. 1172 11731) ACPICA kernel-resident subsystem: 1174 1175Implemented runtime argument checking and return value checking for all 1176new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI, 1177_MTL, _PRR, _RDI, _RST, _TFP, _TSN. 1178 1179Example Code and Data Size: These are the sizes for the OS-independent 1180acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1181debug version of the code includes the debug output trace mechanism and 1182has a much larger code and data size. 1183 1184 Current Release: 1185 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 1186 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 1187 Previous Release: 1188 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 1189 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 1190 1191 11922) iASL Compiler/Disassembler and Tools: 1193 1194iASL compiler: Added compile-time support for all new ACPI 6.0 predefined 1195names (argument count validation and return value typechecking.) 1196 1197iASL disassembler and table compiler: implemented support for all new 1198ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV. 1199 1200iASL disassembler and table compiler: Added ACPI 6.0 changes to existing 1201tables: FADT, MADT. 1202 1203iASL preprocessor: Added a new directive to enable inclusion of binary 1204blobs into ASL code. The new directive is #includebuffer. It takes a 1205binary file as input and emits a named ascii buffer object into the ASL 1206code. 1207 1208AcpiHelp: Added support for all new ACPI 6.0 predefined names. 1209 1210AcpiHelp: Added a new option, -d, to display all iASL preprocessor 1211directives. 1212 1213AcpiHelp: Added a new option, -t, to display all known/supported ACPI 1214tables. 1215 1216 1217---------------------------------------- 121810 April 2015. Summary of changes for version 20150410: 1219 1220Reverted a change introduced in version 20150408 that caused 1221a regression in the disassembler where incorrect operator 1222symbols could be emitted. 1223 1224 1225---------------------------------------- 122608 April 2015. Summary of changes for version 20150408: 1227 1228 12291) ACPICA kernel-resident subsystem: 1230 1231Permanently set the return value for the _REV predefined name. It now 1232returns 2 (was 5). This matches other ACPI implementations. _REV will be 1233deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2 1234for ACPI 2.0 and later. It should never be used to differentiate or 1235identify operating systems. 1236 1237Added the "Windows 2015" string to the _OSI support. ACPICA will now 1238return TRUE to a query with this string. 1239 1240Fixed several issues with the local version of the printf function. 1241 1242Added the C99 compiler option (-std=c99) to the Unix makefiles. 1243 1244 Current Release: 1245 Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total 1246 Debug Version: 195.2K Code, 80.7K Data, 275.9K Total 1247 Previous Release: 1248 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 1249 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 1250 1251 12522) iASL Compiler/Disassembler and Tools: 1253 1254iASL: Implemented an enhancement to the constant folding feature to 1255transform the parse tree to a simple Store operation whenever possible: 1256 Add (2, 3, X) ==> is converted to: Store (5, X) 1257 X = 2 + 3 ==> is converted to: Store (5, X) 1258 1259Updated support for the SLIC table (Software Licensing Description Table) 1260in both the Data Table compiler and the disassembler. The SLIC table 1261support now conforms to "Microsoft Software Licensing Tables (SLIC and 1262MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data 1263following the ACPI header is now defined to be "Proprietary Data", and as 1264such, can only be entered or displayed as a hex data block. 1265 1266Implemented full support for the MSDM table as described in the document 1267above. Note: The format of MSDM is similar to SLIC. Any MSDM data 1268following the ACPI header is defined to be "Proprietary Data", and can 1269only be entered or displayed as a hex data block. 1270 1271Implemented the -Pn option for the iASL Table Compiler (was only 1272implemented for the ASL compiler). This option disables the iASL 1273preprocessor. 1274 1275Disassembler: For disassembly of Data Tables, added a comment field 1276around the Ascii equivalent data that is emitted as part of the "Raw 1277Table Data" block. This prevents the iASL Preprocessor from possible 1278confusion if/when the table is compiled. 1279 1280Disassembler: Added an option (-df) to force the disassembler to assume 1281that the table being disassembled contains valid AML. This feature is 1282useful for disassembling AML files that contain ACPI signatures other 1283than DSDT or SSDT (such as OEMx or other signatures). 1284 1285Changes for the EFI version of the tools: 12861) Fixed a build error/issue 12872) Fixed a cast warning 1288 1289iASL: Fixed a path issue with the __FILE__ operator by making the 1290directory prefix optional within the internal SplitInputFilename 1291function. 1292 1293Debugger: Removed some unused global variables. 1294 1295Tests: Updated the makefile for proper generation of the AAPITS suite. 1296 1297 1298---------------------------------------- 129904 February 2015. Summary of changes for version 20150204: 1300 1301ACPICA kernel-resident subsystem: 1302 1303Updated all ACPICA copyrights and signons to 2014. Added the 2014 1304copyright to all module headers and signons, including the standard Linux 1305header. This affects virtually every file in the ACPICA core subsystem, 1306iASL compiler, all ACPICA utilities, and the test suites. 1307 1308Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues. 1309A raw gpe handling mechanism was created to allow better handling of GPE 1310storms that aren't easily managed by the normal handler. The raw handler 1311allows disabling/renabling of the the GPE so that interrupt storms can be 1312avoided in cases where events cannot be timely serviced. In this 1313scenario, handlers should use the AcpiSetGpe() API to disable/enable the 1314GPE. This API will leave the reference counts undisturbed, thereby 1315preventing unintentional clearing of the GPE when the intent in only to 1316temporarily disable it. Raw handlers allow enabling and disabling of a 1317GPE by removing GPE register locking. As such, raw handlers much provide 1318their own locks while using GPE API's to protect access to GPE data 1319structures. 1320Lv Zheng 1321 1322Events: Always modify GPE registers under the GPE lock. 1323Applies GPE lock around AcpiFinishGpe() to protect access to GPE register 1324values. Reported as bug by joe.liu@apple.com. 1325 1326Unix makefiles: Separate option to disable optimizations and 1327_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the 1328NOOPT disable option and creates a separate flag (NOFORTIFY) for this 1329purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined 1330errors when building ACPICA. This allows disabling the option without 1331also having to disable optimazations. 1332David Box 1333 1334 Current Release: 1335 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 1336 Debug Version: 199.2K Code, 82.4K Data, 281.6K Total 1337 1338-- 1339-------------------------------------- 134007 November 2014. Summary of changes for version 20141107: 1341 1342This release is available at https://acpica.org/downloads 1343 1344This release introduces and implements language extensions to ASL that 1345provide support for symbolic ("C-style") operators and expressions. These 1346language extensions are known collectively as ASL+. 1347 1348 13491) iASL Compiler/Disassembler and Tools: 1350 1351Disassembler: Fixed a problem with disassembly of the UartSerialBus 1352macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E. 1353Box. 1354 1355Disassembler: Fixed the Unicode macro support to add escape sequences. 1356All non-printable ASCII values are emitted as escape sequences, as well 1357as the standard escapes for quote and backslash. Ensures that the 1358disassembled macro can be correctly recompiled. 1359 1360iASL: Added Printf/Fprintf macros for formatted output. These macros are 1361translated to existing AML Concatenate and Store operations. Printf 1362writes to the ASL Debug object. Fprintf allows the specification of an 1363ASL name as the target. Only a single format specifier is required, %o, 1364since the AML interpreter dynamically converts objects to the required 1365type. David E. Box. 1366 1367 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 1368 (Concatenate (Concatenate (Concatenate ("", Arg0), 1369 ": Unexpected value for "), Arg1), ", "), Arg2), 1370 " at line "), Arg3), Debug) 1371 1372 (new) Printf ("%o: Unexpected value for %o, %o at line %o", 1373 Arg0, Arg1, Arg2, Arg3) 1374 1375 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 1376 ("", Arg1), ": "), Arg0), " Successful"), STR1) 1377 1378 (new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0) 1379 1380iASL: Added debug options (-bp, -bt) to dynamically prune levels of the 1381ASL parse tree before the AML code is generated. This allows blocks of 1382ASL code to be removed in order to help locate and identify problem 1383devices and/or code. David E. Box. 1384 1385AcpiExec: Added support (-fi) for an optional namespace object 1386initialization file. This file specifies initial values for namespace 1387objects as necessary for debugging and testing different ASL code paths 1388that may be taken as a result of BIOS options. 1389 1390 13912) Overview of symbolic operator support for ASL (ASL+) 1392------------------------------------------------------- 1393 1394As an extension to the ASL language, iASL implements support for symbolic 1395(C-style) operators for math and logical expressions. This can greatly 1396simplify ASL code as well as improve both readability and 1397maintainability. These language extensions can exist concurrently with 1398all legacy ASL code and expressions. 1399 1400The symbolic extensions are 100% compatible with existing AML 1401interpreters, since no new AML opcodes are created. To implement the 1402extensions, the iASL compiler transforms the symbolic expressions into 1403the legacy ASL/AML equivalents at compile time. 1404 1405Full symbolic expressions are supported, along with the standard C 1406precedence and associativity rules. 1407 1408Full disassembler support for the symbolic expressions is provided, and 1409creates an automatic migration path for existing ASL code to ASL+ code 1410via the disassembly process. By default, the disassembler now emits ASL+ 1411code with symbolic expressions. An option (-dl) is provided to force the 1412disassembler to emit legacy ASL code if desired. 1413 1414Below is the complete list of the currently supported symbolic operators 1415with examples. See the iASL User Guide for additional information. 1416 1417 1418ASL+ Syntax Legacy ASL Equivalent 1419----------- --------------------- 1420 1421 // Math operators 1422 1423Z = X + Y Add (X, Y, Z) 1424Z = X - Y Subtract (X, Y, Z) 1425Z = X * Y Multiply (X, Y, Z) 1426Z = X / Y Divide (X, Y, , Z) 1427Z = X % Y Mod (X, Y, Z) 1428Z = X << Y ShiftLeft (X, Y, Z) 1429Z = X >> Y ShiftRight (X, Y, Z) 1430Z = X & Y And (X, Y, Z) 1431Z = X | Y Or (X, Y, Z) 1432Z = X ^ Y Xor (X, Y, Z) 1433Z = ~X Not (X, Z) 1434X++ Increment (X) 1435X-- Decrement (X) 1436 1437 // Logical operators 1438 1439(X == Y) LEqual (X, Y) 1440(X != Y) LNotEqual (X, Y) 1441(X < Y) LLess (X, Y) 1442(X > Y) LGreater (X, Y) 1443(X <= Y) LLessEqual (X, Y) 1444(X >= Y) LGreaterEqual (X, Y) 1445(X && Y) LAnd (X, Y) 1446(X || Y) LOr (X, Y) 1447(!X) LNot (X) 1448 1449 // Assignment and compound assignment operations 1450 1451X = Y Store (Y, X) 1452X += Y Add (X, Y, X) 1453X -= Y Subtract (X, Y, X) 1454X *= Y Multiply (X, Y, X) 1455X /= Y Divide (X, Y, , X) 1456X %= Y Mod (X, Y, X) 1457X <<= Y ShiftLeft (X, Y, X) 1458X >>= Y ShiftRight (X, Y, X) 1459X &= Y And (X, Y, X) 1460X |= Y Or (X, Y, X) 1461X ^= Y Xor (X, Y, X) 1462 1463 14643) ASL+ Examples: 1465----------------- 1466 1467Legacy ASL: 1468 If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual ( 1469 And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 14700x03FB), 1471 0x02E0), LEqual (And (R540, 0x03FB), 0x02E0)))) 1472 { 1473 And (MEMB, 0xFFFFFFF0, SRMB) 1474 Store (MEMB, Local2) 1475 Store (PDBM, Local1) 1476 And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) 1477 Store (SRMB, MEMB) 1478 Or (PDBM, 0x02, PDBM) 1479 } 1480 1481ASL+ version: 1482 If (((R510 & 0x03FB) == 0x02E0) || 1483 ((R520 & 0x03FB) == 0x02E0) || 1484 ((R530 & 0x03FB) == 0x02E0) || 1485 ((R540 & 0x03FB) == 0x02E0)) 1486 { 1487 SRMB = (MEMB & 0xFFFFFFF0) 1488 Local2 = MEMB 1489 Local1 = PDBM 1490 PDBM &= 0xFFFFFFFFFFFFFFF9 1491 MEMB = SRMB 1492 PDBM |= 0x02 1493 } 1494 1495Legacy ASL: 1496 Store (0x1234, Local1) 1497 Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3) 1498 Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3) 1499 Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3) 1500 Store (Index (PKG1, 0x03), Local6) 1501 Store (Add (Local3, Local2), Debug) 1502 Add (Local1, 0x0F, Local2) 1503 Add (Local1, Multiply (Local2, Local3), Local2) 1504 Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3) 1505 1506ASL+ version: 1507 Local1 = 0x1234 1508 Local3 = (((Local1 + TEST) + 0x20) * Local2) 1509 Local3 = (Local2 * ((Local1 + TEST) + 0x20)) 1510 Local3 = (Local1 + (TEST + (0x20 * Local2))) 1511 Local6 = Index (PKG1, 0x03) 1512 Debug = (Local3 + Local2) 1513 Local2 = (Local1 + 0x0F) 1514 Local2 = (Local1 + (Local2 * Local3)) 1515 Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1)) 1516 1517 1518---------------------------------------- 151926 September 2014. Summary of changes for version 20140926: 1520 15211) ACPICA kernel-resident subsystem: 1522 1523Updated the GPIO operation region handler interface (GeneralPurposeIo). 1524In order to support GPIO Connection objects with multiple pins, along 1525with the related Field objects, the following changes to the interface 1526have been made: The Address is now defined to be the offset in bits of 1527the field unit from the previous invocation of a Connection. It can be 1528viewed as a "Pin Number Index" into the connection resource descriptor. 1529The BitWidth is the exact bit width of the field. It is usually one bit, 1530but not always. See the ACPICA reference guide (section 8.8.6.2.1) for 1531additional information and examples. 1532 1533GPE support: During ACPICA/GPE initialization, ensure that all GPEs with 1534corresponding _Lxx/_Exx methods are disabled (they may have been enabled 1535by the firmware), so that they cannot fire until they are enabled via 1536AcpiUpdateAllGpes. Rafael J. Wysocki. 1537 1538Added a new return flag for the Event/GPE status interfaces -- 1539AcpiGetEventStatus and AcpiGetGpeStatus. The new 1540ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or 1541GPE currently has a handler associated with it, and can thus actually 1542affect the system. Lv Zheng. 1543 1544Example Code and Data Size: These are the sizes for the OS-independent 1545acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1546debug version of the code includes the debug output trace mechanism and 1547has a much larger code and data size. 1548 1549 Current Release: 1550 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 1551 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 1552 Previous Release: 1553 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 1554 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 1555 15562) iASL Compiler/Disassembler and Tools: 1557 1558iASL: Fixed a memory allocation/free regression introduced in 20140828 1559that could cause the compiler to crash. This was introduced inadvertently 1560during the effort to eliminate compiler memory leaks. ACPICA BZ 1111, 15611113. 1562 1563iASL: Removed two error messages that have been found to create false 1564positives, until they can be fixed and fully validated (ACPICA BZ 1112): 15651) Illegal forward reference within a method 15662) Illegal reference across two methods 1567 1568iASL: Implemented a new option (-lm) to create a hardware mapping file 1569that summarizes all GPIO, I2C, SPI, and UART connections. This option 1570works for both the compiler and disassembler. See the iASL compiler user 1571guide for additional information and examples (section 6.4.6). 1572 1573AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to 1574version 2. This corrects the AE_BAD_HEADER exception seen on systems with 1575a version 1 RSDP. Lv Zheng ACPICA BZ 1097. 1576 1577AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode 1578unless STDIN is actually a terminal. Assists with batch-mode processing. 1579ACPICA BZ 1114. 1580 1581Disassembler/AcpiHelp: Added another large group of recognized _HID 1582values. 1583 1584 1585---------------------------------------- 158628 August 2014. Summary of changes for version 20140828: 1587 15881) ACPICA kernel-resident subsystem: 1589 1590Fixed a problem related to the internal use of the Timer() operator where 1591a 64-bit divide could cause an attempted link to a double-precision math 1592library. This divide is not actually necessary, so the code was 1593restructured to eliminate it. Lv Zheng. 1594 1595ACPI 5.1: Added support for the runtime validation of the _DSD package 1596(similar to the iASL support). 1597 1598ACPI 5.1/Headers: Added support for the GICC affinity subtable to the 1599SRAT table. Hanjun Guo <hanjun.guo@linaro.org>. 1600 1601Example Code and Data Size: These are the sizes for the OS-independent 1602acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1603debug version of the code includes the debug output trace mechanism and 1604has a much larger code and data size. 1605 1606 Current Release: 1607 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 1608 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 1609 Previous Release: 1610 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total1 1611 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 1612 16132) iASL Compiler/Disassembler and Tools: 1614 1615AcpiExec: Fixed a problem on unix systems where the original terminal 1616state was not always properly restored upon exit. Seen when using the -v 1617option. ACPICA BZ 1104. 1618 1619iASL: Fixed a problem with the validation of the ranges/length within the 1620Memory24 resource descriptor. There was a boundary condition when the 1621range was equal to the (length -1) caused by the fact that these values 1622are defined in 256-byte blocks, not bytes. ACPICA BZ 1098 1623 1624Disassembler: Fixed a problem with the GpioInt descriptor interrupt 1625polarity 1626flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword 1627is 1628now supported properly. 1629 1630ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported 1631in the disassembler, data table compiler, and table template generator. 1632 1633iASL: Added a requirement for Device() objects that one of either a _HID 1634or _ADR must exist within the scope of a Device, as per the ACPI 1635specification. Remove a similar requirement that was incorrectly in place 1636for the _DSD object. 1637 1638iASL: Added error detection for illegal named references within control 1639methods that would cause runtime failures. Now trapped as errors are: 1) 1640References to objects within a non-parent control method. 2) Forward 1641references (within a method) -- for control methods, AML interpreters use 1642a one-pass parse of control methods. ACPICA BZ 1008. 1643 1644iASL: Added error checking for dependencies related to the _PSx power 1645methods. ACPICA BZ 1029. 16461) For _PS0, one of these must exist within the same scope: _PS1, _PS2, 1647_PS3. 16482) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same 1649scope. 1650 1651iASL and table compiler: Cleanup miscellaneous memory leaks by fully 1652deploying the existing object and string caches and adding new caches for 1653the table compiler. 1654 1655iASL: Split the huge parser source file into multiple subfiles to improve 1656manageability. Generation now requires the M4 macro preprocessor, which 1657is part of the Bison distribution on both unix and windows platforms. 1658 1659AcpiSrc: Fixed and removed all extraneous warnings generated during 1660entire ACPICA source code scan and/or conversion. 1661 1662 1663---------------------------------------- 1664 166524 July 2014. Summary of changes for version 20140724: 1666 1667The ACPI 5.1 specification has been released and is available at: 1668http://uefi.org/specs/access 1669 1670 16710) ACPI 5.1 support in ACPICA: 1672 1673ACPI 5.1 is fully supported in ACPICA as of this release. 1674 1675New predefined names. Support includes iASL and runtime ACPICA 1676validation. 1677 _CCA (Cache Coherency Attribute). 1678 _DSD (Device-Specific Data). David Box. 1679 1680Modifications to existing ACPI tables. Support includes headers, iASL 1681Data Table compiler, disassembler, and the template generator. 1682 FADT - New fields and flags. Graeme Gregory. 1683 GTDT - One new subtable and new fields. Tomasz Nowicki. 1684 MADT - Two new subtables. Tomasz Nowicki. 1685 PCCT - One new subtable. 1686 1687Miscellaneous. 1688 New notification type for System Resource Affinity change events. 1689 1690 16911) ACPICA kernel-resident subsystem: 1692 1693Fixed a regression introduced in 20140627 where a fault can happen during 1694the deletion of Alias AML namespace objects. The problem affected both 1695the core ACPICA and the ACPICA tools including iASL and AcpiExec. 1696 1697Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a 1698simple mechanism to enable wake GPEs that have no associated handler or 1699control method. Rafael Wysocki. 1700 1701Updated the AcpiEnableGpe interface to disallow the enable if there is no 1702handler or control method associated with the particular GPE. This will 1703help avoid meaningless GPEs and even GPE floods. Rafael Wysocki. 1704 1705Updated GPE handling and dispatch by disabling the GPE before clearing 1706the status bit for edge-triggered GPEs. Lv Zheng. 1707 1708Added Timer() support to the AML Debug object. The current timer value is 1709now displayed with each invocation of (Store to) the debug object to 1710enable simple generation of execution times for AML code (method 1711execution for example.) ACPICA BZ 1093. 1712 1713Example Code and Data Size: These are the sizes for the OS-independent 1714acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1715debug version of the code includes the debug output trace mechanism and 1716has a much larger code and data size. 1717 1718 Current Release: 1719 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total 1720 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 1721 Previous Release: 1722 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 1723 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 1724 1725 17262) iASL Compiler/Disassembler and Tools: 1727 1728Fixed an issue with the recently added local printf implementation, 1729concerning width/precision specifiers that could cause incorrect output. 1730Lv Zheng. ACPICA BZ 1094. 1731 1732Disassembler: Added support to detect buffers that contain UUIDs and 1733disassemble them to an invocation of the ToUUID operator. Also emit 1734commented descriptions of known ACPI-related UUIDs. 1735 1736AcpiHelp: Added support to display known ACPI-related UUIDs. New option, 1737-u. Adds three new files. 1738 1739iASL: Update table compiler and disassembler for DMAR table changes that 1740were introduced in September 2013. With assistance by David Woodhouse. 1741 1742---------------------------------------- 174327 June 2014. Summary of changes for version 20140627: 1744 17451) ACPICA kernel-resident subsystem: 1746 1747Formatted Output: Implemented local versions of standard formatted output 1748utilities such as printf, etc. Over time, it has been discovered that 1749there are in fact many portability issues with printf, and the addition 1750of this feature will fix/prevent these issues once and for all. Some 1751known issues are summarized below: 1752 17531) Output of 64-bit values is not portable. For example, UINT64 is %ull 1754for the Linux kernel and is %uI64 for some MSVC versions. 17552) Invoking printf consistently in a manner that is portable across both 175632-bit and 64-bit platforms is difficult at best in many situations. 17573) The output format for pointers varies from system to system (leading 1758zeros especially), and leads to inconsistent output from ACPICA across 1759platforms. 17604) Certain platform-specific printf formats may conflict with ACPICA use. 17615) If there is no local C library available, ACPICA now has local support 1762for printf. 1763 1764-- To address these printf issues in a complete manner, ACPICA now 1765directly implements a small subset of printf format specifiers, only 1766those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng. 1767 1768Implemented support for ACPICA generation within the EFI environment. 1769Initially, the AcpiDump utility is supported in the UEFI shell 1770environment. Lv Zheng. 1771 1772Added a new external interface, AcpiLogError, to improve ACPICA 1773portability. This allows the host to redirect error messages from the 1774ACPICA utilities. Lv Zheng. 1775 1776Added and deployed new OSL file I/O interfaces to improve ACPICA 1777portability: 1778 AcpiOsOpenFile 1779 AcpiOsCloseFile 1780 AcpiOsReadFile 1781 AcpiOsWriteFile 1782 AcpiOsGetFileOffset 1783 AcpiOsSetFileOffset 1784There are C library implementations of these functions in the new file 1785service_layers/oslibcfs.c -- however, the functions can be implemented by 1786the local host in any way necessary. Lv Zheng. 1787 1788Implemented a mechanism to disable/enable ACPI table checksum validation 1789at runtime. This can be useful when loading tables very early during OS 1790initialization when it may not be possible to map the entire table in 1791order to compute the checksum. Lv Zheng. 1792 1793Fixed a buffer allocation issue for the Generic Serial Bus support. 1794Originally, a fixed buffer length was used. This change allows for 1795variable-length buffers based upon the protocol indicated by the field 1796access attributes. Reported by Lan Tianyu. Lv Zheng. 1797 1798Fixed a problem where an object detached from a namespace node was not 1799properly terminated/cleared and could cause a circular list problem if 1800reattached. ACPICA BZ 1063. David Box. 1801 1802Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick. 1803 1804Fixed a possible memory leak in an error return path within the function 1805AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King. 1806 1807Example Code and Data Size: These are the sizes for the OS-independent 1808acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1809debug version of the code includes the debug output trace mechanism and 1810has a much larger code and data size. 1811 1812 Current Release: 1813 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 1814 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 1815 Previous Release: 1816 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 1817 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 1818 1819 18202) iASL Compiler/Disassembler and Tools: 1821 1822Disassembler: Add dump of ASCII equivalent text within a comment at the 1823end of each line of the output for the Buffer() ASL operator. 1824 1825AcpiDump: Miscellaneous changes: 1826 Fixed repetitive table dump in -n mode. 1827 For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if 1828the ACPI 2.0 GUID fails. 1829 1830iASL: Fixed a problem where the compiler could fault if incorrectly given 1831an acpidump output file as input. ACPICA BZ 1088. David Box. 1832 1833AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if 1834they are invoked without any arguments. 1835 1836Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ 18371086. Colin Ian King. 1838 1839Disassembler: Cleaned up a block of code that extracts a parent Op 1840object. Added a comment that explains that the parent is guaranteed to be 1841valid in this case. ACPICA BZ 1069. 1842 1843 1844---------------------------------------- 184524 April 2014. Summary of changes for version 20140424: 1846 18471) ACPICA kernel-resident subsystem: 1848 1849Implemented support to skip/ignore NULL address entries in the RSDT/XSDT. 1850Some of these tables are known to contain a trailing NULL entry. Lv 1851Zheng. 1852 1853Removed an extraneous error message for the case where there are a large 1854number of system GPEs (> 124). This was the "32-bit FADT register is too 1855long to convert to GAS struct" message, which is irrelevant for GPEs 1856since the GPEx_BLK_LEN fields of the FADT are always used instead of the 1857(limited capacity) GAS bit length. Also, several changes to ensure proper 1858support for GPE numbers > 255, where some "GPE number" fields were 8-bits 1859internally. 1860 1861Implemented and deployed additional configuration support for the public 1862ACPICA external interfaces. Entire classes of interfaces can now be 1863easily modified or configured out, replaced by stubbed inline functions 1864by default. Lv Zheng. 1865 1866Moved all public ACPICA runtime configuration globals to the public 1867ACPICA external interface file for convenience. Also, removed some 1868obsolete/unused globals. See the file acpixf.h. Lv Zheng. 1869 1870Documentation: Added a new section to the ACPICA reference describing the 1871maximum number of GPEs that can be supported by the FADT-defined GPEs in 1872block zero and one. About 1200 total. See section 4.4.1 of the ACPICA 1873reference. 1874 1875Example Code and Data Size: These are the sizes for the OS-independent 1876acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1877debug version of the code includes the debug output trace mechanism and 1878has a much larger code and data size. 1879 1880 Current Release: 1881 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 1882 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 1883 Previous Release: 1884 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 1885 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 1886 1887 18882) iASL Compiler/Disassembler and Tools: 1889 1890iASL and disassembler: Add full support for the LPIT table (Low Power 1891Idle Table). Includes support in the disassembler, data table compiler, 1892and template generator. 1893 1894AcpiDump utility: 18951) Add option to force the use of the RSDT (over the XSDT). 18962) Improve validation of the RSDP signature (use 8 chars instead of 4). 1897 1898iASL: Add check for predefined packages that are too large. For 1899predefined names that contain subpackages, check if each subpackage is 1900too large. (Check for too small already exists.) 1901 1902Debugger: Updated the GPE command (which simulates a GPE by executing the 1903GPE code paths in ACPICA). The GPE device is now optional, and defaults 1904to the GPE 0/1 FADT-defined blocks. 1905 1906Unix application OSL: Update line-editing support. Add additional error 1907checking and take care not to reset terminal attributes on exit if they 1908were never set. This should help guarantee that the terminal is always 1909left in the previous state on program exit. 1910 1911 1912---------------------------------------- 191325 March 2014. Summary of changes for version 20140325: 1914 19151) ACPICA kernel-resident subsystem: 1916 1917Updated the auto-serialize feature for control methods. This feature 1918automatically serializes all methods that create named objects in order 1919to prevent runtime errors. The update adds support to ignore the 1920currently executing AML SyncLevel when invoking such a method, in order 1921to prevent disruption of any existing SyncLevel priorities that may exist 1922in the AML code. Although the use of SyncLevels is relatively rare, this 1923change fixes a regression where an AE_AML_MUTEX_ORDER exception can 1924appear on some machines starting with the 20140214 release. 1925 1926Added a new external interface to allow the host to install ACPI tables 1927very early, before the namespace is even created. AcpiInstallTable gives 1928the host additional flexibility for ACPI table management. Tables can be 1929installed directly by the host as if they had originally appeared in the 1930XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables 1931(anything except the DSDT and FACS). Adds a new file, tbdata.c, along 1932with additional internal restructuring and cleanup. See the ACPICA 1933Reference for interface details. Lv Zheng. 1934 1935Added validation of the checksum for all incoming dynamically loaded 1936tables (via external interfaces or via AML Load/LoadTable operators). Lv 1937Zheng. 1938 1939Updated the use of the AcpiOsWaitEventsComplete interface during Notify 1940and GPE handler removal. Restructured calls to eliminate possible race 1941conditions. Lv Zheng. 1942 1943Added a warning for the use/execution of the ASL/AML Unload (table) 1944operator. This will help detect and identify machines that use this 1945operator if and when it is ever used. This operator has never been seen 1946in the field and the usage model and possible side-effects of the drastic 1947runtime action of a full table removal are unknown. 1948 1949Reverted the use of #pragma push/pop which was introduced in the 20140214 1950release. It appears that push and pop are not implemented by enough 1951compilers to make the use of this feature feasible for ACPICA at this 1952time. However, these operators may be deployed in a future ACPICA 1953release. 1954 1955Added the missing EXPORT_SYMBOL macros for the install and remove SCI 1956handler interfaces. 1957 1958Source code generation: 19591) Disabled the use of the "strchr" macro for the gcc-specific 1960generation. For some versions of gcc, this macro can periodically expose 1961a compiler bug which in turn causes compile-time error(s). 19622) Added support for PPC64 compilation. Colin Ian King. 1963 1964Example Code and Data Size: These are the sizes for the OS-independent 1965acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1966debug version of the code includes the debug output trace mechanism and 1967has a much larger code and data size. 1968 1969 Current Release: 1970 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 1971 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 1972 Previous Release: 1973 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 1974 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 1975 1976 19772) iASL Compiler/Disassembler and Tools: 1978 1979Disassembler: Added several new features to improve the readability of 1980the resulting ASL code. Extra information is emitted within comment 1981fields in the ASL code: 19821) Known _HID/_CID values are decoded to descriptive text. 19832) Standard values for the Notify() operator are decoded to descriptive 1984text. 19853) Target operands are expanded to full pathnames (in a comment) when 1986possible. 1987 1988Disassembler: Miscellaneous updates for extern() handling: 19891) Abort compiler if file specified by -fe option does not exist. 19902) Silence unnecessary warnings about argument count mismatches. 19913) Update warning messages concerning unresolved method externals. 19924) Emit "UnknownObj" keyword for externals whose type cannot be 1993determined. 1994 1995AcpiHelp utility: 19961) Added the -a option to display both the ASL syntax and the AML 1997encoding for an input ASL operator. This effectively displays all known 1998information about an ASL operator with one AcpiHelp invocation. 19992) Added substring match support (similar to a wildcard) for the -i 2000(_HID/PNP IDs) option. 2001 2002iASL/Disassembler: Since this tool does not yet support execution on big- 2003endian machines, added detection of endianness and an error message if 2004execution is attempted on big-endian. Support for big-endian within iASL 2005is a feature that is on the ACPICA to-be-done list. 2006 2007AcpiBin utility: 20081) Remove option to extract binary files from an acpidump; this function 2009is made obsolete by the AcpiXtract utility. 20102) General cleanup of open files and allocated buffers. 2011 2012 2013---------------------------------------- 201414 February 2014. Summary of changes for version 20140214: 2015 20161) ACPICA kernel-resident subsystem: 2017 2018Implemented a new mechanism to proactively prevent problems with ill- 2019behaved reentrant control methods that create named ACPI objects. This 2020behavior is illegal as per the ACPI specification, but is nonetheless 2021frequently seen in the field. Previously, this could lead to an 2022AE_ALREADY_EXISTS exception if the method was actually entered by more 2023than one thread. This new mechanism detects such methods at table load 2024time and marks them "serialized" to prevent reentrancy. A new global 2025option, AcpiGbl_AutoSerializeMethods, has been added to disable this 2026feature if desired. This mechanism and global option obsoletes and 2027supersedes the previous AcpiGbl_SerializeAllMethods option. 2028 2029Added the "Windows 2013" string to the _OSI support. ACPICA will now 2030respond TRUE to _OSI queries with this string. It is the stated policy of 2031ACPICA to add new strings to the _OSI support as soon as possible after 2032they are defined. See the full ACPICA _OSI policy which has been added to 2033the utilities/utosi.c file. 2034 2035Hardened/updated the _PRT return value auto-repair code: 20361) Do not abort the repair on a single subpackage failure, continue to 2037check all subpackages. 20382) Add check for the minimum subpackage length (4). 20393) Properly handle extraneous NULL package elements. 2040 2041Added support to avoid the possibility of infinite loops when traversing 2042object linked lists. Never allow an infinite loop, even in the face of 2043corrupted object lists. 2044 2045ACPICA headers: Deployed the use of #pragma pack(push) and #pragma 2046pack(pop) directives to ensure that the ACPICA headers are independent of 2047compiler settings or other host headers. 2048 2049Example Code and Data Size: These are the sizes for the OS-independent 2050acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2051debug version of the code includes the debug output trace mechanism and 2052has a much larger code and data size. 2053 2054 Current Release: 2055 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 2056 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 2057 Previous Release: 2058 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 2059 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 2060 2061 20622) iASL Compiler/Disassembler and Tools: 2063 2064iASL/Table-compiler: Fixed a problem with support for the SPMI table. The 2065first reserved field was incorrectly forced to have a value of zero. This 2066change correctly forces the field to have a value of one. ACPICA BZ 1081. 2067 2068Debugger: Added missing support for the "Extra" and "Data" subobjects 2069when displaying object data. 2070 2071Debugger: Added support to display entire object linked lists when 2072displaying object data. 2073 2074iASL: Removed the obsolete -g option to obtain ACPI tables from the 2075Windows registry. This feature has been superseded by the acpidump 2076utility. 2077 2078 2079---------------------------------------- 208014 January 2014. Summary of changes for version 20140114: 2081 20821) ACPICA kernel-resident subsystem: 2083 2084Updated all ACPICA copyrights and signons to 2014. Added the 2014 2085copyright to all module headers and signons, including the standard Linux 2086header. This affects virtually every file in the ACPICA core subsystem, 2087iASL compiler, all ACPICA utilities, and the test suites. 2088 2089Improved parameter validation for AcpiInstallGpeBlock. Added the 2090following checks: 20911) The incoming device handle refers to type ACPI_TYPE_DEVICE. 20922) There is not already a GPE block attached to the device. 2093Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a 2094device. 2095 2096Correctly support "references" in the ACPI_OBJECT. This change fixes the 2097support to allow references (namespace nodes) to be passed as arguments 2098to control methods via the evaluate object interface. This is probably 2099most useful for testing purposes, however. 2100 2101Improved support for 32/64 bit physical addresses in printf()-like 2102output. This change improves the support for physical addresses in printf 2103debug statements and other output on both 32-bit and 64-bit hosts. It 2104consistently outputs the appropriate number of bytes for each host. The 2105%p specifier is unsatisfactory since it does not emit uniform output on 2106all hosts/clib implementations (on some, leading zeros are not supported, 2107leading to difficult-to-read output). 2108 2109Example Code and Data Size: These are the sizes for the OS-independent 2110acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2111debug version of the code includes the debug output trace mechanism and 2112has a much larger code and data size. 2113 2114 Current Release: 2115 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 2116 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 2117 Previous Release: 2118 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 2119 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 2120 2121 21222) iASL Compiler/Disassembler and Tools: 2123 2124iASL: Fix a possible fault when using the Connection() operator. Fixes a 2125problem if the parent Field definition for the Connection operator refers 2126to an operation region that does not exist. ACPICA BZ 1064. 2127 2128AcpiExec: Load of local test tables is now optional. The utility has the 2129capability to load some various tables to test features of ACPICA. 2130However, there are enough of them that the output of the utility became 2131confusing. With this change, only the required local tables are displayed 2132(RSDP, XSDT, etc.) along with the actual tables loaded via the command 2133line specification. This makes the default output simler and easier to 2134understand. The -el command line option restores the original behavior 2135for testing purposes. 2136 2137AcpiExec: Added support for overlapping operation regions. This change 2138expands the simulation of operation regions by supporting regions that 2139overlap within the given address space. Supports SystemMemory and 2140SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031. 2141 2142AcpiExec: Added region handler support for PCI_Config and EC spaces. This 2143allows AcpiExec to simulate these address spaces, similar to the current 2144support for SystemMemory and SystemIO. 2145 2146Debugger: Added new command to read/write/compare all namespace objects. 2147The command "test objects" will exercise the entire namespace by writing 2148new values to each data object, and ensuring that the write was 2149successful. The original value is then restored and verified. 2150 2151Debugger: Added the "test predefined" command. This change makes this 2152test public and puts it under the new "test" command. The test executes 2153each and every predefined name within the current namespace. 2154 2155 2156---------------------------------------- 215718 December 2013. Summary of changes for version 20131218: 2158 2159Global note: The ACPI 5.0A specification was released this month. There 2160are no changes needed for ACPICA since this release of ACPI is an 2161errata/clarification release. The specification is available at 2162acpi.info. 2163 2164 21651) ACPICA kernel-resident subsystem: 2166 2167Added validation of the XSDT root table if it is present. Some older 2168platforms contain an XSDT that is ill-formed or otherwise invalid (such 2169as containing some or all entries that are NULL pointers). This change 2170adds a new function to validate the XSDT before actually using it. If the 2171XSDT is found to be invalid, ACPICA will now automatically fall back to 2172using the RSDT instead. Original implementation by Zhao Yakui. Ported to 2173ACPICA and enhanced by Lv Zheng and Bob Moore. 2174 2175Added a runtime option to ignore the XSDT and force the use of the RSDT. 2176This change adds a runtime option that will force ACPICA to use the RSDT 2177instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec 2178requires that an XSDT be used instead of the RSDT, the XSDT has been 2179found to be corrupt or ill-formed on some machines. Lv Zheng. 2180 2181Added a runtime option to favor 32-bit FADT register addresses over the 218264-bit addresses. This change adds an option to favor 32-bit FADT 2183addresses when there is a conflict between the 32-bit and 64-bit versions 2184of the same register. The default behavior is to use the 64-bit version 2185in accordance with the ACPI specification. This can now be overridden via 2186the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng. 2187 2188During the change above, the internal "Convert FADT" and "Verify FADT" 2189functions have been merged to simplify the code, making it easier to 2190understand and maintain. ACPICA BZ 933. 2191 2192Improve exception reporting and handling for GPE block installation. 2193Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the 2194status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019. 2195 2196Added helper macros to extract bus/segment numbers from the HEST table. 2197This change adds two macros to extract the encoded bus and segment 2198numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT. 2199Betty Dall <betty.dall@hp.com> 2200 2201Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used 2202by ACPICA. It is not a public macro, so it should have no effect on 2203existing OSV code. Lv Zheng. 2204 2205Example Code and Data Size: These are the sizes for the OS-independent 2206acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2207debug version of the code includes the debug output trace mechanism and 2208has a much larger code and data size. 2209 2210 Current Release: 2211 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 2212 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 2213 Previous Release: 2214 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 2215 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 2216 2217 22182) iASL Compiler/Disassembler and Tools: 2219 2220Disassembler: Improved pathname support for emitted External() 2221statements. This change adds full pathname support for external names 2222that have been resolved internally by the inclusion of additional ACPI 2223tables (via the iASL -e option). Without this change, the disassembler 2224can emit multiple externals for the same object, or it become confused 2225when the Scope() operator is used on an external object. Overall, greatly 2226improves the ability to actually recompile the emitted ASL code when 2227objects a referenced across multiple ACPI tables. Reported by Michael 2228Tsirkin (mst@redhat.com). 2229 2230Tests/ASLTS: Updated functional control suite to execute with no errors. 2231David Box. Fixed several errors related to the testing of the interpreter 2232slack mode. Lv Zheng. 2233 2234iASL: Added support to detect names that are declared within a control 2235method, but are unused (these are temporary names that are only valid 2236during the time the method is executing). A remark is issued for these 2237cases. ACPICA BZ 1022. 2238 2239iASL: Added full support for the DBG2 table. Adds full disassembler, 2240table compiler, and template generator support for the DBG2 table (Debug 2241Port 2 table). 2242 2243iASL: Added full support for the PCCT table, update the table definition. 2244Updates the PCCT table definition in the actbl3.h header and adds table 2245compiler and template generator support. 2246 2247iASL: Added an option to emit only error messages (no warnings/remarks). 2248The -ve option will enable only error messages, warnings and remarks are 2249suppressed. This can simplify debugging when only the errors are 2250important, such as when an ACPI table is disassembled and there are many 2251warnings and remarks -- but only the actual errors are of real interest. 2252 2253Example ACPICA code (source/tools/examples): Updated the example code so 2254that it builds to an actual working program, not just example code. Added 2255ACPI tables and execution of an example control method in the DSDT. Added 2256makefile support for Unix generation. 2257 2258 2259---------------------------------------- 226015 November 2013. Summary of changes for version 20131115: 2261 2262This release is available at https://acpica.org/downloads 2263 2264 22651) ACPICA kernel-resident subsystem: 2266 2267Resource Manager: Fixed loop termination for the "get AML length" 2268function. The loop previously had an error termination on a NULL resource 2269pointer, which can never happen since the loop simply increments a valid 2270resource pointer. This fix changes the loop to terminate with an error on 2271an invalid end-of-buffer condition. The problem can be seen as an 2272infinite loop by callers to AcpiSetCurrentResources with an invalid or 2273corrupted resource descriptor, or a resource descriptor that is missing 2274an END_TAG descriptor. Reported by Dan Carpenter 2275<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore. 2276 2277Table unload and ACPICA termination: Delete all attached data objects 2278during namespace node deletion. This fix updates namespace node deletion 2279to delete the entire list of attached objects (attached via 2280AcpiAttachObject) instead of just one of the attached items. ACPICA BZ 22811024. Tomasz Nowicki (tomasz.nowicki@linaro.org). 2282 2283ACPICA termination: Added support to delete all objects attached to the 2284root namespace node. This fix deletes any and all objects that have been 2285attached to the root node via AcpiAttachData. Previously, none of these 2286objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026. 2287 2288Debug output: Do not emit the function nesting level for the in-kernel 2289build. The nesting level is really only useful during a single-thread 2290execution. Therefore, only enable this output for the AcpiExec utility. 2291Also, only emit the thread ID when executing under AcpiExec (Context 2292switches are still always detected and a message is emitted). ACPICA BZ 2293972. 2294 2295Example Code and Data Size: These are the sizes for the OS-independent 2296acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2297debug version of the code includes the debug output trace mechanism and 2298has a much larger code and data size. 2299 2300 Current Release: 2301 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 2302 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 2303 Previous Release: 2304 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 2305 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 2306 2307 23082) iASL Compiler/Disassembler and Tools: 2309 2310AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the 2311correct portable POSIX header for terminal control functions. 2312 2313Disassembler: Fixed control method invocation issues related to the use 2314of the CondRefOf() operator. The problem is seen in the disassembly where 2315control method invocations may not be disassembled properly if the 2316control method name has been used previously as an argument to CondRefOf. 2317The solution is to not attempt to emit an external declaration for the 2318CondRefOf target (it is not necessary in the first place). This prevents 2319disassembler object type confusion. ACPICA BZ 988. 2320 2321Unix Makefiles: Added an option to disable compiler optimizations and the 2322_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA 2323with optimizations (reportedly, gcc 4.4 for example). This change adds a 2324command line option for make (NOOPT) that disables all compiler 2325optimizations and the _FORTIFY_SOURCE compiler flag. The default 2326optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ 23271034. Lv Zheng, Bob Moore. 2328 2329Tests/ASLTS: Added options to specify individual test cases and modes. 2330This allows testers running aslts.sh to optionally specify individual 2331test modes and test cases. Also added an option to disable the forced 2332generation of the ACPICA tools from source if desired. Lv Zheng. 2333 2334---------------------------------------- 233527 September 2013. Summary of changes for version 20130927: 2336 2337This release is available at https://acpica.org/downloads 2338 2339 23401) ACPICA kernel-resident subsystem: 2341 2342Fixed a problem with store operations to reference objects. This change 2343fixes a problem where a Store operation to an ArgX object that contained 2344a 2345reference to a field object did not complete the automatic dereference 2346and 2347then write to the actual field object. Instead, the object type of the 2348field object was inadvertently changed to match the type of the source 2349operand. The new behavior will actually write to the field object (buffer 2350field or field unit), thus matching the correct ACPI-defined behavior. 2351 2352Implemented support to allow the host to redefine individual OSL 2353prototypes. This change enables the host to redefine OSL prototypes found 2354in the acpiosxf.h file. This allows the host to implement OSL interfaces 2355with a macro or inlined function. Further, it allows the host to add any 2356additional required modifiers such as __iomem, __init, __exit, etc., as 2357necessary on a per-interface basis. Enables maximum flexibility for the 2358OSL interfaces. Lv Zheng. 2359 2360Hardcoded the access width for the FADT-defined reset register. The ACPI 2361specification requires the reset register width to be 8 bits. ACPICA now 2362hardcodes the width to 8 and ignores the FADT width value. This provides 2363compatibility with other ACPI implementations that have allowed BIOS code 2364with bad register width values to go unnoticed. Matthew Garett, Bob 2365Moore, 2366Lv Zheng. 2367 2368Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is 2369used 2370in the OSL header (acpiosxf). The change modifies the position of this 2371macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid 2372build issues if the OSL defines the implementation of the interface to be 2373an inline stub function. Lv Zheng. 2374 2375Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA 2376initialization interfaces. This change adds a new macro for the main init 2377and terminate external interfaces in order to support hosts that require 2378additional or different processing for these functions. Changed from 2379ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv 2380Zheng, Bob Moore. 2381 2382Cleaned up the memory allocation macros for configurability. In the 2383common 2384case, the ACPI_ALLOCATE and related macros now resolve directly to their 2385respective AcpiOs* OSL interfaces. Two options: 23861) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by 2387default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define. 23882) For AcpiExec (and for debugging), the macros can optionally be 2389resolved 2390to the local ACPICA interfaces that track each allocation (local tracking 2391is used to immediately detect memory leaks). 2392Lv Zheng. 2393 2394Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel 2395to predefine this macro to either TRUE or FALSE during the system build. 2396 2397Replaced __FUNCTION_ with __func__ in the gcc-specific header. 2398 2399Example Code and Data Size: These are the sizes for the OS-independent 2400acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2401debug version of the code includes the debug output trace mechanism and 2402has a much larger code and data size. 2403 2404 Current Release: 2405 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 2406 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 2407 Previous Release: 2408 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 2409 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 2410 2411 24122) iASL Compiler/Disassembler and Tools: 2413 2414iASL: Implemented wildcard support for the -e option. This simplifies use 2415when there are many SSDTs that must be included to resolve external 2416method 2417declarations. ACPICA BZ 1041. Example: 2418 iasl -e ssdt*.dat -d dsdt.dat 2419 2420AcpiExec: Add history/line-editing for Unix/Linux systems. This change 2421adds a portable module that implements full history and limited line 2422editing for Unix and Linux systems. It does not use readline() due to 2423portability issues. Instead it uses the POSIX termio interface to put the 2424terminal in raw input mode so that the various special keys can be 2425trapped 2426(such as up/down-arrow for history support and left/right-arrow for line 2427editing). Uses the existing debugger history mechanism. ACPICA BZ 1036. 2428 2429AcpiXtract: Add support to handle (ignore) "empty" lines containing only 2430one or more spaces. This provides compatible with early or different 2431versions of the AcpiDump utility. ACPICA BZ 1044. 2432 2433AcpiDump: Do not ignore tables that contain only an ACPI table header. 2434Apparently, some BIOSs create SSDTs that contain an ACPI table header but 2435no other data. This change adds support to dump these tables. Any tables 2436shorter than the length of an ACPI table header remain in error (an error 2437message is emitted). Reported by Yi Li. 2438 2439Debugger: Echo actual command along with the "unknown command" message. 2440 2441---------------------------------------- 244223 August 2013. Summary of changes for version 20130823: 2443 24441) ACPICA kernel-resident subsystem: 2445 2446Implemented support for host-installed System Control Interrupt (SCI) 2447handlers. Certain ACPI functionality requires the host to handle raw 2448SCIs. For example, the "SCI Doorbell" that is defined for memory power 2449state support requires the host device driver to handle SCIs to examine 2450if the doorbell has been activated. Multiple SCI handlers can be 2451installed to allow for future expansion. New external interfaces are 2452AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for 2453details. Lv Zheng, Bob Moore. ACPICA BZ 1032. 2454 2455Operation region support: Never locally free the handler "context" 2456pointer. This change removes some dangerous code that attempts to free 2457the handler context pointer in some (rare) circumstances. The owner of 2458the handler owns this pointer and the ACPICA code should never touch it. 2459Although not seen to be an issue in any kernel, it did show up as a 2460problem (fault) under AcpiExec. Also, set the internal storage field for 2461the context pointer to zero when the region is deactivated, simply for 2462sanity. David Box. ACPICA BZ 1039. 2463 2464AcpiRead: On error, do not modify the return value target location. If an 2465error happens in the middle of a split 32/32 64-bit I/O operation, do not 2466modify the target of the return value pointer. Makes the code consistent 2467with the rest of ACPICA. Bjorn Helgaas. 2468 2469Example Code and Data Size: These are the sizes for the OS-independent 2470acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2471debug version of the code includes the debug output trace mechanism and 2472has a much larger code and data size. 2473 2474 Current Release: 2475 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 2476 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 2477 Previous Release: 2478 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 2479 Debug Version: 185.4K Code, 77.1K Data, 262.5K Total 2480 2481 24822) iASL Compiler/Disassembler and Tools: 2483 2484AcpiDump: Implemented several new features and fixed some problems: 24851) Added support to dump the RSDP, RSDT, and XSDT tables. 24862) Added support for multiple table instances (SSDT, UEFI). 24873) Added option to dump "customized" (overridden) tables (-c). 24884) Fixed a problem where some table filenames were improperly 2489constructed. 24905) Improved some error messages, removed some unnecessary messages. 2491 2492iASL: Implemented additional support for disassembly of ACPI tables that 2493contain invocations of external control methods. The -fe<file> option 2494allows the import of a file that specifies the external methods along 2495with the required number of arguments for each -- allowing for the 2496correct disassembly of the table. This is a workaround for a limitation 2497of AML code where the disassembler often cannot determine the number of 2498arguments required for an external control method and generates incorrect 2499ASL code. See the iASL reference for details. ACPICA BZ 1030. 2500 2501Debugger: Implemented a new command (paths) that displays the full 2502pathnames (namepaths) and object types of all objects in the namespace. 2503This is an alternative to the namespace command. 2504 2505Debugger: Implemented a new command (sci) that invokes the SCI dispatch 2506mechanism and any installed handlers. 2507 2508iASL: Fixed a possible segfault for "too many parent prefixes" condition. 2509This can occur if there are too many parent prefixes in a namepath (for 2510example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035. 2511 2512Application OSLs: Set the return value for the PCI read functions. These 2513functions simply return AE_OK, but should set the return value to zero 2514also. This change implements this. ACPICA BZ 1038. 2515 2516Debugger: Prevent possible command line buffer overflow. Increase the 2517size of a couple of the debugger line buffers, and ensure that overflow 2518cannot happen. ACPICA BZ 1037. 2519 2520iASL: Changed to abort immediately on serious errors during the parsing 2521phase. Due to the nature of ASL, there is no point in attempting to 2522compile these types of errors, and they typically end up causing a 2523cascade of hundreds of errors which obscure the original problem. 2524 2525---------------------------------------- 252625 July 2013. Summary of changes for version 20130725: 2527 25281) ACPICA kernel-resident subsystem: 2529 2530Fixed a problem with the DerefOf operator where references to FieldUnits 2531and BufferFields incorrectly returned the parent object, not the actual 2532value of the object. After this change, a dereference of a FieldUnit 2533reference results in a read operation on the field to get the value, and 2534likewise, the appropriate BufferField value is extracted from the target 2535buffer. 2536 2537Fixed a problem where the _WAK method could cause a fault under these 2538circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK 2539method returned no value. The problem is rarely seen because most kernels 2540run ACPICA in slack mode. 2541 2542For the DerefOf operator, a fatal error now results if an attempt is made 2543to dereference a reference (created by the Index operator) to a NULL 2544package element. Provides compatibility with other ACPI implementations, 2545and this behavior will be added to a future version of the ACPI 2546specification. 2547 2548The ACPI Power Management Timer (defined in the FADT) is now optional. 2549This provides compatibility with other ACPI implementations and will 2550appear in the next version of the ACPI specification. If there is no PM 2551Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of 2552zero in the FADT indicates no PM timer. 2553 2554Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This 2555allows the host to globally enable/disable all vendor strings, all 2556feature strings, or both. Intended to be primarily used for debugging 2557purposes only. Lv Zheng. 2558 2559Expose the collected _OSI data to the host via a global variable. This 2560data tracks the highest level vendor ID that has been invoked by the BIOS 2561so that the host (and potentially ACPICA itself) can change behaviors 2562based upon the age of the BIOS. 2563 2564Example Code and Data Size: These are the sizes for the OS-independent 2565acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2566debug version of the code includes the debug output trace mechanism and 2567has a much larger code and data size. 2568 2569 Current Release: 2570 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 2571 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 2572 Previous Release: 2573 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 2574 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 2575 2576 25772) iASL Compiler/Disassembler and Tools: 2578 2579iASL: Created the following enhancements for the -so option (create 2580offset table): 25811)Add offsets for the last nameseg in each namepath for every supported 2582object type 25832)Add support for Processor, Device, Thermal Zone, and Scope objects 25843)Add the actual AML opcode for the parent object of every supported 2585object type 25864)Add support for the ZERO/ONE/ONES AML opcodes for integer objects 2587 2588Disassembler: Emit all unresolved external symbols in a single block. 2589These are external references to control methods that could not be 2590resolved, and thus, the disassembler had to make a guess at the number of 2591arguments to parse. 2592 2593iASL: The argument to the -T option (create table template) is now 2594optional. If not specified, the default table is a DSDT, typically the 2595most common case. 2596 2597---------------------------------------- 259826 June 2013. Summary of changes for version 20130626: 2599 26001) ACPICA kernel-resident subsystem: 2601 2602Fixed an issue with runtime repair of the _CST object. Null or invalid 2603elements were not always removed properly. Lv Zheng. 2604 2605Removed an arbitrary restriction of 256 GPEs per GPE block (such as the 2606FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, 2607the maximum number of GPEs is 1016. Use of multiple GPE block devices 2608makes the system-wide number of GPEs essentially unlimited. 2609 2610Example Code and Data Size: These are the sizes for the OS-independent 2611acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2612debug version of the code includes the debug output trace mechanism and 2613has a much larger code and data size. 2614 2615 Current Release: 2616 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 2617 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 2618 Previous Release: 2619 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 2620 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 2621 2622 26232) iASL Compiler/Disassembler and Tools: 2624 2625Portable AcpiDump: Implemented full support for the Linux and FreeBSD 2626hosts. Now supports Linux, FreeBSD, and Windows. 2627 2628Disassembler: Added some missing types for the HEST and EINJ tables: "Set 2629Error Type With Address", "CMCI", "MCE", and "Flush Cacheline". 2630 2631iASL/Preprocessor: Implemented full support for nested 2632#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. 2633 2634Disassembler: Expanded maximum output string length to 64K. Was 256 bytes 2635max. The original purpose of this constraint was to limit the amount of 2636debug output. However, the string function in question (UtPrintString) is 2637now used for the disassembler also, where 256 bytes is insufficient. 2638Reported by RehabMan@GitHub. 2639 2640iASL/DataTables: Fixed some problems and issues with compilation of DMAR 2641tables. ACPICA BZ 999. Lv Zheng. 2642 2643iASL: Fixed a couple of error exit issues that could result in a "Could 2644not delete <file>" message during ASL compilation. 2645 2646AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though 2647the actual signatures for these tables are "FACP" and "APIC", 2648respectively. 2649 2650AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI 2651tables are allowed to have multiple instances. 2652 2653---------------------------------------- 265417 May 2013. Summary of changes for version 20130517: 2655 26561) ACPICA kernel-resident subsystem: 2657 2658Fixed a regression introduced in version 20130328 for _INI methods. This 2659change fixes a problem introduced in 20130328 where _INI methods are no 2660longer executed properly because of a memory block that was not 2661initialized correctly. ACPICA BZ 1016. Tomasz Nowicki 2662<tomasz.nowicki@linaro.org>. 2663 2664Fixed a possible problem with the new extended sleep registers in the 2665ACPI 26665.0 FADT. Do not use these registers (even if populated) unless the HW- 2667reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 26681020. Lv Zheng. 2669 2670Implemented return value repair code for _CST predefined objects: Sort 2671the 2672list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. 2673 2674Implemented a debug-only option to disable loading of SSDTs from the 2675RSDT/XSDT during ACPICA initialization. This can be useful for debugging 2676ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in 2677acglobal.h - ACPICA BZ 1005. Lv Zheng. 2678 2679Fixed some issues in the ACPICA initialization and termination code: 2680Tomasz Nowicki <tomasz.nowicki@linaro.org> 26811) Clear events initialized flag upon event component termination. ACPICA 2682BZ 1013. 26832) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 26843) Delete global lock pending lock during termination. ACPICA BZ 1012. 26854) Clear debug buffer global on termination to prevent possible multiple 2686delete. ACPICA BZ 1010. 2687 2688Standardized all switch() blocks across the entire source base. After 2689many 2690years, different formatting for switch() had crept in. This change makes 2691the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. 2692 2693Split some files to enhance ACPICA modularity and configurability: 26941) Split buffer dump routines into utilities/utbuffer.c 26952) Split internal error message routines into utilities/uterror.c 26963) Split table print utilities into tables/tbprint.c 26974) Split iASL command-line option processing into asloptions.c 2698 2699Makefile enhancements: 27001) Support for all new files above. 27012) Abort make on errors from any subcomponent. Chao Guan. 27023) Add build support for Apple Mac OS X. Liang Qi. 2703 2704Example Code and Data Size: These are the sizes for the OS-independent 2705acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2706debug version of the code includes the debug output trace mechanism and 2707has a much larger code and data size. 2708 2709 Current Release: 2710 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 2711 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 2712 Previous Release: 2713 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 2714 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 2715 2716 27172) iASL Compiler/Disassembler and Tools: 2718 2719New utility: Implemented an easily portable version of the acpidump 2720utility to extract ACPI tables from the system (or a file) in an ASCII 2721hex 2722dump format. The top-level code implements the various command line 2723options, file I/O, and table dump routines. To port to a new host, only 2724three functions need to be implemented to get tables -- since this 2725functionality is OS-dependent. See the tools/acpidump/apmain.c module and 2726the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 27271) The Windows version obtains the ACPI tables from the Registry. 27282) The Linux version is under development. 27293) Other hosts - If an OS-dependent module is submitted, it will be 2730distributed with ACPICA. 2731 2732iASL: Fixed a regression for -D preprocessor option (define symbol). A 2733restructuring/change to the initialization sequence caused this option to 2734no longer work properly. 2735 2736iASL: Implemented a mechanism to disable specific warnings and remarks. 2737Adds a new command line option, "-vw <messageid> as well as "#pragma 2738disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore. 2739 2740iASL: Fix for too-strict package object validation. The package object 2741validation for return values from the predefined names is a bit too 2742strict, it does not allow names references within the package (which will 2743be resolved at runtime.) These types of references cannot be validated at 2744compile time. This change ignores named references within package objects 2745for names that return or define static packages. 2746 2747Debugger: Fixed the 80-character command line limitation for the History 2748command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. 2749 2750iASL: Added control method and package support for the -so option 2751(generates AML offset table for BIOS support.) 2752 2753iASL: issue a remark if a non-serialized method creates named objects. If 2754a thread blocks within the method for any reason, and another thread 2755enters the method, the method will fail because an attempt will be made 2756to 2757create the same (named) object twice. In this case, issue a remark that 2758the method should be marked serialized. NOTE: may become a warning later. 2759ACPICA BZ 909. 2760 2761---------------------------------------- 276218 April 2013. Summary of changes for version 20130418: 2763 27641) ACPICA kernel-resident subsystem: 2765 2766Fixed a possible buffer overrun during some rare but specific field unit 2767read operations. This overrun can only happen if the DSDT version is 1 -- 2768meaning that all AML integers are 32 bits -- and the field length is 2769between 33 and 55 bits long. During the read, an internal buffer object 2770is 2771created for the field unit because the field is larger than an integer 2772(32 2773bits). However, in this case, the buffer will be incorrectly written 2774beyond the end because the buffer length is less than the internal 2775minimum 2776of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes 2777long, but a full 8 bytes will be written. 2778 2779Updated the Embedded Controller "orphan" _REG method support. This refers 2780to _REG methods under the EC device that have no corresponding operation 2781region. This is allowed by the ACPI specification. This update removes a 2782dependency on the existence an ECDT table. It will execute an orphan _REG 2783method as long as the operation region handler for the EC is installed at 2784the EC device node and not the namespace root. Rui Zhang (original 2785update), Bob Moore (update/integrate). 2786 2787Implemented run-time argument typechecking for all predefined ACPI names 2788(_STA, _BIF, etc.) This change performs object typechecking on all 2789incoming arguments for all predefined names executed via 2790AcpiEvaluateObject. This ensures that ACPI-related device drivers are 2791passing correct object types as well as the correct number of arguments 2792(therefore identifying any issues immediately). Also, the ASL/namespace 2793definition of the predefined name is checked against the ACPI 2794specification for the proper argument count. Adds one new file, 2795nsarguments.c 2796 2797Changed an exception code for the ASL UnLoad() operator. Changed the 2798exception code for the case where the input DdbHandle is invalid, from 2799AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. 2800 2801Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the 2802global makefile. The use of this flag causes compiler errors on earlier 2803versions of GCC, so it has been removed for compatibility. 2804 2805Miscellaneous cleanup: 28061) Removed some unused/obsolete macros 28072) Fixed a possible memory leak in the _OSI support 28083) Removed an unused variable in the predefined name support 28094) Windows OSL: remove obsolete reference to a memory list field 2810 2811Example Code and Data Size: These are the sizes for the OS-independent 2812acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2813debug version of the code includes the debug output trace mechanism and 2814has a much larger code and data size. 2815 2816 Current Release: 2817 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 2818 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 2819 Previous Release: 2820 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 2821 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 2822 2823 28242) iASL Compiler/Disassembler and Tools: 2825 2826AcpiExec: Added installation of a handler for the SystemCMOS address 2827space. This prevents control method abort if a method accesses this 2828space. 2829 2830AcpiExec: Added support for multiple EC devices, and now install EC 2831operation region handler(s) at the actual EC device instead of the 2832namespace root. This reflects the typical behavior of host operating 2833systems. 2834 2835AcpiExec: Updated to ensure that all operation region handlers are 2836installed before the _REG methods are executed. This prevents a _REG 2837method from aborting if it accesses an address space has no handler. 2838AcpiExec installs a handler for every possible address space. 2839 2840Debugger: Enhanced the "handlers" command to display non-root handlers. 2841This change enhances the handlers command to display handlers associated 2842with individual devices throughout the namespace, in addition to the 2843currently supported display of handlers associated with the root 2844namespace 2845node. 2846 2847ASL Test Suite: Several test suite errors have been identified and 2848resolved, reducing the total error count during execution. Chao Guan. 2849 2850---------------------------------------- 285128 March 2013. Summary of changes for version 20130328: 2852 28531) ACPICA kernel-resident subsystem: 2854 2855Fixed several possible race conditions with the internal object reference 2856counting mechanism. Some of the external ACPICA interfaces update object 2857reference counts without holding the interpreter or namespace lock. This 2858change adds a spinlock to protect reference count updates on the internal 2859ACPICA objects. Reported by and with assistance from Andriy Gapon 2860(avg@FreeBSD.org). 2861 2862FADT support: Removed an extraneous warning for very large GPE register 2863sets. This change removes a size mismatch warning if the legacy length 2864field for a GPE register set is larger than the 64-bit GAS structure can 2865accommodate. GPE register sets can be larger than the 255-bit width 2866limitation of the GAS structure. Linn Crosetto (linn@hp.com). 2867 2868_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error 2869return from this interface. Handles a possible timeout case if 2870ACPI_WAIT_FOREVER is modified by the host to be a value less than 2871"forever". Jung-uk Kim. 2872 2873Predefined name support: Add allowed/required argument type information 2874to 2875the master predefined info table. This change adds the infrastructure to 2876enable typechecking on incoming arguments for all predefined 2877methods/objects. It does not actually contain the code that will fully 2878utilize this information, this is still under development. Also condenses 2879some duplicate code for the predefined names into a new module, 2880utilities/utpredef.c 2881 2882Example Code and Data Size: These are the sizes for the OS-independent 2883acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2884debug version of the code includes the debug output trace mechanism and 2885has a much larger code and data size. 2886 2887 Previous Release: 2888 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 2889 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 2890 Current Release: 2891 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 2892 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 2893 2894 28952) iASL Compiler/Disassembler and Tools: 2896 2897iASL: Implemented a new option to simplify the development of ACPI- 2898related 2899BIOS code. Adds support for a new "offset table" output file. The -so 2900option will create a C table containing the AML table offsets of various 2901named objects in the namespace so that BIOS code can modify them easily 2902at 2903boot time. This can simplify BIOS runtime code by eliminating expensive 2904searches for "magic values", enhancing boot times and adding greater 2905reliability. With assistance from Lee Hamel. 2906 2907iASL: Allow additional predefined names to return zero-length packages. 2908Now, all predefined names that are defined by the ACPI specification to 2909return a "variable-length package of packages" are allowed to return a 2910zero length top-level package. This allows the BIOS to tell the host that 2911the requested feature is not supported, and supports existing BIOS/ASL 2912code and practices. 2913 2914iASL: Changed the "result not used" warning to an error. This is the case 2915where an ASL operator is effectively a NOOP because the result of the 2916operation is not stored anywhere. For example: 2917 Add (4, Local0) 2918There is no target (missing 3rd argument), nor is the function return 2919value used. This is potentially a very serious problem -- since the code 2920was probably intended to do something, but for whatever reason, the value 2921was not stored. Therefore, this issue has been upgraded from a warning to 2922an error. 2923 2924AcpiHelp: Added allowable/required argument types to the predefined names 2925info display. This feature utilizes the recent update to the predefined 2926names table (above). 2927 2928---------------------------------------- 292914 February 2013. Summary of changes for version 20130214: 2930 29311) ACPICA Kernel-resident Subsystem: 2932 2933Fixed a possible regression on some hosts: Reinstated the safe return 2934macros (return_ACPI_STATUS, etc.) that ensure that the argument is 2935evaluated only once. Although these macros are not needed for the ACPICA 2936code itself, they are often used by ACPI-related host device drivers 2937where 2938the safe feature may be necessary. 2939 2940Fixed several issues related to the ACPI 5.0 reduced hardware support 2941(SOC): Now ensure that if the platform declares itself as hardware- 2942reduced 2943via the FADT, the following functions become NOOPs (and always return 2944AE_OK) because ACPI is always enabled by definition on these machines: 2945 AcpiEnable 2946 AcpiDisable 2947 AcpiHwGetMode 2948 AcpiHwSetMode 2949 2950Dynamic Object Repair: Implemented additional runtime repairs for 2951predefined name return values. Both of these repairs can simplify code in 2952the related device drivers that invoke these methods: 29531) For the _STR and _MLS names, automatically repair/convert an ASCII 2954string to a Unicode buffer. 29552) For the _CRS, _PRS, and _DMA names, return a resource descriptor with 2956a 2957lone end tag descriptor in the following cases: A Return(0) was executed, 2958a null buffer was returned, or no object at all was returned (non-slack 2959mode only). Adds a new file, nsconvert.c 2960ACPICA BZ 998. Bob Moore, Lv Zheng. 2961 2962Resource Manager: Added additional code to prevent possible infinite 2963loops 2964while traversing corrupted or ill-formed resource template buffers. Check 2965for zero-length resource descriptors in all code that loops through 2966resource templates (the length field is used to index through the 2967template). This change also hardens the external AcpiWalkResources and 2968AcpiWalkResourceBuffer interfaces. 2969 2970Local Cache Manager: Enhanced the main data structure to eliminate an 2971unnecessary mechanism to access the next object in the list. Actually 2972provides a small performance enhancement for hosts that use the local 2973ACPICA cache manager. Jung-uk Kim. 2974 2975Example Code and Data Size: These are the sizes for the OS-independent 2976acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2977debug version of the code includes the debug output trace mechanism and 2978has a much larger code and data size. 2979 2980 Previous Release: 2981 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 2982 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 2983 Current Release: 2984 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 2985 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 2986 2987 29882) iASL Compiler/Disassembler and Tools: 2989 2990iASL/Disassembler: Fixed several issues with the definition of the ACPI 29915.0 RASF table (RAS Feature Table). This change incorporates late changes 2992that were made to the ACPI 5.0 specification. 2993 2994iASL/Disassembler: Added full support for the following new ACPI tables: 2995 1) The MTMR table (MID Timer Table) 2996 2) The VRTC table (Virtual Real Time Clock Table). 2997Includes header file, disassembler, table compiler, and template support 2998for both tables. 2999 3000iASL: Implemented compile-time validation of package objects returned by 3001predefined names. This new feature validates static package objects 3002returned by the various predefined names defined to return packages. Both 3003object types and package lengths are validated, for both parent packages 3004and sub-packages, if any. The code is similar in structure and behavior 3005to 3006the runtime repair mechanism within the AML interpreter and uses the 3007existing predefined name information table. Adds a new file, aslprepkg.c. 3008ACPICA BZ 938. 3009 3010iASL: Implemented auto-detection of binary ACPI tables for disassembly. 3011This feature detects a binary file with a valid ACPI table header and 3012invokes the disassembler automatically. Eliminates the need to 3013specifically invoke the disassembler with the -d option. ACPICA BZ 862. 3014 3015iASL/Disassembler: Added several warnings for the case where there are 3016unresolved control methods during the disassembly. This can potentially 3017cause errors when the output file is compiled, because the disassembler 3018assumes zero method arguments in these cases (it cannot determine the 3019actual number of arguments without resolution/definition of the method). 3020 3021Debugger: Added support to display all resources with a single command. 3022Invocation of the resources command with no arguments will now display 3023all 3024resources within the current namespace. 3025 3026AcpiHelp: Added descriptive text for each ACPICA exception code displayed 3027via the -e option. 3028 3029---------------------------------------- 303017 January 2013. Summary of changes for version 20130117: 3031 30321) ACPICA Kernel-resident Subsystem: 3033 3034Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 3035return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 3036objects to return a package containing one integer, most BIOS code 3037returns 3038two integers and the previous code reflects that. However, we also need 3039to 3040support BIOS code that actually implements to the ACPI spec, and this 3041change reflects this. 3042 3043Fixed two issues with the ACPI_DEBUG_PRINT macros: 30441) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 3045C compilers that require this support. 30462) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 3047ACPI_DEBUG is already used by many of the various hosts. 3048 3049Updated all ACPICA copyrights and signons to 2013. Added the 2013 3050copyright to all module headers and signons, including the standard Linux 3051header. This affects virtually every file in the ACPICA core subsystem, 3052iASL compiler, all ACPICA utilities, and the test suites. 3053 3054Example Code and Data Size: These are the sizes for the OS-independent 3055acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3056debug version of the code includes the debug output trace mechanism and 3057has a much larger code and data size. 3058 3059 Previous Release: 3060 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 3061 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 3062 Current Release: 3063 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 3064 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 3065 3066 30672) iASL Compiler/Disassembler and Tools: 3068 3069Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 3070prevent a possible fault on some hosts. Some C libraries modify the arg 3071pointer parameter to vfprintf making it difficult to call it twice in the 3072AcpiOsVprintf function. Use a local buffer to workaround this issue. This 3073does not affect the Windows OSL since the Win C library does not modify 3074the arg pointer. Chao Guan, Bob Moore. 3075 3076iASL: Fixed a possible infinite loop when the maximum error count is 3077reached. If an output file other than the .AML file is specified (such as 3078a listing file), and the maximum number of errors is reached, do not 3079attempt to flush data to the output file(s) as the compiler is aborting. 3080This can cause an infinite loop as the max error count code essentially 3081keeps calling itself. 3082 3083iASL/Disassembler: Added an option (-in) to ignore NOOP 3084opcodes/operators. 3085Implemented for both the compiler and the disassembler. Often, the NOOP 3086opcode is used as padding for packages that are changed dynamically by 3087the 3088BIOS. When disassembled and recompiled, these NOOPs will cause syntax 3089errors. This option causes the disassembler to ignore all NOOP opcodes 3090(0xA3), and it also causes the compiler to ignore all ASL source code 3091NOOP 3092statements as well. 3093 3094Debugger: Enhanced the Sleep command to execute all sleep states. This 3095change allows Sleep to be invoked with no arguments and causes the 3096debugger to execute all of the sleep states, 0-5, automatically. 3097 3098---------------------------------------- 309920 December 2012. Summary of changes for version 20121220: 3100 31011) ACPICA Kernel-resident Subsystem: 3102 3103Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 3104alternate entry point for AcpiWalkResources and improves the usability of 3105the resource manager by accepting as input a buffer containing the output 3106of either a _CRS, _PRS, or _AEI method. The key functionality is that the 3107input buffer is not deleted by this interface so that it can be used by 3108the host later. See the ACPICA reference for details. 3109 3110Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 3111(DSDT version < 2). The constant will be truncated and this warning 3112reflects that behavior. 3113 3114Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 3115ExtendedInterrupt, and GpioInt descriptors. This change adds support to 3116both get and set the new wake bit in these descriptors, separately from 3117the existing share bit. Reported by Aaron Lu. 3118 3119Interpreter: Fix Store() when an implicit conversion is not possible. For 3120example, in the cases such as a store of a string to an existing package 3121object, implement the store as a CopyObject(). This is a small departure 3122from the ACPI specification which states that the control method should 3123be 3124aborted in this case. However, the ASLTS suite depends on this behavior. 3125 3126Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 3127macros: check if debug output is currently enabled as soon as possible to 3128minimize performance impact if debug is in fact not enabled. 3129 3130Source code restructuring: Cleanup to improve modularity. The following 3131new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 3132psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 3133Associated makefiles and project files have been updated. 3134 3135Changed an exception code for LoadTable operator. For the case where one 3136of the input strings is too long, change the returned exception code from 3137AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 3138 3139Fixed a possible memory leak in dispatcher error path. On error, delete 3140the mutex object created during method mutex creation. Reported by 3141tim.gardner@canonical.com. 3142 3143Example Code and Data Size: These are the sizes for the OS-independent 3144acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3145debug version of the code includes the debug output trace mechanism and 3146has a much larger code and data size. 3147 3148 Previous Release: 3149 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 3150 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 3151 Current Release: 3152 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 3153 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 3154 3155 31562) iASL Compiler/Disassembler and Tools: 3157 3158iASL: Disallow a method call as argument to the ObjectType ASL operator. 3159This change tracks an errata to the ACPI 5.0 document. The AML grammar 3160will not allow the interpreter to differentiate between a method and a 3161method invocation when these are used as an argument to the ObjectType 3162operator. The ACPI specification change is to disallow a method 3163invocation 3164(UserTerm) for the ObjectType operator. 3165 3166Finish support for the TPM2 and CSRT tables in the headers, table 3167compiler, and disassembler. 3168 3169Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 3170always expires immediately if the semaphore is not available. The 3171original 3172code was using a relative-time timeout, but sem_timedwait requires the 3173use 3174of an absolute time. 3175 3176iASL: Added a remark if the Timer() operator is used within a 32-bit 3177table. This operator returns a 64-bit time value that will be truncated 3178within a 32-bit table. 3179 3180iASL Source code restructuring: Cleanup to improve modularity. The 3181following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 3182aslmethod.c, and aslfileio.c. Associated makefiles and project files have 3183been updated. 3184 3185 3186---------------------------------------- 318714 November 2012. Summary of changes for version 20121114: 3188 31891) ACPICA Kernel-resident Subsystem: 3190 3191Implemented a performance enhancement for ACPI/AML Package objects. This 3192change greatly increases the performance of Package objects within the 3193interpreter. It changes the processing of reference counts for packages 3194by 3195optimizing for the most common case where the package sub-objects are 3196either Integers, Strings, or Buffers. Increases the overall performance 3197of 3198the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 31992X.) 3200Chao Guan. ACPICA BZ 943. 3201 3202Implemented and deployed common macros to extract flag bits from resource 3203descriptors. Improves readability and maintainability of the code. Fixes 3204a 3205problem with the UART serial bus descriptor for the number of data bits 3206flags (was incorrectly 2 bits, should be 3). 3207 3208Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 3209of the macros and changed the SETx macros to the style of (destination, 3210source). Also added ACPI_CASTx companion macros. Lv Zheng. 3211 3212Example Code and Data Size: These are the sizes for the OS-independent 3213acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3214debug version of the code includes the debug output trace mechanism and 3215has a much larger code and data size. 3216 3217 Previous Release: 3218 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 3219 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 3220 Current Release: 3221 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 3222 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 3223 3224 32252) iASL Compiler/Disassembler and Tools: 3226 3227Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 3228adds the ShareAndWake and ExclusiveAndWake flags which were added to the 3229Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 3230 3231Disassembler: Fixed a problem with external declaration generation. Fixes 3232a problem where an incorrect pathname could be generated for an external 3233declaration if the original reference to the object includes leading 3234carats (^). ACPICA BZ 984. 3235 3236Debugger: Completed a major update for the Disassemble<method> command. 3237This command was out-of-date and did not properly disassemble control 3238methods that had any reasonable complexity. This fix brings the command 3239up 3240to the same level as the rest of the disassembler. Adds one new file, 3241dmdeferred.c, which is existing code that is now common with the main 3242disassembler and the debugger disassemble command. ACPICA MZ 978. 3243 3244iASL: Moved the parser entry prototype to avoid a duplicate declaration. 3245Newer versions of Bison emit this prototype, so moved the prototype out 3246of 3247the iASL header to where it is actually used in order to avoid a 3248duplicate 3249declaration. 3250 3251iASL/Tools: Standardized use of the stream I/O functions: 3252 1) Ensure check for I/O error after every fopen/fread/fwrite 3253 2) Ensure proper order of size/count arguments for fread/fwrite 3254 3) Use test of (Actual != Requested) after all fwrite, and most fread 3255 4) Standardize I/O error messages 3256Improves reliability and maintainability of the code. Bob Moore, Lv 3257Zheng. 3258ACPICA BZ 981. 3259 3260Disassembler: Prevent duplicate External() statements. During generation 3261of external statements, detect similar pathnames that are actually 3262duplicates such as these: 3263 External (\ABCD) 3264 External (ABCD) 3265Remove all leading '\' characters from pathnames during the external 3266statement generation so that duplicates will be detected and tossed. 3267ACPICA BZ 985. 3268 3269Tools: Replace low-level I/O with stream I/O functions. Replace 3270open/read/write/close with the stream I/O equivalents 3271fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 3272Moore. 3273 3274AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 3275name header so that AcpiXtract recognizes the output file/table. 3276 3277iASL: Remove obsolete -2 option flag. Originally intended to force the 3278compiler/disassembler into an ACPI 2.0 mode, this was never implemented 3279and the entire concept is now obsolete. 3280 3281---------------------------------------- 328218 October 2012. Summary of changes for version 20121018: 3283 3284 32851) ACPICA Kernel-resident Subsystem: 3286 3287Updated support for the ACPI 5.0 MPST table. Fixes some problems 3288introduced by late changes to the table as it was added to the ACPI 5.0 3289specification. Includes header, disassembler, and data table compiler 3290support as well as a new version of the MPST template. 3291 3292AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 32935.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 3294methods: _HID, _CID, and _UID. 3295 3296Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 3297ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 3298name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 3299names for their various drivers. Affects the AcpiGetObjectInfo external 3300interface, and other internal interfaces as well. 3301 3302Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 3303This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 3304on machines that support non-aligned transfers. Optimizes for this case 3305rather than using a strncpy. With assistance from Zheng Lv. 3306 3307Resource Manager: Small fix for buffer size calculation. Fixed a one byte 3308error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 3309 3310Added a new debug print message for AML mutex objects that are force- 3311released. At control method termination, any currently acquired mutex 3312objects are force-released. Adds a new debug-only message for each one 3313that is released. 3314 3315Audited/updated all ACPICA return macros and the function debug depth 3316counter: 1) Ensure that all functions that use the various TRACE macros 3317also use the appropriate ACPICA return macros. 2) Ensure that all normal 3318return statements surround the return expression (value) with parens to 3319ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 3320Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 3321 3322Global source code changes/maintenance: All extra lines at the start and 3323end of each source file have been removed for consistency. Also, within 3324comments, all new sentences start with a single space instead of a double 3325space, again for consistency across the code base. 3326 3327Example Code and Data Size: These are the sizes for the OS-independent 3328acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3329debug version of the code includes the debug output trace mechanism and 3330has a much larger code and data size. 3331 3332 Previous Release: 3333 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 3334 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 3335 Current Release: 3336 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 3337 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 3338 3339 33402) iASL Compiler/Disassembler and Tools: 3341 3342AcpiExec: Improved the algorithm used for memory leak/corruption 3343detection. Added some intelligence to the code that maintains the global 3344list of allocated memory. The list is now ordered by allocated memory 3345address, significantly improving performance. When running AcpiExec on 3346the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 3347on the platform and/or the environment. Note, this performance 3348enhancement affects the AcpiExec utility only, not the kernel-resident 3349ACPICA code. 3350 3351Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 3352the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 3353incorrect table offset reported for invalid opcodes. Report the original 335432-bit value for bad ACPI_NAMEs (as well as the repaired name.) 3355 3356Disassembler: Enhanced the -vt option to emit the binary table data in 3357hex format to assist with debugging. 3358 3359Fixed a potential filename buffer overflow in osunixdir.c. Increased the 3360size of file structure. Colin Ian King. 3361 3362---------------------------------------- 336313 September 2012. Summary of changes for version 20120913: 3364 3365 33661) ACPICA Kernel-resident Subsystem: 3367 3368ACPI 5.0: Added two new notify types for the Hardware Error Notification 3369Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 3370and 3371MCE(6). 3372 3373Table Manager: Merged/removed duplicate code in the root table resize 3374functions. One function is external, the other is internal. Lv Zheng, 3375ACPICA 3376BZ 846. 3377 3378Makefiles: Completely removed the obsolete "Linux" makefiles under 3379acpica/generate/linux. These makefiles are obsolete and have been 3380replaced 3381by 3382the generic unix makefiles under acpica/generate/unix. 3383 3384Makefiles: Ensure that binary files always copied properly. Minor rule 3385change 3386to ensure that the final binary output files are always copied up to the 3387appropriate binary directory (bin32 or bin64.) 3388 3389Example Code and Data Size: These are the sizes for the OS-independent 3390acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3391debug 3392version of the code includes the debug output trace mechanism and has a 3393much 3394larger code and data size. 3395 3396 Previous Release: 3397 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 3398 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 3399 Current Release: 3400 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 3401 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 3402 3403 34042) iASL Compiler/Disassembler and Tools: 3405 3406Disassembler: Fixed a possible fault during the disassembly of resource 3407descriptors when a second parse is required because of the invocation of 3408external control methods within the table. With assistance from 3409adq@lidskialf.net. ACPICA BZ 976. 3410 3411iASL: Fixed a namepath optimization problem. An error can occur if the 3412parse 3413node that contains the namepath to be optimized does not have a parent 3414node 3415that is a named object. This change fixes the problem. 3416 3417iASL: Fixed a regression where the AML file is not deleted on errors. The 3418AML 3419output file should be deleted if there are any errors during the 3420compiler. 3421The 3422only exception is if the -f (force output) option is used. ACPICA BZ 974. 3423 3424iASL: Added a feature to automatically increase internal line buffer 3425sizes. 3426Via realloc(), automatically increase the internal line buffer sizes as 3427necessary to support very long source code lines. The current version of 3428the 3429preprocessor requires a buffer long enough to contain full source code 3430lines. 3431This change increases the line buffer(s) if the input lines go beyond the 3432current buffer size. This eliminates errors that occurred when a source 3433code 3434line was longer than the buffer. 3435 3436iASL: Fixed a problem with constant folding in method declarations. The 3437SyncLevel term is a ByteConstExpr, and incorrect code would be generated 3438if a 3439Type3 opcode was used. 3440 3441Debugger: Improved command help support. For incorrect argument count, 3442display 3443full help for the command. For help command itself, allow an argument to 3444specify a command. 3445 3446Test Suites: Several bug fixes for the ASLTS suite reduces the number of 3447errors during execution of the suite. Guan Chao. 3448 3449---------------------------------------- 345016 August 2012. Summary of changes for version 20120816: 3451 3452 34531) ACPICA Kernel-resident Subsystem: 3454 3455Removed all use of the deprecated _GTS and _BFS predefined methods. The 3456_GTS 3457(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 3458deprecated and will probably be removed from the ACPI specification. 3459Windows 3460does not invoke them, and reportedly never will. The final nail in the 3461coffin 3462is that the ACPI specification states that these methods must be run with 3463interrupts off, which is not going to happen in a kernel interpreter. 3464Note: 3465Linux has removed all use of the methods also. It was discovered that 3466invoking these functions caused failures on some machines, probably 3467because 3468they were never tested since Windows does not call them. Affects two 3469external 3470interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 3471ACPICA BZ 969. 3472 3473Implemented support for complex bit-packed buffers returned from the _PLD 3474(Physical Location of Device) predefined method. Adds a new external 3475interface, AcpiDecodePldBuffer that parses the buffer into a more usable 3476C 3477structure. Note: C Bitfields cannot be used for this type of predefined 3478structure since the memory layout of individual bitfields is not defined 3479by 3480the C language. In addition, there are endian concerns where a compiler 3481will 3482change the bitfield ordering based on the machine type. The new ACPICA 3483interface eliminates these issues, and should be called after _PLD is 3484executed. ACPICA BZ 954. 3485 3486Implemented a change to allow a scope change to root (via "Scope (\)") 3487during 3488execution of module-level ASL code (code that is executed at table load 3489time.) Lin Ming. 3490 3491Added the Windows8/Server2012 string for the _OSI method. This change 3492adds 3493a 3494new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 34952012. 3496 3497Added header support for the new ACPI tables DBG2 (Debug Port Table Type 34982) 3499and CSRT (Core System Resource Table). 3500 3501Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 3502names. This simplifies access to the buffers returned by these predefined 3503names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 3504 3505GPE support: Removed an extraneous parameter from the various low-level 3506internal GPE functions. Tang Feng. 3507 3508Removed the linux makefiles from the unix packages. The generate/linux 3509makefiles are obsolete and have been removed from the unix tarball 3510release 3511packages. The replacement makefiles are under generate/unix, and there is 3512a 3513top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 3514 3515Updates for Unix makefiles: 35161) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 35172) Update linker flags (move to end of command line) for AcpiExec 3518utility. 3519Guan Chao. 3520 3521Split ACPICA initialization functions to new file, utxfinit.c. Split from 3522utxface.c to improve modularity and reduce file size. 3523 3524Example Code and Data Size: These are the sizes for the OS-independent 3525acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3526debug version of the code includes the debug output trace mechanism and 3527has a 3528much larger code and data size. 3529 3530 Previous Release: 3531 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 3532 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 3533 Current Release: 3534 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 3535 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 3536 3537 35382) iASL Compiler/Disassembler and Tools: 3539 3540iASL: Fixed a problem with constant folding for fixed-length constant 3541expressions. The constant-folding code was not being invoked for constant 3542expressions that allow the use of type 3/4/5 opcodes to generate 3543constants 3544for expressions such as ByteConstExpr, WordConstExpr, etc. This could 3545result 3546in the generation of invalid AML bytecode. ACPICA BZ 970. 3547 3548iASL: Fixed a generation issue on newer versions of Bison. Newer versions 3549apparently automatically emit some of the necessary externals. This 3550change 3551handles these versions in order to eliminate generation warnings. 3552 3553Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 3554 3555Disassembler: Add support to decode _PLD buffers. The decoded buffer 3556appears 3557within comments in the output file. 3558 3559Debugger: Fixed a regression with the "Threads" command where 3560AE_BAD_PARAMETER was always returned. 3561 3562---------------------------------------- 356311 July 2012. Summary of changes for version 20120711: 3564 35651) ACPICA Kernel-resident Subsystem: 3566 3567Fixed a possible fault in the return package object repair code. Fixes a 3568problem that can occur when a lone package object is wrapped with an 3569outer 3570package object in order to force conformance to the ACPI specification. 3571Can 3572affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 3573_DLM, 3574_CSD, _PSD, _TSD. 3575 3576Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 3577PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 3578ARB_DIS bit must be implemented in the host-dependent C3 processor power 3579state 3580support. Note, ARB_DIS is obsolete and only applies to older chipsets, 3581both 3582Intel and other vendors. (for Intel: ICH4-M and earlier) 3583 3584This change removes the code to disable/enable bus master arbitration 3585during 3586suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 3587causes 3588resume problems on some machines. The change has been in use for over 3589seven 3590years within Linux. 3591 3592Implemented two new external interfaces to support host-directed dynamic 3593ACPI 3594table load and unload. They are intended to simplify the host 3595implementation 3596of hot-plug support: 3597 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 3598 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 3599table. 3600See the ACPICA reference for additional details. Adds one new file, 3601components/tables/tbxfload.c 3602 3603Implemented and deployed two new interfaces for errors and warnings that 3604are 3605known to be caused by BIOS/firmware issues: 3606 AcpiBiosError: Prints "ACPI Firmware Error" message. 3607 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 3608Deployed these new interfaces in the ACPICA Table Manager code for ACPI 3609table 3610and FADT errors. Additional deployment to be completed as appropriate in 3611the 3612future. The associated conditional macros are ACPI_BIOS_ERROR and 3613ACPI_BIOS_WARNING. See the ACPICA reference for additional details. 3614ACPICA 3615BZ 3616843. 3617 3618Implicit notify support: ensure that no memory allocation occurs within a 3619critical region. This fix moves a memory allocation outside of the time 3620that a 3621spinlock is held. Fixes issues on systems that do not allow this 3622behavior. 3623Jung-uk Kim. 3624 3625Split exception code utilities and tables into a new file, 3626utilities/utexcep.c 3627 3628Example Code and Data Size: These are the sizes for the OS-independent 3629acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3630debug 3631version of the code includes the debug output trace mechanism and has a 3632much 3633larger code and data size. 3634 3635 Previous Release: 3636 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 3637 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 3638 Current Release: 3639 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 3640 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 3641 3642 36432) iASL Compiler/Disassembler and Tools: 3644 3645iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 3646of 36470. Jung-uk Kim. 3648 3649Debugger: Enhanced the "tables" command to emit additional information 3650about 3651the current set of ACPI tables, including the owner ID and flags decode. 3652 3653Debugger: Reimplemented the "unload" command to use the new 3654AcpiUnloadParentTable external interface. This command was disable 3655previously 3656due to need for an unload interface. 3657 3658AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 3659option 3660will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 3661 3662---------------------------------------- 366320 June 2012. Summary of changes for version 20120620: 3664 3665 36661) ACPICA Kernel-resident Subsystem: 3667 3668Implemented support to expand the "implicit notify" feature to allow 3669multiple 3670devices to be notified by a single GPE. This feature automatically 3671generates a 3672runtime device notification in the absence of a BIOS-provided GPE control 3673method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 3674notify is 3675provided by ACPICA for Windows compatibility, and is a workaround for 3676BIOS 3677AML 3678code errors. See the description of the AcpiSetupGpeForWake interface in 3679the 3680APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 3681 3682Changed some comments and internal function names to simplify and ensure 3683correctness of the Linux code translation. No functional changes. 3684 3685Example Code and Data Size: These are the sizes for the OS-independent 3686acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3687debug 3688version of the code includes the debug output trace mechanism and has a 3689much 3690larger code and data size. 3691 3692 Previous Release: 3693 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 3694 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 3695 Current Release: 3696 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 3697 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 3698 3699 37002) iASL Compiler/Disassembler and Tools: 3701 3702Disassembler: Added support to emit short, commented descriptions for the 3703ACPI 3704predefined names in order to improve the readability of the disassembled 3705output. ACPICA BZ 959. Changes include: 3706 1) Emit descriptions for all standard predefined names (_INI, _STA, 3707_PRW, 3708etc.) 3709 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 3710 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 3711etc.) 3712 3713AcpiSrc: Fixed several long-standing Linux code translation issues. 3714Argument 3715descriptions in function headers are now translated properly to lower 3716case 3717and 3718underscores. ACPICA BZ 961. Also fixes translation problems such as 3719these: 3720(old -> new) 3721 i_aSL -> iASL 3722 00-7_f -> 00-7F 3723 16_k -> 16K 3724 local_fADT -> local_FADT 3725 execute_oSI -> execute_OSI 3726 3727iASL: Fixed a problem where null bytes were inadvertently emitted into 3728some 3729listing files. 3730 3731iASL: Added the existing debug options to the standard help screen. There 3732are 3733no longer two different help screens. ACPICA BZ 957. 3734 3735AcpiHelp: Fixed some typos in the various predefined name descriptions. 3736Also 3737expand some of the descriptions where appropriate. 3738 3739iASL: Fixed the -ot option (display compile times/statistics). Was not 3740working 3741properly for standard output; only worked for the debug file case. 3742 3743---------------------------------------- 374418 May 2012. Summary of changes for version 20120518: 3745 3746 37471) ACPICA Core Subsystem: 3748 3749Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 3750defined 3751to block until asynchronous events such as notifies and GPEs have 3752completed. 3753Within ACPICA, it is only called before a notify or GPE handler is 3754removed/uninstalled. It also may be useful for the host OS within related 3755drivers such as the Embedded Controller driver. See the ACPICA reference 3756for 3757additional information. ACPICA BZ 868. 3758 3759ACPI Tables: Added a new error message for a possible overflow failure 3760during 3761the conversion of FADT 32-bit legacy register addresses to internal 3762common 376364- 3764bit GAS structure representation. The GAS has a one-byte "bit length" 3765field, 3766thus limiting the register length to 255 bits. ACPICA BZ 953. 3767 3768Example Code and Data Size: These are the sizes for the OS-independent 3769acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3770debug 3771version of the code includes the debug output trace mechanism and has a 3772much 3773larger code and data size. 3774 3775 Previous Release: 3776 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3777 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 3778 Current Release: 3779 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 3780 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 3781 3782 37832) iASL Compiler/Disassembler and Tools: 3784 3785iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 3786macro. 3787This keyword was added late in the ACPI 5.0 release cycle and was not 3788implemented until now. 3789 3790Disassembler: Added support for Operation Region externals. Adds missing 3791support for operation regions that are defined in another table, and 3792referenced locally via a Field or BankField ASL operator. Now generates 3793the 3794correct External statement. 3795 3796Disassembler: Several additional fixes for the External() statement 3797generation 3798related to some ASL operators. Also, order the External() statements 3799alphabetically in the disassembler output. Fixes the External() 3800generation 3801for 3802the Create* field, Alias, and Scope operators: 3803 1) Create* buffer field operators - fix type mismatch warning on 3804disassembly 3805 2) Alias - implement missing External support 3806 3) Scope - fix to make sure all necessary externals are emitted. 3807 3808iASL: Improved pathname support. For include files, merge the prefix 3809pathname 3810with the file pathname and eliminate unnecessary components. Convert 3811backslashes in all pathnames to forward slashes, for readability. Include 3812file 3813pathname changes affect both #include and Include() type operators. 3814 3815iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 3816end 3817of a valid line by inserting a newline and then returning the EOF during 3818the 3819next call to GetNextLine. Prevents the line from being ignored due to EOF 3820condition. 3821 3822iASL: Implemented some changes to enhance the IDE support (-vi option.) 3823Error 3824and Warning messages are now correctly recognized for both the source 3825code 3826browser and the global error and warning counts. 3827 3828---------------------------------------- 382920 April 2012. Summary of changes for version 20120420: 3830 3831 38321) ACPICA Core Subsystem: 3833 3834Implemented support for multiple notify handlers. This change adds 3835support 3836to 3837allow multiple system and device notify handlers on Device, Thermal Zone, 3838and 3839Processor objects. This can simplify the host OS notification 3840implementation. 3841Also re-worked and restructured the entire notify support code to 3842simplify 3843handler installation, handler removal, notify event queuing, and notify 3844dispatch to handler(s). Note: there can still only be two global notify 3845handlers - one for system notifies and one for device notifies. There are 3846no 3847changes to the existing handler install/remove interfaces. Lin Ming, Bob 3848Moore, Rafael Wysocki. 3849 3850Fixed a regression in the package repair code where the object reference 3851count was calculated incorrectly. Regression was introduced in the commit 3852"Support to add Package wrappers". 3853 3854Fixed a couple possible memory leaks in the AML parser, in the error 3855recovery 3856path. Jesper Juhl, Lin Ming. 3857 3858Example Code and Data Size: These are the sizes for the OS-independent 3859acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3860debug version of the code includes the debug output trace mechanism and 3861has a 3862much larger code and data size. 3863 3864 Previous Release: 3865 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3866 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3867 Current Release: 3868 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3869 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 3870 3871 38722) iASL Compiler/Disassembler and Tools: 3873 3874iASL: Fixed a problem with the resource descriptor support where the 3875length 3876of the StartDependentFn and StartDependentFnNoPrio descriptors were not 3877included in cumulative descriptor offset, resulting in incorrect values 3878for 3879resource tags within resource descriptors appearing after a 3880StartDependent* 3881descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 3882 3883iASL and Preprocessor: Implemented full support for the #line directive 3884to 3885correctly track original source file line numbers through the .i 3886preprocessor 3887output file - for error and warning messages. 3888 3889iASL: Expand the allowable byte constants for address space IDs. 3890Previously, 3891the allowable range was 0x80-0xFF (user-defined spaces), now the range is 38920x0A-0xFF to allow for custom and new IDs without changing the compiler. 3893 3894iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 3895 3896iASL: Add option to completely disable the preprocessor (-Pn). 3897 3898iASL: Now emit all error/warning messages to standard error (stderr) by 3899default (instead of the previous stdout). 3900 3901ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 3902Update 3903for resource descriptor offset fix above. Update/cleanup error output 3904routines. Enable and send iASL errors/warnings to an error logfile 3905(error.txt). Send all other iASL output to a logfile (compiler.txt). 3906Fixed 3907several extraneous "unrecognized operator" messages. 3908 3909---------------------------------------- 391020 March 2012. Summary of changes for version 20120320: 3911 3912 39131) ACPICA Core Subsystem: 3914 3915Enhanced the sleep/wake interfaces to optionally execute the _GTS method 3916(Going To Sleep) and the _BFS method (Back From Sleep). Windows 3917apparently 3918does not execute these methods, and therefore these methods are often 3919untested. It has been seen on some systems where the execution of these 3920methods causes errors and also prevents the machine from entering S5. It 3921is 3922therefore suggested that host operating systems do not execute these 3923methods 3924by default. In the future, perhaps these methods can be optionally 3925executed 3926based on the age of the system and/or what is the newest version of 3927Windows 3928that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 3929and 3930AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 3931Ming. 3932 3933Fixed a problem where the length of the local/common FADT was set too 3934early. 3935The local FADT table length cannot be set to the common length until the 3936original length has been examined. There is code that checks the table 3937length 3938and sets various fields appropriately. This can affect older machines 3939with 3940early FADT versions. For example, this can cause inadvertent writes to 3941the 3942CST_CNT register. Julian Anastasov. 3943 3944Fixed a mapping issue related to a physical table override. Use the 3945deferred 3946mapping mechanism for tables loaded via the physical override OSL 3947interface. 3948This allows for early mapping before the virtual memory manager is 3949available. 3950Thomas Renninger, Bob Moore. 3951 3952Enhanced the automatic return-object repair code: Repair a common problem 3953with 3954predefined methods that are defined to return a variable-length Package 3955of 3956sub-objects. If there is only one sub-object, some BIOS ASL code 3957mistakenly 3958simply returns the single object instead of a Package with one sub- 3959object. 3960This new support will repair this error by wrapping a Package object 3961around 3962the original object, creating the correct and expected Package with one 3963sub- 3964object. Names that can be repaired in this manner include: _ALR, _CSD, 3965_HPX, 3966_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 3967939. 3968 3969Changed the exception code returned for invalid ACPI paths passed as 3970parameters to external interfaces such as AcpiEvaluateObject. Was 3971AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 3972 3973Example Code and Data Size: These are the sizes for the OS-independent 3974acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3975debug 3976version of the code includes the debug output trace mechanism and has a 3977much 3978larger code and data size. 3979 3980 Previous Release: 3981 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 3982 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3983 Current Release: 3984 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3985 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3986 3987 39882) iASL Compiler/Disassembler and Tools: 3989 3990iASL: Added the infrastructure and initial implementation of a integrated 3991C- 3992like preprocessor. This will simplify BIOS development process by 3993eliminating 3994the need for a separate preprocessing step during builds. On Windows, it 3995also 3996eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 3997features including full #define() macro support are still under 3998development. 3999These preprocessor directives are supported: 4000 #define 4001 #elif 4002 #else 4003 #endif 4004 #error 4005 #if 4006 #ifdef 4007 #ifndef 4008 #include 4009 #pragma message 4010 #undef 4011 #warning 4012In addition, these new command line options are supported: 4013 -D <symbol> Define symbol for preprocessor use 4014 -li Create preprocessed output file (*.i) 4015 -P Preprocess only and create preprocessor output file (*.i) 4016 4017Table Compiler: Fixed a problem where the equals operator within an 4018expression 4019did not work properly. 4020 4021Updated iASL to use the current versions of Bison/Flex. Updated the 4022Windows 4023project file to invoke these tools from the standard location. ACPICA BZ 4024904. 4025Versions supported: 4026 Flex for Windows: V2.5.4 4027 Bison for Windows: V2.4.1 4028 4029---------------------------------------- 403015 February 2012. Summary of changes for version 20120215: 4031 4032 40331) ACPICA Core Subsystem: 4034 4035There have been some major changes to the sleep/wake support code, as 4036described below (a - e). 4037 4038a) The AcpiLeaveSleepState has been split into two interfaces, similar to 4039AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 4040AcpiLeaveSleepStatePrep. This allows the host to perform actions between 4041the 4042time the _BFS method is called and the _WAK method is called. NOTE: all 4043hosts 4044must update their wake/resume code or else sleep/wake will not work 4045properly. 4046Rafael Wysocki. 4047 4048b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 4049_WAK 4050method. Some machines require that the GPEs are enabled before the _WAK 4051method 4052is executed. Thomas Renninger. 4053 4054c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) 4055bit. 4056Some BIOS code assumes that WAK_STS will be cleared on resume and use it 4057to 4058determine whether the system is rebooting or resuming. Matthew Garrett. 4059 4060d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 4061Sleep) to 4062match the ACPI specification requirement. Rafael Wysocki. 4063 4064e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 4065registers within the V5 FADT. This support adds two new files: 4066hardware/hwesleep.c implements the support for the new registers. Moved 4067all 4068sleep/wake external interfaces to hardware/hwxfsleep.c. 4069 4070 4071Added a new OSL interface for ACPI table overrides, 4072AcpiOsPhysicalTableOverride. This interface allows the host to override a 4073table via a physical address, instead of the logical address required by 4074AcpiOsTableOverride. This simplifies the host implementation. Initial 4075implementation by Thomas Renninger. The ACPICA implementation creates a 4076single 4077shared function for table overrides that attempts both a logical and a 4078physical override. 4079 4080Expanded the OSL memory read/write interfaces to 64-bit data 4081(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 4082transfer support for GAS register structures passed to AcpiRead and 4083AcpiWrite. 4084 4085Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 4086custom 4087build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 4088model. 4089See the ACPICA reference for details. ACPICA BZ 942. This option removes 4090about 409110% of the code and 5% of the static data, and the following hardware 4092ACPI 4093features become unavailable: 4094 PM Event and Control registers 4095 SCI interrupt (and handler) 4096 Fixed Events 4097 General Purpose Events (GPEs) 4098 Global Lock 4099 ACPI PM timer 4100 FACS table (Waking vectors and Global Lock) 4101 4102Updated the unix tarball directory structure to match the ACPICA git 4103source 4104tree. This ensures that the generic unix makefiles work properly (in 4105generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 4106867. 4107 4108Updated the return value of the _REV predefined method to integer value 5 4109to 4110reflect ACPI 5.0 support. 4111 4112Moved the external ACPI PM timer interface prototypes to the public 4113acpixf.h 4114file where they belong. 4115 4116Example Code and Data Size: These are the sizes for the OS-independent 4117acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4118debug 4119version of the code includes the debug output trace mechanism and has a 4120much 4121larger code and data size. 4122 4123 Previous Release: 4124 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 4125 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 4126 Current Release: 4127 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 4128 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 4129 4130 41312) iASL Compiler/Disassembler and Tools: 4132 4133Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 4134descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 4135incorrectly displayed. 4136 4137AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 4138specification. 4139 4140---------------------------------------- 414111 January 2012. Summary of changes for version 20120111: 4142 4143 41441) ACPICA Core Subsystem: 4145 4146Implemented a new mechanism to allow host device drivers to check for 4147address 4148range conflicts with ACPI Operation Regions. Both SystemMemory and 4149SystemIO 4150address spaces are supported. A new external interface, 4151AcpiCheckAddressRange, 4152allows drivers to check an address range against the ACPI namespace. See 4153the 4154ACPICA reference for additional details. Adds one new file, 4155utilities/utaddress.c. Lin Ming, Bob Moore. 4156 4157Fixed several issues with the ACPI 5.0 FADT support: Add the sleep 4158Control 4159and 4160Status registers, update the ACPI 5.0 flags, and update internal data 4161structures to handle an FADT larger than 256 bytes. The size of the ACPI 41625.0 4163FADT is 268 bytes. 4164 4165Updated all ACPICA copyrights and signons to 2012. Added the 2012 4166copyright to 4167all module headers and signons, including the standard Linux header. This 4168affects virtually every file in the ACPICA core subsystem, iASL compiler, 4169and 4170all ACPICA utilities. 4171 4172Example Code and Data Size: These are the sizes for the OS-independent 4173acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4174debug 4175version of the code includes the debug output trace mechanism and has a 4176much 4177larger code and data size. 4178 4179 Previous Release: 4180 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 4181 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 4182 Current Release: 4183 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 4184 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 4185 4186 41872) iASL Compiler/Disassembler and Tools: 4188 4189Disassembler: fixed a problem with the automatic resource tag generation 4190support. Fixes a problem where the resource tags are inadvertently not 4191constructed if the table being disassembled contains external references 4192to 4193control methods. Moved the actual construction of the tags to after the 4194final 4195namespace is constructed (after 2nd parse is invoked due to external 4196control 4197method references.) ACPICA BZ 941. 4198 4199Table Compiler: Make all "generic" operators caseless. These are the 4200operators 4201like UINT8, String, etc. Making these caseless improves ease-of-use. 4202ACPICA BZ 4203934. 4204 4205---------------------------------------- 420623 November 2011. Summary of changes for version 20111123: 4207 42080) ACPI 5.0 Support: 4209 4210This release contains full support for the ACPI 5.0 specification, as 4211summarized below. 4212 4213Reduced Hardware Support: 4214------------------------- 4215 4216This support allows for ACPI systems without the usual ACPI hardware. 4217This 4218support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 4219will 4220not attempt to initialize or use any of the usual ACPI hardware. Note, 4221when 4222this flag is set, all of the following ACPI hardware is assumed to be not 4223present and is not initialized or accessed: 4224 4225 General Purpose Events (GPEs) 4226 Fixed Events (PM1a/PM1b and PM Control) 4227 Power Management Timer and Console Buttons (power/sleep) 4228 Real-time Clock Alarm 4229 Global Lock 4230 System Control Interrupt (SCI) 4231 The FACS is assumed to be non-existent 4232 4233ACPI Tables: 4234------------ 4235 4236All new tables and updates to existing tables are fully supported in the 4237ACPICA headers (for use by device drivers), the disassembler, and the 4238iASL 4239Data Table Compiler. ACPI 5.0 defines these new tables: 4240 4241 BGRT /* Boot Graphics Resource Table */ 4242 DRTM /* Dynamic Root of Trust for Measurement table */ 4243 FPDT /* Firmware Performance Data Table */ 4244 GTDT /* Generic Timer Description Table */ 4245 MPST /* Memory Power State Table */ 4246 PCCT /* Platform Communications Channel Table */ 4247 PMTT /* Platform Memory Topology Table */ 4248 RASF /* RAS Feature table */ 4249 4250Operation Regions/SpaceIDs: 4251--------------------------- 4252 4253All new operation regions are fully supported by the iASL compiler, the 4254disassembler, and the ACPICA runtime code (for dispatch to region 4255handlers.) 4256The new operation region Space IDs are: 4257 4258 GeneralPurposeIo 4259 GenericSerialBus 4260 4261Resource Descriptors: 4262--------------------- 4263 4264All new ASL resource descriptors are fully supported by the iASL 4265compiler, 4266the 4267ASL/AML disassembler, and the ACPICA runtime Resource Manager code 4268(including 4269all new predefined resource tags). New descriptors are: 4270 4271 FixedDma 4272 GpioIo 4273 GpioInt 4274 I2cSerialBus 4275 SpiSerialBus 4276 UartSerialBus 4277 4278ASL/AML Operators, New and Modified: 4279------------------------------------ 4280 4281One new operator is added, the Connection operator, which is used to 4282associate 4283a GeneralPurposeIo or GenericSerialBus resource descriptor with 4284individual 4285field objects within an operation region. Several new protocols are 4286associated 4287with the AccessAs operator. All are fully supported by the iASL compiler, 4288disassembler, and runtime ACPICA AML interpreter: 4289 4290 Connection // Declare Field Connection 4291attributes 4292 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 4293 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes 4294Protocol 4295 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 4296 RawDataBuffer // Data type for Vendor Data 4297fields 4298 4299Predefined ASL/AML Objects: 4300--------------------------- 4301 4302All new predefined objects/control-methods are supported by the iASL 4303compiler 4304and the ACPICA runtime validation/repair (arguments and return values.) 4305New 4306predefined names include the following: 4307 4308Standard Predefined Names (Objects or Control Methods): 4309 _AEI, _CLS, _CPC, _CWS, _DEP, 4310 _DLM, _EVT, _GCP, _CRT, _GWS, 4311 _HRV, _PRE, _PSE, _SRT, _SUB. 4312 4313Resource Tags (Names used to access individual fields within resource 4314descriptors): 4315 _DBT, _DPL, _DRS, _END, _FLC, 4316 _IOR, _LIN, _MOD, _PAR, _PHA, 4317 _PIN, _PPI, _POL, _RXL, _SLV, 4318 _SPE, _STB, _TXL, _VEN. 4319 4320ACPICA External Interfaces: 4321--------------------------- 4322 4323Several new interfaces have been defined for use by ACPI-related device 4324drivers and other host OS services: 4325 4326AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 4327to 4328acquire and release AML mutexes that are defined in the DSDT/SSDT tables 4329provided by the BIOS. They are intended to be used in conjunction with 4330the 4331ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 4332mutual exclusion with the AML code/interpreter. 4333 4334AcpiGetEventResources: Returns the (formatted) resource descriptors as 4335defined 4336by the ACPI 5.0 _AEI object (ACPI Event Information). This object 4337provides 4338resource descriptors associated with hardware-reduced platform events, 4339similar 4340to the AcpiGetCurrentResources interface. 4341 4342Operation Region Handlers: For General Purpose IO and Generic Serial Bus 4343operation regions, information about the Connection() object and any 4344optional 4345length information is passed to the region handler within the Context 4346parameter. 4347 4348AcpiBufferToResource: This interface converts a raw AML buffer containing 4349a 4350resource template or resource descriptor to the ACPI_RESOURCE internal 4351format 4352suitable for use by device drivers. Can be used by an operation region 4353handler 4354to convert the Connection() buffer object into a ACPI_RESOURCE. 4355 4356Miscellaneous/Tools/TestSuites: 4357------------------------------- 4358 4359Support for extended _HID names (Four alpha characters instead of three). 4360Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 4361Support for ACPI 5.0 features in the ASLTS test suite. 4362Fully updated documentation (ACPICA and iASL reference documents.) 4363 4364ACPI Table Definition Language: 4365------------------------------- 4366 4367Support for this language was implemented and released as a subsystem of 4368the 4369iASL compiler in 2010. (See the iASL compiler User Guide.) 4370 4371 4372Non-ACPI 5.0 changes for this release: 4373-------------------------------------- 4374 43751) ACPICA Core Subsystem: 4376 4377Fix a problem with operation region declarations where a failure can 4378occur 4379if 4380the region name and an argument that evaluates to an object (such as the 4381region address) are in different namespace scopes. Lin Ming, ACPICA BZ 4382937. 4383 4384Do not abort an ACPI table load if an invalid space ID is found within. 4385This 4386will be caught later if the offending method is executed. ACPICA BZ 925. 4387 4388Fixed an issue with the FFixedHW space ID where the ID was not always 4389recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 4390 4391Fixed a problem with the 32-bit generation of the unix-specific OSL 4392(osunixxf.c). Lin Ming, ACPICA BZ 936. 4393 4394Several changes made to enable generation with the GCC 4.6 compiler. 4395ACPICA BZ 4396935. 4397 4398New error messages: Unsupported I/O requests (not 8/16/32 bit), and 4399Index/Bank 4400field registers out-of-range. 4401 44022) iASL Compiler/Disassembler and Tools: 4403 4404iASL: Implemented the __PATH__ operator, which returns the full pathname 4405of 4406the current source file. 4407 4408AcpiHelp: Automatically display expanded keyword information for all ASL 4409operators. 4410 4411Debugger: Add "Template" command to disassemble/dump resource template 4412buffers. 4413 4414Added a new master script to generate and execute the ASLTS test suite. 4415Automatically handles 32- and 64-bit generation. See tests/aslts.sh 4416 4417iASL: Fix problem with listing generation during processing of the 4418Switch() 4419operator where AML listing was disabled until the entire Switch block was 4420completed. 4421 4422iASL: Improve support for semicolon statement terminators. Fix "invalid 4423character" message for some cases when the semicolon is used. Semicolons 4424are 4425now allowed after every <Term> grammar element. ACPICA BZ 927. 4426 4427iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 4428923. 4429 4430Disassembler: Fix problem with disassembly of the DataTableRegion 4431operator 4432where an inadvertent "Unhandled deferred opcode" message could be 4433generated. 4434 44353) Example Code and Data Size 4436 4437These are the sizes for the OS-independent acpica.lib produced by the 4438Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 4439includes the debug output trace mechanism and has a much larger code and 4440data 4441size. 4442 4443 Previous Release: 4444 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4445 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4446 Current Release: 4447 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 4448 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 4449 4450---------------------------------------- 445122 September 2011. Summary of changes for version 20110922: 4452 44530) ACPI 5.0 News: 4454 4455Support for ACPI 5.0 in ACPICA has been underway for several months and 4456will 4457be released at the same time that ACPI 5.0 is officially released. 4458 4459The ACPI 5.0 specification is on track for release in the next few 4460months. 4461 44621) ACPICA Core Subsystem: 4463 4464Fixed a problem where the maximum sleep time for the Sleep() operator was 4465intended to be limited to two seconds, but was inadvertently limited to 446620 4467seconds instead. 4468 4469Linux and Unix makefiles: Added header file dependencies to ensure 4470correct 4471generation of ACPICA core code and utilities. Also simplified the 4472makefiles 4473considerably through the use of the vpath variable to specify search 4474paths. 4475ACPICA BZ 924. 4476 44772) iASL Compiler/Disassembler and Tools: 4478 4479iASL: Implemented support to check the access length for all fields 4480created to 4481access named Resource Descriptor fields. For example, if a resource field 4482is 4483defined to be two bits, a warning is issued if a CreateXxxxField() is 4484used 4485with an incorrect bit length. This is implemented for all current 4486resource 4487descriptor names. ACPICA BZ 930. 4488 4489Disassembler: Fixed a byte ordering problem with the output of 24-bit and 449056- 4491bit integers. 4492 4493iASL: Fixed a couple of issues associated with variable-length package 4494objects. 1) properly handle constants like One, Ones, Zero -- do not make 4495a 4496VAR_PACKAGE when these are used as a package length. 2) Allow the 4497VAR_PACKAGE 4498opcode (in addition to PACKAGE) when validating object types for 4499predefined 4500names. 4501 4502iASL: Emit statistics for all output files (instead of just the ASL input 4503and 4504AML output). Includes listings, hex files, etc. 4505 4506iASL: Added -G option to the table compiler to allow the compilation of 4507custom 4508ACPI tables. The only part of a table that is required is the standard 450936- 4510byte 4511ACPI header. 4512 4513AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 4514headers), 4515which also adds correct 64-bit support. Also, now all output filenames 4516are 4517completely lower case. 4518 4519AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 4520loading table files. A warning is issued for any such tables. The only 4521exception is an FADT. This also fixes a possible fault when attempting to 4522load 4523non-AML tables. ACPICA BZ 932. 4524 4525AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where 4526a 4527missing table terminator could cause a fault when using the -p option. 4528 4529AcpiSrc: Fixed a possible divide-by-zero fault when generating file 4530statistics. 4531 45323) Example Code and Data Size 4533 4534These are the sizes for the OS-independent acpica.lib produced by the 4535Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 4536includes the debug output trace mechanism and has a much larger code and 4537data 4538size. 4539 4540 Previous Release (VC 9.0): 4541 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4542 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4543 Current Release (VC 9.0): 4544 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4545 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4546 4547 4548---------------------------------------- 454923 June 2011. Summary of changes for version 20110623: 4550 45511) ACPI CA Core Subsystem: 4552 4553Updated the predefined name repair mechanism to not attempt repair of a 4554_TSS 4555return object if a _PSS object is present. We can only sort the _TSS 4556return 4557package if there is no _PSS within the same scope. This is because if 4558_PSS 4559is 4560present, the ACPI specification dictates that the _TSS Power Dissipation 4561field 4562is to be ignored, and therefore some BIOSs leave garbage values in the 4563_TSS 4564Power field(s). In this case, it is best to just return the _TSS package 4565as- 4566is. Reported by, and fixed with assistance from Fenghua Yu. 4567 4568Added an option to globally disable the control method return value 4569validation 4570and repair. This runtime option can be used to disable return value 4571repair 4572if 4573this is causing a problem on a particular machine. Also added an option 4574to 4575AcpiExec (-dr) to set this disable flag. 4576 4577All makefiles and project files: Major changes to improve generation of 4578ACPICA 4579tools. ACPICA BZ 912: 4580 Reduce default optimization levels to improve compatibility 4581 For Linux, add strict-aliasing=0 for gcc 4 4582 Cleanup and simplify use of command line defines 4583 Cleanup multithread library support 4584 Improve usage messages 4585 4586Linux-specific header: update handling of THREAD_ID and pthread. For the 458732- 4588bit case, improve casting to eliminate possible warnings, especially with 4589the 4590acpica tools. 4591 4592Example Code and Data Size: These are the sizes for the OS-independent 4593acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4594debug 4595version of the code includes the debug output trace mechanism and has a 4596much 4597larger code and data size. 4598 4599 Previous Release (VC 9.0): 4600 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 4601 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4602 Current Release (VC 9.0): 4603 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4604 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4605 46062) iASL Compiler/Disassembler and Tools: 4607 4608With this release, a new utility named "acpihelp" has been added to the 4609ACPICA 4610package. This utility summarizes the ACPI specification chapters for the 4611ASL 4612and AML languages. It generates under Linux/Unix as well as Windows, and 4613provides the following functionality: 4614 Find/display ASL operator(s) -- with description and syntax. 4615 Find/display ASL keyword(s) -- with exact spelling and descriptions. 4616 Find/display ACPI predefined name(s) -- with description, number 4617 of arguments, and the return value data type. 4618 Find/display AML opcode name(s) -- with opcode, arguments, and 4619grammar. 4620 Decode/display AML opcode -- with opcode name, arguments, and 4621grammar. 4622 4623Service Layers: Make multi-thread support configurable. Conditionally 4624compile 4625the multi-thread support so that threading libraries will not be linked 4626if 4627not 4628necessary. The only tool that requires multi-thread support is AcpiExec. 4629 4630iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 4631of 4632Bison appear to want the interface to yyerror to be a const char * (or at 4633least this is a problem when generating iASL on some systems.) ACPICA BZ 4634923 4635Pierre Lejeune. 4636 4637Tools: Fix for systems where O_BINARY is not defined. Only used for 4638Windows 4639versions of the tools. 4640 4641---------------------------------------- 464227 May 2011. Summary of changes for version 20110527: 4643 46441) ACPI CA Core Subsystem: 4645 4646ASL Load() operator: Reinstate most restrictions on the incoming ACPI 4647table 4648signature. Now, only allow SSDT, OEMx, and a null signature. History: 4649 1) Originally, we checked the table signature for "SSDT" or "PSDT". 4650 (PSDT is now obsolete.) 4651 2) We added support for OEMx tables, signature "OEM" plus a fourth 4652 "don't care" character. 4653 3) Valid tables were encountered with a null signature, so we just 4654 gave up on validating the signature, (05/2008). 4655 4) We encountered non-AML tables such as the MADT, which caused 4656 interpreter errors and kernel faults. So now, we once again allow 4657 only SSDT, OEMx, and now, also a null signature. (05/2011). 4658 4659Added the missing _TDL predefined name to the global name list in order 4660to 4661enable validation. Affects both the core ACPICA code and the iASL 4662compiler. 4663 4664Example Code and Data Size: These are the sizes for the OS-independent 4665acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4666debug 4667version of the code includes the debug output trace mechanism and has a 4668much 4669larger code and data size. 4670 4671 Previous Release (VC 9.0): 4672 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 4673 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 4674 Current Release (VC 9.0): 4675 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 4676 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4677 46782) iASL Compiler/Disassembler and Tools: 4679 4680Debugger/AcpiExec: Implemented support for "complex" method arguments on 4681the 4682debugger command line. This adds support beyond simple integers -- 4683including 4684Strings, Buffers, and Packages. Includes support for nested packages. 4685Increased the default command line buffer size to accommodate these 4686arguments. 4687See the ACPICA reference for details and syntax. ACPICA BZ 917. 4688 4689Debugger/AcpiExec: Implemented support for "default" method arguments for 4690the 4691Execute/Debug command. Now, the debugger will always invoke a control 4692method 4693with the required number of arguments -- even if the command line 4694specifies 4695none or insufficient arguments. It uses default integer values for any 4696missing 4697arguments. Also fixes a bug where only six method arguments maximum were 4698supported instead of the required seven. 4699 4700Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 4701and 4702also return status in order to prevent buffer overruns. See the ACPICA 4703reference for details and syntax. ACPICA BZ 921 4704 4705iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 4706makefiles to simplify support for the two different but similar parser 4707generators, bison and yacc. 4708 4709Updated the generic unix makefile for gcc 4. The default gcc version is 4710now 4711expected to be 4 or greater, since options specific to gcc 4 are used. 4712 4713---------------------------------------- 471413 April 2011. Summary of changes for version 20110413: 4715 47161) ACPI CA Core Subsystem: 4717 4718Implemented support to execute a so-called "orphan" _REG method under the 4719EC 4720device. This change will force the execution of a _REG method underneath 4721the 4722EC 4723device even if there is no corresponding operation region of type 4724EmbeddedControl. Fixes a problem seen on some machines and apparently is 4725compatible with Windows behavior. ACPICA BZ 875. 4726 4727Added more predefined methods that are eligible for automatic NULL 4728package 4729element removal. This change adds another group of predefined names to 4730the 4731list 4732of names that can be repaired by having NULL package elements dynamically 4733removed. This group are those methods that return a single variable- 4734length 4735package containing simple data types such as integers, buffers, strings. 4736This 4737includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 4738_PSL, 4739_Sx, 4740and _TZD. ACPICA BZ 914. 4741 4742Split and segregated all internal global lock functions to a new file, 4743evglock.c. 4744 4745Updated internal address SpaceID for DataTable regions. Moved this 4746internal 4747space 4748id in preparation for ACPI 5.0 changes that will include some new space 4749IDs. 4750This 4751change should not affect user/host code. 4752 4753Example Code and Data Size: These are the sizes for the OS-independent 4754acpica.lib 4755produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 4756version of 4757the code includes the debug output trace mechanism and has a much larger 4758code 4759and 4760data size. 4761 4762 Previous Release (VC 9.0): 4763 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 4764 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 4765 Current Release (VC 9.0): 4766 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 4767 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 4768 47692) iASL Compiler/Disassembler and Tools: 4770 4771iASL/DTC: Major update for new grammar features. Allow generic data types 4772in 4773custom ACPI tables. Field names are now optional. Any line can be split 4774to 4775multiple lines using the continuation char (\). Large buffers now use 4776line- 4777continuation character(s) and no colon on the continuation lines. See the 4778grammar 4779update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 4780Moore. 4781 4782iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 4783statements. 4784Since the parser stuffs a "zero" as the return value for these statements 4785(due 4786to 4787the underlying AML grammar), they were seen as "return with value" by the 4788iASL 4789semantic checking. They are now seen correctly as "null" return 4790statements. 4791 4792iASL: Check if a_REG declaration has a corresponding Operation Region. 4793Adds a 4794check for each _REG to ensure that there is in fact a corresponding 4795operation 4796region declaration in the same scope. If not, the _REG method is not very 4797useful 4798since it probably won't be executed. ACPICA BZ 915. 4799 4800iASL/DTC: Finish support for expression evaluation. Added a new 4801expression 4802parser 4803that implements c-style operator precedence and parenthesization. ACPICA 4804bugzilla 4805908. 4806 4807Disassembler/DTC: Remove support for () and <> style comments in data 4808tables. 4809Now 4810that DTC has full expression support, we don't want to have comment 4811strings 4812that 4813start with a parentheses or a less-than symbol. Now, only the standard /* 4814and 4815// 4816comments are supported, as well as the bracket [] comments. 4817 4818AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 4819"unusual" 4820headers in the acpidump file. Update the header validation to support 4821these 4822tables. Problem introduced in previous AcpiXtract version in the change 4823to 4824support "wrong checksum" error messages emitted by acpidump utility. 4825 4826iASL: Add a * option to generate all template files (as a synonym for 4827ALL) 4828as 4829in 4830"iasl -T *" or "iasl -T ALL". 4831 4832iASL/DTC: Do not abort compiler on fatal errors. We do not want to 4833completely 4834abort the compiler on "fatal" errors, simply should abort the current 4835compile. 4836This allows multiple compiles with a single (possibly wildcard) compiler 4837invocation. 4838 4839---------------------------------------- 484016 March 2011. Summary of changes for version 20110316: 4841 48421) ACPI CA Core Subsystem: 4843 4844Fixed a problem caused by a _PRW method appearing at the namespace root 4845scope 4846during the setup of wake GPEs. A fault could occur if a _PRW directly 4847under 4848the 4849root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 4850 4851Implemented support for "spurious" Global Lock interrupts. On some 4852systems, a 4853global lock interrupt can occur without the pending flag being set. Upon 4854a 4855GL 4856interrupt, we now ensure that a thread is actually waiting for the lock 4857before 4858signaling GL availability. Rafael Wysocki, Bob Moore. 4859 4860Example Code and Data Size: These are the sizes for the OS-independent 4861acpica.lib 4862produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 4863version of 4864the code includes the debug output trace mechanism and has a much larger 4865code 4866and 4867data size. 4868 4869 Previous Release (VC 9.0): 4870 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4871 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4872 Current Release (VC 9.0): 4873 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 4874 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 4875 48762) iASL Compiler/Disassembler and Tools: 4877 4878Implemented full support for the "SLIC" ACPI table. Includes support in 4879the 4880header files, disassembler, table compiler, and template generator. Bob 4881Moore, 4882Lin Ming. 4883 4884AcpiXtract: Correctly handle embedded comments and messages from 4885AcpiDump. 4886Apparently some or all versions of acpidump will occasionally emit a 4887comment 4888like 4889"Wrong checksum", etc., into the dump file. This was causing problems for 4890AcpiXtract. ACPICA BZ 905. 4891 4892iASL: Fix the Linux makefile by removing an inadvertent double file 4893inclusion. 4894ACPICA BZ 913. 4895 4896AcpiExec: Update installation of operation region handlers. Install one 4897handler 4898for a user-defined address space. This is used by the ASL test suite 4899(ASLTS). 4900 4901---------------------------------------- 490211 February 2011. Summary of changes for version 20110211: 4903 49041) ACPI CA Core Subsystem: 4905 4906Added a mechanism to defer _REG methods for some early-installed 4907handlers. 4908Most user handlers should be installed before call to 4909AcpiEnableSubsystem. 4910However, Event handlers and region handlers should be installed after 4911AcpiInitializeObjects. Override handlers for the "default" regions should 4912be 4913installed early, however. This change executes all _REG methods for the 4914default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 4915chicken/egg issues between them. ACPICA BZ 848. 4916 4917Implemented an optimization for GPE detection. This optimization will 4918simply 4919ignore GPE registers that contain no enabled GPEs -- there is no need to 4920read the register since this information is available internally. This 4921becomes more important on machines with a large GPE space. ACPICA 4922bugzilla 4923884. Lin Ming. Suggestion from Joe Liu. 4924 4925Removed all use of the highly unreliable FADT revision field. The 4926revision 4927number in the FADT has been found to be completely unreliable and cannot 4928be 4929trusted. Only the actual table length can be used to infer the version. 4930This 4931change updates the ACPICA core and the disassembler so that both no 4932longer 4933even look at the FADT version and instead depend solely upon the FADT 4934length. 4935 4936Fix an unresolved name issue for the no-debug and no-error-message source 4937generation cases. The _AcpiModuleName was left undefined in these cases, 4938but 4939it is actually needed as a parameter to some interfaces. Define 4940_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 4941 4942Split several large files (makefiles and project files updated) 4943 utglobal.c -> utdecode.c 4944 dbcomds.c -> dbmethod.c dbnames.c 4945 dsopcode.c -> dsargs.c dscontrol.c 4946 dsload.c -> dsload2.c 4947 aslanalyze.c -> aslbtypes.c aslwalks.c 4948 4949Example Code and Data Size: These are the sizes for the OS-independent 4950acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4951debug version of the code includes the debug output trace mechanism and 4952has 4953a much larger code and data size. 4954 4955 Previous Release (VC 9.0): 4956 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4957 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4958 Current Release (VC 9.0): 4959 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4960 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4961 49622) iASL Compiler/Disassembler and Tools: 4963 4964iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 4965These are useful C-style macros with the standard definitions. ACPICA 4966bugzilla 898. 4967 4968iASL/DTC: Added support for integer expressions and labels. Support for 4969full 4970expressions for all integer fields in all ACPI tables. Support for labels 4971in 4972"generic" portions of tables such as UEFI. See the iASL reference manual. 4973 4974Debugger: Added a command to display the status of global handlers. The 4975"handlers" command will display op region, fixed event, and miscellaneous 4976global handlers. installation status -- and for op regions, whether 4977default 4978or user-installed handler will be used. 4979 4980iASL: Warn if reserved method incorrectly returns a value. Many 4981predefined 4982names are defined such that they do not return a value. If implemented as 4983a 4984method, issue a warning if such a name explicitly returns a value. ACPICA 4985Bugzilla 855. 4986 4987iASL: Added detection of GPE method name conflicts. Detects a conflict 4988where 4989there are two GPE methods of the form _Lxy and _Exy in the same scope. 4990(For 4991example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 4992 4993iASL/DTC: Fixed a couple input scanner issues with comments and line 4994numbers. Comment remover could get confused and miss a comment ending. 4995Fixed 4996a problem with line counter maintenance. 4997 4998iASL/DTC: Reduced the severity of some errors from fatal to error. There 4999is 5000no need to abort on simple errors within a field definition. 5001 5002Debugger: Simplified the output of the help command. All help output now 5003in 5004a single screen, instead of help subcommands. ACPICA Bugzilla 897. 5005 5006---------------------------------------- 500712 January 2011. Summary of changes for version 20110112: 5008 50091) ACPI CA Core Subsystem: 5010 5011Fixed a race condition between method execution and namespace walks that 5012can 5013possibly cause a fault. The problem was apparently introduced in version 501420100528 as a result of a performance optimization that reduces the 5015number 5016of 5017namespace walks upon method exit by using the delete_namespace_subtree 5018function instead of the delete_namespace_by_owner function used 5019previously. 5020Bug is a missing namespace lock in the delete_namespace_subtree function. 5021dana.myers@oracle.com 5022 5023Fixed several issues and a possible fault with the automatic "serialized" 5024method support. History: This support changes a method to "serialized" on 5025the 5026fly if the method generates an AE_ALREADY_EXISTS error, indicating the 5027possibility that it cannot handle reentrancy. This fix repairs a couple 5028of 5029issues seen in the field, especially on machines with many cores: 5030 5031 1) Delete method children only upon the exit of the last thread, 5032 so as to not delete objects out from under other running threads 5033 (and possibly causing a fault.) 5034 2) Set the "serialized" bit for the method only upon the exit of the 5035 Last thread, so as to not cause deadlock when running threads 5036 attempt to exit. 5037 3) Cleanup the use of the AML "MethodFlags" and internal method flags 5038 so that there is no longer any confusion between the two. 5039 5040 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 5041 5042Debugger: Now lock the namespace for duration of a namespace dump. 5043Prevents 5044issues if the namespace is changing dynamically underneath the debugger. 5045Especially affects temporary namespace nodes, since the debugger displays 5046these also. 5047 5048Updated the ordering of include files. The ACPICA headers should appear 5049before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 5050set 5051any necessary compiler-specific defines, etc. Affects the ACPI-related 5052tools 5053and utilities. 5054 5055Updated all ACPICA copyrights and signons to 2011. Added the 2011 5056copyright 5057to all module headers and signons, including the Linux header. This 5058affects 5059virtually every file in the ACPICA core subsystem, iASL compiler, and all 5060utilities. 5061 5062Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 5063project files for VC++ 6.0 are now obsolete. New project files can be 5064found 5065under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 5066details. 5067 5068Example Code and Data Size: These are the sizes for the OS-independent 5069acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5070debug version of the code includes the debug output trace mechanism and 5071has a 5072much larger code and data size. 5073 5074 Previous Release (VC 6.0): 5075 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 5076 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 5077 Current Release (VC 9.0): 5078 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 5079 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 5080 50812) iASL Compiler/Disassembler and Tools: 5082 5083iASL: Added generic data types to the Data Table compiler. Add "generic" 5084data 5085types such as UINT32, String, Unicode, etc., to simplify the generation 5086of 5087platform-defined tables such as UEFI. Lin Ming. 5088 5089iASL: Added listing support for the Data Table Compiler. Adds listing 5090support 5091(-l) to display actual binary output for each line of input code. 5092 5093---------------------------------------- 509409 December 2010. Summary of changes for version 20101209: 5095 50961) ACPI CA Core Subsystem: 5097 5098Completed the major overhaul of the GPE support code that was begun in 5099July 51002010. Major features include: removal of _PRW execution in ACPICA (host 5101executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 5102changes to existing interfaces, simplification of GPE handler operation, 5103and 5104a handful of new interfaces: 5105 5106 AcpiUpdateAllGpes 5107 AcpiFinishGpe 5108 AcpiSetupGpeForWake 5109 AcpiSetGpeWakeMask 5110 One new file, evxfgpe.c to consolidate all external GPE interfaces. 5111 5112See the ACPICA Programmer Reference for full details and programming 5113information. See the new section 4.4 "General Purpose Event (GPE) 5114Support" 5115for a full overview, and section 8.7 "ACPI General Purpose Event 5116Management" 5117for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin 5118Ming, 5119Bob Moore, Rafael Wysocki. 5120 5121Implemented a new GPE feature for Windows compatibility, the "Implicit 5122Wake 5123GPE Notify". This feature will automatically issue a Notify(2) on a 5124device 5125when a Wake GPE is received if there is no corresponding GPE method or 5126handler. ACPICA BZ 870. 5127 5128Fixed a problem with the Scope() operator during table parse and load 5129phase. 5130During load phase (table load or method execution), the scope operator 5131should 5132not enter the target into the namespace. Instead, it should open a new 5133scope 5134at the target location. Linux BZ 19462, ACPICA BZ 882. 5135 5136Example Code and Data Size: These are the sizes for the OS-independent 5137acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5138debug version of the code includes the debug output trace mechanism and 5139has a 5140much larger code and data size. 5141 5142 Previous Release: 5143 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 5144 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 5145 Current Release: 5146 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 5147 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 5148 51492) iASL Compiler/Disassembler and Tools: 5150 5151iASL: Relax the alphanumeric restriction on _CID strings. These strings 5152are 5153"bus-specific" per the ACPI specification, and therefore any characters 5154are 5155acceptable. The only checks that can be performed are for a null string 5156and 5157perhaps for a leading asterisk. ACPICA BZ 886. 5158 5159iASL: Fixed a problem where a syntax error that caused a premature EOF 5160condition on the source file emitted a very confusing error message. The 5161premature EOF is now detected correctly. ACPICA BZ 891. 5162 5163Disassembler: Decode the AccessSize within a Generic Address Structure 5164(byte 5165access, word access, etc.) Note, this field does not allow arbitrary bit 5166access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 5167 5168New: AcpiNames utility - Example namespace dump utility. Shows an example 5169of 5170ACPICA configuration for a minimal namespace dump utility. Uses table and 5171namespace managers, but no AML interpreter. Does not add any 5172functionality 5173over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 5174partition and configure ACPICA. ACPICA BZ 883. 5175 5176AML Debugger: Increased the debugger buffer size for method return 5177objects. 5178Was 4K, increased to 16K. Also enhanced error messages for debugger 5179method 5180execution, including the buffer overflow case. 5181 5182---------------------------------------- 518313 October 2010. Summary of changes for version 20101013: 5184 51851) ACPI CA Core Subsystem: 5186 5187Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 5188now 5189clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 5190HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 5191 5192Changed the type of the predefined namespace object _TZ from ThermalZone 5193to 5194Device. This was found to be confusing to the host software that 5195processes 5196the various thermal zones, since _TZ is not really a ThermalZone. 5197However, 5198a 5199Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 5200Zhang. 5201 5202Added Windows Vista SP2 to the list of supported _OSI strings. The actual 5203string is "Windows 2006 SP2". 5204 5205Eliminated duplicate code in AcpiUtExecute* functions. Now that the 5206nsrepair 5207code automatically repairs _HID-related strings, this type of code is no 5208longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 5209878. 5210 5211Example Code and Data Size: These are the sizes for the OS-independent 5212acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5213debug version of the code includes the debug output trace mechanism and 5214has a 5215much larger code and data size. 5216 5217 Previous Release: 5218 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 5219 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 5220 Current Release: 5221 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 5222 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 5223 52242) iASL Compiler/Disassembler and Tools: 5225 5226iASL: Implemented additional compile-time validation for _HID strings. 5227The 5228non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the 5229length 5230of 5231the string must be exactly seven or eight characters. For both _HID and 5232_CID 5233strings, all characters must be alphanumeric. ACPICA BZ 874. 5234 5235iASL: Allow certain "null" resource descriptors. Some BIOS code creates 5236descriptors that are mostly or all zeros, with the expectation that they 5237will 5238be filled in at runtime. iASL now allows this as long as there is a 5239"resource 5240tag" (name) associated with the descriptor, which gives the ASL a handle 5241needed to modify the descriptor. ACPICA BZ 873. 5242 5243Added single-thread support to the generic Unix application OSL. 5244Primarily 5245for iASL support, this change removes the use of semaphores in the 5246single- 5247threaded ACPICA tools/applications - increasing performance. The 5248_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 5249option. ACPICA BZ 879. 5250 5251AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 5252support 5253for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 5254 5255iASL: Moved all compiler messages to a new file, aslmessages.h. 5256 5257---------------------------------------- 525815 September 2010. Summary of changes for version 20100915: 5259 52601) ACPI CA Core Subsystem: 5261 5262Removed the AcpiOsDerivePciId OSL interface. The various host 5263implementations 5264of this function were not OS-dependent and are now obsolete and can be 5265removed from all host OSLs. This function has been replaced by 5266AcpiHwDerivePciId, which is now part of the ACPICA core code. 5267AcpiHwDerivePciId has been implemented without recursion. Adds one new 5268module, hwpci.c. ACPICA BZ 857. 5269 5270Implemented a dynamic repair for _HID and _CID strings. The following 5271problems are now repaired at runtime: 1) Remove a leading asterisk in the 5272string, and 2) the entire string is uppercased. Both repairs are in 5273accordance with the ACPI specification and will simplify host driver 5274code. 5275ACPICA BZ 871. 5276 5277The ACPI_THREAD_ID type is no longer configurable, internally it is now 5278always UINT64. This simplifies the ACPICA code, especially any printf 5279output. 5280UINT64 is the only common data type for all thread_id types across all 5281operating systems. It is now up to the host OSL to cast the native 5282thread_id 5283type to UINT64 before returning the value to ACPICA (via 5284AcpiOsGetThreadId). 5285Lin Ming, Bob Moore. 5286 5287Added the ACPI_INLINE type to enhance the ACPICA configuration. The 5288"inline" 5289keyword is not standard across compilers, and this type allows inline to 5290be 5291configured on a per-compiler basis. Lin Ming. 5292 5293Made the system global AcpiGbl_SystemAwakeAndRunning publically 5294available. 5295Added an extern for this boolean in acpixf.h. Some hosts utilize this 5296value 5297during suspend/restore operations. ACPICA BZ 869. 5298 5299All code that implements error/warning messages with the "ACPI:" prefix 5300has 5301been moved to a new module, utxferror.c. 5302 5303The UINT64_OVERLAY was moved to utmath.c, which is the only module where 5304it 5305is used. ACPICA BZ 829. Lin Ming, Bob Moore. 5306 5307Example Code and Data Size: These are the sizes for the OS-independent 5308acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5309debug version of the code includes the debug output trace mechanism and 5310has a 5311much larger code and data size. 5312 5313 Previous Release: 5314 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 5315 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 5316 Current Release: 5317 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 5318 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 5319 53202) iASL Compiler/Disassembler and Tools: 5321 5322iASL/Disassembler: Write ACPI errors to stderr instead of the output 5323file. 5324This keeps the output files free of random error messages that may 5325originate 5326from within the namespace/interpreter code. Used this opportunity to 5327merge 5328all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 5329866. Lin Ming, Bob Moore. 5330 5331Tools: update some printfs for ansi warnings on size_t. Handle width 5332change 5333of size_t on 32-bit versus 64-bit generations. Lin Ming. 5334 5335---------------------------------------- 533606 August 2010. Summary of changes for version 20100806: 5337 53381) ACPI CA Core Subsystem: 5339 5340Designed and implemented a new host interface to the _OSI support code. 5341This 5342will allow the host to dynamically add or remove multiple _OSI strings, 5343as 5344well as install an optional handler that is called for each _OSI 5345invocation. 5346Also added a new AML debugger command, 'osi' to display and modify the 5347global 5348_OSI string table, and test support in the AcpiExec utility. See the 5349ACPICA 5350reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 5351New Functions: 5352 AcpiInstallInterface - Add an _OSI string. 5353 AcpiRemoveInterface - Delete an _OSI string. 5354 AcpiInstallInterfaceHandler - Install optional _OSI handler. 5355Obsolete Functions: 5356 AcpiOsValidateInterface - no longer used. 5357New Files: 5358 source/components/utilities/utosi.c 5359 5360Re-introduced the support to enable multi-byte transfers for Embedded 5361Controller (EC) operation regions. A reported problem was found to be a 5362bug 5363in the host OS, not in the multi-byte support. Previously, the maximum 5364data 5365size passed to the EC operation region handler was a single byte. There 5366are 5367often EC Fields larger than one byte that need to be transferred, and it 5368is 5369useful for the EC driver to lock these as a single transaction. This 5370change 5371enables single transfers larger than 8 bits. This effectively changes the 5372access to the EC space from ByteAcc to AnyAcc, and will probably require 5373changes to the host OS Embedded Controller driver to enable 16/32/64/256- 5374bit 5375transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 5376 5377Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 5378prototype in acpiosxf.h had the output value pointer as a (void *). 5379It should be a (UINT64 *). This may affect some host OSL code. 5380 5381Fixed a couple problems with the recently modified Linux makefiles for 5382iASL 5383and AcpiExec. These new makefiles place the generated object files in the 5384local directory so that there can be no collisions between the files that 5385are 5386shared between them that are compiled with different options. 5387 5388Example Code and Data Size: These are the sizes for the OS-independent 5389acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5390debug version of the code includes the debug output trace mechanism and 5391has a 5392much larger code and data size. 5393 5394 Previous Release: 5395 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5396 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 5397 Current Release: 5398 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 5399 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 5400 54012) iASL Compiler/Disassembler and Tools: 5402 5403iASL/Disassembler: Added a new option (-da, "disassemble all") to load 5404the 5405namespace from and disassemble an entire group of AML files. Useful for 5406loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 5407and 5408disassembling with one simple command. ACPICA BZ 865. Lin Ming. 5409 5410iASL: Allow multiple invocations of -e option. This change allows 5411multiple 5412uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 5413834. 5414Lin Ming. 5415 5416---------------------------------------- 541702 July 2010. Summary of changes for version 20100702: 5418 54191) ACPI CA Core Subsystem: 5420 5421Implemented several updates to the recently added GPE reference count 5422support. The model for "wake" GPEs is changing to give the host OS 5423complete 5424control of these GPEs. Eventually, the ACPICA core will not execute any 5425_PRW 5426methods, since the host already must execute them. Also, additional 5427changes 5428were made to help ensure that the reference counts are kept in proper 5429synchronization with reality. Rafael J. Wysocki. 5430 54311) Ensure that GPEs are not enabled twice during initialization. 54322) Ensure that GPE enable masks stay in sync with the reference count. 54333) Do not inadvertently enable GPEs when writing GPE registers. 54344) Remove the internal wake reference counter and add new AcpiGpeWakeup 5435interface. This interface will set or clear individual GPEs for wakeup. 54365) Remove GpeType argument from AcpiEnable and AcpiDisable. These 5437interfaces 5438are now used for "runtime" GPEs only. 5439 5440Changed the behavior of the GPE install/remove handler interfaces. The 5441GPE 5442is 5443no longer disabled during this process, as it was found to cause problems 5444on 5445some machines. Rafael J. Wysocki. 5446 5447Reverted a change introduced in version 20100528 to enable Embedded 5448Controller multi-byte transfers. This change was found to cause problems 5449with 5450Index Fields and possibly Bank Fields. It will be reintroduced when these 5451problems have been resolved. 5452 5453Fixed a problem with references to Alias objects within Package Objects. 5454A 5455reference to an Alias within the definition of a Package was not always 5456resolved properly. Aliases to objects like Processors, Thermal zones, 5457etc. 5458were resolved to the actual object instead of a reference to the object 5459as 5460it 5461should be. Package objects are only allowed to contain integer, string, 5462buffer, package, and reference objects. Redhat bugzilla 608648. 5463 5464Example Code and Data Size: These are the sizes for the OS-independent 5465acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5466debug version of the code includes the debug output trace mechanism and 5467has a 5468much larger code and data size. 5469 5470 Previous Release: 5471 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5472 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 5473 Current Release: 5474 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5475 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 5476 54772) iASL Compiler/Disassembler and Tools: 5478 5479iASL: Implemented a new compiler subsystem to allow definition and 5480compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 5481These 5482are called "ACPI Data Tables", and the new compiler is the "Data Table 5483Compiler". This compiler is intended to simplify the existing error-prone 5484process of creating these tables for the BIOS, as well as allowing the 5485disassembly, modification, recompilation, and override of existing ACPI 5486data 5487tables. See the iASL User Guide for detailed information. 5488 5489iASL: Implemented a new Template Generator option in support of the new 5490Data 5491Table Compiler. This option will create examples of all known ACPI tables 5492that can be used as the basis for table development. See the iASL 5493documentation and the -T option. 5494 5495Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 5496Descriptor Table). 5497 5498Updated the Linux makefiles for iASL and AcpiExec to place the generated 5499object files in the local directory so that there can be no collisions 5500between the shared files between them that are generated with different 5501options. 5502 5503Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. 5504Use 5505the #define __APPLE__ to enable this support. 5506 5507---------------------------------------- 550828 May 2010. Summary of changes for version 20100528: 5509 5510Note: The ACPI 4.0a specification was released on April 5, 2010 and is 5511available at www.acpi.info. This is primarily an errata release. 5512 55131) ACPI CA Core Subsystem: 5514 5515Undefined ACPI tables: We are looking for the definitions for the 5516following 5517ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 5518 5519Implemented support to enable multi-byte transfers for Embedded 5520Controller 5521(EC) operation regions. Previously, the maximum data size passed to the 5522EC 5523operation region handler was a single byte. There are often EC Fields 5524larger 5525than one byte that need to be transferred, and it is useful for the EC 5526driver 5527to lock these as a single transaction. This change enables single 5528transfers 5529larger than 8 bits. This effectively changes the access to the EC space 5530from 5531ByteAcc to AnyAcc, and will probably require changes to the host OS 5532Embedded 5533Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 5534bit 5535transfers. Alexey Starikovskiy, Lin Ming 5536 5537Implemented a performance enhancement for namespace search and access. 5538This 5539change enhances the performance of namespace searches and walks by adding 5540a 5541backpointer to the parent in each namespace node. On large namespaces, 5542this 5543change can improve overall ACPI performance by up to 9X. Adding a pointer 5544to 5545each namespace node increases the overall size of the internal namespace 5546by 5547about 5%, since each namespace entry usually consists of both a namespace 5548node and an ACPI operand object. However, this is the first growth of the 5549namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 5550 5551Implemented a performance optimization that reduces the number of 5552namespace 5553walks. On control method exit, only walk the namespace if the method is 5554known 5555to have created namespace objects outside of its local scope. Previously, 5556the 5557entire namespace was traversed on each control method exit. This change 5558can 5559improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 5560Moore. 5561 5562Added support to truncate I/O addresses to 16 bits for Windows 5563compatibility. 5564Some ASL code has been seen in the field that inadvertently has bits set 5565above bit 15. This feature is optional and is enabled if the BIOS 5566requests 5567any Windows OSI strings. It can also be enabled by the host OS. Matthew 5568Garrett, Bob Moore. 5569 5570Added support to limit the maximum time for the ASL Sleep() operator. To 5571prevent accidental deep sleeps, limit the maximum time that Sleep() will 5572actually sleep. Configurable, the default maximum is two seconds. ACPICA 5573bugzilla 854. 5574 5575Added run-time validation support for the _WDG and_WED Microsoft 5576predefined 5577methods. These objects are defined by "Windows Instrumentation", and are 5578not 5579part of the ACPI spec. ACPICA BZ 860. 5580 5581Expanded all statistic counters used during namespace and device 5582initialization from 16 to 32 bits in order to support very large 5583namespaces. 5584 5585Replaced all instances of %d in printf format specifiers with %u since 5586nearly 5587all integers in ACPICA are unsigned. 5588 5589Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 5590returned 5591as AE_NO_HANDLER. 5592 5593Example Code and Data Size: These are the sizes for the OS-independent 5594acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5595debug version of the code includes the debug output trace mechanism and 5596has a 5597much larger code and data size. 5598 5599 Previous Release: 5600 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 5601 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 5602 Current Release: 5603 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5604 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 5605 56062) iASL Compiler/Disassembler and Tools: 5607 5608iASL: Added compiler support for the _WDG and_WED Microsoft predefined 5609methods. These objects are defined by "Windows Instrumentation", and are 5610not 5611part of the ACPI spec. ACPICA BZ 860. 5612 5613AcpiExec: added option to disable the memory tracking mechanism. The -dt 5614option will disable the tracking mechanism, which improves performance 5615considerably. 5616 5617AcpiExec: Restructured the command line options into -d (disable) and -e 5618(enable) options. 5619 5620---------------------------------------- 562128 April 2010. Summary of changes for version 20100428: 5622 56231) ACPI CA Core Subsystem: 5624 5625Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 5626including FADT-based and GPE Block Devices, execute any _PRW methods in 5627the 5628new table, and process any _Lxx/_Exx GPE methods in the new table. Any 5629runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 5630immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 5631Devices. Provides compatibility with other ACPI implementations. Two new 5632files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 5633Moore. 5634 5635Fixed a regression introduced in version 20100331 within the table 5636manager 5637where initial table loading could fail. This was introduced in the fix 5638for 5639AcpiReallocateRootTable. Also, renamed some of fields in the table 5640manager 5641data structures to clarify their meaning and use. 5642 5643Fixed a possible allocation overrun during internal object copy in 5644AcpiUtCopySimpleObject. The original code did not correctly handle the 5645case 5646where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 5647847. 5648 5649Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 5650possible access beyond end-of-allocation. Also, now fully validate 5651descriptor 5652(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 5653 5654Example Code and Data Size: These are the sizes for the OS-independent 5655acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5656debug version of the code includes the debug output trace mechanism and 5657has a 5658much larger code and data size. 5659 5660 Previous Release: 5661 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 5662 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 5663 Current Release: 5664 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 5665 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 5666 56672) iASL Compiler/Disassembler and Tools: 5668 5669iASL: Implemented Min/Max/Len/Gran validation for address resource 5670descriptors. This change implements validation for the address fields 5671that 5672are common to all address-type resource descriptors. These checks are 5673implemented: Checks for valid Min/Max, length within the Min/Max window, 5674valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as 5675per 5676table 6-40 in the ACPI 4.0a specification. Also split the large 5677aslrestype1.c 5678and aslrestype2.c files into five new files. ACPICA BZ 840. 5679 5680iASL: Added support for the _Wxx predefined names. This support was 5681missing 5682and these names were not recognized by the compiler as valid predefined 5683names. ACPICA BZ 851. 5684 5685iASL: Added an error for all predefined names that are defined to return 5686no 5687value and thus must be implemented as Control Methods. These include all 5688of 5689the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 5690names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 5691 5692iASL: Implemented the -ts option to emit hex AML data in ASL format, as 5693an 5694ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 5695be 5696dynamically loaded via the Load() operator. Also cleaned up output for 5697the 5698- 5699ta and -tc options. ACPICA BZ 853. 5700 5701Tests: Added a new file with examples of extended iASL error checking. 5702Demonstrates the advanced error checking ability of the iASL compiler. 5703Available at tests/misc/badcode.asl. 5704 5705---------------------------------------- 570631 March 2010. Summary of changes for version 20100331: 5707 57081) ACPI CA Core Subsystem: 5709 5710Completed a major update for the GPE support in order to improve support 5711for 5712shared GPEs and to simplify both host OS and ACPICA code. Added a 5713reference 5714count mechanism to support shared GPEs that require multiple device 5715drivers. 5716Several external interfaces have changed. One external interface has been 5717removed. One new external interface was added. Most of the GPE external 5718interfaces now use the GPE spinlock instead of the events mutex (and the 5719Flags parameter for many GPE interfaces has been removed.) See the 5720updated 5721ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 5722Rafael 5723Wysocki. ACPICA BZ 831. 5724 5725Changed: 5726 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 5727Removed: 5728 AcpiSetGpeType 5729New: 5730 AcpiSetGpe 5731 5732Implemented write support for DataTable operation regions. These regions 5733are 5734defined via the DataTableRegion() operator. Previously, only read support 5735was 5736implemented. The ACPI specification allows DataTableRegions to be 5737read/write, 5738however. 5739 5740Implemented a new subsystem option to force a copy of the DSDT to local 5741memory. Optionally copy the entire DSDT to local memory (instead of 5742simply 5743mapping it.) There are some (albeit very rare) BIOSs that corrupt or 5744replace 5745the original DSDT, creating the need for this option. Default is FALSE, 5746do 5747not copy the DSDT. 5748 5749Implemented detection of a corrupted or replaced DSDT. This change adds 5750support to detect a DSDT that has been corrupted and/or replaced from 5751outside 5752the OS (by firmware). This is typically catastrophic for the system, but 5753has 5754been seen on some machines. Once this problem has been detected, the DSDT 5755copy option can be enabled via system configuration. Lin Ming, Bob Moore. 5756 5757Fixed two problems with AcpiReallocateRootTable during the root table 5758copy. 5759When copying the root table to the new allocation, the length used was 5760incorrect. The new size was used instead of the current table size, 5761meaning 5762too much data was copied. Also, the count of available slots for ACPI 5763tables 5764was not set correctly. Alexey Starikovskiy, Bob Moore. 5765 5766Example Code and Data Size: These are the sizes for the OS-independent 5767acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5768debug version of the code includes the debug output trace mechanism and 5769has a 5770much larger code and data size. 5771 5772 Previous Release: 5773 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 5774 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 5775 Current Release: 5776 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 5777 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 5778 57792) iASL Compiler/Disassembler and Tools: 5780 5781iASL: Implement limited typechecking for values returned from predefined 5782control methods. The type of any returned static (unnamed) object is now 5783validated. For example, Return(1). ACPICA BZ 786. 5784 5785iASL: Fixed a predefined name object verification regression. Fixes a 5786problem 5787introduced in version 20100304. An error is incorrectly generated if a 5788predefined name is declared as a static named object with a value defined 5789using the keywords "Zero", "One", or "Ones". Lin Ming. 5790 5791iASL: Added Windows 7 support for the -g option (get local ACPI tables) 5792by 5793reducing the requested registry access rights. ACPICA BZ 842. 5794 5795Disassembler: fixed a possible fault when generating External() 5796statements. 5797Introduced in commit ae7d6fd: Properly handle externals with parent- 5798prefix 5799(carat). Fixes a string length allocation calculation. Lin Ming. 5800 5801---------------------------------------- 580204 March 2010. Summary of changes for version 20100304: 5803 58041) ACPI CA Core Subsystem: 5805 5806Fixed a possible problem with the AML Mutex handling function 5807AcpiExReleaseMutex where the function could fault under the very rare 5808condition when the interpreter has blocked, the interpreter lock is 5809released, 5810the interpreter is then reentered via the same thread, and attempts to 5811acquire an AML mutex that was previously acquired. FreeBSD report 140979. 5812Lin 5813Ming. 5814 5815Implemented additional configuration support for the AML "Debug Object". 5816Output from the debug object can now be enabled via a global variable, 5817AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 5818debugging. 5819This debug output is now available in the release version of ACPICA 5820instead 5821of just the debug version. Also, the entire debug output module can now 5822be 5823configured out of the ACPICA build if desired. One new file added, 5824executer/exdebug.c. Lin Ming, Bob Moore. 5825 5826Added header support for the ACPI MCHI table (Management Controller Host 5827Interface Table). This table was added in ACPI 4.0, but the defining 5828document 5829has only recently become available. 5830 5831Standardized output of integer values for ACPICA warnings/errors. Always 5832use 58330x prefix for hex output, always use %u for unsigned integer decimal 5834output. 5835Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 5836400 5837invocations.) These invocations were converted from the original 5838ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 5839 5840Example Code and Data Size: These are the sizes for the OS-independent 5841acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5842debug version of the code includes the debug output trace mechanism and 5843has a 5844much larger code and data size. 5845 5846 Previous Release: 5847 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 5848 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 5849 Current Release: 5850 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 5851 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 5852 58532) iASL Compiler/Disassembler and Tools: 5854 5855iASL: Implemented typechecking support for static (non-control method) 5856predefined named objects that are declared with the Name() operator. For 5857example, the type of this object is now validated to be of type Integer: 5858Name(_BBN, 1). This change migrates the compiler to using the core 5859predefined 5860name table instead of maintaining a local version. Added a new file, 5861aslpredef.c. ACPICA BZ 832. 5862 5863Disassembler: Added support for the ACPI 4.0 MCHI table. 5864 5865---------------------------------------- 586621 January 2010. Summary of changes for version 20100121: 5867 58681) ACPI CA Core Subsystem: 5869 5870Added the 2010 copyright to all module headers and signons. This affects 5871virtually every file in the ACPICA core subsystem, the iASL compiler, the 5872tools/utilities, and the test suites. 5873 5874Implemented a change to the AcpiGetDevices interface to eliminate 5875unnecessary 5876invocations of the _STA method. In the case where a specific _HID is 5877requested, do not run _STA until a _HID match is found. This eliminates 5878potentially dozens of _STA calls during a search for a particular 5879device/HID, 5880which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 5881 5882Implemented an additional repair for predefined method return values. 5883Attempt 5884to repair unexpected NULL elements within returned Package objects. 5885Create 5886an 5887Integer of value zero, a NULL String, or a zero-length Buffer as 5888appropriate. 5889ACPICA BZ 818. Lin Ming, Bob Moore. 5890 5891Removed the obsolete ACPI_INTEGER data type. This type was introduced as 5892the 5893code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 5894(with 589564-bit AML integers). It is now obsolete and this change removes it from 5896the 5897ACPICA code base, replaced by UINT64. The original typedef has been 5898retained 5899for now for compatibility with existing device driver code. ACPICA BZ 5900824. 5901 5902Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field 5903in 5904the parse tree object. 5905 5906Added additional warning options for the gcc-4 generation. Updated the 5907source 5908accordingly. This includes some code restructuring to eliminate 5909unreachable 5910code, elimination of some gotos, elimination of unused return values, 5911some 5912additional casting, and removal of redundant declarations. 5913 5914Example Code and Data Size: These are the sizes for the OS-independent 5915acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5916debug version of the code includes the debug output trace mechanism and 5917has a 5918much larger code and data size. 5919 5920 Previous Release: 5921 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 5922 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 5923 Current Release: 5924 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 5925 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 5926 59272) iASL Compiler/Disassembler and Tools: 5928 5929No functional changes for this release. 5930 5931---------------------------------------- 593214 December 2009. Summary of changes for version 20091214: 5933 59341) ACPI CA Core Subsystem: 5935 5936Enhanced automatic data type conversions for predefined name repairs. 5937This 5938change expands the automatic repairs/conversions for predefined name 5939return 5940values to make Integers, Strings, and Buffers fully interchangeable. 5941Also, 5942a 5943Buffer can be converted to a Package of Integers if necessary. The 5944nsrepair.c 5945module was completely restructured. Lin Ming, Bob Moore. 5946 5947Implemented automatic removal of null package elements during predefined 5948name 5949repairs. This change will automatically remove embedded and trailing NULL 5950package elements from returned package objects that are defined to 5951contain 5952a 5953variable number of sub-packages. The driver is then presented with a 5954package 5955with no null elements to deal with. ACPICA BZ 819. 5956 5957Implemented a repair for the predefined _FDE and _GTM names. The expected 5958return value for both names is a Buffer of 5 DWORDs. This repair fixes 5959two 5960possible problems (both seen in the field), where a package of integers 5961is 5962returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 5963Kim. 5964 5965Implemented additional module-level code support. This change will 5966properly 5967execute module-level code that is not at the root of the namespace (under 5968a 5969Device object, etc.). Now executes the code within the current scope 5970instead 5971of the root. ACPICA BZ 762. Lin Ming. 5972 5973Fixed possible mutex acquisition errors when running _REG methods. Fixes 5974a 5975problem where mutex errors can occur when running a _REG method that is 5976in 5977the same scope as a method-defined operation region or an operation 5978region 5979under a module-level IF block. This type of code is rare, so the problem 5980has 5981not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 5982 5983Fixed a possible memory leak during module-level code execution. An 5984object 5985could be leaked for each block of executed module-level code if the 5986interpreter slack mode is enabled This change deletes any implicitly 5987returned 5988object from the module-level code block. Lin Ming. 5989 5990Removed messages for successful predefined repair(s). The repair 5991mechanism 5992was considered too wordy. Now, messages are only unconditionally emitted 5993if 5994the return object cannot be repaired. Existing messages for successful 5995repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 5996827. 5997 5998Example Code and Data Size: These are the sizes for the OS-independent 5999acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6000debug version of the code includes the debug output trace mechanism and 6001has a 6002much larger code and data size. 6003 6004 Previous Release: 6005 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 6006 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 6007 Current Release: 6008 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 6009 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 6010 60112) iASL Compiler/Disassembler and Tools: 6012 6013iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 6014files 6015were no longer automatically removed at the termination of the compile. 6016 6017acpiexec: Implemented the -f option to specify default region fill value. 6018This option specifies the value used to initialize buffers that simulate 6019operation regions. Default value is zero. Useful for debugging problems 6020that 6021depend on a specific initial value for a region or field. 6022 6023---------------------------------------- 602412 November 2009. Summary of changes for version 20091112: 6025 60261) ACPI CA Core Subsystem: 6027 6028Implemented a post-order callback to AcpiWalkNamespace. The existing 6029interface only has a pre-order callback. This change adds an additional 6030parameter for a post-order callback which will be more useful for bus 6031scans. 6032ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 6033 6034Modified the behavior of the operation region memory mapping cache for 6035SystemMemory. Ensure that the memory mappings created for operation 6036regions 6037do not cross 4K page boundaries. Crossing a page boundary while mapping 6038regions can cause kernel warnings on some hosts if the pages have 6039different 6040attributes. Such regions are probably BIOS bugs, and this is the 6041workaround. 6042Linux BZ 14445. Lin Ming. 6043 6044Implemented an automatic repair for predefined methods that must return 6045sorted lists. This change will repair (by sorting) packages returned by 6046_ALR, 6047_PSS, and _TSS. Drivers can now assume that the packages are correctly 6048sorted 6049and do not contain NULL package elements. Adds one new file, 6050namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 6051 6052Fixed a possible fault during predefined name validation if a return 6053Package 6054object contains NULL elements. Also adds a warning if a NULL element is 6055followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 6056may 6057include repair or removal of all such NULL elements where possible. 6058 6059Implemented additional module-level executable AML code support. This 6060change 6061will execute module-level code that is not at the root of the namespace 6062(under a Device object, etc.) at table load time. Module-level executable 6063AML 6064code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 6065 6066Implemented a new internal function to create Integer objects. This 6067function 6068simplifies miscellaneous object creation code. ACPICA BZ 823. 6069 6070Reduced the severity of predefined repair messages, Warning to Info. 6071Since 6072the object was successfully repaired, a warning is too severe. Reduced to 6073an 6074info message for now. These messages may eventually be changed to debug- 6075only. 6076ACPICA BZ 812. 6077 6078Example Code and Data Size: These are the sizes for the OS-independent 6079acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6080debug version of the code includes the debug output trace mechanism and 6081has a 6082much larger code and data size. 6083 6084 Previous Release: 6085 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 6086 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 6087 Current Release: 6088 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 6089 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 6090 60912) iASL Compiler/Disassembler and Tools: 6092 6093iASL: Implemented Switch() with While(1) so that Break works correctly. 6094This 6095change correctly implements the Switch operator with a surrounding 6096While(1) 6097so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 6098 6099iASL: Added a message if a package initializer list is shorter than 6100package 6101length. Adds a new remark for a Package() declaration if an initializer 6102list 6103exists, but is shorter than the declared length of the package. Although 6104technically legal, this is probably a coding error and it is seen in the 6105field. ACPICA BZ 815. Lin Ming, Bob Moore. 6106 6107iASL: Fixed a problem where the compiler could fault after the maximum 6108number 6109of errors was reached (200). 6110 6111acpixtract: Fixed a possible warning for pointer cast if the compiler 6112warning 6113level set very high. 6114 6115---------------------------------------- 611613 October 2009. Summary of changes for version 20091013: 6117 61181) ACPI CA Core Subsystem: 6119 6120Fixed a problem where an Operation Region _REG method could be executed 6121more 6122than once. If a custom address space handler is installed by the host 6123before 6124the "initialize operation regions" phase of the ACPICA initialization, 6125any 6126_REG methods for that address space could be executed twice. This change 6127fixes the problem. ACPICA BZ 427. Lin Ming. 6128 6129Fixed a possible memory leak for the Scope() ASL operator. When the exact 6130invocation of "Scope(\)" is executed (change scope to root), one internal 6131operand object was leaked. Lin Ming. 6132 6133Implemented a run-time repair for the _MAT predefined method. If the _MAT 6134return value is defined as a Field object in the AML, and the field 6135size is less than or equal to the default width of an integer (32 or 613664),_MAT 6137can incorrectly return an Integer instead of a Buffer. ACPICA now 6138automatically repairs this problem. ACPICA BZ 810. 6139 6140Implemented a run-time repair for the _BIF and _BIX predefined methods. 6141The 6142"OEM Information" field is often incorrectly returned as an Integer with 6143value zero if the field is not supported by the platform. This is due to 6144an 6145ambiguity in the ACPI specification. The field should always be a string. 6146ACPICA now automatically repairs this problem by returning a NULL string 6147within the returned Package. ACPICA BZ 807. 6148 6149Example Code and Data Size: These are the sizes for the OS-independent 6150acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6151debug version of the code includes the debug output trace mechanism and 6152has a 6153much larger code and data size. 6154 6155 Previous Release: 6156 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 6157 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 6158 Current Release: 6159 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 6160 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 6161 61622) iASL Compiler/Disassembler and Tools: 6163 6164Disassembler: Fixed a problem where references to external symbols that 6165contained one or more parent-prefixes (carats) were not handled 6166correctly, 6167possibly causing a fault. ACPICA BZ 806. Lin Ming. 6168 6169Disassembler: Restructured the code so that all functions that handle 6170external symbols are in a single module. One new file is added, 6171common/dmextern.c. 6172 6173AML Debugger: Added a max count argument for the Batch command (which 6174executes multiple predefined methods within the namespace.) 6175 6176iASL: Updated the compiler documentation (User Reference.) Available at 6177http://www.acpica.org/documentation/. ACPICA BZ 750. 6178 6179AcpiXtract: Updated for Lint and other formatting changes. Close all open 6180files. 6181 6182---------------------------------------- 618303 September 2009. Summary of changes for version 20090903: 6184 61851) ACPI CA Core Subsystem: 6186 6187For Windows Vista compatibility, added the automatic execution of an _INI 6188method located at the namespace root (\_INI). This method is executed at 6189table load time. This support is in addition to the automatic execution 6190of 6191\_SB._INI. Lin Ming. 6192 6193Fixed a possible memory leak in the interpreter for AML package objects 6194if 6195the package initializer list is longer than the defined size of the 6196package. 6197This apparently can only happen if the BIOS changes the package size on 6198the 6199fly (seen in a _PSS object), as ASL compilers do not allow this. The 6200interpreter will truncate the package to the defined size (and issue an 6201error 6202message), but previously could leave the extra objects undeleted if they 6203were 6204pre-created during the argument processing (such is the case if the 6205package 6206consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 6207 6208Fixed a problem seen when a Buffer or String is stored to itself via ASL. 6209This has been reported in the field. Previously, ACPICA would zero out 6210the 6211buffer/string. Now, the operation is treated as a noop. Provides Windows 6212compatibility. ACPICA BZ 803. Lin Ming. 6213 6214Removed an extraneous error message for ASL constructs of the form 6215Store(LocalX,LocalX) when LocalX is uninitialized. These curious 6216statements 6217are seen in many BIOSs and are once again treated as NOOPs and no error 6218is 6219emitted when they are encountered. ACPICA BZ 785. 6220 6221Fixed an extraneous warning message if a _DSM reserved method returns a 6222Package object. _DSM can return any type of object, so validation on the 6223return type cannot be performed. ACPICA BZ 802. 6224 6225Example Code and Data Size: These are the sizes for the OS-independent 6226acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6227debug version of the code includes the debug output trace mechanism and 6228has a 6229much larger code and data size. 6230 6231 Previous Release: 6232 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 6233 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 6234 Current Release: 6235 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 6236 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 6237 62382) iASL Compiler/Disassembler and Tools: 6239 6240iASL: Fixed a problem with the use of the Alias operator and Resource 6241Templates. The correct alias is now constructed and no error is emitted. 6242ACPICA BZ 738. 6243 6244iASL: Implemented the -I option to specify additional search directories 6245for 6246include files. Allows multiple additional search paths for include files. 6247Directories are searched in the order specified on the command line 6248(after 6249the local directory is searched.) ACPICA BZ 800. 6250 6251iASL: Fixed a problem where the full pathname for include files was not 6252emitted for warnings/errors. This caused the IDE support to not work 6253properly. ACPICA BZ 765. 6254 6255iASL: Implemented the -@ option to specify a Windows-style response file 6256containing additional command line options. ACPICA BZ 801. 6257 6258AcpiExec: Added support to load multiple AML files simultaneously (such 6259as 6260a 6261DSDT and multiple SSDTs). Also added support for wildcards within the AML 6262pathname. These features allow all machine tables to be easily loaded and 6263debugged together. ACPICA BZ 804. 6264 6265Disassembler: Added missing support for disassembly of HEST table Error 6266Bank 6267subtables. 6268 6269---------------------------------------- 627030 July 2009. Summary of changes for version 20090730: 6271 6272The ACPI 4.0 implementation for ACPICA is complete with this release. 6273 62741) ACPI CA Core Subsystem: 6275 6276ACPI 4.0: Added header file support for all new and changed ACPI tables. 6277Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are 6278new 6279for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 6280BERT, 6281EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 6282There 6283have been some ACPI 4.0 changes to other existing tables. Split the large 6284actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 6285 6286ACPI 4.0: Implemented predefined name validation for all new names. There 6287are 628831 new names in ACPI 4.0. The predefined validation module was split into 6289two 6290files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 6291 6292Implemented support for so-called "module-level executable code". This is 6293executable AML code that exists outside of any control method and is 6294intended 6295to be executed at table load time. Although illegal since ACPI 2.0, this 6296type 6297of code still exists and is apparently still being created. Blocks of 6298this 6299code are now detected and executed as intended. Currently, the code 6300blocks 6301must exist under either an If, Else, or While construct; these are the 6302typical cases seen in the field. ACPICA BZ 762. Lin Ming. 6303 6304Implemented an automatic dynamic repair for predefined names that return 6305nested Package objects. This applies to predefined names that are defined 6306to 6307return a variable-length Package of sub-packages. If the number of sub- 6308packages is one, BIOS code is occasionally seen that creates a simple 6309single 6310package with no sub-packages. This code attempts to fix the problem by 6311wrapping a new package object around the existing package. These methods 6312can 6313be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA 6314BZ 6315790. 6316 6317Fixed a regression introduced in 20090625 for the AcpiGetDevices 6318interface. 6319The _HID/_CID matching was broken and no longer matched IDs correctly. 6320ACPICA 6321BZ 793. 6322 6323Fixed a problem with AcpiReset where the reset would silently fail if the 6324register was one of the protected I/O ports. AcpiReset now bypasses the 6325port 6326validation mechanism. This may eventually be driven into the 6327AcpiRead/Write 6328interfaces. 6329 6330Fixed a regression related to the recent update of the AcpiRead/Write 6331interfaces. A sleep/suspend could fail if the optional PM2 Control 6332register 6333does not exist during an attempt to write the Bus Master Arbitration bit. 6334(However, some hosts already delete the code that writes this bit, and 6335the 6336code may in fact be obsolete at this date.) ACPICA BZ 799. 6337 6338Fixed a problem where AcpiTerminate could fault if inadvertently called 6339twice 6340in succession. ACPICA BZ 795. 6341 6342Example Code and Data Size: These are the sizes for the OS-independent 6343acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6344debug version of the code includes the debug output trace mechanism and 6345has a 6346much larger code and data size. 6347 6348 Previous Release: 6349 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 6350 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 6351 Current Release: 6352 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 6353 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 6354 63552) iASL Compiler/Disassembler and Tools: 6356 6357ACPI 4.0: Implemented disassembler support for all new ACPI tables and 6358changes to existing tables. ACPICA BZ 775. 6359 6360---------------------------------------- 636125 June 2009. Summary of changes for version 20090625: 6362 6363The ACPI 4.0 Specification was released on June 16 and is available at 6364www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 6365continue for the next few releases. 6366 63671) ACPI CA Core Subsystem: 6368 6369ACPI 4.0: Implemented interpreter support for the IPMI operation region 6370address space. Includes support for bi-directional data buffers and an 6371IPMI 6372address space handler (to be installed by an IPMI device driver.) ACPICA 6373BZ 6374773. Lin Ming. 6375 6376ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. 6377Includes 6378support in both the header files and the disassembler. 6379 6380Completed a major update for the AcpiGetObjectInfo external interface. 6381Changes include: 6382 - Support for variable, unlimited length HID, UID, and CID strings. 6383 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 6384etc.) 6385 - Call the _SxW power methods on behalf of a device object. 6386 - Determine if a device is a PCI root bridge. 6387 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 6388These changes will require an update to all callers of this interface. 6389See 6390the updated ACPICA Programmer Reference for details. One new source file 6391has 6392been added - utilities/utids.c. ACPICA BZ 368, 780. 6393 6394Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 6395transfers. The Value parameter has been extended from 32 bits to 64 bits 6396in 6397order to support new ACPI 4.0 tables. These changes will require an 6398update 6399to 6400all callers of these interfaces. See the ACPICA Programmer Reference for 6401details. ACPICA BZ 768. 6402 6403Fixed several problems with AcpiAttachData. The handler was not invoked 6404when 6405the host node was deleted. The data sub-object was not automatically 6406deleted 6407when the host node was deleted. The interface to the handler had an 6408unused 6409parameter, this was removed. ACPICA BZ 778. 6410 6411Enhanced the function that dumps ACPI table headers. All non-printable 6412characters in the string fields are now replaced with '?' (Signature, 6413OemId, 6414OemTableId, and CompilerId.) ACPI tables with non-printable characters in 6415these fields are occasionally seen in the field. ACPICA BZ 788. 6416 6417Fixed a problem with predefined method repair code where the code that 6418attempts to repair/convert an object of incorrect type is only executed 6419on 6420the first time the predefined method is called. The mechanism that 6421disables 6422warnings on subsequent calls was interfering with the repair mechanism. 6423ACPICA BZ 781. 6424 6425Fixed a possible memory leak in the predefined validation/repair code 6426when 6427a 6428buffer is automatically converted to an expected string object. 6429 6430Removed obsolete 16-bit files from the distribution and from the current 6431git 6432tree head. ACPICA BZ 776. 6433 6434Example Code and Data Size: These are the sizes for the OS-independent 6435acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6436debug version of the code includes the debug output trace mechanism and 6437has a 6438much larger code and data size. 6439 6440 Previous Release: 6441 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 6442 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 6443 Current Release: 6444 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 6445 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 6446 64472) iASL Compiler/Disassembler and Tools: 6448 6449ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 6450operation region keyword. ACPICA BZ 771, 772. Lin Ming. 6451 6452ACPI 4.0: iASL - implemented compile-time validation support for all new 6453predefined names and control methods (31 total). ACPICA BZ 769. 6454 6455---------------------------------------- 645621 May 2009. Summary of changes for version 20090521: 6457 64581) ACPI CA Core Subsystem: 6459 6460Disabled the preservation of the SCI enable bit in the PM1 control 6461register. 6462The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification 6463to 6464be 6465a "preserved" bit - "OSPM always preserves this bit position", section 64664.7.3.2.1. However, some machines fail if this bit is in fact preserved 6467because the bit needs to be explicitly set by the OS as a workaround. No 6468machines fail if the bit is not preserved. Therefore, ACPICA no longer 6469attempts to preserve this bit. 6470 6471Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 6472incorrectly formed _PRT package could cause a fault. Added validation to 6473ensure that each package element is actually a sub-package. 6474 6475Implemented a new interface to install or override a single control 6476method, 6477AcpiInstallMethod. This interface is useful when debugging in order to 6478repair 6479an existing method or to install a missing method without having to 6480override 6481the entire ACPI table. See the ACPICA Programmer Reference for use and 6482examples. Lin Ming, Bob Moore. 6483 6484Fixed several reference count issues with the DdbHandle object that is 6485created from a Load or LoadTable operator. Prevent premature deletion of 6486the 6487object. Also, mark the object as invalid once the table has been 6488unloaded. 6489This is needed because the handle itself may not be deleted after the 6490table 6491unload, depending on whether it has been stored in a named object by the 6492caller. Lin Ming. 6493 6494Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 6495mutexes of the same sync level are acquired but then not released in 6496strict 6497opposite order, the internally maintained Current Sync Level becomes 6498confused 6499and can cause subsequent execution errors. ACPICA BZ 471. 6500 6501Changed the allowable release order for ASL mutex objects. The ACPI 4.0 6502specification has been changed to make the SyncLevel for mutex objects 6503more 6504useful. When releasing a mutex, the SyncLevel of the mutex must now be 6505the 6506same as the current sync level. This makes more sense than the previous 6507rule 6508(SyncLevel less than or equal). This change updates the code to match the 6509specification. 6510 6511Fixed a problem with the local version of the AcpiOsPurgeCache function. 6512The 6513(local) cache must be locked during all cache object deletions. Andrew 6514Baumann. 6515 6516Updated the Load operator to use operation region interfaces. This 6517replaces 6518direct memory mapping with region access calls. Now, all region accesses 6519go 6520through the installed region handler as they should. 6521 6522Simplified and optimized the NsGetNextNode function. Reduced parameter 6523count 6524and reduced code for this frequently used function. 6525 6526Example Code and Data Size: These are the sizes for the OS-independent 6527acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6528debug version of the code includes the debug output trace mechanism and 6529has a 6530much larger code and data size. 6531 6532 Previous Release: 6533 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 6534 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 6535 Current Release: 6536 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 6537 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 6538 65392) iASL Compiler/Disassembler and Tools: 6540 6541Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 6542problems 6543with sub-table disassembly and handling invalid sub-tables. Attempt 6544recovery 6545after an invalid sub-table ID. 6546 6547---------------------------------------- 654822 April 2009. Summary of changes for version 20090422: 6549 65501) ACPI CA Core Subsystem: 6551 6552Fixed a compatibility issue with the recently released I/O port 6553protection 6554mechanism. For windows compatibility, 1) On a port protection violation, 6555simply ignore the request and do not return an exception (allow the 6556control 6557method to continue execution.) 2) If only part of the request overlaps a 6558protected port, read/write the individual ports that are not protected. 6559Linux 6560BZ 13036. Lin Ming 6561 6562Enhanced the execution of the ASL/AML BreakPoint operator so that it 6563actually 6564breaks into the AML debugger if the debugger is present. This matches the 6565ACPI-defined behavior. 6566 6567Fixed several possible warnings related to the use of the configurable 6568ACPI_THREAD_ID. This type can now be configured as either an integer or a 6569pointer with no warnings. Also fixes several warnings in printf-like 6570statements for the 64-bit build when the type is configured as a pointer. 6571ACPICA BZ 766, 767. 6572 6573Fixed a number of possible warnings when compiling with gcc 4+ (depending 6574on 6575warning options.) Examples include printf formats, aliasing, unused 6576globals, 6577missing prototypes, missing switch default statements, use of non-ANSI 6578library functions, use of non-ANSI constructs. See generate/unix/Makefile 6579for 6580a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 6581 6582Example Code and Data Size: These are the sizes for the OS-independent 6583acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6584debug version of the code includes the debug output trace mechanism and 6585has a 6586much larger code and data size. 6587 6588 Previous Release: 6589 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 6590 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 6591 Current Release: 6592 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 6593 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 6594 65952) iASL Compiler/Disassembler and Tools: 6596 6597iASL: Fixed a generation warning from Bison 2.3 and fixed several 6598warnings 6599on 6600the 64-bit build. 6601 6602iASL: Fixed a problem where the Unix/Linux versions of the compiler could 6603not 6604correctly digest Windows/DOS formatted files (with CR/LF). 6605 6606iASL: Added a new option for "quiet mode" (-va) that produces only the 6607compilation summary, not individual errors and warnings. Useful for large 6608batch compilations. 6609 6610AcpiExec: Implemented a new option (-z) to enable a forced 6611semaphore/mutex 6612timeout that can be used to detect hang conditions during execution of 6613AML 6614code (includes both internal semaphores and AML-defined mutexes and 6615events.) 6616 6617Added new makefiles for the generation of acpica in a generic unix-like 6618environment. These makefiles are intended to generate the acpica tools 6619and 6620utilities from the original acpica git source tree structure. 6621 6622Test Suites: Updated and cleaned up the documentation files. Updated the 6623copyrights to 2009, affecting all source files. Use the new version of 6624iASL 6625with quiet mode. Increased the number of available semaphores in the 6626Windows 6627OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 6628added 6629an alternate implementation of the semaphore timeout to allow aslts to 6630execute fully on Cygwin. 6631 6632---------------------------------------- 663320 March 2009. Summary of changes for version 20090320: 6634 66351) ACPI CA Core Subsystem: 6636 6637Fixed a possible race condition between AcpiWalkNamespace and dynamic 6638table 6639unloads. Added a reader/writer locking mechanism to allow multiple 6640concurrent 6641namespace walks (readers), but block a dynamic table unload until it can 6642gain 6643exclusive write access to the namespace. This fixes a problem where a 6644table 6645unload could (possibly catastrophically) delete the portion of the 6646namespace 6647that is currently being examined by a walk. Adds a new file, utlock.c, 6648that 6649implements the reader/writer lock mechanism. ACPICA BZ 749. 6650 6651Fixed a regression introduced in version 20090220 where a change to the 6652FADT 6653handling could cause the ACPICA subsystem to access non-existent I/O 6654ports. 6655 6656Modified the handling of FADT register and table (FACS/DSDT) addresses. 6657The 6658FADT can contain both 32-bit and 64-bit versions of these addresses. 6659Previously, the 64-bit versions were favored, meaning that if both 32 and 666064 6661versions were valid, but not equal, the 64-bit version was used. This was 6662found to cause some machines to fail. Now, in this case, the 32-bit 6663version 6664is used instead. This now matches the Windows behavior. 6665 6666Implemented a new mechanism to protect certain I/O ports. Provides 6667Microsoft 6668compatibility and protects the standard PC I/O ports from access via AML 6669code. Adds a new file, hwvalid.c 6670 6671Fixed a possible extraneous warning message from the FADT support. The 6672message warns of a 32/64 length mismatch between the legacy and GAS 6673definitions for a register. 6674 6675Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 6676is 6677made obsolete by the port protection mechanism above. It was previously 6678used 6679to validate the entire address range of an operation region, which could 6680be 6681incorrect if the range included illegal ports, but fields within the 6682operation region did not actually access those ports. Validation is now 6683performed on a per-field basis instead of the entire region. 6684 6685Modified the handling of the PM1 Status Register ignored bit (bit 11.) 6686Ignored bits must be "preserved" according to the ACPI spec. Usually, 6687this 6688means a read/modify/write when writing to the register. However, for 6689status 6690registers, writing a one means clear the event. Writing a zero means 6691preserve 6692the event (do not clear.) This behavior is clarified in the ACPI 4.0 6693spec, 6694and the ACPICA code now simply always writes a zero to the ignored bit. 6695 6696Modified the handling of ignored bits for the PM1 A/B Control Registers. 6697As 6698per the ACPI specification, for the control registers, preserve 6699(read/modify/write) all bits that are defined as either reserved or 6700ignored. 6701 6702Updated the handling of write-only bits in the PM1 A/B Control Registers. 6703When reading the register, zero the write-only bits as per the ACPI spec. 6704ACPICA BZ 443. Lin Ming. 6705 6706Removed "Linux" from the list of supported _OSI strings. Linux no longer 6707wants to reply true to this request. The Windows strings are the only 6708paths 6709through the AML that are tested and known to work properly. 6710 6711 Previous Release: 6712 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 6713 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 6714 Current Release: 6715 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 6716 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 6717 67182) iASL Compiler/Disassembler and Tools: 6719 6720Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 6721and 6722aetables.c 6723 6724---------------------------------------- 672520 February 2009. Summary of changes for version 20090220: 6726 67271) ACPI CA Core Subsystem: 6728 6729Optimized the ACPI register locking. Removed locking for reads from the 6730ACPI 6731bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock 6732is 6733not required when reading the single-bit registers. The 6734AcpiGetRegisterUnlocked function is no longer needed and has been 6735removed. 6736This will improve performance for reads on these registers. ACPICA BZ 6737760. 6738 6739Fixed the parameter validation for AcpiRead/Write. Now return 6740AE_BAD_PARAMETER if the input register pointer is null, and 6741AE_BAD_ADDRESS 6742if 6743the register has an address of zero. Previously, these cases simply 6744returned 6745AE_OK. For optional registers such as PM1B status/enable/control, the 6746caller 6747should check for a valid register address before calling. ACPICA BZ 748. 6748 6749Renamed the external ACPI bit register access functions. Renamed 6750AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 6751functions. The new names are AcpiReadBitRegister and 6752AcpiWriteBitRegister. 6753Also, restructured the code for these functions by simplifying the code 6754path 6755and condensing duplicate code to reduce code size. 6756 6757Added new functions to transparently handle the possibly split PM1 A/B 6758registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two 6759functions 6760now handle the split registers for PM1 Status, Enable, and Control. 6761ACPICA 6762BZ 6763746. 6764 6765Added a function to handle the PM1 control registers, 6766AcpiHwWritePm1Control. 6767This function writes both of the PM1 control registers (A/B). These 6768registers 6769are different than the PM1 A/B status and enable registers in that 6770different 6771values can be written to the A/B registers. Most notably, the SLP_TYP 6772bits 6773can be different, as per the values returned from the _Sx predefined 6774methods. 6775 6776Removed an extra register write within AcpiHwClearAcpiStatus. This 6777function 6778was writing an optional PM1B status register twice. The existing call to 6779the 6780low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 6781A/B 6782register. ACPICA BZ 751. 6783 6784Split out the PM1 Status registers from the FADT. Added new globals for 6785these 6786registers (A/B), similar to the way the PM1 Enable registers are handled. 6787Instead of overloading the FADT Event Register blocks. This makes the 6788code 6789clearer and less prone to error. 6790 6791Fixed the warning message for when the platform contains too many ACPI 6792tables 6793for the default size of the global root table data structure. The 6794calculation 6795for the truncation value was incorrect. 6796 6797Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 6798obsolete macro, since it is now a simple reference to ->common.type. 6799There 6800were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 6801 6802Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 6803TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 6804simply SLEEP_TYPE. ACPICA BZ 754. 6805 6806Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 6807function is only needed on 64-bit host operating systems and is thus not 6808included for 32-bit hosts. 6809 6810Debug output: print the input and result for invocations of the _OSI 6811reserved 6812control method via the ACPI_LV_INFO debug level. Also, reduced some of 6813the 6814verbosity of this debug level. Len Brown. 6815 6816Example Code and Data Size: These are the sizes for the OS-independent 6817acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6818debug version of the code includes the debug output trace mechanism and 6819has a 6820much larger code and data size. 6821 6822 Previous Release: 6823 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 6824 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 6825 Current Release: 6826 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 6827 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 6828 68292) iASL Compiler/Disassembler and Tools: 6830 6831Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 6832various legal performance profiles. 6833 6834---------------------------------------- 683523 January 2009. Summary of changes for version 20090123: 6836 68371) ACPI CA Core Subsystem: 6838 6839Added the 2009 copyright to all module headers and signons. This affects 6840virtually every file in the ACPICA core subsystem, the iASL compiler, and 6841the tools/utilities. 6842 6843Implemented a change to allow the host to override any ACPI table, 6844including 6845dynamically loaded tables. Previously, only the DSDT could be replaced by 6846the 6847host. With this change, the AcpiOsTableOverride interface is called for 6848each 6849table found in the RSDT/XSDT during ACPICA initialization, and also 6850whenever 6851a table is dynamically loaded via the AML Load operator. 6852 6853Updated FADT flag definitions, especially the Boot Architecture flags. 6854 6855Debugger: For the Find command, automatically pad the input ACPI name 6856with 6857underscores if the name is shorter than 4 characters. This enables a 6858match 6859with the actual namespace entry which is itself padded with underscores. 6860 6861Example Code and Data Size: These are the sizes for the OS-independent 6862acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6863debug version of the code includes the debug output trace mechanism and 6864has a 6865much larger code and data size. 6866 6867 Previous Release: 6868 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 6869 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 6870 Current Release: 6871 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 6872 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 6873 68742) iASL Compiler/Disassembler and Tools: 6875 6876Fix build error under Bison-2.4. 6877 6878Dissasembler: Enhanced FADT support. Added decoding of the Boot 6879Architecture 6880flags. Now decode all flags, regardless of the FADT version. Flag output 6881includes the FADT version which first defined each flag. 6882 6883The iASL -g option now dumps the RSDT to a file (in addition to the FADT 6884and 6885DSDT). Windows only. 6886 6887---------------------------------------- 688804 December 2008. Summary of changes for version 20081204: 6889 68901) ACPI CA Core Subsystem: 6891 6892The ACPICA Programmer Reference has been completely updated and revamped 6893for 6894this release. This includes updates to the external interfaces, OSL 6895interfaces, the overview sections, and the debugger reference. 6896 6897Several new ACPICA interfaces have been implemented and documented in the 6898programmer reference: 6899AcpiReset - Writes the reset value to the FADT-defined reset register. 6900AcpiDisableAllGpes - Disable all available GPEs. 6901AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 6902AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 6903AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 6904AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 6905AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 6906 6907Most of the public ACPI hardware-related interfaces have been moved to a 6908new 6909file, components/hardware/hwxface.c 6910 6911Enhanced the FADT parsing and low-level ACPI register access: The ACPI 6912register lengths within the FADT are now used, and the low level ACPI 6913register access no longer hardcodes the ACPI register lengths. Given that 6914there may be some risk in actually trusting the FADT register lengths, a 6915run- 6916time option was added to fall back to the default hardcoded lengths if 6917the 6918FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 6919option is set to true for now, and a warning is issued if a suspicious 6920FADT 6921register length is overridden with the default value. 6922 6923Fixed a reference count issue in NsRepairObject. This problem was 6924introduced 6925in version 20081031 as part of a fix to repair Buffer objects within 6926Packages. Lin Ming. 6927 6928Added semaphore support to the Linux/Unix application OS-services layer 6929(OSL). ACPICA BZ 448. Lin Ming. 6930 6931Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 6932will 6933be implemented in the OSL, or will binary semaphores be used instead. 6934 6935Example Code and Data Size: These are the sizes for the OS-independent 6936acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6937debug version of the code includes the debug output trace mechanism and 6938has a 6939much larger code and data size. 6940 6941 Previous Release: 6942 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 6943 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 6944 Current Release: 6945 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 6946 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 6947 69482) iASL Compiler/Disassembler and Tools: 6949 6950iASL: Completed the '-e' option to include additional ACPI tables in 6951order 6952to 6953aid with disassembly and External statement generation. ACPICA BZ 742. 6954Lin 6955Ming. 6956 6957iASL: Removed the "named object in while loop" error. The compiler cannot 6958determine how many times a loop will execute. ACPICA BZ 730. 6959 6960Disassembler: Implemented support for FADT revision 2 (MS extension). 6961ACPICA 6962BZ 743. 6963 6964Disassembler: Updates for several ACPI data tables (HEST, EINJ, and 6965MCFG). 6966 6967---------------------------------------- 696831 October 2008. Summary of changes for version 20081031: 6969 69701) ACPI CA Core Subsystem: 6971 6972Restructured the ACPICA header files into public/private. acpi.h now 6973includes 6974only the "public" acpica headers. All other acpica headers are "private" 6975and 6976should not be included by acpica users. One new file, accommon.h is used 6977to 6978include the commonly used private headers for acpica code generation. 6979Future 6980plans include moving all private headers to a new subdirectory. 6981 6982Implemented an automatic Buffer->String return value conversion for 6983predefined ACPI methods. For these methods (such as _BIF), added 6984automatic 6985conversion for return objects that are required to be a String, but a 6986Buffer 6987was found instead. This can happen when reading string battery data from 6988an 6989operation region, because it used to be difficult to convert the data 6990from 6991buffer to string from within the ASL. Ensures that the host OS is 6992provided 6993with a valid null-terminated string. Linux BZ 11822. 6994 6995Updated the FACS waking vector interfaces. Split 6996AcpiSetFirmwareWakingVector 6997into two: one for the 32-bit vector, another for the 64-bit vector. This 6998is 6999required because the host OS must setup the wake much differently for 7000each 7001vector (real vs. protected mode, etc.) and the interface itself should 7002not 7003be 7004deciding which vector to use. Also, eliminated the 7005GetFirmwareWakingVector 7006interface, as it served no purpose (only the firmware reads the vector, 7007OS 7008only writes the vector.) ACPICA BZ 731. 7009 7010Implemented a mechanism to escape infinite AML While() loops. Added a 7011loop 7012counter to force exit from AML While loops if the count becomes too 7013large. 7014This can occur in poorly written AML when the hardware does not respond 7015within a while loop and the loop does not implement a timeout. The 7016maximum 7017loop count is configurable. A new exception code is returned when a loop 7018is 7019broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 7020 7021Optimized the execution of AML While loops. Previously, a control state 7022object was allocated and freed for each execution of the loop. The 7023optimization is to simply reuse the control state for each iteration. 7024This 7025speeds up the raw loop execution time by about 5%. 7026 7027Enhanced the implicit return mechanism. For Windows compatibility, return 7028an 7029implicit integer of value zero for methods that contain no executable 7030code. 7031Such methods are seen in the field as stubs (presumably), and can cause 7032drivers to fail if they expect a return value. Lin Ming. 7033 7034Allow multiple backslashes as root prefixes in namepaths. In a fully 7035qualified namepath, allow multiple backslash prefixes. This can happen 7036(and 7037is seen in the field) because of the use of a double-backslash in strings 7038(since backslash is the escape character) causing confusion. ACPICA BZ 7039739 7040Lin Ming. 7041 7042Emit a warning if two different FACS or DSDT tables are discovered in the 7043FADT. Checks if there are two valid but different addresses for the FACS 7044and 7045DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 7046 7047Consolidated the method argument count validation code. Merged the code 7048that 7049validates control method argument counts into the predefined validation 7050module. Eliminates possible multiple warnings for incorrect argument 7051counts. 7052 7053Implemented ACPICA example code. Includes code for ACPICA initialization, 7054handler installation, and calling a control method. Available at 7055source/tools/examples. 7056 7057Added a global pointer for FACS table to simplify internal FACS access. 7058Use 7059the global pointer instead of using AcpiGetTableByIndex for each FACS 7060access. 7061This simplifies the code for the Global Lock and the Firmware Waking 7062Vector(s). 7063 7064Example Code and Data Size: These are the sizes for the OS-independent 7065acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7066debug version of the code includes the debug output trace mechanism and 7067has a 7068much larger code and data size. 7069 7070 Previous Release: 7071 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 7072 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 7073 Current Release: 7074 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 7075 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 7076 70772) iASL Compiler/Disassembler and Tools: 7078 7079iASL: Improved disassembly of external method calls. Added the -e option 7080to 7081allow the inclusion of additional ACPI tables to help with the 7082disassembly 7083of 7084method invocations and the generation of external declarations during the 7085disassembly. Certain external method invocations cannot be disassembled 7086properly without the actual declaration of the method. Use the -e option 7087to 7088include the table where the external method(s) are actually declared. 7089Most 7090useful for disassembling SSDTs that make method calls back to the master 7091DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 7092-d 7093-e dsdt.aml ssdt1.aml 7094 7095iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 7096problem where the use of an alias within a namepath would result in a not 7097found error or cause the compiler to fault. Also now allows forward 7098references from the Alias operator itself. ACPICA BZ 738. 7099 7100---------------------------------------- 710126 September 2008. Summary of changes for version 20080926: 7102 71031) ACPI CA Core Subsystem: 7104 7105Designed and implemented a mechanism to validate predefined ACPI methods 7106and 7107objects. This code validates the predefined ACPI objects (objects whose 7108names 7109start with underscore) that appear in the namespace, at the time they are 7110evaluated. The argument count and the type of the returned object are 7111validated against the ACPI specification. The purpose of this validation 7112is 7113to detect problems with the BIOS-implemented predefined ACPI objects 7114before 7115the results are returned to the ACPI-related drivers. Future enhancements 7116may 7117include actual repair of incorrect return objects where possible. Two new 7118files are nspredef.c and acpredef.h. 7119 7120Fixed a fault in the AML parser if a memory allocation fails during the 7121Op 7122completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 7123 7124Fixed an issue with implicit return compatibility. This change improves 7125the 7126implicit return mechanism to be more compatible with the MS interpreter. 7127Lin 7128Ming, ACPICA BZ 349. 7129 7130Implemented support for zero-length buffer-to-string conversions. Allow 7131zero 7132length strings during interpreter buffer-to-string conversions. For 7133example, 7134during the ToDecimalString and ToHexString operators, as well as implicit 7135conversions. Fiodor Suietov, ACPICA BZ 585. 7136 7137Fixed two possible memory leaks in the error exit paths of 7138AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions 7139are 7140similar in that they use a stack of state objects in order to eliminate 7141recursion. The stack must be fully unwound and deallocated if an error 7142occurs. Lin Ming. ACPICA BZ 383. 7143 7144Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 7145global 7146ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 7147Moore ACPICA BZ 442. 7148 7149Removed the obsolete version number in module headers. Removed the 7150"$Revision" number that appeared in each module header. This version 7151number 7152was useful under SourceSafe and CVS, but has no meaning under git. It is 7153not 7154only incorrect, it could also be misleading. 7155 7156Example Code and Data Size: These are the sizes for the OS-independent 7157acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7158debug version of the code includes the debug output trace mechanism and 7159has a 7160much larger code and data size. 7161 7162 Previous Release: 7163 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 7164 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 7165 Current Release: 7166 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 7167 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 7168 7169---------------------------------------- 717029 August 2008. Summary of changes for version 20080829: 7171 71721) ACPI CA Core Subsystem: 7173 7174Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 7175Reference. Changes include the elimination of cheating on the Object 7176field 7177for the DdbHandle subtype, addition of a reference class field to 7178differentiate the various reference types (instead of an AML opcode), and 7179the 7180cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 7181 7182Reduce an error to a warning for an incorrect method argument count. 7183Previously aborted with an error if too few arguments were passed to a 7184control method via the external ACPICA interface. Now issue a warning 7185instead 7186and continue. Handles the case where the method inadvertently declares 7187too 7188many arguments, but does not actually use the extra ones. Applies mainly 7189to 7190the predefined methods. Lin Ming. Linux BZ 11032. 7191 7192Disallow the evaluation of named object types with no intrinsic value. 7193Return 7194AE_TYPE for objects that have no value and therefore evaluation is 7195undefined: 7196Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 7197of 7198these types were allowed, but an exception would be generated at some 7199point 7200during the evaluation. Now, the error is generated up front. 7201 7202Fixed a possible memory leak in the AcpiNsGetExternalPathname function 7203(nsnames.c). Fixes a leak in the error exit path. 7204 7205Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 7206debug 7207levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 7208ACPI_EXCEPTION 7209interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 7210ACPI_LV_EVENTS. 7211 7212Removed obsolete and/or unused exception codes from the acexcep.h header. 7213There is the possibility that certain device drivers may be affected if 7214they 7215use any of these exceptions. 7216 7217The ACPICA documentation has been added to the public git source tree, 7218under 7219acpica/documents. Included are the ACPICA programmer reference, the iASL 7220compiler reference, and the changes.txt release logfile. 7221 7222Example Code and Data Size: These are the sizes for the OS-independent 7223acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7224debug version of the code includes the debug output trace mechanism and 7225has a 7226much larger code and data size. 7227 7228 Previous Release: 7229 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 7230 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 7231 Current Release: 7232 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 7233 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 7234 72352) iASL Compiler/Disassembler and Tools: 7236 7237Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 7238defines _SCP with 3 arguments. Previous versions defined it with only 1 7239argument. iASL now allows both definitions. 7240 7241iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for 7242zero- 7243length subtables when disassembling ACPI tables. Also fixed a couple of 7244errors where a full 16-bit table type field was not extracted from the 7245input 7246properly. 7247 7248acpisrc: Improve comment counting mechanism for generating source code 7249statistics. Count first and last lines of multi-line comments as 7250whitespace, 7251not comment lines. Handle Linux legal header in addition to standard 7252acpica 7253header. 7254 7255---------------------------------------- 7256 725729 July 2008. Summary of changes for version 20080729: 7258 72591) ACPI CA Core Subsystem: 7260 7261Fix a possible deadlock in the GPE dispatch. Remove call to 7262AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 7263attempt 7264to acquire the GPE lock but can deadlock since the GPE lock is already 7265held 7266at dispatch time. This code was introduced in version 20060831 as a 7267response 7268to Linux BZ 6881 and has since been removed from Linux. 7269 7270Add a function to dereference returned reference objects. Examines the 7271return 7272object from a call to AcpiEvaluateObject. Any Index or RefOf references 7273are 7274automatically dereferenced in an attempt to return something useful 7275(these 7276reference types cannot be converted into an external ACPI_OBJECT.) 7277Provides 7278MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 7279 7280x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 7281subtables for the MADT and one new subtable for the SRAT. Includes 7282disassembler and AcpiSrc support. Data from the Intel 64 Architecture 7283x2APIC 7284Specification, June 2008. 7285 7286Additional error checking for pathname utilities. Add error check after 7287all 7288calls to AcpiNsGetPathnameLength. Add status return from 7289AcpiNsBuildExternalPath and check after all calls. Add parameter 7290validation 7291to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 7292 7293Return status from the global init function AcpiUtGlobalInitialize. This 7294is 7295used by both the kernel subsystem and the utilities such as iASL 7296compiler. 7297The function could possibly fail when the caches are initialized. Yang 7298Yi. 7299 7300Add a function to decode reference object types to strings. Created for 7301improved error messages. 7302 7303Improve object conversion error messages. Better error messages during 7304object 7305conversion from internal to the external ACPI_OBJECT. Used for external 7306calls 7307to AcpiEvaluateObject. 7308 7309Example Code and Data Size: These are the sizes for the OS-independent 7310acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7311debug version of the code includes the debug output trace mechanism and 7312has a 7313much larger code and data size. 7314 7315 Previous Release: 7316 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 7317 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 7318 Current Release: 7319 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 7320 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 7321 73222) iASL Compiler/Disassembler and Tools: 7323 7324Debugger: fix a possible hang when evaluating non-methods. Fixes a 7325problem 7326introduced in version 20080701. If the object being evaluated (via 7327execute 7328command) is not a method, the debugger can hang while trying to obtain 7329non- 7330existent parameters. 7331 7332iASL: relax error for using reserved "_T_x" identifiers. These names can 7333appear in a disassembled ASL file if they were emitted by the original 7334compiler. Instead of issuing an error or warning and forcing the user to 7335manually change these names, issue a remark instead. 7336 7337iASL: error if named object created in while loop. Emit an error if any 7338named 7339object is created within a While loop. If allowed, this code will 7340generate 7341a 7342run-time error on the second iteration of the loop when an attempt is 7343made 7344to 7345create the same named object twice. ACPICA bugzilla 730. 7346 7347iASL: Support absolute pathnames for include files. Add support for 7348absolute 7349pathnames within the Include operator. previously, only relative 7350pathnames 7351were supported. 7352 7353iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 7354Descriptor. 7355The ACPI spec requires one interrupt minimum. BZ 423 7356 7357iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 7358Handles the case for the Interrupt Resource Descriptor where 7359the ResourceSource argument is omitted but ResourceSourceIndex 7360is present. Now leave room for the Index. BZ 426 7361 7362iASL: Prevent error message if CondRefOf target does not exist. Fixes 7363cases 7364where an error message is emitted if the target does not exist. BZ 516 7365 7366iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 7367(get ACPI tables on Windows). This was apparently broken in version 736820070919. 7369 7370AcpiXtract: Handle EOF while extracting data. Correctly handle the case 7371where 7372the EOF happens immediately after the last table in the input file. Print 7373completion message. Previously, no message was displayed in this case. 7374 7375---------------------------------------- 737601 July 2008. Summary of changes for version 20080701: 7377 73780) Git source tree / acpica.org 7379 7380Fixed a problem where a git-clone from http would not transfer the entire 7381source tree. 7382 73831) ACPI CA Core Subsystem: 7384 7385Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 7386enable bit. Now performs a read-change-write of the enable register 7387instead 7388of simply writing out the cached enable mask. This will prevent 7389inadvertent 7390enabling of GPEs if a rogue GPE is received during initialization (before 7391GPE 7392handlers are installed.) 7393 7394Implemented a copy for dynamically loaded tables. Previously, dynamically 7395loaded tables were simply mapped - but on some machines this memory is 7396corrupted after suspend. Now copy the table to a local buffer. For the 7397OpRegion case, added checksum verify. Use the table length from the table 7398header, not the region length. For the Buffer case, use the table length 7399also. Dennis Noordsij, Bob Moore. BZ 10734 7400 7401Fixed a problem where the same ACPI table could not be dynamically loaded 7402and 7403unloaded more than once. Without this change, a table cannot be loaded 7404again 7405once it has been loaded/unloaded one time. The current mechanism does not 7406unregister a table upon an unload. During a load, if the same table is 7407found, 7408this no longer returns an exception. BZ 722 7409 7410Fixed a problem where the wrong descriptor length was calculated for the 7411EndTag descriptor in 64-bit mode. The "minimal" descriptors such as 7412EndTag 7413are calculated as 12 bytes long, but the actual length in the internal 7414descriptor is 16 because of the round-up to 8 on the 64-bit build. 7415Reported 7416by Linn Crosetto. BZ 728 7417 7418Fixed a possible memory leak in the Unload operator. The DdbHandle 7419returned 7420by Load() did not have its reference count decremented during unload, 7421leading 7422to a memory leak. Lin Ming. BZ 727 7423 7424Fixed a possible memory leak when deleting thermal/processor objects. Any 7425associated notify handlers (and objects) were not being deleted. Fiodor 7426Suietov. BZ 506 7427 7428Fixed the ordering of the ASCII names in the global mutex table to match 7429the 7430actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 7431only. 7432Vegard Nossum. BZ 726 7433 7434Enhanced the AcpiGetObjectInfo interface to return the number of required 7435arguments if the object is a control method. Added this call to the 7436debugger 7437so the proper number of default arguments are passed to a method. This 7438prevents a warning when executing methods from AcpiExec. 7439 7440Added a check for an invalid handle in AcpiGetObjectInfo. Return 7441AE_BAD_PARAMETER if input handle is invalid. BZ 474 7442 7443Fixed an extraneous warning from exconfig.c on the 64-bit build. 7444 7445Example Code and Data Size: These are the sizes for the OS-independent 7446acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7447debug version of the code includes the debug output trace mechanism and 7448has a 7449much larger code and data size. 7450 7451 Previous Release: 7452 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 7453 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 7454 Current Release: 7455 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 7456 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 7457 74582) iASL Compiler/Disassembler and Tools: 7459 7460iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 7461resource descriptor names. 7462 7463iASL: Detect invalid ASCII characters in input (windows version). Removed 7464the 7465"-CF" flag from the flex compile, enables correct detection of non-ASCII 7466characters in the input. BZ 441 7467 7468iASL: Eliminate warning when result of LoadTable is not used. Eliminate 7469the 7470"result of operation not used" warning when the DDB handle returned from 7471LoadTable is not used. The warning is not needed. BZ 590 7472 7473AcpiExec: Add support for dynamic table load/unload. Now calls _CFG 7474method 7475to 7476pass address of table to the AML. Added option to disable OpRegion 7477simulation 7478to allow creation of an OpRegion with a real address that was passed to 7479_CFG. 7480All of this allows testing of the Load and Unload operators from 7481AcpiExec. 7482 7483Debugger: update tables command for unloaded tables. Handle unloaded 7484tables 7485and use the standard table header output routine. 7486 7487---------------------------------------- 748809 June 2008. Summary of changes for version 20080609: 7489 74901) ACPI CA Core Subsystem: 7491 7492Implemented a workaround for reversed _PRT entries. A significant number 7493of 7494BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 7495change dynamically detects and repairs this problem. Provides 7496compatibility 7497with MS ACPI. BZ 6859 7498 7499Simplified the internal ACPI hardware interfaces to eliminate the locking 7500flag parameter from Register Read/Write. Added a new external interface, 7501AcpiGetRegisterUnlocked. 7502 7503Fixed a problem where the invocation of a GPE control method could hang. 7504This 7505was a regression introduced in 20080514. The new method argument count 7506validation mechanism can enter an infinite loop when a GPE method is 7507dispatched. Problem fixed by removing the obsolete code that passed GPE 7508block 7509information to the notify handler via the control method parameter 7510pointer. 7511 7512Fixed a problem where the _SST execution status was incorrectly returned 7513to 7514the caller of AcpiEnterSleepStatePrep. This was a regression introduced 7515in 751620080514. _SST is optional and a NOT_FOUND exception should never be 7517returned. BZ 716 7518 7519Fixed a problem where a deleted object could be accessed from within the 7520AML 7521parser. This was a regression introduced in version 20080123 as a fix for 7522the 7523Unload operator. Lin Ming. BZ 10669 7524 7525Cleaned up the debug operand dump mechanism. Eliminated unnecessary 7526operands 7527and eliminated the use of a negative index in a loop. Operands are now 7528displayed in the correct order, not backwards. This also fixes a 7529regression 7530introduced in 20080514 on 64-bit systems where the elimination of 7531ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 7532715 7533 7534Fixed a possible memory leak in EvPciConfigRegionSetup where the error 7535exit 7536path did not delete a locally allocated structure. 7537 7538Updated definitions for the DMAR and SRAT tables to synchronize with the 7539current specifications. Includes disassembler support. 7540 7541Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 7542loop termination value was used. Loop terminated on iteration early, 7543missing 7544one mutex. Linn Crosetto 7545 7546Example Code and Data Size: These are the sizes for the OS-independent 7547acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7548debug version of the code includes the debug output trace mechanism and 7549has a 7550much larger code and data size. 7551 7552 Previous Release: 7553 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 7554 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 7555 Current Release: 7556 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 7557 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 7558 75592) iASL Compiler/Disassembler and Tools: 7560 7561Disassembler: Implemented support for EisaId() within _CID objects. Now 7562disassemble integer _CID objects back to EisaId invocations, including 7563multiple integers within _CID packages. Includes single-step support for 7564debugger also. 7565 7566Disassembler: Added support for DMAR and SRAT table definition changes. 7567 7568---------------------------------------- 756914 May 2008. Summary of changes for version 20080514: 7570 75711) ACPI CA Core Subsystem: 7572 7573Fixed a problem where GPEs were enabled too early during the ACPICA 7574initialization. This could lead to "handler not installed" errors on some 7575machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 7576This 7577ensures that all operation regions and devices throughout the namespace 7578have 7579been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 7580 7581Implemented a change to the enter sleep code. Moved execution of the _GTS 7582method to just before setting sleep enable bit. The execution was moved 7583from 7584AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 7585immediately before the SLP_EN bit is set, as per the ACPI specification. 7586Luming Yu, BZ 1653. 7587 7588Implemented a fix to disable unknown GPEs (2nd version). Now always 7589disable 7590the GPE, even if ACPICA thinks that that it is already disabled. It is 7591possible that the AML or some other code has enabled the GPE unbeknownst 7592to 7593the ACPICA code. 7594 7595Fixed a problem with the Field operator where zero-length fields would 7596return 7597an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 7598ASL 7599field declarations in Field(), BankField(), and IndexField(). BZ 10606. 7600 7601Implemented a fix for the Load operator, now load the table at the 7602namespace 7603root. This reverts a change introduced in version 20071019. The table is 7604now 7605loaded at the namespace root even though this goes against the ACPI 7606specification. This provides compatibility with other ACPI 7607implementations. 7608The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 7609Ming. 7610 7611Fixed a problem where ACPICA would not Load() tables with unusual 7612signatures. 7613Now ignore ACPI table signature for Load() operator. Only "SSDT" is 7614acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 7615Therefore, signature validation is worthless. Apparently MS ACPI accepts 7616such 7617signatures, ACPICA must be compatible. BZ 10454. 7618 7619Fixed a possible negative array index in AcpiUtValidateException. Added 7620NULL 7621fields to the exception string arrays to eliminate a -1 subtraction on 7622the 7623SubStatus field. 7624 7625Updated the debug tracking macros to reduce overall code and data size. 7626Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 7627instead of pointers to static strings. Jan Beulich and Bob Moore. 7628 7629Implemented argument count checking in control method invocation via 7630AcpiEvaluateObject. Now emit an error if too few arguments, warning if 7631too 7632many. This applies only to extern programmatic control method execution, 7633not 7634method-to-method calls within the AML. Lin Ming. 7635 7636Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 7637no 7638longer needed, especially with the removal of 16-bit support. It was 7639replaced 7640mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 7641bit 7642on 764332/64-bit platforms is required. 7644 7645Added the C const qualifier for appropriate string constants -- mostly 7646MODULE_NAME and printf format strings. Jan Beulich. 7647 7648Example Code and Data Size: These are the sizes for the OS-independent 7649acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7650debug version of the code includes the debug output trace mechanism and 7651has a 7652much larger code and data size. 7653 7654 Previous Release: 7655 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 7656 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 7657 Current Release: 7658 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 7659 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 7660 76612) iASL Compiler/Disassembler and Tools: 7662 7663Implemented ACPI table revision ID validation in the disassembler. Zero 7664is 7665always invalid. For DSDTs, the ID controls the interpreter integer width. 76661 7667means 32-bit and this is unusual. 2 or greater is 64-bit. 7668 7669---------------------------------------- 767021 March 2008. Summary of changes for version 20080321: 7671 76721) ACPI CA Core Subsystem: 7673 7674Implemented an additional change to the GPE support in order to suppress 7675spurious or stray GPEs. The AcpiEvDisableGpe function will now 7676permanently 7677disable incoming GPEs that are neither enabled nor disabled -- meaning 7678that 7679the GPE is unknown to the system. This should prevent future interrupt 7680floods 7681from that GPE. BZ 6217 (Zhang Rui) 7682 7683Fixed a problem where NULL package elements were not returned to the 7684AcpiEvaluateObject interface correctly. The element was simply ignored 7685instead of returning a NULL ACPI_OBJECT package element, potentially 7686causing 7687a buffer overflow and/or confusing the caller who expected a fixed number 7688of 7689elements. BZ 10132 (Lin Ming, Bob Moore) 7690 7691Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 7692Dword, 7693Qword), Field, BankField, and IndexField operators when invoked from 7694inside 7695an executing control method. In this case, these operators created 7696namespace 7697nodes that were incorrectly left marked as permanent nodes instead of 7698temporary nodes. This could cause a problem if there is race condition 7699between an exiting control method and a running namespace walk. (Reported 7700by 7701Linn Crosetto) 7702 7703Fixed a problem where the CreateField and CreateXXXField operators would 7704incorrectly allow duplicate names (the name of the field) with no 7705exception 7706generated. 7707 7708Implemented several changes for Notify handling. Added support for new 7709Notify 7710values (ACPI 2.0+) and improved the Notify debug output. Notify on 7711PowerResource objects is no longer allowed, as per the ACPI 7712specification. 7713(Bob Moore, Zhang Rui) 7714 7715All Reference Objects returned via the AcpiEvaluateObject interface are 7716now 7717marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 7718for 7719NULL objects - either NULL package elements or unresolved named 7720references. 7721 7722Fixed a problem where an extraneous debug message was produced for 7723package 7724objects (when debugging enabled). The message "Package List length larger 7725than NumElements count" is now produced in the correct case, and is now 7726an 7727error message rather than a debug message. Added a debug message for the 7728opposite case, where NumElements is larger than the Package List (the 7729package 7730will be padded out with NULL elements as per the ACPI spec.) 7731 7732Implemented several improvements for the output of the ASL "Debug" object 7733to 7734clarify and keep all data for a given object on one output line. 7735 7736Fixed two size calculation issues with the variable-length Start 7737Dependent 7738resource descriptor. 7739 7740Example Code and Data Size: These are the sizes for the OS-independent 7741acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7742debug version of the code includes the debug output trace mechanism and 7743has 7744a much larger code and data size. 7745 7746 Previous Release: 7747 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 7748 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 7749 Current Release: 7750 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 7751 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 7752 77532) iASL Compiler/Disassembler and Tools: 7754 7755Fixed a problem with the use of the Switch operator where execution of 7756the 7757containing method by multiple concurrent threads could cause an 7758AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 7759actual Switch opcode, it must be simulated with local named temporary 7760variables and if/else pairs. The solution chosen was to mark any method 7761that 7762uses Switch as Serialized, thus preventing multiple thread entries. BZ 7763469. 7764 7765---------------------------------------- 776613 February 2008. Summary of changes for version 20080213: 7767 77681) ACPI CA Core Subsystem: 7769 7770Implemented another MS compatibility design change for GPE/Notify 7771handling. 7772GPEs are now cleared/enabled asynchronously to allow all pending notifies 7773to 7774complete first. It is expected that the OSL will queue the enable request 7775behind all pending notify requests (may require changes to the local host 7776OSL 7777in AcpiOsExecute). Alexey Starikovskiy. 7778 7779Fixed a problem where buffer and package objects passed as arguments to a 7780control method via the external AcpiEvaluateObject interface could cause 7781an 7782AE_AML_INTERNAL exception depending on the order and type of operators 7783executed by the target control method. 7784 7785Fixed a problem where resource descriptor size optimization could cause a 7786problem when a _CRS resource template is passed to a _SRS method. The 7787_SRS 7788resource template must use the same descriptors (with the same size) as 7789returned from _CRS. This change affects the following resource 7790descriptors: 7791IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 77929487) 7793 7794Fixed a problem where a CopyObject to RegionField, BankField, and 7795IndexField 7796objects did not perform an implicit conversion as it should. These types 7797must 7798retain their initial type permanently as per the ACPI specification. 7799However, 7800a CopyObject to all other object types should not perform an implicit 7801conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 7802 7803Fixed a problem with the AcpiGetDevices interface where the mechanism to 7804match device CIDs did not examine the entire list of available CIDs, but 7805instead aborted on the first non-matching CID. Andrew Patterson. 7806 7807Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 7808was 7809inadvertently changed to return a 16-bit value instead of a 32-bit value, 7810truncating the upper dword of a 64-bit value. This macro is only used to 7811display debug output, so no incorrect calculations were made. Also, 7812reimplemented the macro so that a 64-bit shift is not performed by 7813inefficient compilers. 7814 7815Added missing va_end statements that should correspond with each va_start 7816statement. 7817 7818Example Code and Data Size: These are the sizes for the OS-independent 7819acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7820debug version of the code includes the debug output trace mechanism and 7821has 7822a much larger code and data size. 7823 7824 Previous Release: 7825 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 7826 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 7827 Current Release: 7828 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 7829 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 7830 78312) iASL Compiler/Disassembler and Tools: 7832 7833Implemented full disassembler support for the following new ACPI tables: 7834BERT, EINJ, and ERST. Implemented partial disassembler support for the 7835complicated HEST table. These tables support the Windows Hardware Error 7836Architecture (WHEA). 7837 7838---------------------------------------- 783923 January 2008. Summary of changes for version 20080123: 7840 78411) ACPI CA Core Subsystem: 7842 7843Added the 2008 copyright to all module headers and signons. This affects 7844virtually every file in the ACPICA core subsystem, the iASL compiler, and 7845the tools/utilities. 7846 7847Fixed a problem with the SizeOf operator when used with Package and 7848Buffer 7849objects. These objects have deferred execution for some arguments, and 7850the 7851execution is now completed before the SizeOf is executed. This problem 7852caused 7853unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 7854BZ 78559558 7856 7857Implemented an enhancement to the interpreter "slack mode". In the 7858absence 7859of 7860an explicit return or an implicitly returned object from the last 7861executed 7862opcode, a control method will now implicitly return an integer of value 0 7863for 7864Microsoft compatibility. (Lin Ming) BZ 392 7865 7866Fixed a problem with the Load operator where an exception was not 7867returned 7868in 7869the case where the table is already loaded. (Lin Ming) BZ 463 7870 7871Implemented support for the use of DDBHandles as an Indexed Reference, as 7872per 7873the ACPI spec. (Lin Ming) BZ 486 7874 7875Implemented support for UserTerm (Method invocation) for the Unload 7876operator 7877as per the ACPI spec. (Lin Ming) BZ 580 7878 7879Fixed a problem with the LoadTable operator where the OemId and 7880OemTableId 7881input strings could cause unexpected failures if they were shorter than 7882the 7883maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 7884 7885Implemented support for UserTerm (Method invocation) for the Unload 7886operator 7887as per the ACPI spec. (Lin Ming) BZ 580 7888 7889Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 7890HEST, 7891IBFT, UEFI, WDAT. Disassembler support is forthcoming. 7892 7893Example Code and Data Size: These are the sizes for the OS-independent 7894acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7895debug version of the code includes the debug output trace mechanism and 7896has 7897a much larger code and data size. 7898 7899 Previous Release: 7900 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 7901 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 7902 Current Release: 7903 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 7904 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 7905 79062) iASL Compiler/Disassembler and Tools: 7907 7908Implemented support in the disassembler for checksum validation on 7909incoming 7910binary DSDTs and SSDTs. If incorrect, a message is displayed within the 7911table 7912header dump at the start of the disassembly. 7913 7914Implemented additional debugging information in the namespace listing 7915file 7916created during compilation. In addition to the namespace hierarchy, the 7917full 7918pathname to each namespace object is displayed. 7919 7920Fixed a problem with the disassembler where invalid ACPI tables could 7921cause 7922faults or infinite loops. 7923 7924Fixed an unexpected parse error when using the optional "parameter types" 7925list in a control method declaration. (Lin Ming) BZ 397 7926 7927Fixed a problem where two External declarations with the same name did 7928not 7929cause an error (Lin Ming) BZ 509 7930 7931Implemented support for full TermArgs (adding Argx, Localx and method 7932invocation) for the ParameterData parameter to the LoadTable operator. 7933(Lin 7934Ming) BZ 583,587 7935 7936---------------------------------------- 793719 December 2007. Summary of changes for version 20071219: 7938 79391) ACPI CA Core Subsystem: 7940 7941Implemented full support for deferred execution for the TermArg string 7942arguments for DataTableRegion. This enables forward references and full 7943operand resolution for the three string arguments. Similar to 7944OperationRegion 7945deferred argument execution.) Lin Ming. BZ 430 7946 7947Implemented full argument resolution support for the BankValue argument 7948to 7949BankField. Previously, only constants were supported, now any TermArg may 7950be 7951used. Lin Ming BZ 387, 393 7952 7953Fixed a problem with AcpiGetDevices where the search of a branch of the 7954device tree could be terminated prematurely. In accordance with the ACPI 7955specification, the search down the current branch is terminated if a 7956device 7957is both not present and not functional (instead of just not present.) 7958Yakui 7959Zhao. 7960 7961Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 7962if 7963the underlying AML code changed the GPE enable registers. Now, any 7964unknown 7965incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 7966disabled 7967instead of simply ignored. Rui Zhang. 7968 7969Fixed a problem with Index Fields where the Index register was 7970incorrectly 7971limited to a maximum of 32 bits. Now any size may be used. 7972 7973Fixed a couple memory leaks associated with "implicit return" objects 7974when 7975the AML Interpreter slack mode is enabled. Lin Ming BZ 349 7976 7977Example Code and Data Size: These are the sizes for the OS-independent 7978acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7979debug version of the code includes the debug output trace mechanism and 7980has 7981a much larger code and data size. 7982 7983 Previous Release: 7984 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 7985 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 7986 Current Release: 7987 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 7988 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 7989 7990---------------------------------------- 799114 November 2007. Summary of changes for version 20071114: 7992 79931) ACPI CA Core Subsystem: 7994 7995Implemented event counters for each of the Fixed Events, the ACPI SCI 7996(interrupt) itself, and control methods executed. Named 7997AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 7998These 7999should be useful for debugging and statistics. 8000 8001Implemented a new external interface, AcpiGetStatistics, to retrieve the 8002contents of the various event counters. Returns the current values for 8003AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 8004AcpiMethodCount. The interface can be expanded in the future if new 8005counters 8006are added. Device drivers should use this interface rather than access 8007the 8008counters directly. 8009 8010Fixed a problem with the FromBCD and ToBCD operators. With some 8011compilers, 8012the ShortDivide function worked incorrectly, causing problems with the 8013BCD 8014functions with large input values. A truncation from 64-bit to 32-bit 8015inadvertently occurred. Internal BZ 435. Lin Ming 8016 8017Fixed a problem with Index references passed as method arguments. 8018References 8019passed as arguments to control methods were dereferenced immediately 8020(before 8021control was passed to the called method). The references are now 8022correctly 8023passed directly to the called method. BZ 5389. Lin Ming 8024 8025Fixed a problem with CopyObject used in conjunction with the Index 8026operator. 8027The reference was incorrectly dereferenced before the copy. The reference 8028is 8029now correctly copied. BZ 5391. Lin Ming 8030 8031Fixed a problem with Control Method references within Package objects. 8032These 8033references are now correctly generated. This completes the package 8034construction overhaul that began in version 20071019. 8035 8036Example Code and Data Size: These are the sizes for the OS-independent 8037acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8038debug version of the code includes the debug output trace mechanism and 8039has 8040a much larger code and data size. 8041 8042 Previous Release: 8043 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 8044 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 8045 Current Release: 8046 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 8047 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 8048 8049 80502) iASL Compiler/Disassembler and Tools: 8051 8052The AcpiExec utility now installs handlers for all of the predefined 8053Operation Region types. New types supported are: PCI_Config, CMOS, and 8054PCIBARTarget. 8055 8056Fixed a problem with the 64-bit version of AcpiExec where the extended 8057(64- 8058bit) address fields for the DSDT and FACS within the FADT were not being 8059used, causing truncation of the upper 32-bits of these addresses. Lin 8060Ming 8061and Bob Moore 8062 8063---------------------------------------- 806419 October 2007. Summary of changes for version 20071019: 8065 80661) ACPI CA Core Subsystem: 8067 8068Fixed a problem with the Alias operator when the target of the alias is a 8069named ASL operator that opens a new scope -- Scope, Device, 8070PowerResource, 8071Processor, and ThermalZone. In these cases, any children of the original 8072operator could not be accessed via the alias, potentially causing 8073unexpected 8074AE_NOT_FOUND exceptions. (BZ 9067) 8075 8076Fixed a problem with the Package operator where all named references were 8077created as object references and left otherwise unresolved. According to 8078the 8079ACPI specification, a Package can only contain Data Objects or references 8080to 8081control methods. The implication is that named references to Data Objects 8082(Integer, Buffer, String, Package, BufferField, Field) should be resolved 8083immediately upon package creation. This is the approach taken with this 8084change. References to all other named objects (Methods, Devices, Scopes, 8085etc.) are all now properly created as reference objects. (BZ 5328) 8086 8087Reverted a change to Notify handling that was introduced in version 808820070508. This version changed the Notify handling from asynchronous to 8089fully synchronous (Device driver Notify handling with respect to the 8090Notify 8091ASL operator). It was found that this change caused more problems than it 8092solved and was removed by most users. 8093 8094Fixed a problem with the Increment and Decrement operators where the type 8095of 8096the target object could be unexpectedly and incorrectly changed. (BZ 353) 8097Lin Ming. 8098 8099Fixed a problem with the Load and LoadTable operators where the table 8100location within the namespace was ignored. Instead, the table was always 8101loaded into the root or current scope. Lin Ming. 8102 8103Fixed a problem with the Load operator when loading a table from a buffer 8104object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 8105 8106Fixed a problem with the Debug object where a store of a DdbHandle 8107reference 8108object to the Debug object could cause a fault. 8109 8110Added a table checksum verification for the Load operator, in the case 8111where 8112the load is from a buffer. (BZ 578). 8113 8114Implemented additional parameter validation for the LoadTable operator. 8115The 8116length of the input strings SignatureString, OemIdString, and OemTableId 8117are 8118now checked for maximum lengths. (BZ 582) Lin Ming. 8119 8120Example Code and Data Size: These are the sizes for the OS-independent 8121acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8122debug version of the code includes the debug output trace mechanism and 8123has 8124a much larger code and data size. 8125 8126 Previous Release: 8127 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 8128 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 8129 Current Release: 8130 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 8131 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 8132 8133 81342) iASL Compiler/Disassembler: 8135 8136Fixed a problem where if a single file was specified and the file did not 8137exist, no error message was emitted. (Introduced with wildcard support in 8138version 20070917.) 8139 8140---------------------------------------- 814119 September 2007. Summary of changes for version 20070919: 8142 81431) ACPI CA Core Subsystem: 8144 8145Designed and implemented new external interfaces to install and remove 8146handlers for ACPI table-related events. Current events that are defined 8147are 8148LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 8149they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 8150AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 8151 8152Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 8153(acpi_serialized option on Linux) could cause some systems to hang during 8154initialization. (Bob Moore) BZ 8171 8155 8156Fixed a problem where objects of certain types (Device, ThermalZone, 8157Processor, PowerResource) can be not found if they are declared and 8158referenced from within the same control method (Lin Ming) BZ 341 8159 8160Example Code and Data Size: These are the sizes for the OS-independent 8161acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8162debug version of the code includes the debug output trace mechanism and 8163has 8164a much larger code and data size. 8165 8166 Previous Release: 8167 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 8168 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 8169 Current Release: 8170 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 8171 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 8172 8173 81742) iASL Compiler/Disassembler: 8175 8176Implemented support to allow multiple files to be compiled/disassembled 8177in 8178a 8179single invocation. This includes command line wildcard support for both 8180the 8181Windows and Unix versions of the compiler. This feature simplifies the 8182disassembly and compilation of multiple ACPI tables in a single 8183directory. 8184 8185---------------------------------------- 818608 May 2007. Summary of changes for version 20070508: 8187 81881) ACPI CA Core Subsystem: 8189 8190Implemented a Microsoft compatibility design change for the handling of 8191the 8192Notify AML operator. Previously, notify handlers were dispatched and 8193executed completely asynchronously in a deferred thread. The new design 8194still executes the notify handlers in a different thread, but the 8195original 8196thread that executed the Notify() now waits at a synchronization point 8197for 8198the notify handler to complete. Some machines depend on a synchronous 8199Notify 8200operator in order to operate correctly. 8201 8202Implemented support to allow Package objects to be passed as method 8203arguments to the external AcpiEvaluateObject interface. Previously, this 8204would return the AE_NOT_IMPLEMENTED exception. This feature had not been 8205implemented since there were no reserved control methods that required it 8206until recently. 8207 8208Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 8209that 8210contained invalid non-zero values in reserved fields could cause later 8211failures because these fields have meaning in later revisions of the 8212FADT. 8213For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 8214fields 8215are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 8216 8217Fixed a problem where the Global Lock handle was not properly updated if 8218a 8219thread that acquired the Global Lock via executing AML code then 8220attempted 8221to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 8222Joe 8223Liu. 8224 8225Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 8226could be corrupted if the interrupt being removed was at the head of the 8227list. Reported by Linn Crosetto. 8228 8229Example Code and Data Size: These are the sizes for the OS-independent 8230acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8231debug version of the code includes the debug output trace mechanism and 8232has 8233a much larger code and data size. 8234 8235 Previous Release: 8236 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8237 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 8238 Current Release: 8239 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 8240 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 8241 8242---------------------------------------- 824320 March 2007. Summary of changes for version 20070320: 8244 82451) ACPI CA Core Subsystem: 8246 8247Implemented a change to the order of interpretation and evaluation of AML 8248operand objects within the AML interpreter. The interpreter now evaluates 8249operands in the order that they appear in the AML stream (and the 8250corresponding ASL code), instead of in the reverse order (after the 8251entire 8252operand list has been parsed). The previous behavior caused several 8253subtle 8254incompatibilities with the Microsoft AML interpreter as well as being 8255somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 8256 8257Implemented a change to the ACPI Global Lock support. All interfaces to 8258the 8259global lock now allow the same thread to acquire the lock multiple times. 8260This affects the AcpiAcquireGlobalLock external interface to the global 8261lock 8262as well as the internal use of the global lock to support AML fields -- a 8263control method that is holding the global lock can now simultaneously 8264access 8265AML fields that require global lock protection. Previously, in both 8266cases, 8267this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 8268to 8269AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 8270Controller. There is no change to the behavior of the AML Acquire 8271operator, 8272as this can already be used to acquire a mutex multiple times by the same 8273thread. BZ 8066. With assistance from Alexey Starikovskiy. 8274 8275Fixed a problem where invalid objects could be referenced in the AML 8276Interpreter after error conditions. During operand evaluation, ensure 8277that 8278the internal "Return Object" field is cleared on error and only valid 8279pointers are stored there. Caused occasional access to deleted objects 8280that 8281resulted in "large reference count" warning messages. Valery Podrezov. 8282 8283Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 8284on 8285deeply nested control method invocations. BZ 7873, local BZ 487. Valery 8286Podrezov. 8287 8288Fixed an internal problem with the handling of result objects on the 8289interpreter result stack. BZ 7872. Valery Podrezov. 8290 8291Removed obsolete code that handled the case where AML_NAME_OP is the 8292target 8293of a reference (Reference.Opcode). This code was no longer necessary. BZ 82947874. Valery Podrezov. 8295 8296Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This 8297was 8298a 8299remnant from the previously discontinued 16-bit support. 8300 8301Example Code and Data Size: These are the sizes for the OS-independent 8302acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8303debug version of the code includes the debug output trace mechanism and 8304has 8305a much larger code and data size. 8306 8307 Previous Release: 8308 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8309 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 8310 Current Release: 8311 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8312 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 8313 8314---------------------------------------- 831526 January 2007. Summary of changes for version 20070126: 8316 83171) ACPI CA Core Subsystem: 8318 8319Added the 2007 copyright to all module headers and signons. This affects 8320virtually every file in the ACPICA core subsystem, the iASL compiler, and 8321the utilities. 8322 8323Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 8324during a table load. A bad pointer was passed in the case where the DSDT 8325is 8326overridden, causing a fault in this case. 8327 8328Example Code and Data Size: These are the sizes for the OS-independent 8329acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8330debug version of the code includes the debug output trace mechanism and 8331has 8332a much larger code and data size. 8333 8334 Previous Release: 8335 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8336 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 8337 Current Release: 8338 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8339 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 8340 8341---------------------------------------- 834215 December 2006. Summary of changes for version 20061215: 8343 83441) ACPI CA Core Subsystem: 8345 8346Support for 16-bit ACPICA has been completely removed since it is no 8347longer 8348necessary and it clutters the code. All 16-bit macros, types, and 8349conditional compiles have been removed, cleaning up and simplifying the 8350code 8351across the entire subsystem. DOS support is no longer needed since the 8352bootable Linux firmware kit is now available. 8353 8354The handler for the Global Lock is now removed during AcpiTerminate to 8355enable a clean subsystem restart, via the implementation of the 8356AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 8357HP) 8358 8359Implemented enhancements to the multithreading support within the 8360debugger 8361to enable improved multithreading debugging and evaluation of the 8362subsystem. 8363(Valery Podrezov) 8364 8365Debugger: Enhanced the Statistics/Memory command to emit the total 8366(maximum) 8367memory used during the execution, as well as the maximum memory consumed 8368by 8369each of the various object types. (Valery Podrezov) 8370 8371Example Code and Data Size: These are the sizes for the OS-independent 8372acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8373debug version of the code includes the debug output trace mechanism and 8374has 8375a much larger code and data size. 8376 8377 Previous Release: 8378 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 8379 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 8380 Current Release: 8381 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8382 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 8383 8384 83852) iASL Compiler/Disassembler and Tools: 8386 8387AcpiExec: Implemented a new option (-m) to display full memory use 8388statistics upon subsystem/program termination. (Valery Podrezov) 8389 8390---------------------------------------- 839109 November 2006. Summary of changes for version 20061109: 8392 83931) ACPI CA Core Subsystem: 8394 8395Optimized the Load ASL operator in the case where the source operand is 8396an 8397operation region. Simply map the operation region memory, instead of 8398performing a bytewise read. (Region must be of type SystemMemory, see 8399below.) 8400 8401Fixed the Load ASL operator for the case where the source operand is a 8402region field. A buffer object is also allowed as the source operand. BZ 8403480 8404 8405Fixed a problem where the Load ASL operator allowed the source operand to 8406be 8407an operation region of any type. It is now restricted to regions of type 8408SystemMemory, as per the ACPI specification. BZ 481 8409 8410Additional cleanup and optimizations for the new Table Manager code. 8411 8412AcpiEnable will now fail if all of the required ACPI tables are not 8413loaded 8414(FADT, FACS, DSDT). BZ 477 8415 8416Added #pragma pack(8/4) to acobject.h to ensure that the structures in 8417this 8418header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 8419manually optimized to be aligned and will not work if it is byte-packed. 8420 8421Example Code and Data Size: These are the sizes for the OS-independent 8422acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8423debug version of the code includes the debug output trace mechanism and 8424has 8425a much larger code and data size. 8426 8427 Previous Release: 8428 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 8429 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 8430 Current Release: 8431 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 8432 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 8433 8434 84352) iASL Compiler/Disassembler and Tools: 8436 8437Fixed a problem where the presence of the _OSI predefined control method 8438within complex expressions could cause an internal compiler error. 8439 8440AcpiExec: Implemented full region support for multiple address spaces. 8441SpaceId is now part of the REGION object. BZ 429 8442 8443---------------------------------------- 844411 October 2006. Summary of changes for version 20061011: 8445 84461) ACPI CA Core Subsystem: 8447 8448Completed an AML interpreter performance enhancement for control method 8449execution. Previously a 2-pass parse/execution, control methods are now 8450completely parsed and executed in a single pass. This improves overall 8451interpreter performance by ~25%, reduces code size, and reduces CPU stack 8452use. (Valery Podrezov + interpreter changes in version 20051202 that 8453eliminated namespace loading during the pass one parse.) 8454 8455Implemented _CID support for PCI Root Bridge detection. If the _HID does 8456not 8457match the predefined PCI Root Bridge IDs, the _CID list (if present) is 8458now 8459obtained and also checked for an ID match. 8460 8461Implemented additional support for the PCI _ADR execution: upsearch until 8462a 8463device scope is found before executing _ADR. This allows PCI_Config 8464operation regions to be declared locally within control methods 8465underneath 8466PCI device objects. 8467 8468Fixed a problem with a possible race condition between threads executing 8469AcpiWalkNamespace and the AML interpreter. This condition was removed by 8470modifying AcpiWalkNamespace to (by default) ignore all temporary 8471namespace 8472entries created during any concurrent control method execution. An 8473additional namespace race condition is known to exist between 8474AcpiWalkNamespace and the Load/Unload ASL operators and is still under 8475investigation. 8476 8477Restructured the AML ParseLoop function, breaking it into several 8478subfunctions in order to reduce CPU stack use and improve 8479maintainability. 8480(Mikhail Kouzmich) 8481 8482AcpiGetHandle: Fix for parameter validation to detect invalid 8483combinations 8484of prefix handle and pathname. BZ 478 8485 8486Example Code and Data Size: These are the sizes for the OS-independent 8487acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8488debug version of the code includes the debug output trace mechanism and 8489has 8490a much larger code and data size. 8491 8492 Previous Release: 8493 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8494 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 8495 Current Release: 8496 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 8497 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 8498 84992) iASL Compiler/Disassembler and Tools: 8500 8501Ported the -g option (get local ACPI tables) to the new ACPICA Table 8502Manager 8503to restore original behavior. 8504 8505---------------------------------------- 850627 September 2006. Summary of changes for version 20060927: 8507 85081) ACPI CA Core Subsystem: 8509 8510Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 8511These functions now use a spinlock for mutual exclusion and the interrupt 8512level indication flag is not needed. 8513 8514Fixed a problem with the Global Lock where the lock could appear to be 8515obtained before it is actually obtained. The global lock semaphore was 8516inadvertently created with one unit instead of zero units. (BZ 464) 8517Fiodor 8518Suietov. 8519 8520Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 8521during 8522a read from a buffer or region field. (BZ 458) Fiodor Suietov. 8523 8524Example Code and Data Size: These are the sizes for the OS-independent 8525acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8526debug version of the code includes the debug output trace mechanism and 8527has 8528a much larger code and data size. 8529 8530 Previous Release: 8531 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8532 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 8533 Current Release: 8534 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8535 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 8536 8537 85382) iASL Compiler/Disassembler and Tools: 8539 8540Fixed a compilation problem with the pre-defined Resource Descriptor 8541field 8542names where an "object does not exist" error could be incorrectly 8543generated 8544if the parent ResourceTemplate pathname places the template within a 8545different namespace scope than the current scope. (BZ 7212) 8546 8547Fixed a problem where the compiler could hang after syntax errors 8548detected 8549in an ElseIf construct. (BZ 453) 8550 8551Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 8552operator. An incorrect output filename was produced when this parameter 8553was 8554a null string (""). Now, the original input filename is used as the AML 8555output filename, with an ".aml" extension. 8556 8557Implemented a generic batch command mode for the AcpiExec utility 8558(execute 8559any AML debugger command) (Valery Podrezov). 8560 8561---------------------------------------- 856212 September 2006. Summary of changes for version 20060912: 8563 85641) ACPI CA Core Subsystem: 8565 8566Enhanced the implementation of the "serialized mode" of the interpreter 8567(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 8568specified, instead of creating a serialization semaphore per control 8569method, 8570the interpreter lock is simply no longer released before a blocking 8571operation during control method execution. This effectively makes the AML 8572Interpreter single-threaded. The overhead of a semaphore per-method is 8573eliminated. 8574 8575Fixed a regression where an error was no longer emitted if a control 8576method 8577attempts to create 2 objects of the same name. This once again returns 8578AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 8579that 8580will dynamically serialize the control method to possible prevent future 8581errors. (BZ 440) 8582 8583Integrated a fix for a problem with PCI Express HID detection in the PCI 8584Config Space setup procedure. (BZ 7145) 8585 8586Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 8587AcpiHwInitialize function - the FADT registers are now validated when the 8588table is loaded. 8589 8590Added two new warnings during FADT verification - 1) if the FADT is 8591larger 8592than the largest known FADT version, and 2) if there is a mismatch 8593between 8594a 859532-bit block address and the 64-bit X counterpart (when both are non- 8596zero.) 8597 8598Example Code and Data Size: These are the sizes for the OS-independent 8599acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8600debug version of the code includes the debug output trace mechanism and 8601has 8602a much larger code and data size. 8603 8604 Previous Release: 8605 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 8606 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 8607 Current Release: 8608 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8609 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 8610 8611 86122) iASL Compiler/Disassembler and Tools: 8613 8614Fixed a problem with the implementation of the Switch() operator where 8615the 8616temporary variable was declared too close to the actual Switch, instead 8617of 8618at method level. This could cause a problem if the Switch() operator is 8619within a while loop, causing an error on the second iteration. (BZ 460) 8620 8621Disassembler - fix for error emitted for unknown type for target of scope 8622operator. Now, ignore it and continue. 8623 8624Disassembly of an FADT now verifies the input FADT and reports any errors 8625found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 8626 8627Disassembly of raw data buffers with byte initialization data now 8628prefixes 8629each output line with the current buffer offset. 8630 8631Disassembly of ASF! table now includes all variable-length data fields at 8632the end of some of the subtables. 8633 8634The disassembler now emits a comment if a buffer appears to be a 8635ResourceTemplate, but cannot be disassembled as such because the EndTag 8636does 8637not appear at the very end of the buffer. 8638 8639AcpiExec - Added the "-t" command line option to enable the serialized 8640mode 8641of the AML interpreter. 8642 8643---------------------------------------- 864431 August 2006. Summary of changes for version 20060831: 8645 86461) ACPI CA Core Subsystem: 8647 8648Miscellaneous fixes for the Table Manager: 8649- Correctly initialize internal common FADT for all 64-bit "X" fields 8650- Fixed a couple table mapping issues during table load 8651- Fixed a couple alignment issues for IA64 8652- Initialize input array to zero in AcpiInitializeTables 8653- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 8654AcpiGetTableByIndex 8655 8656Change for GPE support: when a "wake" GPE is received, all wake GPEs are 8657now 8658immediately disabled to prevent the waking GPE from firing again and to 8659prevent other wake GPEs from interrupting the wake process. 8660 8661Added the AcpiGpeCount global that tracks the number of processed GPEs, 8662to 8663be used for debugging systems with a large number of ACPI interrupts. 8664 8665Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 8666both the ACPICA headers and the disassembler. 8667 8668Example Code and Data Size: These are the sizes for the OS-independent 8669acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8670debug version of the code includes the debug output trace mechanism and 8671has 8672a much larger code and data size. 8673 8674 Previous Release: 8675 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 8676 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 8677 Current Release: 8678 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 8679 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 8680 8681 86822) iASL Compiler/Disassembler and Tools: 8683 8684Disassembler support for the DMAR ACPI table. 8685 8686---------------------------------------- 868723 August 2006. Summary of changes for version 20060823: 8688 86891) ACPI CA Core Subsystem: 8690 8691The Table Manager component has been completely redesigned and 8692reimplemented. The new design is much simpler, and reduces the overall 8693code 8694and data size of the kernel-resident ACPICA by approximately 5%. Also, it 8695is 8696now possible to obtain the ACPI tables very early during kernel 8697initialization, even before dynamic memory management is initialized. 8698(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 8699 8700Obsolete ACPICA interfaces: 8701 8702- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 8703init 8704time). 8705- AcpiLoadTable: Not needed. 8706- AcpiUnloadTable: Not needed. 8707 8708New ACPICA interfaces: 8709 8710- AcpiInitializeTables: Must be called before the table manager can be 8711used. 8712- AcpiReallocateRootTable: Used to transfer the root table to dynamically 8713allocated memory after it becomes available. 8714- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI 8715tables 8716in the RSDT/XSDT. 8717 8718Other ACPICA changes: 8719 8720- AcpiGetTableHeader returns the actual mapped table header, not a copy. 8721Use 8722AcpiOsUnmapMemory to free this mapping. 8723- AcpiGetTable returns the actual mapped table. The mapping is managed 8724internally and must not be deleted by the caller. Use of this interface 8725causes no additional dynamic memory allocation. 8726- AcpiFindRootPointer: Support for physical addressing has been 8727eliminated, 8728it appeared to be unused. 8729- The interface to AcpiOsMapMemory has changed to be consistent with the 8730other allocation interfaces. 8731- The interface to AcpiOsGetRootPointer has changed to eliminate 8732unnecessary 8733parameters. 8734- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 873564- 8736bit platforms. Was previously 64 bits on all platforms. 8737- The interface to the ACPI Global Lock acquire/release macros have 8738changed 8739slightly since ACPICA no longer keeps a local copy of the FACS with a 8740constructed pointer to the actual global lock. 8741 8742Porting to the new table manager: 8743 8744- AcpiInitializeTables: Must be called once, and can be called anytime 8745during the OS initialization process. It allows the host to specify an 8746area 8747of memory to be used to store the internal version of the RSDT/XSDT (root 8748table). This allows the host to access ACPI tables before memory 8749management 8750is initialized and running. 8751- AcpiReallocateRootTable: Can be called after memory management is 8752running 8753to copy the root table to a dynamically allocated array, freeing up the 8754scratch memory specified in the call to AcpiInitializeTables. 8755- AcpiSubsystemInitialize: This existing interface is independent of the 8756Table Manager, and does not have to be called before the Table Manager 8757can 8758be used, it only must be called before the rest of ACPICA can be used. 8759- ACPI Tables: Some changes have been made to the names and structure of 8760the 8761actbl.h and actbl1.h header files and may require changes to existing 8762code. 8763For example, bitfields have been completely removed because of their lack 8764of 8765portability across C compilers. 8766- Update interfaces to the Global Lock acquire/release macros if local 8767versions are used. (see acwin.h) 8768 8769Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 8770 8771New files: tbfind.c 8772 8773Example Code and Data Size: These are the sizes for the OS-independent 8774acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8775debug version of the code includes the debug output trace mechanism and 8776has 8777a much larger code and data size. 8778 8779 Previous Release: 8780 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8781 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8782 Current Release: 8783 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 8784 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 8785 8786 87872) iASL Compiler/Disassembler and Tools: 8788 8789No changes for this release. 8790 8791---------------------------------------- 879221 July 2006. Summary of changes for version 20060721: 8793 87941) ACPI CA Core Subsystem: 8795 8796The full source code for the ASL test suite used to validate the iASL 8797compiler and the ACPICA core subsystem is being released with the ACPICA 8798source for the first time. The source is contained in a separate package 8799and 8800consists of over 1100 files that exercise all ASL/AML operators. The 8801package 8802should appear on the Intel/ACPI web site shortly. (Valery Podrezov, 8803Fiodor 8804Suietov) 8805 8806Completed a new design and implementation for support of the ACPI Global 8807Lock. On the OS side, the global lock is now treated as a standard AML 8808mutex. Previously, multiple OS threads could "acquire" the global lock 8809simultaneously. However, this could cause the BIOS to be starved out of 8810the 8811lock - especially in cases such as the Embedded Controller driver where 8812there is a tight coupling between the OS and the BIOS. 8813 8814Implemented an optimization for the ACPI Global Lock interrupt mechanism. 8815The Global Lock interrupt handler no longer queues the execution of a 8816separate thread to signal the global lock semaphore. Instead, the 8817semaphore 8818is signaled directly from the interrupt handler. 8819 8820Implemented support within the AML interpreter for package objects that 8821contain a larger AML length (package list length) than the package 8822element 8823count. In this case, the length of the package is truncated to match the 8824package element count. Some BIOS code apparently modifies the package 8825length 8826on the fly, and this change supports this behavior. Provides 8827compatibility 8828with the MS AML interpreter. (With assistance from Fiodor Suietov) 8829 8830Implemented a temporary fix for the BankValue parameter of a Bank Field 8831to 8832support all constant values, now including the Zero and One opcodes. 8833Evaluation of this parameter must eventually be converted to a full 8834TermArg 8835evaluation. A not-implemented error is now returned (temporarily) for 8836non- 8837constant values for this parameter. 8838 8839Fixed problem reports (Fiodor Suietov) integrated: 8840- Fix for premature object deletion after CopyObject on Operation Region 8841(BZ 8842350) 8843 8844Example Code and Data Size: These are the sizes for the OS-independent 8845acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8846debug version of the code includes the debug output trace mechanism and 8847has 8848a much larger code and data size. 8849 8850 Previous Release: 8851 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 8852 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 8853 Current Release: 8854 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8855 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8856 8857 88582) iASL Compiler/Disassembler and Tools: 8859 8860No changes for this release. 8861 8862---------------------------------------- 886307 July 2006. Summary of changes for version 20060707: 8864 88651) ACPI CA Core Subsystem: 8866 8867Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 8868that do not allow the initialization of address pointers within packed 8869structures - even though the hardware itself may support misaligned 8870transfers. Some of the debug data structures are packed by default to 8871minimize size. 8872 8873Added an error message for the case where AcpiOsGetThreadId() returns 8874zero. 8875A non-zero value is required by the core ACPICA code to ensure the proper 8876operation of AML mutexes and recursive control methods. 8877 8878The DSDT is now the only ACPI table that determines whether the AML 8879interpreter is in 32-bit or 64-bit mode. Not really a functional change, 8880but 8881the hooks for per-table 32/64 switching have been removed from the code. 8882A 8883clarification to the ACPI specification is forthcoming in ACPI 3.0B. 8884 8885Fixed a possible leak of an OwnerID in the error path of 8886AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 8887deletion to a single place in AcpiTbUninstallTable to correct possible 8888leaks 8889when using the AcpiTbDeleteTablesByType interface (with assistance from 8890Lance Ortiz.) 8891 8892Fixed a problem with Serialized control methods where the semaphore 8893associated with the method could be over-signaled after multiple method 8894invocations. 8895 8896Fixed two issues with the locking of the internal namespace data 8897structure. 8898Both the Unload() operator and AcpiUnloadTable interface now lock the 8899namespace during the namespace deletion associated with the table unload 8900(with assistance from Linn Crosetto.) 8901 8902Fixed problem reports (Valery Podrezov) integrated: 8903- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 8904 8905Fixed problem reports (Fiodor Suietov) integrated: 8906- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 8907- On Address Space handler deletion, needless deactivation call (BZ 374) 8908- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 8909375) 8910- Possible memory leak, Notify sub-objects of Processor, Power, 8911ThermalZone 8912(BZ 376) 8913- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 8914- Minimum Length of RSDT should be validated (BZ 379) 8915- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 8916Handler (BZ (380) 8917- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 8918loaded 8919(BZ 381) 8920 8921Example Code and Data Size: These are the sizes for the OS-independent 8922acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8923debug version of the code includes the debug output trace mechanism and 8924has 8925a much larger code and data size. 8926 8927 Previous Release: 8928 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 8929 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 8930 Current Release: 8931 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8932 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8933 8934 89352) iASL Compiler/Disassembler and Tools: 8936 8937Fixed problem reports: 8938Compiler segfault when ASL contains a long (>1024) String declaration (BZ 8939436) 8940 8941---------------------------------------- 894223 June 2006. Summary of changes for version 20060623: 8943 89441) ACPI CA Core Subsystem: 8945 8946Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 8947allows the type to be customized to the host OS for improved efficiency 8948(since a spinlock is usually a very small object.) 8949 8950Implemented support for "ignored" bits in the ACPI registers. According 8951to 8952the ACPI specification, these bits should be preserved when writing the 8953registers via a read/modify/write cycle. There are 3 bits preserved in 8954this 8955manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 8956 8957Implemented the initial deployment of new OSL mutex interfaces. Since 8958some 8959host operating systems have separate mutex and semaphore objects, this 8960feature was requested. The base code now uses mutexes (and the new mutex 8961interfaces) wherever a binary semaphore was used previously. However, for 8962the current release, the mutex interfaces are defined as macros to map 8963them 8964to the existing semaphore interfaces. Therefore, no OSL changes are 8965required 8966at this time. (See acpiosxf.h) 8967 8968Fixed several problems with the support for the control method SyncLevel 8969parameter. The SyncLevel now works according to the ACPI specification 8970and 8971in concert with the Mutex SyncLevel parameter, since the current 8972SyncLevel 8973is a property of the executing thread. Mutual exclusion for control 8974methods 8975is now implemented with a mutex instead of a semaphore. 8976 8977Fixed three instances of the use of the C shift operator in the bitfield 8978support code (exfldio.c) to avoid the use of a shift value larger than 8979the 8980target data width. The behavior of C compilers is undefined in this case 8981and 8982can cause unpredictable results, and therefore the case must be detected 8983and 8984avoided. (Fiodor Suietov) 8985 8986Added an info message whenever an SSDT or OEM table is loaded dynamically 8987via the Load() or LoadTable() ASL operators. This should improve 8988debugging 8989capability since it will show exactly what tables have been loaded 8990(beyond 8991the tables present in the RSDT/XSDT.) 8992 8993Example Code and Data Size: These are the sizes for the OS-independent 8994acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8995debug version of the code includes the debug output trace mechanism and 8996has 8997a much larger code and data size. 8998 8999 Previous Release: 9000 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 9001 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 9002 Current Release: 9003 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 9004 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 9005 9006 90072) iASL Compiler/Disassembler and Tools: 9008 9009No changes for this release. 9010 9011---------------------------------------- 901208 June 2006. Summary of changes for version 20060608: 9013 90141) ACPI CA Core Subsystem: 9015 9016Converted the locking mutex used for the ACPI hardware to a spinlock. 9017This 9018change should eliminate all problems caused by attempting to acquire a 9019semaphore at interrupt level, and it means that all ACPICA external 9020interfaces that directly access the ACPI hardware can be safely called 9021from 9022interrupt level. OSL code that implements the semaphore interfaces should 9023be 9024able to eliminate any workarounds for being called at interrupt level. 9025 9026Fixed a regression introduced in 20060526 where the ACPI device 9027initialization could be prematurely aborted with an AE_NOT_FOUND if a 9028device 9029did not have an optional _INI method. 9030 9031Fixed an IndexField issue where a write to the Data Register should be 9032limited in size to the AccessSize (width) of the IndexField itself. (BZ 9033433, 9034Fiodor Suietov) 9035 9036Fixed problem reports (Valery Podrezov) integrated: 9037- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 9038 9039Fixed problem reports (Fiodor Suietov) integrated: 9040- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 9041 9042Removed four global mutexes that were obsolete and were no longer being 9043used. 9044 9045Example Code and Data Size: These are the sizes for the OS-independent 9046acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9047debug version of the code includes the debug output trace mechanism and 9048has 9049a much larger code and data size. 9050 9051 Previous Release: 9052 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 9053 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 9054 Current Release: 9055 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 9056 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 9057 9058 90592) iASL Compiler/Disassembler and Tools: 9060 9061Fixed a fault when using -g option (get tables from registry) on Windows 9062machines. 9063 9064Fixed problem reports integrated: 9065- Generate error if CreateField NumBits parameter is zero. (BZ 405) 9066- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 9067Suietov) 9068- Global table revision override (-r) is ignored (BZ 413) 9069 9070---------------------------------------- 907126 May 2006. Summary of changes for version 20060526: 9072 90731) ACPI CA Core Subsystem: 9074 9075Restructured, flattened, and simplified the internal interfaces for 9076namespace object evaluation - resulting in smaller code, less CPU stack 9077use, 9078and fewer interfaces. (With assistance from Mikhail Kouzmich) 9079 9080Fixed a problem with the CopyObject operator where the first parameter 9081was 9082not typed correctly for the parser, interpreter, compiler, and 9083disassembler. 9084Caused various errors and unexpected behavior. 9085 9086Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 9087produced incorrect results with some C compilers. Since the behavior of C 9088compilers when the shift value is larger than the datatype width is 9089apparently not well defined, the interpreter now detects this condition 9090and 9091simply returns zero as expected in all such cases. (BZ 395) 9092 9093Fixed problem reports (Valery Podrezov) integrated: 9094- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 9095- Allow interpreter to handle nested method declarations (BZ 5361) 9096 9097Fixed problem reports (Fiodor Suietov) integrated: 9098- AcpiTerminate doesn't free debug memory allocation list objects (BZ 9099355) 9100- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 9101356) 9102- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 9103- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 9104- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 9105- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 9106- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 9107- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 9108- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 9109365) 9110- Status of the Global Initialization Handler call not used (BZ 366) 9111- Incorrect object parameter to Global Initialization Handler (BZ 367) 9112 9113Example Code and Data Size: These are the sizes for the OS-independent 9114acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9115debug version of the code includes the debug output trace mechanism and 9116has 9117a much larger code and data size. 9118 9119 Previous Release: 9120 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 9121 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 9122 Current Release: 9123 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 9124 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 9125 9126 91272) iASL Compiler/Disassembler and Tools: 9128 9129Modified the parser to allow the names IO, DMA, and IRQ to be used as 9130namespace identifiers with no collision with existing resource descriptor 9131macro names. This provides compatibility with other ASL compilers and is 9132most useful for disassembly/recompilation of existing tables without 9133parse 9134errors. (With assistance from Thomas Renninger) 9135 9136Disassembler: fixed an incorrect disassembly problem with the 9137DataTableRegion and CopyObject operators. Fixed a possible fault during 9138disassembly of some Alias operators. 9139 9140---------------------------------------- 914112 May 2006. Summary of changes for version 20060512: 9142 91431) ACPI CA Core Subsystem: 9144 9145Replaced the AcpiOsQueueForExecution interface with a new interface named 9146AcpiOsExecute. The major difference is that the new interface does not 9147have 9148a Priority parameter, this appeared to be useless and has been replaced 9149by 9150a 9151Type parameter. The Type tells the host what type of execution is being 9152requested, such as global lock handler, notify handler, GPE handler, etc. 9153This allows the host to queue and execute the request as appropriate for 9154the 9155request type, possibly using different work queues and different 9156priorities 9157for the various request types. This enables fixes for multithreading 9158deadlock problems such as BZ #5534, and will require changes to all 9159existing 9160OS interface layers. (Alexey Starikovskiy and Bob Moore) 9161 9162Fixed a possible memory leak associated with the support for the so- 9163called 9164"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 9165Suietov) 9166 9167Fixed a problem with the Load() operator where a table load from an 9168operation region could overwrite an internal table buffer by up to 7 9169bytes 9170and cause alignment faults on IPF systems. (With assistance from Luming 9171Yu) 9172 9173Example Code and Data Size: These are the sizes for the OS-independent 9174acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9175debug version of the code includes the debug output trace mechanism and 9176has 9177a much larger code and data size. 9178 9179 Previous Release: 9180 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 9181 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 9182 Current Release: 9183 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 9184 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 9185 9186 9187 91882) iASL Compiler/Disassembler and Tools: 9189 9190Disassembler: Implemented support to cross reference the internal 9191namespace 9192and automatically generate ASL External() statements for symbols not 9193defined 9194within the current table being disassembled. This will simplify the 9195disassembly and recompilation of interdependent tables such as SSDTs 9196since 9197these statements will no longer have to be added manually. 9198 9199Disassembler: Implemented experimental support to automatically detect 9200invocations of external control methods and generate appropriate 9201External() 9202statements. This is problematic because the AML cannot be correctly 9203parsed 9204until the number of arguments for each control method is known. 9205Currently, 9206standalone method invocations and invocations as the source operand of a 9207Store() statement are supported. 9208 9209Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 9210LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 9211LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 9212more readable and likely closer to the original ASL source. 9213 9214---------------------------------------- 921521 April 2006. Summary of changes for version 20060421: 9216 92171) ACPI CA Core Subsystem: 9218 9219Removed a device initialization optimization introduced in 20051216 where 9220the _STA method was not run unless an _INI was also present for the same 9221device. This optimization could cause problems because it could allow 9222_INI 9223methods to be run within a not-present device subtree. (If a not-present 9224device had no _INI, _STA would not be run, the not-present status would 9225not 9226be discovered, and the children of the device would be incorrectly 9227traversed.) 9228 9229Implemented a new _STA optimization where namespace subtrees that do not 9230contain _INI are identified and ignored during device initialization. 9231Selectively running _STA can significantly improve boot time on large 9232machines (with assistance from Len Brown.) 9233 9234Implemented support for the device initialization case where the returned 9235_STA flags indicate a device not-present but functioning. In this case, 9236_INI 9237is not run, but the device children are examined for presence, as per the 9238ACPI specification. 9239 9240Implemented an additional change to the IndexField support in order to 9241conform to MS behavior. The value written to the Index Register is not 9242simply a byte offset, it is a byte offset in units of the access width of 9243the parent Index Field. (Fiodor Suietov) 9244 9245Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 9246interface is called during the creation of all AML operation regions, and 9247allows the host OS to exert control over what addresses it will allow the 9248AML code to access. Operation Regions whose addresses are disallowed will 9249cause a runtime exception when they are actually accessed (will not 9250affect 9251or abort table loading.) See oswinxf or osunixxf for an example 9252implementation. 9253 9254Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 9255interface allows the host OS to match the various "optional" 9256interface/behavior strings for the _OSI predefined control method as 9257appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 9258for an example implementation. 9259 9260Restructured and corrected various problems in the exception handling 9261code 9262paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 9263(with assistance from Takayoshi Kochi.) 9264 9265Modified the Linux source converter to ignore quoted string literals 9266while 9267converting identifiers from mixed to lower case. This will correct 9268problems 9269with the disassembler and other areas where such strings must not be 9270modified. 9271 9272The ACPI_FUNCTION_* macros no longer require quotes around the function 9273name. This allows the Linux source converter to convert the names, now 9274that 9275the converter ignores quoted strings. 9276 9277Example Code and Data Size: These are the sizes for the OS-independent 9278acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9279debug version of the code includes the debug output trace mechanism and 9280has 9281a much larger code and data size. 9282 9283 Previous Release: 9284 9285 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 9286 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 9287 Current Release: 9288 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 9289 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 9290 9291 92922) iASL Compiler/Disassembler and Tools: 9293 9294Implemented 3 new warnings for iASL, and implemented multiple warning 9295levels 9296(w2 flag). 9297 92981) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 9299not 9300WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 9301check for the possible timeout, a warning is issued. 9302 93032) Useless operators: If an ASL operator does not specify an optional 9304target 9305operand and it also does not use the function return value from the 9306operator, a warning is issued since the operator effectively does 9307nothing. 9308 93093) Unreferenced objects: If a namespace object is created, but never 9310referenced, a warning is issued. This is a warning level 2 since there 9311are 9312cases where this is ok, such as when a secondary table is loaded that 9313uses 9314the unreferenced objects. Even so, care is taken to only flag objects 9315that 9316don't look like they will ever be used. For example, the reserved methods 9317(starting with an underscore) are usually not referenced because it is 9318expected that the OS will invoke them. 9319 9320---------------------------------------- 932131 March 2006. Summary of changes for version 20060331: 9322 93231) ACPI CA Core Subsystem: 9324 9325Implemented header file support for the following additional ACPI tables: 9326ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 9327support, 9328all current and known ACPI tables are now defined in the ACPICA headers 9329and 9330are available for use by device drivers and other software. 9331 9332Implemented support to allow tables that contain ACPI names with invalid 9333characters to be loaded. Previously, this would cause the table load to 9334fail, but since there are several known cases of such tables on existing 9335machines, this change was made to enable ACPI support for them. Also, 9336this 9337matches the behavior of the Microsoft ACPI implementation. 9338 9339Fixed a couple regressions introduced during the memory optimization in 9340the 934120060317 release. The namespace node definition required additional 9342reorganization and an internal datatype that had been changed to 8-bit 9343was 9344restored to 32-bit. (Valery Podrezov) 9345 9346Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 9347could be passed through to AcpiOsReleaseObject which is unexpected. Such 9348null pointers are now trapped and ignored, matching the behavior of the 9349previous implementation before the deployment of AcpiOsReleaseObject. 9350(Valery Podrezov, Fiodor Suietov) 9351 9352Fixed a memory mapping leak during the deletion of a SystemMemory 9353operation 9354region where a cached memory mapping was not deleted. This became a 9355noticeable problem for operation regions that are defined within 9356frequently 9357used control methods. (Dana Meyers) 9358 9359Reorganized the ACPI table header files into two main files: one for the 9360ACPI tables consumed by the ACPICA core, and another for the 9361miscellaneous 9362ACPI tables that are consumed by the drivers and other software. The 9363various 9364FADT definitions were merged into one common section and three different 9365tables (ACPI 1.0, 1.0+, and 2.0) 9366 9367Example Code and Data Size: These are the sizes for the OS-independent 9368acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9369debug version of the code includes the debug output trace mechanism and 9370has 9371a much larger code and data size. 9372 9373 Previous Release: 9374 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 9375 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 9376 Current Release: 9377 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 9378 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 9379 9380 93812) iASL Compiler/Disassembler and Tools: 9382 9383Disassembler: Implemented support to decode and format all non-AML ACPI 9384tables (tables other than DSDTs and SSDTs.) This includes the new tables 9385added to the ACPICA headers, therefore all current and known ACPI tables 9386are 9387supported. 9388 9389Disassembler: The change to allow ACPI names with invalid characters also 9390enables the disassembly of such tables. Invalid characters within names 9391are 9392changed to '*' to make the name printable; the iASL compiler will still 9393generate an error for such names, however, since this is an invalid ACPI 9394character. 9395 9396Implemented an option for AcpiXtract (-a) to extract all tables found in 9397the 9398input file. The default invocation extracts only the DSDTs and SSDTs. 9399 9400Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 9401makefile for the AcpiXtract utility. 9402 9403---------------------------------------- 940417 March 2006. Summary of changes for version 20060317: 9405 94061) ACPI CA Core Subsystem: 9407 9408Implemented the use of a cache object for all internal namespace nodes. 9409Since there are about 1000 static nodes in a typical system, this will 9410decrease memory use for cache implementations that minimize per- 9411allocation 9412overhead (such as a slab allocator.) 9413 9414Removed the reference count mechanism for internal namespace nodes, since 9415it 9416was deemed unnecessary. This reduces the size of each namespace node by 9417about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit 9418case, 9419and 32 bytes for the 64-bit case. 9420 9421Optimized several internal data structures to reduce object size on 64- 9422bit 9423platforms by packing data within the 64-bit alignment. This includes the 9424frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 9425instances corresponding to the namespace objects. 9426 9427Added two new strings for the predefined _OSI method: "Windows 2001.1 9428SP1" 9429and "Windows 2006". 9430 9431Split the allocation tracking mechanism out to a separate file, from 9432utalloc.c to uttrack.c. This mechanism appears to be only useful for 9433application-level code. Kernels may wish to not include uttrack.c in 9434distributions. 9435 9436Removed all remnants of the obsolete ACPI_REPORT_* macros and the 9437associated 9438code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 9439macros.) 9440 9441Code and Data Size: These are the sizes for the acpica.lib produced by 9442the 9443Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 9444ACPI 9445driver or OSPM code. The debug version of the code includes the debug 9446output 9447trace mechanism and has a much larger code and data size. Note that these 9448values will vary depending on the efficiency of the compiler and the 9449compiler options used during generation. 9450 9451 Previous Release: 9452 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9453 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 9454 Current Release: 9455 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 9456 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 9457 9458 94592) iASL Compiler/Disassembler and Tools: 9460 9461Implemented an ANSI C version of the acpixtract utility. This version 9462will 9463automatically extract the DSDT and all SSDTs from the input acpidump text 9464file and dump the binary output to separate files. It can also display a 9465summary of the input file including the headers for each table found and 9466will extract any single ACPI table, with any signature. (See 9467source/tools/acpixtract) 9468 9469---------------------------------------- 947010 March 2006. Summary of changes for version 20060310: 9471 94721) ACPI CA Core Subsystem: 9473 9474Tagged all external interfaces to the subsystem with the new 9475ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to 9476assist 9477kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 9478macro. The default definition is NULL. 9479 9480Added the ACPI_THREAD_ID type for the return value from 9481AcpiOsGetThreadId. 9482This allows the host to define this as necessary to simplify kernel 9483integration. The default definition is ACPI_NATIVE_UINT. 9484 9485Fixed two interpreter problems related to error processing, the deletion 9486of 9487objects, and placing invalid pointers onto the internal operator result 9488stack. BZ 6028, 6151 (Valery Podrezov) 9489 9490Increased the reference count threshold where a warning is emitted for 9491large 9492reference counts in order to eliminate unnecessary warnings on systems 9493with 9494large namespaces (especially 64-bit.) Increased the value from 0x400 to 94950x800. 9496 9497Due to universal disagreement as to the meaning of the 'c' in the 9498calloc() 9499function, the ACPI_MEM_CALLOCATE macro has been renamed to 9500ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 9501ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 9502ACPI_FREE. 9503 9504Code and Data Size: These are the sizes for the acpica.lib produced by 9505the 9506Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 9507ACPI 9508driver or OSPM code. The debug version of the code includes the debug 9509output 9510trace mechanism and has a much larger code and data size. Note that these 9511values will vary depending on the efficiency of the compiler and the 9512compiler options used during generation. 9513 9514 Previous Release: 9515 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 9516 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 9517 Current Release: 9518 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9519 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 9520 9521 95222) iASL Compiler/Disassembler: 9523 9524Disassembler: implemented support for symbolic resource descriptor 9525references. If a CreateXxxxField operator references a fixed offset 9526within 9527a 9528resource descriptor, a name is assigned to the descriptor and the offset 9529is 9530translated to the appropriate resource tag and pathname. The addition of 9531this support brings the disassembled code very close to the original ASL 9532source code and helps eliminate run-time errors when the disassembled 9533code 9534is modified (and recompiled) in such a way as to invalidate the original 9535fixed offsets. 9536 9537Implemented support for a Descriptor Name as the last parameter to the 9538ASL 9539Register() macro. This parameter was inadvertently left out of the ACPI 9540specification, and will be added for ACPI 3.0b. 9541 9542Fixed a problem where the use of the "_OSI" string (versus the full path 9543"\_OSI") caused an internal compiler error. ("No back ptr to op") 9544 9545Fixed a problem with the error message that occurs when an invalid string 9546is 9547used for a _HID object (such as one with an embedded asterisk: 9548"*PNP010A".) 9549The correct message is now displayed. 9550 9551---------------------------------------- 955217 February 2006. Summary of changes for version 20060217: 9553 95541) ACPI CA Core Subsystem: 9555 9556Implemented a change to the IndexField support to match the behavior of 9557the 9558Microsoft AML interpreter. The value written to the Index register is now 9559a 9560byte offset, no longer an index based upon the width of the Data 9561register. 9562This should fix IndexField problems seen on some machines where the Data 9563register is not exactly one byte wide. The ACPI specification will be 9564clarified on this point. 9565 9566Fixed a problem where several resource descriptor types could overrun the 9567internal descriptor buffer due to size miscalculation: VendorShort, 9568VendorLong, and Interrupt. This was noticed on IA64 machines, but could 9569affect all platforms. 9570 9571Fixed a problem where individual resource descriptors were misaligned 9572within 9573the internal buffer, causing alignment faults on IA64 platforms. 9574 9575Code and Data Size: These are the sizes for the acpica.lib produced by 9576the 9577Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 9578ACPI 9579driver or OSPM code. The debug version of the code includes the debug 9580output 9581trace mechanism and has a much larger code and data size. Note that these 9582values will vary depending on the efficiency of the compiler and the 9583compiler options used during generation. 9584 9585 Previous Release: 9586 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9587 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 9588 Current Release: 9589 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 9590 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 9591 9592 95932) iASL Compiler/Disassembler: 9594 9595Implemented support for new reserved names: _WDG and _WED are Microsoft 9596extensions for Windows Instrumentation Management, _TDL is a new ACPI- 9597defined method (Throttling Depth Limit.) 9598 9599Fixed a problem where a zero-length VendorShort or VendorLong resource 9600descriptor was incorrectly emitted as a descriptor of length one. 9601 9602---------------------------------------- 960310 February 2006. Summary of changes for version 20060210: 9604 96051) ACPI CA Core Subsystem: 9606 9607Removed a couple of extraneous ACPI_ERROR messages that appeared during 9608normal execution. These became apparent after the conversion from 9609ACPI_DEBUG_PRINT. 9610 9611Fixed a problem where the CreateField operator could hang if the BitIndex 9612or 9613NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 9614 9615Fixed a problem where a DeRefOf operation on a buffer object incorrectly 9616failed with an exception. This also fixes a couple of related RefOf and 9617DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 9618 9619Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 9620of 9621AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 9622BZ 96235480) 9624 9625Implemented a memory cleanup at the end of the execution of each 9626iteration 9627of an AML While() loop, preventing the accumulation of outstanding 9628objects. 9629(Valery Podrezov, BZ 5427) 9630 9631Eliminated a chunk of duplicate code in the object resolution code. 9632(Valery 9633Podrezov, BZ 5336) 9634 9635Fixed several warnings during the 64-bit code generation. 9636 9637The AcpiSrc source code conversion tool now inserts one line of 9638whitespace 9639after an if() statement that is followed immediately by a comment, 9640improving 9641readability of the Linux code. 9642 9643Code and Data Size: The current and previous library sizes for the core 9644subsystem are shown below. These are the code and data sizes for the 9645acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9646These 9647values do not include any ACPI driver or OSPM code. The debug version of 9648the 9649code includes the debug output trace mechanism and has a much larger code 9650and data size. Note that these values will vary depending on the 9651efficiency 9652of the compiler and the compiler options used during generation. 9653 9654 Previous Release: 9655 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 9656 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 9657 Current Release: 9658 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9659 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 9660 9661 96622) iASL Compiler/Disassembler: 9663 9664Fixed a problem with the disassembly of a BankField operator with a 9665complex 9666expression for the BankValue parameter. 9667 9668---------------------------------------- 966927 January 2006. Summary of changes for version 20060127: 9670 96711) ACPI CA Core Subsystem: 9672 9673Implemented support in the Resource Manager to allow unresolved 9674namestring 9675references within resource package objects for the _PRT method. This 9676support 9677is in addition to the previously implemented unresolved reference support 9678within the AML parser. If the interpreter slack mode is enabled, these 9679unresolved references will be passed through to the caller as a NULL 9680package 9681entry. 9682 9683Implemented and deployed new macros and functions for error and warning 9684messages across the subsystem. These macros are simpler and generate less 9685code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 9686ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 9687macros remain defined to allow ACPI drivers time to migrate to the new 9688macros. 9689 9690Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of 9691the 9692Acquire/Release Lock OSL interfaces. 9693 9694Fixed a problem where Alias ASL operators are sometimes not correctly 9695resolved, in both the interpreter and the iASL compiler. 9696 9697Fixed several problems with the implementation of the 9698ConcatenateResTemplate 9699ASL operator. As per the ACPI specification, zero length buffers are now 9700treated as a single EndTag. One-length buffers always cause a fatal 9701exception. Non-zero length buffers that do not end with a full 2-byte 9702EndTag 9703cause a fatal exception. 9704 9705Fixed a possible structure overwrite in the AcpiGetObjectInfo external 9706interface. (With assistance from Thomas Renninger) 9707 9708Code and Data Size: The current and previous library sizes for the core 9709subsystem are shown below. These are the code and data sizes for the 9710acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9711These 9712values do not include any ACPI driver or OSPM code. The debug version of 9713the 9714code includes the debug output trace mechanism and has a much larger code 9715and data size. Note that these values will vary depending on the 9716efficiency 9717of the compiler and the compiler options used during generation. 9718 9719 Previous Release: 9720 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 9721 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 9722 Current Release: 9723 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 9724 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 9725 9726 97272) iASL Compiler/Disassembler: 9728 9729Fixed an internal error that was generated for any forward references to 9730ASL 9731Alias objects. 9732 9733---------------------------------------- 973413 January 2006. Summary of changes for version 20060113: 9735 97361) ACPI CA Core Subsystem: 9737 9738Added 2006 copyright to all module headers and signons. This affects 9739virtually every file in the ACPICA core subsystem, iASL compiler, and the 9740utilities. 9741 9742Enhanced the ACPICA error reporting in order to simplify user migration 9743to 9744the non-debug version of ACPICA. Replaced all instances of the 9745ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN 9746debug 9747levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 9748respectively. This preserves all error and warning messages in the non- 9749debug 9750version of the ACPICA code (this has been referred to as the "debug lite" 9751option.) Over 200 cases were converted to create a total of over 380 9752error/warning messages across the ACPICA code. This increases the code 9753and 9754data size of the default non-debug version of the code somewhat (about 975513K), 9756but all error/warning reporting may be disabled if desired (and code 9757eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 9758configuration option. The size of the debug version of ACPICA remains 9759about 9760the same. 9761 9762Fixed a memory leak within the AML Debugger "Set" command. One object was 9763not properly deleted for every successful invocation of the command. 9764 9765Code and Data Size: The current and previous library sizes for the core 9766subsystem are shown below. These are the code and data sizes for the 9767acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9768These 9769values do not include any ACPI driver or OSPM code. The debug version of 9770the 9771code includes the debug output trace mechanism and has a much larger code 9772and data size. Note that these values will vary depending on the 9773efficiency 9774of the compiler and the compiler options used during generation. 9775 9776 Previous Release: 9777 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 9778 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 9779 Current Release: 9780 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 9781 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 9782 9783 97842) iASL Compiler/Disassembler: 9785 9786The compiler now officially supports the ACPI 3.0a specification that was 9787released on December 30, 2005. (Specification is available at 9788www.acpi.info) 9789 9790---------------------------------------- 979116 December 2005. Summary of changes for version 20051216: 9792 97931) ACPI CA Core Subsystem: 9794 9795Implemented optional support to allow unresolved names within ASL Package 9796objects. A null object is inserted in the package when a named reference 9797cannot be located in the current namespace. Enabled via the interpreter 9798slack flag, this should eliminate AE_NOT_FOUND exceptions seen on 9799machines 9800that contain such code. 9801 9802Implemented an optimization to the initialization sequence that can 9803improve 9804boot time. During ACPI device initialization, the _STA method is now run 9805if 9806and only if the _INI method exists. The _STA method is used to determine 9807if 9808the device is present; An _INI can only be run if _STA returns present, 9809but 9810it is a waste of time to run the _STA method if the _INI does not exist. 9811(Prototype and assistance from Dong Wei) 9812 9813Implemented use of the C99 uintptr_t for the pointer casting macros if it 9814is 9815available in the current compiler. Otherwise, the default (void *) cast 9816is 9817used as before. 9818 9819Fixed some possible memory leaks found within the execution path of the 9820Break, Continue, If, and CreateField operators. (Valery Podrezov) 9821 9822Fixed a problem introduced in the 20051202 release where an exception is 9823generated during method execution if a control method attempts to declare 9824another method. 9825 9826Moved resource descriptor string constants that are used by both the AML 9827disassembler and AML debugger to the common utilities directory so that 9828these components are independent. 9829 9830Implemented support in the AcpiExec utility (-e switch) to globally 9831ignore 9832exceptions during control method execution (method is not aborted.) 9833 9834Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 9835generation. 9836 9837Code and Data Size: The current and previous library sizes for the core 9838subsystem are shown below. These are the code and data sizes for the 9839acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9840These 9841values do not include any ACPI driver or OSPM code. The debug version of 9842the 9843code includes the debug output trace mechanism and has a much larger code 9844and data size. Note that these values will vary depending on the 9845efficiency 9846of the compiler and the compiler options used during generation. 9847 9848 Previous Release: 9849 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9850 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 9851 Current Release: 9852 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 9853 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 9854 9855 98562) iASL Compiler/Disassembler: 9857 9858Fixed a problem where a CPU stack overflow fault could occur if a 9859recursive 9860method call was made from within a Return statement. 9861 9862---------------------------------------- 986302 December 2005. Summary of changes for version 20051202: 9864 98651) ACPI CA Core Subsystem: 9866 9867Modified the parsing of control methods to no longer create namespace 9868objects during the first pass of the parse. Objects are now created only 9869during the execute phase, at the moment the namespace creation operator 9870is 9871encountered in the AML (Name, OperationRegion, CreateByteField, etc.) 9872This 9873should eliminate ALREADY_EXISTS exceptions seen on some machines where 9874reentrant control methods are protected by an AML mutex. The mutex will 9875now 9876correctly block multiple threads from attempting to create the same 9877object 9878more than once. 9879 9880Increased the number of available Owner Ids for namespace object tracking 9881from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 9882on 9883some machines with a large number of ACPI tables (either static or 9884dynamic). 9885 9886Fixed a problem with the AcpiExec utility where a fault could occur when 9887the 9888-b switch (batch mode) is used. 9889 9890Enhanced the namespace dump routine to output the owner ID for each 9891namespace object. 9892 9893Code and Data Size: The current and previous library sizes for the core 9894subsystem are shown below. These are the code and data sizes for the 9895acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9896These 9897values do not include any ACPI driver or OSPM code. The debug version of 9898the 9899code includes the debug output trace mechanism and has a much larger code 9900and data size. Note that these values will vary depending on the 9901efficiency 9902of the compiler and the compiler options used during generation. 9903 9904 Previous Release: 9905 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9906 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9907 Current Release: 9908 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9909 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 9910 9911 99122) iASL Compiler/Disassembler: 9913 9914Fixed a parse error during compilation of certain Switch/Case constructs. 9915To 9916simplify the parse, the grammar now allows for multiple Default 9917statements 9918and this error is now detected and flagged during the analysis phase. 9919 9920Disassembler: The disassembly now includes the contents of the original 9921table header within a comment at the start of the file. This includes the 9922name and version of the original ASL compiler. 9923 9924---------------------------------------- 992517 November 2005. Summary of changes for version 20051117: 9926 99271) ACPI CA Core Subsystem: 9928 9929Fixed a problem in the AML parser where the method thread count could be 9930decremented below zero if any errors occurred during the method parse 9931phase. 9932This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 9933machines. 9934This also fixed a related regression with the mechanism that detects and 9935corrects methods that cannot properly handle reentrancy (related to the 9936deployment of the new OwnerId mechanism.) 9937 9938Eliminated the pre-parsing of control methods (to detect errors) during 9939table load. Related to the problem above, this was causing unwind issues 9940if 9941any errors occurred during the parse, and it seemed to be overkill. A 9942table 9943load should not be aborted if there are problems with any single control 9944method, thus rendering this feature rather pointless. 9945 9946Fixed a problem with the new table-driven resource manager where an 9947internal 9948buffer overflow could occur for small resource templates. 9949 9950Implemented a new external interface, AcpiGetVendorResource. This 9951interface 9952will find and return a vendor-defined resource descriptor within a _CRS 9953or 9954_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 9955Helgaas. 9956 9957Removed the length limit (200) on string objects as per the upcoming ACPI 99583.0A specification. This affects the following areas of the interpreter: 99591) 9960any implicit conversion of a Buffer to a String, 2) a String object 9961result 9962of the ASL Concatentate operator, 3) the String object result of the ASL 9963ToString operator. 9964 9965Fixed a problem in the Windows OS interface layer (OSL) where a 9966WAIT_FOREVER 9967on a semaphore object would incorrectly timeout. This allows the 9968multithreading features of the AcpiExec utility to work properly under 9969Windows. 9970 9971Updated the Linux makefiles for the iASL compiler and AcpiExec to include 9972the recently added file named "utresrc.c". 9973 9974Code and Data Size: The current and previous library sizes for the core 9975subsystem are shown below. These are the code and data sizes for the 9976acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9977These 9978values do not include any ACPI driver or OSPM code. The debug version of 9979the 9980code includes the debug output trace mechanism and has a much larger code 9981and data size. Note that these values will vary depending on the 9982efficiency 9983of the compiler and the compiler options used during generation. 9984 9985 Previous Release: 9986 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 9987 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9988 Current Release: 9989 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9990 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9991 9992 99932) iASL Compiler/Disassembler: 9994 9995Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 9996specification. For the iASL compiler, this means that string literals 9997within 9998the source ASL can be of any length. 9999 10000Enhanced the listing output to dump the AML code for resource descriptors 10001immediately after the ASL code for each descriptor, instead of in a block 10002at 10003the end of the entire resource template. 10004 10005Enhanced the compiler debug output to dump the entire original parse tree 10006constructed during the parse phase, before any transforms are applied to 10007the 10008tree. The transformed tree is dumped also. 10009 10010---------------------------------------- 1001102 November 2005. Summary of changes for version 20051102: 10012 100131) ACPI CA Core Subsystem: 10014 10015Modified the subsystem initialization sequence to improve GPE support. 10016The 10017GPE initialization has been split into two parts in order to defer 10018execution 10019of the _PRW methods (Power Resources for Wake) until after the hardware 10020is 10021fully initialized and the SCI handler is installed. This allows the _PRW 10022methods to access fields protected by the Global Lock. This will fix 10023systems 10024where a NO_GLOBAL_LOCK exception has been seen during initialization. 10025 10026Converted the ACPI internal object disassemble and display code within 10027the 10028AML debugger to fully table-driven operation, reducing code size and 10029increasing maintainability. 10030 10031Fixed a regression with the ConcatenateResTemplate() ASL operator 10032introduced 10033in the 20051021 release. 10034 10035Implemented support for "local" internal ACPI object types within the 10036debugger "Object" command and the AcpiWalkNamespace external interfaces. 10037These local types include RegionFields, BankFields, IndexFields, Alias, 10038and 10039reference objects. 10040 10041Moved common AML resource handling code into a new file, "utresrc.c". 10042This 10043code is shared by both the Resource Manager and the AML Debugger. 10044 10045Code and Data Size: The current and previous library sizes for the core 10046subsystem are shown below. These are the code and data sizes for the 10047acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 10048These 10049values do not include any ACPI driver or OSPM code. The debug version of 10050the 10051code includes the debug output trace mechanism and has a much larger code 10052and data size. Note that these values will vary depending on the 10053efficiency 10054of the compiler and the compiler options used during generation. 10055 10056 Previous Release: 10057 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 10058 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 10059 Current Release: 10060 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 10061 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 10062 10063 100642) iASL Compiler/Disassembler: 10065 10066Fixed a problem with very large initializer lists (more than 4000 10067elements) 10068for both Buffer and Package objects where the parse stack could overflow. 10069 10070Enhanced the pre-compile source code scan for non-ASCII characters to 10071ignore 10072characters within comment fields. The scan is now always performed and is 10073no 10074longer optional, detecting invalid characters within a source file 10075immediately rather than during the parse phase or later. 10076 10077Enhanced the ASL grammar definition to force early reductions on all 10078list- 10079style grammar elements so that the overall parse stack usage is greatly 10080reduced. This should improve performance and reduce the possibility of 10081parse 10082stack overflow. 10083 10084Eliminated all reduce/reduce conflicts in the iASL parser generation. 10085Also, 10086with the addition of a %expected statement, the compiler generates from 10087source with no warnings. 10088 10089Fixed a possible segment fault in the disassembler if the input filename 10090does not contain a "dot" extension (Thomas Renninger). 10091 10092---------------------------------------- 1009321 October 2005. Summary of changes for version 20051021: 10094 100951) ACPI CA Core Subsystem: 10096 10097Implemented support for the EM64T and other x86-64 processors. This 10098essentially entails recognizing that these processors support non-aligned 10099memory transfers. Previously, all 64-bit processors were assumed to lack 10100hardware support for non-aligned transfers. 10101 10102Completed conversion of the Resource Manager to nearly full table-driven 10103operation. Specifically, the resource conversion code (convert AML to 10104internal format and the reverse) and the debug code to dump internal 10105resource descriptors are fully table-driven, reducing code and data size 10106and 10107improving maintainability. 10108 10109The OSL interfaces for Acquire and Release Lock now use a 64-bit flag 10110word 10111on 64-bit processors instead of a fixed 32-bit word. (With assistance 10112from 10113Alexey Starikovskiy) 10114 10115Implemented support within the resource conversion code for the Type- 10116Specific byte within the various ACPI 3.0 *WordSpace macros. 10117 10118Fixed some issues within the resource conversion code for the type- 10119specific 10120flags for both Memory and I/O address resource descriptors. For Memory, 10121implemented support for the MTP and TTP flags. For I/O, split the TRS and 10122TTP flags into two separate fields. 10123 10124Code and Data Size: The current and previous library sizes for the core 10125subsystem are shown below. These are the code and data sizes for the 10126acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 10127These 10128values do not include any ACPI driver or OSPM code. The debug version of 10129the 10130code includes the debug output trace mechanism and has a much larger code 10131and data size. Note that these values will vary depending on the 10132efficiency 10133of the compiler and the compiler options used during generation. 10134 10135 Previous Release: 10136 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 10137 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 10138 Current Release: 10139 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 10140 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 10141 10142 10143 101442) iASL Compiler/Disassembler: 10145 10146Relaxed a compiler restriction that disallowed a ResourceIndex byte if 10147the 10148corresponding ResourceSource string was not also present in a resource 10149descriptor declaration. This restriction caused problems with existing 10150AML/ASL code that includes the Index byte without the string. When such 10151AML 10152was disassembled, it could not be compiled without modification. Further, 10153the modified code created a resource template with a different size than 10154the 10155original, breaking code that used fixed offsets into the resource 10156template 10157buffer. 10158 10159Removed a recent feature of the disassembler to ignore a lone 10160ResourceIndex 10161byte. This byte is now emitted if present so that the exact AML can be 10162reproduced when the disassembled code is recompiled. 10163 10164Improved comments and text alignment for the resource descriptor code 10165emitted by the disassembler. 10166 10167Implemented disassembler support for the ACPI 3.0 AccessSize field within 10168a 10169Register() resource descriptor. 10170 10171---------------------------------------- 1017230 September 2005. Summary of changes for version 20050930: 10173 101741) ACPI CA Core Subsystem: 10175 10176Completed a major overhaul of the Resource Manager code - specifically, 10177optimizations in the area of the AML/internal resource conversion code. 10178The 10179code has been optimized to simplify and eliminate duplicated code, CPU 10180stack 10181use has been decreased by optimizing function parameters and local 10182variables, and naming conventions across the manager have been 10183standardized 10184for clarity and ease of maintenance (this includes function, parameter, 10185variable, and struct/typedef names.) The update may force changes in some 10186driver code, depending on how resources are handled by the host OS. 10187 10188All Resource Manager dispatch and information tables have been moved to a 10189single location for clarity and ease of maintenance. One new file was 10190created, named "rsinfo.c". 10191 10192The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 10193guarantee that the argument is not evaluated twice, making them less 10194prone 10195to macro side-effects. However, since there exists the possibility of 10196additional stack use if a particular compiler cannot optimize them (such 10197as 10198in the debug generation case), the original macros are optionally 10199available. 10200Note that some invocations of the return_VALUE macro may now cause size 10201mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 10202to 10203eliminate these. (From Randy Dunlap) 10204 10205Implemented a new mechanism to enable debug tracing for individual 10206control 10207methods. A new external interface, AcpiDebugTrace, is provided to enable 10208this mechanism. The intent is to allow the host OS to easily enable and 10209disable tracing for problematic control methods. This interface can be 10210easily exposed to a user or debugger interface if desired. See the file 10211psxface.c for details. 10212 10213AcpiUtCallocate will now return a valid pointer if a length of zero is 10214specified - a length of one is used and a warning is issued. This matches 10215the behavior of AcpiUtAllocate. 10216 10217Code and Data Size: The current and previous library sizes for the core 10218subsystem are shown below. These are the code and data sizes for the 10219acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 10220These 10221values do not include any ACPI driver or OSPM code. The debug version of 10222the 10223code includes the debug output trace mechanism and has a much larger code 10224and data size. Note that these values will vary depending on the 10225efficiency 10226of the compiler and the compiler options used during generation. 10227 10228 Previous Release: 10229 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 10230 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 10231 Current Release: 10232 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 10233 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 10234 10235 102362) iASL Compiler/Disassembler: 10237 10238A remark is issued if the effective compile-time length of a package or 10239buffer is zero. Previously, this was a warning. 10240 10241---------------------------------------- 1024216 September 2005. Summary of changes for version 20050916: 10243 102441) ACPI CA Core Subsystem: 10245 10246Fixed a problem within the Resource Manager where support for the Generic 10247Register descriptor was not fully implemented. This descriptor is now 10248fully 10249recognized, parsed, disassembled, and displayed. 10250 10251Completely restructured the Resource Manager code to utilize table-driven 10252dispatch and lookup, eliminating many of the large switch() statements. 10253This 10254reduces overall subsystem code size and code complexity. Affects the 10255resource parsing and construction, disassembly, and debug dump output. 10256 10257Cleaned up and restructured the debug dump output for all resource 10258descriptors. Improved readability of the output and reduced code size. 10259 10260Fixed a problem where changes to internal data structures caused the 10261optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 10262 10263Code and Data Size: The current and previous library sizes for the core 10264subsystem are shown below. These are the code and data sizes for the 10265acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 10266These 10267values do not include any ACPI driver or OSPM code. The debug version of 10268the 10269code includes the debug output trace mechanism and has a much larger code 10270and data size. Note that these values will vary depending on the 10271efficiency 10272of the compiler and the compiler options used during generation. 10273 10274 Previous Release: 10275 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 10276 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 10277 Current Release: 10278 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 10279 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 10280 10281 102822) iASL Compiler/Disassembler: 10283 10284Updated the disassembler to automatically insert an EndDependentFn() 10285macro 10286into the ASL stream if this macro is missing in the original AML code, 10287simplifying compilation of the resulting ASL module. 10288 10289Fixed a problem in the disassembler where a disassembled ResourceSource 10290string (within a large resource descriptor) was not surrounded by quotes 10291and 10292not followed by a comma, causing errors when the resulting ASL module was 10293compiled. Also, escape sequences within a ResourceSource string are now 10294handled correctly (especially "\\") 10295 10296---------------------------------------- 1029702 September 2005. Summary of changes for version 20050902: 10298 102991) ACPI CA Core Subsystem: 10300 10301Fixed a problem with the internal Owner ID allocation and deallocation 10302mechanisms for control method execution and recursive method invocation. 10303This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 10304messages seen on some systems. Recursive method invocation depth is 10305currently limited to 255. (Alexey Starikovskiy) 10306 10307Completely eliminated all vestiges of support for the "module-level 10308executable code" until this support is fully implemented and debugged. 10309This 10310should eliminate the NO_RETURN_VALUE exceptions seen during table load on 10311some systems that invoke this support. 10312 10313Fixed a problem within the resource manager code where the transaction 10314flags 10315for a 64-bit address descriptor were handled incorrectly in the type- 10316specific flag byte. 10317 10318Consolidated duplicate code within the address descriptor resource 10319manager 10320code, reducing overall subsystem code size. 10321 10322Fixed a fault when using the AML debugger "disassemble" command to 10323disassemble individual control methods. 10324 10325Removed references to the "release_current" directory within the Unix 10326release package. 10327 10328Code and Data Size: The current and previous core subsystem library sizes 10329are shown below. These are the code and data sizes for the acpica.lib 10330produced by the Microsoft Visual C++ 6.0 compiler. These values do not 10331include any ACPI driver or OSPM code. The debug version of the code 10332includes 10333the debug output trace mechanism and has a much larger code and data 10334size. 10335Note that these values will vary depending on the efficiency of the 10336compiler 10337and the compiler options used during generation. 10338 10339 Previous Release: 10340 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 10341 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 10342 Current Release: 10343 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 10344 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 10345 10346 103472) iASL Compiler/Disassembler: 10348 10349Implemented an error check for illegal duplicate values in the interrupt 10350and 10351dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 10352Interrupt(). 10353 10354Implemented error checking for the Irq() and IrqNoFlags() macros to 10355detect 10356too many values in the interrupt list (16 max) and invalid values in the 10357list (range 0 - 15) 10358 10359The maximum length string literal within an ASL file is now restricted to 10360200 characters as per the ACPI specification. 10361 10362Fixed a fault when using the -ln option (generate namespace listing). 10363 10364Implemented an error check to determine if a DescriptorName within a 10365resource descriptor has already been used within the current scope. 10366 10367---------------------------------------- 1036815 August 2005. Summary of changes for version 20050815: 10369 103701) ACPI CA Core Subsystem: 10371 10372Implemented a full bytewise compare to determine if a table load request 10373is 10374attempting to load a duplicate table. The compare is performed if the 10375table 10376signatures and table lengths match. This will allow different tables with 10377the same OEM Table ID and revision to be loaded - probably against the 10378ACPI 10379specification, but discovered in the field nonetheless. 10380 10381Added the changes.txt logfile to each of the zipped release packages. 10382 10383Code and Data Size: Current and previous core subsystem library sizes are 10384shown below. These are the code and data sizes for the acpica.lib 10385produced 10386by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10387any ACPI driver or OSPM code. The debug version of the code includes the 10388debug output trace mechanism and has a much larger code and data size. 10389Note 10390that these values will vary depending on the efficiency of the compiler 10391and 10392the compiler options used during generation. 10393 10394 Previous Release: 10395 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 10396 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 10397 Current Release: 10398 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 10399 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 10400 10401 104022) iASL Compiler/Disassembler: 10403 10404Fixed a problem where incorrect AML code could be generated for Package 10405objects if optimization is disabled (via the -oa switch). 10406 10407Fixed a problem with where incorrect AML code is generated for variable- 10408length packages when the package length is not specified and the number 10409of 10410initializer values is greater than 255. 10411 10412 10413---------------------------------------- 1041429 July 2005. Summary of changes for version 20050729: 10415 104161) ACPI CA Core Subsystem: 10417 10418Implemented support to ignore an attempt to install/load a particular 10419ACPI 10420table more than once. Apparently there exists BIOS code that repeatedly 10421attempts to load the same SSDT upon certain events. With assistance from 10422Venkatesh Pallipadi. 10423 10424Restructured the main interface to the AML parser in order to correctly 10425handle all exceptional conditions. This will prevent leakage of the 10426OwnerId 10427resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 10428some 10429machines. With assistance from Alexey Starikovskiy. 10430 10431Support for "module level code" has been disabled in this version due to 10432a 10433number of issues that have appeared on various machines. The support can 10434be 10435enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 10436compilation. When the issues are fully resolved, the code will be enabled 10437by 10438default again. 10439 10440Modified the internal functions for debug print support to define the 10441FunctionName parameter as a (const char *) for compatibility with 10442compiler 10443built-in macros such as __FUNCTION__, etc. 10444 10445Linted the entire ACPICA source tree for both 32-bit and 64-bit. 10446 10447Implemented support to display an object count summary for the AML 10448Debugger 10449commands Object and Methods. 10450 10451Code and Data Size: Current and previous core subsystem library sizes are 10452shown below. These are the code and data sizes for the acpica.lib 10453produced 10454by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10455any ACPI driver or OSPM code. The debug version of the code includes the 10456debug output trace mechanism and has a much larger code and data size. 10457Note 10458that these values will vary depending on the efficiency of the compiler 10459and 10460the compiler options used during generation. 10461 10462 Previous Release: 10463 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 10464 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 10465 Current Release: 10466 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 10467 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 10468 10469 104702) iASL Compiler/Disassembler: 10471 10472Fixed a regression that appeared in the 20050708 version of the compiler 10473where an error message was inadvertently emitted for invocations of the 10474_OSI 10475reserved control method. 10476 10477---------------------------------------- 1047808 July 2005. Summary of changes for version 20050708: 10479 104801) ACPI CA Core Subsystem: 10481 10482The use of the CPU stack in the debug version of the subsystem has been 10483considerably reduced. Previously, a debug structure was declared in every 10484function that used the debug macros. This structure has been removed in 10485favor of declaring the individual elements as parameters to the debug 10486functions. This reduces the cumulative stack use during nested execution 10487of 10488ACPI function calls at the cost of a small increase in the code size of 10489the 10490debug version of the subsystem. With assistance from Alexey Starikovskiy 10491and 10492Len Brown. 10493 10494Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 10495headers to define a macro that will return the current function name at 10496runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 10497by 10498the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 10499compiler-dependent header, the function name is saved on the CPU stack 10500(one 10501pointer per function.) This mechanism is used because apparently there 10502exists no standard ANSI-C defined macro that that returns the function 10503name. 10504 10505Redesigned and reimplemented the "Owner ID" mechanism used to track 10506namespace objects created/deleted by ACPI tables and control method 10507execution. A bitmap is now used to allocate and free the IDs, thus 10508solving 10509the wraparound problem present in the previous implementation. The size 10510of 10511the namespace node descriptor was reduced by 2 bytes as a result (Alexey 10512Starikovskiy). 10513 10514Removed the UINT32_BIT and UINT16_BIT types that were used for the 10515bitfield 10516flag definitions within the headers for the predefined ACPI tables. These 10517have been replaced by UINT8_BIT in order to increase the code portability 10518of 10519the subsystem. If the use of UINT8 remains a problem, we may be forced to 10520eliminate bitfields entirely because of a lack of portability. 10521 10522Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 10523This 10524is a frequently used function and this improvement increases the 10525performance 10526of the entire subsystem (Alexey Starikovskiy). 10527 10528Fixed several possible memory leaks and the inverse - premature object 10529deletion (Alexey Starikovskiy). 10530 10531Code and Data Size: Current and previous core subsystem library sizes are 10532shown below. These are the code and data sizes for the acpica.lib 10533produced 10534by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10535any ACPI driver or OSPM code. The debug version of the code includes the 10536debug output trace mechanism and has a much larger code and data size. 10537Note 10538that these values will vary depending on the efficiency of the compiler 10539and 10540the compiler options used during generation. 10541 10542 Previous Release: 10543 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 10544 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 10545 Current Release: 10546 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 10547 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 10548 10549---------------------------------------- 1055024 June 2005. Summary of changes for version 20050624: 10551 105521) ACPI CA Core Subsystem: 10553 10554Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 10555the host-defined cache object. This allows the OSL implementation to 10556define 10557and type this object in any manner desired, simplifying the OSL 10558implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 10559Linux, and should be defined in the OS-specific header file for other 10560operating systems as required. 10561 10562Changed the interface to AcpiOsAcquireObject to directly return the 10563requested object as the function return (instead of ACPI_STATUS.) This 10564change was made for performance reasons, since this is the purpose of the 10565interface in the first place. AcpiOsAcquireObject is now similar to the 10566AcpiOsAllocate interface. 10567 10568Implemented a new AML debugger command named Businfo. This command 10569displays 10570information about all devices that have an associate _PRT object. The 10571_ADR, 10572_HID, _UID, and _CID are displayed for these devices. 10573 10574Modified the initialization sequence in AcpiInitializeSubsystem to call 10575the 10576OSL interface AcpiOslInitialize first, before any local initialization. 10577This 10578change was required because the global initialization now calls OSL 10579interfaces. 10580 10581Enhanced the Dump command to display the entire contents of Package 10582objects 10583(including all sub-objects and their values.) 10584 10585Restructured the code base to split some files because of size and/or 10586because the code logically belonged in a separate file. New files are 10587listed 10588below. All makefiles and project files included in the ACPI CA release 10589have 10590been updated. 10591 utilities/utcache.c /* Local cache interfaces */ 10592 utilities/utmutex.c /* Local mutex support */ 10593 utilities/utstate.c /* State object support */ 10594 interpreter/parser/psloop.c /* Main AML parse loop */ 10595 10596Code and Data Size: Current and previous core subsystem library sizes are 10597shown below. These are the code and data sizes for the acpica.lib 10598produced 10599by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10600any ACPI driver or OSPM code. The debug version of the code includes the 10601debug output trace mechanism and has a much larger code and data size. 10602Note 10603that these values will vary depending on the efficiency of the compiler 10604and 10605the compiler options used during generation. 10606 10607 Previous Release: 10608 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 10609 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 10610 Current Release: 10611 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 10612 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 10613 10614 106152) iASL Compiler/Disassembler: 10616 10617Fixed a regression introduced in version 20050513 where the use of a 10618Package 10619object within a Case() statement caused a compile time exception. The 10620original behavior has been restored (a Match() operator is emitted.) 10621 10622---------------------------------------- 1062317 June 2005. Summary of changes for version 20050617: 10624 106251) ACPI CA Core Subsystem: 10626 10627Moved the object cache operations into the OS interface layer (OSL) to 10628allow 10629the host OS to handle these operations if desired (for example, the Linux 10630OSL will invoke the slab allocator). This support is optional; the 10631compile 10632time define ACPI_USE_LOCAL_CACHE may be used to utilize the original 10633cache 10634code in the ACPI CA core. The new OSL interfaces are shown below. See 10635utalloc.c for an example implementation, and acpiosxf.h for the exact 10636interface definitions. With assistance from Alexey Starikovskiy. 10637 AcpiOsCreateCache 10638 AcpiOsDeleteCache 10639 AcpiOsPurgeCache 10640 AcpiOsAcquireObject 10641 AcpiOsReleaseObject 10642 10643Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 10644return 10645and restore a flags parameter. This fits better with many OS lock models. 10646Note: the current execution state (interrupt handler or not) is no longer 10647passed to these interfaces. If necessary, the OSL must determine this 10648state 10649by itself, a simple and fast operation. With assistance from Alexey 10650Starikovskiy. 10651 10652Fixed a problem in the ACPI table handling where a valid XSDT was assumed 10653present if the revision of the RSDP was 2 or greater. According to the 10654ACPI 10655specification, the XSDT is optional in all cases, and the table manager 10656therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 10657Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs 10658contain 10659only the RSDT. 10660 10661Fixed an interpreter problem with the Mid() operator in the case of an 10662input 10663string where the resulting output string is of zero length. It now 10664correctly 10665returns a valid, null terminated string object instead of a string object 10666with a null pointer. 10667 10668Fixed a problem with the control method argument handling to allow a 10669store 10670to an Arg object that already contains an object of type Device. The 10671Device 10672object is now correctly overwritten. Previously, an error was returned. 10673 10674 10675Enhanced the debugger Find command to emit object values in addition to 10676the 10677found object pathnames. The output format is the same as the dump 10678namespace 10679command. 10680 10681Enhanced the debugger Set command. It now has the ability to set the 10682value 10683of any Named integer object in the namespace (Previously, only method 10684locals 10685and args could be set.) 10686 10687Code and Data Size: Current and previous core subsystem library sizes are 10688shown below. These are the code and data sizes for the acpica.lib 10689produced 10690by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10691any ACPI driver or OSPM code. The debug version of the code includes the 10692debug output trace mechanism and has a much larger code and data size. 10693Note 10694that these values will vary depending on the efficiency of the compiler 10695and 10696the compiler options used during generation. 10697 10698 Previous Release: 10699 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 10700 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 10701 Current Release: 10702 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 10703 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 10704 10705 107062) iASL Compiler/Disassembler: 10707 10708Fixed a regression in the disassembler where if/else/while constructs 10709were 10710output incorrectly. This problem was introduced in the previous release 10711(20050526). This problem also affected the single-step disassembly in the 10712debugger. 10713 10714Fixed a problem where compiling the reserved _OSI method would randomly 10715(but 10716rarely) produce compile errors. 10717 10718Enhanced the disassembler to emit compilable code in the face of 10719incorrect 10720AML resource descriptors. If the optional ResourceSourceIndex is present, 10721but the ResourceSource is not, do not emit the ResourceSourceIndex in the 10722disassembly. Otherwise, the resulting code cannot be compiled without 10723errors. 10724 10725---------------------------------------- 1072626 May 2005. Summary of changes for version 20050526: 10727 107281) ACPI CA Core Subsystem: 10729 10730Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 10731the module level (not within a control method.) These opcodes are 10732executed 10733exactly once at the time the table is loaded. This type of code was legal 10734up 10735until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 10736in 10737order to provide backwards compatibility with earlier BIOS 10738implementations. 10739This eliminates the "Encountered executable code at module level" warning 10740that was previously generated upon detection of such code. 10741 10742Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 10743inadvertently be generated during the lookup of namespace objects in the 10744second pass parse of ACPI tables and control methods. It appears that 10745this 10746problem could occur during the resolution of forward references to 10747namespace 10748objects. 10749 10750Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 10751corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 10752allows the deadlock detection debug code to be compiled out in the normal 10753case, improving mutex performance (and overall subsystem performance) 10754considerably. 10755 10756Implemented a handful of miscellaneous fixes for possible memory leaks on 10757error conditions and error handling control paths. These fixes were 10758suggested by FreeBSD and the Coverity Prevent source code analysis tool. 10759 10760Added a check for a null RSDT pointer in AcpiGetFirmwareTable 10761(tbxfroot.c) 10762to prevent a fault in this error case. 10763 10764Code and Data Size: Current and previous core subsystem library sizes are 10765shown below. These are the code and data sizes for the acpica.lib 10766produced 10767by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10768any ACPI driver or OSPM code. The debug version of the code includes the 10769debug output trace mechanism and has a much larger code and data size. 10770Note 10771that these values will vary depending on the efficiency of the compiler 10772and 10773the compiler options used during generation. 10774 10775 Previous Release: 10776 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10777 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10778 Current Release: 10779 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 10780 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 10781 10782 107832) iASL Compiler/Disassembler: 10784 10785Implemented support to allow Type 1 and Type 2 ASL operators to appear at 10786the module level (not within a control method.) These operators will be 10787executed once at the time the table is loaded. This type of code was 10788legal 10789up until the release of ACPI 2.0B (2002) and is now supported by the iASL 10790compiler in order to provide backwards compatibility with earlier BIOS 10791ASL 10792code. 10793 10794The ACPI integer width (specified via the table revision ID or the -r 10795override, 32 or 64 bits) is now used internally during compile-time 10796constant 10797folding to ensure that constants are truncated to 32 bits if necessary. 10798Previously, the revision ID value was only emitted in the AML table 10799header. 10800 10801An error message is now generated for the Mutex and Method operators if 10802the 10803SyncLevel parameter is outside the legal range of 0 through 15. 10804 10805Fixed a problem with the Method operator ParameterTypes list handling 10806(ACPI 108073.0). Previously, more than 2 types or 2 arguments generated a syntax 10808error. 10809The actual underlying implementation of method argument typechecking is 10810still under development, however. 10811 10812---------------------------------------- 1081313 May 2005. Summary of changes for version 20050513: 10814 108151) ACPI CA Core Subsystem: 10816 10817Implemented support for PCI Express root bridges -- added support for 10818device 10819PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 10820 10821The interpreter now automatically truncates incoming 64-bit constants to 1082232 10823bits if currently executing out of a 32-bit ACPI table (Revision < 2). 10824This 10825also affects the iASL compiler constant folding. (Note: as per below, the 10826iASL compiler no longer allows 64-bit constants within 32-bit tables.) 10827 10828Fixed a problem where string and buffer objects with "static" pointers 10829(pointers to initialization data within an ACPI table) were not handled 10830consistently. The internal object copy operation now always copies the 10831data 10832to a newly allocated buffer, regardless of whether the source object is 10833static or not. 10834 10835Fixed a problem with the FromBCD operator where an implicit result 10836conversion was improperly performed while storing the result to the 10837target 10838operand. Since this is an "explicit conversion" operator, the implicit 10839conversion should never be performed on the output. 10840 10841Fixed a problem with the CopyObject operator where a copy to an existing 10842named object did not always completely overwrite the existing object 10843stored 10844at name. Specifically, a buffer-to-buffer copy did not delete the 10845existing 10846buffer. 10847 10848Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces 10849and 10850structs for consistency. 10851 10852Code and Data Size: Current and previous core subsystem library sizes are 10853shown below. These are the code and data sizes for the acpica.lib 10854produced 10855by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10856any ACPI driver or OSPM code. The debug version of the code includes the 10857debug output trace mechanism and has a much larger code and data size. 10858Note 10859that these values will vary depending on the efficiency of the compiler 10860and 10861the compiler options used during generation. 10862 10863 Previous Release: 10864 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10865 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10866 Current Release: (Same sizes) 10867 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10868 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10869 10870 108712) iASL Compiler/Disassembler: 10872 10873The compiler now emits a warning if an attempt is made to generate a 64- 10874bit 10875integer constant from within a 32-bit ACPI table (Revision < 2). The 10876integer 10877is truncated to 32 bits. 10878 10879Fixed a problem with large package objects: if the static length of the 10880package is greater than 255, the "variable length package" opcode is 10881emitted. Previously, this caused an error. This requires an update to the 10882ACPI spec, since it currently (incorrectly) states that packages larger 10883than 10884255 elements are not allowed. 10885 10886The disassembler now correctly handles variable length packages and 10887packages 10888larger than 255 elements. 10889 10890---------------------------------------- 1089108 April 2005. Summary of changes for version 20050408: 10892 108931) ACPI CA Core Subsystem: 10894 10895Fixed three cases in the interpreter where an "index" argument to an ASL 10896function was still (internally) 32 bits instead of the required 64 bits. 10897This was the Index argument to the Index, Mid, and Match operators. 10898 10899The "strupr" function is now permanently local (AcpiUtStrupr), since this 10900is 10901not a POSIX-defined function and not present in most kernel-level C 10902libraries. All references to the C library strupr function have been 10903removed 10904from the headers. 10905 10906Completed the deployment of static functions/prototypes. All prototypes 10907with 10908the static attribute have been moved from the headers to the owning C 10909file. 10910 10911Implemented an extract option (-e) for the AcpiBin utility (AML binary 10912utility). This option allows the utility to extract individual ACPI 10913tables 10914from the output of AcpiDmp. It provides the same functionality of the 10915acpixtract.pl perl script without the worry of setting the correct perl 10916options. AcpiBin runs on Windows and has not yet been generated/validated 10917in 10918the Linux/Unix environment (but should be soon). 10919 10920Updated and fixed the table dump option for AcpiBin (-d). This option 10921converts a single ACPI table to a hex/ascii file, similar to the output 10922of 10923AcpiDmp. 10924 10925Code and Data Size: Current and previous core subsystem library sizes are 10926shown below. These are the code and data sizes for the acpica.lib 10927produced 10928by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10929any ACPI driver or OSPM code. The debug version of the code includes the 10930debug output trace mechanism and has a much larger code and data size. 10931Note 10932that these values will vary depending on the efficiency of the compiler 10933and 10934the compiler options used during generation. 10935 10936 Previous Release: 10937 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 10938 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 10939 Current Release: 10940 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10941 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10942 10943 109442) iASL Compiler/Disassembler: 10945 10946Disassembler fix: Added a check to ensure that the table length found in 10947the 10948ACPI table header within the input file is not longer than the actual 10949input 10950file size. This indicates some kind of file or table corruption. 10951 10952---------------------------------------- 1095329 March 2005. Summary of changes for version 20050329: 10954 109551) ACPI CA Core Subsystem: 10956 10957An error is now generated if an attempt is made to create a Buffer Field 10958of 10959length zero (A CreateField with a length operand of zero.) 10960 10961The interpreter now issues a warning whenever executable code at the 10962module 10963level is detected during ACPI table load. This will give some idea of the 10964prevalence of this type of code. 10965 10966Implemented support for references to named objects (other than control 10967methods) within package objects. 10968 10969Enhanced package object output for the debug object. Package objects are 10970now 10971completely dumped, showing all elements. 10972 10973Enhanced miscellaneous object output for the debug object. Any object can 10974now be written to the debug object (for example, a device object can be 10975written, and the type of the object will be displayed.) 10976 10977The "static" qualifier has been added to all local functions across both 10978the 10979core subsystem and the iASL compiler. 10980 10981The number of "long" lines (> 80 chars) within the source has been 10982significantly reduced, by about 1/3. 10983 10984Cleaned up all header files to ensure that all CA/iASL functions are 10985prototyped (even static functions) and the formatting is consistent. 10986 10987Two new header files have been added, acopcode.h and acnames.h. 10988 10989Removed several obsolete functions that were no longer used. 10990 10991Code and Data Size: Current and previous core subsystem library sizes are 10992shown below. These are the code and data sizes for the acpica.lib 10993produced 10994by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10995any ACPI driver or OSPM code. The debug version of the code includes the 10996debug output trace mechanism and has a much larger code and data size. 10997Note 10998that these values will vary depending on the efficiency of the compiler 10999and 11000the compiler options used during generation. 11001 11002 Previous Release: 11003 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11004 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 11005 Current Release: 11006 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 11007 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 11008 11009 11010 110112) iASL Compiler/Disassembler: 11012 11013Fixed a problem with the resource descriptor generation/support. For the 11014ResourceSourceIndex and the ResourceSource fields, both must be present, 11015or 11016both must be not present - can't have one without the other. 11017 11018The compiler now returns non-zero from the main procedure if any errors 11019have 11020occurred during the compilation. 11021 11022 11023---------------------------------------- 1102409 March 2005. Summary of changes for version 20050309: 11025 110261) ACPI CA Core Subsystem: 11027 11028The string-to-buffer implicit conversion code has been modified again 11029after 11030a change to the ACPI specification. In order to match the behavior of 11031the 11032other major ACPI implementation, the target buffer is no longer truncated 11033if 11034the source string is smaller than an existing target buffer. This change 11035requires an update to the ACPI spec, and should eliminate the recent 11036AE_AML_BUFFER_LIMIT issues. 11037 11038The "implicit return" support was rewritten to a new algorithm that 11039solves 11040the general case. Rather than attempt to determine when a method is about 11041to 11042exit, the result of every ASL operator is saved momentarily until the 11043very 11044next ASL operator is executed. Therefore, no matter how the method exits, 11045there will always be a saved implicit return value. This feature is only 11046enabled with the AcpiGbl_EnableInterpreterSlack flag, and should 11047eliminate 11048AE_AML_NO_RETURN_VALUE errors when enabled. 11049 11050Implemented implicit conversion support for the predicate (operand) of 11051the 11052If, Else, and While operators. String and Buffer arguments are 11053automatically 11054converted to Integers. 11055 11056Changed the string-to-integer conversion behavior to match the new ACPI 11057errata: "If no integer object exists, a new integer is created. The ASCII 11058string is interpreted as a hexadecimal constant. Each string character is 11059interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 11060with the first character as the most significant digit, and ending with 11061the 11062first non-hexadecimal character or end-of-string." This means that the 11063first 11064non-hex character terminates the conversion and this is the code that was 11065changed. 11066 11067Fixed a problem where the ObjectType operator would fail (fault) when 11068used 11069on an Index of a Package which pointed to a null package element. The 11070operator now properly returns zero (Uninitialized) in this case. 11071 11072Fixed a problem where the While operator used excessive memory by not 11073properly popping the result stack during execution. There was no memory 11074leak 11075after execution, however. (Code provided by Valery Podrezov.) 11076 11077Fixed a problem where references to control methods within Package 11078objects 11079caused the method to be invoked, instead of producing a reference object 11080pointing to the method. 11081 11082Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) 11083to 11084improve performance and reduce code size. (Code provided by Alexey 11085Starikovskiy.) 11086 11087Code and Data Size: Current and previous core subsystem library sizes are 11088shown below. These are the code and data sizes for the acpica.lib 11089produced 11090by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11091any ACPI driver or OSPM code. The debug version of the code includes the 11092debug output trace mechanism and has a much larger code and data size. 11093Note 11094that these values will vary depending on the efficiency of the compiler 11095and 11096the compiler options used during generation. 11097 11098 Previous Release: 11099 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11100 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 11101 Current Release: 11102 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11103 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 11104 11105 111062) iASL Compiler/Disassembler: 11107 11108Fixed a problem with the Return operator with no arguments. Since the AML 11109grammar for the byte encoding requires an operand for the Return opcode, 11110the 11111compiler now emits a Return(Zero) for this case. An ACPI specification 11112update has been written for this case. 11113 11114For tables other than the DSDT, namepath optimization is automatically 11115disabled. This is because SSDTs can be loaded anywhere in the namespace, 11116the 11117compiler has no knowledge of where, and thus cannot optimize namepaths. 11118 11119Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 11120inadvertently omitted from the ACPI specification, and will require an 11121update to the spec. 11122 11123The source file scan for ASCII characters is now optional (-a). This 11124change 11125was made because some vendors place non-ascii characters within comments. 11126However, the scan is simply a brute-force byte compare to ensure all 11127characters in the file are in the range 0x00 to 0x7F. 11128 11129Fixed a problem with the CondRefOf operator where the compiler was 11130inappropriately checking for the existence of the target. Since the point 11131of 11132the operator is to check for the existence of the target at run-time, the 11133compiler no longer checks for the target existence. 11134 11135Fixed a problem where errors generated from the internal AML interpreter 11136during constant folding were not handled properly, causing a fault. 11137 11138Fixed a problem with overly aggressive range checking for the Stall 11139operator. The valid range (max 255) is now only checked if the operand is 11140of 11141type Integer. All other operand types cannot be statically checked. 11142 11143Fixed a problem where control method references within the RefOf, 11144DeRefOf, 11145and ObjectType operators were not treated properly. They are now treated 11146as 11147actual references, not method invocations. 11148 11149Fixed and enhanced the "list namespace" option (-ln). This option was 11150broken 11151a number of releases ago. 11152 11153Improved error handling for the Field, IndexField, and BankField 11154operators. 11155The compiler now cleanly reports and recovers from errors in the field 11156component (FieldUnit) list. 11157 11158Fixed a disassembler problem where the optional ResourceDescriptor fields 11159TRS and TTP were not always handled correctly. 11160 11161Disassembler - Comments in output now use "//" instead of "/*" 11162 11163---------------------------------------- 1116428 February 2005. Summary of changes for version 20050228: 11165 111661) ACPI CA Core Subsystem: 11167 11168Fixed a problem where the result of an Index() operator (an object 11169reference) must increment the reference count on the target object for 11170the 11171life of the object reference. 11172 11173Implemented AML Interpreter and Debugger support for the new ACPI 3.0 11174Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 11175WordSpace 11176resource descriptors. 11177 11178Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 11179Space Descriptor" string, indicating interpreter support for the 11180descriptors 11181above. 11182 11183Implemented header support for the new ACPI 3.0 FADT flag bits. 11184 11185Implemented header support for the new ACPI 3.0 PCI Express bits for the 11186PM1 11187status/enable registers. 11188 11189Updated header support for the MADT processor local Apic struct and MADT 11190platform interrupt source struct for new ACPI 3.0 fields. 11191 11192Implemented header support for the SRAT and SLIT ACPI tables. 11193 11194Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 11195flag 11196at runtime. 11197 11198Code and Data Size: Current and previous core subsystem library sizes are 11199shown below. These are the code and data sizes for the acpica.lib 11200produced 11201by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11202any ACPI driver or OSPM code. The debug version of the code includes the 11203debug output trace mechanism and has a much larger code and data size. 11204Note 11205that these values will vary depending on the efficiency of the compiler 11206and 11207the compiler options used during generation. 11208 11209 Previous Release: 11210 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 11211 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 11212 Current Release: 11213 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11214 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 11215 11216 112172) iASL Compiler/Disassembler: 11218 11219Fixed a problem with the internal 64-bit String-to-integer conversion 11220with 11221strings less than two characters long. 11222 11223Fixed a problem with constant folding where the result of the Index() 11224operator can not be considered a constant. This means that Index() cannot 11225be 11226a type3 opcode and this will require an update to the ACPI specification. 11227 11228Disassembler: Implemented support for the TTP, MTP, and TRS resource 11229descriptor fields. These fields were inadvertently ignored and not output 11230in 11231the disassembly of the resource descriptor. 11232 11233 11234 ---------------------------------------- 1123511 February 2005. Summary of changes for version 20050211: 11236 112371) ACPI CA Core Subsystem: 11238 11239Implemented ACPI 3.0 support for implicit conversion within the Match() 11240operator. MatchObjects can now be of type integer, buffer, or string 11241instead 11242of just type integer. Package elements are implicitly converted to the 11243type 11244of the MatchObject. This change aligns the behavior of Match() with the 11245behavior of the other logical operators (LLess(), etc.) It also requires 11246an 11247errata change to the ACPI specification as this support was intended for 11248ACPI 3.0, but was inadvertently omitted. 11249 11250Fixed a problem with the internal implicit "to buffer" conversion. 11251Strings 11252that are converted to buffers will cause buffer truncation if the string 11253is 11254smaller than the target buffer. Integers that are converted to buffers 11255will 11256not cause buffer truncation, only zero extension (both as per the ACPI 11257spec.) The problem was introduced when code was added to truncate the 11258buffer, but this should not be performed in all cases, only the string 11259case. 11260 11261Fixed a problem with the Buffer and Package operators where the 11262interpreter 11263would get confused if two such operators were used as operands to an ASL 11264operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 11265stack was not being popped after the execution of these operators, 11266resulting 11267in an AE_NO_RETURN_VALUE exception. 11268 11269Fixed a problem with constructs of the form Store(Index(...),...). The 11270reference object returned from Index was inadvertently resolved to an 11271actual 11272value. This problem was introduced in version 20050114 when the behavior 11273of 11274Store() was modified to restrict the object types that can be used as the 11275source operand (to match the ACPI specification.) 11276 11277Reduced excessive stack use within the AcpiGetObjectInfo procedure. 11278 11279Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 11280 11281Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 11282 11283Code and Data Size: Current and previous core subsystem library sizes are 11284shown below. These are the code and data sizes for the acpica.lib 11285produced 11286by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11287any ACPI driver or OSPM code. The debug version of the code includes the 11288debug output trace mechanism and has a much larger code and data size. 11289Note 11290that these values will vary depending on the efficiency of the compiler 11291and 11292the compiler options used during generation. 11293 11294 Previous Release: 11295 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 11296 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 11297 Current Release: 11298 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 11299 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 11300 11301 113022) iASL Compiler/Disassembler: 11303 11304Fixed a code generation problem in the constant folding optimization code 11305where incorrect code was generated if a constant was reduced to a buffer 11306object (i.e., a reduced type 5 opcode.) 11307 11308Fixed a typechecking problem for the ToBuffer operator. Caused by an 11309incorrect return type in the internal opcode information table. 11310 11311---------------------------------------- 1131225 January 2005. Summary of changes for version 20050125: 11313 113141) ACPI CA Core Subsystem: 11315 11316Fixed a recently introduced problem with the Global Lock where the 11317underlying semaphore was not created. This problem was introduced in 11318version 20050114, and caused an AE_AML_NO_OPERAND exception during an 11319Acquire() operation on _GL. 11320 11321The local object cache is now optional, and is disabled by default. Both 11322AcpiExec and the iASL compiler enable the cache because they run in user 11323mode and this enhances their performance. #define 11324ACPI_ENABLE_OBJECT_CACHE 11325to enable the local cache. 11326 11327Fixed an issue in the internal function AcpiUtEvaluateObject concerning 11328the 11329optional "implicit return" support where an error was returned if no 11330return 11331object was expected, but one was implicitly returned. AE_OK is now 11332returned 11333in this case and the implicitly returned object is deleted. 11334AcpiUtEvaluateObject is only occasionally used, and only to execute 11335reserved 11336methods such as _STA and _INI where the return type is known up front. 11337 11338Fixed a few issues with the internal convert-to-integer code. It now 11339returns 11340an error if an attempt is made to convert a null string, a string of only 11341blanks/tabs, or a zero-length buffer. This affects both implicit 11342conversion 11343and explicit conversion via the ToInteger() operator. 11344 11345The internal debug code in AcpiUtAcquireMutex has been commented out. It 11346is 11347not needed for normal operation and should increase the performance of 11348the 11349entire subsystem. The code remains in case it is needed for debug 11350purposes 11351again. 11352 11353The AcpiExec source and makefile are included in the Unix/Linux package 11354for 11355the first time. 11356 11357Code and Data Size: Current and previous core subsystem library sizes are 11358shown below. These are the code and data sizes for the acpica.lib 11359produced 11360by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11361any ACPI driver or OSPM code. The debug version of the code includes the 11362debug output trace mechanism and has a much larger code and data size. 11363Note 11364that these values will vary depending on the efficiency of the compiler 11365and 11366the compiler options used during generation. 11367 11368 Previous Release: 11369 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 11370 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 11371 Current Release: 11372 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 11373 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 11374 113752) iASL Compiler/Disassembler: 11376 11377Switch/Case support: A warning is now issued if the type of the Switch 11378value 11379cannot be determined at compile time. For example, Switch(Arg0) will 11380generate the warning, and the type is assumed to be an integer. As per 11381the 11382ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 11383the 11384warning. 11385 11386Switch/Case support: Implemented support for buffer and string objects as 11387the switch value. This is an ACPI 3.0 feature, now that LEqual supports 11388buffers and strings. 11389 11390Switch/Case support: The emitted code for the LEqual() comparisons now 11391uses 11392the switch value as the first operand, not the second. The case value is 11393now 11394the second operand, and this allows the case value to be implicitly 11395converted to the type of the switch value, not the other way around. 11396 11397Switch/Case support: Temporary variables are now emitted immediately 11398within 11399the control method, not at the global level. This means that there are 11400now 1140136 temps available per-method, not 36 temps per-module as was the case 11402with 11403the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 11404 11405---------------------------------------- 1140614 January 2005. Summary of changes for version 20050114: 11407 11408Added 2005 copyright to all module headers. This affects every module in 11409the core subsystem, iASL compiler, and the utilities. 11410 114111) ACPI CA Core Subsystem: 11412 11413Fixed an issue with the String-to-Buffer conversion code where the string 11414null terminator was not included in the buffer after conversion, but 11415there 11416is existing ASL that assumes the string null terminator is included. This 11417is 11418the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 11419introduced in the previous version when the code was updated to correctly 11420set the converted buffer size as per the ACPI specification. The ACPI 11421spec 11422is ambiguous and will be updated to specify that the null terminator must 11423be 11424included in the converted buffer. This also affects the ToBuffer() ASL 11425operator. 11426 11427Fixed a problem with the Mid() ASL/AML operator where it did not work 11428correctly on Buffer objects. Newly created sub-buffers were not being 11429marked 11430as initialized. 11431 11432 11433Fixed a problem in AcpiTbFindTable where incorrect string compares were 11434performed on the OemId and OemTableId table header fields. These fields 11435are 11436not null terminated, so strncmp is now used instead of strcmp. 11437 11438Implemented a restriction on the Store() ASL/AML operator to align the 11439behavior with the ACPI specification. Previously, any object could be 11440used 11441as the source operand. Now, the only objects that may be used are 11442Integers, 11443Buffers, Strings, Packages, Object References, and DDB Handles. If 11444necessary, the original behavior can be restored by enabling the 11445EnableInterpreterSlack flag. 11446 11447Enhanced the optional "implicit return" support to allow an implicit 11448return 11449value from methods that are invoked externally via the AcpiEvaluateObject 11450interface. This enables implicit returns from the _STA and _INI methods, 11451for example. 11452 11453Changed the Revision() ASL/AML operator to return the current version of 11454the 11455AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 11456returned 11457the supported ACPI version (This is the function of the _REV method). 11458 11459Updated the _REV predefined method to return the currently supported 11460version 11461of ACPI, now 3. 11462 11463Implemented batch mode option for the AcpiExec utility (-b). 11464 11465Code and Data Size: Current and previous core subsystem library sizes are 11466shown below. These are the code and data sizes for the acpica.lib 11467produced 11468by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11469any ACPI driver or OSPM code. The debug version of the code includes the 11470debug output trace mechanism and has a much larger code and data size. 11471Note 11472that these values will vary depending on the efficiency of the compiler 11473and 11474the compiler options used during generation. 11475 11476 Previous Release: 11477 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11478 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 11479 Current Release: 11480 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 11481 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 11482 11483---------------------------------------- 1148410 December 2004. Summary of changes for version 20041210: 11485 11486ACPI 3.0 support is nearing completion in both the iASL compiler and the 11487ACPI CA core subsystem. 11488 114891) ACPI CA Core Subsystem: 11490 11491Fixed a problem in the ToDecimalString operator where the resulting 11492string 11493length was incorrectly calculated. The length is now calculated exactly, 11494eliminating incorrect AE_STRING_LIMIT exceptions. 11495 11496Fixed a problem in the ToHexString operator to allow a maximum 200 11497character 11498string to be produced. 11499 11500Fixed a problem in the internal string-to-buffer and buffer-to-buffer 11501copy 11502routine where the length of the resulting buffer was not truncated to the 11503new size (if the target buffer already existed). 11504 11505Code and Data Size: Current and previous core subsystem library sizes are 11506shown below. These are the code and data sizes for the acpica.lib 11507produced 11508by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11509any ACPI driver or OSPM code. The debug version of the code includes the 11510debug output trace mechanism and has a much larger code and data size. 11511Note 11512that these values will vary depending on the efficiency of the compiler 11513and 11514the compiler options used during generation. 11515 11516 Previous Release: 11517 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11518 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 11519 Current Release: 11520 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11521 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 11522 11523 115242) iASL Compiler/Disassembler: 11525 11526Implemented the new ACPI 3.0 resource template macros - DWordSpace, 11527ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 11528Includes support in the disassembler. 11529 11530Implemented support for the new (ACPI 3.0) parameter to the Register 11531macro, 11532AccessSize. 11533 11534Fixed a problem where the _HE resource name for the Interrupt macro was 11535referencing bit 0 instead of bit 1. 11536 11537Implemented check for maximum 255 interrupts in the Interrupt macro. 11538 11539Fixed a problem with the predefined resource descriptor names where 11540incorrect AML code was generated if the offset within the resource buffer 11541was 0 or 1. The optimizer shortened the AML code to a single byte opcode 11542but did not update the surrounding package lengths. 11543 11544Changes to the Dma macro: All channels within the channel list must be 11545in 11546the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 11547optional (default is BusMaster). 11548 11549Implemented check for maximum 7 data bytes for the VendorShort macro. 11550 11551The ReadWrite parameter is now optional for the Memory32 and similar 11552macros. 11553 11554---------------------------------------- 1155503 December 2004. Summary of changes for version 20041203: 11556 115571) ACPI CA Core Subsystem: 11558 11559The low-level field insertion/extraction code (exfldio) has been 11560completely 11561rewritten to eliminate unnecessary complexity, bugs, and boundary 11562conditions. 11563 11564Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 11565ToDecimalString 11566operators where the input operand could be inadvertently deleted if no 11567conversion was necessary (e.g., if the input to ToInteger was an Integer 11568object.) 11569 11570Fixed a problem with the ToDecimalString and ToHexString where an 11571incorrect 11572exception code was returned if the resulting string would be > 200 chars. 11573AE_STRING_LIMIT is now returned. 11574 11575Fixed a problem with the Concatenate operator where AE_OK was always 11576returned, even if the operation failed. 11577 11578Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 11579semaphores to be allocated. 11580 11581Code and Data Size: Current and previous core subsystem library sizes are 11582shown below. These are the code and data sizes for the acpica.lib 11583produced 11584by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11585any ACPI driver or OSPM code. The debug version of the code includes the 11586debug output trace mechanism and has a much larger code and data size. 11587Note 11588that these values will vary depending on the efficiency of the compiler 11589and 11590the compiler options used during generation. 11591 11592 Previous Release: 11593 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11594 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11595 Current Release: 11596 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11597 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 11598 11599 116002) iASL Compiler/Disassembler: 11601 11602Fixed typechecking for the ObjectType and SizeOf operators. Problem was 11603recently introduced in 20041119. 11604 11605Fixed a problem with the ToUUID macro where the upper nybble of each 11606buffer 11607byte was inadvertently set to zero. 11608 11609---------------------------------------- 1161019 November 2004. Summary of changes for version 20041119: 11611 116121) ACPI CA Core Subsystem: 11613 11614Fixed a problem in the internal ConvertToInteger routine where new 11615integers 11616were not truncated to 32 bits for 32-bit ACPI tables. This routine 11617converts 11618buffers and strings to integers. 11619 11620Implemented support to store a value to an Index() on a String object. 11621This 11622is an ACPI 2.0 feature that had not yet been implemented. 11623 11624Implemented new behavior for storing objects to individual package 11625elements 11626(via the Index() operator). The previous behavior was to invoke the 11627implicit 11628conversion rules if an object was already present at the index. The new 11629behavior is to simply delete any existing object and directly store the 11630new 11631object. Although the ACPI specification seems unclear on this subject, 11632other 11633ACPI implementations behave in this manner. (This is the root of the 11634AE_BAD_HEX_CONSTANT issue.) 11635 11636Modified the RSDP memory scan mechanism to support the extended checksum 11637for 11638ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 11639RSDP signature is found with a valid checksum. 11640 11641Code and Data Size: Current and previous core subsystem library sizes are 11642shown below. These are the code and data sizes for the acpica.lib 11643produced 11644by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11645any ACPI driver or OSPM code. The debug version of the code includes the 11646debug output trace mechanism and has a much larger code and data size. 11647Note 11648that these values will vary depending on the efficiency of the compiler 11649and 11650the compiler options used during generation. 11651 11652 Previous Release: 11653 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11654 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11655 Current Release: 11656 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11657 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11658 11659 116602) iASL Compiler/Disassembler: 11661 11662Fixed a missing semicolon in the aslcompiler.y file. 11663 11664---------------------------------------- 1166505 November 2004. Summary of changes for version 20041105: 11666 116671) ACPI CA Core Subsystem: 11668 11669Implemented support for FADT revision 2. This was an interim table 11670(between 11671ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 11672 11673Implemented optional support to allow uninitialized LocalX and ArgX 11674variables in a control method. The variables are initialized to an 11675Integer 11676object with a value of zero. This support is enabled by setting the 11677AcpiGbl_EnableInterpreterSlack flag to TRUE. 11678 11679Implemented support for Integer objects for the SizeOf operator. Either 116804 11681or 8 is returned, depending on the current integer size (32-bit or 64- 11682bit, 11683depending on the parent table revision). 11684 11685Fixed a problem in the implementation of the SizeOf and ObjectType 11686operators 11687where the operand was resolved to a value too early, causing incorrect 11688return values for some objects. 11689 11690Fixed some possible memory leaks during exceptional conditions. 11691 11692Code and Data Size: Current and previous core subsystem library sizes are 11693shown below. These are the code and data sizes for the acpica.lib 11694produced 11695by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11696any ACPI driver or OSPM code. The debug version of the code includes the 11697debug output trace mechanism and has a much larger code and data size. 11698Note 11699that these values will vary depending on the efficiency of the compiler 11700and 11701the compiler options used during generation. 11702 11703 Previous Release: 11704 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11705 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 11706 Current Release: 11707 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11708 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11709 11710 117112) iASL Compiler/Disassembler: 11712 11713Implemented support for all ACPI 3.0 reserved names and methods. 11714 11715Implemented all ACPI 3.0 grammar elements in the front-end, including 11716support for semicolons. 11717 11718Implemented the ACPI 3.0 Function() and ToUUID() macros 11719 11720Fixed a problem in the disassembler where a Scope() operator would not be 11721emitted properly if the target of the scope was in another table. 11722 11723---------------------------------------- 1172415 October 2004. Summary of changes for version 20041015: 11725 11726Note: ACPI CA is currently undergoing an in-depth and complete formal 11727evaluation to test/verify the following areas. Other suggestions are 11728welcome. This will result in an increase in the frequency of releases and 11729the number of bug fixes in the next few months. 11730 - Functional tests for all ASL/AML operators 11731 - All implicit/explicit type conversions 11732 - Bit fields and operation regions 11733 - 64-bit math support and 32-bit-only "truncated" math support 11734 - Exceptional conditions, both compiler and interpreter 11735 - Dynamic object deletion and memory leaks 11736 - ACPI 3.0 support when implemented 11737 - External interfaces to the ACPI subsystem 11738 11739 117401) ACPI CA Core Subsystem: 11741 11742Fixed two alignment issues on 64-bit platforms - within debug statements 11743in 11744AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 11745Address 11746field within the non-aligned ACPI generic address structure. 11747 11748Fixed a problem in the Increment and Decrement operators where incorrect 11749operand resolution could result in the inadvertent modification of the 11750original integer when the integer is passed into another method as an 11751argument and the arg is then incremented/decremented. 11752 11753Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 11754bit 11755BCD number were truncated during conversion. 11756 11757Fixed a problem in the ToDecimal operator where the length of the 11758resulting 11759string could be set incorrectly too long if the input operand was a 11760Buffer 11761object. 11762 11763Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 11764(0) 11765within a buffer would prematurely terminate a compare between buffer 11766objects. 11767 11768Added a check for string overflow (>200 characters as per the ACPI 11769specification) during the Concatenate operator with two string operands. 11770 11771Code and Data Size: Current and previous core subsystem library sizes are 11772shown below. These are the code and data sizes for the acpica.lib 11773produced 11774by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11775any ACPI driver or OSPM code. The debug version of the code includes the 11776debug output trace mechanism and has a much larger code and data size. 11777Note 11778that these values will vary depending on the efficiency of the compiler 11779and 11780the compiler options used during generation. 11781 11782 Previous Release: 11783 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11784 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 11785 Current Release: 11786 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11787 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 11788 11789 11790 117912) iASL Compiler/Disassembler: 11792 11793Allow the use of the ObjectType operator on uninitialized Locals and Args 11794(returns 0 as per the ACPI specification). 11795 11796Fixed a problem where the compiler would fault if there was a syntax 11797error 11798in the FieldName of all of the various CreateXXXField operators. 11799 11800Disallow the use of lower case letters within the EISAID macro, as per 11801the 11802ACPI specification. All EISAID strings must be of the form "UUUNNNN" 11803Where 11804U is an uppercase letter and N is a hex digit. 11805 11806 11807---------------------------------------- 1180806 October 2004. Summary of changes for version 20041006: 11809 118101) ACPI CA Core Subsystem: 11811 11812Implemented support for the ACPI 3.0 Timer operator. This ASL function 11813implements a 64-bit timer with 100 nanosecond granularity. 11814 11815Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 11816implement the ACPI 3.0 Timer operator. This allows the host OS to 11817implement 11818the timer with the best clock available. Also, it keeps the core 11819subsystem 11820out of the clock handling business, since the host OS (usually) performs 11821this function. 11822 11823Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 11824functions use a 64-bit address which is part of the packed ACPI Generic 11825Address Structure. Since the structure is non-aligned, the alignment 11826macros 11827are now used to extract the address to a local variable before use. 11828 11829Fixed a problem where the ToInteger operator assumed all input strings 11830were 11831hexadecimal. The operator now handles both decimal strings and hex 11832strings 11833(prefixed with "0x"). 11834 11835Fixed a problem where the string length in the string object created as a 11836result of the internal ConvertToString procedure could be incorrect. This 11837potentially affected all implicit conversions and also the 11838ToDecimalString 11839and ToHexString operators. 11840 11841Fixed two problems in the ToString operator. If the length parameter was 11842zero, an incorrect string object was created and the value of the input 11843length parameter was inadvertently changed from zero to Ones. 11844 11845Fixed a problem where the optional ResourceSource string in the 11846ExtendedIRQ 11847resource macro was ignored. 11848 11849Simplified the interfaces to the internal division functions, reducing 11850code 11851size and complexity. 11852 11853Code and Data Size: Current and previous core subsystem library sizes are 11854shown below. These are the code and data sizes for the acpica.lib 11855produced 11856by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11857any ACPI driver or OSPM code. The debug version of the code includes the 11858debug output trace mechanism and has a much larger code and data size. 11859Note 11860that these values will vary depending on the efficiency of the compiler 11861and 11862the compiler options used during generation. 11863 11864 Previous Release: 11865 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 11866 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 11867 Current Release: 11868 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11869 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 11870 11871 118722) iASL Compiler/Disassembler: 11873 11874Implemented support for the ACPI 3.0 Timer operator. 11875 11876Fixed a problem where the Default() operator was inadvertently ignored in 11877a 11878Switch/Case block. This was a problem in the translation of the Switch 11879statement to If...Else pairs. 11880 11881Added support to allow a standalone Return operator, with no parentheses 11882(or 11883operands). 11884 11885Fixed a problem with code generation for the ElseIf operator where the 11886translated Else...If parse tree was improperly constructed leading to the 11887loss of some code. 11888 11889---------------------------------------- 1189022 September 2004. Summary of changes for version 20040922: 11891 118921) ACPI CA Core Subsystem: 11893 11894Fixed a problem with the implementation of the LNot() operator where 11895"Ones" 11896was not returned for the TRUE case. Changed the code to return Ones 11897instead 11898of (!Arg) which was usually 1. This change affects iASL constant folding 11899for 11900this operator also. 11901 11902Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was 11903not 11904initialized properly -- Now zero the entire buffer in this case where the 11905buffer already exists. 11906 11907Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 11908Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 11909related code considerably. This will require changes/updates to all OS 11910interface layers (OSLs.) 11911 11912Implemented a new external interface, AcpiInstallExceptionHandler, to 11913allow 11914a system exception handler to be installed. This handler is invoked upon 11915any 11916run-time exception that occurs during control method execution. 11917 11918Added support for the DSDT in AcpiTbFindTable. This allows the 11919DataTableRegion() operator to access the local copy of the DSDT. 11920 11921Code and Data Size: Current and previous core subsystem library sizes are 11922shown below. These are the code and data sizes for the acpica.lib 11923produced 11924by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11925any ACPI driver or OSPM code. The debug version of the code includes the 11926debug output trace mechanism and has a much larger code and data size. 11927Note 11928that these values will vary depending on the efficiency of the compiler 11929and 11930the compiler options used during generation. 11931 11932 Previous Release: 11933 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 11934 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 11935 Current Release: 11936 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 11937 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 11938 11939 119402) iASL Compiler/Disassembler: 11941 11942Fixed a problem with constant folding and the LNot operator. LNot was 11943returning 1 in the TRUE case, not Ones as per the ACPI specification. 11944This 11945could result in the generation of an incorrect folded/reduced constant. 11946 11947End-Of-File is now allowed within a "//"-style comment. A parse error no 11948longer occurs if such a comment is at the very end of the input ASL 11949source 11950file. 11951 11952Implemented the "-r" option to override the Revision in the table header. 11953The initial use of this option will be to simplify the evaluation of the 11954AML 11955interpreter by allowing a single ASL source module to be compiled for 11956either 1195732-bit or 64-bit integers. 11958 11959 11960---------------------------------------- 1196127 August 2004. Summary of changes for version 20040827: 11962 119631) ACPI CA Core Subsystem: 11964 11965- Implemented support for implicit object conversion in the non-numeric 11966logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, 11967and 11968LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 11969the second operand is implicitly converted on the fly to match the type 11970of 11971the first operand. For example: 11972 11973 LEqual (Source1, Source2) 11974 11975Source1 and Source2 must each evaluate to an integer, a string, or a 11976buffer. 11977The data type of Source1 dictates the required type of Source2. Source2 11978is 11979implicitly converted if necessary to match the type of Source1. 11980 11981- Updated and corrected the behavior of the string conversion support. 11982The 11983rules concerning conversion of buffers to strings (according to the ACPI 11984specification) are as follows: 11985 11986ToDecimalString - explicit byte-wise conversion of buffer to string of 11987decimal values (0-255) separated by commas. ToHexString - explicit byte- 11988wise 11989conversion of buffer to string of hex values (0-FF) separated by commas. 11990ToString - explicit byte-wise conversion of buffer to string. Byte-by- 11991byte 11992copy with no transform except NULL terminated. Any other implicit buffer- 11993to- 11994string conversion - byte-wise conversion of buffer to string of hex 11995values 11996(0-FF) separated by spaces. 11997 11998- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 11999 12000- Fixed a problem in AcpiNsGetPathnameLength where the returned length 12001was 12002one byte too short in the case of a node in the root scope. This could 12003cause a fault during debug output. 12004 12005- Code and Data Size: Current and previous core subsystem library sizes 12006are 12007shown below. These are the code and data sizes for the acpica.lib 12008produced 12009by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12010any ACPI driver or OSPM code. The debug version of the code includes the 12011debug output trace mechanism and has a much larger code and data size. 12012Note 12013that these values will vary depending on the efficiency of the compiler 12014and 12015the compiler options used during generation. 12016 12017 Previous Release: 12018 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 12019 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 12020 Current Release: 12021 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 12022 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 12023 12024 120252) iASL Compiler/Disassembler: 12026 12027- Fixed a Linux generation error. 12028 12029 12030---------------------------------------- 1203116 August 2004. Summary of changes for version 20040816: 12032 120331) ACPI CA Core Subsystem: 12034 12035Designed and implemented support within the AML interpreter for the so- 12036called "implicit return". This support returns the result of the last 12037ASL 12038operation within a control method, in the absence of an explicit Return() 12039operator. A few machines depend on this behavior, even though it is not 12040explicitly supported by the ASL language. It is optional support that 12041can 12042be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 12043 12044Removed support for the PCI_Config address space from the internal low 12045level 12046hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 12047support was not used internally, and would not work correctly anyway 12048because 12049the PCI bus number and segment number were not supported. There are 12050separate interfaces for PCI configuration space access because of the 12051unique 12052interface. 12053 12054Code and Data Size: Current and previous core subsystem library sizes are 12055shown below. These are the code and data sizes for the acpica.lib 12056produced 12057by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12058any ACPI driver or OSPM code. The debug version of the code includes the 12059debug output trace mechanism and has a much larger code and data size. 12060Note 12061that these values will vary depending on the efficiency of the compiler 12062and 12063the compiler options used during generation. 12064 12065 Previous Release: 12066 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 12067 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 12068 Current Release: 12069 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 12070 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 12071 12072 120732) iASL Compiler/Disassembler: 12074 12075Fixed a problem where constants in ASL expressions at the root level (not 12076within a control method) could be inadvertently truncated during code 12077generation. This problem was introduced in the 20040715 release. 12078 12079 12080---------------------------------------- 1208115 July 2004. Summary of changes for version 20040715: 12082 120831) ACPI CA Core Subsystem: 12084 12085Restructured the internal HW GPE interfaces to pass/track the current 12086state 12087of interrupts (enabled/disabled) in order to avoid possible deadlock and 12088increase flexibility of the interfaces. 12089 12090Implemented a "lexicographical compare" for String and Buffer objects 12091within 12092the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual - 12093- 12094as per further clarification to the ACPI specification. Behavior is 12095similar 12096to C library "strcmp". 12097 12098Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 12099external function. In the 32-bit non-debug case, the stack use has been 12100reduced from 168 bytes to 32 bytes. 12101 12102Deployed a new run-time configuration flag, 12103AcpiGbl_EnableInterpreterSlack, 12104whose purpose is to allow the AML interpreter to forgive certain bad AML 12105constructs. Default setting is FALSE. 12106 12107Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 12108IO 12109support code. If enabled, it allows field access to go beyond the end of 12110a 12111region definition if the field is within the region length rounded up to 12112the 12113next access width boundary (a common coding error.) 12114 12115Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 12116ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 12117these 12118symbols are lowercased by the latest version of the AcpiSrc tool. 12119 12120The prototypes for the PCI interfaces in acpiosxf.h have been updated to 12121rename "Register" to simply "Reg" to prevent certain compilers from 12122complaining. 12123 12124Code and Data Size: Current and previous core subsystem library sizes are 12125shown below. These are the code and data sizes for the acpica.lib 12126produced 12127by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12128any ACPI driver or OSPM code. The debug version of the code includes the 12129debug output trace mechanism and has a much larger code and data size. 12130Note 12131that these values will vary depending on the efficiency of the compiler 12132and 12133the compiler options used during generation. 12134 12135 Previous Release: 12136 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 12137 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 12138 Current Release: 12139 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 12140 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 12141 12142 121432) iASL Compiler/Disassembler: 12144 12145Implemented full support for Package objects within the Case() operator. 12146Note: The Break() operator is currently not supported within Case blocks 12147(TermLists) as there is some question about backward compatibility with 12148ACPI 121491.0 interpreters. 12150 12151 12152Fixed a problem where complex terms were not supported properly within 12153the 12154Switch() operator. 12155 12156Eliminated extraneous warning for compiler-emitted reserved names of the 12157form "_T_x". (Used in Switch/Case operators.) 12158 12159Eliminated optimization messages for "_T_x" objects and small constants 12160within the DefinitionBlock operator. 12161 12162 12163---------------------------------------- 1216415 June 2004. Summary of changes for version 20040615: 12165 121661) ACPI CA Core Subsystem: 12167 12168Implemented support for Buffer and String objects (as per ACPI 2.0) for 12169the 12170following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 12171LLessEqual. 12172 12173All directory names in the entire source package are lower case, as they 12174were in earlier releases. 12175 12176Implemented "Disassemble" command in the AML debugger that will 12177disassemble 12178a single control method. 12179 12180Code and Data Size: Current and previous core subsystem library sizes are 12181shown below. These are the code and data sizes for the acpica.lib 12182produced 12183by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12184any ACPI driver or OSPM code. The debug version of the code includes the 12185debug output trace mechanism and has a much larger code and data size. 12186Note 12187that these values will vary depending on the efficiency of the compiler 12188and 12189the compiler options used during generation. 12190 12191 Previous Release: 12192 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 12193 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 12194 12195 Current Release: 12196 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 12197 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 12198 12199 122002) iASL Compiler/Disassembler: 12201 12202Implemented support for Buffer and String objects (as per ACPI 2.0) for 12203the 12204following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 12205LLessEqual. 12206 12207All directory names in the entire source package are lower case, as they 12208were in earlier releases. 12209 12210Fixed a fault when using the -g or -d<nofilename> options if the FADT was 12211not found. 12212 12213Fixed an issue with the Windows version of the compiler where later 12214versions 12215of Windows place the FADT in the registry under the name "FADT" and not 12216"FACP" as earlier versions did. This applies when using the -g or - 12217d<nofilename> options. The compiler now looks for both strings as 12218necessary. 12219 12220Fixed a problem with compiler namepath optimization where a namepath 12221within 12222the Scope() operator could not be optimized if the namepath was a subpath 12223of 12224the current scope path. 12225 12226---------------------------------------- 1222727 May 2004. Summary of changes for version 20040527: 12228 122291) ACPI CA Core Subsystem: 12230 12231Completed a new design and implementation for EBDA (Extended BIOS Data 12232Area) 12233support in the RSDP scan code. The original code improperly scanned for 12234the 12235EBDA by simply scanning from memory location 0 to 0x400. The correct 12236method 12237is to first obtain the EBDA pointer from within the BIOS data area, then 12238scan 1K of memory starting at the EBDA pointer. There appear to be few 12239if 12240any machines that place the RSDP in the EBDA, however. 12241 12242Integrated a fix for a possible fault during evaluation of BufferField 12243arguments. Obsolete code that was causing the problem was removed. 12244 12245Found and fixed a problem in the Field Support Code where data could be 12246corrupted on a bit field read that starts on an aligned boundary but does 12247not end on an aligned boundary. Merged the read/write "datum length" 12248calculation code into a common procedure. 12249 12250Rolled in a couple of changes to the FreeBSD-specific header. 12251 12252 12253Code and Data Size: Current and previous core subsystem library sizes are 12254shown below. These are the code and data sizes for the acpica.lib 12255produced 12256by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12257any ACPI driver or OSPM code. The debug version of the code includes the 12258debug output trace mechanism and has a much larger code and data size. 12259Note 12260that these values will vary depending on the efficiency of the compiler 12261and 12262the compiler options used during generation. 12263 12264 Previous Release: 12265 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 12266 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 12267 Current Release: 12268 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 12269 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 12270 12271 122722) iASL Compiler/Disassembler: 12273 12274Fixed a generation warning produced by some overly-verbose compilers for 12275a 1227664-bit constant. 12277 12278---------------------------------------- 1227914 May 2004. Summary of changes for version 20040514: 12280 122811) ACPI CA Core Subsystem: 12282 12283Fixed a problem where hardware GPE enable bits sometimes not set properly 12284during and after GPE method execution. Result of 04/27 changes. 12285 12286Removed extra "clear all GPEs" when sleeping/waking. 12287 12288Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 12289AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 12290to 12291the new AcpiEv* calls as appropriate. 12292 12293ACPI_OS_NAME was removed from the OS-specific headers. The default name 12294is 12295now "Microsoft Windows NT" for maximum compatibility. However this can 12296be 12297changed by modifying the acconfig.h file. 12298 12299Allow a single invocation of AcpiInstallNotifyHandler for a handler that 12300traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 12301 12302Run _INI methods on ThermalZone objects. This is against the ACPI 12303specification, but there is apparently ASL code in the field that has 12304these 12305_INI methods, and apparently "other" AML interpreters execute them. 12306 12307Performed a full 16/32/64 bit lint that resulted in some small changes. 12308 12309Added a sleep simulation command to the AML debugger to test sleep code. 12310 12311Code and Data Size: Current and previous core subsystem library sizes are 12312shown below. These are the code and data sizes for the acpica.lib 12313produced 12314by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12315any ACPI driver or OSPM code. The debug version of the code includes the 12316debug output trace mechanism and has a much larger code and data size. 12317Note 12318that these values will vary depending on the efficiency of the compiler 12319and 12320the compiler options used during generation. 12321 12322 Previous Release: 12323 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 12324 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 12325 Current Release: 12326 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 12327 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 12328 12329---------------------------------------- 1233027 April 2004. Summary of changes for version 20040427: 12331 123321) ACPI CA Core Subsystem: 12333 12334Completed a major overhaul of the GPE handling within ACPI CA. There are 12335now three types of GPEs: wake-only, runtime-only, and combination 12336wake/run. 12337The only GPEs allowed to be combination wake/run are for button-style 12338devices such as a control-method power button, control-method sleep 12339button, 12340or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 12341not 12342referenced by any _PRW methods are marked for "runtime" and hardware 12343enabled. Any GPE that is referenced by a _PRW method is marked for 12344"wake" 12345(and disabled at runtime). However, at sleep time, only those GPEs that 12346have been specifically enabled for wake via the AcpiEnableGpe interface 12347will 12348actually be hardware enabled. 12349 12350A new external interface has been added, AcpiSetGpeType(), that is meant 12351to 12352be used by device drivers to force a GPE to a particular type. It will 12353be 12354especially useful for the drivers for the button devices mentioned above. 12355 12356Completed restructuring of the ACPI CA initialization sequence so that 12357default operation region handlers are installed before GPEs are 12358initialized 12359and the _PRW methods are executed. This will prevent errors when the 12360_PRW 12361methods attempt to access system memory or I/O space. 12362 12363GPE enable/disable no longer reads the GPE enable register. We now keep 12364the 12365enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 12366thus no longer depend on the hardware to maintain these bits. 12367 12368Always clear the wake status and fixed/GPE status bits before sleep, even 12369for state S5. 12370 12371Improved the AML debugger output for displaying the GPE blocks and their 12372current status. 12373 12374Added new strings for the _OSI method, of the form "Windows 2001 SPx" 12375where 12376x = 0,1,2,3,4. 12377 12378Fixed a problem where the physical address was incorrectly calculated 12379when 12380the Load() operator was used to directly load from an Operation Region 12381(vs. 12382loading from a Field object.) Also added check for minimum table length 12383for 12384this case. 12385 12386Fix for multiple mutex acquisition. Restore original thread SyncLevel on 12387mutex release. 12388 12389Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 12390consistency with the other fields returned. 12391 12392Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 12393structure for each GPE in the system, so the size of this structure is 12394important. 12395 12396CPU stack requirement reduction: Cleaned up the method execution and 12397object 12398evaluation paths so that now a parameter structure is passed, instead of 12399copying the various method parameters over and over again. 12400 12401In evregion.c: Correctly exit and reenter the interpreter region if and 12402only if dispatching an operation region request to a user-installed 12403handler. 12404Do not exit/reenter when dispatching to a default handler (e.g., default 12405system memory or I/O handlers) 12406 12407 12408Notes for updating drivers for the new GPE support. The following 12409changes 12410must be made to ACPI-related device drivers that are attached to one or 12411more 12412GPEs: (This information will be added to the ACPI CA Programmer 12413Reference.) 12414 124151) AcpiInstallGpeHandler no longer automatically enables the GPE, you 12416must 12417explicitly call AcpiEnableGpe. 124182) There is a new interface called AcpiSetGpeType. This should be called 12419before enabling the GPE. Also, this interface will automatically disable 12420the GPE if it is currently enabled. 124213) AcpiEnableGpe no longer supports a GPE type flag. 12422 12423Specific drivers that must be changed: 124241) EC driver: 12425 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 12426AeGpeHandler, NULL); 12427 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 12428 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 12429 124302) Button Drivers (Power, Lid, Sleep): 12431Run _PRW method under parent device 12432If _PRW exists: /* This is a control-method button */ 12433 Extract GPE number and possibly GpeDevice 12434 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 12435 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 12436 12437For all other devices that have _PRWs, we automatically set the GPE type 12438to 12439ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. 12440This 12441must be done on a selective basis, usually requiring some kind of user 12442app 12443to allow the user to pick the wake devices. 12444 12445 12446Code and Data Size: Current and previous core subsystem library sizes are 12447shown below. These are the code and data sizes for the acpica.lib 12448produced 12449by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12450any ACPI driver or OSPM code. The debug version of the code includes the 12451debug output trace mechanism and has a much larger code and data size. 12452Note 12453that these values will vary depending on the efficiency of the compiler 12454and 12455the compiler options used during generation. 12456 12457 Previous Release: 12458 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 12459 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 12460 Current Release: 12461 12462 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 12463 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 12464 12465 12466 12467---------------------------------------- 1246802 April 2004. Summary of changes for version 20040402: 12469 124701) ACPI CA Core Subsystem: 12471 12472Fixed an interpreter problem where an indirect store through an ArgX 12473parameter was incorrectly applying the "implicit conversion rules" during 12474the store. From the ACPI specification: "If the target is a method local 12475or 12476argument (LocalX or ArgX), no conversion is performed and the result is 12477stored directly to the target". The new behavior is to disable implicit 12478conversion during ALL stores to an ArgX. 12479 12480Changed the behavior of the _PRW method scan to ignore any and all errors 12481returned by a given _PRW. This prevents the scan from aborting from the 12482failure of any single _PRW. 12483 12484Moved the runtime configuration parameters from the global init procedure 12485to 12486static variables in acglobal.h. This will allow the host to override the 12487default values easily. 12488 12489Code and Data Size: Current and previous core subsystem library sizes are 12490shown below. These are the code and data sizes for the acpica.lib 12491produced 12492by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12493any ACPI driver or OSPM code. The debug version of the code includes the 12494debug output trace mechanism and has a much larger code and data size. 12495Note 12496that these values will vary depending on the efficiency of the compiler 12497and 12498the compiler options used during generation. 12499 12500 Previous Release: 12501 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 12502 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 12503 Current Release: 12504 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 12505 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 12506 12507 125082) iASL Compiler/Disassembler: 12509 12510iASL now fully disassembles SSDTs. However, External() statements are 12511not 12512generated automatically for unresolved symbols at this time. This is a 12513planned feature for future implementation. 12514 12515Fixed a scoping problem in the disassembler that occurs when the type of 12516the 12517target of a Scope() operator is overridden. This problem caused an 12518incorrectly nested internal namespace to be constructed. 12519 12520Any warnings or errors that are emitted during disassembly are now 12521commented 12522out automatically so that the resulting file can be recompiled without 12523any 12524hand editing. 12525 12526---------------------------------------- 1252726 March 2004. Summary of changes for version 20040326: 12528 125291) ACPI CA Core Subsystem: 12530 12531Implemented support for "wake" GPEs via interaction between GPEs and the 12532_PRW methods. Every GPE that is pointed to by one or more _PRWs is 12533identified as a WAKE GPE and by default will no longer be enabled at 12534runtime. Previously, we were blindly enabling all GPEs with a 12535corresponding 12536_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 12537We 12538believe this has been the cause of thousands of "spurious" GPEs on some 12539systems. 12540 12541This new GPE behavior is can be reverted to the original behavior (enable 12542ALL GPEs at runtime) via a runtime flag. 12543 12544Fixed a problem where aliased control methods could not access objects 12545properly. The proper scope within the namespace was not initialized 12546(transferred to the target of the aliased method) before executing the 12547target method. 12548 12549Fixed a potential race condition on internal object deletion on the 12550return 12551object in AcpiEvaluateObject. 12552 12553Integrated a fix for resource descriptors where both _MEM and _MTP were 12554being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 12555wide, 0x0F instead of 0x03.) 12556 12557Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, 12558preventing 12559a 12560fault in some cases. 12561 12562Updated Notify() values for debug statements in evmisc.c 12563 12564Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 12565 12566Code and Data Size: Current and previous core subsystem library sizes are 12567shown below. These are the code and data sizes for the acpica.lib 12568produced 12569by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12570any ACPI driver or OSPM code. The debug version of the code includes the 12571debug output trace mechanism and has a much larger code and data size. 12572Note 12573that these values will vary depending on the efficiency of the compiler 12574and 12575the compiler options used during generation. 12576 12577 Previous Release: 12578 12579 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 12580 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 12581 Current Release: 12582 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 12583 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 12584 12585---------------------------------------- 1258611 March 2004. Summary of changes for version 20040311: 12587 125881) ACPI CA Core Subsystem: 12589 12590Fixed a problem where errors occurring during the parse phase of control 12591method execution did not abort cleanly. For example, objects created and 12592installed in the namespace were not deleted. This caused all subsequent 12593invocations of the method to return the AE_ALREADY_EXISTS exception. 12594 12595Implemented a mechanism to force a control method to "Serialized" 12596execution 12597if the method attempts to create namespace objects. (The root of the 12598AE_ALREADY_EXISTS problem.) 12599 12600Implemented support for the predefined _OSI "internal" control method. 12601Initial supported strings are "Linux", "Windows 2000", "Windows 2001", 12602and 12603"Windows 2001.1", and can be easily upgraded for new strings as 12604necessary. 12605This feature will allow "other" operating systems to execute the fully 12606tested, "Windows" code path through the ASL code 12607 12608Global Lock Support: Now allows multiple acquires and releases with any 12609internal thread. Removed concept of "owning thread" for this special 12610mutex. 12611 12612Fixed two functions that were inappropriately declaring large objects on 12613the 12614CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 12615during 12616method execution considerably. 12617 12618Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 12619S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 12620 12621Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 12622defined on the machine. 12623 12624Implemented two runtime options: One to force all control method 12625execution 12626to "Serialized" to mimic Windows behavior, another to disable _OSI 12627support 12628if it causes problems on a given machine. 12629 12630Code and Data Size: Current and previous core subsystem library sizes are 12631shown below. These are the code and data sizes for the acpica.lib 12632produced 12633by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12634any ACPI driver or OSPM code. The debug version of the code includes the 12635debug output trace mechanism and has a much larger code and data size. 12636Note 12637that these values will vary depending on the efficiency of the compiler 12638and 12639the compiler options used during generation. 12640 12641 Previous Release: 12642 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 12643 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 12644 Current Release: 12645 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 12646 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 12647 126482) iASL Compiler/Disassembler: 12649 12650Fixed an array size problem for FreeBSD that would cause the compiler to 12651fault. 12652 12653---------------------------------------- 1265420 February 2004. Summary of changes for version 20040220: 12655 12656 126571) ACPI CA Core Subsystem: 12658 12659Implemented execution of _SxD methods for Device objects in the 12660GetObjectInfo interface. 12661 12662Fixed calls to _SST method to pass the correct arguments. 12663 12664Added a call to _SST on wake to restore to "working" state. 12665 12666Check for End-Of-Buffer failure case in the WalkResources interface. 12667 12668Integrated fix for 64-bit alignment issue in acglobal.h by moving two 12669structures to the beginning of the file. 12670 12671After wake, clear GPE status register(s) before enabling GPEs. 12672 12673After wake, clear/enable power button. (Perhaps we should clear/enable 12674all 12675fixed events upon wake.) 12676 12677Fixed a couple of possible memory leaks in the Namespace manager. 12678 12679Integrated latest acnetbsd.h file. 12680 12681---------------------------------------- 1268211 February 2004. Summary of changes for version 20040211: 12683 12684 126851) ACPI CA Core Subsystem: 12686 12687Completed investigation and implementation of the call-by-reference 12688mechanism for control method arguments. 12689 12690Fixed a problem where a store of an object into an indexed package could 12691fail if the store occurs within a different method than the method that 12692created the package. 12693 12694Fixed a problem where the ToDecimal operator could return incorrect 12695results. 12696 12697Fixed a problem where the CopyObject operator could fail on some of the 12698more 12699obscure objects (e.g., Reference objects.) 12700 12701Improved the output of the Debug object to display buffer, package, and 12702index objects. 12703 12704Fixed a problem where constructs of the form "RefOf (ArgX)" did not 12705return 12706the expected result. 12707 12708Added permanent ACPI_REPORT_ERROR macros for all instances of the 12709ACPI_AML_INTERNAL exception. 12710 12711Integrated latest version of acfreebsd.h 12712 12713---------------------------------------- 1271416 January 2004. Summary of changes for version 20040116: 12715 12716The purpose of this release is primarily to update the copyright years in 12717each module, thus causing a huge number of diffs. There are a few small 12718functional changes, however. 12719 127201) ACPI CA Core Subsystem: 12721 12722Improved error messages when there is a problem finding one or more of 12723the 12724required base ACPI tables 12725 12726Reintroduced the definition of APIC_HEADER in actbl.h 12727 12728Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 12729 12730Removed extraneous reference to NewObj in dsmthdat.c 12731 127322) iASL compiler 12733 12734Fixed a problem introduced in December that disabled the correct 12735disassembly 12736of Resource Templates 12737 12738 12739---------------------------------------- 1274003 December 2003. Summary of changes for version 20031203: 12741 127421) ACPI CA Core Subsystem: 12743 12744Changed the initialization of Operation Regions during subsystem 12745init to perform two entire walks of the ACPI namespace; The first 12746to initialize the regions themselves, the second to execute the 12747_REG methods. This fixed some interdependencies across _REG 12748methods found on some machines. 12749 12750Fixed a problem where a Store(Local0, Local1) could simply update 12751the object reference count, and not create a new copy of the 12752object if the Local1 is uninitialized. 12753 12754Implemented support for the _SST reserved method during sleep 12755transitions. 12756 12757Implemented support to clear the SLP_TYP and SLP_EN bits when 12758waking up, this is apparently required by some machines. 12759 12760When sleeping, clear the wake status only if SleepState is not S5. 12761 12762Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 12763pointer arithmetic advanced a string pointer too far. 12764 12765Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 12766could be returned if the requested table has not been loaded. 12767 12768Within the support for IRQ resources, restructured the handling of 12769the active and edge/level bits. 12770 12771Fixed a few problems in AcpiPsxExecute() where memory could be 12772leaked under certain error conditions. 12773 12774Improved error messages for the cases where the ACPI mode could 12775not be entered. 12776 12777Code and Data Size: Current and previous core subsystem library 12778sizes are shown below. These are the code and data sizes for the 12779acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12780these values do not include any ACPI driver or OSPM code. The 12781debug version of the code includes the debug output trace 12782mechanism and has a much larger code and data size. Note that 12783these values will vary depending on the efficiency of the compiler 12784and the compiler options used during generation. 12785 12786 Previous Release (20031029): 12787 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 12788 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 12789 Current Release: 12790 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 12791 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 12792 127932) iASL Compiler/Disassembler: 12794 12795Implemented a fix for the iASL disassembler where a bad index was 12796generated. This was most noticeable on 64-bit platforms 12797 12798 12799---------------------------------------- 1280029 October 2003. Summary of changes for version 20031029: 12801 128021) ACPI CA Core Subsystem: 12803 12804 12805Fixed a problem where a level-triggered GPE with an associated 12806_Lxx control method was incorrectly cleared twice. 12807 12808Fixed a problem with the Field support code where an access can 12809occur beyond the end-of-region if the field is non-aligned but 12810extends to the very end of the parent region (resulted in an 12811AE_AML_REGION_LIMIT exception.) 12812 12813Fixed a problem with ACPI Fixed Events where an RT Clock handler 12814would not get invoked on an RTC event. The RTC event bitmasks for 12815the PM1 registers were not being initialized properly. 12816 12817Implemented support for executing _STA and _INI methods for 12818Processor objects. Although this is currently not part of the 12819ACPI specification, there is existing ASL code that depends on the 12820init-time execution of these methods. 12821 12822Implemented and deployed a GetDescriptorName function to decode 12823the various types of internal descriptors. Guards against null 12824descriptors during debug output also. 12825 12826Implemented and deployed a GetNodeName function to extract the 4- 12827character namespace node name. This function simplifies the debug 12828and error output, as well as guarding against null pointers during 12829output. 12830 12831Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 12832simplify the debug and error output of 64-bit integers. This 12833macro replaces the HIDWORD and LODWORD macros for dumping these 12834integers. 12835 12836Updated the implementation of the Stall() operator to only call 12837AcpiOsStall(), and also return an error if the operand is larger 12838than 255. This preserves the required behavior of not 12839relinquishing the processor, as would happen if AcpiOsSleep() was 12840called for "long stalls". 12841 12842Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 12843initialized are now treated as NOOPs. 12844 12845Cleaned up a handful of warnings during 64-bit generation. 12846 12847Fixed a reported error where and incorrect GPE number was passed 12848to the GPE dispatch handler. This value is only used for error 12849output, however. Used this opportunity to clean up and streamline 12850the GPE dispatch code. 12851 12852Code and Data Size: Current and previous core subsystem library 12853sizes are shown below. These are the code and data sizes for the 12854acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12855these values do not include any ACPI driver or OSPM code. The 12856 12857debug version of the code includes the debug output trace 12858mechanism and has a much larger code and data size. Note that 12859these values will vary depending on the efficiency of the compiler 12860and the compiler options used during generation. 12861 12862 Previous Release (20031002): 12863 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 12864 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 12865 Current Release: 12866 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 12867 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 12868 12869 128702) iASL Compiler/Disassembler: 12871 12872Updated the iASL compiler to return an error if the operand to the 12873Stall() operator is larger than 255. 12874 12875 12876---------------------------------------- 1287702 October 2003. Summary of changes for version 20031002: 12878 12879 128801) ACPI CA Core Subsystem: 12881 12882Fixed a problem with Index Fields where the index was not 12883incremented for fields that require multiple writes to the 12884index/data registers (Fields that are wider than the data 12885register.) 12886 12887Fixed a problem with all Field objects where a write could go 12888beyond the end-of-field if the field was larger than the access 12889granularity and therefore required multiple writes to complete the 12890request. An extra write beyond the end of the field could happen 12891inadvertently. 12892 12893Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 12894would incorrectly be returned if the width of the Data Register 12895was larger than the specified field access width. 12896 12897Completed fixes for LoadTable() and Unload() and verified their 12898operation. Implemented full support for the "DdbHandle" object 12899throughout the ACPI CA subsystem. 12900 12901Implemented full support for the MADT and ECDT tables in the ACPI 12902CA header files. Even though these tables are not directly 12903consumed by ACPI CA, the header definitions are useful for ACPI 12904device drivers. 12905 12906Integrated resource descriptor fixes posted to the Linux ACPI 12907list. This included checks for minimum descriptor length, and 12908support for trailing NULL strings within descriptors that have 12909optional string elements. 12910 12911Code and Data Size: Current and previous core subsystem library 12912sizes are shown below. These are the code and data sizes for the 12913acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12914these values do not include any ACPI driver or OSPM code. The 12915debug version of the code includes the debug output trace 12916mechanism and has a much larger code and data size. Note that 12917these values will vary depending on the efficiency of the compiler 12918and the compiler options used during generation. 12919 12920 Previous Release (20030918): 12921 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 12922 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 12923 Current Release: 12924 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 12925 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 12926 12927 129282) iASL Compiler: 12929 12930Implemented detection of non-ASCII characters within the input 12931source ASL file. This catches attempts to compile binary (AML) 12932files early in the compile, with an informative error message. 12933 12934Fixed a problem where the disassembler would fault if the output 12935filename could not be generated or if the output file could not be 12936opened. 12937 12938---------------------------------------- 1293918 September 2003. Summary of changes for version 20030918: 12940 12941 129421) ACPI CA Core Subsystem: 12943 12944Found and fixed a longstanding problem with the late execution of 12945the various deferred AML opcodes (such as Operation Regions, 12946Buffer Fields, Buffers, and Packages). If the name string 12947specified for the name of the new object placed the object in a 12948scope other than the current scope, the initialization/execution 12949of the opcode failed. The solution to this problem was to 12950implement a mechanism where the late execution of such opcodes 12951does not attempt to lookup/create the name a second time in an 12952incorrect scope. This fixes the "region size computed 12953incorrectly" problem. 12954 12955Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 12956Global Lock AE_BAD_PARAMETER error. 12957 12958Fixed several 64-bit issues with prototypes, casting and data 12959types. 12960 12961Removed duplicate prototype from acdisasm.h 12962 12963Fixed an issue involving EC Operation Region Detach (Shaohua Li) 12964 12965Code and Data Size: Current and previous core subsystem library 12966sizes are shown below. These are the code and data sizes for the 12967acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12968these values do not include any ACPI driver or OSPM code. The 12969debug version of the code includes the debug output trace 12970mechanism and has a much larger code and data size. Note that 12971these values will vary depending on the efficiency of the compiler 12972and the compiler options used during generation. 12973 12974 Previous Release: 12975 12976 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 12977 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 12978 Current Release: 12979 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 12980 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 12981 12982 129832) Linux: 12984 12985Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 12986correct sleep time in seconds. 12987 12988---------------------------------------- 1298914 July 2003. Summary of changes for version 20030619: 12990 129911) ACPI CA Core Subsystem: 12992 12993Parse SSDTs in order discovered, as opposed to reverse order 12994(Hrvoje Habjanic) 12995 12996Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 12997Klausner, 12998 Nate Lawson) 12999 13000 130012) Linux: 13002 13003Dynamically allocate SDT list (suggested by Andi Kleen) 13004 13005proc function return value cleanups (Andi Kleen) 13006 13007Correctly handle NMI watchdog during long stalls (Andrew Morton) 13008 13009Make it so acpismp=force works (reported by Andrew Morton) 13010 13011 13012---------------------------------------- 1301319 June 2003. Summary of changes for version 20030619: 13014 130151) ACPI CA Core Subsystem: 13016 13017Fix To/FromBCD, eliminating the need for an arch-specific #define. 13018 13019Do not acquire a semaphore in the S5 shutdown path. 13020 13021Fix ex_digits_needed for 0. (Takayoshi Kochi) 13022 13023Fix sleep/stall code reversal. (Andi Kleen) 13024 13025Revert a change having to do with control method calling 13026semantics. 13027 130282) Linux: 13029 13030acpiphp update (Takayoshi Kochi) 13031 13032Export acpi_disabled for sonypi (Stelian Pop) 13033 13034Mention acpismp=force in config help 13035 13036Re-add acpitable.c and acpismp=force. This improves backwards 13037 13038compatibility and also cleans up the code to a significant degree. 13039 13040Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 13041 13042---------------------------------------- 1304322 May 2003. Summary of changes for version 20030522: 13044 130451) ACPI CA Core Subsystem: 13046 13047Found and fixed a reported problem where an AE_NOT_FOUND error 13048occurred occasionally during _BST evaluation. This turned out to 13049be an Owner ID allocation issue where a called method did not get 13050a new ID assigned to it. Eventually, (after 64k calls), the Owner 13051ID UINT16 would wraparound so that the ID would be the same as the 13052caller's and the called method would delete the caller's 13053namespace. 13054 13055Implemented extended error reporting for control methods that are 13056aborted due to a run-time exception. Output includes the exact 13057AML instruction that caused the method abort, a dump of the method 13058locals and arguments at the time of the abort, and a trace of all 13059nested control method calls. 13060 13061Modified the interpreter to allow the creation of buffers of zero 13062length from the AML code. Implemented new code to ensure that no 13063attempt is made to actually allocate a memory buffer (of length 13064zero) - instead, a simple buffer object with a NULL buffer pointer 13065and length zero is created. A warning is no longer issued when 13066the AML attempts to create a zero-length buffer. 13067 13068Implemented a workaround for the "leading asterisk issue" in 13069_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 13070asterisk is automatically removed if present in any HID, UID, or 13071CID strings. The iASL compiler will still flag this asterisk as 13072an error, however. 13073 13074Implemented full support for _CID methods that return a package of 13075multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 13076now additionally returns a device _CID list if present. This 13077required a change to the external interface in order to pass an 13078ACPI_BUFFER object as a parameter since the _CID list is of 13079variable length. 13080 13081Fixed a problem with the new AE_SAME_HANDLER exception where 13082handler initialization code did not know about this exception. 13083 13084Code and Data Size: Current and previous core subsystem library 13085sizes are shown below. These are the code and data sizes for the 13086acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 13087these values do not include any ACPI driver or OSPM code. The 13088debug version of the code includes the debug output trace 13089mechanism and has a much larger code and data size. Note that 13090these values will vary depending on the efficiency of the compiler 13091and the compiler options used during generation. 13092 13093 Previous Release (20030509): 13094 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 13095 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 13096 Current Release: 13097 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 13098 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 13099 13100 131012) Linux: 13102 13103Fixed a bug in which we would reinitialize the ACPI interrupt 13104after it was already working, thus disabling all ACPI and the IRQs 13105for any other device sharing the interrupt. (Thanks to Stian 13106Jordet) 13107 13108Toshiba driver update (John Belmonte) 13109 13110Return only 0 or 1 for our interrupt handler status (Andrew 13111Morton) 13112 13113 131143) iASL Compiler: 13115 13116Fixed a reported problem where multiple (nested) ElseIf() 13117statements were not handled correctly by the compiler, resulting 13118in incorrect warnings and incorrect AML code. This was a problem 13119in both the ASL parser and the code generator. 13120 13121 131224) Documentation: 13123 13124Added changes to existing interfaces, new exception codes, and new 13125text concerning reference count object management versus garbage 13126collection. 13127 13128---------------------------------------- 1312909 May 2003. Summary of changes for version 20030509. 13130 13131 131321) ACPI CA Core Subsystem: 13133 13134Changed the subsystem initialization sequence to hold off 13135installation of address space handlers until the hardware has been 13136initialized and the system has entered ACPI mode. This is because 13137the installation of space handlers can cause _REG methods to be 13138run. Previously, the _REG methods could potentially be run before 13139ACPI mode was enabled. 13140 13141Fixed some memory leak issues related to address space handler and 13142notify handler installation. There were some problems with the 13143reference count mechanism caused by the fact that the handler 13144objects are shared across several namespace objects. 13145 13146Fixed a reported problem where reference counts within the 13147namespace were not properly updated when named objects created by 13148method execution were deleted. 13149 13150Fixed a reported problem where multiple SSDTs caused a deletion 13151issue during subsystem termination. Restructured the table data 13152structures to simplify the linked lists and the related code. 13153 13154Fixed a problem where the table ID associated with secondary 13155tables (SSDTs) was not being propagated into the namespace objects 13156created by those tables. This would only present a problem for 13157tables that are unloaded at run-time, however. 13158 13159Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 13160type as the length parameter (instead of UINT32). 13161 13162Solved a long-standing problem where an ALREADY_EXISTS error 13163appears on various systems. This problem could happen when there 13164are multiple PCI_Config operation regions under a single PCI root 13165bus. This doesn't happen very frequently, but there are some 13166systems that do this in the ASL. 13167 13168Fixed a reported problem where the internal DeleteNode function 13169was incorrectly handling the case where a namespace node was the 13170first in the parent's child list, and had additional peers (not 13171the only child, but first in the list of children.) 13172 13173Code and Data Size: Current core subsystem library sizes are shown 13174below. These are the code and data sizes for the acpica.lib 13175produced by the Microsoft Visual C++ 6.0 compiler, and these 13176values do not include any ACPI driver or OSPM code. The debug 13177version of the code includes the debug output trace mechanism and 13178has a much larger code and data size. Note that these values will 13179vary depending on the efficiency of the compiler and the compiler 13180options used during generation. 13181 13182 Previous Release 13183 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 13184 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 13185 Current Release: 13186 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 13187 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 13188 13189 131902) Linux: 13191 13192Allow ":" in OS override string (Ducrot Bruno) 13193 13194Kobject fix (Greg KH) 13195 13196 131973 iASL Compiler/Disassembler: 13198 13199Fixed a problem in the generation of the C source code files (AML 13200is emitted in C source statements for BIOS inclusion) where the 13201Ascii dump that appears within a C comment at the end of each line 13202could cause a compile time error if the AML sequence happens to 13203have an open comment or close comment sequence embedded. 13204 13205 13206---------------------------------------- 1320724 April 2003. Summary of changes for version 20030424. 13208 13209 132101) ACPI CA Core Subsystem: 13211 13212Support for big-endian systems has been implemented. Most of the 13213support has been invisibly added behind big-endian versions of the 13214ACPI_MOVE_* macros. 13215 13216Fixed a problem in AcpiHwDisableGpeBlock() and 13217AcpiHwClearGpeBlock() where an incorrect offset was passed to the 13218low level hardware write routine. The offset parameter was 13219actually eliminated from the low level read/write routines because 13220they had become obsolete. 13221 13222Fixed a problem where a handler object was deleted twice during 13223the removal of a fixed event handler. 13224 13225 132262) Linux: 13227 13228A fix for SMP systems with link devices was contributed by 13229 13230Compaq's Dan Zink. 13231 13232(2.5) Return whether we handled the interrupt in our IRQ handler. 13233(Linux ISRs no longer return void, so we can propagate the handler 13234return value from the ACPI CA core back to the OS.) 13235 13236 13237 132383) Documentation: 13239 13240The ACPI CA Programmer Reference has been updated to reflect new 13241interfaces and changes to existing interfaces. 13242 13243---------------------------------------- 1324428 March 2003. Summary of changes for version 20030328. 13245 132461) ACPI CA Core Subsystem: 13247 13248The GPE Block Device support has been completed. New interfaces 13249are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 13250interfaces (enable, disable, clear, getstatus) have been split 13251into separate interfaces for Fixed Events and General Purpose 13252Events (GPEs) in order to support GPE Block Devices properly. 13253 13254Fixed a problem where the error message "Failed to acquire 13255semaphore" would appear during operations on the embedded 13256controller (EC). 13257 13258Code and Data Size: Current core subsystem library sizes are shown 13259below. These are the code and data sizes for the acpica.lib 13260produced by the Microsoft Visual C++ 6.0 compiler, and these 13261values do not include any ACPI driver or OSPM code. The debug 13262version of the code includes the debug output trace mechanism and 13263has a much larger code and data size. Note that these values will 13264vary depending on the efficiency of the compiler and the compiler 13265options used during generation. 13266 13267 Previous Release 13268 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 13269 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 13270 Current Release: 13271 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 13272 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 13273 13274 13275---------------------------------------- 1327628 February 2003. Summary of changes for version 20030228. 13277 13278 132791) ACPI CA Core Subsystem: 13280 13281The GPE handling and dispatch code has been completely overhauled 13282in preparation for support of GPE Block Devices (ID ACPI0006). 13283This affects internal data structures and code only; there should 13284be no differences visible externally. One new file has been 13285added, evgpeblk.c 13286 13287The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 13288fields that are used to determine the GPE block lengths. The 13289REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 13290structures are ignored. This is per the ACPI specification but it 13291isn't very clear. The full 256 Block 0/1 GPEs are now supported 13292(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 13293 13294In the SCI interrupt handler, removed the read of the PM1_CONTROL 13295register to look at the SCI_EN bit. On some machines, this read 13296causes an SMI event and greatly slows down SCI events. (This may 13297in fact be the cause of slow battery status response on some 13298systems.) 13299 13300Fixed a problem where a store of a NULL string to a package object 13301could cause the premature deletion of the object. This was seen 13302during execution of the battery _BIF method on some systems, 13303resulting in no battery data being returned. 13304 13305Added AcpiWalkResources interface to simplify parsing of resource 13306lists. 13307 13308Code and Data Size: Current core subsystem library sizes are shown 13309below. These are the code and data sizes for the acpica.lib 13310produced by the Microsoft Visual C++ 6.0 compiler, and these 13311values do not include any ACPI driver or OSPM code. The debug 13312version of the code includes the debug output trace mechanism and 13313has a much larger code and data size. Note that these values will 13314vary depending on the efficiency of the compiler and the compiler 13315options used during generation. 13316 13317 Previous Release 13318 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13319 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13320 Current Release: 13321 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 13322 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 13323 13324 133252) Linux 13326 13327S3 fixes (Ole Rohne) 13328 13329Update ACPI PHP driver with to use new acpi_walk_resource API 13330(Bjorn Helgaas) 13331 13332Add S4BIOS support (Pavel Machek) 13333 13334Map in entire table before performing checksum (John Stultz) 13335 13336Expand the mem= cmdline to allow the specification of reserved and 13337ACPI DATA blocks (Pavel Machek) 13338 13339Never use ACPI on VISWS 13340 13341Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 13342 13343Revert a change that allowed P_BLK lengths to be 4 or 5. This is 13344causing us to think that some systems support C2 when they really 13345don't. 13346 13347Do not count processor objects for non-present CPUs (Thanks to 13348Dominik Brodowski) 13349 13350 133513) iASL Compiler: 13352 13353Fixed a problem where ASL include files could not be found and 13354opened. 13355 13356Added support for the _PDC reserved name. 13357 13358 13359---------------------------------------- 1336022 January 2003. Summary of changes for version 20030122. 13361 13362 133631) ACPI CA Core Subsystem: 13364 13365Added a check for constructs of the form: Store (Local0, Local0) 13366where Local0 is not initialized. Apparently, some BIOS 13367programmers believe that this is a NOOP. Since this store doesn't 13368do anything anyway, the new prototype behavior will ignore this 13369error. This is a case where we can relax the strict checking in 13370the interpreter in the name of compatibility. 13371 13372 133732) Linux 13374 13375The AcpiSrc Source Conversion Utility has been released with the 13376Linux package for the first time. This is the utility that is 13377used to convert the ACPI CA base source code to the Linux version. 13378 13379(Both) Handle P_BLK lengths shorter than 6 more gracefully 13380 13381(Both) Move more headers to include/acpi, and delete an unused 13382header. 13383 13384(Both) Move drivers/acpi/include directory to include/acpi 13385 13386(Both) Boot functions don't use cmdline, so don't pass it around 13387 13388(Both) Remove include of unused header (Adrian Bunk) 13389 13390(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 13391the 13392former now also includes the latter, acpiphp.h only needs the one, 13393now. 13394 13395(2.5) Make it possible to select method of bios restoring after S3 13396resume. [=> no more ugly ifdefs] (Pavel Machek) 13397 13398(2.5) Make proc write interfaces work (Pavel Machek) 13399 13400(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 13401 13402(2.5) Break out ACPI Perf code into its own module, under cpufreq 13403(Dominik Brodowski) 13404 13405(2.4) S4BIOS support (Ducrot Bruno) 13406 13407(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 13408Visinoni) 13409 13410 134113) iASL Compiler: 13412 13413Added support to disassemble SSDT and PSDTs. 13414 13415Implemented support to obtain SSDTs from the Windows registry if 13416available. 13417 13418 13419---------------------------------------- 1342009 January 2003. Summary of changes for version 20030109. 13421 134221) ACPI CA Core Subsystem: 13423 13424Changed the behavior of the internal Buffer-to-String conversion 13425function. The current ACPI specification states that the contents 13426of the buffer are "converted to a string of two-character 13427hexadecimal numbers, each separated by a space". Unfortunately, 13428this definition is not backwards compatible with existing ACPI 1.0 13429implementations (although the behavior was not defined in the ACPI 134301.0 specification). The new behavior simply copies data from the 13431buffer to the string until a null character is found or the end of 13432the buffer is reached. The new String object is always null 13433terminated. This problem was seen during the generation of _BIF 13434battery data where incorrect strings were returned for battery 13435type, etc. This will also require an errata to the ACPI 13436specification. 13437 13438Renamed all instances of NATIVE_UINT and NATIVE_INT to 13439ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 13440 13441Copyright in all module headers (both Linux and non-Linux) has be 13442updated to 2003. 13443 13444Code and Data Size: Current core subsystem library sizes are shown 13445below. These are the code and data sizes for the acpica.lib 13446produced by the Microsoft Visual C++ 6.0 compiler, and these 13447values do not include any ACPI driver or OSPM code. The debug 13448version of the code includes the debug output trace mechanism and 13449has a much larger code and data size. Note that these values will 13450vary depending on the efficiency of the compiler and the compiler 13451options used during generation. 13452 13453 Previous Release 13454 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13455 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13456 Current Release: 13457 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13458 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13459 13460 134612) Linux 13462 13463Fixed an oops on module insertion/removal (Matthew Tippett) 13464 13465(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 13466 13467(2.5) Replace pr_debug (Randy Dunlap) 13468 13469(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 13470 13471(Both) Eliminate spawning of thread from timer callback, in favor 13472of schedule_work() 13473 13474(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 13475 13476(Both) Added define for Fixed Function HW region (Matthew Wilcox) 13477 13478(Both) Add missing statics to button.c (Pavel Machek) 13479 13480Several changes have been made to the source code translation 13481utility that generates the Linux Code in order to make the code 13482more "Linux-like": 13483 13484All typedefs on structs and unions have been removed in keeping 13485with the Linux coding style. 13486 13487Removed the non-Linux SourceSafe module revision number from each 13488module header. 13489 13490Completed major overhaul of symbols to be lowercased for linux. 13491Doubled the number of symbols that are lowercased. 13492 13493Fixed a problem where identifiers within procedure headers and 13494within quotes were not fully lower cased (they were left with a 13495starting capital.) 13496 13497Some C macros whose only purpose is to allow the generation of 16- 13498bit code are now completely removed in the Linux code, increasing 13499readability and maintainability. 13500 13501---------------------------------------- 13502 1350312 December 2002. Summary of changes for version 20021212. 13504 13505 135061) ACPI CA Core Subsystem: 13507 13508Fixed a problem where the creation of a zero-length AML Buffer 13509would cause a fault. 13510 13511Fixed a problem where a Buffer object that pointed to a static AML 13512buffer (in an ACPI table) could inadvertently be deleted, causing 13513memory corruption. 13514 13515Fixed a problem where a user buffer (passed in to the external 13516ACPI CA interfaces) could be overwritten if the buffer was too 13517small to complete the operation, causing memory corruption. 13518 13519Fixed a problem in the Buffer-to-String conversion code where a 13520string of length one was always returned, regardless of the size 13521of the input Buffer object. 13522 13523Removed the NATIVE_CHAR data type across the entire source due to 13524lack of need and lack of consistent use. 13525 13526Code and Data Size: Current core subsystem library sizes are shown 13527below. These are the code and data sizes for the acpica.lib 13528produced by the Microsoft Visual C++ 6.0 compiler, and these 13529values do not include any ACPI driver or OSPM code. The debug 13530version of the code includes the debug output trace mechanism and 13531has a much larger code and data size. Note that these values will 13532vary depending on the efficiency of the compiler and the compiler 13533options used during generation. 13534 13535 Previous Release 13536 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 13537 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 13538 Current Release: 13539 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13540 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13541 13542 13543---------------------------------------- 1354405 December 2002. Summary of changes for version 20021205. 13545 135461) ACPI CA Core Subsystem: 13547 13548Fixed a problem where a store to a String or Buffer object could 13549cause corruption of the DSDT if the object type being stored was 13550the same as the target object type and the length of the object 13551being stored was equal to or smaller than the original (existing) 13552target object. This was seen to cause corruption of battery _BIF 13553buffers if the _BIF method modified the buffer on the fly. 13554 13555Fixed a problem where an internal error was generated if a control 13556method invocation was used in an OperationRegion, Buffer, or 13557Package declaration. This was caused by the deferred parsing of 13558the control method and thus the deferred creation of the internal 13559method object. The solution to this problem was to create the 13560internal method object at the moment the method is encountered in 13561the first pass - so that subsequent references to the method will 13562able to obtain the required parameter count and thus properly 13563parse the method invocation. This problem presented itself as an 13564AE_AML_INTERNAL during the pass 1 parse phase during table load. 13565 13566Fixed a problem where the internal String object copy routine did 13567not always allocate sufficient memory for the target String object 13568and caused memory corruption. This problem was seen to cause 13569"Allocation already present in list!" errors as memory allocation 13570became corrupted. 13571 13572Implemented a new function for the evaluation of namespace objects 13573that allows the specification of the allowable return object 13574types. This simplifies a lot of code that checks for a return 13575object of one or more specific objects returned from the 13576evaluation (such as _STA, etc.) This may become and external 13577function if it would be useful to ACPI-related drivers. 13578 13579Completed another round of prefixing #defines with "ACPI_" for 13580clarity. 13581 13582Completed additional code restructuring to allow more modular 13583linking for iASL compiler and AcpiExec. Several files were split 13584creating new files. New files: nsparse.c dsinit.c evgpe.c 13585 13586Implemented an abort mechanism to terminate an executing control 13587method via the AML debugger. This feature is useful for debugging 13588control methods that depend (wait) for specific hardware 13589responses. 13590 13591Code and Data Size: Current core subsystem library sizes are shown 13592below. These are the code and data sizes for the acpica.lib 13593produced by the Microsoft Visual C++ 6.0 compiler, and these 13594values do not include any ACPI driver or OSPM code. The debug 13595version of the code includes the debug output trace mechanism and 13596has a much larger code and data size. Note that these values will 13597vary depending on the efficiency of the compiler and the compiler 13598options used during generation. 13599 13600 Previous Release 13601 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13602 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 13603 Current Release: 13604 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 13605 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 13606 13607 136082) iASL Compiler/Disassembler 13609 13610Fixed a compiler code generation problem for "Interrupt" Resource 13611Descriptors. If specified in the ASL, the optional "Resource 13612Source Index" and "Resource Source" fields were not inserted into 13613the correct location within the AML resource descriptor, creating 13614an invalid descriptor. 13615 13616Fixed a disassembler problem for "Interrupt" resource descriptors. 13617The optional "Resource Source Index" and "Resource Source" fields 13618were ignored. 13619 13620 13621---------------------------------------- 1362222 November 2002. Summary of changes for version 20021122. 13623 13624 136251) ACPI CA Core Subsystem: 13626 13627Fixed a reported problem where an object stored to a Method Local 13628or Arg was not copied to a new object during the store - the 13629object pointer was simply copied to the Local/Arg. This caused 13630all subsequent operations on the Local/Arg to also affect the 13631original source of the store operation. 13632 13633Fixed a problem where a store operation to a Method Local or Arg 13634was not completed properly if the Local/Arg contained a reference 13635(from RefOf) to a named field. The general-purpose store-to- 13636namespace-node code is now used so that this case is handled 13637automatically. 13638 13639Fixed a problem where the internal object copy routine would cause 13640a protection fault if the object being copied was a Package and 13641contained either 1) a NULL package element or 2) a nested sub- 13642package. 13643 13644Fixed a problem with the GPE initialization that resulted from an 13645ambiguity in the ACPI specification. One section of the 13646specification states that both the address and length of the GPE 13647block must be zero if the block is not supported. Another section 13648implies that only the address need be zero if the block is not 13649supported. The code has been changed so that both the address and 13650the length must be non-zero to indicate a valid GPE block (i.e., 13651if either the address or the length is zero, the GPE block is 13652invalid.) 13653 13654Code and Data Size: Current core subsystem library sizes are shown 13655below. These are the code and data sizes for the acpica.lib 13656produced by the Microsoft Visual C++ 6.0 compiler, and these 13657values do not include any ACPI driver or OSPM code. The debug 13658version of the code includes the debug output trace mechanism and 13659has a much larger code and data size. Note that these values will 13660vary depending on the efficiency of the compiler and the compiler 13661options used during generation. 13662 13663 Previous Release 13664 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 13665 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 13666 Current Release: 13667 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13668 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 13669 13670 136712) Linux 13672 13673Cleaned up EC driver. Exported an external EC read/write 13674interface. By going through this, other drivers (most notably 13675sonypi) will be able to serialize access to the EC. 13676 13677 136783) iASL Compiler/Disassembler 13679 13680Implemented support to optionally generate include files for both 13681ASM and C (the -i switch). This simplifies BIOS development by 13682automatically creating include files that contain external 13683declarations for the symbols that are created within the 13684 13685(optionally generated) ASM and C AML source files. 13686 13687 13688---------------------------------------- 1368915 November 2002. Summary of changes for version 20021115. 13690 136911) ACPI CA Core Subsystem: 13692 13693Fixed a memory leak problem where an error during resolution of 13694 13695method arguments during a method invocation from another method 13696failed to cleanup properly by deleting all successfully resolved 13697argument objects. 13698 13699Fixed a problem where the target of the Index() operator was not 13700correctly constructed if the source object was a package. This 13701problem has not been detected because the use of a target operand 13702with Index() is very rare. 13703 13704Fixed a problem with the Index() operator where an attempt was 13705made to delete the operand objects twice. 13706 13707Fixed a problem where an attempt was made to delete an operand 13708twice during execution of the CondRefOf() operator if the target 13709did not exist. 13710 13711Implemented the first of perhaps several internal create object 13712functions that create and initialize a specific object type. This 13713consolidates duplicated code wherever the object is created, thus 13714shrinking the size of the subsystem. 13715 13716Implemented improved debug/error messages for errors that occur 13717during nested method invocations. All executing method pathnames 13718are displayed (with the error) as the call stack is unwound - thus 13719simplifying debug. 13720 13721Fixed a problem introduced in the 10/02 release that caused 13722premature deletion of a buffer object if a buffer was used as an 13723ASL operand where an integer operand is required (Thus causing an 13724implicit object conversion from Buffer to Integer.) The change in 13725the 10/02 release was attempting to fix a memory leak (albeit 13726incorrectly.) 13727 13728Code and Data Size: Current core subsystem library sizes are shown 13729below. These are the code and data sizes for the acpica.lib 13730produced by the Microsoft Visual C++ 6.0 compiler, and these 13731values do not include any ACPI driver or OSPM code. The debug 13732version of the code includes the debug output trace mechanism and 13733has a much larger code and data size. Note that these values will 13734vary depending on the efficiency of the compiler and the compiler 13735options used during generation. 13736 13737 Previous Release 13738 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 13739 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 13740 Current Release: 13741 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 13742 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 13743 13744 137452) Linux 13746 13747Changed the implementation of the ACPI semaphores to use down() 13748instead of down_interruptable(). It is important that the 13749execution of ACPI control methods not be interrupted by signals. 13750Methods must run to completion, or the system may be left in an 13751unknown/unstable state. 13752 13753Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 13754(Shawn Starr) 13755 13756 137573) iASL Compiler/Disassembler 13758 13759 13760Changed the default location of output files. All output files 13761are now placed in the current directory by default instead of in 13762the directory of the source file. This change may affect some 13763existing makefiles, but it brings the behavior of the compiler in 13764line with other similar tools. The location of the output files 13765can be overridden with the -p command line switch. 13766 13767 13768---------------------------------------- 1376911 November 2002. Summary of changes for version 20021111. 13770 13771 137720) ACPI Specification 2.0B is released and is now available at: 13773http://www.acpi.info/index.html 13774 13775 137761) ACPI CA Core Subsystem: 13777 13778Implemented support for the ACPI 2.0 SMBus Operation Regions. 13779This includes the early detection and handoff of the request to 13780the SMBus region handler (avoiding all of the complex field 13781support code), and support for the bidirectional return packet 13782from an SMBus write operation. This paves the way for the 13783development of SMBus drivers in each host operating system. 13784 13785Fixed a problem where the semaphore WAIT_FOREVER constant was 13786defined as 32 bits, but must be 16 bits according to the ACPI 13787specification. This had the side effect of causing ASL 13788Mutex/Event timeouts even though the ASL code requested a wait 13789forever. Changed all internal references to the ACPI timeout 13790parameter to 16 bits to prevent future problems. Changed the name 13791of WAIT_FOREVER to ACPI_WAIT_FOREVER. 13792 13793Code and Data Size: Current core subsystem library sizes are shown 13794below. These are the code and data sizes for the acpica.lib 13795produced by the Microsoft Visual C++ 6.0 compiler, and these 13796values do not include any ACPI driver or OSPM code. The debug 13797version of the code includes the debug output trace mechanism and 13798has a much larger code and data size. Note that these values will 13799vary depending on the efficiency of the compiler and the compiler 13800options used during generation. 13801 13802 Previous Release 13803 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13804 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 13805 Current Release: 13806 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 13807 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 13808 13809 138102) Linux 13811 13812Module loading/unloading fixes (John Cagle) 13813 13814 138153) iASL Compiler/Disassembler 13816 13817Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 13818 13819Implemented support for the disassembly of all SMBus protocol 13820keywords (SMBQuick, SMBWord, etc.) 13821 13822---------------------------------------- 1382301 November 2002. Summary of changes for version 20021101. 13824 13825 138261) ACPI CA Core Subsystem: 13827 13828Fixed a problem where platforms that have a GPE1 block but no GPE0 13829block were not handled correctly. This resulted in a "GPE 13830overlap" error message. GPE0 is no longer required. 13831 13832Removed code added in the previous release that inserted nodes 13833into the namespace in alphabetical order. This caused some side- 13834effects on various machines. The root cause of the problem is 13835still under investigation since in theory, the internal ordering 13836of the namespace nodes should not matter. 13837 13838 13839Enhanced error reporting for the case where a named object is not 13840found during control method execution. The full ACPI namepath 13841(name reference) of the object that was not found is displayed in 13842this case. 13843 13844Note: as a result of the overhaul of the namespace object types in 13845the previous release, the namespace nodes for the predefined 13846scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 13847instead of ACPI_TYPE_ANY. This simplifies the namespace 13848management code but may affect code that walks the namespace tree 13849looking for specific object types. 13850 13851Code and Data Size: Current core subsystem library sizes are shown 13852below. These are the code and data sizes for the acpica.lib 13853produced by the Microsoft Visual C++ 6.0 compiler, and these 13854values do not include any ACPI driver or OSPM code. The debug 13855version of the code includes the debug output trace mechanism and 13856has a much larger code and data size. Note that these values will 13857vary depending on the efficiency of the compiler and the compiler 13858options used during generation. 13859 13860 Previous Release 13861 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 13862 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 13863 Current Release: 13864 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13865 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 13866 13867 138682) Linux 13869 13870Fixed a problem introduced in the previous release where the 13871Processor and Thermal objects were not recognized and installed in 13872/proc. This was related to the scope type change described above. 13873 13874 138753) iASL Compiler/Disassembler 13876 13877Implemented the -g option to get all of the required ACPI tables 13878from the registry and save them to files (Windows version of the 13879compiler only.) The required tables are the FADT, FACS, and DSDT. 13880 13881Added ACPI table checksum validation during table disassembly in 13882order to catch corrupted tables. 13883 13884 13885---------------------------------------- 1388622 October 2002. Summary of changes for version 20021022. 13887 138881) ACPI CA Core Subsystem: 13889 13890Implemented a restriction on the Scope operator that the target 13891must already exist in the namespace at the time the operator is 13892encountered (during table load or method execution). In other 13893words, forward references are not allowed and Scope() cannot 13894create a new object. This changes the previous behavior where the 13895interpreter would create the name if not found. This new behavior 13896correctly enables the search-to-root algorithm during namespace 13897lookup of the target name. Because of this upsearch, this fixes 13898the known Compaq _SB_.OKEC problem and makes both the AML 13899interpreter and iASL compiler compatible with other ACPI 13900implementations. 13901 13902Completed a major overhaul of the internal ACPI object types for 13903the ACPI Namespace and the associated operand objects. Many of 13904these types had become obsolete with the introduction of the two- 13905pass namespace load. This cleanup simplifies the code and makes 13906the entire namespace load mechanism much clearer and easier to 13907understand. 13908 13909Improved debug output for tracking scope opening/closing to help 13910diagnose scoping issues. The old scope name as well as the new 13911scope name are displayed. Also improved error messages for 13912problems with ASL Mutex objects and error messages for GPE 13913problems. 13914 13915Cleaned up the namespace dump code, removed obsolete code. 13916 13917All string output (for all namespace/object dumps) now uses the 13918common ACPI string output procedure which handles escapes properly 13919and does not emit non-printable characters. 13920 13921Fixed some issues with constants in the 64-bit version of the 13922local C library (utclib.c) 13923 13924 139252) Linux 13926 13927EC Driver: No longer attempts to acquire the Global Lock at 13928interrupt level. 13929 13930 139313) iASL Compiler/Disassembler 13932 13933Implemented ACPI 2.0B grammar change that disallows all Type 1 and 139342 opcodes outside of a control method. This means that the 13935"executable" operators (versus the "namespace" operators) cannot 13936be used at the table level; they can only be used within a control 13937method. 13938 13939Implemented the restriction on the Scope() operator where the 13940target must already exist in the namespace at the time the 13941operator is encountered (during ASL compilation). In other words, 13942forward references are not allowed and Scope() cannot create a new 13943object. This makes the iASL compiler compatible with other ACPI 13944implementations and makes the Scope() implementation adhere to the 13945ACPI specification. 13946 13947Fixed a problem where namepath optimization for the Alias operator 13948was optimizing the wrong path (of the two namepaths.) This caused 13949a "Missing alias link" error message. 13950 13951Fixed a problem where an "unknown reserved name" warning could be 13952incorrectly generated for names like "_SB" when the trailing 13953underscore is not used in the original ASL. 13954 13955Fixed a problem where the reserved name check did not handle 13956NamePaths with multiple NameSegs correctly. The first nameseg of 13957the NamePath was examined instead of the last NameSeg. 13958 13959 13960---------------------------------------- 13961 1396202 October 2002. Summary of changes for this release. 13963 13964 139651) ACPI CA Core Subsystem version 20021002: 13966 13967Fixed a problem where a store/copy of a string to an existing 13968string did not always set the string length properly in the String 13969object. 13970 13971Fixed a reported problem with the ToString operator where the 13972behavior was identical to the ToHexString operator instead of just 13973simply converting a raw buffer to a string data type. 13974 13975Fixed a problem where CopyObject and the other "explicit" 13976conversion operators were not updating the internal namespace node 13977type as part of the store operation. 13978 13979Fixed a memory leak during implicit source operand conversion 13980where the original object was not deleted if it was converted to a 13981new object of a different type. 13982 13983Enhanced error messages for all problems associated with namespace 13984lookups. Common procedure generates and prints the lookup name as 13985well as the formatted status. 13986 13987Completed implementation of a new design for the Alias support 13988within the namespace. The existing design did not handle the case 13989where a new object was assigned to one of the two names due to the 13990use of an explicit conversion operator, resulting in the two names 13991pointing to two different objects. The new design simply points 13992the Alias name to the original name node - not to the object. 13993This results in a level of indirection that must be handled in the 13994name resolution mechanism. 13995 13996Code and Data Size: Current core subsystem library sizes are shown 13997below. These are the code and data sizes for the acpica.lib 13998produced by the Microsoft Visual C++ 6.0 compiler, and these 13999values do not include any ACPI driver or OSPM code. The debug 14000version of the code includes the debug output trace mechanism and 14001has a larger code and data size. Note that these values will vary 14002depending on the efficiency of the compiler and the compiler 14003options used during generation. 14004 14005 Previous Release 14006 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 14007 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 14008 Current Release: 14009 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 14010 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 14011 14012 140132) Linux 14014 14015Initialize thermal driver's timer before it is used. (Knut 14016Neumann) 14017 14018Allow handling negative celsius values. (Kochi Takayoshi) 14019 14020Fix thermal management and make trip points. R/W (Pavel Machek) 14021 14022Fix /proc/acpi/sleep. (P. Christeas) 14023 14024IA64 fixes. (David Mosberger) 14025 14026Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 14027 14028Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 14029Brodowski) 14030 14031 140323) iASL Compiler/Disassembler 14033 14034Clarified some warning/error messages. 14035 14036 14037---------------------------------------- 1403818 September 2002. Summary of changes for this release. 14039 14040 140411) ACPI CA Core Subsystem version 20020918: 14042 14043Fixed a reported problem with reference chaining (via the Index() 14044and RefOf() operators) in the ObjectType() and SizeOf() operators. 14045The definition of these operators includes the dereferencing of 14046all chained references to return information on the base object. 14047 14048Fixed a problem with stores to indexed package elements - the 14049existing code would not complete the store if an "implicit 14050conversion" was not performed. In other words, if the existing 14051object (package element) was to be replaced completely, the code 14052didn't handle this case. 14053 14054Relaxed typechecking on the ASL "Scope" operator to allow the 14055target name to refer to an object of type Integer, String, or 14056Buffer, in addition to the scoping object types (Device, 14057predefined Scopes, Processor, PowerResource, and ThermalZone.) 14058This allows existing AML code that has workarounds for a bug in 14059Windows to function properly. A warning is issued, however. This 14060affects both the AML interpreter and the iASL compiler. Below is 14061an example of this type of ASL code: 14062 14063 Name(DEB,0x00) 14064 Scope(DEB) 14065 { 14066 14067Fixed some reported problems with 64-bit integer support in the 14068local implementation of C library functions (clib.c) 14069 14070 140712) Linux 14072 14073Use ACPI fix map region instead of IOAPIC region, since it is 14074undefined in non-SMP. 14075 14076Ensure that the SCI has the proper polarity and trigger, even on 14077systems that do not have an interrupt override entry in the MADT. 14078 140792.5 big driver reorganization (Pat Mochel) 14080 14081Use early table mapping code from acpitable.c (Andi Kleen) 14082 14083New blacklist entries (Andi Kleen) 14084 14085Blacklist improvements. Split blacklist code out into a separate 14086file. Move checking the blacklist to very early. Previously, we 14087would use ACPI tables, and then halfway through init, check the 14088blacklist -- too late. Now, it's early enough to completely fall- 14089back to non-ACPI. 14090 14091 140923) iASL Compiler/Disassembler version 20020918: 14093 14094Fixed a problem where the typechecking code didn't know that an 14095alias could point to a method. In other words, aliases were not 14096being dereferenced during typechecking. 14097 14098 14099---------------------------------------- 1410029 August 2002. Summary of changes for this release. 14101 141021) ACPI CA Core Subsystem Version 20020829: 14103 14104If the target of a Scope() operator already exists, it must be an 14105object type that actually opens a scope -- such as a Device, 14106Method, Scope, etc. This is a fatal runtime error. Similar error 14107check has been added to the iASL compiler also. 14108 14109Tightened up the namespace load to disallow multiple names in the 14110same scope. This previously was allowed if both objects were of 14111the same type. (i.e., a lookup was the same as entering a new 14112name). 14113 14114 141152) Linux 14116 14117Ensure that the ACPI interrupt has the proper trigger and 14118polarity. 14119 14120local_irq_disable is extraneous. (Matthew Wilcox) 14121 14122Make "acpi=off" actually do what it says, and not use the ACPI 14123interpreter *or* the tables. 14124 14125Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 14126Takayoshi) 14127 14128 141293) iASL Compiler/Disassembler Version 20020829: 14130 14131Implemented namepath optimization for name declarations. For 14132example, a declaration like "Method (\_SB_.ABCD)" would get 14133optimized to "Method (ABCD)" if the declaration is within the 14134\_SB_ scope. This optimization is in addition to the named 14135reference path optimization first released in the previous 14136version. This would seem to complete all possible optimizations 14137for namepaths within the ASL/AML. 14138 14139If the target of a Scope() operator already exists, it must be an 14140object type that actually opens a scope -- such as a Device, 14141Method, Scope, etc. 14142 14143Implemented a check and warning for unreachable code in the same 14144block below a Return() statement. 14145 14146Fixed a problem where the listing file was not generated if the 14147compiler aborted if the maximum error count was exceeded (200). 14148 14149Fixed a problem where the typechecking of method return values was 14150broken. This includes the check for a return value when the 14151method is invoked as a TermArg (a return value is expected.) 14152 14153Fixed a reported problem where EOF conditions during a quoted 14154string or comment caused a fault. 14155 14156 14157---------------------------------------- 1415815 August 2002. Summary of changes for this release. 14159 141601) ACPI CA Core Subsystem Version 20020815: 14161 14162Fixed a reported problem where a Store to a method argument that 14163contains a reference did not perform the indirect store correctly. 14164This problem was created during the conversion to the new 14165reference object model - the indirect store to a method argument 14166code was not updated to reflect the new model. 14167 14168Reworked the ACPI mode change code to better conform to ACPI 2.0, 14169handle corner cases, and improve code legibility (Kochi Takayoshi) 14170 14171Fixed a problem with the pathname parsing for the carat (^) 14172prefix. The heavy use of the carat operator by the new namepath 14173optimization in the iASL compiler uncovered a problem with the AML 14174interpreter handling of this prefix. In the case where one or 14175more carats precede a single nameseg, the nameseg was treated as 14176standalone and the search rule (to root) was inadvertently 14177applied. This could cause both the iASL compiler and the 14178interpreter to find the wrong object or to miss the error that 14179should occur if the object does not exist at that exact pathname. 14180 14181Found and fixed the problem where the HP Pavilion DSDT would not 14182load. This was a relatively minor tweak to the table loading code 14183(a problem caused by the unexpected encounter with a method 14184invocation not within a control method), but it does not solve the 14185overall issue of the execution of AML code at the table level. 14186This investigation is still ongoing. 14187 14188Code and Data Size: Current core subsystem library sizes are shown 14189below. These are the code and data sizes for the acpica.lib 14190produced by the Microsoft Visual C++ 6.0 compiler, and these 14191values do not include any ACPI driver or OSPM code. The debug 14192version of the code includes the debug output trace mechanism and 14193has a larger code and data size. Note that these values will vary 14194depending on the efficiency of the compiler and the compiler 14195options used during generation. 14196 14197 Previous Release 14198 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 14199 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 14200 Current Release: 14201 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 14202 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 14203 14204 142052) Linux 14206 14207Remove redundant slab.h include (Brad Hards) 14208 14209Fix several bugs in thermal.c (Herbert Nachtnebel) 14210 14211Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 14212 14213Change acpi_system_suspend to use updated irq functions (Pavel 14214Machek) 14215 14216Export acpi_get_firmware_table (Matthew Wilcox) 14217 14218Use proper root proc entry for ACPI (Kochi Takayoshi) 14219 14220Fix early-boot table parsing (Bjorn Helgaas) 14221 14222 142233) iASL Compiler/Disassembler 14224 14225Reworked the compiler options to make them more consistent and to 14226use two-letter options where appropriate. We were running out of 14227sensible letters. This may break some makefiles, so check the 14228current options list by invoking the compiler with no parameters. 14229 14230Completed the design and implementation of the ASL namepath 14231optimization option for the compiler. This option optimizes all 14232references to named objects to the shortest possible path. The 14233first attempt tries to utilize a single nameseg (4 characters) and 14234the "search-to-root" algorithm used by the interpreter. If that 14235cannot be used (because either the name is not in the search path 14236or there is a conflict with another object with the same name), 14237the pathname is optimized using the carat prefix (usually a 14238shorter string than specifying the entire path from the root.) 14239 14240Implemented support to obtain the DSDT from the Windows registry 14241(when the disassembly option is specified with no input file). 14242Added this code as the implementation for AcpiOsTableOverride in 14243the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 14244utility) to scan memory for the DSDT to the AcpiOsTableOverride 14245function in the DOS OSL to make the disassembler truly OS 14246independent. 14247 14248Implemented a new option to disassemble and compile in one step. 14249When used without an input filename, this option will grab the 14250DSDT from the local machine, disassemble it, and compile it in one 14251step. 14252 14253Added a warning message for invalid escapes (a backslash followed 14254by any character other than the allowable escapes). This catches 14255the quoted string error "\_SB_" (which should be "\\_SB_" ). 14256 14257Also, there are numerous instances in the ACPI specification where 14258this error occurs. 14259 14260Added a compiler option to disable all optimizations. This is 14261basically the "compatibility mode" because by using this option, 14262the AML code will come out exactly the same as other ASL 14263compilers. 14264 14265Added error messages for incorrectly ordered dependent resource 14266functions. This includes: missing EndDependentFn macro at end of 14267dependent resource list, nested dependent function macros (both 14268start and end), and missing StartDependentFn macro. These are 14269common errors that should be caught at compile time. 14270 14271Implemented _OSI support for the disassembler and compiler. _OSI 14272must be included in the namespace for proper disassembly (because 14273the disassembler must know the number of arguments.) 14274 14275Added an "optimization" message type that is optional (off by 14276default). This message is used for all optimizations - including 14277constant folding, integer optimization, and namepath optimization. 14278 14279---------------------------------------- 1428025 July 2002. Summary of changes for this release. 14281 14282 142831) ACPI CA Core Subsystem Version 20020725: 14284 14285The AML Disassembler has been enhanced to produce compilable ASL 14286code and has been integrated into the iASL compiler (see below) as 14287well as the single-step disassembly for the AML debugger and the 14288disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 14289resource templates and macros are fully supported. The 14290disassembler has been tested on over 30 different AML files, 14291producing identical AML when the resulting disassembled ASL file 14292is recompiled with the same ASL compiler. 14293 14294Modified the Resource Manager to allow zero interrupts and zero 14295dma channels during the GetCurrentResources call. This was 14296causing problems on some platforms. 14297 14298Added the AcpiOsRedirectOutput interface to the OSL to simplify 14299output redirection for the AcpiOsPrintf and AcpiOsVprintf 14300interfaces. 14301 14302Code and Data Size: Current core subsystem library sizes are shown 14303below. These are the code and data sizes for the acpica.lib 14304produced by the Microsoft Visual C++ 6.0 compiler, and these 14305values do not include any ACPI driver or OSPM code. The debug 14306version of the code includes the debug output trace mechanism and 14307has a larger code and data size. Note that these values will vary 14308depending on the efficiency of the compiler and the compiler 14309options used during generation. 14310 14311 Previous Release 14312 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 14313 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 14314 Current Release: 14315 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 14316 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 14317 14318 143192) Linux 14320 14321Fixed a panic in the EC driver (Dominik Brodowski) 14322 14323Implemented checksum of the R/XSDT itself during Linux table scan 14324(Richard Schaal) 14325 14326 143273) iASL compiler 14328 14329The AML disassembler is integrated into the compiler. The "-d" 14330option invokes the disassembler to completely disassemble an 14331input AML file, producing as output a text ASL file with the 14332extension ".dsl" (to avoid name collisions with existing .asl 14333source files.) A future enhancement will allow the disassembler 14334to obtain the BIOS DSDT from the registry under Windows. 14335 14336Fixed a problem with the VendorShort and VendorLong resource 14337descriptors where an invalid AML sequence was created. 14338 14339Implemented a fix for BufferData term in the ASL parser. It was 14340inadvertently defined twice, allowing invalid syntax to pass and 14341causing reduction conflicts. 14342 14343Fixed a problem where the Ones opcode could get converted to a 14344value of zero if "Ones" was used where a byte, word or dword value 14345was expected. The 64-bit value is now truncated to the correct 14346size with the correct value. 14347 14348 14349 14350---------------------------------------- 1435102 July 2002. Summary of changes for this release. 14352 14353 143541) ACPI CA Core Subsystem Version 20020702: 14355 14356The Table Manager code has been restructured to add several new 14357features. Tables that are not required by the core subsystem 14358(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 14359validated in any way and are returned from AcpiGetFirmwareTable if 14360requested. The AcpiOsTableOverride interface is now called for 14361each table that is loaded by the subsystem in order to allow the 14362host to override any table it chooses. Previously, only the DSDT 14363could be overridden. Added one new files, tbrsdt.c and 14364tbgetall.c. 14365 14366Fixed a problem with the conversion of internal package objects to 14367external objects (when a package is returned from a control 14368method.) The return buffer length was set to zero instead of the 14369proper length of the package object. 14370 14371Fixed a reported problem with the use of the RefOf and DeRefOf 14372operators when passing reference arguments to control methods. A 14373new type of Reference object is used internally for references 14374produced by the RefOf operator. 14375 14376Added additional error messages in the Resource Manager to explain 14377AE_BAD_DATA errors when they occur during resource parsing. 14378 14379Split the AcpiEnableSubsystem into two primitives to enable a 14380finer granularity initialization sequence. These two calls should 14381be called in this order: AcpiEnableSubsystem (flags), 14382AcpiInitializeObjects (flags). The flags parameter remains the 14383same. 14384 14385 143862) Linux 14387 14388Updated the ACPI utilities module to understand the new style of 14389fully resolved package objects that are now returned from the core 14390subsystem. This eliminates errors of the form: 14391 14392 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 14393 acpi_utils-0430 [145] acpi_evaluate_reference: 14394 Invalid element in package (not a device reference) 14395 14396The method evaluation utility uses the new buffer allocation 14397scheme instead of calling AcpiEvaluate Object twice. 14398 14399Added support for ECDT. This allows the use of the Embedded 14400 14401Controller before the namespace has been fully initialized, which 14402is necessary for ACPI 2.0 support, and for some laptops to 14403initialize properly. (Laptops using ECDT are still rare, so only 14404limited testing was performed of the added functionality.) 14405 14406Fixed memory leaks in the EC driver. 14407 14408Eliminated a brittle code structure in acpi_bus_init(). 14409 14410Eliminated the acpi_evaluate() helper function in utils.c. It is 14411no longer needed since acpi_evaluate_object can optionally 14412allocate memory for the return object. 14413 14414Implemented fix for keyboard hang when getting battery readings on 14415some systems (Stephen White) 14416 14417PCI IRQ routing update (Dominik Brodowski) 14418 14419Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 14420support 14421 14422---------------------------------------- 1442311 June 2002. Summary of changes for this release. 14424 14425 144261) ACPI CA Core Subsystem Version 20020611: 14427 14428Fixed a reported problem where constants such as Zero and One 14429appearing within _PRT packages were not handled correctly within 14430the resource manager code. Originally reported against the ASL 14431compiler because the code generator now optimizes integers to 14432their minimal AML representation (i.e. AML constants if possible.) 14433The _PRT code now handles all AML constant opcodes correctly 14434(Zero, One, Ones, Revision). 14435 14436Fixed a problem with the Concatenate operator in the AML 14437interpreter where a buffer result object was incorrectly marked as 14438not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 14439 14440All package sub-objects are now fully resolved before they are 14441returned from the external ACPI interfaces. This means that name 14442strings are resolved to object handles, and constant operators 14443(Zero, One, Ones, Revision) are resolved to Integers. 14444 14445Implemented immediate resolution of the AML Constant opcodes 14446(Zero, One, Ones, Revision) to Integer objects upon detection 14447within the AML stream. This has simplified and reduced the 14448generated code size of the subsystem by eliminating about 10 14449switch statements for these constants (which previously were 14450contained in Reference objects.) The complicating issues are that 14451the Zero opcode is used as a "placeholder" for unspecified 14452optional target operands and stores to constants are defined to be 14453no-ops. 14454 14455Code and Data Size: Current core subsystem library sizes are shown 14456below. These are the code and data sizes for the acpica.lib 14457produced by the Microsoft Visual C++ 6.0 compiler, and these 14458values do not include any ACPI driver or OSPM code. The debug 14459version of the code includes the debug output trace mechanism and 14460has a larger code and data size. Note that these values will vary 14461depending on the efficiency of the compiler and the compiler 14462options used during generation. 14463 14464 Previous Release 14465 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 14466 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 14467 Current Release: 14468 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 14469 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 14470 14471 144722) Linux 14473 14474 14475Added preliminary support for obtaining _TRA data for PCI root 14476bridges (Bjorn Helgaas). 14477 14478 144793) iASL Compiler Version X2046: 14480 14481Fixed a problem where the "_DDN" reserved name was defined to be a 14482control method with one argument. There are no arguments, and 14483_DDN does not have to be a control method. 14484 14485Fixed a problem with the Linux version of the compiler where the 14486source lines printed with error messages were the wrong lines. 14487This turned out to be the "LF versus CR/LF" difference between 14488Windows and Unix. This appears to be the longstanding issue 14489concerning listing output and error messages. 14490 14491Fixed a problem with the Linux version of compiler where opcode 14492names within error messages were wrong. This was caused by a 14493slight difference in the output of the Flex tool on Linux versus 14494Windows. 14495 14496Fixed a problem with the Linux compiler where the hex output files 14497contained some garbage data caused by an internal buffer overrun. 14498 14499 14500---------------------------------------- 1450117 May 2002. Summary of changes for this release. 14502 14503 145041) ACPI CA Core Subsystem Version 20020517: 14505 14506Implemented a workaround to an BIOS bug discovered on the HP 14507OmniBook where the FADT revision number and the table size are 14508inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 14509behavior is to fallback to using only the ACPI 1.0 fields of the 14510FADT if the table is too small to be a ACPI 2.0 table as claimed 14511by the revision number. Although this is a BIOS bug, this is a 14512case where the workaround is simple enough and with no side 14513effects, so it seemed prudent to add it. A warning message is 14514issued, however. 14515 14516Implemented minimum size checks for the fixed-length ACPI tables - 14517- the FADT and FACS, as well as consistency checks between the 14518revision number and the table size. 14519 14520Fixed a reported problem in the table override support where the 14521new table pointer was incorrectly treated as a physical address 14522instead of a logical address. 14523 14524Eliminated the use of the AE_AML_ERROR exception and replaced it 14525with more descriptive codes. 14526 14527Fixed a problem where an exception would occur if an ASL Field was 14528defined with no named Field Units underneath it (used by some 14529index fields). 14530 14531Code and Data Size: Current core subsystem library sizes are shown 14532below. These are the code and data sizes for the acpica.lib 14533produced by the Microsoft Visual C++ 6.0 compiler, and these 14534values do not include any ACPI driver or OSPM code. The debug 14535version of the code includes the debug output trace mechanism and 14536has a larger code and data size. Note that these values will vary 14537depending on the efficiency of the compiler and the compiler 14538options used during generation. 14539 14540 Previous Release 14541 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 14542 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 14543 Current Release: 14544 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 14545 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 14546 14547 14548 145492) Linux 14550 14551Much work done on ACPI init (MADT and PCI IRQ routing support). 14552(Paul D. and Dominik Brodowski) 14553 14554Fix PCI IRQ-related panic on boot (Sam Revitch) 14555 14556Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 14557 14558Fix "MHz" typo (Dominik Brodowski) 14559 14560Fix RTC year 2000 issue (Dominik Brodowski) 14561 14562Preclude multiple button proc entries (Eric Brunet) 14563 14564Moved arch-specific code out of include/platform/aclinux.h 14565 145663) iASL Compiler Version X2044: 14567 14568Implemented error checking for the string used in the EISAID macro 14569(Usually used in the definition of the _HID object.) The code now 14570strictly enforces the PnP format - exactly 7 characters, 3 14571uppercase letters and 4 hex digits. 14572 14573If a raw string is used in the definition of the _HID object 14574(instead of the EISAID macro), the string must contain all 14575alphanumeric characters (e.g., "*PNP0011" is not allowed because 14576of the asterisk.) 14577 14578Implemented checking for invalid use of ACPI reserved names for 14579most of the name creation operators (Name, Device, Event, Mutex, 14580OperationRegion, PowerResource, Processor, and ThermalZone.) 14581Previously, this check was only performed for control methods. 14582 14583Implemented an additional check on the Name operator to emit an 14584error if a reserved name that must be implemented in ASL as a 14585control method is used. We know that a reserved name must be a 14586method if it is defined with input arguments. 14587 14588The warning emitted when a namespace object reference is not found 14589during the cross reference phase has been changed into an error. 14590The "External" directive should be used for names defined in other 14591modules. 14592 14593 145944) Tools and Utilities 14595 14596The 16-bit tools (adump16 and aexec16) have been regenerated and 14597tested. 14598 14599Fixed a problem with the output of both acpidump and adump16 where 14600the indentation of closing parentheses and brackets was not 14601 14602aligned properly with the parent block. 14603 14604 14605---------------------------------------- 1460603 May 2002. Summary of changes for this release. 14607 14608 146091) ACPI CA Core Subsystem Version 20020503: 14610 14611Added support a new OSL interface that allows the host operating 14612 14613system software to override the DSDT found in the firmware - 14614AcpiOsTableOverride. With this interface, the OSL can examine the 14615version of the firmware DSDT and replace it with a different one 14616if desired. 14617 14618Added new external interfaces for accessing ACPI registers from 14619device drivers and other system software - AcpiGetRegister and 14620AcpiSetRegister. This was simply an externalization of the 14621existing AcpiHwBitRegister interfaces. 14622 14623Fixed a regression introduced in the previous build where the 14624ASL/AML CreateField operator always returned an error, 14625"destination must be a NS Node". 14626 14627Extended the maximum time (before failure) to successfully enable 14628ACPI mode to 3 seconds. 14629 14630Code and Data Size: Current core subsystem library sizes are shown 14631below. These are the code and data sizes for the acpica.lib 14632produced by the Microsoft Visual C++ 6.0 compiler, and these 14633values do not include any ACPI driver or OSPM code. The debug 14634version of the code includes the debug output trace mechanism and 14635has a larger code and data size. Note that these values will vary 14636depending on the efficiency of the compiler and the compiler 14637options used during generation. 14638 14639 Previous Release 14640 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 14641 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 14642 Current Release: 14643 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 14644 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 14645 14646 146472) Linux 14648 14649Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 14650free. While 3 out of 4 of our in-house systems work fine, the last 14651one still hangs when testing the LAPIC timer. 14652 14653Renamed many files in 2.5 kernel release to omit "acpi_" from the 14654name. 14655 14656Added warning on boot for Presario 711FR. 14657 14658Sleep improvements (Pavel Machek) 14659 14660ACPI can now be built without CONFIG_PCI enabled. 14661 14662IA64: Fixed memory map functions (JI Lee) 14663 14664 146653) iASL Compiler Version X2043: 14666 14667Added support to allow the compiler to be integrated into the MS 14668VC++ development environment for one-button compilation of single 14669files or entire projects -- with error-to-source-line mapping. 14670 14671Implemented support for compile-time constant folding for the 14672Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 14673specification. This allows the ASL writer to use expressions 14674instead of Integer/Buffer/String constants in terms that must 14675evaluate to constants at compile time and will also simplify the 14676emitted AML in any such sub-expressions that can be folded 14677(evaluated at compile-time.) This increases the size of the 14678compiler significantly because a portion of the ACPI CA AML 14679interpreter is included within the compiler in order to pre- 14680evaluate constant expressions. 14681 14682 14683Fixed a problem with the "Unicode" ASL macro that caused the 14684compiler to fault. (This macro is used in conjunction with the 14685_STR reserved name.) 14686 14687Implemented an AML opcode optimization to use the Zero, One, and 14688Ones opcodes where possible to further reduce the size of integer 14689constants and thus reduce the overall size of the generated AML 14690code. 14691 14692Implemented error checking for new reserved terms for ACPI version 146932.0A. 14694 14695Implemented the -qr option to display the current list of ACPI 14696reserved names known to the compiler. 14697 14698Implemented the -qc option to display the current list of ASL 14699operators that are allowed within constant expressions and can 14700therefore be folded at compile time if the operands are constants. 14701 14702 147034) Documentation 14704 14705Updated the Programmer's Reference for new interfaces, data types, 14706and memory allocation model options. 14707 14708Updated the iASL Compiler User Reference to apply new format and 14709add information about new features and options. 14710 14711---------------------------------------- 1471219 April 2002. Summary of changes for this release. 14713 147141) ACPI CA Core Subsystem Version 20020419: 14715 14716The source code base for the Core Subsystem has been completely 14717cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 14718versions. The Lint option files used are included in the 14719/acpi/generate/lint directory. 14720 14721Implemented enhanced status/error checking across the entire 14722Hardware manager subsystem. Any hardware errors (reported from 14723the OSL) are now bubbled up and will abort a running control 14724method. 14725 14726 14727Fixed a problem where the per-ACPI-table integer width (32 or 64) 14728was stored only with control method nodes, causing a fault when 14729non-control method code was executed during table loading. The 14730solution implemented uses a global variable to indicate table 14731width across the entire ACPI subsystem. Therefore, ACPI CA does 14732not support mixed integer widths across different ACPI tables 14733(DSDT, SSDT). 14734 14735Fixed a problem where NULL extended fields (X fields) in an ACPI 147362.0 ACPI FADT caused the table load to fail. Although the 14737existing ACPI specification is a bit fuzzy on this topic, the new 14738behavior is to fall back on a ACPI 1.0 field if the corresponding 14739ACPI 2.0 X field is zero (even though the table revision indicates 14740a full ACPI 2.0 table.) The ACPI specification will be updated to 14741clarify this issue. 14742 14743Fixed a problem with the SystemMemory operation region handler 14744where memory was always accessed byte-wise even if the AML- 14745specified access width was larger than a byte. This caused 14746problems on systems with memory-mapped I/O. Memory is now 14747accessed with the width specified. On systems that do not support 14748non-aligned transfers, a check is made to guarantee proper address 14749alignment before proceeding in order to avoid an AML-caused 14750alignment fault within the kernel. 14751 14752 14753Fixed a problem with the ExtendedIrq resource where only one byte 14754of the 4-byte Irq field was extracted. 14755 14756Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 14757function was out of date and required a rewrite. 14758 14759Code and Data Size: Current core subsystem library sizes are shown 14760below. These are the code and data sizes for the acpica.lib 14761produced by the Microsoft Visual C++ 6.0 compiler, and these 14762values do not include any ACPI driver or OSPM code. The debug 14763version of the code includes the debug output trace mechanism and 14764has a larger code and data size. Note that these values will vary 14765depending on the efficiency of the compiler and the compiler 14766options used during generation. 14767 14768 Previous Release 14769 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 14770 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 14771 Current Release: 14772 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 14773 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 14774 14775 147762) Linux 14777 14778PCI IRQ routing fixes (Dominik Brodowski) 14779 14780 147813) iASL Compiler Version X2042: 14782 14783Implemented an additional compile-time error check for a field 14784unit whose size + minimum access width would cause a run-time 14785access beyond the end-of-region. Previously, only the field size 14786itself was checked. 14787 14788The Core subsystem and iASL compiler now share a common parse 14789object in preparation for compile-time evaluation of the type 147903/4/5 ASL operators. 14791 14792 14793---------------------------------------- 14794Summary of changes for this release: 03_29_02 14795 147961) ACPI CA Core Subsystem Version 20020329: 14797 14798Implemented support for late evaluation of TermArg operands to 14799Buffer and Package objects. This allows complex expressions to be 14800used in the declarations of these object types. 14801 14802Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 148031.0, if the field was larger than 32 bits, it was returned as a 14804buffer - otherwise it was returned as an integer. In ACPI 2.0, 14805the field is returned as a buffer only if the field is larger than 1480664 bits. The TableRevision is now considered when making this 14807conversion to avoid incompatibility with existing ASL code. 14808 14809Implemented logical addressing for AcpiOsGetRootPointer. This 14810allows an RSDP with either a logical or physical address. With 14811this support, the host OS can now override all ACPI tables with 14812one logical RSDP. Includes implementation of "typed" pointer 14813support to allow a common data type for both physical and logical 14814pointers internally. This required a change to the 14815AcpiOsGetRootPointer interface. 14816 14817Implemented the use of ACPI 2.0 Generic Address Structures for all 14818GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 14819mapped I/O for these ACPI features. 14820 14821Initialization now ignores not only non-required tables (All 14822tables other than the FADT, FACS, DSDT, and SSDTs), but also does 14823not validate the table headers of unrecognized tables. 14824 14825Fixed a problem where a notify handler could only be 14826installed/removed on an object of type Device. All "notify" 14827 14828objects are now supported -- Devices, Processor, Power, and 14829Thermal. 14830 14831Removed most verbosity from the ACPI_DB_INFO debug level. Only 14832critical information is returned when this debug level is enabled. 14833 14834Code and Data Size: Current core subsystem library sizes are shown 14835below. These are the code and data sizes for the acpica.lib 14836produced by the Microsoft Visual C++ 6.0 compiler, and these 14837values do not include any ACPI driver or OSPM code. The debug 14838version of the code includes the debug output trace mechanism and 14839has a larger code and data size. Note that these values will vary 14840depending on the efficiency of the compiler and the compiler 14841options used during generation. 14842 14843 Previous Release 14844 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 14845 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 14846 Current Release: 14847 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 14848 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 14849 14850 148512) Linux: 14852 14853The processor driver (acpi_processor.c) now fully supports ACPI 148542.0-based processor performance control (e.g. Intel(R) 14855SpeedStep(TM) technology) Note that older laptops that only have 14856the Intel "applet" interface are not supported through this. The 14857'limit' and 'performance' interface (/proc) are fully functional. 14858[Note that basic policy for controlling performance state 14859transitions will be included in the next version of ospmd.] The 14860idle handler was modified to more aggressively use C2, and PIIX4 14861errata handling underwent a complete overhaul (big thanks to 14862Dominik Brodowski). 14863 14864Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 14865based devices in the ACPI namespace are now dynamically bound 14866(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 14867This allows, among other things, ACPI to resolve bus numbers for 14868subordinate PCI bridges. 14869 14870Enhanced PCI IRQ routing to get the proper bus number for _PRT 14871entries defined underneath PCI bridges. 14872 14873Added IBM 600E to bad bios list due to invalid _ADR value for 14874PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 14875 14876In the process of adding full MADT support (e.g. IOAPIC) for IA32 14877(acpi.c, mpparse.c) -- stay tuned. 14878 14879Added back visual differentiation between fixed-feature and 14880control-method buttons in dmesg. Buttons are also subtyped (e.g. 14881button/power/PWRF) to simplify button identification. 14882 14883We no longer use -Wno-unused when compiling debug. Please ignore 14884any "_THIS_MODULE defined but not used" messages. 14885 14886Can now shut down the system using "magic sysrq" key. 14887 14888 148893) iASL Compiler version 2041: 14890 14891Fixed a problem where conversion errors for hex/octal/decimal 14892constants were not reported. 14893 14894Implemented a fix for the General Register template Address field. 14895This field was 8 bits when it should be 64. 14896 14897Fixed a problem where errors/warnings were no longer being emitted 14898within the listing output file. 14899 14900Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 14901exactly 4 characters, alphanumeric only. 14902 14903 14904 14905 14906---------------------------------------- 14907Summary of changes for this release: 03_08_02 14908 14909 149101) ACPI CA Core Subsystem Version 20020308: 14911 14912Fixed a problem with AML Fields where the use of the "AccessAny" 14913keyword could cause an interpreter error due to attempting to read 14914or write beyond the end of the parent Operation Region. 14915 14916Fixed a problem in the SystemMemory Operation Region handler where 14917an attempt was made to map memory beyond the end of the region. 14918This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 14919errors on some Linux systems. 14920 14921Fixed a problem where the interpreter/namespace "search to root" 14922algorithm was not functioning for some object types. Relaxed the 14923internal restriction on the search to allow upsearches for all 14924external object types as well as most internal types. 14925 14926 149272) Linux: 14928 14929We now use safe_halt() macro versus individual calls to sti | hlt. 14930 14931Writing to the processor limit interface should now work. "echo 1" 14932will increase the limit, 2 will decrease, and 0 will reset to the 14933 14934default. 14935 14936 149373) ASL compiler: 14938 14939Fixed segfault on Linux version. 14940 14941 14942---------------------------------------- 14943Summary of changes for this release: 02_25_02 14944 149451) ACPI CA Core Subsystem: 14946 14947 14948Fixed a problem where the GPE bit masks were not initialized 14949properly, causing erratic GPE behavior. 14950 14951Implemented limited support for multiple calling conventions. The 14952code can be generated with either the VPL (variable parameter 14953list, or "C") convention, or the FPL (fixed parameter list, or 14954"Pascal") convention. The core subsystem is about 3.4% smaller 14955when generated with FPL. 14956 14957 149582) Linux 14959 14960Re-add some /proc/acpi/event functionality that was lost during 14961the rewrite 14962 14963Resolved issue with /proc events for fixed-feature buttons showing 14964up as the system device. 14965 14966Fixed checks on C2/C3 latencies to be inclusive of maximum values. 14967 14968Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 14969 14970Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 14971 14972Fixed limit interface & usage to fix bugs with passive cooling 14973hysterisis. 14974 14975Restructured PRT support. 14976 14977 14978---------------------------------------- 14979Summary of changes for this label: 02_14_02 14980 14981 149821) ACPI CA Core Subsystem: 14983 14984Implemented support in AcpiLoadTable to allow loading of FACS and 14985FADT tables. 14986 14987Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 14988been removed. All 64-bit platforms should be migrated to the ACPI 149892.0 tables. The actbl71.h header has been removed from the source 14990tree. 14991 14992All C macros defined within the subsystem have been prefixed with 14993"ACPI_" to avoid collision with other system include files. 14994 14995Removed the return value for the two AcpiOsPrint interfaces, since 14996it is never used and causes lint warnings for ignoring the return 14997value. 14998 14999Added error checking to all internal mutex acquire and release 15000calls. Although a failure from one of these interfaces is 15001probably a fatal system error, these checks will cause the 15002immediate abort of the currently executing method or interface. 15003 15004Fixed a problem where the AcpiSetCurrentResources interface could 15005fault. This was a side effect of the deployment of the new memory 15006allocation model. 15007 15008Fixed a couple of problems with the Global Lock support introduced 15009in the last major build. The "common" (1.0/2.0) internal FACS was 15010being overwritten with the FACS signature and clobbering the 15011Global Lock pointer. Also, the actual firmware FACS was being 15012unmapped after construction of the "common" FACS, preventing 15013access to the actual Global Lock field within it. The "common" 15014internal FACS is no longer installed as an actual ACPI table; it 15015is used simply as a global. 15016 15017Code and Data Size: Current core subsystem library sizes are shown 15018below. These are the code and data sizes for the acpica.lib 15019produced by the Microsoft Visual C++ 6.0 compiler, and these 15020values do not include any ACPI driver or OSPM code. The debug 15021version of the code includes the debug output trace mechanism and 15022has a larger code and data size. Note that these values will vary 15023depending on the efficiency of the compiler and the compiler 15024options used during generation. 15025 15026 Previous Release (02_07_01) 15027 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 15028 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 15029 Current Release: 15030 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 15031 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 15032 15033 150342) Linux 15035 15036Updated Linux-specific code for core macro and OSL interface 15037changes described above. 15038 15039Improved /proc/acpi/event. It now can be opened only once and has 15040proper poll functionality. 15041 15042Fixed and restructured power management (acpi_bus). 15043 15044Only create /proc "view by type" when devices of that class exist. 15045 15046Fixed "charging/discharging" bug (and others) in acpi_battery. 15047 15048Improved thermal zone code. 15049 15050 150513) ASL Compiler, version X2039: 15052 15053 15054Implemented the new compiler restriction on ASL String hex/octal 15055escapes to non-null, ASCII values. An error results if an invalid 15056value is used. (This will require an ACPI 2.0 specification 15057change.) 15058 15059AML object labels that are output to the optional C and ASM source 15060are now prefixed with both the ACPI table signature and table ID 15061to help guarantee uniqueness within a large BIOS project. 15062 15063 15064---------------------------------------- 15065Summary of changes for this label: 02_01_02 15066 150671) ACPI CA Core Subsystem: 15068 15069ACPI 2.0 support is complete in the entire Core Subsystem and the 15070ASL compiler. All new ACPI 2.0 operators are implemented and all 15071other changes for ACPI 2.0 support are complete. With 15072simultaneous code and data optimizations throughout the subsystem, 15073ACPI 2.0 support has been implemented with almost no additional 15074cost in terms of code and data size. 15075 15076Implemented a new mechanism for allocation of return buffers. If 15077the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 15078be allocated on behalf of the caller. Consolidated all return 15079buffer validation and allocation to a common procedure. Return 15080buffers will be allocated via the primary OSL allocation interface 15081since it appears that a separate pool is not needed by most users. 15082If a separate pool is required for these buffers, the caller can 15083still use the original mechanism and pre-allocate the buffer(s). 15084 15085Implemented support for string operands within the DerefOf 15086operator. 15087 15088Restructured the Hardware and Event managers to be table driven, 15089simplifying the source code and reducing the amount of generated 15090code. 15091 15092Split the common read/write low-level ACPI register bitfield 15093procedure into a separate read and write, simplifying the code 15094considerably. 15095 15096Obsoleted the AcpiOsCallocate OSL interface. This interface was 15097used only a handful of times and didn't have enough critical mass 15098for a separate interface. Replaced with a common calloc procedure 15099in the core. 15100 15101Fixed a reported problem with the GPE number mapping mechanism 15102that allows GPE1 numbers to be non-contiguous with GPE0. 15103Reorganized the GPE information and shrunk a large array that was 15104originally large enough to hold info for all possible GPEs (256) 15105to simply large enough to hold all GPEs up to the largest GPE 15106number on the machine. 15107 15108Fixed a reported problem with resource structure alignment on 64- 15109bit platforms. 15110 15111Changed the AcpiEnableEvent and AcpiDisableEvent external 15112interfaces to not require any flags for the common case of 15113enabling/disabling a GPE. 15114 15115Implemented support to allow a "Notify" on a Processor object. 15116 15117Most TBDs in comments within the source code have been resolved 15118and eliminated. 15119 15120 15121Fixed a problem in the interpreter where a standalone parent 15122prefix (^) was not handled correctly in the interpreter and 15123debugger. 15124 15125Removed obsolete and unnecessary GPE save/restore code. 15126 15127Implemented Field support in the ASL Load operator. This allows a 15128table to be loaded from a named field, in addition to loading a 15129table directly from an Operation Region. 15130 15131Implemented timeout and handle support in the external Global Lock 15132interfaces. 15133 15134Fixed a problem in the AcpiDump utility where pathnames were no 15135longer being generated correctly during the dump of named objects. 15136 15137Modified the AML debugger to give a full display of if/while 15138predicates instead of just one AML opcode at a time. (The 15139predicate can have several nested ASL statements.) The old method 15140was confusing during single stepping. 15141 15142Code and Data Size: Current core subsystem library sizes are shown 15143below. These are the code and data sizes for the acpica.lib 15144produced by the Microsoft Visual C++ 6.0 compiler, and these 15145values do not include any ACPI driver or OSPM code. The debug 15146version of the code includes the debug output trace mechanism and 15147has a larger code and data size. Note that these values will vary 15148depending on the efficiency of the compiler and the compiler 15149options used during generation. 15150 15151 Previous Release (12_18_01) 15152 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 15153 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 15154 Current Release: 15155 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 15156 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 15157 151582) Linux 15159 15160 Implemented fix for PIIX reverse throttling errata (Processor 15161driver) 15162 15163Added new Limit interface (Processor and Thermal drivers) 15164 15165New thermal policy (Thermal driver) 15166 15167Many updates to /proc 15168 15169Battery "low" event support (Battery driver) 15170 15171Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 15172 15173IA32 - IA64 initialization unification, no longer experimental 15174 15175Menuconfig options redesigned 15176 151773) ASL Compiler, version X2037: 15178 15179Implemented several new output features to simplify integration of 15180AML code into firmware: 1) Output the AML in C source code with 15181labels for each named ASL object. The original ASL source code 15182is interleaved as C comments. 2) Output the AML in ASM source code 15183with labels and interleaved ASL source. 3) Output the AML in 15184raw hex table form, in either C or ASM. 15185 15186Implemented support for optional string parameters to the 15187LoadTable operator. 15188 15189Completed support for embedded escape sequences within string 15190literals. The compiler now supports all single character escapes 15191as well as the Octal and Hex escapes. Note: the insertion of a 15192null byte into a string literal (via the hex/octal escape) causes 15193the string to be immediately terminated. A warning is issued. 15194 15195Fixed a problem where incorrect AML was generated for the case 15196where an ASL namepath consists of a single parent prefix ( 15197 15198) with no trailing name segments. 15199 15200The compiler has been successfully generated with a 64-bit C 15201compiler. 15202 15203 15204 15205 15206---------------------------------------- 15207Summary of changes for this label: 12_18_01 15208 152091) Linux 15210 15211Enhanced blacklist with reason and severity fields. Any table's 15212signature may now be used to identify a blacklisted system. 15213 15214Call _PIC control method to inform the firmware which interrupt 15215model the OS is using. Turn on any disabled link devices. 15216 15217Cleaned up busmgr /proc error handling (Andreas Dilger) 15218 15219 2) ACPI CA Core Subsystem: 15220 15221Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 15222while loop) 15223 15224Completed implementation of the ACPI 2.0 "Continue", 15225"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 15226operators. All new ACPI 2.0 operators are now implemented in both 15227the ASL compiler and the AML interpreter. The only remaining ACPI 152282.0 task is support for the String data type in the DerefOf 15229operator. Fixed a problem with AcquireMutex where the status code 15230was lost if the caller had to actually wait for the mutex. 15231 15232Increased the maximum ASL Field size from 64K bits to 4G bits. 15233 15234Completed implementation of the external Global Lock interfaces -- 15235AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 15236Handler parameters were added. 15237 15238Completed another pass at removing warnings and issues when 15239compiling with 64-bit compilers. The code now compiles cleanly 15240with the Intel 64-bit C/C++ compiler. Most notably, the pointer 15241add and subtract (diff) macros have changed considerably. 15242 15243 15244Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1524564-bit platforms, 32-bits on all others. This type is used 15246wherever memory allocation and/or the C sizeof() operator is used, 15247and affects the OSL memory allocation interfaces AcpiOsAllocate 15248and AcpiOsCallocate. 15249 15250Implemented sticky user breakpoints in the AML debugger. 15251 15252Code and Data Size: Current core subsystem library sizes are shown 15253below. These are the code and data sizes for the acpica.lib 15254produced by the Microsoft Visual C++ 6.0 compiler, and these 15255values do not include any ACPI driver or OSPM code. The debug 15256version of the code includes the debug output trace mechanism and 15257has a larger code and data size. Note that these values will vary 15258depending on the efficiency of the compiler and the compiler 15259options used during generation. 15260 15261 Previous Release (12_05_01) 15262 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 15263 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 15264 Current Release: 15265 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 15266 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 15267 15268 3) ASL Compiler, version X2034: 15269 15270Now checks for (and generates an error if detected) the use of a 15271Break or Continue statement without an enclosing While statement. 15272 15273 15274Successfully generated the compiler with the Intel 64-bit C 15275compiler. 15276 15277 ---------------------------------------- 15278Summary of changes for this label: 12_05_01 15279 15280 1) ACPI CA Core Subsystem: 15281 15282The ACPI 2.0 CopyObject operator is fully implemented. This 15283operator creates a new copy of an object (and is also used to 15284bypass the "implicit conversion" mechanism of the Store operator.) 15285 15286The ACPI 2.0 semantics for the SizeOf operator are fully 15287implemented. The change is that performing a SizeOf on a 15288reference object causes an automatic dereference of the object to 15289tha actual value before the size is evaluated. This behavior was 15290undefined in ACPI 1.0. 15291 15292The ACPI 2.0 semantics for the Extended IRQ resource descriptor 15293have been implemented. The interrupt polarity and mode are now 15294independently set. 15295 15296Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 15297appearing in Package objects were not properly converted to 15298integers when the internal Package was converted to an external 15299object (via the AcpiEvaluateObject interface.) 15300 15301Fixed a problem with the namespace object deletion mechanism for 15302objects created by control methods. There were two parts to this 15303problem: 1) Objects created during the initialization phase method 15304parse were not being deleted, and 2) The object owner ID mechanism 15305to track objects was broken. 15306 15307Fixed a problem where the use of the ASL Scope operator within a 15308control method would result in an invalid opcode exception. 15309 15310Fixed a problem introduced in the previous label where the buffer 15311length required for the _PRT structure was not being returned 15312correctly. 15313 15314Code and Data Size: Current core subsystem library sizes are shown 15315below. These are the code and data sizes for the acpica.lib 15316produced by the Microsoft Visual C++ 6.0 compiler, and these 15317values do not include any ACPI driver or OSPM code. The debug 15318version of the code includes the debug output trace mechanism and 15319has a larger code and data size. Note that these values will vary 15320depending on the efficiency of the compiler and the compiler 15321options used during generation. 15322 15323 Previous Release (11_20_01) 15324 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 15325 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 15326 15327 Current Release: 15328 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 15329 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 15330 15331 2) Linux: 15332 15333Updated all files to apply cleanly against 2.4.16. 15334 15335Added basic PCI Interrupt Routing Table (PRT) support for IA32 15336(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 15337version supports both static and dyanmic PRT entries, but dynamic 15338entries are treated as if they were static (not yet 15339reconfigurable). Architecture- specific code to use this data is 15340absent on IA32 but should be available shortly. 15341 15342Changed the initialization sequence to start the ACPI interpreter 15343(acpi_init) prior to initialization of the PCI driver (pci_init) 15344in init/main.c. This ordering is required to support PRT and 15345facilitate other (future) enhancement. A side effect is that the 15346ACPI bus driver and certain device drivers can no longer be loaded 15347as modules. 15348 15349Modified the 'make menuconfig' options to allow PCI Interrupt 15350Routing support to be included without the ACPI Bus and other 15351device drivers. 15352 15353 3) ASL Compiler, version X2033: 15354 15355Fixed some issues with the use of the new CopyObject and 15356DataTableRegion operators. Both are fully functional. 15357 15358 ---------------------------------------- 15359Summary of changes for this label: 11_20_01 15360 15361 20 November 2001. Summary of changes for this release. 15362 15363 1) ACPI CA Core Subsystem: 15364 15365Updated Index support to match ACPI 2.0 semantics. Storing a 15366Integer, String, or Buffer to an Index of a Buffer will store only 15367the least-significant byte of the source to the Indexed buffer 15368byte. Multiple writes are not performed. 15369 15370Fixed a problem where the access type used in an AccessAs ASL 15371operator was not recorded correctly into the field object. 15372 15373Fixed a problem where ASL Event objects were created in a 15374signalled state. Events are now created in an unsignalled state. 15375 15376The internal object cache is now purged after table loading and 15377initialization to reduce the use of dynamic kernel memory -- on 15378the assumption that object use is greatest during the parse phase 15379of the entire table (versus the run-time use of individual control 15380methods.) 15381 15382ACPI 2.0 variable-length packages are now fully operational. 15383 15384Code and Data Size: Code and Data optimizations have permitted new 15385feature development with an actual reduction in the library size. 15386Current core subsystem library sizes are shown below. These are 15387the code and data sizes for the acpica.lib produced by the 15388Microsoft Visual C++ 6.0 compiler, and these values do not include 15389any ACPI driver or OSPM code. The debug version of the code 15390includes the debug output trace mechanism and has a larger code 15391and data size. Note that these values will vary depending on the 15392efficiency of the compiler and the compiler options used during 15393generation. 15394 15395 Previous Release (11_09_01): 15396 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 15397 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 15398 15399 Current Release: 15400 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 15401 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 15402 15403 2) Linux: 15404 15405Enhanced the ACPI boot-time initialization code to allow the use 15406of Local APIC tables for processor enumeration on IA-32, and to 15407pave the way for a fully MPS-free boot (on SMP systems) in the 15408near future. This functionality replaces 15409arch/i386/kernel/acpitables.c, which was introduced in an earlier 154102.4.15-preX release. To enable this feature you must add 15411"acpi_boot=on" to the kernel command line -- see the help entry 15412for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 15413the works... 15414 15415Restructured the configuration options to allow boot-time table 15416parsing support without inclusion of the ACPI Interpreter (and 15417other) code. 15418 15419NOTE: This release does not include fixes for the reported events, 15420power-down, and thermal passive cooling issues (coming soon). 15421 15422 3) ASL Compiler: 15423 15424Added additional typechecking for Fields within restricted access 15425Operation Regions. All fields within EC and CMOS regions must be 15426declared with ByteAcc. All fields withing SMBus regions must be 15427declared with the BufferAcc access type. 15428 15429Fixed a problem where the listing file output of control methods 15430no longer interleaved the actual AML code with the ASL source 15431code. 15432 15433 15434 15435 15436---------------------------------------- 15437Summary of changes for this label: 11_09_01 15438 154391) ACPI CA Core Subsystem: 15440 15441Implemented ACPI 2.0-defined support for writes to fields with a 15442Buffer, String, or Integer source operand that is smaller than the 15443target field. In these cases, the source operand is zero-extended 15444to fill the target field. 15445 15446Fixed a problem where a Field starting bit offset (within the 15447parent operation region) was calculated incorrectly if the 15448 15449alignment of the field differed from the access width. This 15450affected CreateWordField, CreateDwordField, CreateQwordField, and 15451possibly other fields that use the "AccessAny" keyword. 15452 15453Fixed a problem introduced in the 11_02_01 release where indirect 15454stores through method arguments did not operate correctly. 15455 154562) Linux: 15457 15458Implemented boot-time ACPI table parsing support 15459(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 15460facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 15461legacy BIOS interfaces (e.g. MPS) for the configuration of system 15462processors, memory, and interrupts during setup_arch(). Note that 15463this patch does not include the required architecture-specific 15464changes required to apply this information -- subsequent patches 15465will be posted for both IA32 and IA64 to achieve this. 15466 15467Added low-level sleep support for IA32 platforms, courtesy of Pat 15468Mochel. This allows IA32 systems to transition to/from various 15469sleeping states (e.g. S1, S3), although the lack of a centralized 15470driver model and power-manageable drivers will prevent its 15471(successful) use on most systems. 15472 15473Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 15474submenu, unified IA32 and IA64 options, added new "Boot using ACPI 15475tables" option, etc. 15476 15477Increased the default timeout for the EC driver from 1ms to 10ms 15478(1000 cycles of 10us) to try to address AE_TIME errors during EC 15479transactions. 15480 15481 ---------------------------------------- 15482Summary of changes for this label: 11_02_01 15483 154841) ACPI CA Core Subsystem: 15485 15486ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 15487(QWordAcc keyword). All ACPI 2.0 64-bit support is now 15488implemented. 15489 15490OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 15491changes to support ACPI 2.0 Qword field access. Read/Write 15492PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 15493accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 15494the value parameter for the address space handler interface is now 15495an ACPI_INTEGER. OSL implementations of these interfaces must now 15496handle the case where the Width parameter is 64. 15497 15498Index Fields: Fixed a problem where unaligned bit assembly and 15499disassembly for IndexFields was not supported correctly. 15500 15501Index and Bank Fields: Nested Index and Bank Fields are now 15502supported. During field access, a check is performed to ensure 15503that the value written to an Index or Bank register is not out of 15504the range of the register. The Index (or Bank) register is 15505written before each access to the field data. Future support will 15506include allowing individual IndexFields to be wider than the 15507DataRegister width. 15508 15509Fields: Fixed a problem where the AML interpreter was incorrectly 15510attempting to write beyond the end of a Field/OpRegion. This was 15511a boundary case that occurred when a DWORD field was written to a 15512BYTE access OpRegion, forcing multiple writes and causing the 15513interpreter to write one datum too many. 15514 15515Fields: Fixed a problem with Field/OpRegion access where the 15516starting bit address of a field was incorrectly calculated if the 15517current access type was wider than a byte (WordAcc, DwordAcc, or 15518QwordAcc). 15519 15520Fields: Fixed a problem where forward references to individual 15521FieldUnits (individual Field names within a Field definition) were 15522not resolved during the AML table load. 15523 15524Fields: Fixed a problem where forward references from a Field 15525definition to the parent Operation Region definition were not 15526resolved during the AML table load. 15527 15528Fields: Duplicate FieldUnit names within a scope are now detected 15529during AML table load. 15530 15531Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 15532returned an incorrect name for the root node. 15533 15534Code and Data Size: Code and Data optimizations have permitted new 15535feature development with an actual reduction in the library size. 15536Current core subsystem library sizes are shown below. These are 15537the code and data sizes for the acpica.lib produced by the 15538Microsoft Visual C++ 6.0 compiler, and these values do not include 15539any ACPI driver or OSPM code. The debug version of the code 15540includes the debug output trace mechanism and has a larger code 15541and data size. Note that these values will vary depending on the 15542efficiency of the compiler and the compiler options used during 15543generation. 15544 15545 Previous Release (10_18_01): 15546 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 15547 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 15548 15549 Current Release: 15550 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 15551 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 15552 15553 2) Linux: 15554 15555Improved /proc processor output (Pavel Machek) Re-added 15556MODULE_LICENSE("GPL") to all modules. 15557 15558 3) ASL Compiler version X2030: 15559 15560Duplicate FieldUnit names within a scope are now detected and 15561flagged as errors. 15562 15563 4) Documentation: 15564 15565Programmer Reference updated to reflect OSL and address space 15566handler interface changes described above. 15567 15568---------------------------------------- 15569Summary of changes for this label: 10_18_01 15570 15571ACPI CA Core Subsystem: 15572 15573Fixed a problem with the internal object reference count mechanism 15574that occasionally caused premature object deletion. This resolves 15575all of the outstanding problem reports where an object is deleted 15576in the middle of an interpreter evaluation. Although this problem 15577only showed up in rather obscure cases, the solution to the 15578problem involved an adjustment of all reference counts involving 15579objects attached to namespace nodes. 15580 15581Fixed a problem with Field support in the interpreter where 15582writing to an aligned field whose length is an exact multiple (2 15583or greater) of the field access granularity would cause an attempt 15584to write beyond the end of the field. 15585 15586The top level AML opcode execution functions within the 15587interpreter have been renamed with a more meaningful and 15588consistent naming convention. The modules exmonad.c and 15589exdyadic.c were eliminated. New modules are exoparg1.c, 15590exoparg2.c, exoparg3.c, and exoparg6.c. 15591 15592Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 15593 15594Fixed a problem where the AML debugger was causing some internal 15595objects to not be deleted during subsystem termination. 15596 15597Fixed a problem with the external AcpiEvaluateObject interface 15598where the subsystem would fault if the named object to be 15599evaluated refered to a constant such as Zero, Ones, etc. 15600 15601Fixed a problem with IndexFields and BankFields where the 15602subsystem would fault if the index, data, or bank registers were 15603not defined in the same scope as the field itself. 15604 15605Added printf format string checking for compilers that support 15606this feature. Corrected more than 50 instances of issues with 15607format specifiers within invocations of ACPI_DEBUG_PRINT 15608throughout the core subsystem code. 15609 15610The ASL "Revision" operator now returns the ACPI support level 15611implemented in the core - the value "2" since the ACPI 2.0 support 15612is more than 50% implemented. 15613 15614Enhanced the output of the AML debugger "dump namespace" command 15615to output in a more human-readable form. 15616 15617Current core subsystem library code sizes are shown below. These 15618 15619are the code and data sizes for the acpica.lib produced by the 15620Microsoft Visual C++ 6.0 compiler, and these values do not include 15621any ACPI driver or OSPM code. The debug version of the code 15622includes the full debug trace mechanism -- leading to a much 15623 15624larger code and data size. Note that these values will vary 15625depending on the efficiency of the compiler and the compiler 15626options used during generation. 15627 15628 Previous Label (09_20_01): 15629 Non-Debug Version: 65K Code, 5K Data, 70K Total 15630 Debug Version: 138K Code, 58K Data, 196K Total 15631 15632 This Label: 15633 15634 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 15635 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 15636 15637Linux: 15638 15639Implemented a "Bad BIOS Blacklist" to track machines that have 15640known ASL/AML problems. 15641 15642Enhanced the /proc interface for the thermal zone driver and added 15643support for _HOT (the critical suspend trip point). The 'info' 15644file now includes threshold/policy information, and allows setting 15645of _SCP (cooling preference) and _TZP (polling frequency) values 15646to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 15647frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 15648preference to the passive/quiet mode (if supported by the ASL). 15649 15650Implemented a workaround for a gcc bug that resuted in an OOPs 15651when loading the control method battery driver. 15652 15653 ---------------------------------------- 15654Summary of changes for this label: 09_20_01 15655 15656 ACPI CA Core Subsystem: 15657 15658The AcpiEnableEvent and AcpiDisableEvent interfaces have been 15659modified to allow individual GPE levels to be flagged as wake- 15660enabled (i.e., these GPEs are to remain enabled when the platform 15661sleeps.) 15662 15663The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 15664support wake-enabled GPEs. This means that upon entering the 15665sleep state, all GPEs that are not wake-enabled are disabled. 15666When leaving the sleep state, these GPEs are reenabled. 15667 15668A local double-precision divide/modulo module has been added to 15669enhance portability to OS kernels where a 64-bit math library is 15670not available. The new module is "utmath.c". 15671 15672Several optimizations have been made to reduce the use of CPU 15673stack. Originally over 2K, the maximum stack usage is now below 156742K at 1860 bytes (1.82k) 15675 15676Fixed a problem with the AcpiGetFirmwareTable interface where the 15677root table pointer was not mapped into a logical address properly. 15678 15679Fixed a problem where a NULL pointer was being dereferenced in the 15680interpreter code for the ASL Notify operator. 15681 15682Fixed a problem where the use of the ASL Revision operator 15683returned an error. This operator now returns the current version 15684of the ACPI CA core subsystem. 15685 15686Fixed a problem where objects passed as control method parameters 15687to AcpiEvaluateObject were always deleted at method termination. 15688However, these objects may end up being stored into the namespace 15689by the called method. The object reference count mechanism was 15690applied to these objects instead of a force delete. 15691 15692Fixed a problem where static strings or buffers (contained in the 15693AML code) that are declared as package elements within the ASL 15694code could cause a fault because the interpreter would attempt to 15695delete them. These objects are now marked with the "static 15696object" flag to prevent any attempt to delete them. 15697 15698Implemented an interpreter optimization to use operands directly 15699from the state object instead of extracting the operands to local 15700variables. This reduces stack use and code size, and improves 15701performance. 15702 15703The module exxface.c was eliminated as it was an unnecessary extra 15704layer of code. 15705 15706Current core subsystem library code sizes are shown below. These 15707are the code and data sizes for the acpica.lib produced by the 15708Microsoft Visual C++ 6.0 compiler, and these values do not include 15709any ACPI driver or OSPM code. The debug version of the code 15710includes the full debug trace mechanism -- leading to a much 15711larger code and data size. Note that these values will vary 15712depending on the efficiency of the compiler and the compiler 15713options used during generation. 15714 15715 Non-Debug Version: 65K Code, 5K Data, 70K Total 15716(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 15717Total (Previously 195K) 15718 15719Linux: 15720 15721Support for ACPI 2.0 64-bit integers has been added. All ACPI 15722Integer objects are now 64 bits wide 15723 15724All Acpi data types and structures are now in lower case. Only 15725Acpi macros are upper case for differentiation. 15726 15727 Documentation: 15728 15729Changes to the external interfaces as described above. 15730 15731 ---------------------------------------- 15732Summary of changes for this label: 08_31_01 15733 15734 ACPI CA Core Subsystem: 15735 15736A bug with interpreter implementation of the ASL Divide operator 15737was found and fixed. The implicit function return value (not the 15738explicit store operands) was returning the remainder instead of 15739the quotient. This was a longstanding bug and it fixes several 15740known outstanding issues on various platforms. 15741 15742The ACPI_DEBUG_PRINT and function trace entry/exit macros have 15743been further optimized for size. There are 700 invocations of the 15744DEBUG_PRINT macro alone, so each optimization reduces the size of 15745the debug version of the subsystem significantly. 15746 15747A stack trace mechanism has been implemented. The maximum stack 15748usage is about 2K on 32-bit platforms. The debugger command "stat 15749stack" will display the current maximum stack usage. 15750 15751All public symbols and global variables within the subsystem are 15752now prefixed with the string "Acpi". This keeps all of the 15753symbols grouped together in a kernel map, and avoids conflicts 15754with other kernel subsystems. 15755 15756Most of the internal fixed lookup tables have been moved into the 15757code segment via the const operator. 15758 15759Several enhancements have been made to the interpreter to both 15760reduce the code size and improve performance. 15761 15762Current core subsystem library code sizes are shown below. These 15763are the code and data sizes for the acpica.lib produced by the 15764Microsoft Visual C++ 6.0 compiler, and these values do not include 15765any ACPI driver or OSPM code. The debug version of the code 15766includes the full debug trace mechanism which contains over 700 15767invocations of the DEBUG_PRINT macro, 500 function entry macro 15768invocations, and over 900 function exit macro invocations -- 15769leading to a much larger code and data size. Note that these 15770values will vary depending on the efficiency of the compiler and 15771the compiler options used during generation. 15772 15773 Non-Debug Version: 64K Code, 5K Data, 69K Total 15774Debug Version: 137K Code, 58K Data, 195K Total 15775 15776 Linux: 15777 15778Implemented wbinvd() macro, pending a kernel-wide definition. 15779 15780Fixed /proc/acpi/event to handle poll() and short reads. 15781 15782 ASL Compiler, version X2026: 15783 15784Fixed a problem introduced in the previous label where the AML 15785 15786code emitted for package objects produced packages with zero 15787length. 15788 15789 ---------------------------------------- 15790Summary of changes for this label: 08_16_01 15791 15792ACPI CA Core Subsystem: 15793 15794The following ACPI 2.0 ASL operators have been implemented in the 15795AML interpreter (These are already supported by the Intel ASL 15796compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 15797ToBuffer. Support for 64-bit AML constants is implemented in the 15798AML parser, debugger, and disassembler. 15799 15800The internal memory tracking mechanism (leak detection code) has 15801been upgraded to reduce the memory overhead (a separate tracking 15802block is no longer allocated for each memory allocation), and now 15803supports all of the internal object caches. 15804 15805The data structures and code for the internal object caches have 15806been coelesced and optimized so that there is a single cache and 15807memory list data structure and a single group of functions that 15808implement generic cache management. This has reduced the code 15809size in both the debug and release versions of the subsystem. 15810 15811The DEBUG_PRINT macro(s) have been optimized for size and replaced 15812by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 15813different, because it generates a single call to an internal 15814function. This results in a savings of about 90 bytes per 15815invocation, resulting in an overall code and data savings of about 1581616% in the debug version of the subsystem. 15817 15818 Linux: 15819 15820Fixed C3 disk corruption problems and re-enabled C3 on supporting 15821machines. 15822 15823Integrated low-level sleep code by Patrick Mochel. 15824 15825Further tweaked source code Linuxization. 15826 15827Other minor fixes. 15828 15829 ASL Compiler: 15830 15831Support for ACPI 2.0 variable length packages is fixed/completed. 15832 15833Fixed a problem where the optional length parameter for the ACPI 158342.0 ToString operator. 15835 15836Fixed multiple extraneous error messages when a syntax error is 15837detected within the declaration line of a control method. 15838 15839 ---------------------------------------- 15840Summary of changes for this label: 07_17_01 15841 15842ACPI CA Core Subsystem: 15843 15844Added a new interface named AcpiGetFirmwareTable to obtain any 15845ACPI table via the ACPI signature. The interface can be called at 15846any time during kernel initialization, even before the kernel 15847virtual memory manager is initialized and paging is enabled. This 15848allows kernel subsystems to obtain ACPI tables very early, even 15849before the ACPI CA subsystem is initialized. 15850 15851Fixed a problem where Fields defined with the AnyAcc attribute 15852could be resolved to the incorrect address under the following 15853conditions: 1) the field width is larger than 8 bits and 2) the 15854parent operation region is not defined on a DWORD boundary. 15855 15856Fixed a problem where the interpreter is not being locked during 15857namespace initialization (during execution of the _INI control 15858methods), causing an error when an attempt is made to release it 15859later. 15860 15861ACPI 2.0 support in the AML Interpreter has begun and will be 15862ongoing throughout the rest of this year. In this label, The Mod 15863operator is implemented. 15864 15865Added a new data type to contain full PCI addresses named 15866ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 15867and Function values. 15868 15869 Linux: 15870 15871Enhanced the Linux version of the source code to change most 15872capitalized ACPI type names to lowercase. For example, all 15873instances of ACPI_STATUS are changed to acpi_status. This will 15874result in a large diff, but the change is strictly cosmetic and 15875aligns the CA code closer to the Linux coding standard. 15876 15877OSL Interfaces: 15878 15879The interfaces to the PCI configuration space have been changed to 15880add the PCI Segment number and to split the single 32-bit combined 15881DeviceFunction field into two 16-bit fields. This was 15882accomplished by moving the four values that define an address in 15883PCI configuration space (segment, bus, device, and function) to 15884the new ACPI_PCI_ID structure. 15885 15886The changes to the PCI configuration space interfaces led to a 15887reexamination of the complete set of address space access 15888interfaces for PCI, I/O, and Memory. The previously existing 18 15889interfaces have proven difficult to maintain (any small change 15890must be propagated across at least 6 interfaces) and do not easily 15891allow for future expansion to 64 bits if necessary. Also, on some 15892systems, it would not be appropriate to demultiplex the access 15893width (8, 16, 32,or 64) before calling the OSL if the 15894corresponding native OS interfaces contain a similar access width 15895parameter. For these reasons, the 18 address space interfaces 15896have been replaced by these 6 new ones: 15897 15898AcpiOsReadPciConfiguration 15899AcpiOsWritePciConfiguration 15900AcpiOsReadMemory 15901AcpiOsWriteMemory 15902AcpiOsReadPort 15903AcpiOsWritePort 15904 15905Added a new interface named AcpiOsGetRootPointer to allow the OSL 15906to perform the platform and/or OS-specific actions necessary to 15907obtain the ACPI RSDP table pointer. On IA-32 platforms, this 15908interface will simply call down to the CA core to perform the low- 15909memory search for the table. On IA-64, the RSDP is obtained from 15910EFI. Migrating this interface to the OSL allows the CA core to 15911 15912remain OS and platform independent. 15913 15914Added a new interface named AcpiOsSignal to provide a generic 15915"function code and pointer" interface for various miscellaneous 15916signals and notifications that must be made to the host OS. The 15917first such signals are intended to support the ASL Fatal and 15918Breakpoint operators. In the latter case, the AcpiOsBreakpoint 15919interface has been obsoleted. 15920 15921The definition of the AcpiFormatException interface has been 15922changed to simplify its use. The caller no longer must supply a 15923buffer to the call; A pointer to a const string is now returned 15924directly. This allows the call to be easily used in printf 15925statements, etc. since the caller does not have to manage a local 15926buffer. 15927 15928 15929 ASL Compiler, Version X2025: 15930 15931The ACPI 2.0 Switch/Case/Default operators have been implemented 15932and are fully functional. They will work with all ACPI 1.0 15933interpreters, since the operators are simply translated to If/Else 15934pairs. 15935 15936The ACPI 2.0 ElseIf operator is implemented and will also work 15937with 1.0 interpreters, for the same reason. 15938 15939Implemented support for ACPI 2.0 variable-length packages. These 15940packages have a separate opcode, and their size is determined by 15941the interpreter at run-time. 15942 15943Documentation The ACPI CA Programmer Reference has been updated to 15944reflect the new interfaces and changes to existing interfaces. 15945 15946 ------------------------------------------ 15947Summary of changes for this label: 06_15_01 15948 15949 ACPI CA Core Subsystem: 15950 15951Fixed a problem where a DWORD-accessed field within a Buffer 15952object would get its byte address inadvertently rounded down to 15953the nearest DWORD. Buffers are always Byte-accessible. 15954 15955 ASL Compiler, version X2024: 15956 15957Fixed a problem where the Switch() operator would either fault or 15958hang the compiler. Note however, that the AML code for this ACPI 159592.0 operator is not yet implemented. 15960 15961Compiler uses the new AcpiOsGetTimer interface to obtain compile 15962timings. 15963 15964Implementation of the CreateField operator automatically converts 15965a reference to a named field within a resource descriptor from a 15966byte offset to a bit offset if required. 15967 15968Added some missing named fields from the resource descriptor 15969support. These are the names that are automatically created by the 15970compiler to reference fields within a descriptor. They are only 15971valid at compile time and are not passed through to the AML 15972interpreter. 15973 15974Resource descriptor named fields are now typed as Integers and 15975subject to compile-time typechecking when used in expressions. 15976 15977 ------------------------------------------ 15978Summary of changes for this label: 05_18_01 15979 15980 ACPI CA Core Subsystem: 15981 15982Fixed a couple of problems in the Field support code where bits 15983from adjacent fields could be returned along with the proper field 15984bits. Restructured the field support code to improve performance, 15985readability and maintainability. 15986 15987New DEBUG_PRINTP macro automatically inserts the procedure name 15988into the output, saving hundreds of copies of procedure name 15989strings within the source, shrinking the memory footprint of the 15990debug version of the core subsystem. 15991 15992 Source Code Structure: 15993 15994The source code directory tree was restructured to reflect the 15995current organization of the component architecture. Some files 15996and directories have been moved and/or renamed. 15997 15998 Linux: 15999 16000Fixed leaking kacpidpc processes. 16001 16002Fixed queueing event data even when /proc/acpi/event is not 16003opened. 16004 16005 ASL Compiler, version X2020: 16006 16007Memory allocation performance enhancement - over 24X compile time 16008improvement on large ASL files. Parse nodes and namestring 16009buffers are now allocated from a large internal compiler buffer. 16010 16011The temporary .SRC file is deleted unless the "-s" option is 16012specified 16013 16014The "-d" debug output option now sends all output to the .DBG file 16015instead of the console. 16016 16017"External" second parameter is now optional 16018 16019"ElseIf" syntax now properly allows the predicate 16020 16021Last operand to "Load" now recognized as a Target operand 16022 16023Debug object can now be used anywhere as a normal object. 16024 16025ResourceTemplate now returns an object of type BUFFER 16026 16027EISAID now returns an object of type INTEGER 16028 16029"Index" now works with a STRING operand 16030 16031"LoadTable" now accepts optional parameters 16032 16033"ToString" length parameter is now optional 16034 16035"Interrupt (ResourceType," parse error fixed. 16036 16037"Register" with a user-defined region space parse error fixed 16038 16039Escaped backslash at the end of a string ("\\") scan/parse error 16040fixed 16041 16042"Revision" is now an object of type INTEGER. 16043 16044 16045 16046------------------------------------------ 16047Summary of changes for this label: 05_02_01 16048 16049Linux: 16050 16051/proc/acpi/event now blocks properly. 16052 16053Removed /proc/sys/acpi. You can still dump your DSDT from 16054/proc/acpi/dsdt. 16055 16056 ACPI CA Core Subsystem: 16057 16058Fixed a problem introduced in the previous label where some of the 16059"small" resource descriptor types were not recognized. 16060 16061Improved error messages for the case where an ASL Field is outside 16062the range of the parent operation region. 16063 16064 ASL Compiler, version X2018: 16065 16066 16067Added error detection for ASL Fields that extend beyond the length 16068of the parent operation region (only if the length of the region 16069is known at compile time.) This includes fields that have a 16070minimum access width that is smaller than the parent region, and 16071individual field units that are partially or entirely beyond the 16072extent of the parent. 16073 16074 16075 16076------------------------------------------ 16077Summary of changes for this label: 04_27_01 16078 16079 ACPI CA Core Subsystem: 16080 16081Fixed a problem where the namespace mutex could be released at the 16082wrong time during execution of AcpiRemoveAddressSpaceHandler. 16083 16084Added optional thread ID output for debug traces, to simplify 16085debugging of multiple threads. Added context switch notification 16086when the debug code realizes that a different thread is now 16087executing ACPI code. 16088 16089Some additional external data types have been prefixed with the 16090string "ACPI_" for consistency. This may effect existing code. 16091The data types affected are the external callback typedefs - e.g., 16092 16093WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 16094 16095 Linux: 16096 16097Fixed an issue with the OSL semaphore implementation where a 16098thread was waking up with an error from receiving a SIGCHLD 16099signal. 16100 16101Linux version of ACPI CA now uses the system C library for string 16102manipulation routines instead of a local implementation. 16103 16104Cleaned up comments and removed TBDs. 16105 16106 ASL Compiler, version X2017: 16107 16108Enhanced error detection and reporting for all file I/O 16109operations. 16110 16111 Documentation: 16112 16113Programmer Reference updated to version 1.06. 16114 16115 16116 16117------------------------------------------ 16118Summary of changes for this label: 04_13_01 16119 16120 ACPI CA Core Subsystem: 16121 16122Restructured support for BufferFields and RegionFields. 16123BankFields support is now fully operational. All known 32-bit 16124limitations on field sizes have been removed. Both BufferFields 16125and (Operation) RegionFields are now supported by the same field 16126management code. 16127 16128Resource support now supports QWORD address and IO resources. The 1612916/32/64 bit address structures and the Extended IRQ structure 16130have been changed to properly handle Source Resource strings. 16131 16132A ThreadId of -1 is now used to indicate a "mutex not acquired" 16133condition internally and must never be returned by AcpiOsThreadId. 16134This reserved value was changed from 0 since Unix systems allow a 16135thread ID of 0. 16136 16137Linux: 16138 16139Driver code reorganized to enhance portability 16140 16141Added a kernel configuration option to control ACPI_DEBUG 16142 16143Fixed the EC driver to honor _GLK. 16144 16145ASL Compiler, version X2016: 16146 16147Fixed support for the "FixedHw" keyword. Previously, the FixedHw 16148address space was set to 0, not 0x7f as it should be. 16149 16150 ------------------------------------------ 16151Summary of changes for this label: 03_13_01 16152 16153 ACPI CA Core Subsystem: 16154 16155During ACPI initialization, the _SB_._INI method is now run if 16156present. 16157 16158Notify handler fix - notifies are deferred until the parent method 16159completes execution. This fixes the "mutex already acquired" 16160issue seen occasionally. 16161 16162Part of the "implicit conversion" rules in ACPI 2.0 have been 16163found to cause compatibility problems with existing ASL/AML. The 16164convert "result-to-target-type" implementation has been removed 16165for stores to method Args and Locals. Source operand conversion 16166is still fully implemented. Possible changes to ACPI 2.0 16167specification pending. 16168 16169Fix to AcpiRsCalculatePciRoutingTableLength to return correct 16170length. 16171 16172Fix for compiler warnings for 64-bit compiles. 16173 16174 Linux: 16175 16176/proc output aligned for easier parsing. 16177 16178Release-version compile problem fixed. 16179 16180New kernel configuration options documented in Configure.help. 16181 16182IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 16183context" message. 16184 16185 OSPM: 16186 16187Power resource driver integrated with bus manager. 16188 16189Fixed kernel fault during active cooling for thermal zones. 16190 16191Source Code: 16192 16193The source code tree has been restructured. 16194 16195 16196 16197------------------------------------------ 16198Summary of changes for this label: 03_02_01 16199 16200 Linux OS Services Layer (OSL): 16201 16202Major revision of all Linux-specific code. 16203 16204Modularized all ACPI-specific drivers. 16205 16206Added new thermal zone and power resource drivers. 16207 16208Revamped /proc interface (new functionality is under /proc/acpi). 16209 16210New kernel configuration options. 16211 16212 Linux known issues: 16213 16214New kernel configuration options not documented in Configure.help 16215yet. 16216 16217 16218Module dependencies not currently implemented. If used, they 16219should be loaded in this order: busmgr, power, ec, system, 16220processor, battery, ac_adapter, button, thermal. 16221 16222Modules will not load if CONFIG_MODVERSION is set. 16223 16224IBM 600E - entering S5 may reboot instead of shutting down. 16225 16226IBM 600E - Sleep button may generate "Invalid <NULL> context" 16227message. 16228 16229Some systems may fail with "execution mutex already acquired" 16230message. 16231 16232 ACPI CA Core Subsystem: 16233 16234Added a new OSL Interface, AcpiOsGetThreadId. This was required 16235for the deadlock detection code. Defined to return a non-zero, 32- 16236bit thread ID for the currently executing thread. May be a non- 16237zero constant integer on single-thread systems. 16238 16239Implemented deadlock detection for internal subsystem mutexes. We 16240may add conditional compilation for this code (debug only) later. 16241 16242ASL/AML Mutex object semantics are now fully supported. This 16243includes multiple acquires/releases by owner and support for the 16244 16245Mutex SyncLevel parameter. 16246 16247A new "Force Release" mechanism automatically frees all ASL 16248Mutexes that have been acquired but not released when a thread 16249exits the interpreter. This forces conformance to the ACPI spec 16250("All mutexes must be released when an invocation exits") and 16251prevents deadlocked ASL threads. This mechanism can be expanded 16252(later) to monitor other resource acquisitions if OEM ASL code 16253continues to misbehave (which it will). 16254 16255Several new ACPI exception codes have been added for the Mutex 16256support. 16257 16258Recursive method calls are now allowed and supported (the ACPI 16259spec does in fact allow recursive method calls.) The number of 16260recursive calls is subject to the restrictions imposed by the 16261SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 16262parameter. 16263 16264Implemented support for the SyncLevel parameter for control 16265methods (ACPI 2.0 feature) 16266 16267Fixed a deadlock problem when multiple threads attempted to use 16268the interpreter. 16269 16270Fixed a problem where the string length of a String package 16271element was not always set in a package returned from 16272AcpiEvaluateObject. 16273 16274Fixed a problem where the length of a String package element was 16275not always included in the length of the overall package returned 16276from AcpiEvaluateObject. 16277 16278Added external interfaces (Acpi*) to the ACPI debug memory 16279manager. This manager keeps a list of all outstanding 16280allocations, and can therefore detect memory leaks and attempts to 16281free memory blocks more than once. Useful for code such as the 16282power manager, etc. May not be appropriate for device drivers. 16283Performance with the debug code enabled is slow. 16284 16285The ACPI Global Lock is now an optional hardware element. 16286 16287 ASL Compiler Version X2015: 16288 16289Integrated changes to allow the compiler to be generated on 16290multiple platforms. 16291 16292Linux makefile added to generate the compiler on Linux 16293 16294 Source Code: 16295 16296All platform-specific headers have been moved to their own 16297subdirectory, Include/Platform. 16298 16299New source file added, Interpreter/ammutex.c 16300 16301New header file, Include/acstruct.h 16302 16303 Documentation: 16304 16305The programmer reference has been updated for the following new 16306interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 16307 16308 ------------------------------------------ 16309Summary of changes for this label: 02_08_01 16310 16311Core ACPI CA Subsystem: Fixed a problem where an error was 16312incorrectly returned if the return resource buffer was larger than 16313the actual data (in the resource interfaces). 16314 16315References to named objects within packages are resolved to the 16316 16317full pathname string before packages are returned directly (via 16318the AcpiEvaluateObject interface) or indirectly via the resource 16319interfaces. 16320 16321Linux OS Services Layer (OSL): 16322 16323Improved /proc battery interface. 16324 16325 16326Added C-state debugging output and other miscellaneous fixes. 16327 16328ASL Compiler Version X2014: 16329 16330All defined method arguments can now be used as local variables, 16331including the ones that are not actually passed in as parameters. 16332The compiler tracks initialization of the arguments and issues an 16333exception if they are used without prior assignment (just like 16334locals). 16335 16336The -o option now specifies a filename prefix that is used for all 16337output files, including the AML output file. Otherwise, the 16338default behavior is as follows: 1) the AML goes to the file 16339specified in the DSDT. 2) all other output files use the input 16340source filename as the base. 16341 16342 ------------------------------------------ 16343Summary of changes for this label: 01_25_01 16344 16345Core ACPI CA Subsystem: Restructured the implementation of object 16346store support within the interpreter. This includes support for 16347the Store operator as well as any ASL operators that include a 16348target operand. 16349 16350Partially implemented support for Implicit Result-to-Target 16351conversion. This is when a result object is converted on the fly 16352to the type of an existing target object. Completion of this 16353support is pending further analysis of the ACPI specification 16354concerning this matter. 16355 16356CPU-specific code has been removed from the subsystem (hardware 16357directory). 16358 16359New Power Management Timer functions added 16360 16361Linux OS Services Layer (OSL): Moved system state transition code 16362to the core, fixed it, and modified Linux OSL accordingly. 16363 16364Fixed C2 and C3 latency calculations. 16365 16366 16367We no longer use the compilation date for the version message on 16368initialization, but retrieve the version from AcpiGetSystemInfo(). 16369 16370Incorporated for fix Sony VAIO machines. 16371 16372Documentation: The Programmer Reference has been updated and 16373reformatted. 16374 16375 16376ASL Compiler: Version X2013: Fixed a problem where the line 16377numbering and error reporting could get out of sync in the 16378presence of multiple include files. 16379 16380 ------------------------------------------ 16381Summary of changes for this label: 01_15_01 16382 16383Core ACPI CA Subsystem: 16384 16385Implemented support for type conversions in the execution of the 16386ASL Concatenate operator (The second operand is converted to 16387match the type of the first operand before concatenation.) 16388 16389Support for implicit source operand conversion is partially 16390implemented. The ASL source operand types Integer, Buffer, and 16391String are freely interchangeable for most ASL operators and are 16392converted by the interpreter on the fly as required. Implicit 16393Target operand conversion (where the result is converted to the 16394target type before storing) is not yet implemented. 16395 16396Support for 32-bit and 64-bit BCD integers is implemented. 16397 16398Problem fixed where a field read on an aligned field could cause a 16399read past the end of the field. 16400 16401New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 16402does not return a value, but the caller expects one. (The ASL 16403compiler flags this as a warning.) 16404 16405ASL Compiler: 16406 16407Version X2011: 164081. Static typechecking of all operands is implemented. This 16409prevents the use of invalid objects (such as using a Package where 16410an Integer is required) at compile time instead of at interpreter 16411run-time. 164122. The ASL source line is printed with ALL errors and warnings. 164133. Bug fix for source EOF without final linefeed. 164144. Debug option is split into a parse trace and a namespace trace. 164155. Namespace output option (-n) includes initial values for 16416integers and strings. 164176. Parse-only option added for quick syntax checking. 164187. Compiler checks for duplicate ACPI name declarations 16419 16420Version X2012: 164211. Relaxed typechecking to allow interchangeability between 16422strings, integers, and buffers. These types are now converted by 16423the interpreter at runtime. 164242. Compiler reports time taken by each internal subsystem in the 16425debug output file. 16426 16427 16428 ------------------------------------------ 16429Summary of changes for this label: 12_14_00 16430 16431ASL Compiler: 16432 16433This is the first official release of the compiler. Since the 16434compiler requires elements of the Core Subsystem, this label 16435synchronizes everything. 16436 16437------------------------------------------ 16438Summary of changes for this label: 12_08_00 16439 16440 16441Fixed a problem where named references within the ASL definition 16442of both OperationRegions and CreateXXXFields did not work 16443properly. The symptom was an AE_AML_OPERAND_TYPE during 16444initialization of the region/field. This is similar (but not 16445related internally) to the problem that was fixed in the last 16446label. 16447 16448Implemented both 32-bit and 64-bit support for the BCD ASL 16449functions ToBCD and FromBCD. 16450 16451Updated all legal headers to include "2000" in the copyright 16452years. 16453 16454 ------------------------------------------ 16455Summary of changes for this label: 12_01_00 16456 16457Fixed a problem where method invocations within the ASL definition 16458of both OperationRegions and CreateXXXFields did not work 16459properly. The symptom was an AE_AML_OPERAND_TYPE during 16460initialization of the region/field: 16461 16462 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 16463[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 16464(0x3005) 16465 16466Fixed a problem where operators with more than one nested 16467subexpression would fail. The symptoms were varied, by mostly 16468AE_AML_OPERAND_TYPE errors. This was actually a rather serious 16469problem that has gone unnoticed until now. 16470 16471 Subtract (Add (1,2), Multiply (3,4)) 16472 16473Fixed a problem where AcpiGetHandle didn't quite get fixed in the 16474previous build (The prefix part of a relative path was handled 16475incorrectly). 16476 16477Fixed a problem where Operation Region initialization failed if 16478the operation region name was a "namepath" instead of a simple 16479"nameseg". Symptom was an AE_NO_OPERAND error. 16480 16481Fixed a problem where an assignment to a local variable via the 16482indirect RefOf mechanism only worked for the first such 16483assignment. Subsequent assignments were ignored. 16484 16485 ------------------------------------------ 16486Summary of changes for this label: 11_15_00 16487 16488ACPI 2.0 table support with backwards support for ACPI 1.0 and the 164890.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 16490the AML interpreter does NOT have support for the new 2.0 ASL 16491grammar terms at this time. 16492 16493All ACPI hardware access is via the GAS structures in the ACPI 2.0 16494FADT. 16495 16496All physical memory addresses across all platforms are now 64 bits 16497wide. Logical address width remains dependent on the platform 16498(i.e., "void *"). 16499 16500AcpiOsMapMemory interface changed to a 64-bit physical address. 16501 16502The AML interpreter integer size is now 64 bits, as per the ACPI 165032.0 specification. 16504 16505For backwards compatibility with ACPI 1.0, ACPI tables with a 16506revision number less than 2 use 32-bit integers only. 16507 16508Fixed a problem where the evaluation of OpRegion operands did not 16509always resolve them to numbers properly. 16510 16511------------------------------------------ 16512Summary of changes for this label: 10_20_00 16513 16514Fix for CBN_._STA issue. This fix will allow correct access to 16515CBN_ OpRegions when the _STA returns 0x8. 16516 16517Support to convert ACPI constants (Ones, Zeros, One) to actual 16518values before a package object is returned 16519 16520Fix for method call as predicate to if/while construct causing 16521incorrect if/while behavior 16522 16523Fix for Else block package lengths sometimes calculated wrong (if 16524block > 63 bytes) 16525 16526Fix for Processor object length field, was always zero 16527 16528Table load abort if FACP sanity check fails 16529 16530Fix for problem with Scope(name) if name already exists 16531 16532Warning emitted if a named object referenced cannot be found 16533(resolved) during method execution. 16534 16535 16536 16537 16538 16539------------------------------------------ 16540Summary of changes for this label: 9_29_00 16541 16542New table initialization interfaces: AcpiInitializeSubsystem no 16543longer has any parameters AcpiFindRootPointer - Find the RSDP (if 16544necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 16545>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 16546AcpiLoadTables 16547 16548Note: These interface changes require changes to all existing OSDs 16549 16550The PCI_Config default address space handler is always installed 16551at the root namespace object. 16552 16553------------------------------------------- 16554Summary of changes for this label: 09_15_00 16555 16556The new initialization architecture is implemented. New 16557interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 16558AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 16559 16560(Namespace is automatically loaded when a table is loaded) 16561 16562The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1656352 bytes to 32 bytes. There is usually one of these for every 16564namespace object, so the memory savings is significant. 16565 16566Implemented just-in-time evaluation of the CreateField operators. 16567 16568Bug fixes for IA-64 support have been integrated. 16569 16570Additional code review comments have been implemented 16571 16572The so-called "third pass parse" has been replaced by a final walk 16573through the namespace to initialize all operation regions (address 16574spaces) and fields that have not yet been initialized during the 16575execution of the various _INI and REG methods. 16576 16577New file - namespace/nsinit.c 16578 16579------------------------------------------- 16580Summary of changes for this label: 09_01_00 16581 16582Namespace manager data structures have been reworked to change the 16583primary object from a table to a single object. This has 16584resulted in dynamic memory savings of 3X within the namespace and 165852X overall in the ACPI CA subsystem. 16586 16587Fixed problem where the call to AcpiEvFindPciRootBuses was 16588inadvertently left commented out. 16589 16590Reduced the warning count when generating the source with the GCC 16591compiler. 16592 16593Revision numbers added to each module header showing the 16594SourceSafe version of the file. Please refer to this version 16595number when giving us feedback or comments on individual modules. 16596 16597The main object types within the subsystem have been renamed to 16598clarify their purpose: 16599 16600ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 16601ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 16602ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 16603 16604NOTE: no changes to the initialization sequence are included in 16605this label. 16606 16607------------------------------------------- 16608Summary of changes for this label: 08_23_00 16609 16610Fixed problem where TerminateControlMethod was being called 16611multiple times per method 16612 16613Fixed debugger problem where single stepping caused a semaphore to 16614be oversignalled 16615 16616Improved performance through additional parse object caching - 16617added ACPI_EXTENDED_OP type 16618 16619------------------------------------------- 16620Summary of changes for this label: 08_10_00 16621 16622Parser/Interpreter integration: Eliminated the creation of 16623complete parse trees for ACPI tables and control methods. 16624Instead, parse subtrees are created and then deleted as soon as 16625they are processed (Either entered into the namespace or executed 16626by the interpreter). This reduces the use of dynamic kernel 16627memory significantly. (about 10X) 16628 16629Exception codes broken into classes and renumbered. Be sure to 16630recompile all code that includes acexcep.h. Hopefully we won't 16631have to renumber the codes again now that they are split into 16632classes (environment, programmer, AML code, ACPI table, and 16633internal). 16634 16635Fixed some additional alignment issues in the Resource Manager 16636subcomponent 16637 16638Implemented semaphore tracking in the AcpiExec utility, and fixed 16639several places where mutexes/semaphores were being unlocked 16640without a corresponding lock operation. There are no known 16641semaphore or mutex "leaks" at this time. 16642 16643Fixed the case where an ASL Return operator is used to return an 16644unnamed package. 16645 16646------------------------------------------- 16647Summary of changes for this label: 07_28_00 16648 16649Fixed a problem with the way addresses were calculated in 16650AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 16651manifested itself when a Field was created with WordAccess or 16652DwordAccess, but the field unit defined within the Field was less 16653 16654than a Word or Dword. 16655 16656Fixed a problem in AmlDumpOperands() module's loop to pull 16657operands off of the operand stack to display information. The 16658problem manifested itself as a TLB error on 64-bit systems when 16659accessing an operand stack with two or more operands. 16660 16661Fixed a problem with the PCI configuration space handlers where 16662context was getting confused between accesses. This required a 16663change to the generic address space handler and address space 16664setup definitions. Handlers now get both a global handler context 16665(this is the one passed in by the user when executing 16666AcpiInstallAddressSpaceHandler() and a specific region context 16667that is unique to each region (For example, the _ADR, _SEG and 16668_BBN values associated with a specific region). The generic 16669function definitions have changed to the following: 16670 16671typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 16672UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 16673*HandlerContext, // This used to be void *Context void 16674*RegionContext); // This is an additional parameter 16675 16676typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 16677RegionHandle, UINT32 Function, void *HandlerContext, void 16678**RegionContext); // This used to be **ReturnContext 16679 16680------------------------------------------- 16681Summary of changes for this label: 07_21_00 16682 16683Major file consolidation and rename. All files within the 16684interpreter have been renamed as well as most header files. This 16685was done to prevent collisions with existing files in the host 16686OSs -- filenames such as "config.h" and "global.h" seem to be 16687quite common. The VC project files have been updated. All 16688makefiles will require modification. 16689 16690The parser/interpreter integration continues in Phase 5 with the 16691implementation of a complete 2-pass parse (the AML is parsed 16692twice) for each table; This avoids the construction of a huge 16693parse tree and therefore reduces the amount of dynamic memory 16694required by the subsystem. Greater use of the parse object cache 16695means that performance is unaffected. 16696 16697Many comments from the two code reviews have been rolled in. 16698 16699The 64-bit alignment support is complete. 16700 16701------------------------------------------- 16702Summary of changes for this label: 06_30_00 16703 16704With a nod and a tip of the hat to the technology of yesteryear, 16705we've added support in the source code for 80 column output 16706devices. The code is now mostly constrained to 80 columns or 16707less to support environments and editors that 1) cannot display 16708or print more than 80 characters on a single line, and 2) cannot 16709disable line wrapping. 16710 16711A major restructuring of the namespace data structure has been 16712completed. The result is 1) cleaner and more 16713understandable/maintainable code, and 2) a significant reduction 16714in the dynamic memory requirement for each named ACPI object 16715(almost half). 16716 16717------------------------------------------- 16718Summary of changes for this label: 06_23_00 16719 16720Linux support has been added. In order to obtain approval to get 16721the ACPI CA subsystem into the Linux kernel, we've had to make 16722quite a few changes to the base subsystem that will affect all 16723users (all the changes are generic and OS- independent). The 16724effects of these global changes have been somewhat far reaching. 16725Files have been merged and/or renamed and interfaces have been 16726renamed. The major changes are described below. 16727 16728Osd* interfaces renamed to AcpiOs* to eliminate namespace 16729pollution/confusion within our target kernels. All OSD 16730interfaces must be modified to match the new naming convention. 16731 16732Files merged across the subsystem. A number of the smaller source 16733and header files have been merged to reduce the file count and 16734increase the density of the existing files. There are too many 16735to list here. In general, makefiles that call out individual 16736files will require rebuilding. 16737 16738Interpreter files renamed. All interpreter files now have the 16739prefix am* instead of ie* and is*. 16740 16741Header files renamed: The acapi.h file is now acpixf.h. The 16742acpiosd.h file is now acpiosxf.h. We are removing references to 16743the acronym "API" since it is somewhat windowsy. The new name is 16744"external interface" or xface or xf in the filenames.j 16745 16746 16747All manifest constants have been forced to upper case (some were 16748mixed case.) Also, the string "ACPI_" has been prepended to many 16749(not all) of the constants, typedefs, and structs. 16750 16751The globals "DebugLevel" and "DebugLayer" have been renamed 16752"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 16753 16754All other globals within the subsystem are now prefixed with 16755"AcpiGbl_" Internal procedures within the subsystem are now 16756prefixed with "Acpi" (with only a few exceptions). The original 16757two-letter abbreviation for the subcomponent remains after "Acpi" 16758- for example, CmCallocate became AcpiCmCallocate. 16759 16760Added a source code translation/conversion utility. Used to 16761generate the Linux source code, it can be modified to generate 16762other types of source as well. Can also be used to cleanup 16763existing source by removing extraneous spaces and blank lines. 16764Found in tools/acpisrc/* 16765 16766OsdUnMapMemory was renamed to OsdUnmapMemory and then 16767AcpiOsUnmapMemory. (UnMap became Unmap). 16768 16769A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 16770When set to one, this indicates that the caller wants to use the 16771 16772semaphore as a mutex, not a counting semaphore. ACPI CA uses 16773both types. However, implementers of this call may want to use 16774different OS primitives depending on the type of semaphore 16775requested. For example, some operating systems provide separate 16776 16777"mutex" and "semaphore" interfaces - where the mutex interface is 16778much faster because it doesn't have all the overhead of a full 16779semaphore implementation. 16780 16781Fixed a deadlock problem where a method that accesses the PCI 16782address space can block forever if it is the first access to the 16783space. 16784 16785------------------------------------------- 16786Summary of changes for this label: 06_02_00 16787 16788Support for environments that cannot handle unaligned data 16789accesses (e.g. firmware and OS environments devoid of alignment 16790handler technology namely SAL/EFI and the IA-64 Linux kernel) has 16791been added (via configurable macros) in these three areas: - 16792Transfer of data from the raw AML byte stream is done via byte 16793moves instead of word/dword/qword moves. - External objects are 16794aligned within the user buffer, including package elements (sub- 16795objects). - Conversion of name strings to UINT32 Acpi Names is now 16796done byte-wise. 16797 16798The Store operator was modified to mimic Microsoft's 16799implementation when storing to a Buffer Field. 16800 16801Added a check of the BM_STS bit before entering C3. 16802 16803The methods subdirectory has been obsoleted and removed. A new 16804file, cmeval.c subsumes the functionality. 16805 16806A 16-bit (DOS) version of AcpiExec has been developed. The 16807makefile is under the acpiexec directory. 16808