1---------------------------------------- 220 March 2012. Summary of changes for version 20120320: 3 4This release is available at www.acpica.org/downloads. 5The ACPI 5.0 specification is available at www.acpi.info. 6 71) ACPICA Core Subsystem: 8 9Enhanced the sleep/wake interfaces to optionally execute the _GTS method 10(Going To Sleep) and the _BFS method (Back From Sleep). Windows apparently 11does not execute these methods, and therefore these methods are often 12untested. It has been seen on some systems where the execution of these 13methods causes errors and also prevents the machine from entering S5. It is 14therefore suggested that host operating systems do not execute these methods 15by default. In the future, perhaps these methods can be optionally executed 16based on the age of the system and/or what is the newest version of Windows 17that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState and 18AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 19Ming. 20 21Fixed a problem where the length of the local/common FADT was set too early. 22The local FADT table length cannot be set to the common length until the 23original length has been examined. There is code that checks the table length 24and sets various fields appropriately. This can affect older machines with 25early FADT versions. For example, this can cause inadvertent writes to the 26CST_CNT register. Julian Anastasov. 27 28Fixed a mapping issue related to a physical table override. Use the deferred 29mapping mechanism for tables loaded via the physical override OSL interface. 30This allows for early mapping before the virtual memory manager is available. 31Thomas Renninger, Bob Moore. 32 33Enhanced the automatic return-object repair code: Repair a common problem with 34predefined methods that are defined to return a variable-length Package of 35sub-objects. If there is only one sub-object, some BIOS ASL code mistakenly 36simply returns the single object instead of a Package with one sub-object. 37This new support will repair this error by wrapping a Package object around 38the original object, creating the correct and expected Package with one sub- 39object. Names that can be repaired in this manner include: _ALR, _CSD, _HPX, 40_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 939. 41 42Changed the exception code returned for invalid ACPI paths passed as 43parameters to external interfaces such as AcpiEvaluateObject. Was 44AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 45 46Example Code and Data Size: These are the sizes for the OS-independent 47acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 48version of the code includes the debug output trace mechanism and has a much 49larger code and data size. 50 51 Previous Release: 52 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 53 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 54 Current Release: 55 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 56 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 57 58 592) iASL Compiler/Disassembler and Tools: 60 61iASL: Added the infrastructure and initial implementation of a integrated C- 62like preprocessor. This will simplify BIOS development process by eliminating 63the need for a separate preprocessing step during builds. On Windows, it also 64eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 65features including full #define() macro support are still under development. 66These preprocessor directives are supported: 67 #define 68 #elif 69 #else 70 #endif 71 #error 72 #if 73 #ifdef 74 #ifndef 75 #include 76 #pragma message 77 #undef 78 #warning 79In addition, these new command line options are supported: 80 -D <symbol> Define symbol for preprocessor use 81 -li Create preprocessed output file (*.i) 82 -P Preprocess only and create preprocessor output file (*.i) 83 84Table Compiler: Fixed a problem where the equals operator within an expression 85did not work properly. 86 87Updated iASL to use the current versions of Bison/Flex. Updated the Windows 88project file to invoke these tools from the standard location. ACPICA BZ 904. 89Versions supported: 90 Flex for Windows: V2.5.4 91 Bison for Windows: V2.4.1 92 93---------------------------------------- 9415 February 2012. Summary of changes for version 20120215: 95 96This release is available at www.acpica.org/downloads. 97The ACPI 5.0 specification is available at www.acpi.info. 98 991) ACPICA Core Subsystem: 100 101There have been some major changes to the sleep/wake support code, as 102described below (a - e). 103 104a) The AcpiLeaveSleepState has been split into two interfaces, similar to 105AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 106AcpiLeaveSleepStatePrep. This allows the host to perform actions between the 107time the _BFS method is called and the _WAK method is called. NOTE: all hosts 108must update their wake/resume code or else sleep/wake will not work properly. 109Rafael Wysocki. 110 111b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the _WAK 112method. Some machines require that the GPEs are enabled before the _WAK method 113is executed. Thomas Renninger. 114 115c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) bit. 116Some BIOS code assumes that WAK_STS will be cleared on resume and use it to 117determine whether the system is rebooting or resuming. Matthew Garrett. 118 119d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From Sleep) to 120match the ACPI specification requirement. Rafael Wysocki. 121 122e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 123registers within the V5 FADT. This support adds two new files: 124hardware/hwesleep.c implements the support for the new registers. Moved all 125sleep/wake external interfaces to hardware/hwxfsleep.c. 126 127 128Added a new OSL interface for ACPI table overrides, 129AcpiOsPhysicalTableOverride. This interface allows the host to override a 130table via a physical address, instead of the logical address required by 131AcpiOsTableOverride. This simplifies the host implementation. Initial 132implementation by Thomas Renninger. The ACPICA implementation creates a single 133shared function for table overrides that attempts both a logical and a 134physical override. 135 136Expanded the OSL memory read/write interfaces to 64-bit data 137(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 138transfer support for GAS register structures passed to AcpiRead and AcpiWrite. 139 140Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a custom 141build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) model. 142See the ACPICA reference for details. ACPICA BZ 942. This option removes about 14310% of the code and 5% of the static data, and the following hardware ACPI 144features become unavailable: 145 PM Event and Control registers 146 SCI interrupt (and handler) 147 Fixed Events 148 General Purpose Events (GPEs) 149 Global Lock 150 ACPI PM timer 151 FACS table (Waking vectors and Global Lock) 152 153Updated the unix tarball directory structure to match the ACPICA git source 154tree. This ensures that the generic unix makefiles work properly (in 155generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 867. 156 157Updated the return value of the _REV predefined method to integer value 5 to 158reflect ACPI 5.0 support. 159 160Moved the external ACPI PM timer interface prototypes to the public acpixf.h 161file where they belong. 162 163Example Code and Data Size: These are the sizes for the OS-independent 164acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 165version of the code includes the debug output trace mechanism and has a much 166larger code and data size. 167 168 Previous Release: 169 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 170 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 171 Current Release: 172 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 173 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 174 175 1762) iASL Compiler/Disassembler and Tools: 177 178Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 179descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 180incorrectly displayed. 181 182AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 183specification. 184 185---------------------------------------- 18611 January 2012. Summary of changes for version 20120111: 187 188This release is available at www.acpica.org/downloads. 189The ACPI 5.0 specification is available at www.acpi.info. 190 1911) ACPICA Core Subsystem: 192 193Implemented a new mechanism to allow host device drivers to check for address 194range conflicts with ACPI Operation Regions. Both SystemMemory and SystemIO 195address spaces are supported. A new external interface, AcpiCheckAddressRange, 196allows drivers to check an address range against the ACPI namespace. See the 197ACPICA reference for additional details. Adds one new file, 198utilities/utaddress.c. Lin Ming, Bob Moore. 199 200Fixed several issues with the ACPI 5.0 FADT support: Add the sleep Control and 201Status registers, update the ACPI 5.0 flags, and update internal data 202structures to handle an FADT larger than 256 bytes. The size of the ACPI 5.0 203FADT is 268 bytes. 204 205Updated all ACPICA copyrights and signons to 2012. Added the 2012 copyright to 206all module headers and signons, including the standard Linux header. This 207affects virtually every file in the ACPICA core subsystem, iASL compiler, and 208all ACPICA utilities. 209 210Example Code and Data Size: These are the sizes for the OS-independent 211acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 212version of the code includes the debug output trace mechanism and has a much 213larger code and data size. 214 215 Previous Release: 216 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 217 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 218 Current Release: 219 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 220 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 221 222 2232) iASL Compiler/Disassembler and Tools: 224 225Disassembler: fixed a problem with the automatic resource tag generation 226support. Fixes a problem where the resource tags are inadvertently not 227constructed if the table being disassembled contains external references to 228control methods. Moved the actual construction of the tags to after the final 229namespace is constructed (after 2nd parse is invoked due to external control 230method references.) ACPICA BZ 941. 231 232Table Compiler: Make all "generic" operators caseless. These are the operators 233like UINT8, String, etc. Making these caseless improves ease-of-use. ACPICA BZ 234934. 235 236---------------------------------------- 23723 November 2011. Summary of changes for version 20111123: 238 2390) ACPI 5.0 Support: 240 241This release contains full support for the ACPI 5.0 specification, as 242summarized below. 243 244Reduced Hardware Support: 245------------------------- 246 247This support allows for ACPI systems without the usual ACPI hardware. This 248support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA will 249not attempt to initialize or use any of the usual ACPI hardware. Note, when 250this flag is set, all of the following ACPI hardware is assumed to be not 251present and is not initialized or accessed: 252 253 General Purpose Events (GPEs) 254 Fixed Events (PM1a/PM1b and PM Control) 255 Power Management Timer and Console Buttons (power/sleep) 256 Real-time Clock Alarm 257 Global Lock 258 System Control Interrupt (SCI) 259 The FACS is assumed to be non-existent 260 261ACPI Tables: 262------------ 263 264All new tables and updates to existing tables are fully supported in the 265ACPICA headers (for use by device drivers), the disassembler, and the iASL 266Data Table Compiler. ACPI 5.0 defines these new tables: 267 268 BGRT /* Boot Graphics Resource Table */ 269 DRTM /* Dynamic Root of Trust for Measurement table */ 270 FPDT /* Firmware Performance Data Table */ 271 GTDT /* Generic Timer Description Table */ 272 MPST /* Memory Power State Table */ 273 PCCT /* Platform Communications Channel Table */ 274 PMTT /* Platform Memory Topology Table */ 275 RASF /* RAS Feature table */ 276 277Operation Regions/SpaceIDs: 278--------------------------- 279 280All new operation regions are fully supported by the iASL compiler, the 281disassembler, and the ACPICA runtime code (for dispatch to region handlers.) 282The new operation region Space IDs are: 283 284 GeneralPurposeIo 285 GenericSerialBus 286 287Resource Descriptors: 288--------------------- 289 290All new ASL resource descriptors are fully supported by the iASL compiler, the 291ASL/AML disassembler, and the ACPICA runtime Resource Manager code (including 292all new predefined resource tags). New descriptors are: 293 294 FixedDma 295 GpioIo 296 GpioInt 297 I2cSerialBus 298 SpiSerialBus 299 UartSerialBus 300 301ASL/AML Operators, New and Modified: 302------------------------------------ 303 304One new operator is added, the Connection operator, which is used to associate 305a GeneralPurposeIo or GenericSerialBus resource descriptor with individual 306field objects within an operation region. Several new protocols are associated 307with the AccessAs operator. All are fully supported by the iASL compiler, 308disassembler, and runtime ACPICA AML interpreter: 309 310 Connection // Declare Field Connection attributes 311 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 312 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes Protocol 313 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 314 RawDataBuffer // Data type for Vendor Data fields 315 316Predefined ASL/AML Objects: 317--------------------------- 318 319All new predefined objects/control-methods are supported by the iASL compiler 320and the ACPICA runtime validation/repair (arguments and return values.) New 321predefined names include the following: 322 323Standard Predefined Names (Objects or Control Methods): 324 _AEI, _CLS, _CPC, _CWS, _DEP, 325 _DLM, _EVT, _GCP, _CRT, _GWS, 326 _HRV, _PRE, _PSE, _SRT, _SUB. 327 328Resource Tags (Names used to access individual fields within resource 329descriptors): 330 _DBT, _DPL, _DRS, _END, _FLC, 331 _IOR, _LIN, _MOD, _PAR, _PHA, 332 _PIN, _PPI, _POL, _RXL, _SLV, 333 _SPE, _STB, _TXL, _VEN. 334 335ACPICA External Interfaces: 336--------------------------- 337 338Several new interfaces have been defined for use by ACPI-related device 339drivers and other host OS services: 340 341AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS to 342acquire and release AML mutexes that are defined in the DSDT/SSDT tables 343provided by the BIOS. They are intended to be used in conjunction with the 344ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 345mutual exclusion with the AML code/interpreter. 346 347AcpiGetEventResources: Returns the (formatted) resource descriptors as defined 348by the ACPI 5.0 _AEI object (ACPI Event Information). This object provides 349resource descriptors associated with hardware-reduced platform events, similar 350to the AcpiGetCurrentResources interface. 351 352Operation Region Handlers: For General Purpose IO and Generic Serial Bus 353operation regions, information about the Connection() object and any optional 354length information is passed to the region handler within the Context 355parameter. 356 357AcpiBufferToResource: This interface converts a raw AML buffer containing a 358resource template or resource descriptor to the ACPI_RESOURCE internal format 359suitable for use by device drivers. Can be used by an operation region handler 360to convert the Connection() buffer object into a ACPI_RESOURCE. 361 362Miscellaneous/Tools/TestSuites: 363------------------------------- 364 365Support for extended _HID names (Four alpha characters instead of three). 366Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 367Support for ACPI 5.0 features in the ASLTS test suite. 368Fully updated documentation (ACPICA and iASL reference documents.) 369 370ACPI Table Definition Language: 371------------------------------- 372 373Support for this language was implemented and released as a subsystem of the 374iASL compiler in 2010. (See the iASL compiler User Guide.) 375 376 377Non-ACPI 5.0 changes for this release: 378-------------------------------------- 379 3801) ACPICA Core Subsystem: 381 382Fix a problem with operation region declarations where a failure can occur if 383the region name and an argument that evaluates to an object (such as the 384region address) are in different namespace scopes. Lin Ming, ACPICA BZ 937. 385 386Do not abort an ACPI table load if an invalid space ID is found within. This 387will be caught later if the offending method is executed. ACPICA BZ 925. 388 389Fixed an issue with the FFixedHW space ID where the ID was not always 390recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 391 392Fixed a problem with the 32-bit generation of the unix-specific OSL 393(osunixxf.c). Lin Ming, ACPICA BZ 936. 394 395Several changes made to enable generation with the GCC 4.6 compiler. ACPICA BZ 396935. 397 398New error messages: Unsupported I/O requests (not 8/16/32 bit), and Index/Bank 399field registers out-of-range. 400 4012) iASL Compiler/Disassembler and Tools: 402 403iASL: Implemented the __PATH__ operator, which returns the full pathname of 404the current source file. 405 406AcpiHelp: Automatically display expanded keyword information for all ASL 407operators. 408 409Debugger: Add "Template" command to disassemble/dump resource template 410buffers. 411 412Added a new master script to generate and execute the ASLTS test suite. 413Automatically handles 32- and 64-bit generation. See tests/aslts.sh 414 415iASL: Fix problem with listing generation during processing of the Switch() 416operator where AML listing was disabled until the entire Switch block was 417completed. 418 419iASL: Improve support for semicolon statement terminators. Fix "invalid 420character" message for some cases when the semicolon is used. Semicolons are 421now allowed after every <Term> grammar element. ACPICA BZ 927. 422 423iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 923. 424 425Disassembler: Fix problem with disassembly of the DataTableRegion operator 426where an inadvertent "Unhandled deferred opcode" message could be generated. 427 4283) Example Code and Data Size 429 430These are the sizes for the OS-independent acpica.lib produced by the 431Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 432includes the debug output trace mechanism and has a much larger code and data 433size. 434 435 Previous Release: 436 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 437 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 438 Current Release: 439 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 440 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 441 442---------------------------------------- 44322 September 2011. Summary of changes for version 20110922: 444 4450) ACPI 5.0 News: 446 447Support for ACPI 5.0 in ACPICA has been underway for several months and will 448be released at the same time that ACPI 5.0 is officially released. 449 450The ACPI 5.0 specification is on track for release in the next few months. 451 4521) ACPICA Core Subsystem: 453 454Fixed a problem where the maximum sleep time for the Sleep() operator was 455intended to be limited to two seconds, but was inadvertently limited to 20 456seconds instead. 457 458Linux and Unix makefiles: Added header file dependencies to ensure correct 459generation of ACPICA core code and utilities. Also simplified the makefiles 460considerably through the use of the vpath variable to specify search paths. 461ACPICA BZ 924. 462 4632) iASL Compiler/Disassembler and Tools: 464 465iASL: Implemented support to check the access length for all fields created to 466access named Resource Descriptor fields. For example, if a resource field is 467defined to be two bits, a warning is issued if a CreateXxxxField() is used 468with an incorrect bit length. This is implemented for all current resource 469descriptor names. ACPICA BZ 930. 470 471Disassembler: Fixed a byte ordering problem with the output of 24-bit and 56- 472bit integers. 473 474iASL: Fixed a couple of issues associated with variable-length package 475objects. 1) properly handle constants like One, Ones, Zero -- do not make a 476VAR_PACKAGE when these are used as a package length. 2) Allow the VAR_PACKAGE 477opcode (in addition to PACKAGE) when validating object types for predefined 478names. 479 480iASL: Emit statistics for all output files (instead of just the ASL input and 481AML output). Includes listings, hex files, etc. 482 483iASL: Added -G option to the table compiler to allow the compilation of custom 484ACPI tables. The only part of a table that is required is the standard 36-byte 485ACPI header. 486 487AcpiXtract: Ported to the standard ACPICA environment (with ACPICA headers), 488which also adds correct 64-bit support. Also, now all output filenames are 489completely lower case. 490 491AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 492loading table files. A warning is issued for any such tables. The only 493exception is an FADT. This also fixes a possible fault when attempting to load 494non-AML tables. ACPICA BZ 932. 495 496AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where a 497missing table terminator could cause a fault when using the -p option. 498 499AcpiSrc: Fixed a possible divide-by-zero fault when generating file 500statistics. 501 5023) Example Code and Data Size 503 504These are the sizes for the OS-independent acpica.lib produced by the 505Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 506includes the debug output trace mechanism and has a much larger code and data 507size. 508 509 Previous Release (VC 9.0): 510 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 511 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 512 Current Release (VC 9.0): 513 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 514 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 515 516 517---------------------------------------- 51823 June 2011. Summary of changes for version 20110623: 519 5201) ACPI CA Core Subsystem: 521 522Updated the predefined name repair mechanism to not attempt repair of a _TSS 523return object if a _PSS object is present. We can only sort the _TSS return 524package if there is no _PSS within the same scope. This is because if _PSS is 525present, the ACPI specification dictates that the _TSS Power Dissipation field 526is to be ignored, and therefore some BIOSs leave garbage values in the _TSS 527Power field(s). In this case, it is best to just return the _TSS package as- 528is. Reported by, and fixed with assistance from Fenghua Yu. 529 530Added an option to globally disable the control method return value validation 531and repair. This runtime option can be used to disable return value repair if 532this is causing a problem on a particular machine. Also added an option to 533AcpiExec (-dr) to set this disable flag. 534 535All makefiles and project files: Major changes to improve generation of ACPICA 536tools. ACPICA BZ 912: 537 Reduce default optimization levels to improve compatibility 538 For Linux, add strict-aliasing=0 for gcc 4 539 Cleanup and simplify use of command line defines 540 Cleanup multithread library support 541 Improve usage messages 542 543Linux-specific header: update handling of THREAD_ID and pthread. For the 32- 544bit case, improve casting to eliminate possible warnings, especially with the 545acpica tools. 546 547Example Code and Data Size: These are the sizes for the OS-independent 548acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 549version of the code includes the debug output trace mechanism and has a much 550larger code and data size. 551 552 Previous Release (VC 9.0): 553 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 554 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 555 Current Release (VC 9.0): 556 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 557 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 558 5592) iASL Compiler/Disassembler and Tools: 560 561With this release, a new utility named "acpihelp" has been added to the ACPICA 562package. This utility summarizes the ACPI specification chapters for the ASL 563and AML languages. It generates under Linux/Unix as well as Windows, and 564provides the following functionality: 565 Find/display ASL operator(s) -- with description and syntax. 566 Find/display ASL keyword(s) -- with exact spelling and descriptions. 567 Find/display ACPI predefined name(s) -- with description, number 568 of arguments, and the return value data type. 569 Find/display AML opcode name(s) -- with opcode, arguments, and grammar. 570 Decode/display AML opcode -- with opcode name, arguments, and grammar. 571 572Service Layers: Make multi-thread support configurable. Conditionally compile 573the multi-thread support so that threading libraries will not be linked if not 574necessary. The only tool that requires multi-thread support is AcpiExec. 575 576iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions of 577Bison appear to want the interface to yyerror to be a const char * (or at 578least this is a problem when generating iASL on some systems.) ACPICA BZ 923 579Pierre Lejeune. 580 581Tools: Fix for systems where O_BINARY is not defined. Only used for Windows 582versions of the tools. 583 584---------------------------------------- 58527 May 2011. Summary of changes for version 20110527: 586 5871) ACPI CA Core Subsystem: 588 589ASL Load() operator: Reinstate most restrictions on the incoming ACPI table 590signature. Now, only allow SSDT, OEMx, and a null signature. History: 591 1) Originally, we checked the table signature for "SSDT" or "PSDT". 592 (PSDT is now obsolete.) 593 2) We added support for OEMx tables, signature "OEM" plus a fourth 594 "don't care" character. 595 3) Valid tables were encountered with a null signature, so we just 596 gave up on validating the signature, (05/2008). 597 4) We encountered non-AML tables such as the MADT, which caused 598 interpreter errors and kernel faults. So now, we once again allow 599 only SSDT, OEMx, and now, also a null signature. (05/2011). 600 601Added the missing _TDL predefined name to the global name list in order to 602enable validation. Affects both the core ACPICA code and the iASL compiler. 603 604Example Code and Data Size: These are the sizes for the OS-independent 605acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 606version of the code includes the debug output trace mechanism and has a much 607larger code and data size. 608 609 Previous Release (VC 9.0): 610 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 611 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 612 Current Release (VC 9.0): 613 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 614 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 615 6162) iASL Compiler/Disassembler and Tools: 617 618Debugger/AcpiExec: Implemented support for "complex" method arguments on the 619debugger command line. This adds support beyond simple integers -- including 620Strings, Buffers, and Packages. Includes support for nested packages. 621Increased the default command line buffer size to accommodate these arguments. 622See the ACPICA reference for details and syntax. ACPICA BZ 917. 623 624Debugger/AcpiExec: Implemented support for "default" method arguments for the 625Execute/Debug command. Now, the debugger will always invoke a control method 626with the required number of arguments -- even if the command line specifies 627none or insufficient arguments. It uses default integer values for any missing 628arguments. Also fixes a bug where only six method arguments maximum were 629supported instead of the required seven. 630 631Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine and 632also return status in order to prevent buffer overruns. See the ACPICA 633reference for details and syntax. ACPICA BZ 921 634 635iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 636makefiles to simplify support for the two different but similar parser 637generators, bison and yacc. 638 639Updated the generic unix makefile for gcc 4. The default gcc version is now 640expected to be 4 or greater, since options specific to gcc 4 are used. 641 642---------------------------------------- 64313 April 2011. Summary of changes for version 20110413: 644 6451) ACPI CA Core Subsystem: 646 647Implemented support to execute a so-called "orphan" _REG method under the EC 648device. This change will force the execution of a _REG method underneath the 649EC 650device even if there is no corresponding operation region of type 651EmbeddedControl. Fixes a problem seen on some machines and apparently is 652compatible with Windows behavior. ACPICA BZ 875. 653 654Added more predefined methods that are eligible for automatic NULL package 655element removal. This change adds another group of predefined names to the 656list 657of names that can be repaired by having NULL package elements dynamically 658removed. This group are those methods that return a single variable-length 659package containing simple data types such as integers, buffers, strings. This 660includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, _PSL, 661_Sx, 662and _TZD. ACPICA BZ 914. 663 664Split and segregated all internal global lock functions to a new file, 665evglock.c. 666 667Updated internal address SpaceID for DataTable regions. Moved this internal 668space 669id in preparation for ACPI 5.0 changes that will include some new space IDs. 670This 671change should not affect user/host code. 672 673Example Code and Data Size: These are the sizes for the OS-independent 674acpica.lib 675produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of 676the code includes the debug output trace mechanism and has a much larger code 677and 678data size. 679 680 Previous Release (VC 9.0): 681 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 682 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 683 Current Release (VC 9.0): 684 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 685 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 686 6872) iASL Compiler/Disassembler and Tools: 688 689iASL/DTC: Major update for new grammar features. Allow generic data types in 690custom ACPI tables. Field names are now optional. Any line can be split to 691multiple lines using the continuation char (\). Large buffers now use line- 692continuation character(s) and no colon on the continuation lines. See the 693grammar 694update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob Moore. 695 696iASL: Mark ASL "Return()" and the simple "Return" as "Null" return statements. 697Since the parser stuffs a "zero" as the return value for these statements (due 698to 699the underlying AML grammar), they were seen as "return with value" by the iASL 700semantic checking. They are now seen correctly as "null" return statements. 701 702iASL: Check if a_REG declaration has a corresponding Operation Region. Adds a 703check for each _REG to ensure that there is in fact a corresponding operation 704region declaration in the same scope. If not, the _REG method is not very 705useful 706since it probably won't be executed. ACPICA BZ 915. 707 708iASL/DTC: Finish support for expression evaluation. Added a new expression 709parser 710that implements c-style operator precedence and parenthesization. ACPICA 711bugzilla 712908. 713 714Disassembler/DTC: Remove support for () and <> style comments in data tables. 715Now 716that DTC has full expression support, we don't want to have comment strings 717that 718start with a parentheses or a less-than symbol. Now, only the standard /* and 719// 720comments are supported, as well as the bracket [] comments. 721 722AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 723"unusual" 724headers in the acpidump file. Update the header validation to support these 725tables. Problem introduced in previous AcpiXtract version in the change to 726support "wrong checksum" error messages emitted by acpidump utility. 727 728iASL: Add a * option to generate all template files (as a synonym for ALL) as 729in 730"iasl -T *" or "iasl -T ALL". 731 732iASL/DTC: Do not abort compiler on fatal errors. We do not want to completely 733abort the compiler on "fatal" errors, simply should abort the current compile. 734This allows multiple compiles with a single (possibly wildcard) compiler 735invocation. 736 737---------------------------------------- 73816 March 2011. Summary of changes for version 20110316: 739 7401) ACPI CA Core Subsystem: 741 742Fixed a problem caused by a _PRW method appearing at the namespace root scope 743during the setup of wake GPEs. A fault could occur if a _PRW directly under 744the 745root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 746 747Implemented support for "spurious" Global Lock interrupts. On some systems, a 748global lock interrupt can occur without the pending flag being set. Upon a GL 749interrupt, we now ensure that a thread is actually waiting for the lock before 750signaling GL availability. Rafael Wysocki, Bob Moore. 751 752Example Code and Data Size: These are the sizes for the OS-independent 753acpica.lib 754produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of 755the code includes the debug output trace mechanism and has a much larger code 756and 757data size. 758 759 Previous Release (VC 9.0): 760 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 761 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 762 Current Release (VC 9.0): 763 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 764 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 765 7662) iASL Compiler/Disassembler and Tools: 767 768Implemented full support for the "SLIC" ACPI table. Includes support in the 769header files, disassembler, table compiler, and template generator. Bob Moore, 770Lin Ming. 771 772AcpiXtract: Correctly handle embedded comments and messages from AcpiDump. 773Apparently some or all versions of acpidump will occasionally emit a comment 774like 775"Wrong checksum", etc., into the dump file. This was causing problems for 776AcpiXtract. ACPICA BZ 905. 777 778iASL: Fix the Linux makefile by removing an inadvertent double file inclusion. 779ACPICA BZ 913. 780 781AcpiExec: Update installation of operation region handlers. Install one 782handler 783for a user-defined address space. This is used by the ASL test suite (ASLTS). 784 785---------------------------------------- 78611 February 2011. Summary of changes for version 20110211: 787 7881) ACPI CA Core Subsystem: 789 790Added a mechanism to defer _REG methods for some early-installed handlers. 791Most user handlers should be installed before call to AcpiEnableSubsystem. 792However, Event handlers and region handlers should be installed after 793AcpiInitializeObjects. Override handlers for the "default" regions should be 794installed early, however. This change executes all _REG methods for the 795default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 796chicken/egg issues between them. ACPICA BZ 848. 797 798Implemented an optimization for GPE detection. This optimization will simply 799ignore GPE registers that contain no enabled GPEs -- there is no need to 800read the register since this information is available internally. This 801becomes more important on machines with a large GPE space. ACPICA bugzilla 802884. Lin Ming. Suggestion from Joe Liu. 803 804Removed all use of the highly unreliable FADT revision field. The revision 805number in the FADT has been found to be completely unreliable and cannot be 806trusted. Only the actual table length can be used to infer the version. This 807change updates the ACPICA core and the disassembler so that both no longer 808even look at the FADT version and instead depend solely upon the FADT 809length. 810 811Fix an unresolved name issue for the no-debug and no-error-message source 812generation cases. The _AcpiModuleName was left undefined in these cases, but 813it is actually needed as a parameter to some interfaces. Define 814_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 815 816Split several large files (makefiles and project files updated) 817 utglobal.c -> utdecode.c 818 dbcomds.c -> dbmethod.c dbnames.c 819 dsopcode.c -> dsargs.c dscontrol.c 820 dsload.c -> dsload2.c 821 aslanalyze.c -> aslbtypes.c aslwalks.c 822 823Example Code and Data Size: These are the sizes for the OS-independent 824acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 825debug version of the code includes the debug output trace mechanism and has 826a much larger code and data size. 827 828 Previous Release (VC 9.0): 829 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 830 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 831 Current Release (VC 9.0): 832 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 833 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 834 8352) iASL Compiler/Disassembler and Tools: 836 837iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 838These are useful C-style macros with the standard definitions. ACPICA 839bugzilla 898. 840 841iASL/DTC: Added support for integer expressions and labels. Support for full 842expressions for all integer fields in all ACPI tables. Support for labels in 843"generic" portions of tables such as UEFI. See the iASL reference manual. 844 845Debugger: Added a command to display the status of global handlers. The 846"handlers" command will display op region, fixed event, and miscellaneous 847global handlers. installation status -- and for op regions, whether default 848or user-installed handler will be used. 849 850iASL: Warn if reserved method incorrectly returns a value. Many predefined 851names are defined such that they do not return a value. If implemented as a 852method, issue a warning if such a name explicitly returns a value. ACPICA 853Bugzilla 855. 854 855iASL: Added detection of GPE method name conflicts. Detects a conflict where 856there are two GPE methods of the form _Lxy and _Exy in the same scope. (For 857example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 858 859iASL/DTC: Fixed a couple input scanner issues with comments and line 860numbers. Comment remover could get confused and miss a comment ending. Fixed 861a problem with line counter maintenance. 862 863iASL/DTC: Reduced the severity of some errors from fatal to error. There is 864no need to abort on simple errors within a field definition. 865 866Debugger: Simplified the output of the help command. All help output now in 867a single screen, instead of help subcommands. ACPICA Bugzilla 897. 868 869---------------------------------------- 87012 January 2011. Summary of changes for version 20110112: 871 8721) ACPI CA Core Subsystem: 873 874Fixed a race condition between method execution and namespace walks that can 875possibly cause a fault. The problem was apparently introduced in version 87620100528 as a result of a performance optimization that reduces the number of 877namespace walks upon method exit by using the delete_namespace_subtree 878function instead of the delete_namespace_by_owner function used previously. 879Bug is a missing namespace lock in the delete_namespace_subtree function. 880dana.myers@oracle.com 881 882Fixed several issues and a possible fault with the automatic "serialized" 883method support. History: This support changes a method to "serialized" on the 884fly if the method generates an AE_ALREADY_EXISTS error, indicating the 885possibility that it cannot handle reentrancy. This fix repairs a couple of 886issues seen in the field, especially on machines with many cores: 887 888 1) Delete method children only upon the exit of the last thread, 889 so as to not delete objects out from under other running threads 890 (and possibly causing a fault.) 891 2) Set the "serialized" bit for the method only upon the exit of the 892 Last thread, so as to not cause deadlock when running threads 893 attempt to exit. 894 3) Cleanup the use of the AML "MethodFlags" and internal method flags 895 so that there is no longer any confusion between the two. 896 897 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 898 899Debugger: Now lock the namespace for duration of a namespace dump. Prevents 900issues if the namespace is changing dynamically underneath the debugger. 901Especially affects temporary namespace nodes, since the debugger displays 902these also. 903 904Updated the ordering of include files. The ACPICA headers should appear 905before any compiler-specific headers (stdio.h, etc.) so that acenv.h can set 906any necessary compiler-specific defines, etc. Affects the ACPI-related tools 907and utilities. 908 909Updated all ACPICA copyrights and signons to 2011. Added the 2011 copyright 910to all module headers and signons, including the Linux header. This affects 911virtually every file in the ACPICA core subsystem, iASL compiler, and all 912utilities. 913 914Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 915project files for VC++ 6.0 are now obsolete. New project files can be found 916under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 917details. 918 919Example Code and Data Size: These are the sizes for the OS-independent 920acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 921debug version of the code includes the debug output trace mechanism and has a 922much larger code and data size. 923 924 Previous Release (VC 6.0): 925 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 926 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 927 Current Release (VC 9.0): 928 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 929 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 930 9312) iASL Compiler/Disassembler and Tools: 932 933iASL: Added generic data types to the Data Table compiler. Add "generic" data 934types such as UINT32, String, Unicode, etc., to simplify the generation of 935platform-defined tables such as UEFI. Lin Ming. 936 937iASL: Added listing support for the Data Table Compiler. Adds listing support 938(-l) to display actual binary output for each line of input code. 939 940---------------------------------------- 94109 December 2010. Summary of changes for version 20101209: 942 9431) ACPI CA Core Subsystem: 944 945Completed the major overhaul of the GPE support code that was begun in July 9462010. Major features include: removal of _PRW execution in ACPICA (host 947executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 948changes to existing interfaces, simplification of GPE handler operation, and 949a handful of new interfaces: 950 951 AcpiUpdateAllGpes 952 AcpiFinishGpe 953 AcpiSetupGpeForWake 954 AcpiSetGpeWakeMask 955 One new file, evxfgpe.c to consolidate all external GPE interfaces. 956 957See the ACPICA Programmer Reference for full details and programming 958information. See the new section 4.4 "General Purpose Event (GPE) Support" 959for a full overview, and section 8.7 "ACPI General Purpose Event Management" 960for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin Ming, 961Bob Moore, Rafael Wysocki. 962 963Implemented a new GPE feature for Windows compatibility, the "Implicit Wake 964GPE Notify". This feature will automatically issue a Notify(2) on a device 965when a Wake GPE is received if there is no corresponding GPE method or 966handler. ACPICA BZ 870. 967 968Fixed a problem with the Scope() operator during table parse and load phase. 969During load phase (table load or method execution), the scope operator should 970not enter the target into the namespace. Instead, it should open a new scope 971at the target location. Linux BZ 19462, ACPICA BZ 882. 972 973Example Code and Data Size: These are the sizes for the OS-independent 974acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 975debug version of the code includes the debug output trace mechanism and has a 976much larger code and data size. 977 978 Previous Release: 979 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 980 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 981 Current Release: 982 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 983 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 984 9852) iASL Compiler/Disassembler and Tools: 986 987iASL: Relax the alphanumeric restriction on _CID strings. These strings are 988"bus-specific" per the ACPI specification, and therefore any characters are 989acceptable. The only checks that can be performed are for a null string and 990perhaps for a leading asterisk. ACPICA BZ 886. 991 992iASL: Fixed a problem where a syntax error that caused a premature EOF 993condition on the source file emitted a very confusing error message. The 994premature EOF is now detected correctly. ACPICA BZ 891. 995 996Disassembler: Decode the AccessSize within a Generic Address Structure (byte 997access, word access, etc.) Note, this field does not allow arbitrary bit 998access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 999 1000New: AcpiNames utility - Example namespace dump utility. Shows an example of 1001ACPICA configuration for a minimal namespace dump utility. Uses table and 1002namespace managers, but no AML interpreter. Does not add any functionality 1003over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 1004partition and configure ACPICA. ACPICA BZ 883. 1005 1006AML Debugger: Increased the debugger buffer size for method return objects. 1007Was 4K, increased to 16K. Also enhanced error messages for debugger method 1008execution, including the buffer overflow case. 1009 1010---------------------------------------- 101113 October 2010. Summary of changes for version 20101013: 1012 10131) ACPI CA Core Subsystem: 1014 1015Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, now 1016clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 1017HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 1018 1019Changed the type of the predefined namespace object _TZ from ThermalZone to 1020Device. This was found to be confusing to the host software that processes 1021the various thermal zones, since _TZ is not really a ThermalZone. However, a 1022Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 1023Zhang. 1024 1025Added Windows Vista SP2 to the list of supported _OSI strings. The actual 1026string is "Windows 2006 SP2". 1027 1028Eliminated duplicate code in AcpiUtExecute* functions. Now that the nsrepair 1029code automatically repairs _HID-related strings, this type of code is no 1030longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 878. 1031 1032Example Code and Data Size: These are the sizes for the OS-independent 1033acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1034debug version of the code includes the debug output trace mechanism and has a 1035much larger code and data size. 1036 1037 Previous Release: 1038 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 1039 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 1040 Current Release: 1041 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 1042 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 1043 10442) iASL Compiler/Disassembler and Tools: 1045 1046iASL: Implemented additional compile-time validation for _HID strings. The 1047non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the length of 1048the string must be exactly seven or eight characters. For both _HID and _CID 1049strings, all characters must be alphanumeric. ACPICA BZ 874. 1050 1051iASL: Allow certain "null" resource descriptors. Some BIOS code creates 1052descriptors that are mostly or all zeros, with the expectation that they will 1053be filled in at runtime. iASL now allows this as long as there is a "resource 1054tag" (name) associated with the descriptor, which gives the ASL a handle 1055needed to modify the descriptor. ACPICA BZ 873. 1056 1057Added single-thread support to the generic Unix application OSL. Primarily 1058for iASL support, this change removes the use of semaphores in the single- 1059threaded ACPICA tools/applications - increasing performance. The 1060_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 1061option. ACPICA BZ 879. 1062 1063AcpiExec: several fixes for the 64-bit version. Adds XSDT support and support 1064for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 1065 1066iASL: Moved all compiler messages to a new file, aslmessages.h. 1067 1068---------------------------------------- 106915 September 2010. Summary of changes for version 20100915: 1070 10711) ACPI CA Core Subsystem: 1072 1073Removed the AcpiOsDerivePciId OSL interface. The various host implementations 1074of this function were not OS-dependent and are now obsolete and can be 1075removed from all host OSLs. This function has been replaced by 1076AcpiHwDerivePciId, which is now part of the ACPICA core code. 1077AcpiHwDerivePciId has been implemented without recursion. Adds one new 1078module, hwpci.c. ACPICA BZ 857. 1079 1080Implemented a dynamic repair for _HID and _CID strings. The following 1081problems are now repaired at runtime: 1) Remove a leading asterisk in the 1082string, and 2) the entire string is uppercased. Both repairs are in 1083accordance with the ACPI specification and will simplify host driver code. 1084ACPICA BZ 871. 1085 1086The ACPI_THREAD_ID type is no longer configurable, internally it is now 1087always UINT64. This simplifies the ACPICA code, especially any printf output. 1088UINT64 is the only common data type for all thread_id types across all 1089operating systems. It is now up to the host OSL to cast the native thread_id 1090type to UINT64 before returning the value to ACPICA (via AcpiOsGetThreadId). 1091Lin Ming, Bob Moore. 1092 1093Added the ACPI_INLINE type to enhance the ACPICA configuration. The "inline" 1094keyword is not standard across compilers, and this type allows inline to be 1095configured on a per-compiler basis. Lin Ming. 1096 1097Made the system global AcpiGbl_SystemAwakeAndRunning publically available. 1098Added an extern for this boolean in acpixf.h. Some hosts utilize this value 1099during suspend/restore operations. ACPICA BZ 869. 1100 1101All code that implements error/warning messages with the "ACPI:" prefix has 1102been moved to a new module, utxferror.c. 1103 1104The UINT64_OVERLAY was moved to utmath.c, which is the only module where it 1105is used. ACPICA BZ 829. Lin Ming, Bob Moore. 1106 1107Example Code and Data Size: These are the sizes for the OS-independent 1108acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1109debug version of the code includes the debug output trace mechanism and has a 1110much larger code and data size. 1111 1112 Previous Release: 1113 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 1114 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 1115 Current Release: 1116 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 1117 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 1118 11192) iASL Compiler/Disassembler and Tools: 1120 1121iASL/Disassembler: Write ACPI errors to stderr instead of the output file. 1122This keeps the output files free of random error messages that may originate 1123from within the namespace/interpreter code. Used this opportunity to merge 1124all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 1125866. Lin Ming, Bob Moore. 1126 1127Tools: update some printfs for ansi warnings on size_t. Handle width change 1128of size_t on 32-bit versus 64-bit generations. Lin Ming. 1129 1130---------------------------------------- 113106 August 2010. Summary of changes for version 20100806: 1132 11331) ACPI CA Core Subsystem: 1134 1135Designed and implemented a new host interface to the _OSI support code. This 1136will allow the host to dynamically add or remove multiple _OSI strings, as 1137well as install an optional handler that is called for each _OSI invocation. 1138Also added a new AML debugger command, 'osi' to display and modify the global 1139_OSI string table, and test support in the AcpiExec utility. See the ACPICA 1140reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 1141New Functions: 1142 AcpiInstallInterface - Add an _OSI string. 1143 AcpiRemoveInterface - Delete an _OSI string. 1144 AcpiInstallInterfaceHandler - Install optional _OSI handler. 1145Obsolete Functions: 1146 AcpiOsValidateInterface - no longer used. 1147New Files: 1148 source/components/utilities/utosi.c 1149 1150Re-introduced the support to enable multi-byte transfers for Embedded 1151Controller (EC) operation regions. A reported problem was found to be a bug 1152in the host OS, not in the multi-byte support. Previously, the maximum data 1153size passed to the EC operation region handler was a single byte. There are 1154often EC Fields larger than one byte that need to be transferred, and it is 1155useful for the EC driver to lock these as a single transaction. This change 1156enables single transfers larger than 8 bits. This effectively changes the 1157access to the EC space from ByteAcc to AnyAcc, and will probably require 1158changes to the host OS Embedded Controller driver to enable 16/32/64/256-bit 1159transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 1160 1161Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 1162prototype in acpiosxf.h had the output value pointer as a (void *). 1163It should be a (UINT64 *). This may affect some host OSL code. 1164 1165Fixed a couple problems with the recently modified Linux makefiles for iASL 1166and AcpiExec. These new makefiles place the generated object files in the 1167local directory so that there can be no collisions between the files that are 1168shared between them that are compiled with different options. 1169 1170Example Code and Data Size: These are the sizes for the OS-independent 1171acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1172debug version of the code includes the debug output trace mechanism and has a 1173much larger code and data size. 1174 1175 Previous Release: 1176 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1177 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 1178 Current Release: 1179 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 1180 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 1181 11822) iASL Compiler/Disassembler and Tools: 1183 1184iASL/Disassembler: Added a new option (-da, "disassemble all") to load the 1185namespace from and disassemble an entire group of AML files. Useful for 1186loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) and 1187disassembling with one simple command. ACPICA BZ 865. Lin Ming. 1188 1189iASL: Allow multiple invocations of -e option. This change allows multiple 1190uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 834. 1191Lin Ming. 1192 1193---------------------------------------- 119402 July 2010. Summary of changes for version 20100702: 1195 11961) ACPI CA Core Subsystem: 1197 1198Implemented several updates to the recently added GPE reference count 1199support. The model for "wake" GPEs is changing to give the host OS complete 1200control of these GPEs. Eventually, the ACPICA core will not execute any _PRW 1201methods, since the host already must execute them. Also, additional changes 1202were made to help ensure that the reference counts are kept in proper 1203synchronization with reality. Rafael J. Wysocki. 1204 12051) Ensure that GPEs are not enabled twice during initialization. 12062) Ensure that GPE enable masks stay in sync with the reference count. 12073) Do not inadvertently enable GPEs when writing GPE registers. 12084) Remove the internal wake reference counter and add new AcpiGpeWakeup 1209interface. This interface will set or clear individual GPEs for wakeup. 12105) Remove GpeType argument from AcpiEnable and AcpiDisable. These interfaces 1211are now used for "runtime" GPEs only. 1212 1213Changed the behavior of the GPE install/remove handler interfaces. The GPE is 1214no longer disabled during this process, as it was found to cause problems on 1215some machines. Rafael J. Wysocki. 1216 1217Reverted a change introduced in version 20100528 to enable Embedded 1218Controller multi-byte transfers. This change was found to cause problems with 1219Index Fields and possibly Bank Fields. It will be reintroduced when these 1220problems have been resolved. 1221 1222Fixed a problem with references to Alias objects within Package Objects. A 1223reference to an Alias within the definition of a Package was not always 1224resolved properly. Aliases to objects like Processors, Thermal zones, etc. 1225were resolved to the actual object instead of a reference to the object as it 1226should be. Package objects are only allowed to contain integer, string, 1227buffer, package, and reference objects. Redhat bugzilla 608648. 1228 1229Example Code and Data Size: These are the sizes for the OS-independent 1230acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1231debug version of the code includes the debug output trace mechanism and has a 1232much larger code and data size. 1233 1234 Previous Release: 1235 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1236 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 1237 Current Release: 1238 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1239 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 1240 12412) iASL Compiler/Disassembler and Tools: 1242 1243iASL: Implemented a new compiler subsystem to allow definition and 1244compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. These 1245are called "ACPI Data Tables", and the new compiler is the "Data Table 1246Compiler". This compiler is intended to simplify the existing error-prone 1247process of creating these tables for the BIOS, as well as allowing the 1248disassembly, modification, recompilation, and override of existing ACPI data 1249tables. See the iASL User Guide for detailed information. 1250 1251iASL: Implemented a new Template Generator option in support of the new Data 1252Table Compiler. This option will create examples of all known ACPI tables 1253that can be used as the basis for table development. See the iASL 1254documentation and the -T option. 1255 1256Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 1257Descriptor Table). 1258 1259Updated the Linux makefiles for iASL and AcpiExec to place the generated 1260object files in the local directory so that there can be no collisions 1261between the shared files between them that are generated with different 1262options. 1263 1264Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. Use 1265the #define __APPLE__ to enable this support. 1266 1267---------------------------------------- 126828 May 2010. Summary of changes for version 20100528: 1269 1270Note: The ACPI 4.0a specification was released on April 5, 2010 and is 1271available at www.acpi.info. This is primarily an errata release. 1272 12731) ACPI CA Core Subsystem: 1274 1275Undefined ACPI tables: We are looking for the definitions for the following 1276ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 1277 1278Implemented support to enable multi-byte transfers for Embedded Controller 1279(EC) operation regions. Previously, the maximum data size passed to the EC 1280operation region handler was a single byte. There are often EC Fields larger 1281than one byte that need to be transferred, and it is useful for the EC driver 1282to lock these as a single transaction. This change enables single transfers 1283larger than 8 bits. This effectively changes the access to the EC space from 1284ByteAcc to AnyAcc, and will probably require changes to the host OS Embedded 1285Controller driver to enable 16/32/64/256-bit transfers in addition to 8-bit 1286transfers. Alexey Starikovskiy, Lin Ming 1287 1288Implemented a performance enhancement for namespace search and access. This 1289change enhances the performance of namespace searches and walks by adding a 1290backpointer to the parent in each namespace node. On large namespaces, this 1291change can improve overall ACPI performance by up to 9X. Adding a pointer to 1292each namespace node increases the overall size of the internal namespace by 1293about 5%, since each namespace entry usually consists of both a namespace 1294node and an ACPI operand object. However, this is the first growth of the 1295namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 1296 1297Implemented a performance optimization that reduces the number of namespace 1298walks. On control method exit, only walk the namespace if the method is known 1299to have created namespace objects outside of its local scope. Previously, the 1300entire namespace was traversed on each control method exit. This change can 1301improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob Moore. 1302 1303Added support to truncate I/O addresses to 16 bits for Windows compatibility. 1304Some ASL code has been seen in the field that inadvertently has bits set 1305above bit 15. This feature is optional and is enabled if the BIOS requests 1306any Windows OSI strings. It can also be enabled by the host OS. Matthew 1307Garrett, Bob Moore. 1308 1309Added support to limit the maximum time for the ASL Sleep() operator. To 1310prevent accidental deep sleeps, limit the maximum time that Sleep() will 1311actually sleep. Configurable, the default maximum is two seconds. ACPICA 1312bugzilla 854. 1313 1314Added run-time validation support for the _WDG and_WED Microsoft predefined 1315methods. These objects are defined by "Windows Instrumentation", and are not 1316part of the ACPI spec. ACPICA BZ 860. 1317 1318Expanded all statistic counters used during namespace and device 1319initialization from 16 to 32 bits in order to support very large namespaces. 1320 1321Replaced all instances of %d in printf format specifiers with %u since nearly 1322all integers in ACPICA are unsigned. 1323 1324Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly returned 1325as AE_NO_HANDLER. 1326 1327Example Code and Data Size: These are the sizes for the OS-independent 1328acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1329debug version of the code includes the debug output trace mechanism and has a 1330much larger code and data size. 1331 1332 Previous Release: 1333 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 1334 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 1335 Current Release: 1336 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1337 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 1338 13392) iASL Compiler/Disassembler and Tools: 1340 1341iASL: Added compiler support for the _WDG and_WED Microsoft predefined 1342methods. These objects are defined by "Windows Instrumentation", and are not 1343part of the ACPI spec. ACPICA BZ 860. 1344 1345AcpiExec: added option to disable the memory tracking mechanism. The -dt 1346option will disable the tracking mechanism, which improves performance 1347considerably. 1348 1349AcpiExec: Restructured the command line options into -d (disable) and -e 1350(enable) options. 1351 1352---------------------------------------- 135328 April 2010. Summary of changes for version 20100428: 1354 13551) ACPI CA Core Subsystem: 1356 1357Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 1358including FADT-based and GPE Block Devices, execute any _PRW methods in the 1359new table, and process any _Lxx/_Exx GPE methods in the new table. Any 1360runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 1361immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 1362Devices. Provides compatibility with other ACPI implementations. Two new 1363files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob Moore. 1364 1365Fixed a regression introduced in version 20100331 within the table manager 1366where initial table loading could fail. This was introduced in the fix for 1367AcpiReallocateRootTable. Also, renamed some of fields in the table manager 1368data structures to clarify their meaning and use. 1369 1370Fixed a possible allocation overrun during internal object copy in 1371AcpiUtCopySimpleObject. The original code did not correctly handle the case 1372where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 847. 1373 1374Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 1375possible access beyond end-of-allocation. Also, now fully validate descriptor 1376(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 1377 1378Example Code and Data Size: These are the sizes for the OS-independent 1379acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1380debug version of the code includes the debug output trace mechanism and has a 1381much larger code and data size. 1382 1383 Previous Release: 1384 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 1385 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 1386 Current Release: 1387 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 1388 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 1389 13902) iASL Compiler/Disassembler and Tools: 1391 1392iASL: Implemented Min/Max/Len/Gran validation for address resource 1393descriptors. This change implements validation for the address fields that 1394are common to all address-type resource descriptors. These checks are 1395implemented: Checks for valid Min/Max, length within the Min/Max window, 1396valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as per 1397table 6-40 in the ACPI 4.0a specification. Also split the large aslrestype1.c 1398and aslrestype2.c files into five new files. ACPICA BZ 840. 1399 1400iASL: Added support for the _Wxx predefined names. This support was missing 1401and these names were not recognized by the compiler as valid predefined 1402names. ACPICA BZ 851. 1403 1404iASL: Added an error for all predefined names that are defined to return no 1405value and thus must be implemented as Control Methods. These include all of 1406the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 1407names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 1408 1409iASL: Implemented the -ts option to emit hex AML data in ASL format, as an 1410ASL Buffer. Allows ACPI tables to be easily included within ASL files, to be 1411dynamically loaded via the Load() operator. Also cleaned up output for the - 1412ta and -tc options. ACPICA BZ 853. 1413 1414Tests: Added a new file with examples of extended iASL error checking. 1415Demonstrates the advanced error checking ability of the iASL compiler. 1416Available at tests/misc/badcode.asl. 1417 1418---------------------------------------- 141931 March 2010. Summary of changes for version 20100331: 1420 14211) ACPI CA Core Subsystem: 1422 1423Completed a major update for the GPE support in order to improve support for 1424shared GPEs and to simplify both host OS and ACPICA code. Added a reference 1425count mechanism to support shared GPEs that require multiple device drivers. 1426Several external interfaces have changed. One external interface has been 1427removed. One new external interface was added. Most of the GPE external 1428interfaces now use the GPE spinlock instead of the events mutex (and the 1429Flags parameter for many GPE interfaces has been removed.) See the updated 1430ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, Rafael 1431Wysocki. ACPICA BZ 831. 1432 1433Changed: 1434 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 1435Removed: 1436 AcpiSetGpeType 1437New: 1438 AcpiSetGpe 1439 1440Implemented write support for DataTable operation regions. These regions are 1441defined via the DataTableRegion() operator. Previously, only read support was 1442implemented. The ACPI specification allows DataTableRegions to be read/write, 1443however. 1444 1445Implemented a new subsystem option to force a copy of the DSDT to local 1446memory. Optionally copy the entire DSDT to local memory (instead of simply 1447mapping it.) There are some (albeit very rare) BIOSs that corrupt or replace 1448the original DSDT, creating the need for this option. Default is FALSE, do 1449not copy the DSDT. 1450 1451Implemented detection of a corrupted or replaced DSDT. This change adds 1452support to detect a DSDT that has been corrupted and/or replaced from outside 1453the OS (by firmware). This is typically catastrophic for the system, but has 1454been seen on some machines. Once this problem has been detected, the DSDT 1455copy option can be enabled via system configuration. Lin Ming, Bob Moore. 1456 1457Fixed two problems with AcpiReallocateRootTable during the root table copy. 1458When copying the root table to the new allocation, the length used was 1459incorrect. The new size was used instead of the current table size, meaning 1460too much data was copied. Also, the count of available slots for ACPI tables 1461was not set correctly. Alexey Starikovskiy, Bob Moore. 1462 1463Example Code and Data Size: These are the sizes for the OS-independent 1464acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1465debug version of the code includes the debug output trace mechanism and has a 1466much larger code and data size. 1467 1468 Previous Release: 1469 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 1470 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 1471 Current Release: 1472 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 1473 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 1474 14752) iASL Compiler/Disassembler and Tools: 1476 1477iASL: Implement limited typechecking for values returned from predefined 1478control methods. The type of any returned static (unnamed) object is now 1479validated. For example, Return(1). ACPICA BZ 786. 1480 1481iASL: Fixed a predefined name object verification regression. Fixes a problem 1482introduced in version 20100304. An error is incorrectly generated if a 1483predefined name is declared as a static named object with a value defined 1484using the keywords "Zero", "One", or "Ones". Lin Ming. 1485 1486iASL: Added Windows 7 support for the -g option (get local ACPI tables) by 1487reducing the requested registry access rights. ACPICA BZ 842. 1488 1489Disassembler: fixed a possible fault when generating External() statements. 1490Introduced in commit ae7d6fd: Properly handle externals with parent-prefix 1491(carat). Fixes a string length allocation calculation. Lin Ming. 1492 1493---------------------------------------- 149404 March 2010. Summary of changes for version 20100304: 1495 14961) ACPI CA Core Subsystem: 1497 1498Fixed a possible problem with the AML Mutex handling function 1499AcpiExReleaseMutex where the function could fault under the very rare 1500condition when the interpreter has blocked, the interpreter lock is released, 1501the interpreter is then reentered via the same thread, and attempts to 1502acquire an AML mutex that was previously acquired. FreeBSD report 140979. Lin 1503Ming. 1504 1505Implemented additional configuration support for the AML "Debug Object". 1506Output from the debug object can now be enabled via a global variable, 1507AcpiGbl_EnableAmlDebugObject. This will assist with remote machine debugging. 1508This debug output is now available in the release version of ACPICA instead 1509of just the debug version. Also, the entire debug output module can now be 1510configured out of the ACPICA build if desired. One new file added, 1511executer/exdebug.c. Lin Ming, Bob Moore. 1512 1513Added header support for the ACPI MCHI table (Management Controller Host 1514Interface Table). This table was added in ACPI 4.0, but the defining document 1515has only recently become available. 1516 1517Standardized output of integer values for ACPICA warnings/errors. Always use 15180x prefix for hex output, always use %u for unsigned integer decimal output. 1519Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 400 1520invocations.) These invocations were converted from the original 1521ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 1522 1523Example Code and Data Size: These are the sizes for the OS-independent 1524acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1525debug version of the code includes the debug output trace mechanism and has a 1526much larger code and data size. 1527 1528 Previous Release: 1529 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 1530 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 1531 Current Release: 1532 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 1533 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 1534 15352) iASL Compiler/Disassembler and Tools: 1536 1537iASL: Implemented typechecking support for static (non-control method) 1538predefined named objects that are declared with the Name() operator. For 1539example, the type of this object is now validated to be of type Integer: 1540Name(_BBN, 1). This change migrates the compiler to using the core predefined 1541name table instead of maintaining a local version. Added a new file, 1542aslpredef.c. ACPICA BZ 832. 1543 1544Disassembler: Added support for the ACPI 4.0 MCHI table. 1545 1546---------------------------------------- 154721 January 2010. Summary of changes for version 20100121: 1548 15491) ACPI CA Core Subsystem: 1550 1551Added the 2010 copyright to all module headers and signons. This affects 1552virtually every file in the ACPICA core subsystem, the iASL compiler, the 1553tools/utilities, and the test suites. 1554 1555Implemented a change to the AcpiGetDevices interface to eliminate unnecessary 1556invocations of the _STA method. In the case where a specific _HID is 1557requested, do not run _STA until a _HID match is found. This eliminates 1558potentially dozens of _STA calls during a search for a particular device/HID, 1559which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 1560 1561Implemented an additional repair for predefined method return values. Attempt 1562to repair unexpected NULL elements within returned Package objects. Create an 1563Integer of value zero, a NULL String, or a zero-length Buffer as appropriate. 1564ACPICA BZ 818. Lin Ming, Bob Moore. 1565 1566Removed the obsolete ACPI_INTEGER data type. This type was introduced as the 1567code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 (with 156864-bit AML integers). It is now obsolete and this change removes it from the 1569ACPICA code base, replaced by UINT64. The original typedef has been retained 1570for now for compatibility with existing device driver code. ACPICA BZ 824. 1571 1572Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field in 1573the parse tree object. 1574 1575Added additional warning options for the gcc-4 generation. Updated the source 1576accordingly. This includes some code restructuring to eliminate unreachable 1577code, elimination of some gotos, elimination of unused return values, some 1578additional casting, and removal of redundant declarations. 1579 1580Example Code and Data Size: These are the sizes for the OS-independent 1581acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1582debug version of the code includes the debug output trace mechanism and has a 1583much larger code and data size. 1584 1585 Previous Release: 1586 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 1587 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 1588 Current Release: 1589 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 1590 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 1591 15922) iASL Compiler/Disassembler and Tools: 1593 1594No functional changes for this release. 1595 1596---------------------------------------- 159714 December 2009. Summary of changes for version 20091214: 1598 15991) ACPI CA Core Subsystem: 1600 1601Enhanced automatic data type conversions for predefined name repairs. This 1602change expands the automatic repairs/conversions for predefined name return 1603values to make Integers, Strings, and Buffers fully interchangeable. Also, a 1604Buffer can be converted to a Package of Integers if necessary. The nsrepair.c 1605module was completely restructured. Lin Ming, Bob Moore. 1606 1607Implemented automatic removal of null package elements during predefined name 1608repairs. This change will automatically remove embedded and trailing NULL 1609package elements from returned package objects that are defined to contain a 1610variable number of sub-packages. The driver is then presented with a package 1611with no null elements to deal with. ACPICA BZ 819. 1612 1613Implemented a repair for the predefined _FDE and _GTM names. The expected 1614return value for both names is a Buffer of 5 DWORDs. This repair fixes two 1615possible problems (both seen in the field), where a package of integers is 1616returned, or a buffer of BYTEs is returned. With assistance from Jung-uk Kim. 1617 1618Implemented additional module-level code support. This change will properly 1619execute module-level code that is not at the root of the namespace (under a 1620Device object, etc.). Now executes the code within the current scope instead 1621of the root. ACPICA BZ 762. Lin Ming. 1622 1623Fixed possible mutex acquisition errors when running _REG methods. Fixes a 1624problem where mutex errors can occur when running a _REG method that is in 1625the same scope as a method-defined operation region or an operation region 1626under a module-level IF block. This type of code is rare, so the problem has 1627not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 1628 1629Fixed a possible memory leak during module-level code execution. An object 1630could be leaked for each block of executed module-level code if the 1631interpreter slack mode is enabled This change deletes any implicitly returned 1632object from the module-level code block. Lin Ming. 1633 1634Removed messages for successful predefined repair(s). The repair mechanism 1635was considered too wordy. Now, messages are only unconditionally emitted if 1636the return object cannot be repaired. Existing messages for successful 1637repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 827. 1638 1639Example Code and Data Size: These are the sizes for the OS-independent 1640acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1641debug version of the code includes the debug output trace mechanism and has a 1642much larger code and data size. 1643 1644 Previous Release: 1645 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 1646 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 1647 Current Release: 1648 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 1649 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 1650 16512) iASL Compiler/Disassembler and Tools: 1652 1653iASL: Fixed a regression introduced in 20091112 where intermediate .SRC files 1654were no longer automatically removed at the termination of the compile. 1655 1656acpiexec: Implemented the -f option to specify default region fill value. 1657This option specifies the value used to initialize buffers that simulate 1658operation regions. Default value is zero. Useful for debugging problems that 1659depend on a specific initial value for a region or field. 1660 1661---------------------------------------- 166212 November 2009. Summary of changes for version 20091112: 1663 16641) ACPI CA Core Subsystem: 1665 1666Implemented a post-order callback to AcpiWalkNamespace. The existing 1667interface only has a pre-order callback. This change adds an additional 1668parameter for a post-order callback which will be more useful for bus scans. 1669ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 1670 1671Modified the behavior of the operation region memory mapping cache for 1672SystemMemory. Ensure that the memory mappings created for operation regions 1673do not cross 4K page boundaries. Crossing a page boundary while mapping 1674regions can cause kernel warnings on some hosts if the pages have different 1675attributes. Such regions are probably BIOS bugs, and this is the workaround. 1676Linux BZ 14445. Lin Ming. 1677 1678Implemented an automatic repair for predefined methods that must return 1679sorted lists. This change will repair (by sorting) packages returned by _ALR, 1680_PSS, and _TSS. Drivers can now assume that the packages are correctly sorted 1681and do not contain NULL package elements. Adds one new file, 1682namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 1683 1684Fixed a possible fault during predefined name validation if a return Package 1685object contains NULL elements. Also adds a warning if a NULL element is 1686followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement may 1687include repair or removal of all such NULL elements where possible. 1688 1689Implemented additional module-level executable AML code support. This change 1690will execute module-level code that is not at the root of the namespace 1691(under a Device object, etc.) at table load time. Module-level executable AML 1692code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 1693 1694Implemented a new internal function to create Integer objects. This function 1695simplifies miscellaneous object creation code. ACPICA BZ 823. 1696 1697Reduced the severity of predefined repair messages, Warning to Info. Since 1698the object was successfully repaired, a warning is too severe. Reduced to an 1699info message for now. These messages may eventually be changed to debug-only. 1700ACPICA BZ 812. 1701 1702Example Code and Data Size: These are the sizes for the OS-independent 1703acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1704debug version of the code includes the debug output trace mechanism and has a 1705much larger code and data size. 1706 1707 Previous Release: 1708 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 1709 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 1710 Current Release: 1711 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 1712 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 1713 17142) iASL Compiler/Disassembler and Tools: 1715 1716iASL: Implemented Switch() with While(1) so that Break works correctly. This 1717change correctly implements the Switch operator with a surrounding While(1) 1718so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 1719 1720iASL: Added a message if a package initializer list is shorter than package 1721length. Adds a new remark for a Package() declaration if an initializer list 1722exists, but is shorter than the declared length of the package. Although 1723technically legal, this is probably a coding error and it is seen in the 1724field. ACPICA BZ 815. Lin Ming, Bob Moore. 1725 1726iASL: Fixed a problem where the compiler could fault after the maximum number 1727of errors was reached (200). 1728 1729acpixtract: Fixed a possible warning for pointer cast if the compiler warning 1730level set very high. 1731 1732---------------------------------------- 173313 October 2009. Summary of changes for version 20091013: 1734 17351) ACPI CA Core Subsystem: 1736 1737Fixed a problem where an Operation Region _REG method could be executed more 1738than once. If a custom address space handler is installed by the host before 1739the "initialize operation regions" phase of the ACPICA initialization, any 1740_REG methods for that address space could be executed twice. This change 1741fixes the problem. ACPICA BZ 427. Lin Ming. 1742 1743Fixed a possible memory leak for the Scope() ASL operator. When the exact 1744invocation of "Scope(\)" is executed (change scope to root), one internal 1745operand object was leaked. Lin Ming. 1746 1747Implemented a run-time repair for the _MAT predefined method. If the _MAT 1748return value is defined as a Field object in the AML, and the field 1749size is less than or equal to the default width of an integer (32 or 64),_MAT 1750can incorrectly return an Integer instead of a Buffer. ACPICA now 1751automatically repairs this problem. ACPICA BZ 810. 1752 1753Implemented a run-time repair for the _BIF and _BIX predefined methods. The 1754"OEM Information" field is often incorrectly returned as an Integer with 1755value zero if the field is not supported by the platform. This is due to an 1756ambiguity in the ACPI specification. The field should always be a string. 1757ACPICA now automatically repairs this problem by returning a NULL string 1758within the returned Package. ACPICA BZ 807. 1759 1760Example Code and Data Size: These are the sizes for the OS-independent 1761acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1762debug version of the code includes the debug output trace mechanism and has a 1763much larger code and data size. 1764 1765 Previous Release: 1766 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 1767 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 1768 Current Release: 1769 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 1770 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 1771 17722) iASL Compiler/Disassembler and Tools: 1773 1774Disassembler: Fixed a problem where references to external symbols that 1775contained one or more parent-prefixes (carats) were not handled correctly, 1776possibly causing a fault. ACPICA BZ 806. Lin Ming. 1777 1778Disassembler: Restructured the code so that all functions that handle 1779external symbols are in a single module. One new file is added, 1780common/dmextern.c. 1781 1782AML Debugger: Added a max count argument for the Batch command (which 1783executes multiple predefined methods within the namespace.) 1784 1785iASL: Updated the compiler documentation (User Reference.) Available at 1786http://www.acpica.org/documentation/. ACPICA BZ 750. 1787 1788AcpiXtract: Updated for Lint and other formatting changes. Close all open 1789files. 1790 1791---------------------------------------- 179203 September 2009. Summary of changes for version 20090903: 1793 17941) ACPI CA Core Subsystem: 1795 1796For Windows Vista compatibility, added the automatic execution of an _INI 1797method located at the namespace root (\_INI). This method is executed at 1798table load time. This support is in addition to the automatic execution of 1799\_SB._INI. Lin Ming. 1800 1801Fixed a possible memory leak in the interpreter for AML package objects if 1802the package initializer list is longer than the defined size of the package. 1803This apparently can only happen if the BIOS changes the package size on the 1804fly (seen in a _PSS object), as ASL compilers do not allow this. The 1805interpreter will truncate the package to the defined size (and issue an error 1806message), but previously could leave the extra objects undeleted if they were 1807pre-created during the argument processing (such is the case if the package 1808consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 1809 1810Fixed a problem seen when a Buffer or String is stored to itself via ASL. 1811This has been reported in the field. Previously, ACPICA would zero out the 1812buffer/string. Now, the operation is treated as a noop. Provides Windows 1813compatibility. ACPICA BZ 803. Lin Ming. 1814 1815Removed an extraneous error message for ASL constructs of the form 1816Store(LocalX,LocalX) when LocalX is uninitialized. These curious statements 1817are seen in many BIOSs and are once again treated as NOOPs and no error is 1818emitted when they are encountered. ACPICA BZ 785. 1819 1820Fixed an extraneous warning message if a _DSM reserved method returns a 1821Package object. _DSM can return any type of object, so validation on the 1822return type cannot be performed. ACPICA BZ 802. 1823 1824Example Code and Data Size: These are the sizes for the OS-independent 1825acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1826debug version of the code includes the debug output trace mechanism and has a 1827much larger code and data size. 1828 1829 Previous Release: 1830 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 1831 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 1832 Current Release: 1833 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 1834 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 1835 18362) iASL Compiler/Disassembler and Tools: 1837 1838iASL: Fixed a problem with the use of the Alias operator and Resource 1839Templates. The correct alias is now constructed and no error is emitted. 1840ACPICA BZ 738. 1841 1842iASL: Implemented the -I option to specify additional search directories for 1843include files. Allows multiple additional search paths for include files. 1844Directories are searched in the order specified on the command line (after 1845the local directory is searched.) ACPICA BZ 800. 1846 1847iASL: Fixed a problem where the full pathname for include files was not 1848emitted for warnings/errors. This caused the IDE support to not work 1849properly. ACPICA BZ 765. 1850 1851iASL: Implemented the -@ option to specify a Windows-style response file 1852containing additional command line options. ACPICA BZ 801. 1853 1854AcpiExec: Added support to load multiple AML files simultaneously (such as a 1855DSDT and multiple SSDTs). Also added support for wildcards within the AML 1856pathname. These features allow all machine tables to be easily loaded and 1857debugged together. ACPICA BZ 804. 1858 1859Disassembler: Added missing support for disassembly of HEST table Error Bank 1860subtables. 1861 1862---------------------------------------- 186330 July 2009. Summary of changes for version 20090730: 1864 1865The ACPI 4.0 implementation for ACPICA is complete with this release. 1866 18671) ACPI CA Core Subsystem: 1868 1869ACPI 4.0: Added header file support for all new and changed ACPI tables. 1870Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 1871for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, BERT, 1872EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. There 1873have been some ACPI 4.0 changes to other existing tables. Split the large 1874actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 1875 1876ACPI 4.0: Implemented predefined name validation for all new names. There are 187731 new names in ACPI 4.0. The predefined validation module was split into two 1878files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 1879 1880Implemented support for so-called "module-level executable code". This is 1881executable AML code that exists outside of any control method and is intended 1882to be executed at table load time. Although illegal since ACPI 2.0, this type 1883of code still exists and is apparently still being created. Blocks of this 1884code are now detected and executed as intended. Currently, the code blocks 1885must exist under either an If, Else, or While construct; these are the 1886typical cases seen in the field. ACPICA BZ 762. Lin Ming. 1887 1888Implemented an automatic dynamic repair for predefined names that return 1889nested Package objects. This applies to predefined names that are defined to 1890return a variable-length Package of sub-packages. If the number of sub- 1891packages is one, BIOS code is occasionally seen that creates a simple single 1892package with no sub-packages. This code attempts to fix the problem by 1893wrapping a new package object around the existing package. These methods can 1894be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 1895790. 1896 1897Fixed a regression introduced in 20090625 for the AcpiGetDevices interface. 1898The _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA 1899BZ 793. 1900 1901Fixed a problem with AcpiReset where the reset would silently fail if the 1902register was one of the protected I/O ports. AcpiReset now bypasses the port 1903validation mechanism. This may eventually be driven into the AcpiRead/Write 1904interfaces. 1905 1906Fixed a regression related to the recent update of the AcpiRead/Write 1907interfaces. A sleep/suspend could fail if the optional PM2 Control register 1908does not exist during an attempt to write the Bus Master Arbitration bit. 1909(However, some hosts already delete the code that writes this bit, and the 1910code may in fact be obsolete at this date.) ACPICA BZ 799. 1911 1912Fixed a problem where AcpiTerminate could fault if inadvertently called twice 1913in succession. ACPICA BZ 795. 1914 1915Example Code and Data Size: These are the sizes for the OS-independent 1916acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1917debug version of the code includes the debug output trace mechanism and has a 1918much larger code and data size. 1919 1920 Previous Release: 1921 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 1922 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 1923 Current Release: 1924 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 1925 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 1926 19272) iASL Compiler/Disassembler and Tools: 1928 1929ACPI 4.0: Implemented disassembler support for all new ACPI tables and 1930changes to existing tables. ACPICA BZ 775. 1931 1932---------------------------------------- 193325 June 2009. Summary of changes for version 20090625: 1934 1935The ACPI 4.0 Specification was released on June 16 and is available at 1936www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 1937continue for the next few releases. 1938 19391) ACPI CA Core Subsystem: 1940 1941ACPI 4.0: Implemented interpreter support for the IPMI operation region 1942address space. Includes support for bi-directional data buffers and an IPMI 1943address space handler (to be installed by an IPMI device driver.) ACPICA BZ 1944773. Lin Ming. 1945 1946ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 1947support in both the header files and the disassembler. 1948 1949Completed a major update for the AcpiGetObjectInfo external interface. 1950Changes include: 1951 - Support for variable, unlimited length HID, UID, and CID strings. 1952 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.) 1953 - Call the _SxW power methods on behalf of a device object. 1954 - Determine if a device is a PCI root bridge. 1955 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 1956These changes will require an update to all callers of this interface. See 1957the updated ACPICA Programmer Reference for details. One new source file has 1958been added - utilities/utids.c. ACPICA BZ 368, 780. 1959 1960Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 1961transfers. The Value parameter has been extended from 32 bits to 64 bits in 1962order to support new ACPI 4.0 tables. These changes will require an update to 1963all callers of these interfaces. See the ACPICA Programmer Reference for 1964details. ACPICA BZ 768. 1965 1966Fixed several problems with AcpiAttachData. The handler was not invoked when 1967the host node was deleted. The data sub-object was not automatically deleted 1968when the host node was deleted. The interface to the handler had an unused 1969parameter, this was removed. ACPICA BZ 778. 1970 1971Enhanced the function that dumps ACPI table headers. All non-printable 1972characters in the string fields are now replaced with '?' (Signature, OemId, 1973OemTableId, and CompilerId.) ACPI tables with non-printable characters in 1974these fields are occasionally seen in the field. ACPICA BZ 788. 1975 1976Fixed a problem with predefined method repair code where the code that 1977attempts to repair/convert an object of incorrect type is only executed on 1978the first time the predefined method is called. The mechanism that disables 1979warnings on subsequent calls was interfering with the repair mechanism. 1980ACPICA BZ 781. 1981 1982Fixed a possible memory leak in the predefined validation/repair code when a 1983buffer is automatically converted to an expected string object. 1984 1985Removed obsolete 16-bit files from the distribution and from the current git 1986tree head. ACPICA BZ 776. 1987 1988Example Code and Data Size: These are the sizes for the OS-independent 1989acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1990debug version of the code includes the debug output trace mechanism and has a 1991much larger code and data size. 1992 1993 Previous Release: 1994 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 1995 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 1996 Current Release: 1997 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 1998 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 1999 20002) iASL Compiler/Disassembler and Tools: 2001 2002ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 2003operation region keyword. ACPICA BZ 771, 772. Lin Ming. 2004 2005ACPI 4.0: iASL - implemented compile-time validation support for all new 2006predefined names and control methods (31 total). ACPICA BZ 769. 2007 2008---------------------------------------- 200921 May 2009. Summary of changes for version 20090521: 2010 20111) ACPI CA Core Subsystem: 2012 2013Disabled the preservation of the SCI enable bit in the PM1 control register. 2014The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be 2015a "preserved" bit - "OSPM always preserves this bit position", section 20164.7.3.2.1. However, some machines fail if this bit is in fact preserved 2017because the bit needs to be explicitly set by the OS as a workaround. No 2018machines fail if the bit is not preserved. Therefore, ACPICA no longer 2019attempts to preserve this bit. 2020 2021Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 2022incorrectly formed _PRT package could cause a fault. Added validation to 2023ensure that each package element is actually a sub-package. 2024 2025Implemented a new interface to install or override a single control method, 2026AcpiInstallMethod. This interface is useful when debugging in order to repair 2027an existing method or to install a missing method without having to override 2028the entire ACPI table. See the ACPICA Programmer Reference for use and 2029examples. Lin Ming, Bob Moore. 2030 2031Fixed several reference count issues with the DdbHandle object that is 2032created from a Load or LoadTable operator. Prevent premature deletion of the 2033object. Also, mark the object as invalid once the table has been unloaded. 2034This is needed because the handle itself may not be deleted after the table 2035unload, depending on whether it has been stored in a named object by the 2036caller. Lin Ming. 2037 2038Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 2039mutexes of the same sync level are acquired but then not released in strict 2040opposite order, the internally maintained Current Sync Level becomes confused 2041and can cause subsequent execution errors. ACPICA BZ 471. 2042 2043Changed the allowable release order for ASL mutex objects. The ACPI 4.0 2044specification has been changed to make the SyncLevel for mutex objects more 2045useful. When releasing a mutex, the SyncLevel of the mutex must now be the 2046same as the current sync level. This makes more sense than the previous rule 2047(SyncLevel less than or equal). This change updates the code to match the 2048specification. 2049 2050Fixed a problem with the local version of the AcpiOsPurgeCache function. The 2051(local) cache must be locked during all cache object deletions. Andrew 2052Baumann. 2053 2054Updated the Load operator to use operation region interfaces. This replaces 2055direct memory mapping with region access calls. Now, all region accesses go 2056through the installed region handler as they should. 2057 2058Simplified and optimized the NsGetNextNode function. Reduced parameter count 2059and reduced code for this frequently used function. 2060 2061Example Code and Data Size: These are the sizes for the OS-independent 2062acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2063debug version of the code includes the debug output trace mechanism and has a 2064much larger code and data size. 2065 2066 Previous Release: 2067 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 2068 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 2069 Current Release: 2070 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 2071 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 2072 20732) iASL Compiler/Disassembler and Tools: 2074 2075Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems 2076with sub-table disassembly and handling invalid sub-tables. Attempt recovery 2077after an invalid sub-table ID. 2078 2079---------------------------------------- 208022 April 2009. Summary of changes for version 20090422: 2081 20821) ACPI CA Core Subsystem: 2083 2084Fixed a compatibility issue with the recently released I/O port protection 2085mechanism. For windows compatibility, 1) On a port protection violation, 2086simply ignore the request and do not return an exception (allow the control 2087method to continue execution.) 2) If only part of the request overlaps a 2088protected port, read/write the individual ports that are not protected. Linux 2089BZ 13036. Lin Ming 2090 2091Enhanced the execution of the ASL/AML BreakPoint operator so that it actually 2092breaks into the AML debugger if the debugger is present. This matches the 2093ACPI-defined behavior. 2094 2095Fixed several possible warnings related to the use of the configurable 2096ACPI_THREAD_ID. This type can now be configured as either an integer or a 2097pointer with no warnings. Also fixes several warnings in printf-like 2098statements for the 64-bit build when the type is configured as a pointer. 2099ACPICA BZ 766, 767. 2100 2101Fixed a number of possible warnings when compiling with gcc 4+ (depending on 2102warning options.) Examples include printf formats, aliasing, unused globals, 2103missing prototypes, missing switch default statements, use of non-ANSI 2104library functions, use of non-ANSI constructs. See generate/unix/Makefile for 2105a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 2106 2107Example Code and Data Size: These are the sizes for the OS-independent 2108acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2109debug version of the code includes the debug output trace mechanism and has a 2110much larger code and data size. 2111 2112 Previous Release: 2113 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 2114 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 2115 Current Release: 2116 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 2117 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 2118 21192) iASL Compiler/Disassembler and Tools: 2120 2121iASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on 2122the 64-bit build. 2123 2124iASL: Fixed a problem where the Unix/Linux versions of the compiler could not 2125correctly digest Windows/DOS formatted files (with CR/LF). 2126 2127iASL: Added a new option for "quiet mode" (-va) that produces only the 2128compilation summary, not individual errors and warnings. Useful for large 2129batch compilations. 2130 2131AcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 2132timeout that can be used to detect hang conditions during execution of AML 2133code (includes both internal semaphores and AML-defined mutexes and events.) 2134 2135Added new makefiles for the generation of acpica in a generic unix-like 2136environment. These makefiles are intended to generate the acpica tools and 2137utilities from the original acpica git source tree structure. 2138 2139Test Suites: Updated and cleaned up the documentation files. Updated the 2140copyrights to 2009, affecting all source files. Use the new version of iASL 2141with quiet mode. Increased the number of available semaphores in the Windows 2142OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added 2143an alternate implementation of the semaphore timeout to allow aslts to 2144execute fully on Cygwin. 2145 2146---------------------------------------- 214720 March 2009. Summary of changes for version 20090320: 2148 21491) ACPI CA Core Subsystem: 2150 2151Fixed a possible race condition between AcpiWalkNamespace and dynamic table 2152unloads. Added a reader/writer locking mechanism to allow multiple concurrent 2153namespace walks (readers), but block a dynamic table unload until it can gain 2154exclusive write access to the namespace. This fixes a problem where a table 2155unload could (possibly catastrophically) delete the portion of the namespace 2156that is currently being examined by a walk. Adds a new file, utlock.c, that 2157implements the reader/writer lock mechanism. ACPICA BZ 749. 2158 2159Fixed a regression introduced in version 20090220 where a change to the FADT 2160handling could cause the ACPICA subsystem to access non-existent I/O ports. 2161 2162Modified the handling of FADT register and table (FACS/DSDT) addresses. The 2163FADT can contain both 32-bit and 64-bit versions of these addresses. 2164Previously, the 64-bit versions were favored, meaning that if both 32 and 64 2165versions were valid, but not equal, the 64-bit version was used. This was 2166found to cause some machines to fail. Now, in this case, the 32-bit version 2167is used instead. This now matches the Windows behavior. 2168 2169Implemented a new mechanism to protect certain I/O ports. Provides Microsoft 2170compatibility and protects the standard PC I/O ports from access via AML 2171code. Adds a new file, hwvalid.c 2172 2173Fixed a possible extraneous warning message from the FADT support. The 2174message warns of a 32/64 length mismatch between the legacy and GAS 2175definitions for a register. 2176 2177Removed the obsolete AcpiOsValidateAddress OSL interface. This interface is 2178made obsolete by the port protection mechanism above. It was previously used 2179to validate the entire address range of an operation region, which could be 2180incorrect if the range included illegal ports, but fields within the 2181operation region did not actually access those ports. Validation is now 2182performed on a per-field basis instead of the entire region. 2183 2184Modified the handling of the PM1 Status Register ignored bit (bit 11.) 2185Ignored bits must be "preserved" according to the ACPI spec. Usually, this 2186means a read/modify/write when writing to the register. However, for status 2187registers, writing a one means clear the event. Writing a zero means preserve 2188the event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 2189and the ACPICA code now simply always writes a zero to the ignored bit. 2190 2191Modified the handling of ignored bits for the PM1 A/B Control Registers. As 2192per the ACPI specification, for the control registers, preserve 2193(read/modify/write) all bits that are defined as either reserved or ignored. 2194 2195Updated the handling of write-only bits in the PM1 A/B Control Registers. 2196When reading the register, zero the write-only bits as per the ACPI spec. 2197ACPICA BZ 443. Lin Ming. 2198 2199Removed "Linux" from the list of supported _OSI strings. Linux no longer 2200wants to reply true to this request. The Windows strings are the only paths 2201through the AML that are tested and known to work properly. 2202 2203 Previous Release: 2204 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 2205 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 2206 Current Release: 2207 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 2208 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 2209 22102) iASL Compiler/Disassembler and Tools: 2211 2212Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c and 2213aetables.c 2214 2215---------------------------------------- 221620 February 2009. Summary of changes for version 20090220: 2217 22181) ACPI CA Core Subsystem: 2219 2220Optimized the ACPI register locking. Removed locking for reads from the ACPI 2221bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 2222not required when reading the single-bit registers. The 2223AcpiGetRegisterUnlocked function is no longer needed and has been removed. 2224This will improve performance for reads on these registers. ACPICA BZ 760. 2225 2226Fixed the parameter validation for AcpiRead/Write. Now return 2227AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if 2228the register has an address of zero. Previously, these cases simply returned 2229AE_OK. For optional registers such as PM1B status/enable/control, the caller 2230should check for a valid register address before calling. ACPICA BZ 748. 2231 2232Renamed the external ACPI bit register access functions. Renamed 2233AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 2234functions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 2235Also, restructured the code for these functions by simplifying the code path 2236and condensing duplicate code to reduce code size. 2237 2238Added new functions to transparently handle the possibly split PM1 A/B 2239registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 2240now handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ 2241746. 2242 2243Added a function to handle the PM1 control registers, AcpiHwWritePm1Control. 2244This function writes both of the PM1 control registers (A/B). These registers 2245are different than the PM1 A/B status and enable registers in that different 2246values can be written to the A/B registers. Most notably, the SLP_TYP bits 2247can be different, as per the values returned from the _Sx predefined methods. 2248 2249Removed an extra register write within AcpiHwClearAcpiStatus. This function 2250was writing an optional PM1B status register twice. The existing call to the 2251low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B 2252register. ACPICA BZ 751. 2253 2254Split out the PM1 Status registers from the FADT. Added new globals for these 2255registers (A/B), similar to the way the PM1 Enable registers are handled. 2256Instead of overloading the FADT Event Register blocks. This makes the code 2257clearer and less prone to error. 2258 2259Fixed the warning message for when the platform contains too many ACPI tables 2260for the default size of the global root table data structure. The calculation 2261for the truncation value was incorrect. 2262 2263Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 2264obsolete macro, since it is now a simple reference to ->common.type. There 2265were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 2266 2267Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 2268TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 2269simply SLEEP_TYPE. ACPICA BZ 754. 2270 2271Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 2272function is only needed on 64-bit host operating systems and is thus not 2273included for 32-bit hosts. 2274 2275Debug output: print the input and result for invocations of the _OSI reserved 2276control method via the ACPI_LV_INFO debug level. Also, reduced some of the 2277verbosity of this debug level. Len Brown. 2278 2279Example Code and Data Size: These are the sizes for the OS-independent 2280acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2281debug version of the code includes the debug output trace mechanism and has a 2282much larger code and data size. 2283 2284 Previous Release: 2285 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 2286 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 2287 Current Release: 2288 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 2289 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 2290 22912) iASL Compiler/Disassembler and Tools: 2292 2293Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 2294various legal performance profiles. 2295 2296---------------------------------------- 229723 January 2009. Summary of changes for version 20090123: 2298 22991) ACPI CA Core Subsystem: 2300 2301Added the 2009 copyright to all module headers and signons. This affects 2302virtually every file in the ACPICA core subsystem, the iASL compiler, and 2303the tools/utilities. 2304 2305Implemented a change to allow the host to override any ACPI table, including 2306dynamically loaded tables. Previously, only the DSDT could be replaced by the 2307host. With this change, the AcpiOsTableOverride interface is called for each 2308table found in the RSDT/XSDT during ACPICA initialization, and also whenever 2309a table is dynamically loaded via the AML Load operator. 2310 2311Updated FADT flag definitions, especially the Boot Architecture flags. 2312 2313Debugger: For the Find command, automatically pad the input ACPI name with 2314underscores if the name is shorter than 4 characters. This enables a match 2315with the actual namespace entry which is itself padded with underscores. 2316 2317Example Code and Data Size: These are the sizes for the OS-independent 2318acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2319debug version of the code includes the debug output trace mechanism and has a 2320much larger code and data size. 2321 2322 Previous Release: 2323 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 2324 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 2325 Current Release: 2326 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 2327 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 2328 23292) iASL Compiler/Disassembler and Tools: 2330 2331Fix build error under Bison-2.4. 2332 2333Dissasembler: Enhanced FADT support. Added decoding of the Boot Architecture 2334flags. Now decode all flags, regardless of the FADT version. Flag output 2335includes the FADT version which first defined each flag. 2336 2337The iASL -g option now dumps the RSDT to a file (in addition to the FADT and 2338DSDT). Windows only. 2339 2340---------------------------------------- 234104 December 2008. Summary of changes for version 20081204: 2342 23431) ACPI CA Core Subsystem: 2344 2345The ACPICA Programmer Reference has been completely updated and revamped for 2346this release. This includes updates to the external interfaces, OSL 2347interfaces, the overview sections, and the debugger reference. 2348 2349Several new ACPICA interfaces have been implemented and documented in the 2350programmer reference: 2351AcpiReset - Writes the reset value to the FADT-defined reset register. 2352AcpiDisableAllGpes - Disable all available GPEs. 2353AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 2354AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 2355AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 2356AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 2357AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 2358 2359Most of the public ACPI hardware-related interfaces have been moved to a new 2360file, components/hardware/hwxface.c 2361 2362Enhanced the FADT parsing and low-level ACPI register access: The ACPI 2363register lengths within the FADT are now used, and the low level ACPI 2364register access no longer hardcodes the ACPI register lengths. Given that 2365there may be some risk in actually trusting the FADT register lengths, a run- 2366time option was added to fall back to the default hardcoded lengths if the 2367FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 2368option is set to true for now, and a warning is issued if a suspicious FADT 2369register length is overridden with the default value. 2370 2371Fixed a reference count issue in NsRepairObject. This problem was introduced 2372in version 20081031 as part of a fix to repair Buffer objects within 2373Packages. Lin Ming. 2374 2375Added semaphore support to the Linux/Unix application OS-services layer 2376(OSL). ACPICA BZ 448. Lin Ming. 2377 2378Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes will 2379be implemented in the OSL, or will binary semaphores be used instead. 2380 2381Example Code and Data Size: These are the sizes for the OS-independent 2382acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2383debug version of the code includes the debug output trace mechanism and has a 2384much larger code and data size. 2385 2386 Previous Release: 2387 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 2388 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 2389 Current Release: 2390 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 2391 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 2392 23932) iASL Compiler/Disassembler and Tools: 2394 2395iASL: Completed the '-e' option to include additional ACPI tables in order to 2396aid with disassembly and External statement generation. ACPICA BZ 742. Lin 2397Ming. 2398 2399iASL: Removed the "named object in while loop" error. The compiler cannot 2400determine how many times a loop will execute. ACPICA BZ 730. 2401 2402Disassembler: Implemented support for FADT revision 2 (MS extension). ACPICA 2403BZ 743. 2404 2405Disassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). 2406 2407---------------------------------------- 240831 October 2008. Summary of changes for version 20081031: 2409 24101) ACPI CA Core Subsystem: 2411 2412Restructured the ACPICA header files into public/private. acpi.h now includes 2413only the "public" acpica headers. All other acpica headers are "private" and 2414should not be included by acpica users. One new file, accommon.h is used to 2415include the commonly used private headers for acpica code generation. Future 2416plans include moving all private headers to a new subdirectory. 2417 2418Implemented an automatic Buffer->String return value conversion for 2419predefined ACPI methods. For these methods (such as _BIF), added automatic 2420conversion for return objects that are required to be a String, but a Buffer 2421was found instead. This can happen when reading string battery data from an 2422operation region, because it used to be difficult to convert the data from 2423buffer to string from within the ASL. Ensures that the host OS is provided 2424with a valid null-terminated string. Linux BZ 11822. 2425 2426Updated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector 2427into two: one for the 32-bit vector, another for the 64-bit vector. This is 2428required because the host OS must setup the wake much differently for each 2429vector (real vs. protected mode, etc.) and the interface itself should not be 2430deciding which vector to use. Also, eliminated the GetFirmwareWakingVector 2431interface, as it served no purpose (only the firmware reads the vector, OS 2432only writes the vector.) ACPICA BZ 731. 2433 2434Implemented a mechanism to escape infinite AML While() loops. Added a loop 2435counter to force exit from AML While loops if the count becomes too large. 2436This can occur in poorly written AML when the hardware does not respond 2437within a while loop and the loop does not implement a timeout. The maximum 2438loop count is configurable. A new exception code is returned when a loop is 2439broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 2440 2441Optimized the execution of AML While loops. Previously, a control state 2442object was allocated and freed for each execution of the loop. The 2443optimization is to simply reuse the control state for each iteration. This 2444speeds up the raw loop execution time by about 5%. 2445 2446Enhanced the implicit return mechanism. For Windows compatibility, return an 2447implicit integer of value zero for methods that contain no executable code. 2448Such methods are seen in the field as stubs (presumably), and can cause 2449drivers to fail if they expect a return value. Lin Ming. 2450 2451Allow multiple backslashes as root prefixes in namepaths. In a fully 2452qualified namepath, allow multiple backslash prefixes. This can happen (and 2453is seen in the field) because of the use of a double-backslash in strings 2454(since backslash is the escape character) causing confusion. ACPICA BZ 739 2455Lin Ming. 2456 2457Emit a warning if two different FACS or DSDT tables are discovered in the 2458FADT. Checks if there are two valid but different addresses for the FACS and 2459DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 2460 2461Consolidated the method argument count validation code. Merged the code that 2462validates control method argument counts into the predefined validation 2463module. Eliminates possible multiple warnings for incorrect argument counts. 2464 2465Implemented ACPICA example code. Includes code for ACPICA initialization, 2466handler installation, and calling a control method. Available at 2467source/tools/examples. 2468 2469Added a global pointer for FACS table to simplify internal FACS access. Use 2470the global pointer instead of using AcpiGetTableByIndex for each FACS access. 2471This simplifies the code for the Global Lock and the Firmware Waking 2472Vector(s). 2473 2474Example Code and Data Size: These are the sizes for the OS-independent 2475acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2476debug version of the code includes the debug output trace mechanism and has a 2477much larger code and data size. 2478 2479 Previous Release: 2480 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 2481 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 2482 Current Release: 2483 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 2484 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 2485 24862) iASL Compiler/Disassembler and Tools: 2487 2488iASL: Improved disassembly of external method calls. Added the -e option to 2489allow the inclusion of additional ACPI tables to help with the disassembly of 2490method invocations and the generation of external declarations during the 2491disassembly. Certain external method invocations cannot be disassembled 2492properly without the actual declaration of the method. Use the -e option to 2493include the table where the external method(s) are actually declared. Most 2494useful for disassembling SSDTs that make method calls back to the master 2495DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d 2496-e dsdt.aml ssdt1.aml 2497 2498iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 2499problem where the use of an alias within a namepath would result in a not 2500found error or cause the compiler to fault. Also now allows forward 2501references from the Alias operator itself. ACPICA BZ 738. 2502 2503---------------------------------------- 250426 September 2008. Summary of changes for version 20080926: 2505 25061) ACPI CA Core Subsystem: 2507 2508Designed and implemented a mechanism to validate predefined ACPI methods and 2509objects. This code validates the predefined ACPI objects (objects whose names 2510start with underscore) that appear in the namespace, at the time they are 2511evaluated. The argument count and the type of the returned object are 2512validated against the ACPI specification. The purpose of this validation is 2513to detect problems with the BIOS-implemented predefined ACPI objects before 2514the results are returned to the ACPI-related drivers. Future enhancements may 2515include actual repair of incorrect return objects where possible. Two new 2516files are nspredef.c and acpredef.h. 2517 2518Fixed a fault in the AML parser if a memory allocation fails during the Op 2519completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 2520 2521Fixed an issue with implicit return compatibility. This change improves the 2522implicit return mechanism to be more compatible with the MS interpreter. Lin 2523Ming, ACPICA BZ 349. 2524 2525Implemented support for zero-length buffer-to-string conversions. Allow zero 2526length strings during interpreter buffer-to-string conversions. For example, 2527during the ToDecimalString and ToHexString operators, as well as implicit 2528conversions. Fiodor Suietov, ACPICA BZ 585. 2529 2530Fixed two possible memory leaks in the error exit paths of 2531AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 2532similar in that they use a stack of state objects in order to eliminate 2533recursion. The stack must be fully unwound and deallocated if an error 2534occurs. Lin Ming. ACPICA BZ 383. 2535 2536Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global 2537ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 2538Moore ACPICA BZ 442. 2539 2540Removed the obsolete version number in module headers. Removed the 2541"$Revision" number that appeared in each module header. This version number 2542was useful under SourceSafe and CVS, but has no meaning under git. It is not 2543only incorrect, it could also be misleading. 2544 2545Example Code and Data Size: These are the sizes for the OS-independent 2546acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2547debug version of the code includes the debug output trace mechanism and has a 2548much larger code and data size. 2549 2550 Previous Release: 2551 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2552 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 2553 Current Release: 2554 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 2555 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 2556 2557---------------------------------------- 255829 August 2008. Summary of changes for version 20080829: 2559 25601) ACPI CA Core Subsystem: 2561 2562Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 2563Reference. Changes include the elimination of cheating on the Object field 2564for the DdbHandle subtype, addition of a reference class field to 2565differentiate the various reference types (instead of an AML opcode), and the 2566cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 2567 2568Reduce an error to a warning for an incorrect method argument count. 2569Previously aborted with an error if too few arguments were passed to a 2570control method via the external ACPICA interface. Now issue a warning instead 2571and continue. Handles the case where the method inadvertently declares too 2572many arguments, but does not actually use the extra ones. Applies mainly to 2573the predefined methods. Lin Ming. Linux BZ 11032. 2574 2575Disallow the evaluation of named object types with no intrinsic value. Return 2576AE_TYPE for objects that have no value and therefore evaluation is undefined: 2577Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of 2578these types were allowed, but an exception would be generated at some point 2579during the evaluation. Now, the error is generated up front. 2580 2581Fixed a possible memory leak in the AcpiNsGetExternalPathname function 2582(nsnames.c). Fixes a leak in the error exit path. 2583 2584Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug 2585levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION 2586interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 2587ACPI_LV_EVENTS. 2588 2589Removed obsolete and/or unused exception codes from the acexcep.h header. 2590There is the possibility that certain device drivers may be affected if they 2591use any of these exceptions. 2592 2593The ACPICA documentation has been added to the public git source tree, under 2594acpica/documents. Included are the ACPICA programmer reference, the iASL 2595compiler reference, and the changes.txt release logfile. 2596 2597Example Code and Data Size: These are the sizes for the OS-independent 2598acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2599debug version of the code includes the debug output trace mechanism and has a 2600much larger code and data size. 2601 2602 Previous Release: 2603 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2604 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 2605 Current Release: 2606 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2607 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 2608 26092) iASL Compiler/Disassembler and Tools: 2610 2611Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 2612defines _SCP with 3 arguments. Previous versions defined it with only 1 2613argument. iASL now allows both definitions. 2614 2615iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- 2616length subtables when disassembling ACPI tables. Also fixed a couple of 2617errors where a full 16-bit table type field was not extracted from the input 2618properly. 2619 2620acpisrc: Improve comment counting mechanism for generating source code 2621statistics. Count first and last lines of multi-line comments as whitespace, 2622not comment lines. Handle Linux legal header in addition to standard acpica 2623header. 2624 2625---------------------------------------- 2626 262729 July 2008. Summary of changes for version 20080729: 2628 26291) ACPI CA Core Subsystem: 2630 2631Fix a possible deadlock in the GPE dispatch. Remove call to 2632AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt 2633to acquire the GPE lock but can deadlock since the GPE lock is already held 2634at dispatch time. This code was introduced in version 20060831 as a response 2635to Linux BZ 6881 and has since been removed from Linux. 2636 2637Add a function to dereference returned reference objects. Examines the return 2638object from a call to AcpiEvaluateObject. Any Index or RefOf references are 2639automatically dereferenced in an attempt to return something useful (these 2640reference types cannot be converted into an external ACPI_OBJECT.) Provides 2641MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 2642 2643x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 2644subtables for the MADT and one new subtable for the SRAT. Includes 2645disassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC 2646Specification, June 2008. 2647 2648Additional error checking for pathname utilities. Add error check after all 2649calls to AcpiNsGetPathnameLength. Add status return from 2650AcpiNsBuildExternalPath and check after all calls. Add parameter validation 2651to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 2652 2653Return status from the global init function AcpiUtGlobalInitialize. This is 2654used by both the kernel subsystem and the utilities such as iASL compiler. 2655The function could possibly fail when the caches are initialized. Yang Yi. 2656 2657Add a function to decode reference object types to strings. Created for 2658improved error messages. 2659 2660Improve object conversion error messages. Better error messages during object 2661conversion from internal to the external ACPI_OBJECT. Used for external calls 2662to AcpiEvaluateObject. 2663 2664Example Code and Data Size: These are the sizes for the OS-independent 2665acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2666debug version of the code includes the debug output trace mechanism and has a 2667much larger code and data size. 2668 2669 Previous Release: 2670 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 2671 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 2672 Current Release: 2673 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2674 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 2675 26762) iASL Compiler/Disassembler and Tools: 2677 2678Debugger: fix a possible hang when evaluating non-methods. Fixes a problem 2679introduced in version 20080701. If the object being evaluated (via execute 2680command) is not a method, the debugger can hang while trying to obtain non- 2681existent parameters. 2682 2683iASL: relax error for using reserved "_T_x" identifiers. These names can 2684appear in a disassembled ASL file if they were emitted by the original 2685compiler. Instead of issuing an error or warning and forcing the user to 2686manually change these names, issue a remark instead. 2687 2688iASL: error if named object created in while loop. Emit an error if any named 2689object is created within a While loop. If allowed, this code will generate a 2690run-time error on the second iteration of the loop when an attempt is made to 2691create the same named object twice. ACPICA bugzilla 730. 2692 2693iASL: Support absolute pathnames for include files. Add support for absolute 2694pathnames within the Include operator. previously, only relative pathnames 2695were supported. 2696 2697iASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor. 2698The ACPI spec requires one interrupt minimum. BZ 423 2699 2700iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 2701Handles the case for the Interrupt Resource Descriptor where 2702the ResourceSource argument is omitted but ResourceSourceIndex 2703is present. Now leave room for the Index. BZ 426 2704 2705iASL: Prevent error message if CondRefOf target does not exist. Fixes cases 2706where an error message is emitted if the target does not exist. BZ 516 2707 2708iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 2709(get ACPI tables on Windows). This was apparently broken in version 20070919. 2710 2711AcpiXtract: Handle EOF while extracting data. Correctly handle the case where 2712the EOF happens immediately after the last table in the input file. Print 2713completion message. Previously, no message was displayed in this case. 2714 2715---------------------------------------- 271601 July 2008. Summary of changes for version 20080701: 2717 27180) Git source tree / acpica.org 2719 2720Fixed a problem where a git-clone from http would not transfer the entire 2721source tree. 2722 27231) ACPI CA Core Subsystem: 2724 2725Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 2726enable bit. Now performs a read-change-write of the enable register instead 2727of simply writing out the cached enable mask. This will prevent inadvertent 2728enabling of GPEs if a rogue GPE is received during initialization (before GPE 2729handlers are installed.) 2730 2731Implemented a copy for dynamically loaded tables. Previously, dynamically 2732loaded tables were simply mapped - but on some machines this memory is 2733corrupted after suspend. Now copy the table to a local buffer. For the 2734OpRegion case, added checksum verify. Use the table length from the table 2735header, not the region length. For the Buffer case, use the table length 2736also. Dennis Noordsij, Bob Moore. BZ 10734 2737 2738Fixed a problem where the same ACPI table could not be dynamically loaded and 2739unloaded more than once. Without this change, a table cannot be loaded again 2740once it has been loaded/unloaded one time. The current mechanism does not 2741unregister a table upon an unload. During a load, if the same table is found, 2742this no longer returns an exception. BZ 722 2743 2744Fixed a problem where the wrong descriptor length was calculated for the 2745EndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 2746are calculated as 12 bytes long, but the actual length in the internal 2747descriptor is 16 because of the round-up to 8 on the 64-bit build. Reported 2748by Linn Crosetto. BZ 728 2749 2750Fixed a possible memory leak in the Unload operator. The DdbHandle returned 2751by Load() did not have its reference count decremented during unload, leading 2752to a memory leak. Lin Ming. BZ 727 2753 2754Fixed a possible memory leak when deleting thermal/processor objects. Any 2755associated notify handlers (and objects) were not being deleted. Fiodor 2756Suietov. BZ 506 2757 2758Fixed the ordering of the ASCII names in the global mutex table to match the 2759actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only. 2760Vegard Nossum. BZ 726 2761 2762Enhanced the AcpiGetObjectInfo interface to return the number of required 2763arguments if the object is a control method. Added this call to the debugger 2764so the proper number of default arguments are passed to a method. This 2765prevents a warning when executing methods from AcpiExec. 2766 2767Added a check for an invalid handle in AcpiGetObjectInfo. Return 2768AE_BAD_PARAMETER if input handle is invalid. BZ 474 2769 2770Fixed an extraneous warning from exconfig.c on the 64-bit build. 2771 2772Example Code and Data Size: These are the sizes for the OS-independent 2773acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2774debug version of the code includes the debug output trace mechanism and has a 2775much larger code and data size. 2776 2777 Previous Release: 2778 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 2779 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 2780 Current Release: 2781 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 2782 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 2783 27842) iASL Compiler/Disassembler and Tools: 2785 2786iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 2787resource descriptor names. 2788 2789iASL: Detect invalid ASCII characters in input (windows version). Removed the 2790"-CF" flag from the flex compile, enables correct detection of non-ASCII 2791characters in the input. BZ 441 2792 2793iASL: Eliminate warning when result of LoadTable is not used. Eliminate the 2794"result of operation not used" warning when the DDB handle returned from 2795LoadTable is not used. The warning is not needed. BZ 590 2796 2797AcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to 2798pass address of table to the AML. Added option to disable OpRegion simulation 2799to allow creation of an OpRegion with a real address that was passed to _CFG. 2800All of this allows testing of the Load and Unload operators from AcpiExec. 2801 2802Debugger: update tables command for unloaded tables. Handle unloaded tables 2803and use the standard table header output routine. 2804 2805---------------------------------------- 280609 June 2008. Summary of changes for version 20080609: 2807 28081) ACPI CA Core Subsystem: 2809 2810Implemented a workaround for reversed _PRT entries. A significant number of 2811BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 2812change dynamically detects and repairs this problem. Provides compatibility 2813with MS ACPI. BZ 6859 2814 2815Simplified the internal ACPI hardware interfaces to eliminate the locking 2816flag parameter from Register Read/Write. Added a new external interface, 2817AcpiGetRegisterUnlocked. 2818 2819Fixed a problem where the invocation of a GPE control method could hang. This 2820was a regression introduced in 20080514. The new method argument count 2821validation mechanism can enter an infinite loop when a GPE method is 2822dispatched. Problem fixed by removing the obsolete code that passed GPE block 2823information to the notify handler via the control method parameter pointer. 2824 2825Fixed a problem where the _SST execution status was incorrectly returned to 2826the caller of AcpiEnterSleepStatePrep. This was a regression introduced in 282720080514. _SST is optional and a NOT_FOUND exception should never be 2828returned. BZ 716 2829 2830Fixed a problem where a deleted object could be accessed from within the AML 2831parser. This was a regression introduced in version 20080123 as a fix for the 2832Unload operator. Lin Ming. BZ 10669 2833 2834Cleaned up the debug operand dump mechanism. Eliminated unnecessary operands 2835and eliminated the use of a negative index in a loop. Operands are now 2836displayed in the correct order, not backwards. This also fixes a regression 2837introduced in 20080514 on 64-bit systems where the elimination of 2838ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715 2839 2840Fixed a possible memory leak in EvPciConfigRegionSetup where the error exit 2841path did not delete a locally allocated structure. 2842 2843Updated definitions for the DMAR and SRAT tables to synchronize with the 2844current specifications. Includes disassembler support. 2845 2846Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 2847loop termination value was used. Loop terminated on iteration early, missing 2848one mutex. Linn Crosetto 2849 2850Example Code and Data Size: These are the sizes for the OS-independent 2851acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2852debug version of the code includes the debug output trace mechanism and has a 2853much larger code and data size. 2854 2855 Previous Release: 2856 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 2857 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 2858 Current Release: 2859 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 2860 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 2861 28622) iASL Compiler/Disassembler and Tools: 2863 2864Disassembler: Implemented support for EisaId() within _CID objects. Now 2865disassemble integer _CID objects back to EisaId invocations, including 2866multiple integers within _CID packages. Includes single-step support for 2867debugger also. 2868 2869Disassembler: Added support for DMAR and SRAT table definition changes. 2870 2871---------------------------------------- 287214 May 2008. Summary of changes for version 20080514: 2873 28741) ACPI CA Core Subsystem: 2875 2876Fixed a problem where GPEs were enabled too early during the ACPICA 2877initialization. This could lead to "handler not installed" errors on some 2878machines. Moved GPE enable until after _REG/_STA/_INI methods are run. This 2879ensures that all operation regions and devices throughout the namespace have 2880been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 2881 2882Implemented a change to the enter sleep code. Moved execution of the _GTS 2883method to just before setting sleep enable bit. The execution was moved from 2884AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 2885immediately before the SLP_EN bit is set, as per the ACPI specification. 2886Luming Yu, BZ 1653. 2887 2888Implemented a fix to disable unknown GPEs (2nd version). Now always disable 2889the GPE, even if ACPICA thinks that that it is already disabled. It is 2890possible that the AML or some other code has enabled the GPE unbeknownst to 2891the ACPICA code. 2892 2893Fixed a problem with the Field operator where zero-length fields would return 2894an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL 2895field declarations in Field(), BankField(), and IndexField(). BZ 10606. 2896 2897Implemented a fix for the Load operator, now load the table at the namespace 2898root. This reverts a change introduced in version 20071019. The table is now 2899loaded at the namespace root even though this goes against the ACPI 2900specification. This provides compatibility with other ACPI implementations. 2901The ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming. 2902 2903Fixed a problem where ACPICA would not Load() tables with unusual signatures. 2904Now ignore ACPI table signature for Load() operator. Only "SSDT" is 2905acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 2906Therefore, signature validation is worthless. Apparently MS ACPI accepts such 2907signatures, ACPICA must be compatible. BZ 10454. 2908 2909Fixed a possible negative array index in AcpiUtValidateException. Added NULL 2910fields to the exception string arrays to eliminate a -1 subtraction on the 2911SubStatus field. 2912 2913Updated the debug tracking macros to reduce overall code and data size. 2914Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 2915instead of pointers to static strings. Jan Beulich and Bob Moore. 2916 2917Implemented argument count checking in control method invocation via 2918AcpiEvaluateObject. Now emit an error if too few arguments, warning if too 2919many. This applies only to extern programmatic control method execution, not 2920method-to-method calls within the AML. Lin Ming. 2921 2922Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no 2923longer needed, especially with the removal of 16-bit support. It was replaced 2924mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on 292532/64-bit platforms is required. 2926 2927Added the C const qualifier for appropriate string constants -- mostly 2928MODULE_NAME and printf format strings. Jan Beulich. 2929 2930Example Code and Data Size: These are the sizes for the OS-independent 2931acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2932debug version of the code includes the debug output trace mechanism and has a 2933much larger code and data size. 2934 2935 Previous Release: 2936 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 2937 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 2938 Current Release: 2939 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 2940 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 2941 29422) iASL Compiler/Disassembler and Tools: 2943 2944Implemented ACPI table revision ID validation in the disassembler. Zero is 2945always invalid. For DSDTs, the ID controls the interpreter integer width. 1 2946means 32-bit and this is unusual. 2 or greater is 64-bit. 2947 2948---------------------------------------- 294921 March 2008. Summary of changes for version 20080321: 2950 29511) ACPI CA Core Subsystem: 2952 2953Implemented an additional change to the GPE support in order to suppress 2954spurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 2955disable incoming GPEs that are neither enabled nor disabled -- meaning that 2956the GPE is unknown to the system. This should prevent future interrupt floods 2957from that GPE. BZ 6217 (Zhang Rui) 2958 2959Fixed a problem where NULL package elements were not returned to the 2960AcpiEvaluateObject interface correctly. The element was simply ignored 2961instead of returning a NULL ACPI_OBJECT package element, potentially causing 2962a buffer overflow and/or confusing the caller who expected a fixed number of 2963elements. BZ 10132 (Lin Ming, Bob Moore) 2964 2965Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword, 2966Qword), Field, BankField, and IndexField operators when invoked from inside 2967an executing control method. In this case, these operators created namespace 2968nodes that were incorrectly left marked as permanent nodes instead of 2969temporary nodes. This could cause a problem if there is race condition 2970between an exiting control method and a running namespace walk. (Reported by 2971Linn Crosetto) 2972 2973Fixed a problem where the CreateField and CreateXXXField operators would 2974incorrectly allow duplicate names (the name of the field) with no exception 2975generated. 2976 2977Implemented several changes for Notify handling. Added support for new Notify 2978values (ACPI 2.0+) and improved the Notify debug output. Notify on 2979PowerResource objects is no longer allowed, as per the ACPI specification. 2980(Bob Moore, Zhang Rui) 2981 2982All Reference Objects returned via the AcpiEvaluateObject interface are now 2983marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for 2984NULL objects - either NULL package elements or unresolved named references. 2985 2986Fixed a problem where an extraneous debug message was produced for package 2987objects (when debugging enabled). The message "Package List length larger 2988than NumElements count" is now produced in the correct case, and is now an 2989error message rather than a debug message. Added a debug message for the 2990opposite case, where NumElements is larger than the Package List (the package 2991will be padded out with NULL elements as per the ACPI spec.) 2992 2993Implemented several improvements for the output of the ASL "Debug" object to 2994clarify and keep all data for a given object on one output line. 2995 2996Fixed two size calculation issues with the variable-length Start Dependent 2997resource descriptor. 2998 2999Example Code and Data Size: These are the sizes for the OS-independent 3000acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3001debug version of the code includes the debug output trace mechanism and has 3002a much larger code and data size. 3003 3004 Previous Release: 3005 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 3006 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 3007 Current Release: 3008 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 3009 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 3010 30112) iASL Compiler/Disassembler and Tools: 3012 3013Fixed a problem with the use of the Switch operator where execution of the 3014containing method by multiple concurrent threads could cause an 3015AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 3016actual Switch opcode, it must be simulated with local named temporary 3017variables and if/else pairs. The solution chosen was to mark any method that 3018uses Switch as Serialized, thus preventing multiple thread entries. BZ 469. 3019 3020---------------------------------------- 302113 February 2008. Summary of changes for version 20080213: 3022 30231) ACPI CA Core Subsystem: 3024 3025Implemented another MS compatibility design change for GPE/Notify handling. 3026GPEs are now cleared/enabled asynchronously to allow all pending notifies to 3027complete first. It is expected that the OSL will queue the enable request 3028behind all pending notify requests (may require changes to the local host OSL 3029in AcpiOsExecute). Alexey Starikovskiy. 3030 3031Fixed a problem where buffer and package objects passed as arguments to a 3032control method via the external AcpiEvaluateObject interface could cause an 3033AE_AML_INTERNAL exception depending on the order and type of operators 3034executed by the target control method. 3035 3036Fixed a problem where resource descriptor size optimization could cause a 3037problem when a _CRS resource template is passed to a _SRS method. The _SRS 3038resource template must use the same descriptors (with the same size) as 3039returned from _CRS. This change affects the following resource descriptors: 3040IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487) 3041 3042Fixed a problem where a CopyObject to RegionField, BankField, and IndexField 3043objects did not perform an implicit conversion as it should. These types must 3044retain their initial type permanently as per the ACPI specification. However, 3045a CopyObject to all other object types should not perform an implicit 3046conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 3047 3048Fixed a problem with the AcpiGetDevices interface where the mechanism to 3049match device CIDs did not examine the entire list of available CIDs, but 3050instead aborted on the first non-matching CID. Andrew Patterson. 3051 3052Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was 3053inadvertently changed to return a 16-bit value instead of a 32-bit value, 3054truncating the upper dword of a 64-bit value. This macro is only used to 3055display debug output, so no incorrect calculations were made. Also, 3056reimplemented the macro so that a 64-bit shift is not performed by 3057inefficient compilers. 3058 3059Added missing va_end statements that should correspond with each va_start 3060statement. 3061 3062Example Code and Data Size: These are the sizes for the OS-independent 3063acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3064debug version of the code includes the debug output trace mechanism and has 3065a much larger code and data size. 3066 3067 Previous Release: 3068 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 3069 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 3070 Current Release: 3071 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 3072 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 3073 30742) iASL Compiler/Disassembler and Tools: 3075 3076Implemented full disassembler support for the following new ACPI tables: 3077BERT, EINJ, and ERST. Implemented partial disassembler support for the 3078complicated HEST table. These tables support the Windows Hardware Error 3079Architecture (WHEA). 3080 3081---------------------------------------- 308223 January 2008. Summary of changes for version 20080123: 3083 30841) ACPI CA Core Subsystem: 3085 3086Added the 2008 copyright to all module headers and signons. This affects 3087virtually every file in the ACPICA core subsystem, the iASL compiler, and 3088the tools/utilities. 3089 3090Fixed a problem with the SizeOf operator when used with Package and Buffer 3091objects. These objects have deferred execution for some arguments, and the 3092execution is now completed before the SizeOf is executed. This problem caused 3093unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ 30949558 3095 3096Implemented an enhancement to the interpreter "slack mode". In the absence of 3097an explicit return or an implicitly returned object from the last executed 3098opcode, a control method will now implicitly return an integer of value 0 for 3099Microsoft compatibility. (Lin Ming) BZ 392 3100 3101Fixed a problem with the Load operator where an exception was not returned in 3102the case where the table is already loaded. (Lin Ming) BZ 463 3103 3104Implemented support for the use of DDBHandles as an Indexed Reference, as per 3105the ACPI spec. (Lin Ming) BZ 486 3106 3107Implemented support for UserTerm (Method invocation) for the Unload operator 3108as per the ACPI spec. (Lin Ming) BZ 580 3109 3110Fixed a problem with the LoadTable operator where the OemId and OemTableId 3111input strings could cause unexpected failures if they were shorter than the 3112maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 3113 3114Implemented support for UserTerm (Method invocation) for the Unload operator 3115as per the ACPI spec. (Lin Ming) BZ 580 3116 3117Implemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST, 3118IBFT, UEFI, WDAT. Disassembler support is forthcoming. 3119 3120Example Code and Data Size: These are the sizes for the OS-independent 3121acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3122debug version of the code includes the debug output trace mechanism and has 3123a much larger code and data size. 3124 3125 Previous Release: 3126 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 3127 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 3128 Current Release: 3129 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 3130 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 3131 31322) iASL Compiler/Disassembler and Tools: 3133 3134Implemented support in the disassembler for checksum validation on incoming 3135binary DSDTs and SSDTs. If incorrect, a message is displayed within the table 3136header dump at the start of the disassembly. 3137 3138Implemented additional debugging information in the namespace listing file 3139created during compilation. In addition to the namespace hierarchy, the full 3140pathname to each namespace object is displayed. 3141 3142Fixed a problem with the disassembler where invalid ACPI tables could cause 3143faults or infinite loops. 3144 3145Fixed an unexpected parse error when using the optional "parameter types" 3146list in a control method declaration. (Lin Ming) BZ 397 3147 3148Fixed a problem where two External declarations with the same name did not 3149cause an error (Lin Ming) BZ 509 3150 3151Implemented support for full TermArgs (adding Argx, Localx and method 3152invocation) for the ParameterData parameter to the LoadTable operator. (Lin 3153Ming) BZ 583,587 3154 3155---------------------------------------- 315619 December 2007. Summary of changes for version 20071219: 3157 31581) ACPI CA Core Subsystem: 3159 3160Implemented full support for deferred execution for the TermArg string 3161arguments for DataTableRegion. This enables forward references and full 3162operand resolution for the three string arguments. Similar to OperationRegion 3163deferred argument execution.) Lin Ming. BZ 430 3164 3165Implemented full argument resolution support for the BankValue argument to 3166BankField. Previously, only constants were supported, now any TermArg may be 3167used. Lin Ming BZ 387, 393 3168 3169Fixed a problem with AcpiGetDevices where the search of a branch of the 3170device tree could be terminated prematurely. In accordance with the ACPI 3171specification, the search down the current branch is terminated if a device 3172is both not present and not functional (instead of just not present.) Yakui 3173Zhao. 3174 3175Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly if 3176the underlying AML code changed the GPE enable registers. Now, any unknown 3177incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled 3178instead of simply ignored. Rui Zhang. 3179 3180Fixed a problem with Index Fields where the Index register was incorrectly 3181limited to a maximum of 32 bits. Now any size may be used. 3182 3183Fixed a couple memory leaks associated with "implicit return" objects when 3184the AML Interpreter slack mode is enabled. Lin Ming BZ 349 3185 3186Example Code and Data Size: These are the sizes for the OS-independent 3187acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3188debug version of the code includes the debug output trace mechanism and has 3189a much larger code and data size. 3190 3191 Previous Release: 3192 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 3193 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 3194 Current Release: 3195 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 3196 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 3197 3198---------------------------------------- 319914 November 2007. Summary of changes for version 20071114: 3200 32011) ACPI CA Core Subsystem: 3202 3203Implemented event counters for each of the Fixed Events, the ACPI SCI 3204(interrupt) itself, and control methods executed. Named 3205AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These 3206should be useful for debugging and statistics. 3207 3208Implemented a new external interface, AcpiGetStatistics, to retrieve the 3209contents of the various event counters. Returns the current values for 3210AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 3211AcpiMethodCount. The interface can be expanded in the future if new counters 3212are added. Device drivers should use this interface rather than access the 3213counters directly. 3214 3215Fixed a problem with the FromBCD and ToBCD operators. With some compilers, 3216the ShortDivide function worked incorrectly, causing problems with the BCD 3217functions with large input values. A truncation from 64-bit to 32-bit 3218inadvertently occurred. Internal BZ 435. Lin Ming 3219 3220Fixed a problem with Index references passed as method arguments. References 3221passed as arguments to control methods were dereferenced immediately (before 3222control was passed to the called method). The references are now correctly 3223passed directly to the called method. BZ 5389. Lin Ming 3224 3225Fixed a problem with CopyObject used in conjunction with the Index operator. 3226The reference was incorrectly dereferenced before the copy. The reference is 3227now correctly copied. BZ 5391. Lin Ming 3228 3229Fixed a problem with Control Method references within Package objects. These 3230references are now correctly generated. This completes the package 3231construction overhaul that began in version 20071019. 3232 3233Example Code and Data Size: These are the sizes for the OS-independent 3234acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3235debug version of the code includes the debug output trace mechanism and has 3236a much larger code and data size. 3237 3238 Previous Release: 3239 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 3240 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 3241 Current Release: 3242 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 3243 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 3244 3245 32462) iASL Compiler/Disassembler and Tools: 3247 3248The AcpiExec utility now installs handlers for all of the predefined 3249Operation Region types. New types supported are: PCI_Config, CMOS, and 3250PCIBARTarget. 3251 3252Fixed a problem with the 64-bit version of AcpiExec where the extended (64- 3253bit) address fields for the DSDT and FACS within the FADT were not being 3254used, causing truncation of the upper 32-bits of these addresses. Lin Ming 3255and Bob Moore 3256 3257---------------------------------------- 325819 October 2007. Summary of changes for version 20071019: 3259 32601) ACPI CA Core Subsystem: 3261 3262Fixed a problem with the Alias operator when the target of the alias is a 3263named ASL operator that opens a new scope -- Scope, Device, PowerResource, 3264Processor, and ThermalZone. In these cases, any children of the original 3265operator could not be accessed via the alias, potentially causing unexpected 3266AE_NOT_FOUND exceptions. (BZ 9067) 3267 3268Fixed a problem with the Package operator where all named references were 3269created as object references and left otherwise unresolved. According to the 3270ACPI specification, a Package can only contain Data Objects or references to 3271control methods. The implication is that named references to Data Objects 3272(Integer, Buffer, String, Package, BufferField, Field) should be resolved 3273immediately upon package creation. This is the approach taken with this 3274change. References to all other named objects (Methods, Devices, Scopes, 3275etc.) are all now properly created as reference objects. (BZ 5328) 3276 3277Reverted a change to Notify handling that was introduced in version 327820070508. This version changed the Notify handling from asynchronous to 3279fully synchronous (Device driver Notify handling with respect to the Notify 3280ASL operator). It was found that this change caused more problems than it 3281solved and was removed by most users. 3282 3283Fixed a problem with the Increment and Decrement operators where the type of 3284the target object could be unexpectedly and incorrectly changed. (BZ 353) 3285Lin Ming. 3286 3287Fixed a problem with the Load and LoadTable operators where the table 3288location within the namespace was ignored. Instead, the table was always 3289loaded into the root or current scope. Lin Ming. 3290 3291Fixed a problem with the Load operator when loading a table from a buffer 3292object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 3293 3294Fixed a problem with the Debug object where a store of a DdbHandle reference 3295object to the Debug object could cause a fault. 3296 3297Added a table checksum verification for the Load operator, in the case where 3298the load is from a buffer. (BZ 578). 3299 3300Implemented additional parameter validation for the LoadTable operator. The 3301length of the input strings SignatureString, OemIdString, and OemTableId are 3302now checked for maximum lengths. (BZ 582) Lin Ming. 3303 3304Example Code and Data Size: These are the sizes for the OS-independent 3305acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3306debug version of the code includes the debug output trace mechanism and has 3307a much larger code and data size. 3308 3309 Previous Release: 3310 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 3311 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 3312 Current Release: 3313 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 3314 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 3315 3316 33172) iASL Compiler/Disassembler: 3318 3319Fixed a problem where if a single file was specified and the file did not 3320exist, no error message was emitted. (Introduced with wildcard support in 3321version 20070917.) 3322 3323---------------------------------------- 332419 September 2007. Summary of changes for version 20070919: 3325 33261) ACPI CA Core Subsystem: 3327 3328Designed and implemented new external interfaces to install and remove 3329handlers for ACPI table-related events. Current events that are defined are 3330LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 3331they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 3332AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 3333 3334Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 3335(acpi_serialized option on Linux) could cause some systems to hang during 3336initialization. (Bob Moore) BZ 8171 3337 3338Fixed a problem where objects of certain types (Device, ThermalZone, 3339Processor, PowerResource) can be not found if they are declared and 3340referenced from within the same control method (Lin Ming) BZ 341 3341 3342Example Code and Data Size: These are the sizes for the OS-independent 3343acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3344debug version of the code includes the debug output trace mechanism and has 3345a much larger code and data size. 3346 3347 Previous Release: 3348 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 3349 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 3350 Current Release: 3351 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 3352 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 3353 3354 33552) iASL Compiler/Disassembler: 3356 3357Implemented support to allow multiple files to be compiled/disassembled in a 3358single invocation. This includes command line wildcard support for both the 3359Windows and Unix versions of the compiler. This feature simplifies the 3360disassembly and compilation of multiple ACPI tables in a single directory. 3361 3362---------------------------------------- 336308 May 2007. Summary of changes for version 20070508: 3364 33651) ACPI CA Core Subsystem: 3366 3367Implemented a Microsoft compatibility design change for the handling of the 3368Notify AML operator. Previously, notify handlers were dispatched and 3369executed completely asynchronously in a deferred thread. The new design 3370still executes the notify handlers in a different thread, but the original 3371thread that executed the Notify() now waits at a synchronization point for 3372the notify handler to complete. Some machines depend on a synchronous Notify 3373operator in order to operate correctly. 3374 3375Implemented support to allow Package objects to be passed as method 3376arguments to the external AcpiEvaluateObject interface. Previously, this 3377would return the AE_NOT_IMPLEMENTED exception. This feature had not been 3378implemented since there were no reserved control methods that required it 3379until recently. 3380 3381Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that 3382contained invalid non-zero values in reserved fields could cause later 3383failures because these fields have meaning in later revisions of the FADT. 3384For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields 3385are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 3386 3387Fixed a problem where the Global Lock handle was not properly updated if a 3388thread that acquired the Global Lock via executing AML code then attempted 3389to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe 3390Liu. 3391 3392Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 3393could be corrupted if the interrupt being removed was at the head of the 3394list. Reported by Linn Crosetto. 3395 3396Example Code and Data Size: These are the sizes for the OS-independent 3397acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3398debug version of the code includes the debug output trace mechanism and has 3399a much larger code and data size. 3400 3401 Previous Release: 3402 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3403 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 3404 Current Release: 3405 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 3406 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 3407 3408---------------------------------------- 340920 March 2007. Summary of changes for version 20070320: 3410 34111) ACPI CA Core Subsystem: 3412 3413Implemented a change to the order of interpretation and evaluation of AML 3414operand objects within the AML interpreter. The interpreter now evaluates 3415operands in the order that they appear in the AML stream (and the 3416corresponding ASL code), instead of in the reverse order (after the entire 3417operand list has been parsed). The previous behavior caused several subtle 3418incompatibilities with the Microsoft AML interpreter as well as being 3419somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 3420 3421Implemented a change to the ACPI Global Lock support. All interfaces to the 3422global lock now allow the same thread to acquire the lock multiple times. 3423This affects the AcpiAcquireGlobalLock external interface to the global lock 3424as well as the internal use of the global lock to support AML fields -- a 3425control method that is holding the global lock can now simultaneously access 3426AML fields that require global lock protection. Previously, in both cases, 3427this would have resulted in an AE_ALREADY_ACQUIRED exception. The change to 3428AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 3429Controller. There is no change to the behavior of the AML Acquire operator, 3430as this can already be used to acquire a mutex multiple times by the same 3431thread. BZ 8066. With assistance from Alexey Starikovskiy. 3432 3433Fixed a problem where invalid objects could be referenced in the AML 3434Interpreter after error conditions. During operand evaluation, ensure that 3435the internal "Return Object" field is cleared on error and only valid 3436pointers are stored there. Caused occasional access to deleted objects that 3437resulted in "large reference count" warning messages. Valery Podrezov. 3438 3439Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur on 3440deeply nested control method invocations. BZ 7873, local BZ 487. Valery 3441Podrezov. 3442 3443Fixed an internal problem with the handling of result objects on the 3444interpreter result stack. BZ 7872. Valery Podrezov. 3445 3446Removed obsolete code that handled the case where AML_NAME_OP is the target 3447of a reference (Reference.Opcode). This code was no longer necessary. BZ 34487874. Valery Podrezov. 3449 3450Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a 3451remnant from the previously discontinued 16-bit support. 3452 3453Example Code and Data Size: These are the sizes for the OS-independent 3454acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3455debug version of the code includes the debug output trace mechanism and has 3456a much larger code and data size. 3457 3458 Previous Release: 3459 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3460 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3461 Current Release: 3462 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3463 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 3464 3465---------------------------------------- 346626 January 2007. Summary of changes for version 20070126: 3467 34681) ACPI CA Core Subsystem: 3469 3470Added the 2007 copyright to all module headers and signons. This affects 3471virtually every file in the ACPICA core subsystem, the iASL compiler, and 3472the utilities. 3473 3474Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 3475during a table load. A bad pointer was passed in the case where the DSDT is 3476overridden, causing a fault in this case. 3477 3478Example Code and Data Size: These are the sizes for the OS-independent 3479acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3480debug version of the code includes the debug output trace mechanism and has 3481a much larger code and data size. 3482 3483 Previous Release: 3484 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3485 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3486 Current Release: 3487 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3488 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3489 3490---------------------------------------- 349115 December 2006. Summary of changes for version 20061215: 3492 34931) ACPI CA Core Subsystem: 3494 3495Support for 16-bit ACPICA has been completely removed since it is no longer 3496necessary and it clutters the code. All 16-bit macros, types, and 3497conditional compiles have been removed, cleaning up and simplifying the code 3498across the entire subsystem. DOS support is no longer needed since the 3499bootable Linux firmware kit is now available. 3500 3501The handler for the Global Lock is now removed during AcpiTerminate to 3502enable a clean subsystem restart, via the implementation of the 3503AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 3504HP) 3505 3506Implemented enhancements to the multithreading support within the debugger 3507to enable improved multithreading debugging and evaluation of the subsystem. 3508(Valery Podrezov) 3509 3510Debugger: Enhanced the Statistics/Memory command to emit the total (maximum) 3511memory used during the execution, as well as the maximum memory consumed by 3512each of the various object types. (Valery Podrezov) 3513 3514Example Code and Data Size: These are the sizes for the OS-independent 3515acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3516debug version of the code includes the debug output trace mechanism and has 3517a much larger code and data size. 3518 3519 Previous Release: 3520 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 3521 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 3522 Current Release: 3523 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3524 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3525 3526 35272) iASL Compiler/Disassembler and Tools: 3528 3529AcpiExec: Implemented a new option (-m) to display full memory use 3530statistics upon subsystem/program termination. (Valery Podrezov) 3531 3532---------------------------------------- 353309 November 2006. Summary of changes for version 20061109: 3534 35351) ACPI CA Core Subsystem: 3536 3537Optimized the Load ASL operator in the case where the source operand is an 3538operation region. Simply map the operation region memory, instead of 3539performing a bytewise read. (Region must be of type SystemMemory, see 3540below.) 3541 3542Fixed the Load ASL operator for the case where the source operand is a 3543region field. A buffer object is also allowed as the source operand. BZ 480 3544 3545Fixed a problem where the Load ASL operator allowed the source operand to be 3546an operation region of any type. It is now restricted to regions of type 3547SystemMemory, as per the ACPI specification. BZ 481 3548 3549Additional cleanup and optimizations for the new Table Manager code. 3550 3551AcpiEnable will now fail if all of the required ACPI tables are not loaded 3552(FADT, FACS, DSDT). BZ 477 3553 3554Added #pragma pack(8/4) to acobject.h to ensure that the structures in this 3555header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 3556manually optimized to be aligned and will not work if it is byte-packed. 3557 3558Example Code and Data Size: These are the sizes for the OS-independent 3559acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3560debug version of the code includes the debug output trace mechanism and has 3561a much larger code and data size. 3562 3563 Previous Release: 3564 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 3565 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 3566 Current Release: 3567 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 3568 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 3569 3570 35712) iASL Compiler/Disassembler and Tools: 3572 3573Fixed a problem where the presence of the _OSI predefined control method 3574within complex expressions could cause an internal compiler error. 3575 3576AcpiExec: Implemented full region support for multiple address spaces. 3577SpaceId is now part of the REGION object. BZ 429 3578 3579---------------------------------------- 358011 October 2006. Summary of changes for version 20061011: 3581 35821) ACPI CA Core Subsystem: 3583 3584Completed an AML interpreter performance enhancement for control method 3585execution. Previously a 2-pass parse/execution, control methods are now 3586completely parsed and executed in a single pass. This improves overall 3587interpreter performance by ~25%, reduces code size, and reduces CPU stack 3588use. (Valery Podrezov + interpreter changes in version 20051202 that 3589eliminated namespace loading during the pass one parse.) 3590 3591Implemented _CID support for PCI Root Bridge detection. If the _HID does not 3592match the predefined PCI Root Bridge IDs, the _CID list (if present) is now 3593obtained and also checked for an ID match. 3594 3595Implemented additional support for the PCI _ADR execution: upsearch until a 3596device scope is found before executing _ADR. This allows PCI_Config 3597operation regions to be declared locally within control methods underneath 3598PCI device objects. 3599 3600Fixed a problem with a possible race condition between threads executing 3601AcpiWalkNamespace and the AML interpreter. This condition was removed by 3602modifying AcpiWalkNamespace to (by default) ignore all temporary namespace 3603entries created during any concurrent control method execution. An 3604additional namespace race condition is known to exist between 3605AcpiWalkNamespace and the Load/Unload ASL operators and is still under 3606investigation. 3607 3608Restructured the AML ParseLoop function, breaking it into several 3609subfunctions in order to reduce CPU stack use and improve maintainability. 3610(Mikhail Kouzmich) 3611 3612AcpiGetHandle: Fix for parameter validation to detect invalid combinations 3613of prefix handle and pathname. BZ 478 3614 3615Example Code and Data Size: These are the sizes for the OS-independent 3616acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3617debug version of the code includes the debug output trace mechanism and has 3618a much larger code and data size. 3619 3620 Previous Release: 3621 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3622 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 3623 Current Release: 3624 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 3625 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 3626 36272) iASL Compiler/Disassembler and Tools: 3628 3629Ported the -g option (get local ACPI tables) to the new ACPICA Table Manager 3630to restore original behavior. 3631 3632---------------------------------------- 363327 September 2006. Summary of changes for version 20060927: 3634 36351) ACPI CA Core Subsystem: 3636 3637Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 3638These functions now use a spinlock for mutual exclusion and the interrupt 3639level indication flag is not needed. 3640 3641Fixed a problem with the Global Lock where the lock could appear to be 3642obtained before it is actually obtained. The global lock semaphore was 3643inadvertently created with one unit instead of zero units. (BZ 464) Fiodor 3644Suietov. 3645 3646Fixed a possible memory leak and fault in AcpiExResolveObjectToValue during 3647a read from a buffer or region field. (BZ 458) Fiodor Suietov. 3648 3649Example Code and Data Size: These are the sizes for the OS-independent 3650acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3651debug version of the code includes the debug output trace mechanism and has 3652a much larger code and data size. 3653 3654 Previous Release: 3655 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3656 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 3657 Current Release: 3658 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3659 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 3660 3661 36622) iASL Compiler/Disassembler and Tools: 3663 3664Fixed a compilation problem with the pre-defined Resource Descriptor field 3665names where an "object does not exist" error could be incorrectly generated 3666if the parent ResourceTemplate pathname places the template within a 3667different namespace scope than the current scope. (BZ 7212) 3668 3669Fixed a problem where the compiler could hang after syntax errors detected 3670in an ElseIf construct. (BZ 453) 3671 3672Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 3673operator. An incorrect output filename was produced when this parameter was 3674a null string (""). Now, the original input filename is used as the AML 3675output filename, with an ".aml" extension. 3676 3677Implemented a generic batch command mode for the AcpiExec utility (execute 3678any AML debugger command) (Valery Podrezov). 3679 3680---------------------------------------- 368112 September 2006. Summary of changes for version 20060912: 3682 36831) ACPI CA Core Subsystem: 3684 3685Enhanced the implementation of the "serialized mode" of the interpreter 3686(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 3687specified, instead of creating a serialization semaphore per control method, 3688the interpreter lock is simply no longer released before a blocking 3689operation during control method execution. This effectively makes the AML 3690Interpreter single-threaded. The overhead of a semaphore per-method is 3691eliminated. 3692 3693Fixed a regression where an error was no longer emitted if a control method 3694attempts to create 2 objects of the same name. This once again returns 3695AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that 3696will dynamically serialize the control method to possible prevent future 3697errors. (BZ 440) 3698 3699Integrated a fix for a problem with PCI Express HID detection in the PCI 3700Config Space setup procedure. (BZ 7145) 3701 3702Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 3703AcpiHwInitialize function - the FADT registers are now validated when the 3704table is loaded. 3705 3706Added two new warnings during FADT verification - 1) if the FADT is larger 3707than the largest known FADT version, and 2) if there is a mismatch between a 370832-bit block address and the 64-bit X counterpart (when both are non-zero.) 3709 3710Example Code and Data Size: These are the sizes for the OS-independent 3711acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3712debug version of the code includes the debug output trace mechanism and has 3713a much larger code and data size. 3714 3715 Previous Release: 3716 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 3717 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 3718 Current Release: 3719 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3720 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 3721 3722 37232) iASL Compiler/Disassembler and Tools: 3724 3725Fixed a problem with the implementation of the Switch() operator where the 3726temporary variable was declared too close to the actual Switch, instead of 3727at method level. This could cause a problem if the Switch() operator is 3728within a while loop, causing an error on the second iteration. (BZ 460) 3729 3730Disassembler - fix for error emitted for unknown type for target of scope 3731operator. Now, ignore it and continue. 3732 3733Disassembly of an FADT now verifies the input FADT and reports any errors 3734found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 3735 3736Disassembly of raw data buffers with byte initialization data now prefixes 3737each output line with the current buffer offset. 3738 3739Disassembly of ASF! table now includes all variable-length data fields at 3740the end of some of the subtables. 3741 3742The disassembler now emits a comment if a buffer appears to be a 3743ResourceTemplate, but cannot be disassembled as such because the EndTag does 3744not appear at the very end of the buffer. 3745 3746AcpiExec - Added the "-t" command line option to enable the serialized mode 3747of the AML interpreter. 3748 3749---------------------------------------- 375031 August 2006. Summary of changes for version 20060831: 3751 37521) ACPI CA Core Subsystem: 3753 3754Miscellaneous fixes for the Table Manager: 3755- Correctly initialize internal common FADT for all 64-bit "X" fields 3756- Fixed a couple table mapping issues during table load 3757- Fixed a couple alignment issues for IA64 3758- Initialize input array to zero in AcpiInitializeTables 3759- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 3760AcpiGetTableByIndex 3761 3762Change for GPE support: when a "wake" GPE is received, all wake GPEs are now 3763immediately disabled to prevent the waking GPE from firing again and to 3764prevent other wake GPEs from interrupting the wake process. 3765 3766Added the AcpiGpeCount global that tracks the number of processed GPEs, to 3767be used for debugging systems with a large number of ACPI interrupts. 3768 3769Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 3770both the ACPICA headers and the disassembler. 3771 3772Example Code and Data Size: These are the sizes for the OS-independent 3773acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3774debug version of the code includes the debug output trace mechanism and has 3775a much larger code and data size. 3776 3777 Previous Release: 3778 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 3779 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 3780 Current Release: 3781 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 3782 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 3783 3784 37852) iASL Compiler/Disassembler and Tools: 3786 3787Disassembler support for the DMAR ACPI table. 3788 3789---------------------------------------- 379023 August 2006. Summary of changes for version 20060823: 3791 37921) ACPI CA Core Subsystem: 3793 3794The Table Manager component has been completely redesigned and 3795reimplemented. The new design is much simpler, and reduces the overall code 3796and data size of the kernel-resident ACPICA by approximately 5%. Also, it is 3797now possible to obtain the ACPI tables very early during kernel 3798initialization, even before dynamic memory management is initialized. 3799(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 3800 3801Obsolete ACPICA interfaces: 3802 3803- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init 3804time). 3805- AcpiLoadTable: Not needed. 3806- AcpiUnloadTable: Not needed. 3807 3808New ACPICA interfaces: 3809 3810- AcpiInitializeTables: Must be called before the table manager can be used. 3811- AcpiReallocateRootTable: Used to transfer the root table to dynamically 3812allocated memory after it becomes available. 3813- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 3814in the RSDT/XSDT. 3815 3816Other ACPICA changes: 3817 3818- AcpiGetTableHeader returns the actual mapped table header, not a copy. Use 3819AcpiOsUnmapMemory to free this mapping. 3820- AcpiGetTable returns the actual mapped table. The mapping is managed 3821internally and must not be deleted by the caller. Use of this interface 3822causes no additional dynamic memory allocation. 3823- AcpiFindRootPointer: Support for physical addressing has been eliminated, 3824it appeared to be unused. 3825- The interface to AcpiOsMapMemory has changed to be consistent with the 3826other allocation interfaces. 3827- The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary 3828parameters. 3829- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- 3830bit platforms. Was previously 64 bits on all platforms. 3831- The interface to the ACPI Global Lock acquire/release macros have changed 3832slightly since ACPICA no longer keeps a local copy of the FACS with a 3833constructed pointer to the actual global lock. 3834 3835Porting to the new table manager: 3836 3837- AcpiInitializeTables: Must be called once, and can be called anytime 3838during the OS initialization process. It allows the host to specify an area 3839of memory to be used to store the internal version of the RSDT/XSDT (root 3840table). This allows the host to access ACPI tables before memory management 3841is initialized and running. 3842- AcpiReallocateRootTable: Can be called after memory management is running 3843to copy the root table to a dynamically allocated array, freeing up the 3844scratch memory specified in the call to AcpiInitializeTables. 3845- AcpiSubsystemInitialize: This existing interface is independent of the 3846Table Manager, and does not have to be called before the Table Manager can 3847be used, it only must be called before the rest of ACPICA can be used. 3848- ACPI Tables: Some changes have been made to the names and structure of the 3849actbl.h and actbl1.h header files and may require changes to existing code. 3850For example, bitfields have been completely removed because of their lack of 3851portability across C compilers. 3852- Update interfaces to the Global Lock acquire/release macros if local 3853versions are used. (see acwin.h) 3854 3855Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 3856 3857New files: tbfind.c 3858 3859Example Code and Data Size: These are the sizes for the OS-independent 3860acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3861debug version of the code includes the debug output trace mechanism and has 3862a much larger code and data size. 3863 3864 Previous Release: 3865 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 3866 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 3867 Current Release: 3868 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 3869 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 3870 3871 38722) iASL Compiler/Disassembler and Tools: 3873 3874No changes for this release. 3875 3876---------------------------------------- 387721 July 2006. Summary of changes for version 20060721: 3878 38791) ACPI CA Core Subsystem: 3880 3881The full source code for the ASL test suite used to validate the iASL 3882compiler and the ACPICA core subsystem is being released with the ACPICA 3883source for the first time. The source is contained in a separate package and 3884consists of over 1100 files that exercise all ASL/AML operators. The package 3885should appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 3886Suietov) 3887 3888Completed a new design and implementation for support of the ACPI Global 3889Lock. On the OS side, the global lock is now treated as a standard AML 3890mutex. Previously, multiple OS threads could "acquire" the global lock 3891simultaneously. However, this could cause the BIOS to be starved out of the 3892lock - especially in cases such as the Embedded Controller driver where 3893there is a tight coupling between the OS and the BIOS. 3894 3895Implemented an optimization for the ACPI Global Lock interrupt mechanism. 3896The Global Lock interrupt handler no longer queues the execution of a 3897separate thread to signal the global lock semaphore. Instead, the semaphore 3898is signaled directly from the interrupt handler. 3899 3900Implemented support within the AML interpreter for package objects that 3901contain a larger AML length (package list length) than the package element 3902count. In this case, the length of the package is truncated to match the 3903package element count. Some BIOS code apparently modifies the package length 3904on the fly, and this change supports this behavior. Provides compatibility 3905with the MS AML interpreter. (With assistance from Fiodor Suietov) 3906 3907Implemented a temporary fix for the BankValue parameter of a Bank Field to 3908support all constant values, now including the Zero and One opcodes. 3909Evaluation of this parameter must eventually be converted to a full TermArg 3910evaluation. A not-implemented error is now returned (temporarily) for non- 3911constant values for this parameter. 3912 3913Fixed problem reports (Fiodor Suietov) integrated: 3914- Fix for premature object deletion after CopyObject on Operation Region (BZ 3915350) 3916 3917Example Code and Data Size: These are the sizes for the OS-independent 3918acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3919debug version of the code includes the debug output trace mechanism and has 3920a much larger code and data size. 3921 3922 Previous Release: 3923 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 3924 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 3925 Current Release: 3926 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 3927 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 3928 3929 39302) iASL Compiler/Disassembler and Tools: 3931 3932No changes for this release. 3933 3934---------------------------------------- 393507 July 2006. Summary of changes for version 20060707: 3936 39371) ACPI CA Core Subsystem: 3938 3939Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 3940that do not allow the initialization of address pointers within packed 3941structures - even though the hardware itself may support misaligned 3942transfers. Some of the debug data structures are packed by default to 3943minimize size. 3944 3945Added an error message for the case where AcpiOsGetThreadId() returns zero. 3946A non-zero value is required by the core ACPICA code to ensure the proper 3947operation of AML mutexes and recursive control methods. 3948 3949The DSDT is now the only ACPI table that determines whether the AML 3950interpreter is in 32-bit or 64-bit mode. Not really a functional change, but 3951the hooks for per-table 32/64 switching have been removed from the code. A 3952clarification to the ACPI specification is forthcoming in ACPI 3.0B. 3953 3954Fixed a possible leak of an OwnerID in the error path of 3955AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 3956deletion to a single place in AcpiTbUninstallTable to correct possible leaks 3957when using the AcpiTbDeleteTablesByType interface (with assistance from 3958Lance Ortiz.) 3959 3960Fixed a problem with Serialized control methods where the semaphore 3961associated with the method could be over-signaled after multiple method 3962invocations. 3963 3964Fixed two issues with the locking of the internal namespace data structure. 3965Both the Unload() operator and AcpiUnloadTable interface now lock the 3966namespace during the namespace deletion associated with the table unload 3967(with assistance from Linn Crosetto.) 3968 3969Fixed problem reports (Valery Podrezov) integrated: 3970- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 3971 3972Fixed problem reports (Fiodor Suietov) integrated: 3973- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 3974- On Address Space handler deletion, needless deactivation call (BZ 374) 3975- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) 3976- Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone 3977(BZ 376) 3978- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 3979- Minimum Length of RSDT should be validated (BZ 379) 3980- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 3981Handler (BZ (380) 3982- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded 3983(BZ 381) 3984 3985Example Code and Data Size: These are the sizes for the OS-independent 3986acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3987debug version of the code includes the debug output trace mechanism and has 3988a much larger code and data size. 3989 3990 Previous Release: 3991 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 3992 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 3993 Current Release: 3994 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 3995 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 3996 3997 39982) iASL Compiler/Disassembler and Tools: 3999 4000Fixed problem reports: 4001Compiler segfault when ASL contains a long (>1024) String declaration (BZ 4002436) 4003 4004---------------------------------------- 400523 June 2006. Summary of changes for version 20060623: 4006 40071) ACPI CA Core Subsystem: 4008 4009Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 4010allows the type to be customized to the host OS for improved efficiency 4011(since a spinlock is usually a very small object.) 4012 4013Implemented support for "ignored" bits in the ACPI registers. According to 4014the ACPI specification, these bits should be preserved when writing the 4015registers via a read/modify/write cycle. There are 3 bits preserved in this 4016manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 4017 4018Implemented the initial deployment of new OSL mutex interfaces. Since some 4019host operating systems have separate mutex and semaphore objects, this 4020feature was requested. The base code now uses mutexes (and the new mutex 4021interfaces) wherever a binary semaphore was used previously. However, for 4022the current release, the mutex interfaces are defined as macros to map them 4023to the existing semaphore interfaces. Therefore, no OSL changes are required 4024at this time. (See acpiosxf.h) 4025 4026Fixed several problems with the support for the control method SyncLevel 4027parameter. The SyncLevel now works according to the ACPI specification and 4028in concert with the Mutex SyncLevel parameter, since the current SyncLevel 4029is a property of the executing thread. Mutual exclusion for control methods 4030is now implemented with a mutex instead of a semaphore. 4031 4032Fixed three instances of the use of the C shift operator in the bitfield 4033support code (exfldio.c) to avoid the use of a shift value larger than the 4034target data width. The behavior of C compilers is undefined in this case and 4035can cause unpredictable results, and therefore the case must be detected and 4036avoided. (Fiodor Suietov) 4037 4038Added an info message whenever an SSDT or OEM table is loaded dynamically 4039via the Load() or LoadTable() ASL operators. This should improve debugging 4040capability since it will show exactly what tables have been loaded (beyond 4041the tables present in the RSDT/XSDT.) 4042 4043Example Code and Data Size: These are the sizes for the OS-independent 4044acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4045debug version of the code includes the debug output trace mechanism and has 4046a much larger code and data size. 4047 4048 Previous Release: 4049 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 4050 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 4051 Current Release: 4052 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 4053 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 4054 4055 40562) iASL Compiler/Disassembler and Tools: 4057 4058No changes for this release. 4059 4060---------------------------------------- 406108 June 2006. Summary of changes for version 20060608: 4062 40631) ACPI CA Core Subsystem: 4064 4065Converted the locking mutex used for the ACPI hardware to a spinlock. This 4066change should eliminate all problems caused by attempting to acquire a 4067semaphore at interrupt level, and it means that all ACPICA external 4068interfaces that directly access the ACPI hardware can be safely called from 4069interrupt level. OSL code that implements the semaphore interfaces should be 4070able to eliminate any workarounds for being called at interrupt level. 4071 4072Fixed a regression introduced in 20060526 where the ACPI device 4073initialization could be prematurely aborted with an AE_NOT_FOUND if a device 4074did not have an optional _INI method. 4075 4076Fixed an IndexField issue where a write to the Data Register should be 4077limited in size to the AccessSize (width) of the IndexField itself. (BZ 433, 4078Fiodor Suietov) 4079 4080Fixed problem reports (Valery Podrezov) integrated: 4081- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 4082 4083Fixed problem reports (Fiodor Suietov) integrated: 4084- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 4085 4086Removed four global mutexes that were obsolete and were no longer being 4087used. 4088 4089Example Code and Data Size: These are the sizes for the OS-independent 4090acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4091debug version of the code includes the debug output trace mechanism and has 4092a much larger code and data size. 4093 4094 Previous Release: 4095 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 4096 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 4097 Current Release: 4098 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 4099 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 4100 4101 41022) iASL Compiler/Disassembler and Tools: 4103 4104Fixed a fault when using -g option (get tables from registry) on Windows 4105machines. 4106 4107Fixed problem reports integrated: 4108- Generate error if CreateField NumBits parameter is zero. (BZ 405) 4109- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 4110Suietov) 4111- Global table revision override (-r) is ignored (BZ 413) 4112 4113---------------------------------------- 411426 May 2006. Summary of changes for version 20060526: 4115 41161) ACPI CA Core Subsystem: 4117 4118Restructured, flattened, and simplified the internal interfaces for 4119namespace object evaluation - resulting in smaller code, less CPU stack use, 4120and fewer interfaces. (With assistance from Mikhail Kouzmich) 4121 4122Fixed a problem with the CopyObject operator where the first parameter was 4123not typed correctly for the parser, interpreter, compiler, and disassembler. 4124Caused various errors and unexpected behavior. 4125 4126Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 4127produced incorrect results with some C compilers. Since the behavior of C 4128compilers when the shift value is larger than the datatype width is 4129apparently not well defined, the interpreter now detects this condition and 4130simply returns zero as expected in all such cases. (BZ 395) 4131 4132Fixed problem reports (Valery Podrezov) integrated: 4133- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 4134- Allow interpreter to handle nested method declarations (BZ 5361) 4135 4136Fixed problem reports (Fiodor Suietov) integrated: 4137- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) 4138- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356) 4139- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 4140- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 4141- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 4142- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 4143- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 4144- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 4145- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365) 4146- Status of the Global Initialization Handler call not used (BZ 366) 4147- Incorrect object parameter to Global Initialization Handler (BZ 367) 4148 4149Example Code and Data Size: These are the sizes for the OS-independent 4150acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4151debug version of the code includes the debug output trace mechanism and has 4152a much larger code and data size. 4153 4154 Previous Release: 4155 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 4156 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 4157 Current Release: 4158 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 4159 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 4160 4161 41622) iASL Compiler/Disassembler and Tools: 4163 4164Modified the parser to allow the names IO, DMA, and IRQ to be used as 4165namespace identifiers with no collision with existing resource descriptor 4166macro names. This provides compatibility with other ASL compilers and is 4167most useful for disassembly/recompilation of existing tables without parse 4168errors. (With assistance from Thomas Renninger) 4169 4170Disassembler: fixed an incorrect disassembly problem with the 4171DataTableRegion and CopyObject operators. Fixed a possible fault during 4172disassembly of some Alias operators. 4173 4174---------------------------------------- 417512 May 2006. Summary of changes for version 20060512: 4176 41771) ACPI CA Core Subsystem: 4178 4179Replaced the AcpiOsQueueForExecution interface with a new interface named 4180AcpiOsExecute. The major difference is that the new interface does not have 4181a Priority parameter, this appeared to be useless and has been replaced by a 4182Type parameter. The Type tells the host what type of execution is being 4183requested, such as global lock handler, notify handler, GPE handler, etc. 4184This allows the host to queue and execute the request as appropriate for the 4185request type, possibly using different work queues and different priorities 4186for the various request types. This enables fixes for multithreading 4187deadlock problems such as BZ #5534, and will require changes to all existing 4188OS interface layers. (Alexey Starikovskiy and Bob Moore) 4189 4190Fixed a possible memory leak associated with the support for the so-called 4191"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 4192Suietov) 4193 4194Fixed a problem with the Load() operator where a table load from an 4195operation region could overwrite an internal table buffer by up to 7 bytes 4196and cause alignment faults on IPF systems. (With assistance from Luming Yu) 4197 4198Example Code and Data Size: These are the sizes for the OS-independent 4199acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4200debug version of the code includes the debug output trace mechanism and has 4201a much larger code and data size. 4202 4203 Previous Release: 4204 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 4205 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 4206 Current Release: 4207 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 4208 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 4209 4210 4211 42122) iASL Compiler/Disassembler and Tools: 4213 4214Disassembler: Implemented support to cross reference the internal namespace 4215and automatically generate ASL External() statements for symbols not defined 4216within the current table being disassembled. This will simplify the 4217disassembly and recompilation of interdependent tables such as SSDTs since 4218these statements will no longer have to be added manually. 4219 4220Disassembler: Implemented experimental support to automatically detect 4221invocations of external control methods and generate appropriate External() 4222statements. This is problematic because the AML cannot be correctly parsed 4223until the number of arguments for each control method is known. Currently, 4224standalone method invocations and invocations as the source operand of a 4225Store() statement are supported. 4226 4227Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 4228LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 4229LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 4230more readable and likely closer to the original ASL source. 4231 4232---------------------------------------- 423321 April 2006. Summary of changes for version 20060421: 4234 42351) ACPI CA Core Subsystem: 4236 4237Removed a device initialization optimization introduced in 20051216 where 4238the _STA method was not run unless an _INI was also present for the same 4239device. This optimization could cause problems because it could allow _INI 4240methods to be run within a not-present device subtree. (If a not-present 4241device had no _INI, _STA would not be run, the not-present status would not 4242be discovered, and the children of the device would be incorrectly 4243traversed.) 4244 4245Implemented a new _STA optimization where namespace subtrees that do not 4246contain _INI are identified and ignored during device initialization. 4247Selectively running _STA can significantly improve boot time on large 4248machines (with assistance from Len Brown.) 4249 4250Implemented support for the device initialization case where the returned 4251_STA flags indicate a device not-present but functioning. In this case, _INI 4252is not run, but the device children are examined for presence, as per the 4253ACPI specification. 4254 4255Implemented an additional change to the IndexField support in order to 4256conform to MS behavior. The value written to the Index Register is not 4257simply a byte offset, it is a byte offset in units of the access width of 4258the parent Index Field. (Fiodor Suietov) 4259 4260Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 4261interface is called during the creation of all AML operation regions, and 4262allows the host OS to exert control over what addresses it will allow the 4263AML code to access. Operation Regions whose addresses are disallowed will 4264cause a runtime exception when they are actually accessed (will not affect 4265or abort table loading.) See oswinxf or osunixxf for an example 4266implementation. 4267 4268Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 4269interface allows the host OS to match the various "optional" 4270interface/behavior strings for the _OSI predefined control method as 4271appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 4272for an example implementation. 4273 4274Restructured and corrected various problems in the exception handling code 4275paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 4276(with assistance from Takayoshi Kochi.) 4277 4278Modified the Linux source converter to ignore quoted string literals while 4279converting identifiers from mixed to lower case. This will correct problems 4280with the disassembler and other areas where such strings must not be 4281modified. 4282 4283The ACPI_FUNCTION_* macros no longer require quotes around the function 4284name. This allows the Linux source converter to convert the names, now that 4285the converter ignores quoted strings. 4286 4287Example Code and Data Size: These are the sizes for the OS-independent 4288acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4289debug version of the code includes the debug output trace mechanism and has 4290a much larger code and data size. 4291 4292 Previous Release: 4293 4294 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 4295 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 4296 Current Release: 4297 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 4298 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 4299 4300 43012) iASL Compiler/Disassembler and Tools: 4302 4303Implemented 3 new warnings for iASL, and implemented multiple warning levels 4304(w2 flag). 4305 43061) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not 4307WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 4308check for the possible timeout, a warning is issued. 4309 43102) Useless operators: If an ASL operator does not specify an optional target 4311operand and it also does not use the function return value from the 4312operator, a warning is issued since the operator effectively does nothing. 4313 43143) Unreferenced objects: If a namespace object is created, but never 4315referenced, a warning is issued. This is a warning level 2 since there are 4316cases where this is ok, such as when a secondary table is loaded that uses 4317the unreferenced objects. Even so, care is taken to only flag objects that 4318don't look like they will ever be used. For example, the reserved methods 4319(starting with an underscore) are usually not referenced because it is 4320expected that the OS will invoke them. 4321 4322---------------------------------------- 432331 March 2006. Summary of changes for version 20060331: 4324 43251) ACPI CA Core Subsystem: 4326 4327Implemented header file support for the following additional ACPI tables: 4328ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, 4329all current and known ACPI tables are now defined in the ACPICA headers and 4330are available for use by device drivers and other software. 4331 4332Implemented support to allow tables that contain ACPI names with invalid 4333characters to be loaded. Previously, this would cause the table load to 4334fail, but since there are several known cases of such tables on existing 4335machines, this change was made to enable ACPI support for them. Also, this 4336matches the behavior of the Microsoft ACPI implementation. 4337 4338Fixed a couple regressions introduced during the memory optimization in the 433920060317 release. The namespace node definition required additional 4340reorganization and an internal datatype that had been changed to 8-bit was 4341restored to 32-bit. (Valery Podrezov) 4342 4343Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 4344could be passed through to AcpiOsReleaseObject which is unexpected. Such 4345null pointers are now trapped and ignored, matching the behavior of the 4346previous implementation before the deployment of AcpiOsReleaseObject. 4347(Valery Podrezov, Fiodor Suietov) 4348 4349Fixed a memory mapping leak during the deletion of a SystemMemory operation 4350region where a cached memory mapping was not deleted. This became a 4351noticeable problem for operation regions that are defined within frequently 4352used control methods. (Dana Meyers) 4353 4354Reorganized the ACPI table header files into two main files: one for the 4355ACPI tables consumed by the ACPICA core, and another for the miscellaneous 4356ACPI tables that are consumed by the drivers and other software. The various 4357FADT definitions were merged into one common section and three different 4358tables (ACPI 1.0, 1.0+, and 2.0) 4359 4360Example Code and Data Size: These are the sizes for the OS-independent 4361acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4362debug version of the code includes the debug output trace mechanism and has 4363a much larger code and data size. 4364 4365 Previous Release: 4366 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 4367 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 4368 Current Release: 4369 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 4370 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 4371 4372 43732) iASL Compiler/Disassembler and Tools: 4374 4375Disassembler: Implemented support to decode and format all non-AML ACPI 4376tables (tables other than DSDTs and SSDTs.) This includes the new tables 4377added to the ACPICA headers, therefore all current and known ACPI tables are 4378supported. 4379 4380Disassembler: The change to allow ACPI names with invalid characters also 4381enables the disassembly of such tables. Invalid characters within names are 4382changed to '*' to make the name printable; the iASL compiler will still 4383generate an error for such names, however, since this is an invalid ACPI 4384character. 4385 4386Implemented an option for AcpiXtract (-a) to extract all tables found in the 4387input file. The default invocation extracts only the DSDTs and SSDTs. 4388 4389Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 4390makefile for the AcpiXtract utility. 4391 4392---------------------------------------- 439317 March 2006. Summary of changes for version 20060317: 4394 43951) ACPI CA Core Subsystem: 4396 4397Implemented the use of a cache object for all internal namespace nodes. 4398Since there are about 1000 static nodes in a typical system, this will 4399decrease memory use for cache implementations that minimize per-allocation 4400overhead (such as a slab allocator.) 4401 4402Removed the reference count mechanism for internal namespace nodes, since it 4403was deemed unnecessary. This reduces the size of each namespace node by 4404about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 4405and 32 bytes for the 64-bit case. 4406 4407Optimized several internal data structures to reduce object size on 64-bit 4408platforms by packing data within the 64-bit alignment. This includes the 4409frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 4410instances corresponding to the namespace objects. 4411 4412Added two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 4413and "Windows 2006". 4414 4415Split the allocation tracking mechanism out to a separate file, from 4416utalloc.c to uttrack.c. This mechanism appears to be only useful for 4417application-level code. Kernels may wish to not include uttrack.c in 4418distributions. 4419 4420Removed all remnants of the obsolete ACPI_REPORT_* macros and the associated 4421code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 4422macros.) 4423 4424Code and Data Size: These are the sizes for the acpica.lib produced by the 4425Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4426driver or OSPM code. The debug version of the code includes the debug output 4427trace mechanism and has a much larger code and data size. Note that these 4428values will vary depending on the efficiency of the compiler and the 4429compiler options used during generation. 4430 4431 Previous Release: 4432 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4433 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 4434 Current Release: 4435 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 4436 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 4437 4438 44392) iASL Compiler/Disassembler and Tools: 4440 4441Implemented an ANSI C version of the acpixtract utility. This version will 4442automatically extract the DSDT and all SSDTs from the input acpidump text 4443file and dump the binary output to separate files. It can also display a 4444summary of the input file including the headers for each table found and 4445will extract any single ACPI table, with any signature. (See 4446source/tools/acpixtract) 4447 4448---------------------------------------- 444910 March 2006. Summary of changes for version 20060310: 4450 44511) ACPI CA Core Subsystem: 4452 4453Tagged all external interfaces to the subsystem with the new 4454ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 4455kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 4456macro. The default definition is NULL. 4457 4458Added the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 4459This allows the host to define this as necessary to simplify kernel 4460integration. The default definition is ACPI_NATIVE_UINT. 4461 4462Fixed two interpreter problems related to error processing, the deletion of 4463objects, and placing invalid pointers onto the internal operator result 4464stack. BZ 6028, 6151 (Valery Podrezov) 4465 4466Increased the reference count threshold where a warning is emitted for large 4467reference counts in order to eliminate unnecessary warnings on systems with 4468large namespaces (especially 64-bit.) Increased the value from 0x400 to 44690x800. 4470 4471Due to universal disagreement as to the meaning of the 'c' in the calloc() 4472function, the ACPI_MEM_CALLOCATE macro has been renamed to 4473ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 4474ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 4475ACPI_FREE. 4476 4477Code and Data Size: These are the sizes for the acpica.lib produced by the 4478Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4479driver or OSPM code. The debug version of the code includes the debug output 4480trace mechanism and has a much larger code and data size. Note that these 4481values will vary depending on the efficiency of the compiler and the 4482compiler options used during generation. 4483 4484 Previous Release: 4485 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 4486 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 4487 Current Release: 4488 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4489 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 4490 4491 44922) iASL Compiler/Disassembler: 4493 4494Disassembler: implemented support for symbolic resource descriptor 4495references. If a CreateXxxxField operator references a fixed offset within a 4496resource descriptor, a name is assigned to the descriptor and the offset is 4497translated to the appropriate resource tag and pathname. The addition of 4498this support brings the disassembled code very close to the original ASL 4499source code and helps eliminate run-time errors when the disassembled code 4500is modified (and recompiled) in such a way as to invalidate the original 4501fixed offsets. 4502 4503Implemented support for a Descriptor Name as the last parameter to the ASL 4504Register() macro. This parameter was inadvertently left out of the ACPI 4505specification, and will be added for ACPI 3.0b. 4506 4507Fixed a problem where the use of the "_OSI" string (versus the full path 4508"\_OSI") caused an internal compiler error. ("No back ptr to op") 4509 4510Fixed a problem with the error message that occurs when an invalid string is 4511used for a _HID object (such as one with an embedded asterisk: "*PNP010A".) 4512The correct message is now displayed. 4513 4514---------------------------------------- 451517 February 2006. Summary of changes for version 20060217: 4516 45171) ACPI CA Core Subsystem: 4518 4519Implemented a change to the IndexField support to match the behavior of the 4520Microsoft AML interpreter. The value written to the Index register is now a 4521byte offset, no longer an index based upon the width of the Data register. 4522This should fix IndexField problems seen on some machines where the Data 4523register is not exactly one byte wide. The ACPI specification will be 4524clarified on this point. 4525 4526Fixed a problem where several resource descriptor types could overrun the 4527internal descriptor buffer due to size miscalculation: VendorShort, 4528VendorLong, and Interrupt. This was noticed on IA64 machines, but could 4529affect all platforms. 4530 4531Fixed a problem where individual resource descriptors were misaligned within 4532the internal buffer, causing alignment faults on IA64 platforms. 4533 4534Code and Data Size: These are the sizes for the acpica.lib produced by the 4535Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4536driver or OSPM code. The debug version of the code includes the debug output 4537trace mechanism and has a much larger code and data size. Note that these 4538values will vary depending on the efficiency of the compiler and the 4539compiler options used during generation. 4540 4541 Previous Release: 4542 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4543 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 4544 Current Release: 4545 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 4546 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 4547 4548 45492) iASL Compiler/Disassembler: 4550 4551Implemented support for new reserved names: _WDG and _WED are Microsoft 4552extensions for Windows Instrumentation Management, _TDL is a new ACPI- 4553defined method (Throttling Depth Limit.) 4554 4555Fixed a problem where a zero-length VendorShort or VendorLong resource 4556descriptor was incorrectly emitted as a descriptor of length one. 4557 4558---------------------------------------- 455910 February 2006. Summary of changes for version 20060210: 4560 45611) ACPI CA Core Subsystem: 4562 4563Removed a couple of extraneous ACPI_ERROR messages that appeared during 4564normal execution. These became apparent after the conversion from 4565ACPI_DEBUG_PRINT. 4566 4567Fixed a problem where the CreateField operator could hang if the BitIndex or 4568NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 4569 4570Fixed a problem where a DeRefOf operation on a buffer object incorrectly 4571failed with an exception. This also fixes a couple of related RefOf and 4572DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 4573 4574Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead of 4575AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ 45765480) 4577 4578Implemented a memory cleanup at the end of the execution of each iteration 4579of an AML While() loop, preventing the accumulation of outstanding objects. 4580(Valery Podrezov, BZ 5427) 4581 4582Eliminated a chunk of duplicate code in the object resolution code. (Valery 4583Podrezov, BZ 5336) 4584 4585Fixed several warnings during the 64-bit code generation. 4586 4587The AcpiSrc source code conversion tool now inserts one line of whitespace 4588after an if() statement that is followed immediately by a comment, improving 4589readability of the Linux code. 4590 4591Code and Data Size: The current and previous library sizes for the core 4592subsystem are shown below. These are the code and data sizes for the 4593acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4594values do not include any ACPI driver or OSPM code. The debug version of the 4595code includes the debug output trace mechanism and has a much larger code 4596and data size. Note that these values will vary depending on the efficiency 4597of the compiler and the compiler options used during generation. 4598 4599 Previous Release: 4600 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 4601 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 4602 Current Release: 4603 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4604 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 4605 4606 46072) iASL Compiler/Disassembler: 4608 4609Fixed a problem with the disassembly of a BankField operator with a complex 4610expression for the BankValue parameter. 4611 4612---------------------------------------- 461327 January 2006. Summary of changes for version 20060127: 4614 46151) ACPI CA Core Subsystem: 4616 4617Implemented support in the Resource Manager to allow unresolved namestring 4618references within resource package objects for the _PRT method. This support 4619is in addition to the previously implemented unresolved reference support 4620within the AML parser. If the interpreter slack mode is enabled, these 4621unresolved references will be passed through to the caller as a NULL package 4622entry. 4623 4624Implemented and deployed new macros and functions for error and warning 4625messages across the subsystem. These macros are simpler and generate less 4626code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 4627ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 4628macros remain defined to allow ACPI drivers time to migrate to the new 4629macros. 4630 4631Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 4632Acquire/Release Lock OSL interfaces. 4633 4634Fixed a problem where Alias ASL operators are sometimes not correctly 4635resolved, in both the interpreter and the iASL compiler. 4636 4637Fixed several problems with the implementation of the ConcatenateResTemplate 4638ASL operator. As per the ACPI specification, zero length buffers are now 4639treated as a single EndTag. One-length buffers always cause a fatal 4640exception. Non-zero length buffers that do not end with a full 2-byte EndTag 4641cause a fatal exception. 4642 4643Fixed a possible structure overwrite in the AcpiGetObjectInfo external 4644interface. (With assistance from Thomas Renninger) 4645 4646Code and Data Size: The current and previous library sizes for the core 4647subsystem are shown below. These are the code and data sizes for the 4648acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4649values do not include any ACPI driver or OSPM code. The debug version of the 4650code includes the debug output trace mechanism and has a much larger code 4651and data size. Note that these values will vary depending on the efficiency 4652of the compiler and the compiler options used during generation. 4653 4654 Previous Release: 4655 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 4656 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 4657 Current Release: 4658 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 4659 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 4660 4661 46622) iASL Compiler/Disassembler: 4663 4664Fixed an internal error that was generated for any forward references to ASL 4665Alias objects. 4666 4667---------------------------------------- 466813 January 2006. Summary of changes for version 20060113: 4669 46701) ACPI CA Core Subsystem: 4671 4672Added 2006 copyright to all module headers and signons. This affects 4673virtually every file in the ACPICA core subsystem, iASL compiler, and the 4674utilities. 4675 4676Enhanced the ACPICA error reporting in order to simplify user migration to 4677the non-debug version of ACPICA. Replaced all instances of the 4678ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 4679levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 4680respectively. This preserves all error and warning messages in the non-debug 4681version of the ACPICA code (this has been referred to as the "debug lite" 4682option.) Over 200 cases were converted to create a total of over 380 4683error/warning messages across the ACPICA code. This increases the code and 4684data size of the default non-debug version of the code somewhat (about 13K), 4685but all error/warning reporting may be disabled if desired (and code 4686eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 4687configuration option. The size of the debug version of ACPICA remains about 4688the same. 4689 4690Fixed a memory leak within the AML Debugger "Set" command. One object was 4691not properly deleted for every successful invocation of the command. 4692 4693Code and Data Size: The current and previous library sizes for the core 4694subsystem are shown below. These are the code and data sizes for the 4695acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4696values do not include any ACPI driver or OSPM code. The debug version of the 4697code includes the debug output trace mechanism and has a much larger code 4698and data size. Note that these values will vary depending on the efficiency 4699of the compiler and the compiler options used during generation. 4700 4701 Previous Release: 4702 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 4703 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 4704 Current Release: 4705 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 4706 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 4707 4708 47092) iASL Compiler/Disassembler: 4710 4711The compiler now officially supports the ACPI 3.0a specification that was 4712released on December 30, 2005. (Specification is available at www.acpi.info) 4713 4714---------------------------------------- 471516 December 2005. Summary of changes for version 20051216: 4716 47171) ACPI CA Core Subsystem: 4718 4719Implemented optional support to allow unresolved names within ASL Package 4720objects. A null object is inserted in the package when a named reference 4721cannot be located in the current namespace. Enabled via the interpreter 4722slack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 4723that contain such code. 4724 4725Implemented an optimization to the initialization sequence that can improve 4726boot time. During ACPI device initialization, the _STA method is now run if 4727and only if the _INI method exists. The _STA method is used to determine if 4728the device is present; An _INI can only be run if _STA returns present, but 4729it is a waste of time to run the _STA method if the _INI does not exist. 4730(Prototype and assistance from Dong Wei) 4731 4732Implemented use of the C99 uintptr_t for the pointer casting macros if it is 4733available in the current compiler. Otherwise, the default (void *) cast is 4734used as before. 4735 4736Fixed some possible memory leaks found within the execution path of the 4737Break, Continue, If, and CreateField operators. (Valery Podrezov) 4738 4739Fixed a problem introduced in the 20051202 release where an exception is 4740generated during method execution if a control method attempts to declare 4741another method. 4742 4743Moved resource descriptor string constants that are used by both the AML 4744disassembler and AML debugger to the common utilities directory so that 4745these components are independent. 4746 4747Implemented support in the AcpiExec utility (-e switch) to globally ignore 4748exceptions during control method execution (method is not aborted.) 4749 4750Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 4751generation. 4752 4753Code and Data Size: The current and previous library sizes for the core 4754subsystem are shown below. These are the code and data sizes for the 4755acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4756values do not include any ACPI driver or OSPM code. The debug version of the 4757code includes the debug output trace mechanism and has a much larger code 4758and data size. Note that these values will vary depending on the efficiency 4759of the compiler and the compiler options used during generation. 4760 4761 Previous Release: 4762 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4763 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 4764 Current Release: 4765 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 4766 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 4767 4768 47692) iASL Compiler/Disassembler: 4770 4771Fixed a problem where a CPU stack overflow fault could occur if a recursive 4772method call was made from within a Return statement. 4773 4774---------------------------------------- 477502 December 2005. Summary of changes for version 20051202: 4776 47771) ACPI CA Core Subsystem: 4778 4779Modified the parsing of control methods to no longer create namespace 4780objects during the first pass of the parse. Objects are now created only 4781during the execute phase, at the moment the namespace creation operator is 4782encountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 4783should eliminate ALREADY_EXISTS exceptions seen on some machines where 4784reentrant control methods are protected by an AML mutex. The mutex will now 4785correctly block multiple threads from attempting to create the same object 4786more than once. 4787 4788Increased the number of available Owner Ids for namespace object tracking 4789from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on 4790some machines with a large number of ACPI tables (either static or dynamic). 4791 4792Fixed a problem with the AcpiExec utility where a fault could occur when the 4793-b switch (batch mode) is used. 4794 4795Enhanced the namespace dump routine to output the owner ID for each 4796namespace object. 4797 4798Code and Data Size: The current and previous library sizes for the core 4799subsystem are shown below. These are the code and data sizes for the 4800acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4801values do not include any ACPI driver or OSPM code. The debug version of the 4802code includes the debug output trace mechanism and has a much larger code 4803and data size. Note that these values will vary depending on the efficiency 4804of the compiler and the compiler options used during generation. 4805 4806 Previous Release: 4807 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4808 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4809 Current Release: 4810 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4811 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 4812 4813 48142) iASL Compiler/Disassembler: 4815 4816Fixed a parse error during compilation of certain Switch/Case constructs. To 4817simplify the parse, the grammar now allows for multiple Default statements 4818and this error is now detected and flagged during the analysis phase. 4819 4820Disassembler: The disassembly now includes the contents of the original 4821table header within a comment at the start of the file. This includes the 4822name and version of the original ASL compiler. 4823 4824---------------------------------------- 482517 November 2005. Summary of changes for version 20051117: 4826 48271) ACPI CA Core Subsystem: 4828 4829Fixed a problem in the AML parser where the method thread count could be 4830decremented below zero if any errors occurred during the method parse phase. 4831This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines. 4832This also fixed a related regression with the mechanism that detects and 4833corrects methods that cannot properly handle reentrancy (related to the 4834deployment of the new OwnerId mechanism.) 4835 4836Eliminated the pre-parsing of control methods (to detect errors) during 4837table load. Related to the problem above, this was causing unwind issues if 4838any errors occurred during the parse, and it seemed to be overkill. A table 4839load should not be aborted if there are problems with any single control 4840method, thus rendering this feature rather pointless. 4841 4842Fixed a problem with the new table-driven resource manager where an internal 4843buffer overflow could occur for small resource templates. 4844 4845Implemented a new external interface, AcpiGetVendorResource. This interface 4846will find and return a vendor-defined resource descriptor within a _CRS or 4847_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas. 4848 4849Removed the length limit (200) on string objects as per the upcoming ACPI 48503.0A specification. This affects the following areas of the interpreter: 1) 4851any implicit conversion of a Buffer to a String, 2) a String object result 4852of the ASL Concatentate operator, 3) the String object result of the ASL 4853ToString operator. 4854 4855Fixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER 4856on a semaphore object would incorrectly timeout. This allows the 4857multithreading features of the AcpiExec utility to work properly under 4858Windows. 4859 4860Updated the Linux makefiles for the iASL compiler and AcpiExec to include 4861the recently added file named "utresrc.c". 4862 4863Code and Data Size: The current and previous library sizes for the core 4864subsystem are shown below. These are the code and data sizes for the 4865acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4866values do not include any ACPI driver or OSPM code. The debug version of the 4867code includes the debug output trace mechanism and has a much larger code 4868and data size. Note that these values will vary depending on the efficiency 4869of the compiler and the compiler options used during generation. 4870 4871 Previous Release: 4872 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 4873 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4874 Current Release: 4875 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4876 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4877 4878 48792) iASL Compiler/Disassembler: 4880 4881Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 4882specification. For the iASL compiler, this means that string literals within 4883the source ASL can be of any length. 4884 4885Enhanced the listing output to dump the AML code for resource descriptors 4886immediately after the ASL code for each descriptor, instead of in a block at 4887the end of the entire resource template. 4888 4889Enhanced the compiler debug output to dump the entire original parse tree 4890constructed during the parse phase, before any transforms are applied to the 4891tree. The transformed tree is dumped also. 4892 4893---------------------------------------- 489402 November 2005. Summary of changes for version 20051102: 4895 48961) ACPI CA Core Subsystem: 4897 4898Modified the subsystem initialization sequence to improve GPE support. The 4899GPE initialization has been split into two parts in order to defer execution 4900of the _PRW methods (Power Resources for Wake) until after the hardware is 4901fully initialized and the SCI handler is installed. This allows the _PRW 4902methods to access fields protected by the Global Lock. This will fix systems 4903where a NO_GLOBAL_LOCK exception has been seen during initialization. 4904 4905Converted the ACPI internal object disassemble and display code within the 4906AML debugger to fully table-driven operation, reducing code size and 4907increasing maintainability. 4908 4909Fixed a regression with the ConcatenateResTemplate() ASL operator introduced 4910in the 20051021 release. 4911 4912Implemented support for "local" internal ACPI object types within the 4913debugger "Object" command and the AcpiWalkNamespace external interfaces. 4914These local types include RegionFields, BankFields, IndexFields, Alias, and 4915reference objects. 4916 4917Moved common AML resource handling code into a new file, "utresrc.c". This 4918code is shared by both the Resource Manager and the AML Debugger. 4919 4920Code and Data Size: The current and previous library sizes for the core 4921subsystem are shown below. These are the code and data sizes for the 4922acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4923values do not include any ACPI driver or OSPM code. The debug version of the 4924code includes the debug output trace mechanism and has a much larger code 4925and data size. Note that these values will vary depending on the efficiency 4926of the compiler and the compiler options used during generation. 4927 4928 Previous Release: 4929 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 4930 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 4931 Current Release: 4932 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 4933 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4934 4935 49362) iASL Compiler/Disassembler: 4937 4938Fixed a problem with very large initializer lists (more than 4000 elements) 4939for both Buffer and Package objects where the parse stack could overflow. 4940 4941Enhanced the pre-compile source code scan for non-ASCII characters to ignore 4942characters within comment fields. The scan is now always performed and is no 4943longer optional, detecting invalid characters within a source file 4944immediately rather than during the parse phase or later. 4945 4946Enhanced the ASL grammar definition to force early reductions on all list- 4947style grammar elements so that the overall parse stack usage is greatly 4948reduced. This should improve performance and reduce the possibility of parse 4949stack overflow. 4950 4951Eliminated all reduce/reduce conflicts in the iASL parser generation. Also, 4952with the addition of a %expected statement, the compiler generates from 4953source with no warnings. 4954 4955Fixed a possible segment fault in the disassembler if the input filename 4956does not contain a "dot" extension (Thomas Renninger). 4957 4958---------------------------------------- 495921 October 2005. Summary of changes for version 20051021: 4960 49611) ACPI CA Core Subsystem: 4962 4963Implemented support for the EM64T and other x86-64 processors. This 4964essentially entails recognizing that these processors support non-aligned 4965memory transfers. Previously, all 64-bit processors were assumed to lack 4966hardware support for non-aligned transfers. 4967 4968Completed conversion of the Resource Manager to nearly full table-driven 4969operation. Specifically, the resource conversion code (convert AML to 4970internal format and the reverse) and the debug code to dump internal 4971resource descriptors are fully table-driven, reducing code and data size and 4972improving maintainability. 4973 4974The OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 4975on 64-bit processors instead of a fixed 32-bit word. (With assistance from 4976Alexey Starikovskiy) 4977 4978Implemented support within the resource conversion code for the Type- 4979Specific byte within the various ACPI 3.0 *WordSpace macros. 4980 4981Fixed some issues within the resource conversion code for the type-specific 4982flags for both Memory and I/O address resource descriptors. For Memory, 4983implemented support for the MTP and TTP flags. For I/O, split the TRS and 4984TTP flags into two separate fields. 4985 4986Code and Data Size: The current and previous library sizes for the core 4987subsystem are shown below. These are the code and data sizes for the 4988acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4989values do not include any ACPI driver or OSPM code. The debug version of the 4990code includes the debug output trace mechanism and has a much larger code 4991and data size. Note that these values will vary depending on the efficiency 4992of the compiler and the compiler options used during generation. 4993 4994 Previous Release: 4995 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 4996 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 4997 Current Release: 4998 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 4999 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 5000 5001 5002 50032) iASL Compiler/Disassembler: 5004 5005Relaxed a compiler restriction that disallowed a ResourceIndex byte if the 5006corresponding ResourceSource string was not also present in a resource 5007descriptor declaration. This restriction caused problems with existing 5008AML/ASL code that includes the Index byte without the string. When such AML 5009was disassembled, it could not be compiled without modification. Further, 5010the modified code created a resource template with a different size than the 5011original, breaking code that used fixed offsets into the resource template 5012buffer. 5013 5014Removed a recent feature of the disassembler to ignore a lone ResourceIndex 5015byte. This byte is now emitted if present so that the exact AML can be 5016reproduced when the disassembled code is recompiled. 5017 5018Improved comments and text alignment for the resource descriptor code 5019emitted by the disassembler. 5020 5021Implemented disassembler support for the ACPI 3.0 AccessSize field within a 5022Register() resource descriptor. 5023 5024---------------------------------------- 502530 September 2005. Summary of changes for version 20050930: 5026 50271) ACPI CA Core Subsystem: 5028 5029Completed a major overhaul of the Resource Manager code - specifically, 5030optimizations in the area of the AML/internal resource conversion code. The 5031code has been optimized to simplify and eliminate duplicated code, CPU stack 5032use has been decreased by optimizing function parameters and local 5033variables, and naming conventions across the manager have been standardized 5034for clarity and ease of maintenance (this includes function, parameter, 5035variable, and struct/typedef names.) The update may force changes in some 5036driver code, depending on how resources are handled by the host OS. 5037 5038All Resource Manager dispatch and information tables have been moved to a 5039single location for clarity and ease of maintenance. One new file was 5040created, named "rsinfo.c". 5041 5042The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 5043guarantee that the argument is not evaluated twice, making them less prone 5044to macro side-effects. However, since there exists the possibility of 5045additional stack use if a particular compiler cannot optimize them (such as 5046in the debug generation case), the original macros are optionally available. 5047Note that some invocations of the return_VALUE macro may now cause size 5048mismatch warnings; the return_UINT8 and return_UINT32 macros are provided to 5049eliminate these. (From Randy Dunlap) 5050 5051Implemented a new mechanism to enable debug tracing for individual control 5052methods. A new external interface, AcpiDebugTrace, is provided to enable 5053this mechanism. The intent is to allow the host OS to easily enable and 5054disable tracing for problematic control methods. This interface can be 5055easily exposed to a user or debugger interface if desired. See the file 5056psxface.c for details. 5057 5058AcpiUtCallocate will now return a valid pointer if a length of zero is 5059specified - a length of one is used and a warning is issued. This matches 5060the behavior of AcpiUtAllocate. 5061 5062Code and Data Size: The current and previous library sizes for the core 5063subsystem are shown below. These are the code and data sizes for the 5064acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 5065values do not include any ACPI driver or OSPM code. The debug version of the 5066code includes the debug output trace mechanism and has a much larger code 5067and data size. Note that these values will vary depending on the efficiency 5068of the compiler and the compiler options used during generation. 5069 5070 Previous Release: 5071 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 5072 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 5073 Current Release: 5074 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 5075 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 5076 5077 50782) iASL Compiler/Disassembler: 5079 5080A remark is issued if the effective compile-time length of a package or 5081buffer is zero. Previously, this was a warning. 5082 5083---------------------------------------- 508416 September 2005. Summary of changes for version 20050916: 5085 50861) ACPI CA Core Subsystem: 5087 5088Fixed a problem within the Resource Manager where support for the Generic 5089Register descriptor was not fully implemented. This descriptor is now fully 5090recognized, parsed, disassembled, and displayed. 5091 5092Completely restructured the Resource Manager code to utilize table-driven 5093dispatch and lookup, eliminating many of the large switch() statements. This 5094reduces overall subsystem code size and code complexity. Affects the 5095resource parsing and construction, disassembly, and debug dump output. 5096 5097Cleaned up and restructured the debug dump output for all resource 5098descriptors. Improved readability of the output and reduced code size. 5099 5100Fixed a problem where changes to internal data structures caused the 5101optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 5102 5103Code and Data Size: The current and previous library sizes for the core 5104subsystem are shown below. These are the code and data sizes for the 5105acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 5106values do not include any ACPI driver or OSPM code. The debug version of the 5107code includes the debug output trace mechanism and has a much larger code 5108and data size. Note that these values will vary depending on the efficiency 5109of the compiler and the compiler options used during generation. 5110 5111 Previous Release: 5112 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 5113 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 5114 Current Release: 5115 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 5116 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 5117 5118 51192) iASL Compiler/Disassembler: 5120 5121Updated the disassembler to automatically insert an EndDependentFn() macro 5122into the ASL stream if this macro is missing in the original AML code, 5123simplifying compilation of the resulting ASL module. 5124 5125Fixed a problem in the disassembler where a disassembled ResourceSource 5126string (within a large resource descriptor) was not surrounded by quotes and 5127not followed by a comma, causing errors when the resulting ASL module was 5128compiled. Also, escape sequences within a ResourceSource string are now 5129handled correctly (especially "\\") 5130 5131---------------------------------------- 513202 September 2005. Summary of changes for version 20050902: 5133 51341) ACPI CA Core Subsystem: 5135 5136Fixed a problem with the internal Owner ID allocation and deallocation 5137mechanisms for control method execution and recursive method invocation. 5138This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 5139messages seen on some systems. Recursive method invocation depth is 5140currently limited to 255. (Alexey Starikovskiy) 5141 5142Completely eliminated all vestiges of support for the "module-level 5143executable code" until this support is fully implemented and debugged. This 5144should eliminate the NO_RETURN_VALUE exceptions seen during table load on 5145some systems that invoke this support. 5146 5147Fixed a problem within the resource manager code where the transaction flags 5148for a 64-bit address descriptor were handled incorrectly in the type- 5149specific flag byte. 5150 5151Consolidated duplicate code within the address descriptor resource manager 5152code, reducing overall subsystem code size. 5153 5154Fixed a fault when using the AML debugger "disassemble" command to 5155disassemble individual control methods. 5156 5157Removed references to the "release_current" directory within the Unix 5158release package. 5159 5160Code and Data Size: The current and previous core subsystem library sizes 5161are shown below. These are the code and data sizes for the acpica.lib 5162produced by the Microsoft Visual C++ 6.0 compiler. These values do not 5163include any ACPI driver or OSPM code. The debug version of the code includes 5164the debug output trace mechanism and has a much larger code and data size. 5165Note that these values will vary depending on the efficiency of the compiler 5166and the compiler options used during generation. 5167 5168 Previous Release: 5169 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5170 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 5171 Current Release: 5172 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 5173 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 5174 5175 51762) iASL Compiler/Disassembler: 5177 5178Implemented an error check for illegal duplicate values in the interrupt and 5179dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 5180Interrupt(). 5181 5182Implemented error checking for the Irq() and IrqNoFlags() macros to detect 5183too many values in the interrupt list (16 max) and invalid values in the 5184list (range 0 - 15) 5185 5186The maximum length string literal within an ASL file is now restricted to 5187200 characters as per the ACPI specification. 5188 5189Fixed a fault when using the -ln option (generate namespace listing). 5190 5191Implemented an error check to determine if a DescriptorName within a 5192resource descriptor has already been used within the current scope. 5193 5194---------------------------------------- 519515 August 2005. Summary of changes for version 20050815: 5196 51971) ACPI CA Core Subsystem: 5198 5199Implemented a full bytewise compare to determine if a table load request is 5200attempting to load a duplicate table. The compare is performed if the table 5201signatures and table lengths match. This will allow different tables with 5202the same OEM Table ID and revision to be loaded - probably against the ACPI 5203specification, but discovered in the field nonetheless. 5204 5205Added the changes.txt logfile to each of the zipped release packages. 5206 5207Code and Data Size: Current and previous core subsystem library sizes are 5208shown below. These are the code and data sizes for the acpica.lib produced 5209by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5210any ACPI driver or OSPM code. The debug version of the code includes the 5211debug output trace mechanism and has a much larger code and data size. Note 5212that these values will vary depending on the efficiency of the compiler and 5213the compiler options used during generation. 5214 5215 Previous Release: 5216 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5217 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 5218 Current Release: 5219 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5220 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 5221 5222 52232) iASL Compiler/Disassembler: 5224 5225Fixed a problem where incorrect AML code could be generated for Package 5226objects if optimization is disabled (via the -oa switch). 5227 5228Fixed a problem with where incorrect AML code is generated for variable- 5229length packages when the package length is not specified and the number of 5230initializer values is greater than 255. 5231 5232 5233---------------------------------------- 523429 July 2005. Summary of changes for version 20050729: 5235 52361) ACPI CA Core Subsystem: 5237 5238Implemented support to ignore an attempt to install/load a particular ACPI 5239table more than once. Apparently there exists BIOS code that repeatedly 5240attempts to load the same SSDT upon certain events. With assistance from 5241Venkatesh Pallipadi. 5242 5243Restructured the main interface to the AML parser in order to correctly 5244handle all exceptional conditions. This will prevent leakage of the OwnerId 5245resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some 5246machines. With assistance from Alexey Starikovskiy. 5247 5248Support for "module level code" has been disabled in this version due to a 5249number of issues that have appeared on various machines. The support can be 5250enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 5251compilation. When the issues are fully resolved, the code will be enabled by 5252default again. 5253 5254Modified the internal functions for debug print support to define the 5255FunctionName parameter as a (const char *) for compatibility with compiler 5256built-in macros such as __FUNCTION__, etc. 5257 5258Linted the entire ACPICA source tree for both 32-bit and 64-bit. 5259 5260Implemented support to display an object count summary for the AML Debugger 5261commands Object and Methods. 5262 5263Code and Data Size: Current and previous core subsystem library sizes are 5264shown below. These are the code and data sizes for the acpica.lib produced 5265by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5266any ACPI driver or OSPM code. The debug version of the code includes the 5267debug output trace mechanism and has a much larger code and data size. Note 5268that these values will vary depending on the efficiency of the compiler and 5269the compiler options used during generation. 5270 5271 Previous Release: 5272 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 5273 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 5274 Current Release: 5275 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5276 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 5277 5278 52792) iASL Compiler/Disassembler: 5280 5281Fixed a regression that appeared in the 20050708 version of the compiler 5282where an error message was inadvertently emitted for invocations of the _OSI 5283reserved control method. 5284 5285---------------------------------------- 528608 July 2005. Summary of changes for version 20050708: 5287 52881) ACPI CA Core Subsystem: 5289 5290The use of the CPU stack in the debug version of the subsystem has been 5291considerably reduced. Previously, a debug structure was declared in every 5292function that used the debug macros. This structure has been removed in 5293favor of declaring the individual elements as parameters to the debug 5294functions. This reduces the cumulative stack use during nested execution of 5295ACPI function calls at the cost of a small increase in the code size of the 5296debug version of the subsystem. With assistance from Alexey Starikovskiy and 5297Len Brown. 5298 5299Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 5300headers to define a macro that will return the current function name at 5301runtime (such as __FUNCTION__ or _func_, etc.) The function name is used by 5302the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 5303compiler-dependent header, the function name is saved on the CPU stack (one 5304pointer per function.) This mechanism is used because apparently there 5305exists no standard ANSI-C defined macro that that returns the function name. 5306 5307Redesigned and reimplemented the "Owner ID" mechanism used to track 5308namespace objects created/deleted by ACPI tables and control method 5309execution. A bitmap is now used to allocate and free the IDs, thus solving 5310the wraparound problem present in the previous implementation. The size of 5311the namespace node descriptor was reduced by 2 bytes as a result (Alexey 5312Starikovskiy). 5313 5314Removed the UINT32_BIT and UINT16_BIT types that were used for the bitfield 5315flag definitions within the headers for the predefined ACPI tables. These 5316have been replaced by UINT8_BIT in order to increase the code portability of 5317the subsystem. If the use of UINT8 remains a problem, we may be forced to 5318eliminate bitfields entirely because of a lack of portability. 5319 5320Enhanced the performance of the AcpiUtUpdateObjectReference procedure. This 5321is a frequently used function and this improvement increases the performance 5322of the entire subsystem (Alexey Starikovskiy). 5323 5324Fixed several possible memory leaks and the inverse - premature object 5325deletion (Alexey Starikovskiy). 5326 5327Code and Data Size: Current and previous core subsystem library sizes are 5328shown below. These are the code and data sizes for the acpica.lib produced 5329by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5330any ACPI driver or OSPM code. The debug version of the code includes the 5331debug output trace mechanism and has a much larger code and data size. Note 5332that these values will vary depending on the efficiency of the compiler and 5333the compiler options used during generation. 5334 5335 Previous Release: 5336 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 5337 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 5338 Current Release: 5339 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 5340 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 5341 5342---------------------------------------- 534324 June 2005. Summary of changes for version 20050624: 5344 53451) ACPI CA Core Subsystem: 5346 5347Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 5348the host-defined cache object. This allows the OSL implementation to define 5349and type this object in any manner desired, simplifying the OSL 5350implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 5351Linux, and should be defined in the OS-specific header file for other 5352operating systems as required. 5353 5354Changed the interface to AcpiOsAcquireObject to directly return the 5355requested object as the function return (instead of ACPI_STATUS.) This 5356change was made for performance reasons, since this is the purpose of the 5357interface in the first place. AcpiOsAcquireObject is now similar to the 5358AcpiOsAllocate interface. 5359 5360Implemented a new AML debugger command named Businfo. This command displays 5361information about all devices that have an associate _PRT object. The _ADR, 5362_HID, _UID, and _CID are displayed for these devices. 5363 5364Modified the initialization sequence in AcpiInitializeSubsystem to call the 5365OSL interface AcpiOslInitialize first, before any local initialization. This 5366change was required because the global initialization now calls OSL 5367interfaces. 5368 5369Enhanced the Dump command to display the entire contents of Package objects 5370(including all sub-objects and their values.) 5371 5372Restructured the code base to split some files because of size and/or 5373because the code logically belonged in a separate file. New files are listed 5374below. All makefiles and project files included in the ACPI CA release have 5375been updated. 5376 utilities/utcache.c /* Local cache interfaces */ 5377 utilities/utmutex.c /* Local mutex support */ 5378 utilities/utstate.c /* State object support */ 5379 interpreter/parser/psloop.c /* Main AML parse loop */ 5380 5381Code and Data Size: Current and previous core subsystem library sizes are 5382shown below. These are the code and data sizes for the acpica.lib produced 5383by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5384any ACPI driver or OSPM code. The debug version of the code includes the 5385debug output trace mechanism and has a much larger code and data size. Note 5386that these values will vary depending on the efficiency of the compiler and 5387the compiler options used during generation. 5388 5389 Previous Release: 5390 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 5391 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 5392 Current Release: 5393 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 5394 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 5395 5396 53972) iASL Compiler/Disassembler: 5398 5399Fixed a regression introduced in version 20050513 where the use of a Package 5400object within a Case() statement caused a compile time exception. The 5401original behavior has been restored (a Match() operator is emitted.) 5402 5403---------------------------------------- 540417 June 2005. Summary of changes for version 20050617: 5405 54061) ACPI CA Core Subsystem: 5407 5408Moved the object cache operations into the OS interface layer (OSL) to allow 5409the host OS to handle these operations if desired (for example, the Linux 5410OSL will invoke the slab allocator). This support is optional; the compile 5411time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 5412code in the ACPI CA core. The new OSL interfaces are shown below. See 5413utalloc.c for an example implementation, and acpiosxf.h for the exact 5414interface definitions. With assistance from Alexey Starikovskiy. 5415 AcpiOsCreateCache 5416 AcpiOsDeleteCache 5417 AcpiOsPurgeCache 5418 AcpiOsAcquireObject 5419 AcpiOsReleaseObject 5420 5421Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return 5422and restore a flags parameter. This fits better with many OS lock models. 5423Note: the current execution state (interrupt handler or not) is no longer 5424passed to these interfaces. If necessary, the OSL must determine this state 5425by itself, a simple and fast operation. With assistance from Alexey 5426Starikovskiy. 5427 5428Fixed a problem in the ACPI table handling where a valid XSDT was assumed 5429present if the revision of the RSDP was 2 or greater. According to the ACPI 5430specification, the XSDT is optional in all cases, and the table manager 5431therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 5432Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 5433only the RSDT. 5434 5435Fixed an interpreter problem with the Mid() operator in the case of an input 5436string where the resulting output string is of zero length. It now correctly 5437returns a valid, null terminated string object instead of a string object 5438with a null pointer. 5439 5440Fixed a problem with the control method argument handling to allow a store 5441to an Arg object that already contains an object of type Device. The Device 5442object is now correctly overwritten. Previously, an error was returned. 5443 5444 5445Enhanced the debugger Find command to emit object values in addition to the 5446found object pathnames. The output format is the same as the dump namespace 5447command. 5448 5449Enhanced the debugger Set command. It now has the ability to set the value 5450of any Named integer object in the namespace (Previously, only method locals 5451and args could be set.) 5452 5453Code and Data Size: Current and previous core subsystem library sizes are 5454shown below. These are the code and data sizes for the acpica.lib produced 5455by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5456any ACPI driver or OSPM code. The debug version of the code includes the 5457debug output trace mechanism and has a much larger code and data size. Note 5458that these values will vary depending on the efficiency of the compiler and 5459the compiler options used during generation. 5460 5461 Previous Release: 5462 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 5463 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 5464 Current Release: 5465 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 5466 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 5467 5468 54692) iASL Compiler/Disassembler: 5470 5471Fixed a regression in the disassembler where if/else/while constructs were 5472output incorrectly. This problem was introduced in the previous release 5473(20050526). This problem also affected the single-step disassembly in the 5474debugger. 5475 5476Fixed a problem where compiling the reserved _OSI method would randomly (but 5477rarely) produce compile errors. 5478 5479Enhanced the disassembler to emit compilable code in the face of incorrect 5480AML resource descriptors. If the optional ResourceSourceIndex is present, 5481but the ResourceSource is not, do not emit the ResourceSourceIndex in the 5482disassembly. Otherwise, the resulting code cannot be compiled without 5483errors. 5484 5485---------------------------------------- 548626 May 2005. Summary of changes for version 20050526: 5487 54881) ACPI CA Core Subsystem: 5489 5490Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 5491the module level (not within a control method.) These opcodes are executed 5492exactly once at the time the table is loaded. This type of code was legal up 5493until the release of ACPI 2.0B (2002) and is now supported within ACPI CA in 5494order to provide backwards compatibility with earlier BIOS implementations. 5495This eliminates the "Encountered executable code at module level" warning 5496that was previously generated upon detection of such code. 5497 5498Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 5499inadvertently be generated during the lookup of namespace objects in the 5500second pass parse of ACPI tables and control methods. It appears that this 5501problem could occur during the resolution of forward references to namespace 5502objects. 5503 5504Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 5505corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 5506allows the deadlock detection debug code to be compiled out in the normal 5507case, improving mutex performance (and overall subsystem performance) 5508considerably. 5509 5510Implemented a handful of miscellaneous fixes for possible memory leaks on 5511error conditions and error handling control paths. These fixes were 5512suggested by FreeBSD and the Coverity Prevent source code analysis tool. 5513 5514Added a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 5515to prevent a fault in this error case. 5516 5517Code and Data Size: Current and previous core subsystem library sizes are 5518shown below. These are the code and data sizes for the acpica.lib produced 5519by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5520any ACPI driver or OSPM code. The debug version of the code includes the 5521debug output trace mechanism and has a much larger code and data size. Note 5522that these values will vary depending on the efficiency of the compiler and 5523the compiler options used during generation. 5524 5525 Previous Release: 5526 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5527 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5528 Current Release: 5529 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 5530 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 5531 5532 55332) iASL Compiler/Disassembler: 5534 5535Implemented support to allow Type 1 and Type 2 ASL operators to appear at 5536the module level (not within a control method.) These operators will be 5537executed once at the time the table is loaded. This type of code was legal 5538up until the release of ACPI 2.0B (2002) and is now supported by the iASL 5539compiler in order to provide backwards compatibility with earlier BIOS ASL 5540code. 5541 5542The ACPI integer width (specified via the table revision ID or the -r 5543override, 32 or 64 bits) is now used internally during compile-time constant 5544folding to ensure that constants are truncated to 32 bits if necessary. 5545Previously, the revision ID value was only emitted in the AML table header. 5546 5547An error message is now generated for the Mutex and Method operators if the 5548SyncLevel parameter is outside the legal range of 0 through 15. 5549 5550Fixed a problem with the Method operator ParameterTypes list handling (ACPI 55513.0). Previously, more than 2 types or 2 arguments generated a syntax error. 5552The actual underlying implementation of method argument typechecking is 5553still under development, however. 5554 5555---------------------------------------- 555613 May 2005. Summary of changes for version 20050513: 5557 55581) ACPI CA Core Subsystem: 5559 5560Implemented support for PCI Express root bridges -- added support for device 5561PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 5562 5563The interpreter now automatically truncates incoming 64-bit constants to 32 5564bits if currently executing out of a 32-bit ACPI table (Revision < 2). This 5565also affects the iASL compiler constant folding. (Note: as per below, the 5566iASL compiler no longer allows 64-bit constants within 32-bit tables.) 5567 5568Fixed a problem where string and buffer objects with "static" pointers 5569(pointers to initialization data within an ACPI table) were not handled 5570consistently. The internal object copy operation now always copies the data 5571to a newly allocated buffer, regardless of whether the source object is 5572static or not. 5573 5574Fixed a problem with the FromBCD operator where an implicit result 5575conversion was improperly performed while storing the result to the target 5576operand. Since this is an "explicit conversion" operator, the implicit 5577conversion should never be performed on the output. 5578 5579Fixed a problem with the CopyObject operator where a copy to an existing 5580named object did not always completely overwrite the existing object stored 5581at name. Specifically, a buffer-to-buffer copy did not delete the existing 5582buffer. 5583 5584Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 5585structs for consistency. 5586 5587Code and Data Size: Current and previous core subsystem library sizes are 5588shown below. These are the code and data sizes for the acpica.lib produced 5589by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5590any ACPI driver or OSPM code. The debug version of the code includes the 5591debug output trace mechanism and has a much larger code and data size. Note 5592that these values will vary depending on the efficiency of the compiler and 5593the compiler options used during generation. 5594 5595 Previous Release: 5596 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5597 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5598 Current Release: (Same sizes) 5599 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5600 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5601 5602 56032) iASL Compiler/Disassembler: 5604 5605The compiler now emits a warning if an attempt is made to generate a 64-bit 5606integer constant from within a 32-bit ACPI table (Revision < 2). The integer 5607is truncated to 32 bits. 5608 5609Fixed a problem with large package objects: if the static length of the 5610package is greater than 255, the "variable length package" opcode is 5611emitted. Previously, this caused an error. This requires an update to the 5612ACPI spec, since it currently (incorrectly) states that packages larger than 5613255 elements are not allowed. 5614 5615The disassembler now correctly handles variable length packages and packages 5616larger than 255 elements. 5617 5618---------------------------------------- 561908 April 2005. Summary of changes for version 20050408: 5620 56211) ACPI CA Core Subsystem: 5622 5623Fixed three cases in the interpreter where an "index" argument to an ASL 5624function was still (internally) 32 bits instead of the required 64 bits. 5625This was the Index argument to the Index, Mid, and Match operators. 5626 5627The "strupr" function is now permanently local (AcpiUtStrupr), since this is 5628not a POSIX-defined function and not present in most kernel-level C 5629libraries. All references to the C library strupr function have been removed 5630from the headers. 5631 5632Completed the deployment of static functions/prototypes. All prototypes with 5633the static attribute have been moved from the headers to the owning C file. 5634 5635Implemented an extract option (-e) for the AcpiBin utility (AML binary 5636utility). This option allows the utility to extract individual ACPI tables 5637from the output of AcpiDmp. It provides the same functionality of the 5638acpixtract.pl perl script without the worry of setting the correct perl 5639options. AcpiBin runs on Windows and has not yet been generated/validated in 5640the Linux/Unix environment (but should be soon). 5641 5642Updated and fixed the table dump option for AcpiBin (-d). This option 5643converts a single ACPI table to a hex/ascii file, similar to the output of 5644AcpiDmp. 5645 5646Code and Data Size: Current and previous core subsystem library sizes are 5647shown below. These are the code and data sizes for the acpica.lib produced 5648by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5649any ACPI driver or OSPM code. The debug version of the code includes the 5650debug output trace mechanism and has a much larger code and data size. Note 5651that these values will vary depending on the efficiency of the compiler and 5652the compiler options used during generation. 5653 5654 Previous Release: 5655 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 5656 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 5657 Current Release: 5658 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5659 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5660 5661 56622) iASL Compiler/Disassembler: 5663 5664Disassembler fix: Added a check to ensure that the table length found in the 5665ACPI table header within the input file is not longer than the actual input 5666file size. This indicates some kind of file or table corruption. 5667 5668---------------------------------------- 566929 March 2005. Summary of changes for version 20050329: 5670 56711) ACPI CA Core Subsystem: 5672 5673An error is now generated if an attempt is made to create a Buffer Field of 5674length zero (A CreateField with a length operand of zero.) 5675 5676The interpreter now issues a warning whenever executable code at the module 5677level is detected during ACPI table load. This will give some idea of the 5678prevalence of this type of code. 5679 5680Implemented support for references to named objects (other than control 5681methods) within package objects. 5682 5683Enhanced package object output for the debug object. Package objects are now 5684completely dumped, showing all elements. 5685 5686Enhanced miscellaneous object output for the debug object. Any object can 5687now be written to the debug object (for example, a device object can be 5688written, and the type of the object will be displayed.) 5689 5690The "static" qualifier has been added to all local functions across both the 5691core subsystem and the iASL compiler. 5692 5693The number of "long" lines (> 80 chars) within the source has been 5694significantly reduced, by about 1/3. 5695 5696Cleaned up all header files to ensure that all CA/iASL functions are 5697prototyped (even static functions) and the formatting is consistent. 5698 5699Two new header files have been added, acopcode.h and acnames.h. 5700 5701Removed several obsolete functions that were no longer used. 5702 5703Code and Data Size: Current and previous core subsystem library sizes are 5704shown below. These are the code and data sizes for the acpica.lib produced 5705by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5706any ACPI driver or OSPM code. The debug version of the code includes the 5707debug output trace mechanism and has a much larger code and data size. Note 5708that these values will vary depending on the efficiency of the compiler and 5709the compiler options used during generation. 5710 5711 Previous Release: 5712 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5713 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 5714 Current Release: 5715 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 5716 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 5717 5718 5719 57202) iASL Compiler/Disassembler: 5721 5722Fixed a problem with the resource descriptor generation/support. For the 5723ResourceSourceIndex and the ResourceSource fields, both must be present, or 5724both must be not present - can't have one without the other. 5725 5726The compiler now returns non-zero from the main procedure if any errors have 5727occurred during the compilation. 5728 5729 5730---------------------------------------- 573109 March 2005. Summary of changes for version 20050309: 5732 57331) ACPI CA Core Subsystem: 5734 5735The string-to-buffer implicit conversion code has been modified again after 5736a change to the ACPI specification. In order to match the behavior of the 5737other major ACPI implementation, the target buffer is no longer truncated if 5738the source string is smaller than an existing target buffer. This change 5739requires an update to the ACPI spec, and should eliminate the recent 5740AE_AML_BUFFER_LIMIT issues. 5741 5742The "implicit return" support was rewritten to a new algorithm that solves 5743the general case. Rather than attempt to determine when a method is about to 5744exit, the result of every ASL operator is saved momentarily until the very 5745next ASL operator is executed. Therefore, no matter how the method exits, 5746there will always be a saved implicit return value. This feature is only 5747enabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 5748AE_AML_NO_RETURN_VALUE errors when enabled. 5749 5750Implemented implicit conversion support for the predicate (operand) of the 5751If, Else, and While operators. String and Buffer arguments are automatically 5752converted to Integers. 5753 5754Changed the string-to-integer conversion behavior to match the new ACPI 5755errata: "If no integer object exists, a new integer is created. The ASCII 5756string is interpreted as a hexadecimal constant. Each string character is 5757interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 5758with the first character as the most significant digit, and ending with the 5759first non-hexadecimal character or end-of-string." This means that the first 5760non-hex character terminates the conversion and this is the code that was 5761changed. 5762 5763Fixed a problem where the ObjectType operator would fail (fault) when used 5764on an Index of a Package which pointed to a null package element. The 5765operator now properly returns zero (Uninitialized) in this case. 5766 5767Fixed a problem where the While operator used excessive memory by not 5768properly popping the result stack during execution. There was no memory leak 5769after execution, however. (Code provided by Valery Podrezov.) 5770 5771Fixed a problem where references to control methods within Package objects 5772caused the method to be invoked, instead of producing a reference object 5773pointing to the method. 5774 5775Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 5776improve performance and reduce code size. (Code provided by Alexey 5777Starikovskiy.) 5778 5779Code and Data Size: Current and previous core subsystem library sizes are 5780shown below. These are the code and data sizes for the acpica.lib produced 5781by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5782any ACPI driver or OSPM code. The debug version of the code includes the 5783debug output trace mechanism and has a much larger code and data size. Note 5784that these values will vary depending on the efficiency of the compiler and 5785the compiler options used during generation. 5786 5787 Previous Release: 5788 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5789 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 5790 Current Release: 5791 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5792 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 5793 5794 57952) iASL Compiler/Disassembler: 5796 5797Fixed a problem with the Return operator with no arguments. Since the AML 5798grammar for the byte encoding requires an operand for the Return opcode, the 5799compiler now emits a Return(Zero) for this case. An ACPI specification 5800update has been written for this case. 5801 5802For tables other than the DSDT, namepath optimization is automatically 5803disabled. This is because SSDTs can be loaded anywhere in the namespace, the 5804compiler has no knowledge of where, and thus cannot optimize namepaths. 5805 5806Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 5807inadvertently omitted from the ACPI specification, and will require an 5808update to the spec. 5809 5810The source file scan for ASCII characters is now optional (-a). This change 5811was made because some vendors place non-ascii characters within comments. 5812However, the scan is simply a brute-force byte compare to ensure all 5813characters in the file are in the range 0x00 to 0x7F. 5814 5815Fixed a problem with the CondRefOf operator where the compiler was 5816inappropriately checking for the existence of the target. Since the point of 5817the operator is to check for the existence of the target at run-time, the 5818compiler no longer checks for the target existence. 5819 5820Fixed a problem where errors generated from the internal AML interpreter 5821during constant folding were not handled properly, causing a fault. 5822 5823Fixed a problem with overly aggressive range checking for the Stall 5824operator. The valid range (max 255) is now only checked if the operand is of 5825type Integer. All other operand types cannot be statically checked. 5826 5827Fixed a problem where control method references within the RefOf, DeRefOf, 5828and ObjectType operators were not treated properly. They are now treated as 5829actual references, not method invocations. 5830 5831Fixed and enhanced the "list namespace" option (-ln). This option was broken 5832a number of releases ago. 5833 5834Improved error handling for the Field, IndexField, and BankField operators. 5835The compiler now cleanly reports and recovers from errors in the field 5836component (FieldUnit) list. 5837 5838Fixed a disassembler problem where the optional ResourceDescriptor fields 5839TRS and TTP were not always handled correctly. 5840 5841Disassembler - Comments in output now use "//" instead of "/*" 5842 5843---------------------------------------- 584428 February 2005. Summary of changes for version 20050228: 5845 58461) ACPI CA Core Subsystem: 5847 5848Fixed a problem where the result of an Index() operator (an object 5849reference) must increment the reference count on the target object for the 5850life of the object reference. 5851 5852Implemented AML Interpreter and Debugger support for the new ACPI 3.0 5853Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace 5854resource descriptors. 5855 5856Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 5857Space Descriptor" string, indicating interpreter support for the descriptors 5858above. 5859 5860Implemented header support for the new ACPI 3.0 FADT flag bits. 5861 5862Implemented header support for the new ACPI 3.0 PCI Express bits for the PM1 5863status/enable registers. 5864 5865Updated header support for the MADT processor local Apic struct and MADT 5866platform interrupt source struct for new ACPI 3.0 fields. 5867 5868Implemented header support for the SRAT and SLIT ACPI tables. 5869 5870Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag 5871at runtime. 5872 5873Code and Data Size: Current and previous core subsystem library sizes are 5874shown below. These are the code and data sizes for the acpica.lib produced 5875by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5876any ACPI driver or OSPM code. The debug version of the code includes the 5877debug output trace mechanism and has a much larger code and data size. Note 5878that these values will vary depending on the efficiency of the compiler and 5879the compiler options used during generation. 5880 5881 Previous Release: 5882 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 5883 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 5884 Current Release: 5885 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5886 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 5887 5888 58892) iASL Compiler/Disassembler: 5890 5891Fixed a problem with the internal 64-bit String-to-integer conversion with 5892strings less than two characters long. 5893 5894Fixed a problem with constant folding where the result of the Index() 5895operator can not be considered a constant. This means that Index() cannot be 5896a type3 opcode and this will require an update to the ACPI specification. 5897 5898Disassembler: Implemented support for the TTP, MTP, and TRS resource 5899descriptor fields. These fields were inadvertently ignored and not output in 5900the disassembly of the resource descriptor. 5901 5902 5903 ---------------------------------------- 590411 February 2005. Summary of changes for version 20050211: 5905 59061) ACPI CA Core Subsystem: 5907 5908Implemented ACPI 3.0 support for implicit conversion within the Match() 5909operator. MatchObjects can now be of type integer, buffer, or string instead 5910of just type integer. Package elements are implicitly converted to the type 5911of the MatchObject. This change aligns the behavior of Match() with the 5912behavior of the other logical operators (LLess(), etc.) It also requires an 5913errata change to the ACPI specification as this support was intended for 5914ACPI 3.0, but was inadvertently omitted. 5915 5916Fixed a problem with the internal implicit "to buffer" conversion. Strings 5917that are converted to buffers will cause buffer truncation if the string is 5918smaller than the target buffer. Integers that are converted to buffers will 5919not cause buffer truncation, only zero extension (both as per the ACPI 5920spec.) The problem was introduced when code was added to truncate the 5921buffer, but this should not be performed in all cases, only the string case. 5922 5923Fixed a problem with the Buffer and Package operators where the interpreter 5924would get confused if two such operators were used as operands to an ASL 5925operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 5926stack was not being popped after the execution of these operators, resulting 5927in an AE_NO_RETURN_VALUE exception. 5928 5929Fixed a problem with constructs of the form Store(Index(...),...). The 5930reference object returned from Index was inadvertently resolved to an actual 5931value. This problem was introduced in version 20050114 when the behavior of 5932Store() was modified to restrict the object types that can be used as the 5933source operand (to match the ACPI specification.) 5934 5935Reduced excessive stack use within the AcpiGetObjectInfo procedure. 5936 5937Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 5938 5939Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 5940 5941Code and Data Size: Current and previous core subsystem library sizes are 5942shown below. These are the code and data sizes for the acpica.lib produced 5943by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5944any ACPI driver or OSPM code. The debug version of the code includes the 5945debug output trace mechanism and has a much larger code and data size. Note 5946that these values will vary depending on the efficiency of the compiler and 5947the compiler options used during generation. 5948 5949 Previous Release: 5950 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 5951 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 5952 Current Release: 5953 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 5954 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 5955 5956 59572) iASL Compiler/Disassembler: 5958 5959Fixed a code generation problem in the constant folding optimization code 5960where incorrect code was generated if a constant was reduced to a buffer 5961object (i.e., a reduced type 5 opcode.) 5962 5963Fixed a typechecking problem for the ToBuffer operator. Caused by an 5964incorrect return type in the internal opcode information table. 5965 5966---------------------------------------- 596725 January 2005. Summary of changes for version 20050125: 5968 59691) ACPI CA Core Subsystem: 5970 5971Fixed a recently introduced problem with the Global Lock where the 5972underlying semaphore was not created. This problem was introduced in 5973version 20050114, and caused an AE_AML_NO_OPERAND exception during an 5974Acquire() operation on _GL. 5975 5976The local object cache is now optional, and is disabled by default. Both 5977AcpiExec and the iASL compiler enable the cache because they run in user 5978mode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 5979to enable the local cache. 5980 5981Fixed an issue in the internal function AcpiUtEvaluateObject concerning the 5982optional "implicit return" support where an error was returned if no return 5983object was expected, but one was implicitly returned. AE_OK is now returned 5984in this case and the implicitly returned object is deleted. 5985AcpiUtEvaluateObject is only occasionally used, and only to execute reserved 5986methods such as _STA and _INI where the return type is known up front. 5987 5988Fixed a few issues with the internal convert-to-integer code. It now returns 5989an error if an attempt is made to convert a null string, a string of only 5990blanks/tabs, or a zero-length buffer. This affects both implicit conversion 5991and explicit conversion via the ToInteger() operator. 5992 5993The internal debug code in AcpiUtAcquireMutex has been commented out. It is 5994not needed for normal operation and should increase the performance of the 5995entire subsystem. The code remains in case it is needed for debug purposes 5996again. 5997 5998The AcpiExec source and makefile are included in the Unix/Linux package for 5999the first time. 6000 6001Code and Data Size: Current and previous core subsystem library sizes are 6002shown below. These are the code and data sizes for the acpica.lib produced 6003by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6004any ACPI driver or OSPM code. The debug version of the code includes the 6005debug output trace mechanism and has a much larger code and data size. Note 6006that these values will vary depending on the efficiency of the compiler and 6007the compiler options used during generation. 6008 6009 Previous Release: 6010 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 6011 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 6012 Current Release: 6013 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 6014 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 6015 60162) iASL Compiler/Disassembler: 6017 6018Switch/Case support: A warning is now issued if the type of the Switch value 6019cannot be determined at compile time. For example, Switch(Arg0) will 6020generate the warning, and the type is assumed to be an integer. As per the 6021ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the 6022warning. 6023 6024Switch/Case support: Implemented support for buffer and string objects as 6025the switch value. This is an ACPI 3.0 feature, now that LEqual supports 6026buffers and strings. 6027 6028Switch/Case support: The emitted code for the LEqual() comparisons now uses 6029the switch value as the first operand, not the second. The case value is now 6030the second operand, and this allows the case value to be implicitly 6031converted to the type of the switch value, not the other way around. 6032 6033Switch/Case support: Temporary variables are now emitted immediately within 6034the control method, not at the global level. This means that there are now 603536 temps available per-method, not 36 temps per-module as was the case with 6036the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 6037 6038---------------------------------------- 603914 January 2005. Summary of changes for version 20050114: 6040 6041Added 2005 copyright to all module headers. This affects every module in 6042the core subsystem, iASL compiler, and the utilities. 6043 60441) ACPI CA Core Subsystem: 6045 6046Fixed an issue with the String-to-Buffer conversion code where the string 6047null terminator was not included in the buffer after conversion, but there 6048is existing ASL that assumes the string null terminator is included. This is 6049the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 6050introduced in the previous version when the code was updated to correctly 6051set the converted buffer size as per the ACPI specification. The ACPI spec 6052is ambiguous and will be updated to specify that the null terminator must be 6053included in the converted buffer. This also affects the ToBuffer() ASL 6054operator. 6055 6056Fixed a problem with the Mid() ASL/AML operator where it did not work 6057correctly on Buffer objects. Newly created sub-buffers were not being marked 6058as initialized. 6059 6060 6061Fixed a problem in AcpiTbFindTable where incorrect string compares were 6062performed on the OemId and OemTableId table header fields. These fields are 6063not null terminated, so strncmp is now used instead of strcmp. 6064 6065Implemented a restriction on the Store() ASL/AML operator to align the 6066behavior with the ACPI specification. Previously, any object could be used 6067as the source operand. Now, the only objects that may be used are Integers, 6068Buffers, Strings, Packages, Object References, and DDB Handles. If 6069necessary, the original behavior can be restored by enabling the 6070EnableInterpreterSlack flag. 6071 6072Enhanced the optional "implicit return" support to allow an implicit return 6073value from methods that are invoked externally via the AcpiEvaluateObject 6074interface. This enables implicit returns from the _STA and _INI methods, 6075for example. 6076 6077Changed the Revision() ASL/AML operator to return the current version of the 6078AML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned 6079the supported ACPI version (This is the function of the _REV method). 6080 6081Updated the _REV predefined method to return the currently supported version 6082of ACPI, now 3. 6083 6084Implemented batch mode option for the AcpiExec utility (-b). 6085 6086Code and Data Size: Current and previous core subsystem library sizes are 6087shown below. These are the code and data sizes for the acpica.lib produced 6088by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6089any ACPI driver or OSPM code. The debug version of the code includes the 6090debug output trace mechanism and has a much larger code and data size. Note 6091that these values will vary depending on the efficiency of the compiler and 6092the compiler options used during generation. 6093 6094 Previous Release: 6095 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6096 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 6097 Current Release: 6098 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 6099 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 6100 6101---------------------------------------- 610210 December 2004. Summary of changes for version 20041210: 6103 6104ACPI 3.0 support is nearing completion in both the iASL compiler and the 6105ACPI CA core subsystem. 6106 61071) ACPI CA Core Subsystem: 6108 6109Fixed a problem in the ToDecimalString operator where the resulting string 6110length was incorrectly calculated. The length is now calculated exactly, 6111eliminating incorrect AE_STRING_LIMIT exceptions. 6112 6113Fixed a problem in the ToHexString operator to allow a maximum 200 character 6114string to be produced. 6115 6116Fixed a problem in the internal string-to-buffer and buffer-to-buffer copy 6117routine where the length of the resulting buffer was not truncated to the 6118new size (if the target buffer already existed). 6119 6120Code and Data Size: Current and previous core subsystem library sizes are 6121shown below. These are the code and data sizes for the acpica.lib produced 6122by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6123any ACPI driver or OSPM code. The debug version of the code includes the 6124debug output trace mechanism and has a much larger code and data size. Note 6125that these values will vary depending on the efficiency of the compiler and 6126the compiler options used during generation. 6127 6128 Previous Release: 6129 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6130 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 6131 Current Release: 6132 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6133 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 6134 6135 61362) iASL Compiler/Disassembler: 6137 6138Implemented the new ACPI 3.0 resource template macros - DWordSpace, 6139ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 6140Includes support in the disassembler. 6141 6142Implemented support for the new (ACPI 3.0) parameter to the Register macro, 6143AccessSize. 6144 6145Fixed a problem where the _HE resource name for the Interrupt macro was 6146referencing bit 0 instead of bit 1. 6147 6148Implemented check for maximum 255 interrupts in the Interrupt macro. 6149 6150Fixed a problem with the predefined resource descriptor names where 6151incorrect AML code was generated if the offset within the resource buffer 6152was 0 or 1. The optimizer shortened the AML code to a single byte opcode 6153but did not update the surrounding package lengths. 6154 6155Changes to the Dma macro: All channels within the channel list must be in 6156the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 6157optional (default is BusMaster). 6158 6159Implemented check for maximum 7 data bytes for the VendorShort macro. 6160 6161The ReadWrite parameter is now optional for the Memory32 and similar macros. 6162 6163---------------------------------------- 616403 December 2004. Summary of changes for version 20041203: 6165 61661) ACPI CA Core Subsystem: 6167 6168The low-level field insertion/extraction code (exfldio) has been completely 6169rewritten to eliminate unnecessary complexity, bugs, and boundary 6170conditions. 6171 6172Fixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString 6173operators where the input operand could be inadvertently deleted if no 6174conversion was necessary (e.g., if the input to ToInteger was an Integer 6175object.) 6176 6177Fixed a problem with the ToDecimalString and ToHexString where an incorrect 6178exception code was returned if the resulting string would be > 200 chars. 6179AE_STRING_LIMIT is now returned. 6180 6181Fixed a problem with the Concatenate operator where AE_OK was always 6182returned, even if the operation failed. 6183 6184Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 6185semaphores to be allocated. 6186 6187Code and Data Size: Current and previous core subsystem library sizes are 6188shown below. These are the code and data sizes for the acpica.lib produced 6189by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6190any ACPI driver or OSPM code. The debug version of the code includes the 6191debug output trace mechanism and has a much larger code and data size. Note 6192that these values will vary depending on the efficiency of the compiler and 6193the compiler options used during generation. 6194 6195 Previous Release: 6196 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6197 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6198 Current Release: 6199 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6200 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 6201 6202 62032) iASL Compiler/Disassembler: 6204 6205Fixed typechecking for the ObjectType and SizeOf operators. Problem was 6206recently introduced in 20041119. 6207 6208Fixed a problem with the ToUUID macro where the upper nybble of each buffer 6209byte was inadvertently set to zero. 6210 6211---------------------------------------- 621219 November 2004. Summary of changes for version 20041119: 6213 62141) ACPI CA Core Subsystem: 6215 6216Fixed a problem in the internal ConvertToInteger routine where new integers 6217were not truncated to 32 bits for 32-bit ACPI tables. This routine converts 6218buffers and strings to integers. 6219 6220Implemented support to store a value to an Index() on a String object. This 6221is an ACPI 2.0 feature that had not yet been implemented. 6222 6223Implemented new behavior for storing objects to individual package elements 6224(via the Index() operator). The previous behavior was to invoke the implicit 6225conversion rules if an object was already present at the index. The new 6226behavior is to simply delete any existing object and directly store the new 6227object. Although the ACPI specification seems unclear on this subject, other 6228ACPI implementations behave in this manner. (This is the root of the 6229AE_BAD_HEX_CONSTANT issue.) 6230 6231Modified the RSDP memory scan mechanism to support the extended checksum for 6232ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 6233RSDP signature is found with a valid checksum. 6234 6235Code and Data Size: Current and previous core subsystem library sizes are 6236shown below. These are the code and data sizes for the acpica.lib produced 6237by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6238any ACPI driver or OSPM code. The debug version of the code includes the 6239debug output trace mechanism and has a much larger code and data size. Note 6240that these values will vary depending on the efficiency of the compiler and 6241the compiler options used during generation. 6242 6243 Previous Release: 6244 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6245 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6246 Current Release: 6247 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6248 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6249 6250 62512) iASL Compiler/Disassembler: 6252 6253Fixed a missing semicolon in the aslcompiler.y file. 6254 6255---------------------------------------- 625605 November 2004. Summary of changes for version 20041105: 6257 62581) ACPI CA Core Subsystem: 6259 6260Implemented support for FADT revision 2. This was an interim table (between 6261ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 6262 6263Implemented optional support to allow uninitialized LocalX and ArgX 6264variables in a control method. The variables are initialized to an Integer 6265object with a value of zero. This support is enabled by setting the 6266AcpiGbl_EnableInterpreterSlack flag to TRUE. 6267 6268Implemented support for Integer objects for the SizeOf operator. Either 4 6269or 8 is returned, depending on the current integer size (32-bit or 64-bit, 6270depending on the parent table revision). 6271 6272Fixed a problem in the implementation of the SizeOf and ObjectType operators 6273where the operand was resolved to a value too early, causing incorrect 6274return values for some objects. 6275 6276Fixed some possible memory leaks during exceptional conditions. 6277 6278Code and Data Size: Current and previous core subsystem library sizes are 6279shown below. These are the code and data sizes for the acpica.lib produced 6280by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6281any ACPI driver or OSPM code. The debug version of the code includes the 6282debug output trace mechanism and has a much larger code and data size. Note 6283that these values will vary depending on the efficiency of the compiler and 6284the compiler options used during generation. 6285 6286 Previous Release: 6287 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6288 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 6289 Current Release: 6290 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6291 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6292 6293 62942) iASL Compiler/Disassembler: 6295 6296Implemented support for all ACPI 3.0 reserved names and methods. 6297 6298Implemented all ACPI 3.0 grammar elements in the front-end, including 6299support for semicolons. 6300 6301Implemented the ACPI 3.0 Function() and ToUUID() macros 6302 6303Fixed a problem in the disassembler where a Scope() operator would not be 6304emitted properly if the target of the scope was in another table. 6305 6306---------------------------------------- 630715 October 2004. Summary of changes for version 20041015: 6308 6309Note: ACPI CA is currently undergoing an in-depth and complete formal 6310evaluation to test/verify the following areas. Other suggestions are 6311welcome. This will result in an increase in the frequency of releases and 6312the number of bug fixes in the next few months. 6313 - Functional tests for all ASL/AML operators 6314 - All implicit/explicit type conversions 6315 - Bit fields and operation regions 6316 - 64-bit math support and 32-bit-only "truncated" math support 6317 - Exceptional conditions, both compiler and interpreter 6318 - Dynamic object deletion and memory leaks 6319 - ACPI 3.0 support when implemented 6320 - External interfaces to the ACPI subsystem 6321 6322 63231) ACPI CA Core Subsystem: 6324 6325Fixed two alignment issues on 64-bit platforms - within debug statements in 6326AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address 6327field within the non-aligned ACPI generic address structure. 6328 6329Fixed a problem in the Increment and Decrement operators where incorrect 6330operand resolution could result in the inadvertent modification of the 6331original integer when the integer is passed into another method as an 6332argument and the arg is then incremented/decremented. 6333 6334Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-bit 6335BCD number were truncated during conversion. 6336 6337Fixed a problem in the ToDecimal operator where the length of the resulting 6338string could be set incorrectly too long if the input operand was a Buffer 6339object. 6340 6341Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0) 6342within a buffer would prematurely terminate a compare between buffer 6343objects. 6344 6345Added a check for string overflow (>200 characters as per the ACPI 6346specification) during the Concatenate operator with two string operands. 6347 6348Code and Data Size: Current and previous core subsystem library sizes are 6349shown below. These are the code and data sizes for the acpica.lib produced 6350by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6351any ACPI driver or OSPM code. The debug version of the code includes the 6352debug output trace mechanism and has a much larger code and data size. Note 6353that these values will vary depending on the efficiency of the compiler and 6354the compiler options used during generation. 6355 6356 Previous Release: 6357 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6358 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 6359 Current Release: 6360 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6361 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 6362 6363 6364 63652) iASL Compiler/Disassembler: 6366 6367Allow the use of the ObjectType operator on uninitialized Locals and Args 6368(returns 0 as per the ACPI specification). 6369 6370Fixed a problem where the compiler would fault if there was a syntax error 6371in the FieldName of all of the various CreateXXXField operators. 6372 6373Disallow the use of lower case letters within the EISAID macro, as per the 6374ACPI specification. All EISAID strings must be of the form "UUUNNNN" Where 6375U is an uppercase letter and N is a hex digit. 6376 6377 6378---------------------------------------- 637906 October 2004. Summary of changes for version 20041006: 6380 63811) ACPI CA Core Subsystem: 6382 6383Implemented support for the ACPI 3.0 Timer operator. This ASL function 6384implements a 64-bit timer with 100 nanosecond granularity. 6385 6386Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 6387implement the ACPI 3.0 Timer operator. This allows the host OS to implement 6388the timer with the best clock available. Also, it keeps the core subsystem 6389out of the clock handling business, since the host OS (usually) performs 6390this function. 6391 6392Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 6393functions use a 64-bit address which is part of the packed ACPI Generic 6394Address Structure. Since the structure is non-aligned, the alignment macros 6395are now used to extract the address to a local variable before use. 6396 6397Fixed a problem where the ToInteger operator assumed all input strings were 6398hexadecimal. The operator now handles both decimal strings and hex strings 6399(prefixed with "0x"). 6400 6401Fixed a problem where the string length in the string object created as a 6402result of the internal ConvertToString procedure could be incorrect. This 6403potentially affected all implicit conversions and also the ToDecimalString 6404and ToHexString operators. 6405 6406Fixed two problems in the ToString operator. If the length parameter was 6407zero, an incorrect string object was created and the value of the input 6408length parameter was inadvertently changed from zero to Ones. 6409 6410Fixed a problem where the optional ResourceSource string in the ExtendedIRQ 6411resource macro was ignored. 6412 6413Simplified the interfaces to the internal division functions, reducing code 6414size and complexity. 6415 6416Code and Data Size: Current and previous core subsystem library sizes are 6417shown below. These are the code and data sizes for the acpica.lib produced 6418by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6419any ACPI driver or OSPM code. The debug version of the code includes the 6420debug output trace mechanism and has a much larger code and data size. Note 6421that these values will vary depending on the efficiency of the compiler and 6422the compiler options used during generation. 6423 6424 Previous Release: 6425 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 6426 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 6427 Current Release: 6428 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6429 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 6430 6431 64322) iASL Compiler/Disassembler: 6433 6434Implemented support for the ACPI 3.0 Timer operator. 6435 6436Fixed a problem where the Default() operator was inadvertently ignored in a 6437Switch/Case block. This was a problem in the translation of the Switch 6438statement to If...Else pairs. 6439 6440Added support to allow a standalone Return operator, with no parentheses (or 6441operands). 6442 6443Fixed a problem with code generation for the ElseIf operator where the 6444translated Else...If parse tree was improperly constructed leading to the 6445loss of some code. 6446 6447---------------------------------------- 644822 September 2004. Summary of changes for version 20040922: 6449 64501) ACPI CA Core Subsystem: 6451 6452Fixed a problem with the implementation of the LNot() operator where "Ones" 6453was not returned for the TRUE case. Changed the code to return Ones instead 6454of (!Arg) which was usually 1. This change affects iASL constant folding for 6455this operator also. 6456 6457Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 6458initialized properly -- Now zero the entire buffer in this case where the 6459buffer already exists. 6460 6461Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 6462Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 6463related code considerably. This will require changes/updates to all OS 6464interface layers (OSLs.) 6465 6466Implemented a new external interface, AcpiInstallExceptionHandler, to allow 6467a system exception handler to be installed. This handler is invoked upon any 6468run-time exception that occurs during control method execution. 6469 6470Added support for the DSDT in AcpiTbFindTable. This allows the 6471DataTableRegion() operator to access the local copy of the DSDT. 6472 6473Code and Data Size: Current and previous core subsystem library sizes are 6474shown below. These are the code and data sizes for the acpica.lib produced 6475by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6476any ACPI driver or OSPM code. The debug version of the code includes the 6477debug output trace mechanism and has a much larger code and data size. Note 6478that these values will vary depending on the efficiency of the compiler and 6479the compiler options used during generation. 6480 6481 Previous Release: 6482 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 6483 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 6484 Current Release: 6485 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 6486 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 6487 6488 64892) iASL Compiler/Disassembler: 6490 6491Fixed a problem with constant folding and the LNot operator. LNot was 6492returning 1 in the TRUE case, not Ones as per the ACPI specification. This 6493could result in the generation of an incorrect folded/reduced constant. 6494 6495End-Of-File is now allowed within a "//"-style comment. A parse error no 6496longer occurs if such a comment is at the very end of the input ASL source 6497file. 6498 6499Implemented the "-r" option to override the Revision in the table header. 6500The initial use of this option will be to simplify the evaluation of the AML 6501interpreter by allowing a single ASL source module to be compiled for either 650232-bit or 64-bit integers. 6503 6504 6505---------------------------------------- 650627 August 2004. Summary of changes for version 20040827: 6507 65081) ACPI CA Core Subsystem: 6509 6510- Implemented support for implicit object conversion in the non-numeric 6511logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 6512LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 6513the second operand is implicitly converted on the fly to match the type of 6514the first operand. For example: 6515 6516 LEqual (Source1, Source2) 6517 6518Source1 and Source2 must each evaluate to an integer, a string, or a buffer. 6519The data type of Source1 dictates the required type of Source2. Source2 is 6520implicitly converted if necessary to match the type of Source1. 6521 6522- Updated and corrected the behavior of the string conversion support. The 6523rules concerning conversion of buffers to strings (according to the ACPI 6524specification) are as follows: 6525 6526ToDecimalString - explicit byte-wise conversion of buffer to string of 6527decimal values (0-255) separated by commas. ToHexString - explicit byte-wise 6528conversion of buffer to string of hex values (0-FF) separated by commas. 6529ToString - explicit byte-wise conversion of buffer to string. Byte-by-byte 6530copy with no transform except NULL terminated. Any other implicit buffer-to- 6531string conversion - byte-wise conversion of buffer to string of hex values 6532(0-FF) separated by spaces. 6533 6534- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 6535 6536- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 6537one byte too short in the case of a node in the root scope. This could 6538cause a fault during debug output. 6539 6540- Code and Data Size: Current and previous core subsystem library sizes are 6541shown below. These are the code and data sizes for the acpica.lib produced 6542by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6543any ACPI driver or OSPM code. The debug version of the code includes the 6544debug output trace mechanism and has a much larger code and data size. Note 6545that these values will vary depending on the efficiency of the compiler and 6546the compiler options used during generation. 6547 6548 Previous Release: 6549 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 6550 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 6551 Current Release: 6552 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 6553 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 6554 6555 65562) iASL Compiler/Disassembler: 6557 6558- Fixed a Linux generation error. 6559 6560 6561---------------------------------------- 656216 August 2004. Summary of changes for version 20040816: 6563 65641) ACPI CA Core Subsystem: 6565 6566Designed and implemented support within the AML interpreter for the so- 6567called "implicit return". This support returns the result of the last ASL 6568operation within a control method, in the absence of an explicit Return() 6569operator. A few machines depend on this behavior, even though it is not 6570explicitly supported by the ASL language. It is optional support that can 6571be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 6572 6573Removed support for the PCI_Config address space from the internal low level 6574hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 6575support was not used internally, and would not work correctly anyway because 6576the PCI bus number and segment number were not supported. There are 6577separate interfaces for PCI configuration space access because of the unique 6578interface. 6579 6580Code and Data Size: Current and previous core subsystem library sizes are 6581shown below. These are the code and data sizes for the acpica.lib produced 6582by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6583any ACPI driver or OSPM code. The debug version of the code includes the 6584debug output trace mechanism and has a much larger code and data size. Note 6585that these values will vary depending on the efficiency of the compiler and 6586the compiler options used during generation. 6587 6588 Previous Release: 6589 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6590 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 6591 Current Release: 6592 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 6593 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 6594 6595 65962) iASL Compiler/Disassembler: 6597 6598Fixed a problem where constants in ASL expressions at the root level (not 6599within a control method) could be inadvertently truncated during code 6600generation. This problem was introduced in the 20040715 release. 6601 6602 6603---------------------------------------- 660415 July 2004. Summary of changes for version 20040715: 6605 66061) ACPI CA Core Subsystem: 6607 6608Restructured the internal HW GPE interfaces to pass/track the current state 6609of interrupts (enabled/disabled) in order to avoid possible deadlock and 6610increase flexibility of the interfaces. 6611 6612Implemented a "lexicographical compare" for String and Buffer objects within 6613the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 6614as per further clarification to the ACPI specification. Behavior is similar 6615to C library "strcmp". 6616 6617Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 6618external function. In the 32-bit non-debug case, the stack use has been 6619reduced from 168 bytes to 32 bytes. 6620 6621Deployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack, 6622whose purpose is to allow the AML interpreter to forgive certain bad AML 6623constructs. Default setting is FALSE. 6624 6625Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO 6626support code. If enabled, it allows field access to go beyond the end of a 6627region definition if the field is within the region length rounded up to the 6628next access width boundary (a common coding error.) 6629 6630Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 6631ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, these 6632symbols are lowercased by the latest version of the AcpiSrc tool. 6633 6634The prototypes for the PCI interfaces in acpiosxf.h have been updated to 6635rename "Register" to simply "Reg" to prevent certain compilers from 6636complaining. 6637 6638Code and Data Size: Current and previous core subsystem library sizes are 6639shown below. These are the code and data sizes for the acpica.lib produced 6640by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6641any ACPI driver or OSPM code. The debug version of the code includes the 6642debug output trace mechanism and has a much larger code and data size. Note 6643that these values will vary depending on the efficiency of the compiler and 6644the compiler options used during generation. 6645 6646 Previous Release: 6647 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6648 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 6649 Current Release: 6650 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6651 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 6652 6653 66542) iASL Compiler/Disassembler: 6655 6656Implemented full support for Package objects within the Case() operator. 6657Note: The Break() operator is currently not supported within Case blocks 6658(TermLists) as there is some question about backward compatibility with ACPI 66591.0 interpreters. 6660 6661 6662Fixed a problem where complex terms were not supported properly within the 6663Switch() operator. 6664 6665Eliminated extraneous warning for compiler-emitted reserved names of the 6666form "_T_x". (Used in Switch/Case operators.) 6667 6668Eliminated optimization messages for "_T_x" objects and small constants 6669within the DefinitionBlock operator. 6670 6671 6672---------------------------------------- 667315 June 2004. Summary of changes for version 20040615: 6674 66751) ACPI CA Core Subsystem: 6676 6677Implemented support for Buffer and String objects (as per ACPI 2.0) for the 6678following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 6679LLessEqual. 6680 6681All directory names in the entire source package are lower case, as they 6682were in earlier releases. 6683 6684Implemented "Disassemble" command in the AML debugger that will disassemble 6685a single control method. 6686 6687Code and Data Size: Current and previous core subsystem library sizes are 6688shown below. These are the code and data sizes for the acpica.lib produced 6689by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6690any ACPI driver or OSPM code. The debug version of the code includes the 6691debug output trace mechanism and has a much larger code and data size. Note 6692that these values will vary depending on the efficiency of the compiler and 6693the compiler options used during generation. 6694 6695 Previous Release: 6696 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 6697 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 6698 6699 Current Release: 6700 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6701 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 6702 6703 67042) iASL Compiler/Disassembler: 6705 6706Implemented support for Buffer and String objects (as per ACPI 2.0) for the 6707following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 6708LLessEqual. 6709 6710All directory names in the entire source package are lower case, as they 6711were in earlier releases. 6712 6713Fixed a fault when using the -g or -d<nofilename> options if the FADT was 6714not found. 6715 6716Fixed an issue with the Windows version of the compiler where later versions 6717of Windows place the FADT in the registry under the name "FADT" and not 6718"FACP" as earlier versions did. This applies when using the -g or - 6719d<nofilename> options. The compiler now looks for both strings as 6720necessary. 6721 6722Fixed a problem with compiler namepath optimization where a namepath within 6723the Scope() operator could not be optimized if the namepath was a subpath of 6724the current scope path. 6725 6726---------------------------------------- 672727 May 2004. Summary of changes for version 20040527: 6728 67291) ACPI CA Core Subsystem: 6730 6731Completed a new design and implementation for EBDA (Extended BIOS Data Area) 6732support in the RSDP scan code. The original code improperly scanned for the 6733EBDA by simply scanning from memory location 0 to 0x400. The correct method 6734is to first obtain the EBDA pointer from within the BIOS data area, then 6735scan 1K of memory starting at the EBDA pointer. There appear to be few if 6736any machines that place the RSDP in the EBDA, however. 6737 6738Integrated a fix for a possible fault during evaluation of BufferField 6739arguments. Obsolete code that was causing the problem was removed. 6740 6741Found and fixed a problem in the Field Support Code where data could be 6742corrupted on a bit field read that starts on an aligned boundary but does 6743not end on an aligned boundary. Merged the read/write "datum length" 6744calculation code into a common procedure. 6745 6746Rolled in a couple of changes to the FreeBSD-specific header. 6747 6748 6749Code and Data Size: Current and previous core subsystem library sizes are 6750shown below. These are the code and data sizes for the acpica.lib produced 6751by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6752any ACPI driver or OSPM code. The debug version of the code includes the 6753debug output trace mechanism and has a much larger code and data size. Note 6754that these values will vary depending on the efficiency of the compiler and 6755the compiler options used during generation. 6756 6757 Previous Release: 6758 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6759 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 6760 Current Release: 6761 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 6762 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 6763 6764 67652) iASL Compiler/Disassembler: 6766 6767Fixed a generation warning produced by some overly-verbose compilers for a 676864-bit constant. 6769 6770---------------------------------------- 677114 May 2004. Summary of changes for version 20040514: 6772 67731) ACPI CA Core Subsystem: 6774 6775Fixed a problem where hardware GPE enable bits sometimes not set properly 6776during and after GPE method execution. Result of 04/27 changes. 6777 6778Removed extra "clear all GPEs" when sleeping/waking. 6779 6780Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 6781AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to 6782the new AcpiEv* calls as appropriate. 6783 6784ACPI_OS_NAME was removed from the OS-specific headers. The default name is 6785now "Microsoft Windows NT" for maximum compatibility. However this can be 6786changed by modifying the acconfig.h file. 6787 6788Allow a single invocation of AcpiInstallNotifyHandler for a handler that 6789traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 6790 6791Run _INI methods on ThermalZone objects. This is against the ACPI 6792specification, but there is apparently ASL code in the field that has these 6793_INI methods, and apparently "other" AML interpreters execute them. 6794 6795Performed a full 16/32/64 bit lint that resulted in some small changes. 6796 6797Added a sleep simulation command to the AML debugger to test sleep code. 6798 6799Code and Data Size: Current and previous core subsystem library sizes are 6800shown below. These are the code and data sizes for the acpica.lib produced 6801by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6802any ACPI driver or OSPM code. The debug version of the code includes the 6803debug output trace mechanism and has a much larger code and data size. Note 6804that these values will vary depending on the efficiency of the compiler and 6805the compiler options used during generation. 6806 6807 Previous Release: 6808 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6809 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 6810 Current Release: 6811 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6812 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 6813 6814---------------------------------------- 681527 April 2004. Summary of changes for version 20040427: 6816 68171) ACPI CA Core Subsystem: 6818 6819Completed a major overhaul of the GPE handling within ACPI CA. There are 6820now three types of GPEs: wake-only, runtime-only, and combination wake/run. 6821The only GPEs allowed to be combination wake/run are for button-style 6822devices such as a control-method power button, control-method sleep button, 6823or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are not 6824referenced by any _PRW methods are marked for "runtime" and hardware 6825enabled. Any GPE that is referenced by a _PRW method is marked for "wake" 6826(and disabled at runtime). However, at sleep time, only those GPEs that 6827have been specifically enabled for wake via the AcpiEnableGpe interface will 6828actually be hardware enabled. 6829 6830A new external interface has been added, AcpiSetGpeType(), that is meant to 6831be used by device drivers to force a GPE to a particular type. It will be 6832especially useful for the drivers for the button devices mentioned above. 6833 6834Completed restructuring of the ACPI CA initialization sequence so that 6835default operation region handlers are installed before GPEs are initialized 6836and the _PRW methods are executed. This will prevent errors when the _PRW 6837methods attempt to access system memory or I/O space. 6838 6839GPE enable/disable no longer reads the GPE enable register. We now keep the 6840enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 6841thus no longer depend on the hardware to maintain these bits. 6842 6843Always clear the wake status and fixed/GPE status bits before sleep, even 6844for state S5. 6845 6846Improved the AML debugger output for displaying the GPE blocks and their 6847current status. 6848 6849Added new strings for the _OSI method, of the form "Windows 2001 SPx" where 6850x = 0,1,2,3,4. 6851 6852Fixed a problem where the physical address was incorrectly calculated when 6853the Load() operator was used to directly load from an Operation Region (vs. 6854loading from a Field object.) Also added check for minimum table length for 6855this case. 6856 6857Fix for multiple mutex acquisition. Restore original thread SyncLevel on 6858mutex release. 6859 6860Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 6861consistency with the other fields returned. 6862 6863Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 6864structure for each GPE in the system, so the size of this structure is 6865important. 6866 6867CPU stack requirement reduction: Cleaned up the method execution and object 6868evaluation paths so that now a parameter structure is passed, instead of 6869copying the various method parameters over and over again. 6870 6871In evregion.c: Correctly exit and reenter the interpreter region if and 6872only if dispatching an operation region request to a user-installed handler. 6873Do not exit/reenter when dispatching to a default handler (e.g., default 6874system memory or I/O handlers) 6875 6876 6877Notes for updating drivers for the new GPE support. The following changes 6878must be made to ACPI-related device drivers that are attached to one or more 6879GPEs: (This information will be added to the ACPI CA Programmer Reference.) 6880 68811) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 6882explicitly call AcpiEnableGpe. 68832) There is a new interface called AcpiSetGpeType. This should be called 6884before enabling the GPE. Also, this interface will automatically disable 6885the GPE if it is currently enabled. 68863) AcpiEnableGpe no longer supports a GPE type flag. 6887 6888Specific drivers that must be changed: 68891) EC driver: 6890 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 6891AeGpeHandler, NULL); 6892 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 6893 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 6894 68952) Button Drivers (Power, Lid, Sleep): 6896Run _PRW method under parent device 6897If _PRW exists: /* This is a control-method button */ 6898 Extract GPE number and possibly GpeDevice 6899 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 6900 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 6901 6902For all other devices that have _PRWs, we automatically set the GPE type to 6903ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This 6904must be done on a selective basis, usually requiring some kind of user app 6905to allow the user to pick the wake devices. 6906 6907 6908Code and Data Size: Current and previous core subsystem library sizes are 6909shown below. These are the code and data sizes for the acpica.lib produced 6910by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6911any ACPI driver or OSPM code. The debug version of the code includes the 6912debug output trace mechanism and has a much larger code and data size. Note 6913that these values will vary depending on the efficiency of the compiler and 6914the compiler options used during generation. 6915 6916 Previous Release: 6917 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 6918 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 6919 Current Release: 6920 6921 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6922 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 6923 6924 6925 6926---------------------------------------- 692702 April 2004. Summary of changes for version 20040402: 6928 69291) ACPI CA Core Subsystem: 6930 6931Fixed an interpreter problem where an indirect store through an ArgX 6932parameter was incorrectly applying the "implicit conversion rules" during 6933the store. From the ACPI specification: "If the target is a method local or 6934argument (LocalX or ArgX), no conversion is performed and the result is 6935stored directly to the target". The new behavior is to disable implicit 6936conversion during ALL stores to an ArgX. 6937 6938Changed the behavior of the _PRW method scan to ignore any and all errors 6939returned by a given _PRW. This prevents the scan from aborting from the 6940failure of any single _PRW. 6941 6942Moved the runtime configuration parameters from the global init procedure to 6943static variables in acglobal.h. This will allow the host to override the 6944default values easily. 6945 6946Code and Data Size: Current and previous core subsystem library sizes are 6947shown below. These are the code and data sizes for the acpica.lib produced 6948by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6949any ACPI driver or OSPM code. The debug version of the code includes the 6950debug output trace mechanism and has a much larger code and data size. Note 6951that these values will vary depending on the efficiency of the compiler and 6952the compiler options used during generation. 6953 6954 Previous Release: 6955 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 6956 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 6957 Current Release: 6958 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 6959 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 6960 6961 69622) iASL Compiler/Disassembler: 6963 6964iASL now fully disassembles SSDTs. However, External() statements are not 6965generated automatically for unresolved symbols at this time. This is a 6966planned feature for future implementation. 6967 6968Fixed a scoping problem in the disassembler that occurs when the type of the 6969target of a Scope() operator is overridden. This problem caused an 6970incorrectly nested internal namespace to be constructed. 6971 6972Any warnings or errors that are emitted during disassembly are now commented 6973out automatically so that the resulting file can be recompiled without any 6974hand editing. 6975 6976---------------------------------------- 697726 March 2004. Summary of changes for version 20040326: 6978 69791) ACPI CA Core Subsystem: 6980 6981Implemented support for "wake" GPEs via interaction between GPEs and the 6982_PRW methods. Every GPE that is pointed to by one or more _PRWs is 6983identified as a WAKE GPE and by default will no longer be enabled at 6984runtime. Previously, we were blindly enabling all GPEs with a corresponding 6985_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. We 6986believe this has been the cause of thousands of "spurious" GPEs on some 6987systems. 6988 6989This new GPE behavior is can be reverted to the original behavior (enable 6990ALL GPEs at runtime) via a runtime flag. 6991 6992Fixed a problem where aliased control methods could not access objects 6993properly. The proper scope within the namespace was not initialized 6994(transferred to the target of the aliased method) before executing the 6995target method. 6996 6997Fixed a potential race condition on internal object deletion on the return 6998object in AcpiEvaluateObject. 6999 7000Integrated a fix for resource descriptors where both _MEM and _MTP were 7001being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 7002wide, 0x0F instead of 0x03.) 7003 7004Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a 7005fault in some cases. 7006 7007Updated Notify() values for debug statements in evmisc.c 7008 7009Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 7010 7011Code and Data Size: Current and previous core subsystem library sizes are 7012shown below. These are the code and data sizes for the acpica.lib produced 7013by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7014any ACPI driver or OSPM code. The debug version of the code includes the 7015debug output trace mechanism and has a much larger code and data size. Note 7016that these values will vary depending on the efficiency of the compiler and 7017the compiler options used during generation. 7018 7019 Previous Release: 7020 7021 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 7022 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 7023 Current Release: 7024 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 7025 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 7026 7027---------------------------------------- 702811 March 2004. Summary of changes for version 20040311: 7029 70301) ACPI CA Core Subsystem: 7031 7032Fixed a problem where errors occurring during the parse phase of control 7033method execution did not abort cleanly. For example, objects created and 7034installed in the namespace were not deleted. This caused all subsequent 7035invocations of the method to return the AE_ALREADY_EXISTS exception. 7036 7037Implemented a mechanism to force a control method to "Serialized" execution 7038if the method attempts to create namespace objects. (The root of the 7039AE_ALREADY_EXISTS problem.) 7040 7041Implemented support for the predefined _OSI "internal" control method. 7042Initial supported strings are "Linux", "Windows 2000", "Windows 2001", and 7043"Windows 2001.1", and can be easily upgraded for new strings as necessary. 7044This feature will allow "other" operating systems to execute the fully 7045tested, "Windows" code path through the ASL code 7046 7047Global Lock Support: Now allows multiple acquires and releases with any 7048internal thread. Removed concept of "owning thread" for this special mutex. 7049 7050Fixed two functions that were inappropriately declaring large objects on the 7051CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage during 7052method execution considerably. 7053 7054Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 7055S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 7056 7057Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 7058defined on the machine. 7059 7060Implemented two runtime options: One to force all control method execution 7061to "Serialized" to mimic Windows behavior, another to disable _OSI support 7062if it causes problems on a given machine. 7063 7064Code and Data Size: Current and previous core subsystem library sizes are 7065shown below. These are the code and data sizes for the acpica.lib produced 7066by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7067any ACPI driver or OSPM code. The debug version of the code includes the 7068debug output trace mechanism and has a much larger code and data size. Note 7069that these values will vary depending on the efficiency of the compiler and 7070the compiler options used during generation. 7071 7072 Previous Release: 7073 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 7074 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 7075 Current Release: 7076 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 7077 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 7078 70792) iASL Compiler/Disassembler: 7080 7081Fixed an array size problem for FreeBSD that would cause the compiler to 7082fault. 7083 7084---------------------------------------- 708520 February 2004. Summary of changes for version 20040220: 7086 7087 70881) ACPI CA Core Subsystem: 7089 7090Implemented execution of _SxD methods for Device objects in the 7091GetObjectInfo interface. 7092 7093Fixed calls to _SST method to pass the correct arguments. 7094 7095Added a call to _SST on wake to restore to "working" state. 7096 7097Check for End-Of-Buffer failure case in the WalkResources interface. 7098 7099Integrated fix for 64-bit alignment issue in acglobal.h by moving two 7100structures to the beginning of the file. 7101 7102After wake, clear GPE status register(s) before enabling GPEs. 7103 7104After wake, clear/enable power button. (Perhaps we should clear/enable all 7105fixed events upon wake.) 7106 7107Fixed a couple of possible memory leaks in the Namespace manager. 7108 7109Integrated latest acnetbsd.h file. 7110 7111---------------------------------------- 711211 February 2004. Summary of changes for version 20040211: 7113 7114 71151) ACPI CA Core Subsystem: 7116 7117Completed investigation and implementation of the call-by-reference 7118mechanism for control method arguments. 7119 7120Fixed a problem where a store of an object into an indexed package could 7121fail if the store occurs within a different method than the method that 7122created the package. 7123 7124Fixed a problem where the ToDecimal operator could return incorrect results. 7125 7126Fixed a problem where the CopyObject operator could fail on some of the more 7127obscure objects (e.g., Reference objects.) 7128 7129Improved the output of the Debug object to display buffer, package, and 7130index objects. 7131 7132Fixed a problem where constructs of the form "RefOf (ArgX)" did not return 7133the expected result. 7134 7135Added permanent ACPI_REPORT_ERROR macros for all instances of the 7136ACPI_AML_INTERNAL exception. 7137 7138Integrated latest version of acfreebsd.h 7139 7140---------------------------------------- 714116 January 2004. Summary of changes for version 20040116: 7142 7143The purpose of this release is primarily to update the copyright years in 7144each module, thus causing a huge number of diffs. There are a few small 7145functional changes, however. 7146 71471) ACPI CA Core Subsystem: 7148 7149Improved error messages when there is a problem finding one or more of the 7150required base ACPI tables 7151 7152Reintroduced the definition of APIC_HEADER in actbl.h 7153 7154Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 7155 7156Removed extraneous reference to NewObj in dsmthdat.c 7157 71582) iASL compiler 7159 7160Fixed a problem introduced in December that disabled the correct disassembly 7161of Resource Templates 7162 7163 7164---------------------------------------- 716503 December 2003. Summary of changes for version 20031203: 7166 71671) ACPI CA Core Subsystem: 7168 7169Changed the initialization of Operation Regions during subsystem 7170init to perform two entire walks of the ACPI namespace; The first 7171to initialize the regions themselves, the second to execute the 7172_REG methods. This fixed some interdependencies across _REG 7173methods found on some machines. 7174 7175Fixed a problem where a Store(Local0, Local1) could simply update 7176the object reference count, and not create a new copy of the 7177object if the Local1 is uninitialized. 7178 7179Implemented support for the _SST reserved method during sleep 7180transitions. 7181 7182Implemented support to clear the SLP_TYP and SLP_EN bits when 7183waking up, this is apparently required by some machines. 7184 7185When sleeping, clear the wake status only if SleepState is not S5. 7186 7187Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 7188pointer arithmetic advanced a string pointer too far. 7189 7190Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 7191could be returned if the requested table has not been loaded. 7192 7193Within the support for IRQ resources, restructured the handling of 7194the active and edge/level bits. 7195 7196Fixed a few problems in AcpiPsxExecute() where memory could be 7197leaked under certain error conditions. 7198 7199Improved error messages for the cases where the ACPI mode could 7200not be entered. 7201 7202Code and Data Size: Current and previous core subsystem library 7203sizes are shown below. These are the code and data sizes for the 7204acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7205these values do not include any ACPI driver or OSPM code. The 7206debug version of the code includes the debug output trace 7207mechanism and has a much larger code and data size. Note that 7208these values will vary depending on the efficiency of the compiler 7209and the compiler options used during generation. 7210 7211 Previous Release (20031029): 7212 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 7213 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 7214 Current Release: 7215 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 7216 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 7217 72182) iASL Compiler/Disassembler: 7219 7220Implemented a fix for the iASL disassembler where a bad index was 7221generated. This was most noticeable on 64-bit platforms 7222 7223 7224---------------------------------------- 722529 October 2003. Summary of changes for version 20031029: 7226 72271) ACPI CA Core Subsystem: 7228 7229 7230Fixed a problem where a level-triggered GPE with an associated 7231_Lxx control method was incorrectly cleared twice. 7232 7233Fixed a problem with the Field support code where an access can 7234occur beyond the end-of-region if the field is non-aligned but 7235extends to the very end of the parent region (resulted in an 7236AE_AML_REGION_LIMIT exception.) 7237 7238Fixed a problem with ACPI Fixed Events where an RT Clock handler 7239would not get invoked on an RTC event. The RTC event bitmasks for 7240the PM1 registers were not being initialized properly. 7241 7242Implemented support for executing _STA and _INI methods for 7243Processor objects. Although this is currently not part of the 7244ACPI specification, there is existing ASL code that depends on the 7245init-time execution of these methods. 7246 7247Implemented and deployed a GetDescriptorName function to decode 7248the various types of internal descriptors. Guards against null 7249descriptors during debug output also. 7250 7251Implemented and deployed a GetNodeName function to extract the 4- 7252character namespace node name. This function simplifies the debug 7253and error output, as well as guarding against null pointers during 7254output. 7255 7256Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 7257simplify the debug and error output of 64-bit integers. This 7258macro replaces the HIDWORD and LODWORD macros for dumping these 7259integers. 7260 7261Updated the implementation of the Stall() operator to only call 7262AcpiOsStall(), and also return an error if the operand is larger 7263than 255. This preserves the required behavior of not 7264relinquishing the processor, as would happen if AcpiOsSleep() was 7265called for "long stalls". 7266 7267Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 7268initialized are now treated as NOOPs. 7269 7270Cleaned up a handful of warnings during 64-bit generation. 7271 7272Fixed a reported error where and incorrect GPE number was passed 7273to the GPE dispatch handler. This value is only used for error 7274output, however. Used this opportunity to clean up and streamline 7275the GPE dispatch code. 7276 7277Code and Data Size: Current and previous core subsystem library 7278sizes are shown below. These are the code and data sizes for the 7279acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7280these values do not include any ACPI driver or OSPM code. The 7281 7282debug version of the code includes the debug output trace 7283mechanism and has a much larger code and data size. Note that 7284these values will vary depending on the efficiency of the compiler 7285and the compiler options used during generation. 7286 7287 Previous Release (20031002): 7288 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 7289 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 7290 Current Release: 7291 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 7292 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 7293 7294 72952) iASL Compiler/Disassembler: 7296 7297Updated the iASL compiler to return an error if the operand to the 7298Stall() operator is larger than 255. 7299 7300 7301---------------------------------------- 730202 October 2003. Summary of changes for version 20031002: 7303 7304 73051) ACPI CA Core Subsystem: 7306 7307Fixed a problem with Index Fields where the index was not 7308incremented for fields that require multiple writes to the 7309index/data registers (Fields that are wider than the data 7310register.) 7311 7312Fixed a problem with all Field objects where a write could go 7313beyond the end-of-field if the field was larger than the access 7314granularity and therefore required multiple writes to complete the 7315request. An extra write beyond the end of the field could happen 7316inadvertently. 7317 7318Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 7319would incorrectly be returned if the width of the Data Register 7320was larger than the specified field access width. 7321 7322Completed fixes for LoadTable() and Unload() and verified their 7323operation. Implemented full support for the "DdbHandle" object 7324throughout the ACPI CA subsystem. 7325 7326Implemented full support for the MADT and ECDT tables in the ACPI 7327CA header files. Even though these tables are not directly 7328consumed by ACPI CA, the header definitions are useful for ACPI 7329device drivers. 7330 7331Integrated resource descriptor fixes posted to the Linux ACPI 7332list. This included checks for minimum descriptor length, and 7333support for trailing NULL strings within descriptors that have 7334optional string elements. 7335 7336Code and Data Size: Current and previous core subsystem library 7337sizes are shown below. These are the code and data sizes for the 7338acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7339these values do not include any ACPI driver or OSPM code. The 7340debug version of the code includes the debug output trace 7341mechanism and has a much larger code and data size. Note that 7342these values will vary depending on the efficiency of the compiler 7343and the compiler options used during generation. 7344 7345 Previous Release (20030918): 7346 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 7347 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 7348 Current Release: 7349 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 7350 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 7351 7352 73532) iASL Compiler: 7354 7355Implemented detection of non-ASCII characters within the input 7356source ASL file. This catches attempts to compile binary (AML) 7357files early in the compile, with an informative error message. 7358 7359Fixed a problem where the disassembler would fault if the output 7360filename could not be generated or if the output file could not be 7361opened. 7362 7363---------------------------------------- 736418 September 2003. Summary of changes for version 20030918: 7365 7366 73671) ACPI CA Core Subsystem: 7368 7369Found and fixed a longstanding problem with the late execution of 7370the various deferred AML opcodes (such as Operation Regions, 7371Buffer Fields, Buffers, and Packages). If the name string 7372specified for the name of the new object placed the object in a 7373scope other than the current scope, the initialization/execution 7374of the opcode failed. The solution to this problem was to 7375implement a mechanism where the late execution of such opcodes 7376does not attempt to lookup/create the name a second time in an 7377incorrect scope. This fixes the "region size computed 7378incorrectly" problem. 7379 7380Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 7381Global Lock AE_BAD_PARAMETER error. 7382 7383Fixed several 64-bit issues with prototypes, casting and data 7384types. 7385 7386Removed duplicate prototype from acdisasm.h 7387 7388Fixed an issue involving EC Operation Region Detach (Shaohua Li) 7389 7390Code and Data Size: Current and previous core subsystem library 7391sizes are shown below. These are the code and data sizes for the 7392acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7393these values do not include any ACPI driver or OSPM code. The 7394debug version of the code includes the debug output trace 7395mechanism and has a much larger code and data size. Note that 7396these values will vary depending on the efficiency of the compiler 7397and the compiler options used during generation. 7398 7399 Previous Release: 7400 7401 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 7402 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 7403 Current Release: 7404 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 7405 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 7406 7407 74082) Linux: 7409 7410Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 7411correct sleep time in seconds. 7412 7413---------------------------------------- 741414 July 2003. Summary of changes for version 20030619: 7415 74161) ACPI CA Core Subsystem: 7417 7418Parse SSDTs in order discovered, as opposed to reverse order 7419(Hrvoje Habjanic) 7420 7421Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 7422Klausner, 7423 Nate Lawson) 7424 7425 74262) Linux: 7427 7428Dynamically allocate SDT list (suggested by Andi Kleen) 7429 7430proc function return value cleanups (Andi Kleen) 7431 7432Correctly handle NMI watchdog during long stalls (Andrew Morton) 7433 7434Make it so acpismp=force works (reported by Andrew Morton) 7435 7436 7437---------------------------------------- 743819 June 2003. Summary of changes for version 20030619: 7439 74401) ACPI CA Core Subsystem: 7441 7442Fix To/FromBCD, eliminating the need for an arch-specific #define. 7443 7444Do not acquire a semaphore in the S5 shutdown path. 7445 7446Fix ex_digits_needed for 0. (Takayoshi Kochi) 7447 7448Fix sleep/stall code reversal. (Andi Kleen) 7449 7450Revert a change having to do with control method calling 7451semantics. 7452 74532) Linux: 7454 7455acpiphp update (Takayoshi Kochi) 7456 7457Export acpi_disabled for sonypi (Stelian Pop) 7458 7459Mention acpismp=force in config help 7460 7461Re-add acpitable.c and acpismp=force. This improves backwards 7462 7463compatibility and also cleans up the code to a significant degree. 7464 7465Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 7466 7467---------------------------------------- 746822 May 2003. Summary of changes for version 20030522: 7469 74701) ACPI CA Core Subsystem: 7471 7472Found and fixed a reported problem where an AE_NOT_FOUND error 7473occurred occasionally during _BST evaluation. This turned out to 7474be an Owner ID allocation issue where a called method did not get 7475a new ID assigned to it. Eventually, (after 64k calls), the Owner 7476ID UINT16 would wraparound so that the ID would be the same as the 7477caller's and the called method would delete the caller's 7478namespace. 7479 7480Implemented extended error reporting for control methods that are 7481aborted due to a run-time exception. Output includes the exact 7482AML instruction that caused the method abort, a dump of the method 7483locals and arguments at the time of the abort, and a trace of all 7484nested control method calls. 7485 7486Modified the interpreter to allow the creation of buffers of zero 7487length from the AML code. Implemented new code to ensure that no 7488attempt is made to actually allocate a memory buffer (of length 7489zero) - instead, a simple buffer object with a NULL buffer pointer 7490and length zero is created. A warning is no longer issued when 7491the AML attempts to create a zero-length buffer. 7492 7493Implemented a workaround for the "leading asterisk issue" in 7494_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 7495asterisk is automatically removed if present in any HID, UID, or 7496CID strings. The iASL compiler will still flag this asterisk as 7497an error, however. 7498 7499Implemented full support for _CID methods that return a package of 7500multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 7501now additionally returns a device _CID list if present. This 7502required a change to the external interface in order to pass an 7503ACPI_BUFFER object as a parameter since the _CID list is of 7504variable length. 7505 7506Fixed a problem with the new AE_SAME_HANDLER exception where 7507handler initialization code did not know about this exception. 7508 7509Code and Data Size: Current and previous core subsystem library 7510sizes are shown below. These are the code and data sizes for the 7511acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7512these values do not include any ACPI driver or OSPM code. The 7513debug version of the code includes the debug output trace 7514mechanism and has a much larger code and data size. Note that 7515these values will vary depending on the efficiency of the compiler 7516and the compiler options used during generation. 7517 7518 Previous Release (20030509): 7519 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 7520 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 7521 Current Release: 7522 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 7523 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 7524 7525 75262) Linux: 7527 7528Fixed a bug in which we would reinitialize the ACPI interrupt 7529after it was already working, thus disabling all ACPI and the IRQs 7530for any other device sharing the interrupt. (Thanks to Stian 7531Jordet) 7532 7533Toshiba driver update (John Belmonte) 7534 7535Return only 0 or 1 for our interrupt handler status (Andrew 7536Morton) 7537 7538 75393) iASL Compiler: 7540 7541Fixed a reported problem where multiple (nested) ElseIf() 7542statements were not handled correctly by the compiler, resulting 7543in incorrect warnings and incorrect AML code. This was a problem 7544in both the ASL parser and the code generator. 7545 7546 75474) Documentation: 7548 7549Added changes to existing interfaces, new exception codes, and new 7550text concerning reference count object management versus garbage 7551collection. 7552 7553---------------------------------------- 755409 May 2003. Summary of changes for version 20030509. 7555 7556 75571) ACPI CA Core Subsystem: 7558 7559Changed the subsystem initialization sequence to hold off 7560installation of address space handlers until the hardware has been 7561initialized and the system has entered ACPI mode. This is because 7562the installation of space handlers can cause _REG methods to be 7563run. Previously, the _REG methods could potentially be run before 7564ACPI mode was enabled. 7565 7566Fixed some memory leak issues related to address space handler and 7567notify handler installation. There were some problems with the 7568reference count mechanism caused by the fact that the handler 7569objects are shared across several namespace objects. 7570 7571Fixed a reported problem where reference counts within the 7572namespace were not properly updated when named objects created by 7573method execution were deleted. 7574 7575Fixed a reported problem where multiple SSDTs caused a deletion 7576issue during subsystem termination. Restructured the table data 7577structures to simplify the linked lists and the related code. 7578 7579Fixed a problem where the table ID associated with secondary 7580tables (SSDTs) was not being propagated into the namespace objects 7581created by those tables. This would only present a problem for 7582tables that are unloaded at run-time, however. 7583 7584Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 7585type as the length parameter (instead of UINT32). 7586 7587Solved a long-standing problem where an ALREADY_EXISTS error 7588appears on various systems. This problem could happen when there 7589are multiple PCI_Config operation regions under a single PCI root 7590bus. This doesn't happen very frequently, but there are some 7591systems that do this in the ASL. 7592 7593Fixed a reported problem where the internal DeleteNode function 7594was incorrectly handling the case where a namespace node was the 7595first in the parent's child list, and had additional peers (not 7596the only child, but first in the list of children.) 7597 7598Code and Data Size: Current core subsystem library sizes are shown 7599below. These are the code and data sizes for the acpica.lib 7600produced by the Microsoft Visual C++ 6.0 compiler, and these 7601values do not include any ACPI driver or OSPM code. The debug 7602version of the code includes the debug output trace mechanism and 7603has a much larger code and data size. Note that these values will 7604vary depending on the efficiency of the compiler and the compiler 7605options used during generation. 7606 7607 Previous Release 7608 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 7609 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 7610 Current Release: 7611 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 7612 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 7613 7614 76152) Linux: 7616 7617Allow ":" in OS override string (Ducrot Bruno) 7618 7619Kobject fix (Greg KH) 7620 7621 76223 iASL Compiler/Disassembler: 7623 7624Fixed a problem in the generation of the C source code files (AML 7625is emitted in C source statements for BIOS inclusion) where the 7626Ascii dump that appears within a C comment at the end of each line 7627could cause a compile time error if the AML sequence happens to 7628have an open comment or close comment sequence embedded. 7629 7630 7631---------------------------------------- 763224 April 2003. Summary of changes for version 20030424. 7633 7634 76351) ACPI CA Core Subsystem: 7636 7637Support for big-endian systems has been implemented. Most of the 7638support has been invisibly added behind big-endian versions of the 7639ACPI_MOVE_* macros. 7640 7641Fixed a problem in AcpiHwDisableGpeBlock() and 7642AcpiHwClearGpeBlock() where an incorrect offset was passed to the 7643low level hardware write routine. The offset parameter was 7644actually eliminated from the low level read/write routines because 7645they had become obsolete. 7646 7647Fixed a problem where a handler object was deleted twice during 7648the removal of a fixed event handler. 7649 7650 76512) Linux: 7652 7653A fix for SMP systems with link devices was contributed by 7654 7655Compaq's Dan Zink. 7656 7657(2.5) Return whether we handled the interrupt in our IRQ handler. 7658(Linux ISRs no longer return void, so we can propagate the handler 7659return value from the ACPI CA core back to the OS.) 7660 7661 7662 76633) Documentation: 7664 7665The ACPI CA Programmer Reference has been updated to reflect new 7666interfaces and changes to existing interfaces. 7667 7668---------------------------------------- 766928 March 2003. Summary of changes for version 20030328. 7670 76711) ACPI CA Core Subsystem: 7672 7673The GPE Block Device support has been completed. New interfaces 7674are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 7675interfaces (enable, disable, clear, getstatus) have been split 7676into separate interfaces for Fixed Events and General Purpose 7677Events (GPEs) in order to support GPE Block Devices properly. 7678 7679Fixed a problem where the error message "Failed to acquire 7680semaphore" would appear during operations on the embedded 7681controller (EC). 7682 7683Code and Data Size: Current core subsystem library sizes are shown 7684below. These are the code and data sizes for the acpica.lib 7685produced by the Microsoft Visual C++ 6.0 compiler, and these 7686values do not include any ACPI driver or OSPM code. The debug 7687version of the code includes the debug output trace mechanism and 7688has a much larger code and data size. Note that these values will 7689vary depending on the efficiency of the compiler and the compiler 7690options used during generation. 7691 7692 Previous Release 7693 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 7694 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 7695 Current Release: 7696 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 7697 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 7698 7699 7700---------------------------------------- 770128 February 2003. Summary of changes for version 20030228. 7702 7703 77041) ACPI CA Core Subsystem: 7705 7706The GPE handling and dispatch code has been completely overhauled 7707in preparation for support of GPE Block Devices (ID ACPI0006). 7708This affects internal data structures and code only; there should 7709be no differences visible externally. One new file has been 7710added, evgpeblk.c 7711 7712The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 7713fields that are used to determine the GPE block lengths. The 7714REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 7715structures are ignored. This is per the ACPI specification but it 7716isn't very clear. The full 256 Block 0/1 GPEs are now supported 7717(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 7718 7719In the SCI interrupt handler, removed the read of the PM1_CONTROL 7720register to look at the SCI_EN bit. On some machines, this read 7721causes an SMI event and greatly slows down SCI events. (This may 7722in fact be the cause of slow battery status response on some 7723systems.) 7724 7725Fixed a problem where a store of a NULL string to a package object 7726could cause the premature deletion of the object. This was seen 7727during execution of the battery _BIF method on some systems, 7728resulting in no battery data being returned. 7729 7730Added AcpiWalkResources interface to simplify parsing of resource 7731lists. 7732 7733Code and Data Size: Current core subsystem library sizes are shown 7734below. These are the code and data sizes for the acpica.lib 7735produced by the Microsoft Visual C++ 6.0 compiler, and these 7736values do not include any ACPI driver or OSPM code. The debug 7737version of the code includes the debug output trace mechanism and 7738has a much larger code and data size. Note that these values will 7739vary depending on the efficiency of the compiler and the compiler 7740options used during generation. 7741 7742 Previous Release 7743 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7744 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7745 Current Release: 7746 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 7747 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 7748 7749 77502) Linux 7751 7752S3 fixes (Ole Rohne) 7753 7754Update ACPI PHP driver with to use new acpi_walk_resource API 7755(Bjorn Helgaas) 7756 7757Add S4BIOS support (Pavel Machek) 7758 7759Map in entire table before performing checksum (John Stultz) 7760 7761Expand the mem= cmdline to allow the specification of reserved and 7762ACPI DATA blocks (Pavel Machek) 7763 7764Never use ACPI on VISWS 7765 7766Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 7767 7768Revert a change that allowed P_BLK lengths to be 4 or 5. This is 7769causing us to think that some systems support C2 when they really 7770don't. 7771 7772Do not count processor objects for non-present CPUs (Thanks to 7773Dominik Brodowski) 7774 7775 77763) iASL Compiler: 7777 7778Fixed a problem where ASL include files could not be found and 7779opened. 7780 7781Added support for the _PDC reserved name. 7782 7783 7784---------------------------------------- 778522 January 2003. Summary of changes for version 20030122. 7786 7787 77881) ACPI CA Core Subsystem: 7789 7790Added a check for constructs of the form: Store (Local0, Local0) 7791where Local0 is not initialized. Apparently, some BIOS 7792programmers believe that this is a NOOP. Since this store doesn't 7793do anything anyway, the new prototype behavior will ignore this 7794error. This is a case where we can relax the strict checking in 7795the interpreter in the name of compatibility. 7796 7797 77982) Linux 7799 7800The AcpiSrc Source Conversion Utility has been released with the 7801Linux package for the first time. This is the utility that is 7802used to convert the ACPI CA base source code to the Linux version. 7803 7804(Both) Handle P_BLK lengths shorter than 6 more gracefully 7805 7806(Both) Move more headers to include/acpi, and delete an unused 7807header. 7808 7809(Both) Move drivers/acpi/include directory to include/acpi 7810 7811(Both) Boot functions don't use cmdline, so don't pass it around 7812 7813(Both) Remove include of unused header (Adrian Bunk) 7814 7815(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 7816the 7817former now also includes the latter, acpiphp.h only needs the one, 7818now. 7819 7820(2.5) Make it possible to select method of bios restoring after S3 7821resume. [=> no more ugly ifdefs] (Pavel Machek) 7822 7823(2.5) Make proc write interfaces work (Pavel Machek) 7824 7825(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 7826 7827(2.5) Break out ACPI Perf code into its own module, under cpufreq 7828(Dominik Brodowski) 7829 7830(2.4) S4BIOS support (Ducrot Bruno) 7831 7832(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 7833Visinoni) 7834 7835 78363) iASL Compiler: 7837 7838Added support to disassemble SSDT and PSDTs. 7839 7840Implemented support to obtain SSDTs from the Windows registry if 7841available. 7842 7843 7844---------------------------------------- 784509 January 2003. Summary of changes for version 20030109. 7846 78471) ACPI CA Core Subsystem: 7848 7849Changed the behavior of the internal Buffer-to-String conversion 7850function. The current ACPI specification states that the contents 7851of the buffer are "converted to a string of two-character 7852hexadecimal numbers, each separated by a space". Unfortunately, 7853this definition is not backwards compatible with existing ACPI 1.0 7854implementations (although the behavior was not defined in the ACPI 78551.0 specification). The new behavior simply copies data from the 7856buffer to the string until a null character is found or the end of 7857the buffer is reached. The new String object is always null 7858terminated. This problem was seen during the generation of _BIF 7859battery data where incorrect strings were returned for battery 7860type, etc. This will also require an errata to the ACPI 7861specification. 7862 7863Renamed all instances of NATIVE_UINT and NATIVE_INT to 7864ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 7865 7866Copyright in all module headers (both Linux and non-Linux) has be 7867updated to 2003. 7868 7869Code and Data Size: Current core subsystem library sizes are shown 7870below. These are the code and data sizes for the acpica.lib 7871produced by the Microsoft Visual C++ 6.0 compiler, and these 7872values do not include any ACPI driver or OSPM code. The debug 7873version of the code includes the debug output trace mechanism and 7874has a much larger code and data size. Note that these values will 7875vary depending on the efficiency of the compiler and the compiler 7876options used during generation. 7877 7878 Previous Release 7879 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7880 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7881 Current Release: 7882 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7883 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7884 7885 78862) Linux 7887 7888Fixed an oops on module insertion/removal (Matthew Tippett) 7889 7890(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 7891 7892(2.5) Replace pr_debug (Randy Dunlap) 7893 7894(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 7895 7896(Both) Eliminate spawning of thread from timer callback, in favor 7897of schedule_work() 7898 7899(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 7900 7901(Both) Added define for Fixed Function HW region (Matthew Wilcox) 7902 7903(Both) Add missing statics to button.c (Pavel Machek) 7904 7905Several changes have been made to the source code translation 7906utility that generates the Linux Code in order to make the code 7907more "Linux-like": 7908 7909All typedefs on structs and unions have been removed in keeping 7910with the Linux coding style. 7911 7912Removed the non-Linux SourceSafe module revision number from each 7913module header. 7914 7915Completed major overhaul of symbols to be lowercased for linux. 7916Doubled the number of symbols that are lowercased. 7917 7918Fixed a problem where identifiers within procedure headers and 7919within quotes were not fully lower cased (they were left with a 7920starting capital.) 7921 7922Some C macros whose only purpose is to allow the generation of 16- 7923bit code are now completely removed in the Linux code, increasing 7924readability and maintainability. 7925 7926---------------------------------------- 7927 792812 December 2002. Summary of changes for version 20021212. 7929 7930 79311) ACPI CA Core Subsystem: 7932 7933Fixed a problem where the creation of a zero-length AML Buffer 7934would cause a fault. 7935 7936Fixed a problem where a Buffer object that pointed to a static AML 7937buffer (in an ACPI table) could inadvertently be deleted, causing 7938memory corruption. 7939 7940Fixed a problem where a user buffer (passed in to the external 7941ACPI CA interfaces) could be overwritten if the buffer was too 7942small to complete the operation, causing memory corruption. 7943 7944Fixed a problem in the Buffer-to-String conversion code where a 7945string of length one was always returned, regardless of the size 7946of the input Buffer object. 7947 7948Removed the NATIVE_CHAR data type across the entire source due to 7949lack of need and lack of consistent use. 7950 7951Code and Data Size: Current core subsystem library sizes are shown 7952below. These are the code and data sizes for the acpica.lib 7953produced by the Microsoft Visual C++ 6.0 compiler, and these 7954values do not include any ACPI driver or OSPM code. The debug 7955version of the code includes the debug output trace mechanism and 7956has a much larger code and data size. Note that these values will 7957vary depending on the efficiency of the compiler and the compiler 7958options used during generation. 7959 7960 Previous Release 7961 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 7962 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 7963 Current Release: 7964 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7965 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7966 7967 7968---------------------------------------- 796905 December 2002. Summary of changes for version 20021205. 7970 79711) ACPI CA Core Subsystem: 7972 7973Fixed a problem where a store to a String or Buffer object could 7974cause corruption of the DSDT if the object type being stored was 7975the same as the target object type and the length of the object 7976being stored was equal to or smaller than the original (existing) 7977target object. This was seen to cause corruption of battery _BIF 7978buffers if the _BIF method modified the buffer on the fly. 7979 7980Fixed a problem where an internal error was generated if a control 7981method invocation was used in an OperationRegion, Buffer, or 7982Package declaration. This was caused by the deferred parsing of 7983the control method and thus the deferred creation of the internal 7984method object. The solution to this problem was to create the 7985internal method object at the moment the method is encountered in 7986the first pass - so that subsequent references to the method will 7987able to obtain the required parameter count and thus properly 7988parse the method invocation. This problem presented itself as an 7989AE_AML_INTERNAL during the pass 1 parse phase during table load. 7990 7991Fixed a problem where the internal String object copy routine did 7992not always allocate sufficient memory for the target String object 7993and caused memory corruption. This problem was seen to cause 7994"Allocation already present in list!" errors as memory allocation 7995became corrupted. 7996 7997Implemented a new function for the evaluation of namespace objects 7998that allows the specification of the allowable return object 7999types. This simplifies a lot of code that checks for a return 8000object of one or more specific objects returned from the 8001evaluation (such as _STA, etc.) This may become and external 8002function if it would be useful to ACPI-related drivers. 8003 8004Completed another round of prefixing #defines with "ACPI_" for 8005clarity. 8006 8007Completed additional code restructuring to allow more modular 8008linking for iASL compiler and AcpiExec. Several files were split 8009creating new files. New files: nsparse.c dsinit.c evgpe.c 8010 8011Implemented an abort mechanism to terminate an executing control 8012method via the AML debugger. This feature is useful for debugging 8013control methods that depend (wait) for specific hardware 8014responses. 8015 8016Code and Data Size: Current core subsystem library sizes are shown 8017below. These are the code and data sizes for the acpica.lib 8018produced by the Microsoft Visual C++ 6.0 compiler, and these 8019values do not include any ACPI driver or OSPM code. The debug 8020version of the code includes the debug output trace mechanism and 8021has a much larger code and data size. Note that these values will 8022vary depending on the efficiency of the compiler and the compiler 8023options used during generation. 8024 8025 Previous Release 8026 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8027 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 8028 Current Release: 8029 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 8030 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 8031 8032 80332) iASL Compiler/Disassembler 8034 8035Fixed a compiler code generation problem for "Interrupt" Resource 8036Descriptors. If specified in the ASL, the optional "Resource 8037Source Index" and "Resource Source" fields were not inserted into 8038the correct location within the AML resource descriptor, creating 8039an invalid descriptor. 8040 8041Fixed a disassembler problem for "Interrupt" resource descriptors. 8042The optional "Resource Source Index" and "Resource Source" fields 8043were ignored. 8044 8045 8046---------------------------------------- 804722 November 2002. Summary of changes for version 20021122. 8048 8049 80501) ACPI CA Core Subsystem: 8051 8052Fixed a reported problem where an object stored to a Method Local 8053or Arg was not copied to a new object during the store - the 8054object pointer was simply copied to the Local/Arg. This caused 8055all subsequent operations on the Local/Arg to also affect the 8056original source of the store operation. 8057 8058Fixed a problem where a store operation to a Method Local or Arg 8059was not completed properly if the Local/Arg contained a reference 8060(from RefOf) to a named field. The general-purpose store-to- 8061namespace-node code is now used so that this case is handled 8062automatically. 8063 8064Fixed a problem where the internal object copy routine would cause 8065a protection fault if the object being copied was a Package and 8066contained either 1) a NULL package element or 2) a nested sub- 8067package. 8068 8069Fixed a problem with the GPE initialization that resulted from an 8070ambiguity in the ACPI specification. One section of the 8071specification states that both the address and length of the GPE 8072block must be zero if the block is not supported. Another section 8073implies that only the address need be zero if the block is not 8074supported. The code has been changed so that both the address and 8075the length must be non-zero to indicate a valid GPE block (i.e., 8076if either the address or the length is zero, the GPE block is 8077invalid.) 8078 8079Code and Data Size: Current core subsystem library sizes are shown 8080below. These are the code and data sizes for the acpica.lib 8081produced by the Microsoft Visual C++ 6.0 compiler, and these 8082values do not include any ACPI driver or OSPM code. The debug 8083version of the code includes the debug output trace mechanism and 8084has a much larger code and data size. Note that these values will 8085vary depending on the efficiency of the compiler and the compiler 8086options used during generation. 8087 8088 Previous Release 8089 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 8090 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 8091 Current Release: 8092 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8093 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 8094 8095 80962) Linux 8097 8098Cleaned up EC driver. Exported an external EC read/write 8099interface. By going through this, other drivers (most notably 8100sonypi) will be able to serialize access to the EC. 8101 8102 81033) iASL Compiler/Disassembler 8104 8105Implemented support to optionally generate include files for both 8106ASM and C (the -i switch). This simplifies BIOS development by 8107automatically creating include files that contain external 8108declarations for the symbols that are created within the 8109 8110(optionally generated) ASM and C AML source files. 8111 8112 8113---------------------------------------- 811415 November 2002. Summary of changes for version 20021115. 8115 81161) ACPI CA Core Subsystem: 8117 8118Fixed a memory leak problem where an error during resolution of 8119 8120method arguments during a method invocation from another method 8121failed to cleanup properly by deleting all successfully resolved 8122argument objects. 8123 8124Fixed a problem where the target of the Index() operator was not 8125correctly constructed if the source object was a package. This 8126problem has not been detected because the use of a target operand 8127with Index() is very rare. 8128 8129Fixed a problem with the Index() operator where an attempt was 8130made to delete the operand objects twice. 8131 8132Fixed a problem where an attempt was made to delete an operand 8133twice during execution of the CondRefOf() operator if the target 8134did not exist. 8135 8136Implemented the first of perhaps several internal create object 8137functions that create and initialize a specific object type. This 8138consolidates duplicated code wherever the object is created, thus 8139shrinking the size of the subsystem. 8140 8141Implemented improved debug/error messages for errors that occur 8142during nested method invocations. All executing method pathnames 8143are displayed (with the error) as the call stack is unwound - thus 8144simplifying debug. 8145 8146Fixed a problem introduced in the 10/02 release that caused 8147premature deletion of a buffer object if a buffer was used as an 8148ASL operand where an integer operand is required (Thus causing an 8149implicit object conversion from Buffer to Integer.) The change in 8150the 10/02 release was attempting to fix a memory leak (albeit 8151incorrectly.) 8152 8153Code and Data Size: Current core subsystem library sizes are shown 8154below. These are the code and data sizes for the acpica.lib 8155produced by the Microsoft Visual C++ 6.0 compiler, and these 8156values do not include any ACPI driver or OSPM code. The debug 8157version of the code includes the debug output trace mechanism and 8158has a much larger code and data size. Note that these values will 8159vary depending on the efficiency of the compiler and the compiler 8160options used during generation. 8161 8162 Previous Release 8163 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 8164 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 8165 Current Release: 8166 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 8167 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 8168 8169 81702) Linux 8171 8172Changed the implementation of the ACPI semaphores to use down() 8173instead of down_interruptable(). It is important that the 8174execution of ACPI control methods not be interrupted by signals. 8175Methods must run to completion, or the system may be left in an 8176unknown/unstable state. 8177 8178Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 8179(Shawn Starr) 8180 8181 81823) iASL Compiler/Disassembler 8183 8184 8185Changed the default location of output files. All output files 8186are now placed in the current directory by default instead of in 8187the directory of the source file. This change may affect some 8188existing makefiles, but it brings the behavior of the compiler in 8189line with other similar tools. The location of the output files 8190can be overridden with the -p command line switch. 8191 8192 8193---------------------------------------- 819411 November 2002. Summary of changes for version 20021111. 8195 8196 81970) ACPI Specification 2.0B is released and is now available at: 8198http://www.acpi.info/index.html 8199 8200 82011) ACPI CA Core Subsystem: 8202 8203Implemented support for the ACPI 2.0 SMBus Operation Regions. 8204This includes the early detection and handoff of the request to 8205the SMBus region handler (avoiding all of the complex field 8206support code), and support for the bidirectional return packet 8207from an SMBus write operation. This paves the way for the 8208development of SMBus drivers in each host operating system. 8209 8210Fixed a problem where the semaphore WAIT_FOREVER constant was 8211defined as 32 bits, but must be 16 bits according to the ACPI 8212specification. This had the side effect of causing ASL 8213Mutex/Event timeouts even though the ASL code requested a wait 8214forever. Changed all internal references to the ACPI timeout 8215parameter to 16 bits to prevent future problems. Changed the name 8216of WAIT_FOREVER to ACPI_WAIT_FOREVER. 8217 8218Code and Data Size: Current core subsystem library sizes are shown 8219below. These are the code and data sizes for the acpica.lib 8220produced by the Microsoft Visual C++ 6.0 compiler, and these 8221values do not include any ACPI driver or OSPM code. The debug 8222version of the code includes the debug output trace mechanism and 8223has a much larger code and data size. Note that these values will 8224vary depending on the efficiency of the compiler and the compiler 8225options used during generation. 8226 8227 Previous Release 8228 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8229 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 8230 Current Release: 8231 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 8232 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 8233 8234 82352) Linux 8236 8237Module loading/unloading fixes (John Cagle) 8238 8239 82403) iASL Compiler/Disassembler 8241 8242Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 8243 8244Implemented support for the disassembly of all SMBus protocol 8245keywords (SMBQuick, SMBWord, etc.) 8246 8247---------------------------------------- 824801 November 2002. Summary of changes for version 20021101. 8249 8250 82511) ACPI CA Core Subsystem: 8252 8253Fixed a problem where platforms that have a GPE1 block but no GPE0 8254block were not handled correctly. This resulted in a "GPE 8255overlap" error message. GPE0 is no longer required. 8256 8257Removed code added in the previous release that inserted nodes 8258into the namespace in alphabetical order. This caused some side- 8259effects on various machines. The root cause of the problem is 8260still under investigation since in theory, the internal ordering 8261of the namespace nodes should not matter. 8262 8263 8264Enhanced error reporting for the case where a named object is not 8265found during control method execution. The full ACPI namepath 8266(name reference) of the object that was not found is displayed in 8267this case. 8268 8269Note: as a result of the overhaul of the namespace object types in 8270the previous release, the namespace nodes for the predefined 8271scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 8272instead of ACPI_TYPE_ANY. This simplifies the namespace 8273management code but may affect code that walks the namespace tree 8274looking for specific object types. 8275 8276Code and Data Size: Current core subsystem library sizes are shown 8277below. These are the code and data sizes for the acpica.lib 8278produced by the Microsoft Visual C++ 6.0 compiler, and these 8279values do not include any ACPI driver or OSPM code. The debug 8280version of the code includes the debug output trace mechanism and 8281has a much larger code and data size. Note that these values will 8282vary depending on the efficiency of the compiler and the compiler 8283options used during generation. 8284 8285 Previous Release 8286 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 8287 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 8288 Current Release: 8289 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8290 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 8291 8292 82932) Linux 8294 8295Fixed a problem introduced in the previous release where the 8296Processor and Thermal objects were not recognized and installed in 8297/proc. This was related to the scope type change described above. 8298 8299 83003) iASL Compiler/Disassembler 8301 8302Implemented the -g option to get all of the required ACPI tables 8303from the registry and save them to files (Windows version of the 8304compiler only.) The required tables are the FADT, FACS, and DSDT. 8305 8306Added ACPI table checksum validation during table disassembly in 8307order to catch corrupted tables. 8308 8309 8310---------------------------------------- 831122 October 2002. Summary of changes for version 20021022. 8312 83131) ACPI CA Core Subsystem: 8314 8315Implemented a restriction on the Scope operator that the target 8316must already exist in the namespace at the time the operator is 8317encountered (during table load or method execution). In other 8318words, forward references are not allowed and Scope() cannot 8319create a new object. This changes the previous behavior where the 8320interpreter would create the name if not found. This new behavior 8321correctly enables the search-to-root algorithm during namespace 8322lookup of the target name. Because of this upsearch, this fixes 8323the known Compaq _SB_.OKEC problem and makes both the AML 8324interpreter and iASL compiler compatible with other ACPI 8325implementations. 8326 8327Completed a major overhaul of the internal ACPI object types for 8328the ACPI Namespace and the associated operand objects. Many of 8329these types had become obsolete with the introduction of the two- 8330pass namespace load. This cleanup simplifies the code and makes 8331the entire namespace load mechanism much clearer and easier to 8332understand. 8333 8334Improved debug output for tracking scope opening/closing to help 8335diagnose scoping issues. The old scope name as well as the new 8336scope name are displayed. Also improved error messages for 8337problems with ASL Mutex objects and error messages for GPE 8338problems. 8339 8340Cleaned up the namespace dump code, removed obsolete code. 8341 8342All string output (for all namespace/object dumps) now uses the 8343common ACPI string output procedure which handles escapes properly 8344and does not emit non-printable characters. 8345 8346Fixed some issues with constants in the 64-bit version of the 8347local C library (utclib.c) 8348 8349 83502) Linux 8351 8352EC Driver: No longer attempts to acquire the Global Lock at 8353interrupt level. 8354 8355 83563) iASL Compiler/Disassembler 8357 8358Implemented ACPI 2.0B grammar change that disallows all Type 1 and 83592 opcodes outside of a control method. This means that the 8360"executable" operators (versus the "namespace" operators) cannot 8361be used at the table level; they can only be used within a control 8362method. 8363 8364Implemented the restriction on the Scope() operator where the 8365target must already exist in the namespace at the time the 8366operator is encountered (during ASL compilation). In other words, 8367forward references are not allowed and Scope() cannot create a new 8368object. This makes the iASL compiler compatible with other ACPI 8369implementations and makes the Scope() implementation adhere to the 8370ACPI specification. 8371 8372Fixed a problem where namepath optimization for the Alias operator 8373was optimizing the wrong path (of the two namepaths.) This caused 8374a "Missing alias link" error message. 8375 8376Fixed a problem where an "unknown reserved name" warning could be 8377incorrectly generated for names like "_SB" when the trailing 8378underscore is not used in the original ASL. 8379 8380Fixed a problem where the reserved name check did not handle 8381NamePaths with multiple NameSegs correctly. The first nameseg of 8382the NamePath was examined instead of the last NameSeg. 8383 8384 8385---------------------------------------- 8386 838702 October 2002. Summary of changes for this release. 8388 8389 83901) ACPI CA Core Subsystem version 20021002: 8391 8392Fixed a problem where a store/copy of a string to an existing 8393string did not always set the string length properly in the String 8394object. 8395 8396Fixed a reported problem with the ToString operator where the 8397behavior was identical to the ToHexString operator instead of just 8398simply converting a raw buffer to a string data type. 8399 8400Fixed a problem where CopyObject and the other "explicit" 8401conversion operators were not updating the internal namespace node 8402type as part of the store operation. 8403 8404Fixed a memory leak during implicit source operand conversion 8405where the original object was not deleted if it was converted to a 8406new object of a different type. 8407 8408Enhanced error messages for all problems associated with namespace 8409lookups. Common procedure generates and prints the lookup name as 8410well as the formatted status. 8411 8412Completed implementation of a new design for the Alias support 8413within the namespace. The existing design did not handle the case 8414where a new object was assigned to one of the two names due to the 8415use of an explicit conversion operator, resulting in the two names 8416pointing to two different objects. The new design simply points 8417the Alias name to the original name node - not to the object. 8418This results in a level of indirection that must be handled in the 8419name resolution mechanism. 8420 8421Code and Data Size: Current core subsystem library sizes are shown 8422below. These are the code and data sizes for the acpica.lib 8423produced by the Microsoft Visual C++ 6.0 compiler, and these 8424values do not include any ACPI driver or OSPM code. The debug 8425version of the code includes the debug output trace mechanism and 8426has a larger code and data size. Note that these values will vary 8427depending on the efficiency of the compiler and the compiler 8428options used during generation. 8429 8430 Previous Release 8431 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 8432 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 8433 Current Release: 8434 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 8435 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 8436 8437 84382) Linux 8439 8440Initialize thermal driver's timer before it is used. (Knut 8441Neumann) 8442 8443Allow handling negative celsius values. (Kochi Takayoshi) 8444 8445Fix thermal management and make trip points. R/W (Pavel Machek) 8446 8447Fix /proc/acpi/sleep. (P. Christeas) 8448 8449IA64 fixes. (David Mosberger) 8450 8451Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 8452 8453Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 8454Brodowski) 8455 8456 84573) iASL Compiler/Disassembler 8458 8459Clarified some warning/error messages. 8460 8461 8462---------------------------------------- 846318 September 2002. Summary of changes for this release. 8464 8465 84661) ACPI CA Core Subsystem version 20020918: 8467 8468Fixed a reported problem with reference chaining (via the Index() 8469and RefOf() operators) in the ObjectType() and SizeOf() operators. 8470The definition of these operators includes the dereferencing of 8471all chained references to return information on the base object. 8472 8473Fixed a problem with stores to indexed package elements - the 8474existing code would not complete the store if an "implicit 8475conversion" was not performed. In other words, if the existing 8476object (package element) was to be replaced completely, the code 8477didn't handle this case. 8478 8479Relaxed typechecking on the ASL "Scope" operator to allow the 8480target name to refer to an object of type Integer, String, or 8481Buffer, in addition to the scoping object types (Device, 8482predefined Scopes, Processor, PowerResource, and ThermalZone.) 8483This allows existing AML code that has workarounds for a bug in 8484Windows to function properly. A warning is issued, however. This 8485affects both the AML interpreter and the iASL compiler. Below is 8486an example of this type of ASL code: 8487 8488 Name(DEB,0x00) 8489 Scope(DEB) 8490 { 8491 8492Fixed some reported problems with 64-bit integer support in the 8493local implementation of C library functions (clib.c) 8494 8495 84962) Linux 8497 8498Use ACPI fix map region instead of IOAPIC region, since it is 8499undefined in non-SMP. 8500 8501Ensure that the SCI has the proper polarity and trigger, even on 8502systems that do not have an interrupt override entry in the MADT. 8503 85042.5 big driver reorganization (Pat Mochel) 8505 8506Use early table mapping code from acpitable.c (Andi Kleen) 8507 8508New blacklist entries (Andi Kleen) 8509 8510Blacklist improvements. Split blacklist code out into a separate 8511file. Move checking the blacklist to very early. Previously, we 8512would use ACPI tables, and then halfway through init, check the 8513blacklist -- too late. Now, it's early enough to completely fall- 8514back to non-ACPI. 8515 8516 85173) iASL Compiler/Disassembler version 20020918: 8518 8519Fixed a problem where the typechecking code didn't know that an 8520alias could point to a method. In other words, aliases were not 8521being dereferenced during typechecking. 8522 8523 8524---------------------------------------- 852529 August 2002. Summary of changes for this release. 8526 85271) ACPI CA Core Subsystem Version 20020829: 8528 8529If the target of a Scope() operator already exists, it must be an 8530object type that actually opens a scope -- such as a Device, 8531Method, Scope, etc. This is a fatal runtime error. Similar error 8532check has been added to the iASL compiler also. 8533 8534Tightened up the namespace load to disallow multiple names in the 8535same scope. This previously was allowed if both objects were of 8536the same type. (i.e., a lookup was the same as entering a new 8537name). 8538 8539 85402) Linux 8541 8542Ensure that the ACPI interrupt has the proper trigger and 8543polarity. 8544 8545local_irq_disable is extraneous. (Matthew Wilcox) 8546 8547Make "acpi=off" actually do what it says, and not use the ACPI 8548interpreter *or* the tables. 8549 8550Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 8551Takayoshi) 8552 8553 85543) iASL Compiler/Disassembler Version 20020829: 8555 8556Implemented namepath optimization for name declarations. For 8557example, a declaration like "Method (\_SB_.ABCD)" would get 8558optimized to "Method (ABCD)" if the declaration is within the 8559\_SB_ scope. This optimization is in addition to the named 8560reference path optimization first released in the previous 8561version. This would seem to complete all possible optimizations 8562for namepaths within the ASL/AML. 8563 8564If the target of a Scope() operator already exists, it must be an 8565object type that actually opens a scope -- such as a Device, 8566Method, Scope, etc. 8567 8568Implemented a check and warning for unreachable code in the same 8569block below a Return() statement. 8570 8571Fixed a problem where the listing file was not generated if the 8572compiler aborted if the maximum error count was exceeded (200). 8573 8574Fixed a problem where the typechecking of method return values was 8575broken. This includes the check for a return value when the 8576method is invoked as a TermArg (a return value is expected.) 8577 8578Fixed a reported problem where EOF conditions during a quoted 8579string or comment caused a fault. 8580 8581 8582---------------------------------------- 858315 August 2002. Summary of changes for this release. 8584 85851) ACPI CA Core Subsystem Version 20020815: 8586 8587Fixed a reported problem where a Store to a method argument that 8588contains a reference did not perform the indirect store correctly. 8589This problem was created during the conversion to the new 8590reference object model - the indirect store to a method argument 8591code was not updated to reflect the new model. 8592 8593Reworked the ACPI mode change code to better conform to ACPI 2.0, 8594handle corner cases, and improve code legibility (Kochi Takayoshi) 8595 8596Fixed a problem with the pathname parsing for the carat (^) 8597prefix. The heavy use of the carat operator by the new namepath 8598optimization in the iASL compiler uncovered a problem with the AML 8599interpreter handling of this prefix. In the case where one or 8600more carats precede a single nameseg, the nameseg was treated as 8601standalone and the search rule (to root) was inadvertently 8602applied. This could cause both the iASL compiler and the 8603interpreter to find the wrong object or to miss the error that 8604should occur if the object does not exist at that exact pathname. 8605 8606Found and fixed the problem where the HP Pavilion DSDT would not 8607load. This was a relatively minor tweak to the table loading code 8608(a problem caused by the unexpected encounter with a method 8609invocation not within a control method), but it does not solve the 8610overall issue of the execution of AML code at the table level. 8611This investigation is still ongoing. 8612 8613Code and Data Size: Current core subsystem library sizes are shown 8614below. These are the code and data sizes for the acpica.lib 8615produced by the Microsoft Visual C++ 6.0 compiler, and these 8616values do not include any ACPI driver or OSPM code. The debug 8617version of the code includes the debug output trace mechanism and 8618has a larger code and data size. Note that these values will vary 8619depending on the efficiency of the compiler and the compiler 8620options used during generation. 8621 8622 Previous Release 8623 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 8624 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 8625 Current Release: 8626 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 8627 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 8628 8629 86302) Linux 8631 8632Remove redundant slab.h include (Brad Hards) 8633 8634Fix several bugs in thermal.c (Herbert Nachtnebel) 8635 8636Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 8637 8638Change acpi_system_suspend to use updated irq functions (Pavel 8639Machek) 8640 8641Export acpi_get_firmware_table (Matthew Wilcox) 8642 8643Use proper root proc entry for ACPI (Kochi Takayoshi) 8644 8645Fix early-boot table parsing (Bjorn Helgaas) 8646 8647 86483) iASL Compiler/Disassembler 8649 8650Reworked the compiler options to make them more consistent and to 8651use two-letter options where appropriate. We were running out of 8652sensible letters. This may break some makefiles, so check the 8653current options list by invoking the compiler with no parameters. 8654 8655Completed the design and implementation of the ASL namepath 8656optimization option for the compiler. This option optimizes all 8657references to named objects to the shortest possible path. The 8658first attempt tries to utilize a single nameseg (4 characters) and 8659the "search-to-root" algorithm used by the interpreter. If that 8660cannot be used (because either the name is not in the search path 8661or there is a conflict with another object with the same name), 8662the pathname is optimized using the carat prefix (usually a 8663shorter string than specifying the entire path from the root.) 8664 8665Implemented support to obtain the DSDT from the Windows registry 8666(when the disassembly option is specified with no input file). 8667Added this code as the implementation for AcpiOsTableOverride in 8668the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 8669utility) to scan memory for the DSDT to the AcpiOsTableOverride 8670function in the DOS OSL to make the disassembler truly OS 8671independent. 8672 8673Implemented a new option to disassemble and compile in one step. 8674When used without an input filename, this option will grab the 8675DSDT from the local machine, disassemble it, and compile it in one 8676step. 8677 8678Added a warning message for invalid escapes (a backslash followed 8679by any character other than the allowable escapes). This catches 8680the quoted string error "\_SB_" (which should be "\\_SB_" ). 8681 8682Also, there are numerous instances in the ACPI specification where 8683this error occurs. 8684 8685Added a compiler option to disable all optimizations. This is 8686basically the "compatibility mode" because by using this option, 8687the AML code will come out exactly the same as other ASL 8688compilers. 8689 8690Added error messages for incorrectly ordered dependent resource 8691functions. This includes: missing EndDependentFn macro at end of 8692dependent resource list, nested dependent function macros (both 8693start and end), and missing StartDependentFn macro. These are 8694common errors that should be caught at compile time. 8695 8696Implemented _OSI support for the disassembler and compiler. _OSI 8697must be included in the namespace for proper disassembly (because 8698the disassembler must know the number of arguments.) 8699 8700Added an "optimization" message type that is optional (off by 8701default). This message is used for all optimizations - including 8702constant folding, integer optimization, and namepath optimization. 8703 8704---------------------------------------- 870525 July 2002. Summary of changes for this release. 8706 8707 87081) ACPI CA Core Subsystem Version 20020725: 8709 8710The AML Disassembler has been enhanced to produce compilable ASL 8711code and has been integrated into the iASL compiler (see below) as 8712well as the single-step disassembly for the AML debugger and the 8713disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 8714resource templates and macros are fully supported. The 8715disassembler has been tested on over 30 different AML files, 8716producing identical AML when the resulting disassembled ASL file 8717is recompiled with the same ASL compiler. 8718 8719Modified the Resource Manager to allow zero interrupts and zero 8720dma channels during the GetCurrentResources call. This was 8721causing problems on some platforms. 8722 8723Added the AcpiOsRedirectOutput interface to the OSL to simplify 8724output redirection for the AcpiOsPrintf and AcpiOsVprintf 8725interfaces. 8726 8727Code and Data Size: Current core subsystem library sizes are shown 8728below. These are the code and data sizes for the acpica.lib 8729produced by the Microsoft Visual C++ 6.0 compiler, and these 8730values do not include any ACPI driver or OSPM code. The debug 8731version of the code includes the debug output trace mechanism and 8732has a larger code and data size. Note that these values will vary 8733depending on the efficiency of the compiler and the compiler 8734options used during generation. 8735 8736 Previous Release 8737 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 8738 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 8739 Current Release: 8740 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 8741 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 8742 8743 87442) Linux 8745 8746Fixed a panic in the EC driver (Dominik Brodowski) 8747 8748Implemented checksum of the R/XSDT itself during Linux table scan 8749(Richard Schaal) 8750 8751 87523) iASL compiler 8753 8754The AML disassembler is integrated into the compiler. The "-d" 8755option invokes the disassembler to completely disassemble an 8756input AML file, producing as output a text ASL file with the 8757extension ".dsl" (to avoid name collisions with existing .asl 8758source files.) A future enhancement will allow the disassembler 8759to obtain the BIOS DSDT from the registry under Windows. 8760 8761Fixed a problem with the VendorShort and VendorLong resource 8762descriptors where an invalid AML sequence was created. 8763 8764Implemented a fix for BufferData term in the ASL parser. It was 8765inadvertently defined twice, allowing invalid syntax to pass and 8766causing reduction conflicts. 8767 8768Fixed a problem where the Ones opcode could get converted to a 8769value of zero if "Ones" was used where a byte, word or dword value 8770was expected. The 64-bit value is now truncated to the correct 8771size with the correct value. 8772 8773 8774 8775---------------------------------------- 877602 July 2002. Summary of changes for this release. 8777 8778 87791) ACPI CA Core Subsystem Version 20020702: 8780 8781The Table Manager code has been restructured to add several new 8782features. Tables that are not required by the core subsystem 8783(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 8784validated in any way and are returned from AcpiGetFirmwareTable if 8785requested. The AcpiOsTableOverride interface is now called for 8786each table that is loaded by the subsystem in order to allow the 8787host to override any table it chooses. Previously, only the DSDT 8788could be overridden. Added one new files, tbrsdt.c and 8789tbgetall.c. 8790 8791Fixed a problem with the conversion of internal package objects to 8792external objects (when a package is returned from a control 8793method.) The return buffer length was set to zero instead of the 8794proper length of the package object. 8795 8796Fixed a reported problem with the use of the RefOf and DeRefOf 8797operators when passing reference arguments to control methods. A 8798new type of Reference object is used internally for references 8799produced by the RefOf operator. 8800 8801Added additional error messages in the Resource Manager to explain 8802AE_BAD_DATA errors when they occur during resource parsing. 8803 8804Split the AcpiEnableSubsystem into two primitives to enable a 8805finer granularity initialization sequence. These two calls should 8806be called in this order: AcpiEnableSubsystem (flags), 8807AcpiInitializeObjects (flags). The flags parameter remains the 8808same. 8809 8810 88112) Linux 8812 8813Updated the ACPI utilities module to understand the new style of 8814fully resolved package objects that are now returned from the core 8815subsystem. This eliminates errors of the form: 8816 8817 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 8818 acpi_utils-0430 [145] acpi_evaluate_reference: 8819 Invalid element in package (not a device reference) 8820 8821The method evaluation utility uses the new buffer allocation 8822scheme instead of calling AcpiEvaluate Object twice. 8823 8824Added support for ECDT. This allows the use of the Embedded 8825 8826Controller before the namespace has been fully initialized, which 8827is necessary for ACPI 2.0 support, and for some laptops to 8828initialize properly. (Laptops using ECDT are still rare, so only 8829limited testing was performed of the added functionality.) 8830 8831Fixed memory leaks in the EC driver. 8832 8833Eliminated a brittle code structure in acpi_bus_init(). 8834 8835Eliminated the acpi_evaluate() helper function in utils.c. It is 8836no longer needed since acpi_evaluate_object can optionally 8837allocate memory for the return object. 8838 8839Implemented fix for keyboard hang when getting battery readings on 8840some systems (Stephen White) 8841 8842PCI IRQ routing update (Dominik Brodowski) 8843 8844Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 8845support 8846 8847---------------------------------------- 884811 June 2002. Summary of changes for this release. 8849 8850 88511) ACPI CA Core Subsystem Version 20020611: 8852 8853Fixed a reported problem where constants such as Zero and One 8854appearing within _PRT packages were not handled correctly within 8855the resource manager code. Originally reported against the ASL 8856compiler because the code generator now optimizes integers to 8857their minimal AML representation (i.e. AML constants if possible.) 8858The _PRT code now handles all AML constant opcodes correctly 8859(Zero, One, Ones, Revision). 8860 8861Fixed a problem with the Concatenate operator in the AML 8862interpreter where a buffer result object was incorrectly marked as 8863not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 8864 8865All package sub-objects are now fully resolved before they are 8866returned from the external ACPI interfaces. This means that name 8867strings are resolved to object handles, and constant operators 8868(Zero, One, Ones, Revision) are resolved to Integers. 8869 8870Implemented immediate resolution of the AML Constant opcodes 8871(Zero, One, Ones, Revision) to Integer objects upon detection 8872within the AML stream. This has simplified and reduced the 8873generated code size of the subsystem by eliminating about 10 8874switch statements for these constants (which previously were 8875contained in Reference objects.) The complicating issues are that 8876the Zero opcode is used as a "placeholder" for unspecified 8877optional target operands and stores to constants are defined to be 8878no-ops. 8879 8880Code and Data Size: Current core subsystem library sizes are shown 8881below. These are the code and data sizes for the acpica.lib 8882produced by the Microsoft Visual C++ 6.0 compiler, and these 8883values do not include any ACPI driver or OSPM code. The debug 8884version of the code includes the debug output trace mechanism and 8885has a larger code and data size. Note that these values will vary 8886depending on the efficiency of the compiler and the compiler 8887options used during generation. 8888 8889 Previous Release 8890 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 8891 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 8892 Current Release: 8893 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 8894 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 8895 8896 88972) Linux 8898 8899 8900Added preliminary support for obtaining _TRA data for PCI root 8901bridges (Bjorn Helgaas). 8902 8903 89043) iASL Compiler Version X2046: 8905 8906Fixed a problem where the "_DDN" reserved name was defined to be a 8907control method with one argument. There are no arguments, and 8908_DDN does not have to be a control method. 8909 8910Fixed a problem with the Linux version of the compiler where the 8911source lines printed with error messages were the wrong lines. 8912This turned out to be the "LF versus CR/LF" difference between 8913Windows and Unix. This appears to be the longstanding issue 8914concerning listing output and error messages. 8915 8916Fixed a problem with the Linux version of compiler where opcode 8917names within error messages were wrong. This was caused by a 8918slight difference in the output of the Flex tool on Linux versus 8919Windows. 8920 8921Fixed a problem with the Linux compiler where the hex output files 8922contained some garbage data caused by an internal buffer overrun. 8923 8924 8925---------------------------------------- 892617 May 2002. Summary of changes for this release. 8927 8928 89291) ACPI CA Core Subsystem Version 20020517: 8930 8931Implemented a workaround to an BIOS bug discovered on the HP 8932OmniBook where the FADT revision number and the table size are 8933inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 8934behavior is to fallback to using only the ACPI 1.0 fields of the 8935FADT if the table is too small to be a ACPI 2.0 table as claimed 8936by the revision number. Although this is a BIOS bug, this is a 8937case where the workaround is simple enough and with no side 8938effects, so it seemed prudent to add it. A warning message is 8939issued, however. 8940 8941Implemented minimum size checks for the fixed-length ACPI tables - 8942- the FADT and FACS, as well as consistency checks between the 8943revision number and the table size. 8944 8945Fixed a reported problem in the table override support where the 8946new table pointer was incorrectly treated as a physical address 8947instead of a logical address. 8948 8949Eliminated the use of the AE_AML_ERROR exception and replaced it 8950with more descriptive codes. 8951 8952Fixed a problem where an exception would occur if an ASL Field was 8953defined with no named Field Units underneath it (used by some 8954index fields). 8955 8956Code and Data Size: Current core subsystem library sizes are shown 8957below. These are the code and data sizes for the acpica.lib 8958produced by the Microsoft Visual C++ 6.0 compiler, and these 8959values do not include any ACPI driver or OSPM code. The debug 8960version of the code includes the debug output trace mechanism and 8961has a larger code and data size. Note that these values will vary 8962depending on the efficiency of the compiler and the compiler 8963options used during generation. 8964 8965 Previous Release 8966 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 8967 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 8968 Current Release: 8969 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 8970 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 8971 8972 8973 89742) Linux 8975 8976Much work done on ACPI init (MADT and PCI IRQ routing support). 8977(Paul D. and Dominik Brodowski) 8978 8979Fix PCI IRQ-related panic on boot (Sam Revitch) 8980 8981Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 8982 8983Fix "MHz" typo (Dominik Brodowski) 8984 8985Fix RTC year 2000 issue (Dominik Brodowski) 8986 8987Preclude multiple button proc entries (Eric Brunet) 8988 8989Moved arch-specific code out of include/platform/aclinux.h 8990 89913) iASL Compiler Version X2044: 8992 8993Implemented error checking for the string used in the EISAID macro 8994(Usually used in the definition of the _HID object.) The code now 8995strictly enforces the PnP format - exactly 7 characters, 3 8996uppercase letters and 4 hex digits. 8997 8998If a raw string is used in the definition of the _HID object 8999(instead of the EISAID macro), the string must contain all 9000alphanumeric characters (e.g., "*PNP0011" is not allowed because 9001of the asterisk.) 9002 9003Implemented checking for invalid use of ACPI reserved names for 9004most of the name creation operators (Name, Device, Event, Mutex, 9005OperationRegion, PowerResource, Processor, and ThermalZone.) 9006Previously, this check was only performed for control methods. 9007 9008Implemented an additional check on the Name operator to emit an 9009error if a reserved name that must be implemented in ASL as a 9010control method is used. We know that a reserved name must be a 9011method if it is defined with input arguments. 9012 9013The warning emitted when a namespace object reference is not found 9014during the cross reference phase has been changed into an error. 9015The "External" directive should be used for names defined in other 9016modules. 9017 9018 90194) Tools and Utilities 9020 9021The 16-bit tools (adump16 and aexec16) have been regenerated and 9022tested. 9023 9024Fixed a problem with the output of both acpidump and adump16 where 9025the indentation of closing parentheses and brackets was not 9026 9027aligned properly with the parent block. 9028 9029 9030---------------------------------------- 903103 May 2002. Summary of changes for this release. 9032 9033 90341) ACPI CA Core Subsystem Version 20020503: 9035 9036Added support a new OSL interface that allows the host operating 9037 9038system software to override the DSDT found in the firmware - 9039AcpiOsTableOverride. With this interface, the OSL can examine the 9040version of the firmware DSDT and replace it with a different one 9041if desired. 9042 9043Added new external interfaces for accessing ACPI registers from 9044device drivers and other system software - AcpiGetRegister and 9045AcpiSetRegister. This was simply an externalization of the 9046existing AcpiHwBitRegister interfaces. 9047 9048Fixed a regression introduced in the previous build where the 9049ASL/AML CreateField operator always returned an error, 9050"destination must be a NS Node". 9051 9052Extended the maximum time (before failure) to successfully enable 9053ACPI mode to 3 seconds. 9054 9055Code and Data Size: Current core subsystem library sizes are shown 9056below. These are the code and data sizes for the acpica.lib 9057produced by the Microsoft Visual C++ 6.0 compiler, and these 9058values do not include any ACPI driver or OSPM code. The debug 9059version of the code includes the debug output trace mechanism and 9060has a larger code and data size. Note that these values will vary 9061depending on the efficiency of the compiler and the compiler 9062options used during generation. 9063 9064 Previous Release 9065 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 9066 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 9067 Current Release: 9068 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 9069 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 9070 9071 90722) Linux 9073 9074Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 9075free. While 3 out of 4 of our in-house systems work fine, the last 9076one still hangs when testing the LAPIC timer. 9077 9078Renamed many files in 2.5 kernel release to omit "acpi_" from the 9079name. 9080 9081Added warning on boot for Presario 711FR. 9082 9083Sleep improvements (Pavel Machek) 9084 9085ACPI can now be built without CONFIG_PCI enabled. 9086 9087IA64: Fixed memory map functions (JI Lee) 9088 9089 90903) iASL Compiler Version X2043: 9091 9092Added support to allow the compiler to be integrated into the MS 9093VC++ development environment for one-button compilation of single 9094files or entire projects -- with error-to-source-line mapping. 9095 9096Implemented support for compile-time constant folding for the 9097Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 9098specification. This allows the ASL writer to use expressions 9099instead of Integer/Buffer/String constants in terms that must 9100evaluate to constants at compile time and will also simplify the 9101emitted AML in any such sub-expressions that can be folded 9102(evaluated at compile-time.) This increases the size of the 9103compiler significantly because a portion of the ACPI CA AML 9104interpreter is included within the compiler in order to pre- 9105evaluate constant expressions. 9106 9107 9108Fixed a problem with the "Unicode" ASL macro that caused the 9109compiler to fault. (This macro is used in conjunction with the 9110_STR reserved name.) 9111 9112Implemented an AML opcode optimization to use the Zero, One, and 9113Ones opcodes where possible to further reduce the size of integer 9114constants and thus reduce the overall size of the generated AML 9115code. 9116 9117Implemented error checking for new reserved terms for ACPI version 91182.0A. 9119 9120Implemented the -qr option to display the current list of ACPI 9121reserved names known to the compiler. 9122 9123Implemented the -qc option to display the current list of ASL 9124operators that are allowed within constant expressions and can 9125therefore be folded at compile time if the operands are constants. 9126 9127 91284) Documentation 9129 9130Updated the Programmer's Reference for new interfaces, data types, 9131and memory allocation model options. 9132 9133Updated the iASL Compiler User Reference to apply new format and 9134add information about new features and options. 9135 9136---------------------------------------- 913719 April 2002. Summary of changes for this release. 9138 91391) ACPI CA Core Subsystem Version 20020419: 9140 9141The source code base for the Core Subsystem has been completely 9142cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 9143versions. The Lint option files used are included in the 9144/acpi/generate/lint directory. 9145 9146Implemented enhanced status/error checking across the entire 9147Hardware manager subsystem. Any hardware errors (reported from 9148the OSL) are now bubbled up and will abort a running control 9149method. 9150 9151 9152Fixed a problem where the per-ACPI-table integer width (32 or 64) 9153was stored only with control method nodes, causing a fault when 9154non-control method code was executed during table loading. The 9155solution implemented uses a global variable to indicate table 9156width across the entire ACPI subsystem. Therefore, ACPI CA does 9157not support mixed integer widths across different ACPI tables 9158(DSDT, SSDT). 9159 9160Fixed a problem where NULL extended fields (X fields) in an ACPI 91612.0 ACPI FADT caused the table load to fail. Although the 9162existing ACPI specification is a bit fuzzy on this topic, the new 9163behavior is to fall back on a ACPI 1.0 field if the corresponding 9164ACPI 2.0 X field is zero (even though the table revision indicates 9165a full ACPI 2.0 table.) The ACPI specification will be updated to 9166clarify this issue. 9167 9168Fixed a problem with the SystemMemory operation region handler 9169where memory was always accessed byte-wise even if the AML- 9170specified access width was larger than a byte. This caused 9171problems on systems with memory-mapped I/O. Memory is now 9172accessed with the width specified. On systems that do not support 9173non-aligned transfers, a check is made to guarantee proper address 9174alignment before proceeding in order to avoid an AML-caused 9175alignment fault within the kernel. 9176 9177 9178Fixed a problem with the ExtendedIrq resource where only one byte 9179of the 4-byte Irq field was extracted. 9180 9181Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 9182function was out of date and required a rewrite. 9183 9184Code and Data Size: Current core subsystem library sizes are shown 9185below. These are the code and data sizes for the acpica.lib 9186produced by the Microsoft Visual C++ 6.0 compiler, and these 9187values do not include any ACPI driver or OSPM code. The debug 9188version of the code includes the debug output trace mechanism and 9189has a larger code and data size. Note that these values will vary 9190depending on the efficiency of the compiler and the compiler 9191options used during generation. 9192 9193 Previous Release 9194 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 9195 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 9196 Current Release: 9197 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 9198 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 9199 9200 92012) Linux 9202 9203PCI IRQ routing fixes (Dominik Brodowski) 9204 9205 92063) iASL Compiler Version X2042: 9207 9208Implemented an additional compile-time error check for a field 9209unit whose size + minimum access width would cause a run-time 9210access beyond the end-of-region. Previously, only the field size 9211itself was checked. 9212 9213The Core subsystem and iASL compiler now share a common parse 9214object in preparation for compile-time evaluation of the type 92153/4/5 ASL operators. 9216 9217 9218---------------------------------------- 9219Summary of changes for this release: 03_29_02 9220 92211) ACPI CA Core Subsystem Version 20020329: 9222 9223Implemented support for late evaluation of TermArg operands to 9224Buffer and Package objects. This allows complex expressions to be 9225used in the declarations of these object types. 9226 9227Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 92281.0, if the field was larger than 32 bits, it was returned as a 9229buffer - otherwise it was returned as an integer. In ACPI 2.0, 9230the field is returned as a buffer only if the field is larger than 923164 bits. The TableRevision is now considered when making this 9232conversion to avoid incompatibility with existing ASL code. 9233 9234Implemented logical addressing for AcpiOsGetRootPointer. This 9235allows an RSDP with either a logical or physical address. With 9236this support, the host OS can now override all ACPI tables with 9237one logical RSDP. Includes implementation of "typed" pointer 9238support to allow a common data type for both physical and logical 9239pointers internally. This required a change to the 9240AcpiOsGetRootPointer interface. 9241 9242Implemented the use of ACPI 2.0 Generic Address Structures for all 9243GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 9244mapped I/O for these ACPI features. 9245 9246Initialization now ignores not only non-required tables (All 9247tables other than the FADT, FACS, DSDT, and SSDTs), but also does 9248not validate the table headers of unrecognized tables. 9249 9250Fixed a problem where a notify handler could only be 9251installed/removed on an object of type Device. All "notify" 9252 9253objects are now supported -- Devices, Processor, Power, and 9254Thermal. 9255 9256Removed most verbosity from the ACPI_DB_INFO debug level. Only 9257critical information is returned when this debug level is enabled. 9258 9259Code and Data Size: Current core subsystem library sizes are shown 9260below. These are the code and data sizes for the acpica.lib 9261produced by the Microsoft Visual C++ 6.0 compiler, and these 9262values do not include any ACPI driver or OSPM code. The debug 9263version of the code includes the debug output trace mechanism and 9264has a larger code and data size. Note that these values will vary 9265depending on the efficiency of the compiler and the compiler 9266options used during generation. 9267 9268 Previous Release 9269 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 9270 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 9271 Current Release: 9272 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 9273 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 9274 9275 92762) Linux: 9277 9278The processor driver (acpi_processor.c) now fully supports ACPI 92792.0-based processor performance control (e.g. Intel(R) 9280SpeedStep(TM) technology) Note that older laptops that only have 9281the Intel "applet" interface are not supported through this. The 9282'limit' and 'performance' interface (/proc) are fully functional. 9283[Note that basic policy for controlling performance state 9284transitions will be included in the next version of ospmd.] The 9285idle handler was modified to more aggressively use C2, and PIIX4 9286errata handling underwent a complete overhaul (big thanks to 9287Dominik Brodowski). 9288 9289Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 9290based devices in the ACPI namespace are now dynamically bound 9291(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 9292This allows, among other things, ACPI to resolve bus numbers for 9293subordinate PCI bridges. 9294 9295Enhanced PCI IRQ routing to get the proper bus number for _PRT 9296entries defined underneath PCI bridges. 9297 9298Added IBM 600E to bad bios list due to invalid _ADR value for 9299PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 9300 9301In the process of adding full MADT support (e.g. IOAPIC) for IA32 9302(acpi.c, mpparse.c) -- stay tuned. 9303 9304Added back visual differentiation between fixed-feature and 9305control-method buttons in dmesg. Buttons are also subtyped (e.g. 9306button/power/PWRF) to simplify button identification. 9307 9308We no longer use -Wno-unused when compiling debug. Please ignore 9309any "_THIS_MODULE defined but not used" messages. 9310 9311Can now shut down the system using "magic sysrq" key. 9312 9313 93143) iASL Compiler version 2041: 9315 9316Fixed a problem where conversion errors for hex/octal/decimal 9317constants were not reported. 9318 9319Implemented a fix for the General Register template Address field. 9320This field was 8 bits when it should be 64. 9321 9322Fixed a problem where errors/warnings were no longer being emitted 9323within the listing output file. 9324 9325Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 9326exactly 4 characters, alphanumeric only. 9327 9328 9329 9330 9331---------------------------------------- 9332Summary of changes for this release: 03_08_02 9333 9334 93351) ACPI CA Core Subsystem Version 20020308: 9336 9337Fixed a problem with AML Fields where the use of the "AccessAny" 9338keyword could cause an interpreter error due to attempting to read 9339or write beyond the end of the parent Operation Region. 9340 9341Fixed a problem in the SystemMemory Operation Region handler where 9342an attempt was made to map memory beyond the end of the region. 9343This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 9344errors on some Linux systems. 9345 9346Fixed a problem where the interpreter/namespace "search to root" 9347algorithm was not functioning for some object types. Relaxed the 9348internal restriction on the search to allow upsearches for all 9349external object types as well as most internal types. 9350 9351 93522) Linux: 9353 9354We now use safe_halt() macro versus individual calls to sti | hlt. 9355 9356Writing to the processor limit interface should now work. "echo 1" 9357will increase the limit, 2 will decrease, and 0 will reset to the 9358 9359default. 9360 9361 93623) ASL compiler: 9363 9364Fixed segfault on Linux version. 9365 9366 9367---------------------------------------- 9368Summary of changes for this release: 02_25_02 9369 93701) ACPI CA Core Subsystem: 9371 9372 9373Fixed a problem where the GPE bit masks were not initialized 9374properly, causing erratic GPE behavior. 9375 9376Implemented limited support for multiple calling conventions. The 9377code can be generated with either the VPL (variable parameter 9378list, or "C") convention, or the FPL (fixed parameter list, or 9379"Pascal") convention. The core subsystem is about 3.4% smaller 9380when generated with FPL. 9381 9382 93832) Linux 9384 9385Re-add some /proc/acpi/event functionality that was lost during 9386the rewrite 9387 9388Resolved issue with /proc events for fixed-feature buttons showing 9389up as the system device. 9390 9391Fixed checks on C2/C3 latencies to be inclusive of maximum values. 9392 9393Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 9394 9395Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 9396 9397Fixed limit interface & usage to fix bugs with passive cooling 9398hysterisis. 9399 9400Restructured PRT support. 9401 9402 9403---------------------------------------- 9404Summary of changes for this label: 02_14_02 9405 9406 94071) ACPI CA Core Subsystem: 9408 9409Implemented support in AcpiLoadTable to allow loading of FACS and 9410FADT tables. 9411 9412Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 9413been removed. All 64-bit platforms should be migrated to the ACPI 94142.0 tables. The actbl71.h header has been removed from the source 9415tree. 9416 9417All C macros defined within the subsystem have been prefixed with 9418"ACPI_" to avoid collision with other system include files. 9419 9420Removed the return value for the two AcpiOsPrint interfaces, since 9421it is never used and causes lint warnings for ignoring the return 9422value. 9423 9424Added error checking to all internal mutex acquire and release 9425calls. Although a failure from one of these interfaces is 9426probably a fatal system error, these checks will cause the 9427immediate abort of the currently executing method or interface. 9428 9429Fixed a problem where the AcpiSetCurrentResources interface could 9430fault. This was a side effect of the deployment of the new memory 9431allocation model. 9432 9433Fixed a couple of problems with the Global Lock support introduced 9434in the last major build. The "common" (1.0/2.0) internal FACS was 9435being overwritten with the FACS signature and clobbering the 9436Global Lock pointer. Also, the actual firmware FACS was being 9437unmapped after construction of the "common" FACS, preventing 9438access to the actual Global Lock field within it. The "common" 9439internal FACS is no longer installed as an actual ACPI table; it 9440is used simply as a global. 9441 9442Code and Data Size: Current core subsystem library sizes are shown 9443below. These are the code and data sizes for the acpica.lib 9444produced by the Microsoft Visual C++ 6.0 compiler, and these 9445values do not include any ACPI driver or OSPM code. The debug 9446version of the code includes the debug output trace mechanism and 9447has a larger code and data size. Note that these values will vary 9448depending on the efficiency of the compiler and the compiler 9449options used during generation. 9450 9451 Previous Release (02_07_01) 9452 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 9453 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 9454 Current Release: 9455 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 9456 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 9457 9458 94592) Linux 9460 9461Updated Linux-specific code for core macro and OSL interface 9462changes described above. 9463 9464Improved /proc/acpi/event. It now can be opened only once and has 9465proper poll functionality. 9466 9467Fixed and restructured power management (acpi_bus). 9468 9469Only create /proc "view by type" when devices of that class exist. 9470 9471Fixed "charging/discharging" bug (and others) in acpi_battery. 9472 9473Improved thermal zone code. 9474 9475 94763) ASL Compiler, version X2039: 9477 9478 9479Implemented the new compiler restriction on ASL String hex/octal 9480escapes to non-null, ASCII values. An error results if an invalid 9481value is used. (This will require an ACPI 2.0 specification 9482change.) 9483 9484AML object labels that are output to the optional C and ASM source 9485are now prefixed with both the ACPI table signature and table ID 9486to help guarantee uniqueness within a large BIOS project. 9487 9488 9489---------------------------------------- 9490Summary of changes for this label: 02_01_02 9491 94921) ACPI CA Core Subsystem: 9493 9494ACPI 2.0 support is complete in the entire Core Subsystem and the 9495ASL compiler. All new ACPI 2.0 operators are implemented and all 9496other changes for ACPI 2.0 support are complete. With 9497simultaneous code and data optimizations throughout the subsystem, 9498ACPI 2.0 support has been implemented with almost no additional 9499cost in terms of code and data size. 9500 9501Implemented a new mechanism for allocation of return buffers. If 9502the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 9503be allocated on behalf of the caller. Consolidated all return 9504buffer validation and allocation to a common procedure. Return 9505buffers will be allocated via the primary OSL allocation interface 9506since it appears that a separate pool is not needed by most users. 9507If a separate pool is required for these buffers, the caller can 9508still use the original mechanism and pre-allocate the buffer(s). 9509 9510Implemented support for string operands within the DerefOf 9511operator. 9512 9513Restructured the Hardware and Event managers to be table driven, 9514simplifying the source code and reducing the amount of generated 9515code. 9516 9517Split the common read/write low-level ACPI register bitfield 9518procedure into a separate read and write, simplifying the code 9519considerably. 9520 9521Obsoleted the AcpiOsCallocate OSL interface. This interface was 9522used only a handful of times and didn't have enough critical mass 9523for a separate interface. Replaced with a common calloc procedure 9524in the core. 9525 9526Fixed a reported problem with the GPE number mapping mechanism 9527that allows GPE1 numbers to be non-contiguous with GPE0. 9528Reorganized the GPE information and shrunk a large array that was 9529originally large enough to hold info for all possible GPEs (256) 9530to simply large enough to hold all GPEs up to the largest GPE 9531number on the machine. 9532 9533Fixed a reported problem with resource structure alignment on 64- 9534bit platforms. 9535 9536Changed the AcpiEnableEvent and AcpiDisableEvent external 9537interfaces to not require any flags for the common case of 9538enabling/disabling a GPE. 9539 9540Implemented support to allow a "Notify" on a Processor object. 9541 9542Most TBDs in comments within the source code have been resolved 9543and eliminated. 9544 9545 9546Fixed a problem in the interpreter where a standalone parent 9547prefix (^) was not handled correctly in the interpreter and 9548debugger. 9549 9550Removed obsolete and unnecessary GPE save/restore code. 9551 9552Implemented Field support in the ASL Load operator. This allows a 9553table to be loaded from a named field, in addition to loading a 9554table directly from an Operation Region. 9555 9556Implemented timeout and handle support in the external Global Lock 9557interfaces. 9558 9559Fixed a problem in the AcpiDump utility where pathnames were no 9560longer being generated correctly during the dump of named objects. 9561 9562Modified the AML debugger to give a full display of if/while 9563predicates instead of just one AML opcode at a time. (The 9564predicate can have several nested ASL statements.) The old method 9565was confusing during single stepping. 9566 9567Code and Data Size: Current core subsystem library sizes are shown 9568below. These are the code and data sizes for the acpica.lib 9569produced by the Microsoft Visual C++ 6.0 compiler, and these 9570values do not include any ACPI driver or OSPM code. The debug 9571version of the code includes the debug output trace mechanism and 9572has a larger code and data size. Note that these values will vary 9573depending on the efficiency of the compiler and the compiler 9574options used during generation. 9575 9576 Previous Release (12_18_01) 9577 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 9578 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 9579 Current Release: 9580 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 9581 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 9582 95832) Linux 9584 9585 Implemented fix for PIIX reverse throttling errata (Processor 9586driver) 9587 9588Added new Limit interface (Processor and Thermal drivers) 9589 9590New thermal policy (Thermal driver) 9591 9592Many updates to /proc 9593 9594Battery "low" event support (Battery driver) 9595 9596Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 9597 9598IA32 - IA64 initialization unification, no longer experimental 9599 9600Menuconfig options redesigned 9601 96023) ASL Compiler, version X2037: 9603 9604Implemented several new output features to simplify integration of 9605AML code into firmware: 1) Output the AML in C source code with 9606labels for each named ASL object. The original ASL source code 9607is interleaved as C comments. 2) Output the AML in ASM source code 9608with labels and interleaved ASL source. 3) Output the AML in 9609raw hex table form, in either C or ASM. 9610 9611Implemented support for optional string parameters to the 9612LoadTable operator. 9613 9614Completed support for embedded escape sequences within string 9615literals. The compiler now supports all single character escapes 9616as well as the Octal and Hex escapes. Note: the insertion of a 9617null byte into a string literal (via the hex/octal escape) causes 9618the string to be immediately terminated. A warning is issued. 9619 9620Fixed a problem where incorrect AML was generated for the case 9621where an ASL namepath consists of a single parent prefix ( 9622 9623) with no trailing name segments. 9624 9625The compiler has been successfully generated with a 64-bit C 9626compiler. 9627 9628 9629 9630 9631---------------------------------------- 9632Summary of changes for this label: 12_18_01 9633 96341) Linux 9635 9636Enhanced blacklist with reason and severity fields. Any table's 9637signature may now be used to identify a blacklisted system. 9638 9639Call _PIC control method to inform the firmware which interrupt 9640model the OS is using. Turn on any disabled link devices. 9641 9642Cleaned up busmgr /proc error handling (Andreas Dilger) 9643 9644 2) ACPI CA Core Subsystem: 9645 9646Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 9647while loop) 9648 9649Completed implementation of the ACPI 2.0 "Continue", 9650"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 9651operators. All new ACPI 2.0 operators are now implemented in both 9652the ASL compiler and the AML interpreter. The only remaining ACPI 96532.0 task is support for the String data type in the DerefOf 9654operator. Fixed a problem with AcquireMutex where the status code 9655was lost if the caller had to actually wait for the mutex. 9656 9657Increased the maximum ASL Field size from 64K bits to 4G bits. 9658 9659Completed implementation of the external Global Lock interfaces -- 9660AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 9661Handler parameters were added. 9662 9663Completed another pass at removing warnings and issues when 9664compiling with 64-bit compilers. The code now compiles cleanly 9665with the Intel 64-bit C/C++ compiler. Most notably, the pointer 9666add and subtract (diff) macros have changed considerably. 9667 9668 9669Created and deployed a new ACPI_SIZE type that is 64-bits wide on 967064-bit platforms, 32-bits on all others. This type is used 9671wherever memory allocation and/or the C sizeof() operator is used, 9672and affects the OSL memory allocation interfaces AcpiOsAllocate 9673and AcpiOsCallocate. 9674 9675Implemented sticky user breakpoints in the AML debugger. 9676 9677Code and Data Size: Current core subsystem library sizes are shown 9678below. These are the code and data sizes for the acpica.lib 9679produced by the Microsoft Visual C++ 6.0 compiler, and these 9680values do not include any ACPI driver or OSPM code. The debug 9681version of the code includes the debug output trace mechanism and 9682has a larger code and data size. Note that these values will vary 9683depending on the efficiency of the compiler and the compiler 9684options used during generation. 9685 9686 Previous Release (12_05_01) 9687 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 9688 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 9689 Current Release: 9690 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 9691 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 9692 9693 3) ASL Compiler, version X2034: 9694 9695Now checks for (and generates an error if detected) the use of a 9696Break or Continue statement without an enclosing While statement. 9697 9698 9699Successfully generated the compiler with the Intel 64-bit C 9700compiler. 9701 9702 ---------------------------------------- 9703Summary of changes for this label: 12_05_01 9704 9705 1) ACPI CA Core Subsystem: 9706 9707The ACPI 2.0 CopyObject operator is fully implemented. This 9708operator creates a new copy of an object (and is also used to 9709bypass the "implicit conversion" mechanism of the Store operator.) 9710 9711The ACPI 2.0 semantics for the SizeOf operator are fully 9712implemented. The change is that performing a SizeOf on a 9713reference object causes an automatic dereference of the object to 9714tha actual value before the size is evaluated. This behavior was 9715undefined in ACPI 1.0. 9716 9717The ACPI 2.0 semantics for the Extended IRQ resource descriptor 9718have been implemented. The interrupt polarity and mode are now 9719independently set. 9720 9721Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 9722appearing in Package objects were not properly converted to 9723integers when the internal Package was converted to an external 9724object (via the AcpiEvaluateObject interface.) 9725 9726Fixed a problem with the namespace object deletion mechanism for 9727objects created by control methods. There were two parts to this 9728problem: 1) Objects created during the initialization phase method 9729parse were not being deleted, and 2) The object owner ID mechanism 9730to track objects was broken. 9731 9732Fixed a problem where the use of the ASL Scope operator within a 9733control method would result in an invalid opcode exception. 9734 9735Fixed a problem introduced in the previous label where the buffer 9736length required for the _PRT structure was not being returned 9737correctly. 9738 9739Code and Data Size: Current core subsystem library sizes are shown 9740below. These are the code and data sizes for the acpica.lib 9741produced by the Microsoft Visual C++ 6.0 compiler, and these 9742values do not include any ACPI driver or OSPM code. The debug 9743version of the code includes the debug output trace mechanism and 9744has a larger code and data size. Note that these values will vary 9745depending on the efficiency of the compiler and the compiler 9746options used during generation. 9747 9748 Previous Release (11_20_01) 9749 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 9750 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 9751 9752 Current Release: 9753 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 9754 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 9755 9756 2) Linux: 9757 9758Updated all files to apply cleanly against 2.4.16. 9759 9760Added basic PCI Interrupt Routing Table (PRT) support for IA32 9761(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 9762version supports both static and dyanmic PRT entries, but dynamic 9763entries are treated as if they were static (not yet 9764reconfigurable). Architecture- specific code to use this data is 9765absent on IA32 but should be available shortly. 9766 9767Changed the initialization sequence to start the ACPI interpreter 9768(acpi_init) prior to initialization of the PCI driver (pci_init) 9769in init/main.c. This ordering is required to support PRT and 9770facilitate other (future) enhancement. A side effect is that the 9771ACPI bus driver and certain device drivers can no longer be loaded 9772as modules. 9773 9774Modified the 'make menuconfig' options to allow PCI Interrupt 9775Routing support to be included without the ACPI Bus and other 9776device drivers. 9777 9778 3) ASL Compiler, version X2033: 9779 9780Fixed some issues with the use of the new CopyObject and 9781DataTableRegion operators. Both are fully functional. 9782 9783 ---------------------------------------- 9784Summary of changes for this label: 11_20_01 9785 9786 20 November 2001. Summary of changes for this release. 9787 9788 1) ACPI CA Core Subsystem: 9789 9790Updated Index support to match ACPI 2.0 semantics. Storing a 9791Integer, String, or Buffer to an Index of a Buffer will store only 9792the least-significant byte of the source to the Indexed buffer 9793byte. Multiple writes are not performed. 9794 9795Fixed a problem where the access type used in an AccessAs ASL 9796operator was not recorded correctly into the field object. 9797 9798Fixed a problem where ASL Event objects were created in a 9799signalled state. Events are now created in an unsignalled state. 9800 9801The internal object cache is now purged after table loading and 9802initialization to reduce the use of dynamic kernel memory -- on 9803the assumption that object use is greatest during the parse phase 9804of the entire table (versus the run-time use of individual control 9805methods.) 9806 9807ACPI 2.0 variable-length packages are now fully operational. 9808 9809Code and Data Size: Code and Data optimizations have permitted new 9810feature development with an actual reduction in the library size. 9811Current core subsystem library sizes are shown below. These are 9812the code and data sizes for the acpica.lib produced by the 9813Microsoft Visual C++ 6.0 compiler, and these values do not include 9814any ACPI driver or OSPM code. The debug version of the code 9815includes the debug output trace mechanism and has a larger code 9816and data size. Note that these values will vary depending on the 9817efficiency of the compiler and the compiler options used during 9818generation. 9819 9820 Previous Release (11_09_01): 9821 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 9822 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 9823 9824 Current Release: 9825 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 9826 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 9827 9828 2) Linux: 9829 9830Enhanced the ACPI boot-time initialization code to allow the use 9831of Local APIC tables for processor enumeration on IA-32, and to 9832pave the way for a fully MPS-free boot (on SMP systems) in the 9833near future. This functionality replaces 9834arch/i386/kernel/acpitables.c, which was introduced in an earlier 98352.4.15-preX release. To enable this feature you must add 9836"acpi_boot=on" to the kernel command line -- see the help entry 9837for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 9838the works... 9839 9840Restructured the configuration options to allow boot-time table 9841parsing support without inclusion of the ACPI Interpreter (and 9842other) code. 9843 9844NOTE: This release does not include fixes for the reported events, 9845power-down, and thermal passive cooling issues (coming soon). 9846 9847 3) ASL Compiler: 9848 9849Added additional typechecking for Fields within restricted access 9850Operation Regions. All fields within EC and CMOS regions must be 9851declared with ByteAcc. All fields withing SMBus regions must be 9852declared with the BufferAcc access type. 9853 9854Fixed a problem where the listing file output of control methods 9855no longer interleaved the actual AML code with the ASL source 9856code. 9857 9858 9859 9860 9861---------------------------------------- 9862Summary of changes for this label: 11_09_01 9863 98641) ACPI CA Core Subsystem: 9865 9866Implemented ACPI 2.0-defined support for writes to fields with a 9867Buffer, String, or Integer source operand that is smaller than the 9868target field. In these cases, the source operand is zero-extended 9869to fill the target field. 9870 9871Fixed a problem where a Field starting bit offset (within the 9872parent operation region) was calculated incorrectly if the 9873 9874alignment of the field differed from the access width. This 9875affected CreateWordField, CreateDwordField, CreateQwordField, and 9876possibly other fields that use the "AccessAny" keyword. 9877 9878Fixed a problem introduced in the 11_02_01 release where indirect 9879stores through method arguments did not operate correctly. 9880 98812) Linux: 9882 9883Implemented boot-time ACPI table parsing support 9884(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 9885facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 9886legacy BIOS interfaces (e.g. MPS) for the configuration of system 9887processors, memory, and interrupts during setup_arch(). Note that 9888this patch does not include the required architecture-specific 9889changes required to apply this information -- subsequent patches 9890will be posted for both IA32 and IA64 to achieve this. 9891 9892Added low-level sleep support for IA32 platforms, courtesy of Pat 9893Mochel. This allows IA32 systems to transition to/from various 9894sleeping states (e.g. S1, S3), although the lack of a centralized 9895driver model and power-manageable drivers will prevent its 9896(successful) use on most systems. 9897 9898Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 9899submenu, unified IA32 and IA64 options, added new "Boot using ACPI 9900tables" option, etc. 9901 9902Increased the default timeout for the EC driver from 1ms to 10ms 9903(1000 cycles of 10us) to try to address AE_TIME errors during EC 9904transactions. 9905 9906 ---------------------------------------- 9907Summary of changes for this label: 11_02_01 9908 99091) ACPI CA Core Subsystem: 9910 9911ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 9912(QWordAcc keyword). All ACPI 2.0 64-bit support is now 9913implemented. 9914 9915OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 9916changes to support ACPI 2.0 Qword field access. Read/Write 9917PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 9918accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 9919the value parameter for the address space handler interface is now 9920an ACPI_INTEGER. OSL implementations of these interfaces must now 9921handle the case where the Width parameter is 64. 9922 9923Index Fields: Fixed a problem where unaligned bit assembly and 9924disassembly for IndexFields was not supported correctly. 9925 9926Index and Bank Fields: Nested Index and Bank Fields are now 9927supported. During field access, a check is performed to ensure 9928that the value written to an Index or Bank register is not out of 9929the range of the register. The Index (or Bank) register is 9930written before each access to the field data. Future support will 9931include allowing individual IndexFields to be wider than the 9932DataRegister width. 9933 9934Fields: Fixed a problem where the AML interpreter was incorrectly 9935attempting to write beyond the end of a Field/OpRegion. This was 9936a boundary case that occurred when a DWORD field was written to a 9937BYTE access OpRegion, forcing multiple writes and causing the 9938interpreter to write one datum too many. 9939 9940Fields: Fixed a problem with Field/OpRegion access where the 9941starting bit address of a field was incorrectly calculated if the 9942current access type was wider than a byte (WordAcc, DwordAcc, or 9943QwordAcc). 9944 9945Fields: Fixed a problem where forward references to individual 9946FieldUnits (individual Field names within a Field definition) were 9947not resolved during the AML table load. 9948 9949Fields: Fixed a problem where forward references from a Field 9950definition to the parent Operation Region definition were not 9951resolved during the AML table load. 9952 9953Fields: Duplicate FieldUnit names within a scope are now detected 9954during AML table load. 9955 9956Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 9957returned an incorrect name for the root node. 9958 9959Code and Data Size: Code and Data optimizations have permitted new 9960feature development with an actual reduction in the library size. 9961Current core subsystem library sizes are shown below. These are 9962the code and data sizes for the acpica.lib produced by the 9963Microsoft Visual C++ 6.0 compiler, and these values do not include 9964any ACPI driver or OSPM code. The debug version of the code 9965includes the debug output trace mechanism and has a larger code 9966and data size. Note that these values will vary depending on the 9967efficiency of the compiler and the compiler options used during 9968generation. 9969 9970 Previous Release (10_18_01): 9971 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 9972 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 9973 9974 Current Release: 9975 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 9976 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 9977 9978 2) Linux: 9979 9980Improved /proc processor output (Pavel Machek) Re-added 9981MODULE_LICENSE("GPL") to all modules. 9982 9983 3) ASL Compiler version X2030: 9984 9985Duplicate FieldUnit names within a scope are now detected and 9986flagged as errors. 9987 9988 4) Documentation: 9989 9990Programmer Reference updated to reflect OSL and address space 9991handler interface changes described above. 9992 9993---------------------------------------- 9994Summary of changes for this label: 10_18_01 9995 9996ACPI CA Core Subsystem: 9997 9998Fixed a problem with the internal object reference count mechanism 9999that occasionally caused premature object deletion. This resolves 10000all of the outstanding problem reports where an object is deleted 10001in the middle of an interpreter evaluation. Although this problem 10002only showed up in rather obscure cases, the solution to the 10003problem involved an adjustment of all reference counts involving 10004objects attached to namespace nodes. 10005 10006Fixed a problem with Field support in the interpreter where 10007writing to an aligned field whose length is an exact multiple (2 10008or greater) of the field access granularity would cause an attempt 10009to write beyond the end of the field. 10010 10011The top level AML opcode execution functions within the 10012interpreter have been renamed with a more meaningful and 10013consistent naming convention. The modules exmonad.c and 10014exdyadic.c were eliminated. New modules are exoparg1.c, 10015exoparg2.c, exoparg3.c, and exoparg6.c. 10016 10017Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 10018 10019Fixed a problem where the AML debugger was causing some internal 10020objects to not be deleted during subsystem termination. 10021 10022Fixed a problem with the external AcpiEvaluateObject interface 10023where the subsystem would fault if the named object to be 10024evaluated refered to a constant such as Zero, Ones, etc. 10025 10026Fixed a problem with IndexFields and BankFields where the 10027subsystem would fault if the index, data, or bank registers were 10028not defined in the same scope as the field itself. 10029 10030Added printf format string checking for compilers that support 10031this feature. Corrected more than 50 instances of issues with 10032format specifiers within invocations of ACPI_DEBUG_PRINT 10033throughout the core subsystem code. 10034 10035The ASL "Revision" operator now returns the ACPI support level 10036implemented in the core - the value "2" since the ACPI 2.0 support 10037is more than 50% implemented. 10038 10039Enhanced the output of the AML debugger "dump namespace" command 10040to output in a more human-readable form. 10041 10042Current core subsystem library code sizes are shown below. These 10043 10044are the code and data sizes for the acpica.lib produced by the 10045Microsoft Visual C++ 6.0 compiler, and these values do not include 10046any ACPI driver or OSPM code. The debug version of the code 10047includes the full debug trace mechanism -- leading to a much 10048 10049larger code and data size. Note that these values will vary 10050depending on the efficiency of the compiler and the compiler 10051options used during generation. 10052 10053 Previous Label (09_20_01): 10054 Non-Debug Version: 65K Code, 5K Data, 70K Total 10055 Debug Version: 138K Code, 58K Data, 196K Total 10056 10057 This Label: 10058 10059 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 10060 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 10061 10062Linux: 10063 10064Implemented a "Bad BIOS Blacklist" to track machines that have 10065known ASL/AML problems. 10066 10067Enhanced the /proc interface for the thermal zone driver and added 10068support for _HOT (the critical suspend trip point). The 'info' 10069file now includes threshold/policy information, and allows setting 10070of _SCP (cooling preference) and _TZP (polling frequency) values 10071to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 10072frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 10073preference to the passive/quiet mode (if supported by the ASL). 10074 10075Implemented a workaround for a gcc bug that resuted in an OOPs 10076when loading the control method battery driver. 10077 10078 ---------------------------------------- 10079Summary of changes for this label: 09_20_01 10080 10081 ACPI CA Core Subsystem: 10082 10083The AcpiEnableEvent and AcpiDisableEvent interfaces have been 10084modified to allow individual GPE levels to be flagged as wake- 10085enabled (i.e., these GPEs are to remain enabled when the platform 10086sleeps.) 10087 10088The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 10089support wake-enabled GPEs. This means that upon entering the 10090sleep state, all GPEs that are not wake-enabled are disabled. 10091When leaving the sleep state, these GPEs are reenabled. 10092 10093A local double-precision divide/modulo module has been added to 10094enhance portability to OS kernels where a 64-bit math library is 10095not available. The new module is "utmath.c". 10096 10097Several optimizations have been made to reduce the use of CPU 10098stack. Originally over 2K, the maximum stack usage is now below 100992K at 1860 bytes (1.82k) 10100 10101Fixed a problem with the AcpiGetFirmwareTable interface where the 10102root table pointer was not mapped into a logical address properly. 10103 10104Fixed a problem where a NULL pointer was being dereferenced in the 10105interpreter code for the ASL Notify operator. 10106 10107Fixed a problem where the use of the ASL Revision operator 10108returned an error. This operator now returns the current version 10109of the ACPI CA core subsystem. 10110 10111Fixed a problem where objects passed as control method parameters 10112to AcpiEvaluateObject were always deleted at method termination. 10113However, these objects may end up being stored into the namespace 10114by the called method. The object reference count mechanism was 10115applied to these objects instead of a force delete. 10116 10117Fixed a problem where static strings or buffers (contained in the 10118AML code) that are declared as package elements within the ASL 10119code could cause a fault because the interpreter would attempt to 10120delete them. These objects are now marked with the "static 10121object" flag to prevent any attempt to delete them. 10122 10123Implemented an interpreter optimization to use operands directly 10124from the state object instead of extracting the operands to local 10125variables. This reduces stack use and code size, and improves 10126performance. 10127 10128The module exxface.c was eliminated as it was an unnecessary extra 10129layer of code. 10130 10131Current core subsystem library code sizes are shown below. These 10132are the code and data sizes for the acpica.lib produced by the 10133Microsoft Visual C++ 6.0 compiler, and these values do not include 10134any ACPI driver or OSPM code. The debug version of the code 10135includes the full debug trace mechanism -- leading to a much 10136larger code and data size. Note that these values will vary 10137depending on the efficiency of the compiler and the compiler 10138options used during generation. 10139 10140 Non-Debug Version: 65K Code, 5K Data, 70K Total 10141(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 10142Total (Previously 195K) 10143 10144Linux: 10145 10146Support for ACPI 2.0 64-bit integers has been added. All ACPI 10147Integer objects are now 64 bits wide 10148 10149All Acpi data types and structures are now in lower case. Only 10150Acpi macros are upper case for differentiation. 10151 10152 Documentation: 10153 10154Changes to the external interfaces as described above. 10155 10156 ---------------------------------------- 10157Summary of changes for this label: 08_31_01 10158 10159 ACPI CA Core Subsystem: 10160 10161A bug with interpreter implementation of the ASL Divide operator 10162was found and fixed. The implicit function return value (not the 10163explicit store operands) was returning the remainder instead of 10164the quotient. This was a longstanding bug and it fixes several 10165known outstanding issues on various platforms. 10166 10167The ACPI_DEBUG_PRINT and function trace entry/exit macros have 10168been further optimized for size. There are 700 invocations of the 10169DEBUG_PRINT macro alone, so each optimization reduces the size of 10170the debug version of the subsystem significantly. 10171 10172A stack trace mechanism has been implemented. The maximum stack 10173usage is about 2K on 32-bit platforms. The debugger command "stat 10174stack" will display the current maximum stack usage. 10175 10176All public symbols and global variables within the subsystem are 10177now prefixed with the string "Acpi". This keeps all of the 10178symbols grouped together in a kernel map, and avoids conflicts 10179with other kernel subsystems. 10180 10181Most of the internal fixed lookup tables have been moved into the 10182code segment via the const operator. 10183 10184Several enhancements have been made to the interpreter to both 10185reduce the code size and improve performance. 10186 10187Current core subsystem library code sizes are shown below. These 10188are the code and data sizes for the acpica.lib produced by the 10189Microsoft Visual C++ 6.0 compiler, and these values do not include 10190any ACPI driver or OSPM code. The debug version of the code 10191includes the full debug trace mechanism which contains over 700 10192invocations of the DEBUG_PRINT macro, 500 function entry macro 10193invocations, and over 900 function exit macro invocations -- 10194leading to a much larger code and data size. Note that these 10195values will vary depending on the efficiency of the compiler and 10196the compiler options used during generation. 10197 10198 Non-Debug Version: 64K Code, 5K Data, 69K Total 10199Debug Version: 137K Code, 58K Data, 195K Total 10200 10201 Linux: 10202 10203Implemented wbinvd() macro, pending a kernel-wide definition. 10204 10205Fixed /proc/acpi/event to handle poll() and short reads. 10206 10207 ASL Compiler, version X2026: 10208 10209Fixed a problem introduced in the previous label where the AML 10210 10211code emitted for package objects produced packages with zero 10212length. 10213 10214 ---------------------------------------- 10215Summary of changes for this label: 08_16_01 10216 10217ACPI CA Core Subsystem: 10218 10219The following ACPI 2.0 ASL operators have been implemented in the 10220AML interpreter (These are already supported by the Intel ASL 10221compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 10222ToBuffer. Support for 64-bit AML constants is implemented in the 10223AML parser, debugger, and disassembler. 10224 10225The internal memory tracking mechanism (leak detection code) has 10226been upgraded to reduce the memory overhead (a separate tracking 10227block is no longer allocated for each memory allocation), and now 10228supports all of the internal object caches. 10229 10230The data structures and code for the internal object caches have 10231been coelesced and optimized so that there is a single cache and 10232memory list data structure and a single group of functions that 10233implement generic cache management. This has reduced the code 10234size in both the debug and release versions of the subsystem. 10235 10236The DEBUG_PRINT macro(s) have been optimized for size and replaced 10237by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 10238different, because it generates a single call to an internal 10239function. This results in a savings of about 90 bytes per 10240invocation, resulting in an overall code and data savings of about 1024116% in the debug version of the subsystem. 10242 10243 Linux: 10244 10245Fixed C3 disk corruption problems and re-enabled C3 on supporting 10246machines. 10247 10248Integrated low-level sleep code by Patrick Mochel. 10249 10250Further tweaked source code Linuxization. 10251 10252Other minor fixes. 10253 10254 ASL Compiler: 10255 10256Support for ACPI 2.0 variable length packages is fixed/completed. 10257 10258Fixed a problem where the optional length parameter for the ACPI 102592.0 ToString operator. 10260 10261Fixed multiple extraneous error messages when a syntax error is 10262detected within the declaration line of a control method. 10263 10264 ---------------------------------------- 10265Summary of changes for this label: 07_17_01 10266 10267ACPI CA Core Subsystem: 10268 10269Added a new interface named AcpiGetFirmwareTable to obtain any 10270ACPI table via the ACPI signature. The interface can be called at 10271any time during kernel initialization, even before the kernel 10272virtual memory manager is initialized and paging is enabled. This 10273allows kernel subsystems to obtain ACPI tables very early, even 10274before the ACPI CA subsystem is initialized. 10275 10276Fixed a problem where Fields defined with the AnyAcc attribute 10277could be resolved to the incorrect address under the following 10278conditions: 1) the field width is larger than 8 bits and 2) the 10279parent operation region is not defined on a DWORD boundary. 10280 10281Fixed a problem where the interpreter is not being locked during 10282namespace initialization (during execution of the _INI control 10283methods), causing an error when an attempt is made to release it 10284later. 10285 10286ACPI 2.0 support in the AML Interpreter has begun and will be 10287ongoing throughout the rest of this year. In this label, The Mod 10288operator is implemented. 10289 10290Added a new data type to contain full PCI addresses named 10291ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 10292and Function values. 10293 10294 Linux: 10295 10296Enhanced the Linux version of the source code to change most 10297capitalized ACPI type names to lowercase. For example, all 10298instances of ACPI_STATUS are changed to acpi_status. This will 10299result in a large diff, but the change is strictly cosmetic and 10300aligns the CA code closer to the Linux coding standard. 10301 10302OSL Interfaces: 10303 10304The interfaces to the PCI configuration space have been changed to 10305add the PCI Segment number and to split the single 32-bit combined 10306DeviceFunction field into two 16-bit fields. This was 10307accomplished by moving the four values that define an address in 10308PCI configuration space (segment, bus, device, and function) to 10309the new ACPI_PCI_ID structure. 10310 10311The changes to the PCI configuration space interfaces led to a 10312reexamination of the complete set of address space access 10313interfaces for PCI, I/O, and Memory. The previously existing 18 10314interfaces have proven difficult to maintain (any small change 10315must be propagated across at least 6 interfaces) and do not easily 10316allow for future expansion to 64 bits if necessary. Also, on some 10317systems, it would not be appropriate to demultiplex the access 10318width (8, 16, 32,or 64) before calling the OSL if the 10319corresponding native OS interfaces contain a similar access width 10320parameter. For these reasons, the 18 address space interfaces 10321have been replaced by these 6 new ones: 10322 10323AcpiOsReadPciConfiguration 10324AcpiOsWritePciConfiguration 10325AcpiOsReadMemory 10326AcpiOsWriteMemory 10327AcpiOsReadPort 10328AcpiOsWritePort 10329 10330Added a new interface named AcpiOsGetRootPointer to allow the OSL 10331to perform the platform and/or OS-specific actions necessary to 10332obtain the ACPI RSDP table pointer. On IA-32 platforms, this 10333interface will simply call down to the CA core to perform the low- 10334memory search for the table. On IA-64, the RSDP is obtained from 10335EFI. Migrating this interface to the OSL allows the CA core to 10336 10337remain OS and platform independent. 10338 10339Added a new interface named AcpiOsSignal to provide a generic 10340"function code and pointer" interface for various miscellaneous 10341signals and notifications that must be made to the host OS. The 10342first such signals are intended to support the ASL Fatal and 10343Breakpoint operators. In the latter case, the AcpiOsBreakpoint 10344interface has been obsoleted. 10345 10346The definition of the AcpiFormatException interface has been 10347changed to simplify its use. The caller no longer must supply a 10348buffer to the call; A pointer to a const string is now returned 10349directly. This allows the call to be easily used in printf 10350statements, etc. since the caller does not have to manage a local 10351buffer. 10352 10353 10354 ASL Compiler, Version X2025: 10355 10356The ACPI 2.0 Switch/Case/Default operators have been implemented 10357and are fully functional. They will work with all ACPI 1.0 10358interpreters, since the operators are simply translated to If/Else 10359pairs. 10360 10361The ACPI 2.0 ElseIf operator is implemented and will also work 10362with 1.0 interpreters, for the same reason. 10363 10364Implemented support for ACPI 2.0 variable-length packages. These 10365packages have a separate opcode, and their size is determined by 10366the interpreter at run-time. 10367 10368Documentation The ACPI CA Programmer Reference has been updated to 10369reflect the new interfaces and changes to existing interfaces. 10370 10371 ------------------------------------------ 10372Summary of changes for this label: 06_15_01 10373 10374 ACPI CA Core Subsystem: 10375 10376Fixed a problem where a DWORD-accessed field within a Buffer 10377object would get its byte address inadvertently rounded down to 10378the nearest DWORD. Buffers are always Byte-accessible. 10379 10380 ASL Compiler, version X2024: 10381 10382Fixed a problem where the Switch() operator would either fault or 10383hang the compiler. Note however, that the AML code for this ACPI 103842.0 operator is not yet implemented. 10385 10386Compiler uses the new AcpiOsGetTimer interface to obtain compile 10387timings. 10388 10389Implementation of the CreateField operator automatically converts 10390a reference to a named field within a resource descriptor from a 10391byte offset to a bit offset if required. 10392 10393Added some missing named fields from the resource descriptor 10394support. These are the names that are automatically created by the 10395compiler to reference fields within a descriptor. They are only 10396valid at compile time and are not passed through to the AML 10397interpreter. 10398 10399Resource descriptor named fields are now typed as Integers and 10400subject to compile-time typechecking when used in expressions. 10401 10402 ------------------------------------------ 10403Summary of changes for this label: 05_18_01 10404 10405 ACPI CA Core Subsystem: 10406 10407Fixed a couple of problems in the Field support code where bits 10408from adjacent fields could be returned along with the proper field 10409bits. Restructured the field support code to improve performance, 10410readability and maintainability. 10411 10412New DEBUG_PRINTP macro automatically inserts the procedure name 10413into the output, saving hundreds of copies of procedure name 10414strings within the source, shrinking the memory footprint of the 10415debug version of the core subsystem. 10416 10417 Source Code Structure: 10418 10419The source code directory tree was restructured to reflect the 10420current organization of the component architecture. Some files 10421and directories have been moved and/or renamed. 10422 10423 Linux: 10424 10425Fixed leaking kacpidpc processes. 10426 10427Fixed queueing event data even when /proc/acpi/event is not 10428opened. 10429 10430 ASL Compiler, version X2020: 10431 10432Memory allocation performance enhancement - over 24X compile time 10433improvement on large ASL files. Parse nodes and namestring 10434buffers are now allocated from a large internal compiler buffer. 10435 10436The temporary .SRC file is deleted unless the "-s" option is 10437specified 10438 10439The "-d" debug output option now sends all output to the .DBG file 10440instead of the console. 10441 10442"External" second parameter is now optional 10443 10444"ElseIf" syntax now properly allows the predicate 10445 10446Last operand to "Load" now recognized as a Target operand 10447 10448Debug object can now be used anywhere as a normal object. 10449 10450ResourceTemplate now returns an object of type BUFFER 10451 10452EISAID now returns an object of type INTEGER 10453 10454"Index" now works with a STRING operand 10455 10456"LoadTable" now accepts optional parameters 10457 10458"ToString" length parameter is now optional 10459 10460"Interrupt (ResourceType," parse error fixed. 10461 10462"Register" with a user-defined region space parse error fixed 10463 10464Escaped backslash at the end of a string ("\\") scan/parse error 10465fixed 10466 10467"Revision" is now an object of type INTEGER. 10468 10469 10470 10471------------------------------------------ 10472Summary of changes for this label: 05_02_01 10473 10474Linux: 10475 10476/proc/acpi/event now blocks properly. 10477 10478Removed /proc/sys/acpi. You can still dump your DSDT from 10479/proc/acpi/dsdt. 10480 10481 ACPI CA Core Subsystem: 10482 10483Fixed a problem introduced in the previous label where some of the 10484"small" resource descriptor types were not recognized. 10485 10486Improved error messages for the case where an ASL Field is outside 10487the range of the parent operation region. 10488 10489 ASL Compiler, version X2018: 10490 10491 10492Added error detection for ASL Fields that extend beyond the length 10493of the parent operation region (only if the length of the region 10494is known at compile time.) This includes fields that have a 10495minimum access width that is smaller than the parent region, and 10496individual field units that are partially or entirely beyond the 10497extent of the parent. 10498 10499 10500 10501------------------------------------------ 10502Summary of changes for this label: 04_27_01 10503 10504 ACPI CA Core Subsystem: 10505 10506Fixed a problem where the namespace mutex could be released at the 10507wrong time during execution of AcpiRemoveAddressSpaceHandler. 10508 10509Added optional thread ID output for debug traces, to simplify 10510debugging of multiple threads. Added context switch notification 10511when the debug code realizes that a different thread is now 10512executing ACPI code. 10513 10514Some additional external data types have been prefixed with the 10515string "ACPI_" for consistency. This may effect existing code. 10516The data types affected are the external callback typedefs - e.g., 10517 10518WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 10519 10520 Linux: 10521 10522Fixed an issue with the OSL semaphore implementation where a 10523thread was waking up with an error from receiving a SIGCHLD 10524signal. 10525 10526Linux version of ACPI CA now uses the system C library for string 10527manipulation routines instead of a local implementation. 10528 10529Cleaned up comments and removed TBDs. 10530 10531 ASL Compiler, version X2017: 10532 10533Enhanced error detection and reporting for all file I/O 10534operations. 10535 10536 Documentation: 10537 10538Programmer Reference updated to version 1.06. 10539 10540 10541 10542------------------------------------------ 10543Summary of changes for this label: 04_13_01 10544 10545 ACPI CA Core Subsystem: 10546 10547Restructured support for BufferFields and RegionFields. 10548BankFields support is now fully operational. All known 32-bit 10549limitations on field sizes have been removed. Both BufferFields 10550and (Operation) RegionFields are now supported by the same field 10551management code. 10552 10553Resource support now supports QWORD address and IO resources. The 1055416/32/64 bit address structures and the Extended IRQ structure 10555have been changed to properly handle Source Resource strings. 10556 10557A ThreadId of -1 is now used to indicate a "mutex not acquired" 10558condition internally and must never be returned by AcpiOsThreadId. 10559This reserved value was changed from 0 since Unix systems allow a 10560thread ID of 0. 10561 10562Linux: 10563 10564Driver code reorganized to enhance portability 10565 10566Added a kernel configuration option to control ACPI_DEBUG 10567 10568Fixed the EC driver to honor _GLK. 10569 10570ASL Compiler, version X2016: 10571 10572Fixed support for the "FixedHw" keyword. Previously, the FixedHw 10573address space was set to 0, not 0x7f as it should be. 10574 10575 ------------------------------------------ 10576Summary of changes for this label: 03_13_01 10577 10578 ACPI CA Core Subsystem: 10579 10580During ACPI initialization, the _SB_._INI method is now run if 10581present. 10582 10583Notify handler fix - notifies are deferred until the parent method 10584completes execution. This fixes the "mutex already acquired" 10585issue seen occasionally. 10586 10587Part of the "implicit conversion" rules in ACPI 2.0 have been 10588found to cause compatibility problems with existing ASL/AML. The 10589convert "result-to-target-type" implementation has been removed 10590for stores to method Args and Locals. Source operand conversion 10591is still fully implemented. Possible changes to ACPI 2.0 10592specification pending. 10593 10594Fix to AcpiRsCalculatePciRoutingTableLength to return correct 10595length. 10596 10597Fix for compiler warnings for 64-bit compiles. 10598 10599 Linux: 10600 10601/proc output aligned for easier parsing. 10602 10603Release-version compile problem fixed. 10604 10605New kernel configuration options documented in Configure.help. 10606 10607IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 10608context" message. 10609 10610 OSPM: 10611 10612Power resource driver integrated with bus manager. 10613 10614Fixed kernel fault during active cooling for thermal zones. 10615 10616Source Code: 10617 10618The source code tree has been restructured. 10619 10620 10621 10622------------------------------------------ 10623Summary of changes for this label: 03_02_01 10624 10625 Linux OS Services Layer (OSL): 10626 10627Major revision of all Linux-specific code. 10628 10629Modularized all ACPI-specific drivers. 10630 10631Added new thermal zone and power resource drivers. 10632 10633Revamped /proc interface (new functionality is under /proc/acpi). 10634 10635New kernel configuration options. 10636 10637 Linux known issues: 10638 10639New kernel configuration options not documented in Configure.help 10640yet. 10641 10642 10643Module dependencies not currently implemented. If used, they 10644should be loaded in this order: busmgr, power, ec, system, 10645processor, battery, ac_adapter, button, thermal. 10646 10647Modules will not load if CONFIG_MODVERSION is set. 10648 10649IBM 600E - entering S5 may reboot instead of shutting down. 10650 10651IBM 600E - Sleep button may generate "Invalid <NULL> context" 10652message. 10653 10654Some systems may fail with "execution mutex already acquired" 10655message. 10656 10657 ACPI CA Core Subsystem: 10658 10659Added a new OSL Interface, AcpiOsGetThreadId. This was required 10660for the deadlock detection code. Defined to return a non-zero, 32- 10661bit thread ID for the currently executing thread. May be a non- 10662zero constant integer on single-thread systems. 10663 10664Implemented deadlock detection for internal subsystem mutexes. We 10665may add conditional compilation for this code (debug only) later. 10666 10667ASL/AML Mutex object semantics are now fully supported. This 10668includes multiple acquires/releases by owner and support for the 10669 10670Mutex SyncLevel parameter. 10671 10672A new "Force Release" mechanism automatically frees all ASL 10673Mutexes that have been acquired but not released when a thread 10674exits the interpreter. This forces conformance to the ACPI spec 10675("All mutexes must be released when an invocation exits") and 10676prevents deadlocked ASL threads. This mechanism can be expanded 10677(later) to monitor other resource acquisitions if OEM ASL code 10678continues to misbehave (which it will). 10679 10680Several new ACPI exception codes have been added for the Mutex 10681support. 10682 10683Recursive method calls are now allowed and supported (the ACPI 10684spec does in fact allow recursive method calls.) The number of 10685recursive calls is subject to the restrictions imposed by the 10686SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 10687parameter. 10688 10689Implemented support for the SyncLevel parameter for control 10690methods (ACPI 2.0 feature) 10691 10692Fixed a deadlock problem when multiple threads attempted to use 10693the interpreter. 10694 10695Fixed a problem where the string length of a String package 10696element was not always set in a package returned from 10697AcpiEvaluateObject. 10698 10699Fixed a problem where the length of a String package element was 10700not always included in the length of the overall package returned 10701from AcpiEvaluateObject. 10702 10703Added external interfaces (Acpi*) to the ACPI debug memory 10704manager. This manager keeps a list of all outstanding 10705allocations, and can therefore detect memory leaks and attempts to 10706free memory blocks more than once. Useful for code such as the 10707power manager, etc. May not be appropriate for device drivers. 10708Performance with the debug code enabled is slow. 10709 10710The ACPI Global Lock is now an optional hardware element. 10711 10712 ASL Compiler Version X2015: 10713 10714Integrated changes to allow the compiler to be generated on 10715multiple platforms. 10716 10717Linux makefile added to generate the compiler on Linux 10718 10719 Source Code: 10720 10721All platform-specific headers have been moved to their own 10722subdirectory, Include/Platform. 10723 10724New source file added, Interpreter/ammutex.c 10725 10726New header file, Include/acstruct.h 10727 10728 Documentation: 10729 10730The programmer reference has been updated for the following new 10731interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 10732 10733 ------------------------------------------ 10734Summary of changes for this label: 02_08_01 10735 10736Core ACPI CA Subsystem: Fixed a problem where an error was 10737incorrectly returned if the return resource buffer was larger than 10738the actual data (in the resource interfaces). 10739 10740References to named objects within packages are resolved to the 10741 10742full pathname string before packages are returned directly (via 10743the AcpiEvaluateObject interface) or indirectly via the resource 10744interfaces. 10745 10746Linux OS Services Layer (OSL): 10747 10748Improved /proc battery interface. 10749 10750 10751Added C-state debugging output and other miscellaneous fixes. 10752 10753ASL Compiler Version X2014: 10754 10755All defined method arguments can now be used as local variables, 10756including the ones that are not actually passed in as parameters. 10757The compiler tracks initialization of the arguments and issues an 10758exception if they are used without prior assignment (just like 10759locals). 10760 10761The -o option now specifies a filename prefix that is used for all 10762output files, including the AML output file. Otherwise, the 10763default behavior is as follows: 1) the AML goes to the file 10764specified in the DSDT. 2) all other output files use the input 10765source filename as the base. 10766 10767 ------------------------------------------ 10768Summary of changes for this label: 01_25_01 10769 10770Core ACPI CA Subsystem: Restructured the implementation of object 10771store support within the interpreter. This includes support for 10772the Store operator as well as any ASL operators that include a 10773target operand. 10774 10775Partially implemented support for Implicit Result-to-Target 10776conversion. This is when a result object is converted on the fly 10777to the type of an existing target object. Completion of this 10778support is pending further analysis of the ACPI specification 10779concerning this matter. 10780 10781CPU-specific code has been removed from the subsystem (hardware 10782directory). 10783 10784New Power Management Timer functions added 10785 10786Linux OS Services Layer (OSL): Moved system state transition code 10787to the core, fixed it, and modified Linux OSL accordingly. 10788 10789Fixed C2 and C3 latency calculations. 10790 10791 10792We no longer use the compilation date for the version message on 10793initialization, but retrieve the version from AcpiGetSystemInfo(). 10794 10795Incorporated for fix Sony VAIO machines. 10796 10797Documentation: The Programmer Reference has been updated and 10798reformatted. 10799 10800 10801ASL Compiler: Version X2013: Fixed a problem where the line 10802numbering and error reporting could get out of sync in the 10803presence of multiple include files. 10804 10805 ------------------------------------------ 10806Summary of changes for this label: 01_15_01 10807 10808Core ACPI CA Subsystem: 10809 10810Implemented support for type conversions in the execution of the 10811ASL Concatenate operator (The second operand is converted to 10812match the type of the first operand before concatenation.) 10813 10814Support for implicit source operand conversion is partially 10815implemented. The ASL source operand types Integer, Buffer, and 10816String are freely interchangeable for most ASL operators and are 10817converted by the interpreter on the fly as required. Implicit 10818Target operand conversion (where the result is converted to the 10819target type before storing) is not yet implemented. 10820 10821Support for 32-bit and 64-bit BCD integers is implemented. 10822 10823Problem fixed where a field read on an aligned field could cause a 10824read past the end of the field. 10825 10826New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 10827does not return a value, but the caller expects one. (The ASL 10828compiler flags this as a warning.) 10829 10830ASL Compiler: 10831 10832Version X2011: 108331. Static typechecking of all operands is implemented. This 10834prevents the use of invalid objects (such as using a Package where 10835an Integer is required) at compile time instead of at interpreter 10836run-time. 108372. The ASL source line is printed with ALL errors and warnings. 108383. Bug fix for source EOF without final linefeed. 108394. Debug option is split into a parse trace and a namespace trace. 108405. Namespace output option (-n) includes initial values for 10841integers and strings. 108426. Parse-only option added for quick syntax checking. 108437. Compiler checks for duplicate ACPI name declarations 10844 10845Version X2012: 108461. Relaxed typechecking to allow interchangeability between 10847strings, integers, and buffers. These types are now converted by 10848the interpreter at runtime. 108492. Compiler reports time taken by each internal subsystem in the 10850debug output file. 10851 10852 10853 ------------------------------------------ 10854Summary of changes for this label: 12_14_00 10855 10856ASL Compiler: 10857 10858This is the first official release of the compiler. Since the 10859compiler requires elements of the Core Subsystem, this label 10860synchronizes everything. 10861 10862------------------------------------------ 10863Summary of changes for this label: 12_08_00 10864 10865 10866Fixed a problem where named references within the ASL definition 10867of both OperationRegions and CreateXXXFields did not work 10868properly. The symptom was an AE_AML_OPERAND_TYPE during 10869initialization of the region/field. This is similar (but not 10870related internally) to the problem that was fixed in the last 10871label. 10872 10873Implemented both 32-bit and 64-bit support for the BCD ASL 10874functions ToBCD and FromBCD. 10875 10876Updated all legal headers to include "2000" in the copyright 10877years. 10878 10879 ------------------------------------------ 10880Summary of changes for this label: 12_01_00 10881 10882Fixed a problem where method invocations within the ASL definition 10883of both OperationRegions and CreateXXXFields did not work 10884properly. The symptom was an AE_AML_OPERAND_TYPE during 10885initialization of the region/field: 10886 10887 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 10888[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 10889(0x3005) 10890 10891Fixed a problem where operators with more than one nested 10892subexpression would fail. The symptoms were varied, by mostly 10893AE_AML_OPERAND_TYPE errors. This was actually a rather serious 10894problem that has gone unnoticed until now. 10895 10896 Subtract (Add (1,2), Multiply (3,4)) 10897 10898Fixed a problem where AcpiGetHandle didn't quite get fixed in the 10899previous build (The prefix part of a relative path was handled 10900incorrectly). 10901 10902Fixed a problem where Operation Region initialization failed if 10903the operation region name was a "namepath" instead of a simple 10904"nameseg". Symptom was an AE_NO_OPERAND error. 10905 10906Fixed a problem where an assignment to a local variable via the 10907indirect RefOf mechanism only worked for the first such 10908assignment. Subsequent assignments were ignored. 10909 10910 ------------------------------------------ 10911Summary of changes for this label: 11_15_00 10912 10913ACPI 2.0 table support with backwards support for ACPI 1.0 and the 109140.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 10915the AML interpreter does NOT have support for the new 2.0 ASL 10916grammar terms at this time. 10917 10918All ACPI hardware access is via the GAS structures in the ACPI 2.0 10919FADT. 10920 10921All physical memory addresses across all platforms are now 64 bits 10922wide. Logical address width remains dependent on the platform 10923(i.e., "void *"). 10924 10925AcpiOsMapMemory interface changed to a 64-bit physical address. 10926 10927The AML interpreter integer size is now 64 bits, as per the ACPI 109282.0 specification. 10929 10930For backwards compatibility with ACPI 1.0, ACPI tables with a 10931revision number less than 2 use 32-bit integers only. 10932 10933Fixed a problem where the evaluation of OpRegion operands did not 10934always resolve them to numbers properly. 10935 10936------------------------------------------ 10937Summary of changes for this label: 10_20_00 10938 10939Fix for CBN_._STA issue. This fix will allow correct access to 10940CBN_ OpRegions when the _STA returns 0x8. 10941 10942Support to convert ACPI constants (Ones, Zeros, One) to actual 10943values before a package object is returned 10944 10945Fix for method call as predicate to if/while construct causing 10946incorrect if/while behavior 10947 10948Fix for Else block package lengths sometimes calculated wrong (if 10949block > 63 bytes) 10950 10951Fix for Processor object length field, was always zero 10952 10953Table load abort if FACP sanity check fails 10954 10955Fix for problem with Scope(name) if name already exists 10956 10957Warning emitted if a named object referenced cannot be found 10958(resolved) during method execution. 10959 10960 10961 10962 10963 10964------------------------------------------ 10965Summary of changes for this label: 9_29_00 10966 10967New table initialization interfaces: AcpiInitializeSubsystem no 10968longer has any parameters AcpiFindRootPointer - Find the RSDP (if 10969necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 10970>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 10971AcpiLoadTables 10972 10973Note: These interface changes require changes to all existing OSDs 10974 10975The PCI_Config default address space handler is always installed 10976at the root namespace object. 10977 10978------------------------------------------- 10979Summary of changes for this label: 09_15_00 10980 10981The new initialization architecture is implemented. New 10982interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 10983AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 10984 10985(Namespace is automatically loaded when a table is loaded) 10986 10987The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1098852 bytes to 32 bytes. There is usually one of these for every 10989namespace object, so the memory savings is significant. 10990 10991Implemented just-in-time evaluation of the CreateField operators. 10992 10993Bug fixes for IA-64 support have been integrated. 10994 10995Additional code review comments have been implemented 10996 10997The so-called "third pass parse" has been replaced by a final walk 10998through the namespace to initialize all operation regions (address 10999spaces) and fields that have not yet been initialized during the 11000execution of the various _INI and REG methods. 11001 11002New file - namespace/nsinit.c 11003 11004------------------------------------------- 11005Summary of changes for this label: 09_01_00 11006 11007Namespace manager data structures have been reworked to change the 11008primary object from a table to a single object. This has 11009resulted in dynamic memory savings of 3X within the namespace and 110102X overall in the ACPI CA subsystem. 11011 11012Fixed problem where the call to AcpiEvFindPciRootBuses was 11013inadvertently left commented out. 11014 11015Reduced the warning count when generating the source with the GCC 11016compiler. 11017 11018Revision numbers added to each module header showing the 11019SourceSafe version of the file. Please refer to this version 11020number when giving us feedback or comments on individual modules. 11021 11022The main object types within the subsystem have been renamed to 11023clarify their purpose: 11024 11025ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 11026ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 11027ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 11028 11029NOTE: no changes to the initialization sequence are included in 11030this label. 11031 11032------------------------------------------- 11033Summary of changes for this label: 08_23_00 11034 11035Fixed problem where TerminateControlMethod was being called 11036multiple times per method 11037 11038Fixed debugger problem where single stepping caused a semaphore to 11039be oversignalled 11040 11041Improved performance through additional parse object caching - 11042added ACPI_EXTENDED_OP type 11043 11044------------------------------------------- 11045Summary of changes for this label: 08_10_00 11046 11047Parser/Interpreter integration: Eliminated the creation of 11048complete parse trees for ACPI tables and control methods. 11049Instead, parse subtrees are created and then deleted as soon as 11050they are processed (Either entered into the namespace or executed 11051by the interpreter). This reduces the use of dynamic kernel 11052memory significantly. (about 10X) 11053 11054Exception codes broken into classes and renumbered. Be sure to 11055recompile all code that includes acexcep.h. Hopefully we won't 11056have to renumber the codes again now that they are split into 11057classes (environment, programmer, AML code, ACPI table, and 11058internal). 11059 11060Fixed some additional alignment issues in the Resource Manager 11061subcomponent 11062 11063Implemented semaphore tracking in the AcpiExec utility, and fixed 11064several places where mutexes/semaphores were being unlocked 11065without a corresponding lock operation. There are no known 11066semaphore or mutex "leaks" at this time. 11067 11068Fixed the case where an ASL Return operator is used to return an 11069unnamed package. 11070 11071------------------------------------------- 11072Summary of changes for this label: 07_28_00 11073 11074Fixed a problem with the way addresses were calculated in 11075AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 11076manifested itself when a Field was created with WordAccess or 11077DwordAccess, but the field unit defined within the Field was less 11078 11079than a Word or Dword. 11080 11081Fixed a problem in AmlDumpOperands() module's loop to pull 11082operands off of the operand stack to display information. The 11083problem manifested itself as a TLB error on 64-bit systems when 11084accessing an operand stack with two or more operands. 11085 11086Fixed a problem with the PCI configuration space handlers where 11087context was getting confused between accesses. This required a 11088change to the generic address space handler and address space 11089setup definitions. Handlers now get both a global handler context 11090(this is the one passed in by the user when executing 11091AcpiInstallAddressSpaceHandler() and a specific region context 11092that is unique to each region (For example, the _ADR, _SEG and 11093_BBN values associated with a specific region). The generic 11094function definitions have changed to the following: 11095 11096typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 11097UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 11098*HandlerContext, // This used to be void *Context void 11099*RegionContext); // This is an additional parameter 11100 11101typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 11102RegionHandle, UINT32 Function, void *HandlerContext, void 11103**RegionContext); // This used to be **ReturnContext 11104 11105------------------------------------------- 11106Summary of changes for this label: 07_21_00 11107 11108Major file consolidation and rename. All files within the 11109interpreter have been renamed as well as most header files. This 11110was done to prevent collisions with existing files in the host 11111OSs -- filenames such as "config.h" and "global.h" seem to be 11112quite common. The VC project files have been updated. All 11113makefiles will require modification. 11114 11115The parser/interpreter integration continues in Phase 5 with the 11116implementation of a complete 2-pass parse (the AML is parsed 11117twice) for each table; This avoids the construction of a huge 11118parse tree and therefore reduces the amount of dynamic memory 11119required by the subsystem. Greater use of the parse object cache 11120means that performance is unaffected. 11121 11122Many comments from the two code reviews have been rolled in. 11123 11124The 64-bit alignment support is complete. 11125 11126------------------------------------------- 11127Summary of changes for this label: 06_30_00 11128 11129With a nod and a tip of the hat to the technology of yesteryear, 11130we've added support in the source code for 80 column output 11131devices. The code is now mostly constrained to 80 columns or 11132less to support environments and editors that 1) cannot display 11133or print more than 80 characters on a single line, and 2) cannot 11134disable line wrapping. 11135 11136A major restructuring of the namespace data structure has been 11137completed. The result is 1) cleaner and more 11138understandable/maintainable code, and 2) a significant reduction 11139in the dynamic memory requirement for each named ACPI object 11140(almost half). 11141 11142------------------------------------------- 11143Summary of changes for this label: 06_23_00 11144 11145Linux support has been added. In order to obtain approval to get 11146the ACPI CA subsystem into the Linux kernel, we've had to make 11147quite a few changes to the base subsystem that will affect all 11148users (all the changes are generic and OS- independent). The 11149effects of these global changes have been somewhat far reaching. 11150Files have been merged and/or renamed and interfaces have been 11151renamed. The major changes are described below. 11152 11153Osd* interfaces renamed to AcpiOs* to eliminate namespace 11154pollution/confusion within our target kernels. All OSD 11155interfaces must be modified to match the new naming convention. 11156 11157Files merged across the subsystem. A number of the smaller source 11158and header files have been merged to reduce the file count and 11159increase the density of the existing files. There are too many 11160to list here. In general, makefiles that call out individual 11161files will require rebuilding. 11162 11163Interpreter files renamed. All interpreter files now have the 11164prefix am* instead of ie* and is*. 11165 11166Header files renamed: The acapi.h file is now acpixf.h. The 11167acpiosd.h file is now acpiosxf.h. We are removing references to 11168the acronym "API" since it is somewhat windowsy. The new name is 11169"external interface" or xface or xf in the filenames.j 11170 11171 11172All manifest constants have been forced to upper case (some were 11173mixed case.) Also, the string "ACPI_" has been prepended to many 11174(not all) of the constants, typedefs, and structs. 11175 11176The globals "DebugLevel" and "DebugLayer" have been renamed 11177"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 11178 11179All other globals within the subsystem are now prefixed with 11180"AcpiGbl_" Internal procedures within the subsystem are now 11181prefixed with "Acpi" (with only a few exceptions). The original 11182two-letter abbreviation for the subcomponent remains after "Acpi" 11183- for example, CmCallocate became AcpiCmCallocate. 11184 11185Added a source code translation/conversion utility. Used to 11186generate the Linux source code, it can be modified to generate 11187other types of source as well. Can also be used to cleanup 11188existing source by removing extraneous spaces and blank lines. 11189Found in tools/acpisrc/* 11190 11191OsdUnMapMemory was renamed to OsdUnmapMemory and then 11192AcpiOsUnmapMemory. (UnMap became Unmap). 11193 11194A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 11195When set to one, this indicates that the caller wants to use the 11196 11197semaphore as a mutex, not a counting semaphore. ACPI CA uses 11198both types. However, implementers of this call may want to use 11199different OS primitives depending on the type of semaphore 11200requested. For example, some operating systems provide separate 11201 11202"mutex" and "semaphore" interfaces - where the mutex interface is 11203much faster because it doesn't have all the overhead of a full 11204semaphore implementation. 11205 11206Fixed a deadlock problem where a method that accesses the PCI 11207address space can block forever if it is the first access to the 11208space. 11209 11210------------------------------------------- 11211Summary of changes for this label: 06_02_00 11212 11213Support for environments that cannot handle unaligned data 11214accesses (e.g. firmware and OS environments devoid of alignment 11215handler technology namely SAL/EFI and the IA-64 Linux kernel) has 11216been added (via configurable macros) in these three areas: - 11217Transfer of data from the raw AML byte stream is done via byte 11218moves instead of word/dword/qword moves. - External objects are 11219aligned within the user buffer, including package elements (sub- 11220objects). - Conversion of name strings to UINT32 Acpi Names is now 11221done byte-wise. 11222 11223The Store operator was modified to mimic Microsoft's 11224implementation when storing to a Buffer Field. 11225 11226Added a check of the BM_STS bit before entering C3. 11227 11228The methods subdirectory has been obsoleted and removed. A new 11229file, cmeval.c subsumes the functionality. 11230 11231A 16-bit (DOS) version of AcpiExec has been developed. The 11232makefile is under the acpiexec directory. 11233