changes.txt revision 235945
1---------------------------------------- 218 May 2012. Summary of changes for version 20120518: 3 4 51) ACPICA Core Subsystem: 6 7Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is defined 8to block until asynchronous events such as notifies and GPEs have completed. 9Within ACPICA, it is only called before a notify or GPE handler is 10removed/uninstalled. It also may be useful for the host OS within related 11drivers such as the Embedded Controller driver. See the ACPICA reference for 12additional information. ACPICA BZ 868. 13 14ACPI Tables: Added a new error message for a possible overflow failure during 15the conversion of FADT 32-bit legacy register addresses to internal common 64- 16bit GAS structure representation. The GAS has a one-byte "bit length" field, 17thus limiting the register length to 255 bits. ACPICA BZ 953. 18 19Example Code and Data Size: These are the sizes for the OS-independent 20acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 21version of the code includes the debug output trace mechanism and has a much 22larger code and data size. 23 24 Previous Release: 25 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 26 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 27 Current Release: 28 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 29 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 30 31 322) iASL Compiler/Disassembler and Tools: 33 34iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL macro. 35This keyword was added late in the ACPI 5.0 release cycle and was not 36implemented until now. 37 38Disassembler: Added support for Operation Region externals. Adds missing 39support for operation regions that are defined in another table, and 40referenced locally via a Field or BankField ASL operator. Now generates the 41correct External statement. 42 43Disassembler: Several additional fixes for the External() statement generation 44related to some ASL operators. Also, order the External() statements 45alphabetically in the disassembler output. Fixes the External() generation for 46the Create* field, Alias, and Scope operators: 47 1) Create* buffer field operators - fix type mismatch warning on disassembly 48 2) Alias - implement missing External support 49 3) Scope - fix to make sure all necessary externals are emitted. 50 51iASL: Improved pathname support. For include files, merge the prefix pathname 52with the file pathname and eliminate unnecessary components. Convert 53backslashes in all pathnames to forward slashes, for readability. Include file 54pathname changes affect both #include and Include() type operators. 55 56iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the end 57of a valid line by inserting a newline and then returning the EOF during the 58next call to GetNextLine. Prevents the line from being ignored due to EOF 59condition. 60 61iASL: Implemented some changes to enhance the IDE support (-vi option.) Error 62and Warning messages are now correctly recognized for both the source code 63browser and the global error and warning counts. 64 65---------------------------------------- 6620 April 2012. Summary of changes for version 20120420: 67 68 691) ACPICA Core Subsystem: 70 71Implemented support for multiple notify handlers. This change adds support to 72allow multiple system and device notify handlers on Device, Thermal Zone, and 73Processor objects. This can simplify the host OS notification implementation. 74Also re-worked and restructured the entire notify support code to simplify 75handler installation, handler removal, notify event queuing, and notify 76dispatch to handler(s). Note: there can still only be two global notify 77handlers - one for system notifies and one for device notifies. There are no 78changes to the existing handler install/remove interfaces. Lin Ming, Bob 79Moore, Rafael Wysocki. 80 81Fixed a regression in the package repair code where the object reference 82count was calculated incorrectly. Regression was introduced in the commit 83"Support to add Package wrappers". 84 85Fixed a couple possible memory leaks in the AML parser, in the error recovery 86path. Jesper Juhl, Lin Ming. 87 88Example Code and Data Size: These are the sizes for the OS-independent 89acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 90debug version of the code includes the debug output trace mechanism and has a 91much larger code and data size. 92 93 Previous Release: 94 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 95 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 96 Current Release: 97 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 98 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 99 100 1012) iASL Compiler/Disassembler and Tools: 102 103iASL: Fixed a problem with the resource descriptor support where the length 104of the StartDependentFn and StartDependentFnNoPrio descriptors were not 105included in cumulative descriptor offset, resulting in incorrect values for 106resource tags within resource descriptors appearing after a StartDependent* 107descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 108 109iASL and Preprocessor: Implemented full support for the #line directive to 110correctly track original source file line numbers through the .i preprocessor 111output file - for error and warning messages. 112 113iASL: Expand the allowable byte constants for address space IDs. Previously, 114the allowable range was 0x80-0xFF (user-defined spaces), now the range is 1150x0A-0xFF to allow for custom and new IDs without changing the compiler. 116 117iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 118 119iASL: Add option to completely disable the preprocessor (-Pn). 120 121iASL: Now emit all error/warning messages to standard error (stderr) by 122default (instead of the previous stdout). 123 124ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). Update 125for resource descriptor offset fix above. Update/cleanup error output 126routines. Enable and send iASL errors/warnings to an error logfile 127(error.txt). Send all other iASL output to a logfile (compiler.txt). Fixed 128several extraneous "unrecognized operator" messages. 129 130---------------------------------------- 13120 March 2012. Summary of changes for version 20120320: 132 133 1341) ACPICA Core Subsystem: 135 136Enhanced the sleep/wake interfaces to optionally execute the _GTS method 137(Going To Sleep) and the _BFS method (Back From Sleep). Windows apparently 138does not execute these methods, and therefore these methods are often 139untested. It has been seen on some systems where the execution of these 140methods causes errors and also prevents the machine from entering S5. It is 141therefore suggested that host operating systems do not execute these methods 142by default. In the future, perhaps these methods can be optionally executed 143based on the age of the system and/or what is the newest version of Windows 144that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState and 145AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 146Ming. 147 148Fixed a problem where the length of the local/common FADT was set too early. 149The local FADT table length cannot be set to the common length until the 150original length has been examined. There is code that checks the table length 151and sets various fields appropriately. This can affect older machines with 152early FADT versions. For example, this can cause inadvertent writes to the 153CST_CNT register. Julian Anastasov. 154 155Fixed a mapping issue related to a physical table override. Use the deferred 156mapping mechanism for tables loaded via the physical override OSL interface. 157This allows for early mapping before the virtual memory manager is available. 158Thomas Renninger, Bob Moore. 159 160Enhanced the automatic return-object repair code: Repair a common problem with 161predefined methods that are defined to return a variable-length Package of 162sub-objects. If there is only one sub-object, some BIOS ASL code mistakenly 163simply returns the single object instead of a Package with one sub-object. 164This new support will repair this error by wrapping a Package object around 165the original object, creating the correct and expected Package with one sub- 166object. Names that can be repaired in this manner include: _ALR, _CSD, _HPX, 167_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 939. 168 169Changed the exception code returned for invalid ACPI paths passed as 170parameters to external interfaces such as AcpiEvaluateObject. Was 171AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 172 173Example Code and Data Size: These are the sizes for the OS-independent 174acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 175version of the code includes the debug output trace mechanism and has a much 176larger code and data size. 177 178 Previous Release: 179 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 180 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 181 Current Release: 182 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 183 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 184 185 1862) iASL Compiler/Disassembler and Tools: 187 188iASL: Added the infrastructure and initial implementation of a integrated C- 189like preprocessor. This will simplify BIOS development process by eliminating 190the need for a separate preprocessing step during builds. On Windows, it also 191eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 192features including full #define() macro support are still under development. 193These preprocessor directives are supported: 194 #define 195 #elif 196 #else 197 #endif 198 #error 199 #if 200 #ifdef 201 #ifndef 202 #include 203 #pragma message 204 #undef 205 #warning 206In addition, these new command line options are supported: 207 -D <symbol> Define symbol for preprocessor use 208 -li Create preprocessed output file (*.i) 209 -P Preprocess only and create preprocessor output file (*.i) 210 211Table Compiler: Fixed a problem where the equals operator within an expression 212did not work properly. 213 214Updated iASL to use the current versions of Bison/Flex. Updated the Windows 215project file to invoke these tools from the standard location. ACPICA BZ 904. 216Versions supported: 217 Flex for Windows: V2.5.4 218 Bison for Windows: V2.4.1 219 220---------------------------------------- 22115 February 2012. Summary of changes for version 20120215: 222 223 2241) ACPICA Core Subsystem: 225 226There have been some major changes to the sleep/wake support code, as 227described below (a - e). 228 229a) The AcpiLeaveSleepState has been split into two interfaces, similar to 230AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 231AcpiLeaveSleepStatePrep. This allows the host to perform actions between the 232time the _BFS method is called and the _WAK method is called. NOTE: all hosts 233must update their wake/resume code or else sleep/wake will not work properly. 234Rafael Wysocki. 235 236b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the _WAK 237method. Some machines require that the GPEs are enabled before the _WAK method 238is executed. Thomas Renninger. 239 240c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) bit. 241Some BIOS code assumes that WAK_STS will be cleared on resume and use it to 242determine whether the system is rebooting or resuming. Matthew Garrett. 243 244d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From Sleep) to 245match the ACPI specification requirement. Rafael Wysocki. 246 247e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 248registers within the V5 FADT. This support adds two new files: 249hardware/hwesleep.c implements the support for the new registers. Moved all 250sleep/wake external interfaces to hardware/hwxfsleep.c. 251 252 253Added a new OSL interface for ACPI table overrides, 254AcpiOsPhysicalTableOverride. This interface allows the host to override a 255table via a physical address, instead of the logical address required by 256AcpiOsTableOverride. This simplifies the host implementation. Initial 257implementation by Thomas Renninger. The ACPICA implementation creates a single 258shared function for table overrides that attempts both a logical and a 259physical override. 260 261Expanded the OSL memory read/write interfaces to 64-bit data 262(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 263transfer support for GAS register structures passed to AcpiRead and AcpiWrite. 264 265Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a custom 266build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) model. 267See the ACPICA reference for details. ACPICA BZ 942. This option removes about 26810% of the code and 5% of the static data, and the following hardware ACPI 269features become unavailable: 270 PM Event and Control registers 271 SCI interrupt (and handler) 272 Fixed Events 273 General Purpose Events (GPEs) 274 Global Lock 275 ACPI PM timer 276 FACS table (Waking vectors and Global Lock) 277 278Updated the unix tarball directory structure to match the ACPICA git source 279tree. This ensures that the generic unix makefiles work properly (in 280generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 867. 281 282Updated the return value of the _REV predefined method to integer value 5 to 283reflect ACPI 5.0 support. 284 285Moved the external ACPI PM timer interface prototypes to the public acpixf.h 286file where they belong. 287 288Example Code and Data Size: These are the sizes for the OS-independent 289acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 290version of the code includes the debug output trace mechanism and has a much 291larger code and data size. 292 293 Previous Release: 294 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 295 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 296 Current Release: 297 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 298 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 299 300 3012) iASL Compiler/Disassembler and Tools: 302 303Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 304descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 305incorrectly displayed. 306 307AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 308specification. 309 310---------------------------------------- 31111 January 2012. Summary of changes for version 20120111: 312 313 3141) ACPICA Core Subsystem: 315 316Implemented a new mechanism to allow host device drivers to check for address 317range conflicts with ACPI Operation Regions. Both SystemMemory and SystemIO 318address spaces are supported. A new external interface, AcpiCheckAddressRange, 319allows drivers to check an address range against the ACPI namespace. See the 320ACPICA reference for additional details. Adds one new file, 321utilities/utaddress.c. Lin Ming, Bob Moore. 322 323Fixed several issues with the ACPI 5.0 FADT support: Add the sleep Control and 324Status registers, update the ACPI 5.0 flags, and update internal data 325structures to handle an FADT larger than 256 bytes. The size of the ACPI 5.0 326FADT is 268 bytes. 327 328Updated all ACPICA copyrights and signons to 2012. Added the 2012 copyright to 329all module headers and signons, including the standard Linux header. This 330affects virtually every file in the ACPICA core subsystem, iASL compiler, and 331all ACPICA utilities. 332 333Example Code and Data Size: These are the sizes for the OS-independent 334acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 335version of the code includes the debug output trace mechanism and has a much 336larger code and data size. 337 338 Previous Release: 339 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 340 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 341 Current Release: 342 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 343 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 344 345 3462) iASL Compiler/Disassembler and Tools: 347 348Disassembler: fixed a problem with the automatic resource tag generation 349support. Fixes a problem where the resource tags are inadvertently not 350constructed if the table being disassembled contains external references to 351control methods. Moved the actual construction of the tags to after the final 352namespace is constructed (after 2nd parse is invoked due to external control 353method references.) ACPICA BZ 941. 354 355Table Compiler: Make all "generic" operators caseless. These are the operators 356like UINT8, String, etc. Making these caseless improves ease-of-use. ACPICA BZ 357934. 358 359---------------------------------------- 36023 November 2011. Summary of changes for version 20111123: 361 3620) ACPI 5.0 Support: 363 364This release contains full support for the ACPI 5.0 specification, as 365summarized below. 366 367Reduced Hardware Support: 368------------------------- 369 370This support allows for ACPI systems without the usual ACPI hardware. This 371support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA will 372not attempt to initialize or use any of the usual ACPI hardware. Note, when 373this flag is set, all of the following ACPI hardware is assumed to be not 374present and is not initialized or accessed: 375 376 General Purpose Events (GPEs) 377 Fixed Events (PM1a/PM1b and PM Control) 378 Power Management Timer and Console Buttons (power/sleep) 379 Real-time Clock Alarm 380 Global Lock 381 System Control Interrupt (SCI) 382 The FACS is assumed to be non-existent 383 384ACPI Tables: 385------------ 386 387All new tables and updates to existing tables are fully supported in the 388ACPICA headers (for use by device drivers), the disassembler, and the iASL 389Data Table Compiler. ACPI 5.0 defines these new tables: 390 391 BGRT /* Boot Graphics Resource Table */ 392 DRTM /* Dynamic Root of Trust for Measurement table */ 393 FPDT /* Firmware Performance Data Table */ 394 GTDT /* Generic Timer Description Table */ 395 MPST /* Memory Power State Table */ 396 PCCT /* Platform Communications Channel Table */ 397 PMTT /* Platform Memory Topology Table */ 398 RASF /* RAS Feature table */ 399 400Operation Regions/SpaceIDs: 401--------------------------- 402 403All new operation regions are fully supported by the iASL compiler, the 404disassembler, and the ACPICA runtime code (for dispatch to region handlers.) 405The new operation region Space IDs are: 406 407 GeneralPurposeIo 408 GenericSerialBus 409 410Resource Descriptors: 411--------------------- 412 413All new ASL resource descriptors are fully supported by the iASL compiler, the 414ASL/AML disassembler, and the ACPICA runtime Resource Manager code (including 415all new predefined resource tags). New descriptors are: 416 417 FixedDma 418 GpioIo 419 GpioInt 420 I2cSerialBus 421 SpiSerialBus 422 UartSerialBus 423 424ASL/AML Operators, New and Modified: 425------------------------------------ 426 427One new operator is added, the Connection operator, which is used to associate 428a GeneralPurposeIo or GenericSerialBus resource descriptor with individual 429field objects within an operation region. Several new protocols are associated 430with the AccessAs operator. All are fully supported by the iASL compiler, 431disassembler, and runtime ACPICA AML interpreter: 432 433 Connection // Declare Field Connection attributes 434 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 435 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes Protocol 436 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 437 RawDataBuffer // Data type for Vendor Data fields 438 439Predefined ASL/AML Objects: 440--------------------------- 441 442All new predefined objects/control-methods are supported by the iASL compiler 443and the ACPICA runtime validation/repair (arguments and return values.) New 444predefined names include the following: 445 446Standard Predefined Names (Objects or Control Methods): 447 _AEI, _CLS, _CPC, _CWS, _DEP, 448 _DLM, _EVT, _GCP, _CRT, _GWS, 449 _HRV, _PRE, _PSE, _SRT, _SUB. 450 451Resource Tags (Names used to access individual fields within resource 452descriptors): 453 _DBT, _DPL, _DRS, _END, _FLC, 454 _IOR, _LIN, _MOD, _PAR, _PHA, 455 _PIN, _PPI, _POL, _RXL, _SLV, 456 _SPE, _STB, _TXL, _VEN. 457 458ACPICA External Interfaces: 459--------------------------- 460 461Several new interfaces have been defined for use by ACPI-related device 462drivers and other host OS services: 463 464AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS to 465acquire and release AML mutexes that are defined in the DSDT/SSDT tables 466provided by the BIOS. They are intended to be used in conjunction with the 467ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 468mutual exclusion with the AML code/interpreter. 469 470AcpiGetEventResources: Returns the (formatted) resource descriptors as defined 471by the ACPI 5.0 _AEI object (ACPI Event Information). This object provides 472resource descriptors associated with hardware-reduced platform events, similar 473to the AcpiGetCurrentResources interface. 474 475Operation Region Handlers: For General Purpose IO and Generic Serial Bus 476operation regions, information about the Connection() object and any optional 477length information is passed to the region handler within the Context 478parameter. 479 480AcpiBufferToResource: This interface converts a raw AML buffer containing a 481resource template or resource descriptor to the ACPI_RESOURCE internal format 482suitable for use by device drivers. Can be used by an operation region handler 483to convert the Connection() buffer object into a ACPI_RESOURCE. 484 485Miscellaneous/Tools/TestSuites: 486------------------------------- 487 488Support for extended _HID names (Four alpha characters instead of three). 489Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 490Support for ACPI 5.0 features in the ASLTS test suite. 491Fully updated documentation (ACPICA and iASL reference documents.) 492 493ACPI Table Definition Language: 494------------------------------- 495 496Support for this language was implemented and released as a subsystem of the 497iASL compiler in 2010. (See the iASL compiler User Guide.) 498 499 500Non-ACPI 5.0 changes for this release: 501-------------------------------------- 502 5031) ACPICA Core Subsystem: 504 505Fix a problem with operation region declarations where a failure can occur if 506the region name and an argument that evaluates to an object (such as the 507region address) are in different namespace scopes. Lin Ming, ACPICA BZ 937. 508 509Do not abort an ACPI table load if an invalid space ID is found within. This 510will be caught later if the offending method is executed. ACPICA BZ 925. 511 512Fixed an issue with the FFixedHW space ID where the ID was not always 513recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 514 515Fixed a problem with the 32-bit generation of the unix-specific OSL 516(osunixxf.c). Lin Ming, ACPICA BZ 936. 517 518Several changes made to enable generation with the GCC 4.6 compiler. ACPICA BZ 519935. 520 521New error messages: Unsupported I/O requests (not 8/16/32 bit), and Index/Bank 522field registers out-of-range. 523 5242) iASL Compiler/Disassembler and Tools: 525 526iASL: Implemented the __PATH__ operator, which returns the full pathname of 527the current source file. 528 529AcpiHelp: Automatically display expanded keyword information for all ASL 530operators. 531 532Debugger: Add "Template" command to disassemble/dump resource template 533buffers. 534 535Added a new master script to generate and execute the ASLTS test suite. 536Automatically handles 32- and 64-bit generation. See tests/aslts.sh 537 538iASL: Fix problem with listing generation during processing of the Switch() 539operator where AML listing was disabled until the entire Switch block was 540completed. 541 542iASL: Improve support for semicolon statement terminators. Fix "invalid 543character" message for some cases when the semicolon is used. Semicolons are 544now allowed after every <Term> grammar element. ACPICA BZ 927. 545 546iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 923. 547 548Disassembler: Fix problem with disassembly of the DataTableRegion operator 549where an inadvertent "Unhandled deferred opcode" message could be generated. 550 5513) Example Code and Data Size 552 553These are the sizes for the OS-independent acpica.lib produced by the 554Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 555includes the debug output trace mechanism and has a much larger code and data 556size. 557 558 Previous Release: 559 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 560 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 561 Current Release: 562 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 563 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 564 565---------------------------------------- 56622 September 2011. Summary of changes for version 20110922: 567 5680) ACPI 5.0 News: 569 570Support for ACPI 5.0 in ACPICA has been underway for several months and will 571be released at the same time that ACPI 5.0 is officially released. 572 573The ACPI 5.0 specification is on track for release in the next few months. 574 5751) ACPICA Core Subsystem: 576 577Fixed a problem where the maximum sleep time for the Sleep() operator was 578intended to be limited to two seconds, but was inadvertently limited to 20 579seconds instead. 580 581Linux and Unix makefiles: Added header file dependencies to ensure correct 582generation of ACPICA core code and utilities. Also simplified the makefiles 583considerably through the use of the vpath variable to specify search paths. 584ACPICA BZ 924. 585 5862) iASL Compiler/Disassembler and Tools: 587 588iASL: Implemented support to check the access length for all fields created to 589access named Resource Descriptor fields. For example, if a resource field is 590defined to be two bits, a warning is issued if a CreateXxxxField() is used 591with an incorrect bit length. This is implemented for all current resource 592descriptor names. ACPICA BZ 930. 593 594Disassembler: Fixed a byte ordering problem with the output of 24-bit and 56- 595bit integers. 596 597iASL: Fixed a couple of issues associated with variable-length package 598objects. 1) properly handle constants like One, Ones, Zero -- do not make a 599VAR_PACKAGE when these are used as a package length. 2) Allow the VAR_PACKAGE 600opcode (in addition to PACKAGE) when validating object types for predefined 601names. 602 603iASL: Emit statistics for all output files (instead of just the ASL input and 604AML output). Includes listings, hex files, etc. 605 606iASL: Added -G option to the table compiler to allow the compilation of custom 607ACPI tables. The only part of a table that is required is the standard 36-byte 608ACPI header. 609 610AcpiXtract: Ported to the standard ACPICA environment (with ACPICA headers), 611which also adds correct 64-bit support. Also, now all output filenames are 612completely lower case. 613 614AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 615loading table files. A warning is issued for any such tables. The only 616exception is an FADT. This also fixes a possible fault when attempting to load 617non-AML tables. ACPICA BZ 932. 618 619AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where a 620missing table terminator could cause a fault when using the -p option. 621 622AcpiSrc: Fixed a possible divide-by-zero fault when generating file 623statistics. 624 6253) Example Code and Data Size 626 627These are the sizes for the OS-independent acpica.lib produced by the 628Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 629includes the debug output trace mechanism and has a much larger code and data 630size. 631 632 Previous Release (VC 9.0): 633 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 634 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 635 Current Release (VC 9.0): 636 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 637 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 638 639 640---------------------------------------- 64123 June 2011. Summary of changes for version 20110623: 642 6431) ACPI CA Core Subsystem: 644 645Updated the predefined name repair mechanism to not attempt repair of a _TSS 646return object if a _PSS object is present. We can only sort the _TSS return 647package if there is no _PSS within the same scope. This is because if _PSS is 648present, the ACPI specification dictates that the _TSS Power Dissipation field 649is to be ignored, and therefore some BIOSs leave garbage values in the _TSS 650Power field(s). In this case, it is best to just return the _TSS package as- 651is. Reported by, and fixed with assistance from Fenghua Yu. 652 653Added an option to globally disable the control method return value validation 654and repair. This runtime option can be used to disable return value repair if 655this is causing a problem on a particular machine. Also added an option to 656AcpiExec (-dr) to set this disable flag. 657 658All makefiles and project files: Major changes to improve generation of ACPICA 659tools. ACPICA BZ 912: 660 Reduce default optimization levels to improve compatibility 661 For Linux, add strict-aliasing=0 for gcc 4 662 Cleanup and simplify use of command line defines 663 Cleanup multithread library support 664 Improve usage messages 665 666Linux-specific header: update handling of THREAD_ID and pthread. For the 32- 667bit case, improve casting to eliminate possible warnings, especially with the 668acpica tools. 669 670Example Code and Data Size: These are the sizes for the OS-independent 671acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 672version of the code includes the debug output trace mechanism and has a much 673larger code and data size. 674 675 Previous Release (VC 9.0): 676 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 677 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 678 Current Release (VC 9.0): 679 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 680 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 681 6822) iASL Compiler/Disassembler and Tools: 683 684With this release, a new utility named "acpihelp" has been added to the ACPICA 685package. This utility summarizes the ACPI specification chapters for the ASL 686and AML languages. It generates under Linux/Unix as well as Windows, and 687provides the following functionality: 688 Find/display ASL operator(s) -- with description and syntax. 689 Find/display ASL keyword(s) -- with exact spelling and descriptions. 690 Find/display ACPI predefined name(s) -- with description, number 691 of arguments, and the return value data type. 692 Find/display AML opcode name(s) -- with opcode, arguments, and grammar. 693 Decode/display AML opcode -- with opcode name, arguments, and grammar. 694 695Service Layers: Make multi-thread support configurable. Conditionally compile 696the multi-thread support so that threading libraries will not be linked if not 697necessary. The only tool that requires multi-thread support is AcpiExec. 698 699iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions of 700Bison appear to want the interface to yyerror to be a const char * (or at 701least this is a problem when generating iASL on some systems.) ACPICA BZ 923 702Pierre Lejeune. 703 704Tools: Fix for systems where O_BINARY is not defined. Only used for Windows 705versions of the tools. 706 707---------------------------------------- 70827 May 2011. Summary of changes for version 20110527: 709 7101) ACPI CA Core Subsystem: 711 712ASL Load() operator: Reinstate most restrictions on the incoming ACPI table 713signature. Now, only allow SSDT, OEMx, and a null signature. History: 714 1) Originally, we checked the table signature for "SSDT" or "PSDT". 715 (PSDT is now obsolete.) 716 2) We added support for OEMx tables, signature "OEM" plus a fourth 717 "don't care" character. 718 3) Valid tables were encountered with a null signature, so we just 719 gave up on validating the signature, (05/2008). 720 4) We encountered non-AML tables such as the MADT, which caused 721 interpreter errors and kernel faults. So now, we once again allow 722 only SSDT, OEMx, and now, also a null signature. (05/2011). 723 724Added the missing _TDL predefined name to the global name list in order to 725enable validation. Affects both the core ACPICA code and the iASL compiler. 726 727Example Code and Data Size: These are the sizes for the OS-independent 728acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 729version of the code includes the debug output trace mechanism and has a much 730larger code and data size. 731 732 Previous Release (VC 9.0): 733 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 734 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 735 Current Release (VC 9.0): 736 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 737 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 738 7392) iASL Compiler/Disassembler and Tools: 740 741Debugger/AcpiExec: Implemented support for "complex" method arguments on the 742debugger command line. This adds support beyond simple integers -- including 743Strings, Buffers, and Packages. Includes support for nested packages. 744Increased the default command line buffer size to accommodate these arguments. 745See the ACPICA reference for details and syntax. ACPICA BZ 917. 746 747Debugger/AcpiExec: Implemented support for "default" method arguments for the 748Execute/Debug command. Now, the debugger will always invoke a control method 749with the required number of arguments -- even if the command line specifies 750none or insufficient arguments. It uses default integer values for any missing 751arguments. Also fixes a bug where only six method arguments maximum were 752supported instead of the required seven. 753 754Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine and 755also return status in order to prevent buffer overruns. See the ACPICA 756reference for details and syntax. ACPICA BZ 921 757 758iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 759makefiles to simplify support for the two different but similar parser 760generators, bison and yacc. 761 762Updated the generic unix makefile for gcc 4. The default gcc version is now 763expected to be 4 or greater, since options specific to gcc 4 are used. 764 765---------------------------------------- 76613 April 2011. Summary of changes for version 20110413: 767 7681) ACPI CA Core Subsystem: 769 770Implemented support to execute a so-called "orphan" _REG method under the EC 771device. This change will force the execution of a _REG method underneath the 772EC 773device even if there is no corresponding operation region of type 774EmbeddedControl. Fixes a problem seen on some machines and apparently is 775compatible with Windows behavior. ACPICA BZ 875. 776 777Added more predefined methods that are eligible for automatic NULL package 778element removal. This change adds another group of predefined names to the 779list 780of names that can be repaired by having NULL package elements dynamically 781removed. This group are those methods that return a single variable-length 782package containing simple data types such as integers, buffers, strings. This 783includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, _PSL, 784_Sx, 785and _TZD. ACPICA BZ 914. 786 787Split and segregated all internal global lock functions to a new file, 788evglock.c. 789 790Updated internal address SpaceID for DataTable regions. Moved this internal 791space 792id in preparation for ACPI 5.0 changes that will include some new space IDs. 793This 794change should not affect user/host code. 795 796Example Code and Data Size: These are the sizes for the OS-independent 797acpica.lib 798produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of 799the code includes the debug output trace mechanism and has a much larger code 800and 801data size. 802 803 Previous Release (VC 9.0): 804 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 805 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 806 Current Release (VC 9.0): 807 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 808 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 809 8102) iASL Compiler/Disassembler and Tools: 811 812iASL/DTC: Major update for new grammar features. Allow generic data types in 813custom ACPI tables. Field names are now optional. Any line can be split to 814multiple lines using the continuation char (\). Large buffers now use line- 815continuation character(s) and no colon on the continuation lines. See the 816grammar 817update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob Moore. 818 819iASL: Mark ASL "Return()" and the simple "Return" as "Null" return statements. 820Since the parser stuffs a "zero" as the return value for these statements (due 821to 822the underlying AML grammar), they were seen as "return with value" by the iASL 823semantic checking. They are now seen correctly as "null" return statements. 824 825iASL: Check if a_REG declaration has a corresponding Operation Region. Adds a 826check for each _REG to ensure that there is in fact a corresponding operation 827region declaration in the same scope. If not, the _REG method is not very 828useful 829since it probably won't be executed. ACPICA BZ 915. 830 831iASL/DTC: Finish support for expression evaluation. Added a new expression 832parser 833that implements c-style operator precedence and parenthesization. ACPICA 834bugzilla 835908. 836 837Disassembler/DTC: Remove support for () and <> style comments in data tables. 838Now 839that DTC has full expression support, we don't want to have comment strings 840that 841start with a parentheses or a less-than symbol. Now, only the standard /* and 842// 843comments are supported, as well as the bracket [] comments. 844 845AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 846"unusual" 847headers in the acpidump file. Update the header validation to support these 848tables. Problem introduced in previous AcpiXtract version in the change to 849support "wrong checksum" error messages emitted by acpidump utility. 850 851iASL: Add a * option to generate all template files (as a synonym for ALL) as 852in 853"iasl -T *" or "iasl -T ALL". 854 855iASL/DTC: Do not abort compiler on fatal errors. We do not want to completely 856abort the compiler on "fatal" errors, simply should abort the current compile. 857This allows multiple compiles with a single (possibly wildcard) compiler 858invocation. 859 860---------------------------------------- 86116 March 2011. Summary of changes for version 20110316: 862 8631) ACPI CA Core Subsystem: 864 865Fixed a problem caused by a _PRW method appearing at the namespace root scope 866during the setup of wake GPEs. A fault could occur if a _PRW directly under 867the 868root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 869 870Implemented support for "spurious" Global Lock interrupts. On some systems, a 871global lock interrupt can occur without the pending flag being set. Upon a GL 872interrupt, we now ensure that a thread is actually waiting for the lock before 873signaling GL availability. Rafael Wysocki, Bob Moore. 874 875Example Code and Data Size: These are the sizes for the OS-independent 876acpica.lib 877produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of 878the code includes the debug output trace mechanism and has a much larger code 879and 880data size. 881 882 Previous Release (VC 9.0): 883 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 884 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 885 Current Release (VC 9.0): 886 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 887 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 888 8892) iASL Compiler/Disassembler and Tools: 890 891Implemented full support for the "SLIC" ACPI table. Includes support in the 892header files, disassembler, table compiler, and template generator. Bob Moore, 893Lin Ming. 894 895AcpiXtract: Correctly handle embedded comments and messages from AcpiDump. 896Apparently some or all versions of acpidump will occasionally emit a comment 897like 898"Wrong checksum", etc., into the dump file. This was causing problems for 899AcpiXtract. ACPICA BZ 905. 900 901iASL: Fix the Linux makefile by removing an inadvertent double file inclusion. 902ACPICA BZ 913. 903 904AcpiExec: Update installation of operation region handlers. Install one 905handler 906for a user-defined address space. This is used by the ASL test suite (ASLTS). 907 908---------------------------------------- 90911 February 2011. Summary of changes for version 20110211: 910 9111) ACPI CA Core Subsystem: 912 913Added a mechanism to defer _REG methods for some early-installed handlers. 914Most user handlers should be installed before call to AcpiEnableSubsystem. 915However, Event handlers and region handlers should be installed after 916AcpiInitializeObjects. Override handlers for the "default" regions should be 917installed early, however. This change executes all _REG methods for the 918default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 919chicken/egg issues between them. ACPICA BZ 848. 920 921Implemented an optimization for GPE detection. This optimization will simply 922ignore GPE registers that contain no enabled GPEs -- there is no need to 923read the register since this information is available internally. This 924becomes more important on machines with a large GPE space. ACPICA bugzilla 925884. Lin Ming. Suggestion from Joe Liu. 926 927Removed all use of the highly unreliable FADT revision field. The revision 928number in the FADT has been found to be completely unreliable and cannot be 929trusted. Only the actual table length can be used to infer the version. This 930change updates the ACPICA core and the disassembler so that both no longer 931even look at the FADT version and instead depend solely upon the FADT 932length. 933 934Fix an unresolved name issue for the no-debug and no-error-message source 935generation cases. The _AcpiModuleName was left undefined in these cases, but 936it is actually needed as a parameter to some interfaces. Define 937_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 938 939Split several large files (makefiles and project files updated) 940 utglobal.c -> utdecode.c 941 dbcomds.c -> dbmethod.c dbnames.c 942 dsopcode.c -> dsargs.c dscontrol.c 943 dsload.c -> dsload2.c 944 aslanalyze.c -> aslbtypes.c aslwalks.c 945 946Example Code and Data Size: These are the sizes for the OS-independent 947acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 948debug version of the code includes the debug output trace mechanism and has 949a much larger code and data size. 950 951 Previous Release (VC 9.0): 952 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 953 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 954 Current Release (VC 9.0): 955 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 956 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 957 9582) iASL Compiler/Disassembler and Tools: 959 960iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 961These are useful C-style macros with the standard definitions. ACPICA 962bugzilla 898. 963 964iASL/DTC: Added support for integer expressions and labels. Support for full 965expressions for all integer fields in all ACPI tables. Support for labels in 966"generic" portions of tables such as UEFI. See the iASL reference manual. 967 968Debugger: Added a command to display the status of global handlers. The 969"handlers" command will display op region, fixed event, and miscellaneous 970global handlers. installation status -- and for op regions, whether default 971or user-installed handler will be used. 972 973iASL: Warn if reserved method incorrectly returns a value. Many predefined 974names are defined such that they do not return a value. If implemented as a 975method, issue a warning if such a name explicitly returns a value. ACPICA 976Bugzilla 855. 977 978iASL: Added detection of GPE method name conflicts. Detects a conflict where 979there are two GPE methods of the form _Lxy and _Exy in the same scope. (For 980example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 981 982iASL/DTC: Fixed a couple input scanner issues with comments and line 983numbers. Comment remover could get confused and miss a comment ending. Fixed 984a problem with line counter maintenance. 985 986iASL/DTC: Reduced the severity of some errors from fatal to error. There is 987no need to abort on simple errors within a field definition. 988 989Debugger: Simplified the output of the help command. All help output now in 990a single screen, instead of help subcommands. ACPICA Bugzilla 897. 991 992---------------------------------------- 99312 January 2011. Summary of changes for version 20110112: 994 9951) ACPI CA Core Subsystem: 996 997Fixed a race condition between method execution and namespace walks that can 998possibly cause a fault. The problem was apparently introduced in version 99920100528 as a result of a performance optimization that reduces the number of 1000namespace walks upon method exit by using the delete_namespace_subtree 1001function instead of the delete_namespace_by_owner function used previously. 1002Bug is a missing namespace lock in the delete_namespace_subtree function. 1003dana.myers@oracle.com 1004 1005Fixed several issues and a possible fault with the automatic "serialized" 1006method support. History: This support changes a method to "serialized" on the 1007fly if the method generates an AE_ALREADY_EXISTS error, indicating the 1008possibility that it cannot handle reentrancy. This fix repairs a couple of 1009issues seen in the field, especially on machines with many cores: 1010 1011 1) Delete method children only upon the exit of the last thread, 1012 so as to not delete objects out from under other running threads 1013 (and possibly causing a fault.) 1014 2) Set the "serialized" bit for the method only upon the exit of the 1015 Last thread, so as to not cause deadlock when running threads 1016 attempt to exit. 1017 3) Cleanup the use of the AML "MethodFlags" and internal method flags 1018 so that there is no longer any confusion between the two. 1019 1020 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 1021 1022Debugger: Now lock the namespace for duration of a namespace dump. Prevents 1023issues if the namespace is changing dynamically underneath the debugger. 1024Especially affects temporary namespace nodes, since the debugger displays 1025these also. 1026 1027Updated the ordering of include files. The ACPICA headers should appear 1028before any compiler-specific headers (stdio.h, etc.) so that acenv.h can set 1029any necessary compiler-specific defines, etc. Affects the ACPI-related tools 1030and utilities. 1031 1032Updated all ACPICA copyrights and signons to 2011. Added the 2011 copyright 1033to all module headers and signons, including the Linux header. This affects 1034virtually every file in the ACPICA core subsystem, iASL compiler, and all 1035utilities. 1036 1037Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 1038project files for VC++ 6.0 are now obsolete. New project files can be found 1039under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 1040details. 1041 1042Example Code and Data Size: These are the sizes for the OS-independent 1043acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1044debug version of the code includes the debug output trace mechanism and has a 1045much larger code and data size. 1046 1047 Previous Release (VC 6.0): 1048 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 1049 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 1050 Current Release (VC 9.0): 1051 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 1052 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 1053 10542) iASL Compiler/Disassembler and Tools: 1055 1056iASL: Added generic data types to the Data Table compiler. Add "generic" data 1057types such as UINT32, String, Unicode, etc., to simplify the generation of 1058platform-defined tables such as UEFI. Lin Ming. 1059 1060iASL: Added listing support for the Data Table Compiler. Adds listing support 1061(-l) to display actual binary output for each line of input code. 1062 1063---------------------------------------- 106409 December 2010. Summary of changes for version 20101209: 1065 10661) ACPI CA Core Subsystem: 1067 1068Completed the major overhaul of the GPE support code that was begun in July 10692010. Major features include: removal of _PRW execution in ACPICA (host 1070executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 1071changes to existing interfaces, simplification of GPE handler operation, and 1072a handful of new interfaces: 1073 1074 AcpiUpdateAllGpes 1075 AcpiFinishGpe 1076 AcpiSetupGpeForWake 1077 AcpiSetGpeWakeMask 1078 One new file, evxfgpe.c to consolidate all external GPE interfaces. 1079 1080See the ACPICA Programmer Reference for full details and programming 1081information. See the new section 4.4 "General Purpose Event (GPE) Support" 1082for a full overview, and section 8.7 "ACPI General Purpose Event Management" 1083for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin Ming, 1084Bob Moore, Rafael Wysocki. 1085 1086Implemented a new GPE feature for Windows compatibility, the "Implicit Wake 1087GPE Notify". This feature will automatically issue a Notify(2) on a device 1088when a Wake GPE is received if there is no corresponding GPE method or 1089handler. ACPICA BZ 870. 1090 1091Fixed a problem with the Scope() operator during table parse and load phase. 1092During load phase (table load or method execution), the scope operator should 1093not enter the target into the namespace. Instead, it should open a new scope 1094at the target location. Linux BZ 19462, ACPICA BZ 882. 1095 1096Example Code and Data Size: These are the sizes for the OS-independent 1097acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1098debug version of the code includes the debug output trace mechanism and has a 1099much larger code and data size. 1100 1101 Previous Release: 1102 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 1103 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 1104 Current Release: 1105 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 1106 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 1107 11082) iASL Compiler/Disassembler and Tools: 1109 1110iASL: Relax the alphanumeric restriction on _CID strings. These strings are 1111"bus-specific" per the ACPI specification, and therefore any characters are 1112acceptable. The only checks that can be performed are for a null string and 1113perhaps for a leading asterisk. ACPICA BZ 886. 1114 1115iASL: Fixed a problem where a syntax error that caused a premature EOF 1116condition on the source file emitted a very confusing error message. The 1117premature EOF is now detected correctly. ACPICA BZ 891. 1118 1119Disassembler: Decode the AccessSize within a Generic Address Structure (byte 1120access, word access, etc.) Note, this field does not allow arbitrary bit 1121access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 1122 1123New: AcpiNames utility - Example namespace dump utility. Shows an example of 1124ACPICA configuration for a minimal namespace dump utility. Uses table and 1125namespace managers, but no AML interpreter. Does not add any functionality 1126over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 1127partition and configure ACPICA. ACPICA BZ 883. 1128 1129AML Debugger: Increased the debugger buffer size for method return objects. 1130Was 4K, increased to 16K. Also enhanced error messages for debugger method 1131execution, including the buffer overflow case. 1132 1133---------------------------------------- 113413 October 2010. Summary of changes for version 20101013: 1135 11361) ACPI CA Core Subsystem: 1137 1138Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, now 1139clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 1140HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 1141 1142Changed the type of the predefined namespace object _TZ from ThermalZone to 1143Device. This was found to be confusing to the host software that processes 1144the various thermal zones, since _TZ is not really a ThermalZone. However, a 1145Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 1146Zhang. 1147 1148Added Windows Vista SP2 to the list of supported _OSI strings. The actual 1149string is "Windows 2006 SP2". 1150 1151Eliminated duplicate code in AcpiUtExecute* functions. Now that the nsrepair 1152code automatically repairs _HID-related strings, this type of code is no 1153longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 878. 1154 1155Example Code and Data Size: These are the sizes for the OS-independent 1156acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1157debug version of the code includes the debug output trace mechanism and has a 1158much larger code and data size. 1159 1160 Previous Release: 1161 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 1162 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 1163 Current Release: 1164 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 1165 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 1166 11672) iASL Compiler/Disassembler and Tools: 1168 1169iASL: Implemented additional compile-time validation for _HID strings. The 1170non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the length of 1171the string must be exactly seven or eight characters. For both _HID and _CID 1172strings, all characters must be alphanumeric. ACPICA BZ 874. 1173 1174iASL: Allow certain "null" resource descriptors. Some BIOS code creates 1175descriptors that are mostly or all zeros, with the expectation that they will 1176be filled in at runtime. iASL now allows this as long as there is a "resource 1177tag" (name) associated with the descriptor, which gives the ASL a handle 1178needed to modify the descriptor. ACPICA BZ 873. 1179 1180Added single-thread support to the generic Unix application OSL. Primarily 1181for iASL support, this change removes the use of semaphores in the single- 1182threaded ACPICA tools/applications - increasing performance. The 1183_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 1184option. ACPICA BZ 879. 1185 1186AcpiExec: several fixes for the 64-bit version. Adds XSDT support and support 1187for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 1188 1189iASL: Moved all compiler messages to a new file, aslmessages.h. 1190 1191---------------------------------------- 119215 September 2010. Summary of changes for version 20100915: 1193 11941) ACPI CA Core Subsystem: 1195 1196Removed the AcpiOsDerivePciId OSL interface. The various host implementations 1197of this function were not OS-dependent and are now obsolete and can be 1198removed from all host OSLs. This function has been replaced by 1199AcpiHwDerivePciId, which is now part of the ACPICA core code. 1200AcpiHwDerivePciId has been implemented without recursion. Adds one new 1201module, hwpci.c. ACPICA BZ 857. 1202 1203Implemented a dynamic repair for _HID and _CID strings. The following 1204problems are now repaired at runtime: 1) Remove a leading asterisk in the 1205string, and 2) the entire string is uppercased. Both repairs are in 1206accordance with the ACPI specification and will simplify host driver code. 1207ACPICA BZ 871. 1208 1209The ACPI_THREAD_ID type is no longer configurable, internally it is now 1210always UINT64. This simplifies the ACPICA code, especially any printf output. 1211UINT64 is the only common data type for all thread_id types across all 1212operating systems. It is now up to the host OSL to cast the native thread_id 1213type to UINT64 before returning the value to ACPICA (via AcpiOsGetThreadId). 1214Lin Ming, Bob Moore. 1215 1216Added the ACPI_INLINE type to enhance the ACPICA configuration. The "inline" 1217keyword is not standard across compilers, and this type allows inline to be 1218configured on a per-compiler basis. Lin Ming. 1219 1220Made the system global AcpiGbl_SystemAwakeAndRunning publically available. 1221Added an extern for this boolean in acpixf.h. Some hosts utilize this value 1222during suspend/restore operations. ACPICA BZ 869. 1223 1224All code that implements error/warning messages with the "ACPI:" prefix has 1225been moved to a new module, utxferror.c. 1226 1227The UINT64_OVERLAY was moved to utmath.c, which is the only module where it 1228is used. ACPICA BZ 829. Lin Ming, Bob Moore. 1229 1230Example Code and Data Size: These are the sizes for the OS-independent 1231acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1232debug version of the code includes the debug output trace mechanism and has a 1233much larger code and data size. 1234 1235 Previous Release: 1236 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 1237 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 1238 Current Release: 1239 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 1240 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 1241 12422) iASL Compiler/Disassembler and Tools: 1243 1244iASL/Disassembler: Write ACPI errors to stderr instead of the output file. 1245This keeps the output files free of random error messages that may originate 1246from within the namespace/interpreter code. Used this opportunity to merge 1247all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 1248866. Lin Ming, Bob Moore. 1249 1250Tools: update some printfs for ansi warnings on size_t. Handle width change 1251of size_t on 32-bit versus 64-bit generations. Lin Ming. 1252 1253---------------------------------------- 125406 August 2010. Summary of changes for version 20100806: 1255 12561) ACPI CA Core Subsystem: 1257 1258Designed and implemented a new host interface to the _OSI support code. This 1259will allow the host to dynamically add or remove multiple _OSI strings, as 1260well as install an optional handler that is called for each _OSI invocation. 1261Also added a new AML debugger command, 'osi' to display and modify the global 1262_OSI string table, and test support in the AcpiExec utility. See the ACPICA 1263reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 1264New Functions: 1265 AcpiInstallInterface - Add an _OSI string. 1266 AcpiRemoveInterface - Delete an _OSI string. 1267 AcpiInstallInterfaceHandler - Install optional _OSI handler. 1268Obsolete Functions: 1269 AcpiOsValidateInterface - no longer used. 1270New Files: 1271 source/components/utilities/utosi.c 1272 1273Re-introduced the support to enable multi-byte transfers for Embedded 1274Controller (EC) operation regions. A reported problem was found to be a bug 1275in the host OS, not in the multi-byte support. Previously, the maximum data 1276size passed to the EC operation region handler was a single byte. There are 1277often EC Fields larger than one byte that need to be transferred, and it is 1278useful for the EC driver to lock these as a single transaction. This change 1279enables single transfers larger than 8 bits. This effectively changes the 1280access to the EC space from ByteAcc to AnyAcc, and will probably require 1281changes to the host OS Embedded Controller driver to enable 16/32/64/256-bit 1282transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 1283 1284Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 1285prototype in acpiosxf.h had the output value pointer as a (void *). 1286It should be a (UINT64 *). This may affect some host OSL code. 1287 1288Fixed a couple problems with the recently modified Linux makefiles for iASL 1289and AcpiExec. These new makefiles place the generated object files in the 1290local directory so that there can be no collisions between the files that are 1291shared between them that are compiled with different options. 1292 1293Example Code and Data Size: These are the sizes for the OS-independent 1294acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1295debug version of the code includes the debug output trace mechanism and has a 1296much larger code and data size. 1297 1298 Previous Release: 1299 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1300 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 1301 Current Release: 1302 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 1303 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 1304 13052) iASL Compiler/Disassembler and Tools: 1306 1307iASL/Disassembler: Added a new option (-da, "disassemble all") to load the 1308namespace from and disassemble an entire group of AML files. Useful for 1309loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) and 1310disassembling with one simple command. ACPICA BZ 865. Lin Ming. 1311 1312iASL: Allow multiple invocations of -e option. This change allows multiple 1313uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 834. 1314Lin Ming. 1315 1316---------------------------------------- 131702 July 2010. Summary of changes for version 20100702: 1318 13191) ACPI CA Core Subsystem: 1320 1321Implemented several updates to the recently added GPE reference count 1322support. The model for "wake" GPEs is changing to give the host OS complete 1323control of these GPEs. Eventually, the ACPICA core will not execute any _PRW 1324methods, since the host already must execute them. Also, additional changes 1325were made to help ensure that the reference counts are kept in proper 1326synchronization with reality. Rafael J. Wysocki. 1327 13281) Ensure that GPEs are not enabled twice during initialization. 13292) Ensure that GPE enable masks stay in sync with the reference count. 13303) Do not inadvertently enable GPEs when writing GPE registers. 13314) Remove the internal wake reference counter and add new AcpiGpeWakeup 1332interface. This interface will set or clear individual GPEs for wakeup. 13335) Remove GpeType argument from AcpiEnable and AcpiDisable. These interfaces 1334are now used for "runtime" GPEs only. 1335 1336Changed the behavior of the GPE install/remove handler interfaces. The GPE is 1337no longer disabled during this process, as it was found to cause problems on 1338some machines. Rafael J. Wysocki. 1339 1340Reverted a change introduced in version 20100528 to enable Embedded 1341Controller multi-byte transfers. This change was found to cause problems with 1342Index Fields and possibly Bank Fields. It will be reintroduced when these 1343problems have been resolved. 1344 1345Fixed a problem with references to Alias objects within Package Objects. A 1346reference to an Alias within the definition of a Package was not always 1347resolved properly. Aliases to objects like Processors, Thermal zones, etc. 1348were resolved to the actual object instead of a reference to the object as it 1349should be. Package objects are only allowed to contain integer, string, 1350buffer, package, and reference objects. Redhat bugzilla 608648. 1351 1352Example Code and Data Size: These are the sizes for the OS-independent 1353acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1354debug version of the code includes the debug output trace mechanism and has a 1355much larger code and data size. 1356 1357 Previous Release: 1358 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1359 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 1360 Current Release: 1361 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1362 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 1363 13642) iASL Compiler/Disassembler and Tools: 1365 1366iASL: Implemented a new compiler subsystem to allow definition and 1367compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. These 1368are called "ACPI Data Tables", and the new compiler is the "Data Table 1369Compiler". This compiler is intended to simplify the existing error-prone 1370process of creating these tables for the BIOS, as well as allowing the 1371disassembly, modification, recompilation, and override of existing ACPI data 1372tables. See the iASL User Guide for detailed information. 1373 1374iASL: Implemented a new Template Generator option in support of the new Data 1375Table Compiler. This option will create examples of all known ACPI tables 1376that can be used as the basis for table development. See the iASL 1377documentation and the -T option. 1378 1379Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 1380Descriptor Table). 1381 1382Updated the Linux makefiles for iASL and AcpiExec to place the generated 1383object files in the local directory so that there can be no collisions 1384between the shared files between them that are generated with different 1385options. 1386 1387Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. Use 1388the #define __APPLE__ to enable this support. 1389 1390---------------------------------------- 139128 May 2010. Summary of changes for version 20100528: 1392 1393Note: The ACPI 4.0a specification was released on April 5, 2010 and is 1394available at www.acpi.info. This is primarily an errata release. 1395 13961) ACPI CA Core Subsystem: 1397 1398Undefined ACPI tables: We are looking for the definitions for the following 1399ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 1400 1401Implemented support to enable multi-byte transfers for Embedded Controller 1402(EC) operation regions. Previously, the maximum data size passed to the EC 1403operation region handler was a single byte. There are often EC Fields larger 1404than one byte that need to be transferred, and it is useful for the EC driver 1405to lock these as a single transaction. This change enables single transfers 1406larger than 8 bits. This effectively changes the access to the EC space from 1407ByteAcc to AnyAcc, and will probably require changes to the host OS Embedded 1408Controller driver to enable 16/32/64/256-bit transfers in addition to 8-bit 1409transfers. Alexey Starikovskiy, Lin Ming 1410 1411Implemented a performance enhancement for namespace search and access. This 1412change enhances the performance of namespace searches and walks by adding a 1413backpointer to the parent in each namespace node. On large namespaces, this 1414change can improve overall ACPI performance by up to 9X. Adding a pointer to 1415each namespace node increases the overall size of the internal namespace by 1416about 5%, since each namespace entry usually consists of both a namespace 1417node and an ACPI operand object. However, this is the first growth of the 1418namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 1419 1420Implemented a performance optimization that reduces the number of namespace 1421walks. On control method exit, only walk the namespace if the method is known 1422to have created namespace objects outside of its local scope. Previously, the 1423entire namespace was traversed on each control method exit. This change can 1424improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob Moore. 1425 1426Added support to truncate I/O addresses to 16 bits for Windows compatibility. 1427Some ASL code has been seen in the field that inadvertently has bits set 1428above bit 15. This feature is optional and is enabled if the BIOS requests 1429any Windows OSI strings. It can also be enabled by the host OS. Matthew 1430Garrett, Bob Moore. 1431 1432Added support to limit the maximum time for the ASL Sleep() operator. To 1433prevent accidental deep sleeps, limit the maximum time that Sleep() will 1434actually sleep. Configurable, the default maximum is two seconds. ACPICA 1435bugzilla 854. 1436 1437Added run-time validation support for the _WDG and_WED Microsoft predefined 1438methods. These objects are defined by "Windows Instrumentation", and are not 1439part of the ACPI spec. ACPICA BZ 860. 1440 1441Expanded all statistic counters used during namespace and device 1442initialization from 16 to 32 bits in order to support very large namespaces. 1443 1444Replaced all instances of %d in printf format specifiers with %u since nearly 1445all integers in ACPICA are unsigned. 1446 1447Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly returned 1448as AE_NO_HANDLER. 1449 1450Example Code and Data Size: These are the sizes for the OS-independent 1451acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1452debug version of the code includes the debug output trace mechanism and has a 1453much larger code and data size. 1454 1455 Previous Release: 1456 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 1457 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 1458 Current Release: 1459 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1460 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 1461 14622) iASL Compiler/Disassembler and Tools: 1463 1464iASL: Added compiler support for the _WDG and_WED Microsoft predefined 1465methods. These objects are defined by "Windows Instrumentation", and are not 1466part of the ACPI spec. ACPICA BZ 860. 1467 1468AcpiExec: added option to disable the memory tracking mechanism. The -dt 1469option will disable the tracking mechanism, which improves performance 1470considerably. 1471 1472AcpiExec: Restructured the command line options into -d (disable) and -e 1473(enable) options. 1474 1475---------------------------------------- 147628 April 2010. Summary of changes for version 20100428: 1477 14781) ACPI CA Core Subsystem: 1479 1480Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 1481including FADT-based and GPE Block Devices, execute any _PRW methods in the 1482new table, and process any _Lxx/_Exx GPE methods in the new table. Any 1483runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 1484immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 1485Devices. Provides compatibility with other ACPI implementations. Two new 1486files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob Moore. 1487 1488Fixed a regression introduced in version 20100331 within the table manager 1489where initial table loading could fail. This was introduced in the fix for 1490AcpiReallocateRootTable. Also, renamed some of fields in the table manager 1491data structures to clarify their meaning and use. 1492 1493Fixed a possible allocation overrun during internal object copy in 1494AcpiUtCopySimpleObject. The original code did not correctly handle the case 1495where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 847. 1496 1497Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 1498possible access beyond end-of-allocation. Also, now fully validate descriptor 1499(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 1500 1501Example Code and Data Size: These are the sizes for the OS-independent 1502acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1503debug version of the code includes the debug output trace mechanism and has a 1504much larger code and data size. 1505 1506 Previous Release: 1507 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 1508 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 1509 Current Release: 1510 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 1511 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 1512 15132) iASL Compiler/Disassembler and Tools: 1514 1515iASL: Implemented Min/Max/Len/Gran validation for address resource 1516descriptors. This change implements validation for the address fields that 1517are common to all address-type resource descriptors. These checks are 1518implemented: Checks for valid Min/Max, length within the Min/Max window, 1519valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as per 1520table 6-40 in the ACPI 4.0a specification. Also split the large aslrestype1.c 1521and aslrestype2.c files into five new files. ACPICA BZ 840. 1522 1523iASL: Added support for the _Wxx predefined names. This support was missing 1524and these names were not recognized by the compiler as valid predefined 1525names. ACPICA BZ 851. 1526 1527iASL: Added an error for all predefined names that are defined to return no 1528value and thus must be implemented as Control Methods. These include all of 1529the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 1530names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 1531 1532iASL: Implemented the -ts option to emit hex AML data in ASL format, as an 1533ASL Buffer. Allows ACPI tables to be easily included within ASL files, to be 1534dynamically loaded via the Load() operator. Also cleaned up output for the - 1535ta and -tc options. ACPICA BZ 853. 1536 1537Tests: Added a new file with examples of extended iASL error checking. 1538Demonstrates the advanced error checking ability of the iASL compiler. 1539Available at tests/misc/badcode.asl. 1540 1541---------------------------------------- 154231 March 2010. Summary of changes for version 20100331: 1543 15441) ACPI CA Core Subsystem: 1545 1546Completed a major update for the GPE support in order to improve support for 1547shared GPEs and to simplify both host OS and ACPICA code. Added a reference 1548count mechanism to support shared GPEs that require multiple device drivers. 1549Several external interfaces have changed. One external interface has been 1550removed. One new external interface was added. Most of the GPE external 1551interfaces now use the GPE spinlock instead of the events mutex (and the 1552Flags parameter for many GPE interfaces has been removed.) See the updated 1553ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, Rafael 1554Wysocki. ACPICA BZ 831. 1555 1556Changed: 1557 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 1558Removed: 1559 AcpiSetGpeType 1560New: 1561 AcpiSetGpe 1562 1563Implemented write support for DataTable operation regions. These regions are 1564defined via the DataTableRegion() operator. Previously, only read support was 1565implemented. The ACPI specification allows DataTableRegions to be read/write, 1566however. 1567 1568Implemented a new subsystem option to force a copy of the DSDT to local 1569memory. Optionally copy the entire DSDT to local memory (instead of simply 1570mapping it.) There are some (albeit very rare) BIOSs that corrupt or replace 1571the original DSDT, creating the need for this option. Default is FALSE, do 1572not copy the DSDT. 1573 1574Implemented detection of a corrupted or replaced DSDT. This change adds 1575support to detect a DSDT that has been corrupted and/or replaced from outside 1576the OS (by firmware). This is typically catastrophic for the system, but has 1577been seen on some machines. Once this problem has been detected, the DSDT 1578copy option can be enabled via system configuration. Lin Ming, Bob Moore. 1579 1580Fixed two problems with AcpiReallocateRootTable during the root table copy. 1581When copying the root table to the new allocation, the length used was 1582incorrect. The new size was used instead of the current table size, meaning 1583too much data was copied. Also, the count of available slots for ACPI tables 1584was not set correctly. Alexey Starikovskiy, Bob Moore. 1585 1586Example Code and Data Size: These are the sizes for the OS-independent 1587acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1588debug version of the code includes the debug output trace mechanism and has a 1589much larger code and data size. 1590 1591 Previous Release: 1592 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 1593 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 1594 Current Release: 1595 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 1596 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 1597 15982) iASL Compiler/Disassembler and Tools: 1599 1600iASL: Implement limited typechecking for values returned from predefined 1601control methods. The type of any returned static (unnamed) object is now 1602validated. For example, Return(1). ACPICA BZ 786. 1603 1604iASL: Fixed a predefined name object verification regression. Fixes a problem 1605introduced in version 20100304. An error is incorrectly generated if a 1606predefined name is declared as a static named object with a value defined 1607using the keywords "Zero", "One", or "Ones". Lin Ming. 1608 1609iASL: Added Windows 7 support for the -g option (get local ACPI tables) by 1610reducing the requested registry access rights. ACPICA BZ 842. 1611 1612Disassembler: fixed a possible fault when generating External() statements. 1613Introduced in commit ae7d6fd: Properly handle externals with parent-prefix 1614(carat). Fixes a string length allocation calculation. Lin Ming. 1615 1616---------------------------------------- 161704 March 2010. Summary of changes for version 20100304: 1618 16191) ACPI CA Core Subsystem: 1620 1621Fixed a possible problem with the AML Mutex handling function 1622AcpiExReleaseMutex where the function could fault under the very rare 1623condition when the interpreter has blocked, the interpreter lock is released, 1624the interpreter is then reentered via the same thread, and attempts to 1625acquire an AML mutex that was previously acquired. FreeBSD report 140979. Lin 1626Ming. 1627 1628Implemented additional configuration support for the AML "Debug Object". 1629Output from the debug object can now be enabled via a global variable, 1630AcpiGbl_EnableAmlDebugObject. This will assist with remote machine debugging. 1631This debug output is now available in the release version of ACPICA instead 1632of just the debug version. Also, the entire debug output module can now be 1633configured out of the ACPICA build if desired. One new file added, 1634executer/exdebug.c. Lin Ming, Bob Moore. 1635 1636Added header support for the ACPI MCHI table (Management Controller Host 1637Interface Table). This table was added in ACPI 4.0, but the defining document 1638has only recently become available. 1639 1640Standardized output of integer values for ACPICA warnings/errors. Always use 16410x prefix for hex output, always use %u for unsigned integer decimal output. 1642Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 400 1643invocations.) These invocations were converted from the original 1644ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 1645 1646Example Code and Data Size: These are the sizes for the OS-independent 1647acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1648debug version of the code includes the debug output trace mechanism and has a 1649much larger code and data size. 1650 1651 Previous Release: 1652 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 1653 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 1654 Current Release: 1655 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 1656 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 1657 16582) iASL Compiler/Disassembler and Tools: 1659 1660iASL: Implemented typechecking support for static (non-control method) 1661predefined named objects that are declared with the Name() operator. For 1662example, the type of this object is now validated to be of type Integer: 1663Name(_BBN, 1). This change migrates the compiler to using the core predefined 1664name table instead of maintaining a local version. Added a new file, 1665aslpredef.c. ACPICA BZ 832. 1666 1667Disassembler: Added support for the ACPI 4.0 MCHI table. 1668 1669---------------------------------------- 167021 January 2010. Summary of changes for version 20100121: 1671 16721) ACPI CA Core Subsystem: 1673 1674Added the 2010 copyright to all module headers and signons. This affects 1675virtually every file in the ACPICA core subsystem, the iASL compiler, the 1676tools/utilities, and the test suites. 1677 1678Implemented a change to the AcpiGetDevices interface to eliminate unnecessary 1679invocations of the _STA method. In the case where a specific _HID is 1680requested, do not run _STA until a _HID match is found. This eliminates 1681potentially dozens of _STA calls during a search for a particular device/HID, 1682which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 1683 1684Implemented an additional repair for predefined method return values. Attempt 1685to repair unexpected NULL elements within returned Package objects. Create an 1686Integer of value zero, a NULL String, or a zero-length Buffer as appropriate. 1687ACPICA BZ 818. Lin Ming, Bob Moore. 1688 1689Removed the obsolete ACPI_INTEGER data type. This type was introduced as the 1690code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 (with 169164-bit AML integers). It is now obsolete and this change removes it from the 1692ACPICA code base, replaced by UINT64. The original typedef has been retained 1693for now for compatibility with existing device driver code. ACPICA BZ 824. 1694 1695Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field in 1696the parse tree object. 1697 1698Added additional warning options for the gcc-4 generation. Updated the source 1699accordingly. This includes some code restructuring to eliminate unreachable 1700code, elimination of some gotos, elimination of unused return values, some 1701additional casting, and removal of redundant declarations. 1702 1703Example Code and Data Size: These are the sizes for the OS-independent 1704acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1705debug version of the code includes the debug output trace mechanism and has a 1706much larger code and data size. 1707 1708 Previous Release: 1709 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 1710 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 1711 Current Release: 1712 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 1713 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 1714 17152) iASL Compiler/Disassembler and Tools: 1716 1717No functional changes for this release. 1718 1719---------------------------------------- 172014 December 2009. Summary of changes for version 20091214: 1721 17221) ACPI CA Core Subsystem: 1723 1724Enhanced automatic data type conversions for predefined name repairs. This 1725change expands the automatic repairs/conversions for predefined name return 1726values to make Integers, Strings, and Buffers fully interchangeable. Also, a 1727Buffer can be converted to a Package of Integers if necessary. The nsrepair.c 1728module was completely restructured. Lin Ming, Bob Moore. 1729 1730Implemented automatic removal of null package elements during predefined name 1731repairs. This change will automatically remove embedded and trailing NULL 1732package elements from returned package objects that are defined to contain a 1733variable number of sub-packages. The driver is then presented with a package 1734with no null elements to deal with. ACPICA BZ 819. 1735 1736Implemented a repair for the predefined _FDE and _GTM names. The expected 1737return value for both names is a Buffer of 5 DWORDs. This repair fixes two 1738possible problems (both seen in the field), where a package of integers is 1739returned, or a buffer of BYTEs is returned. With assistance from Jung-uk Kim. 1740 1741Implemented additional module-level code support. This change will properly 1742execute module-level code that is not at the root of the namespace (under a 1743Device object, etc.). Now executes the code within the current scope instead 1744of the root. ACPICA BZ 762. Lin Ming. 1745 1746Fixed possible mutex acquisition errors when running _REG methods. Fixes a 1747problem where mutex errors can occur when running a _REG method that is in 1748the same scope as a method-defined operation region or an operation region 1749under a module-level IF block. This type of code is rare, so the problem has 1750not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 1751 1752Fixed a possible memory leak during module-level code execution. An object 1753could be leaked for each block of executed module-level code if the 1754interpreter slack mode is enabled This change deletes any implicitly returned 1755object from the module-level code block. Lin Ming. 1756 1757Removed messages for successful predefined repair(s). The repair mechanism 1758was considered too wordy. Now, messages are only unconditionally emitted if 1759the return object cannot be repaired. Existing messages for successful 1760repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 827. 1761 1762Example Code and Data Size: These are the sizes for the OS-independent 1763acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1764debug version of the code includes the debug output trace mechanism and has a 1765much larger code and data size. 1766 1767 Previous Release: 1768 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 1769 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 1770 Current Release: 1771 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 1772 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 1773 17742) iASL Compiler/Disassembler and Tools: 1775 1776iASL: Fixed a regression introduced in 20091112 where intermediate .SRC files 1777were no longer automatically removed at the termination of the compile. 1778 1779acpiexec: Implemented the -f option to specify default region fill value. 1780This option specifies the value used to initialize buffers that simulate 1781operation regions. Default value is zero. Useful for debugging problems that 1782depend on a specific initial value for a region or field. 1783 1784---------------------------------------- 178512 November 2009. Summary of changes for version 20091112: 1786 17871) ACPI CA Core Subsystem: 1788 1789Implemented a post-order callback to AcpiWalkNamespace. The existing 1790interface only has a pre-order callback. This change adds an additional 1791parameter for a post-order callback which will be more useful for bus scans. 1792ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 1793 1794Modified the behavior of the operation region memory mapping cache for 1795SystemMemory. Ensure that the memory mappings created for operation regions 1796do not cross 4K page boundaries. Crossing a page boundary while mapping 1797regions can cause kernel warnings on some hosts if the pages have different 1798attributes. Such regions are probably BIOS bugs, and this is the workaround. 1799Linux BZ 14445. Lin Ming. 1800 1801Implemented an automatic repair for predefined methods that must return 1802sorted lists. This change will repair (by sorting) packages returned by _ALR, 1803_PSS, and _TSS. Drivers can now assume that the packages are correctly sorted 1804and do not contain NULL package elements. Adds one new file, 1805namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 1806 1807Fixed a possible fault during predefined name validation if a return Package 1808object contains NULL elements. Also adds a warning if a NULL element is 1809followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement may 1810include repair or removal of all such NULL elements where possible. 1811 1812Implemented additional module-level executable AML code support. This change 1813will execute module-level code that is not at the root of the namespace 1814(under a Device object, etc.) at table load time. Module-level executable AML 1815code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 1816 1817Implemented a new internal function to create Integer objects. This function 1818simplifies miscellaneous object creation code. ACPICA BZ 823. 1819 1820Reduced the severity of predefined repair messages, Warning to Info. Since 1821the object was successfully repaired, a warning is too severe. Reduced to an 1822info message for now. These messages may eventually be changed to debug-only. 1823ACPICA BZ 812. 1824 1825Example Code and Data Size: These are the sizes for the OS-independent 1826acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1827debug version of the code includes the debug output trace mechanism and has a 1828much larger code and data size. 1829 1830 Previous Release: 1831 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 1832 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 1833 Current Release: 1834 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 1835 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 1836 18372) iASL Compiler/Disassembler and Tools: 1838 1839iASL: Implemented Switch() with While(1) so that Break works correctly. This 1840change correctly implements the Switch operator with a surrounding While(1) 1841so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 1842 1843iASL: Added a message if a package initializer list is shorter than package 1844length. Adds a new remark for a Package() declaration if an initializer list 1845exists, but is shorter than the declared length of the package. Although 1846technically legal, this is probably a coding error and it is seen in the 1847field. ACPICA BZ 815. Lin Ming, Bob Moore. 1848 1849iASL: Fixed a problem where the compiler could fault after the maximum number 1850of errors was reached (200). 1851 1852acpixtract: Fixed a possible warning for pointer cast if the compiler warning 1853level set very high. 1854 1855---------------------------------------- 185613 October 2009. Summary of changes for version 20091013: 1857 18581) ACPI CA Core Subsystem: 1859 1860Fixed a problem where an Operation Region _REG method could be executed more 1861than once. If a custom address space handler is installed by the host before 1862the "initialize operation regions" phase of the ACPICA initialization, any 1863_REG methods for that address space could be executed twice. This change 1864fixes the problem. ACPICA BZ 427. Lin Ming. 1865 1866Fixed a possible memory leak for the Scope() ASL operator. When the exact 1867invocation of "Scope(\)" is executed (change scope to root), one internal 1868operand object was leaked. Lin Ming. 1869 1870Implemented a run-time repair for the _MAT predefined method. If the _MAT 1871return value is defined as a Field object in the AML, and the field 1872size is less than or equal to the default width of an integer (32 or 64),_MAT 1873can incorrectly return an Integer instead of a Buffer. ACPICA now 1874automatically repairs this problem. ACPICA BZ 810. 1875 1876Implemented a run-time repair for the _BIF and _BIX predefined methods. The 1877"OEM Information" field is often incorrectly returned as an Integer with 1878value zero if the field is not supported by the platform. This is due to an 1879ambiguity in the ACPI specification. The field should always be a string. 1880ACPICA now automatically repairs this problem by returning a NULL string 1881within the returned Package. ACPICA BZ 807. 1882 1883Example Code and Data Size: These are the sizes for the OS-independent 1884acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1885debug version of the code includes the debug output trace mechanism and has a 1886much larger code and data size. 1887 1888 Previous Release: 1889 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 1890 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 1891 Current Release: 1892 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 1893 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 1894 18952) iASL Compiler/Disassembler and Tools: 1896 1897Disassembler: Fixed a problem where references to external symbols that 1898contained one or more parent-prefixes (carats) were not handled correctly, 1899possibly causing a fault. ACPICA BZ 806. Lin Ming. 1900 1901Disassembler: Restructured the code so that all functions that handle 1902external symbols are in a single module. One new file is added, 1903common/dmextern.c. 1904 1905AML Debugger: Added a max count argument for the Batch command (which 1906executes multiple predefined methods within the namespace.) 1907 1908iASL: Updated the compiler documentation (User Reference.) Available at 1909http://www.acpica.org/documentation/. ACPICA BZ 750. 1910 1911AcpiXtract: Updated for Lint and other formatting changes. Close all open 1912files. 1913 1914---------------------------------------- 191503 September 2009. Summary of changes for version 20090903: 1916 19171) ACPI CA Core Subsystem: 1918 1919For Windows Vista compatibility, added the automatic execution of an _INI 1920method located at the namespace root (\_INI). This method is executed at 1921table load time. This support is in addition to the automatic execution of 1922\_SB._INI. Lin Ming. 1923 1924Fixed a possible memory leak in the interpreter for AML package objects if 1925the package initializer list is longer than the defined size of the package. 1926This apparently can only happen if the BIOS changes the package size on the 1927fly (seen in a _PSS object), as ASL compilers do not allow this. The 1928interpreter will truncate the package to the defined size (and issue an error 1929message), but previously could leave the extra objects undeleted if they were 1930pre-created during the argument processing (such is the case if the package 1931consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 1932 1933Fixed a problem seen when a Buffer or String is stored to itself via ASL. 1934This has been reported in the field. Previously, ACPICA would zero out the 1935buffer/string. Now, the operation is treated as a noop. Provides Windows 1936compatibility. ACPICA BZ 803. Lin Ming. 1937 1938Removed an extraneous error message for ASL constructs of the form 1939Store(LocalX,LocalX) when LocalX is uninitialized. These curious statements 1940are seen in many BIOSs and are once again treated as NOOPs and no error is 1941emitted when they are encountered. ACPICA BZ 785. 1942 1943Fixed an extraneous warning message if a _DSM reserved method returns a 1944Package object. _DSM can return any type of object, so validation on the 1945return type cannot be performed. ACPICA BZ 802. 1946 1947Example Code and Data Size: These are the sizes for the OS-independent 1948acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1949debug version of the code includes the debug output trace mechanism and has a 1950much larger code and data size. 1951 1952 Previous Release: 1953 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 1954 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 1955 Current Release: 1956 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 1957 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 1958 19592) iASL Compiler/Disassembler and Tools: 1960 1961iASL: Fixed a problem with the use of the Alias operator and Resource 1962Templates. The correct alias is now constructed and no error is emitted. 1963ACPICA BZ 738. 1964 1965iASL: Implemented the -I option to specify additional search directories for 1966include files. Allows multiple additional search paths for include files. 1967Directories are searched in the order specified on the command line (after 1968the local directory is searched.) ACPICA BZ 800. 1969 1970iASL: Fixed a problem where the full pathname for include files was not 1971emitted for warnings/errors. This caused the IDE support to not work 1972properly. ACPICA BZ 765. 1973 1974iASL: Implemented the -@ option to specify a Windows-style response file 1975containing additional command line options. ACPICA BZ 801. 1976 1977AcpiExec: Added support to load multiple AML files simultaneously (such as a 1978DSDT and multiple SSDTs). Also added support for wildcards within the AML 1979pathname. These features allow all machine tables to be easily loaded and 1980debugged together. ACPICA BZ 804. 1981 1982Disassembler: Added missing support for disassembly of HEST table Error Bank 1983subtables. 1984 1985---------------------------------------- 198630 July 2009. Summary of changes for version 20090730: 1987 1988The ACPI 4.0 implementation for ACPICA is complete with this release. 1989 19901) ACPI CA Core Subsystem: 1991 1992ACPI 4.0: Added header file support for all new and changed ACPI tables. 1993Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 1994for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, BERT, 1995EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. There 1996have been some ACPI 4.0 changes to other existing tables. Split the large 1997actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 1998 1999ACPI 4.0: Implemented predefined name validation for all new names. There are 200031 new names in ACPI 4.0. The predefined validation module was split into two 2001files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 2002 2003Implemented support for so-called "module-level executable code". This is 2004executable AML code that exists outside of any control method and is intended 2005to be executed at table load time. Although illegal since ACPI 2.0, this type 2006of code still exists and is apparently still being created. Blocks of this 2007code are now detected and executed as intended. Currently, the code blocks 2008must exist under either an If, Else, or While construct; these are the 2009typical cases seen in the field. ACPICA BZ 762. Lin Ming. 2010 2011Implemented an automatic dynamic repair for predefined names that return 2012nested Package objects. This applies to predefined names that are defined to 2013return a variable-length Package of sub-packages. If the number of sub- 2014packages is one, BIOS code is occasionally seen that creates a simple single 2015package with no sub-packages. This code attempts to fix the problem by 2016wrapping a new package object around the existing package. These methods can 2017be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 2018790. 2019 2020Fixed a regression introduced in 20090625 for the AcpiGetDevices interface. 2021The _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA 2022BZ 793. 2023 2024Fixed a problem with AcpiReset where the reset would silently fail if the 2025register was one of the protected I/O ports. AcpiReset now bypasses the port 2026validation mechanism. This may eventually be driven into the AcpiRead/Write 2027interfaces. 2028 2029Fixed a regression related to the recent update of the AcpiRead/Write 2030interfaces. A sleep/suspend could fail if the optional PM2 Control register 2031does not exist during an attempt to write the Bus Master Arbitration bit. 2032(However, some hosts already delete the code that writes this bit, and the 2033code may in fact be obsolete at this date.) ACPICA BZ 799. 2034 2035Fixed a problem where AcpiTerminate could fault if inadvertently called twice 2036in succession. ACPICA BZ 795. 2037 2038Example Code and Data Size: These are the sizes for the OS-independent 2039acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2040debug version of the code includes the debug output trace mechanism and has a 2041much larger code and data size. 2042 2043 Previous Release: 2044 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 2045 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 2046 Current Release: 2047 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 2048 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 2049 20502) iASL Compiler/Disassembler and Tools: 2051 2052ACPI 4.0: Implemented disassembler support for all new ACPI tables and 2053changes to existing tables. ACPICA BZ 775. 2054 2055---------------------------------------- 205625 June 2009. Summary of changes for version 20090625: 2057 2058The ACPI 4.0 Specification was released on June 16 and is available at 2059www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 2060continue for the next few releases. 2061 20621) ACPI CA Core Subsystem: 2063 2064ACPI 4.0: Implemented interpreter support for the IPMI operation region 2065address space. Includes support for bi-directional data buffers and an IPMI 2066address space handler (to be installed by an IPMI device driver.) ACPICA BZ 2067773. Lin Ming. 2068 2069ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 2070support in both the header files and the disassembler. 2071 2072Completed a major update for the AcpiGetObjectInfo external interface. 2073Changes include: 2074 - Support for variable, unlimited length HID, UID, and CID strings. 2075 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.) 2076 - Call the _SxW power methods on behalf of a device object. 2077 - Determine if a device is a PCI root bridge. 2078 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 2079These changes will require an update to all callers of this interface. See 2080the updated ACPICA Programmer Reference for details. One new source file has 2081been added - utilities/utids.c. ACPICA BZ 368, 780. 2082 2083Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 2084transfers. The Value parameter has been extended from 32 bits to 64 bits in 2085order to support new ACPI 4.0 tables. These changes will require an update to 2086all callers of these interfaces. See the ACPICA Programmer Reference for 2087details. ACPICA BZ 768. 2088 2089Fixed several problems with AcpiAttachData. The handler was not invoked when 2090the host node was deleted. The data sub-object was not automatically deleted 2091when the host node was deleted. The interface to the handler had an unused 2092parameter, this was removed. ACPICA BZ 778. 2093 2094Enhanced the function that dumps ACPI table headers. All non-printable 2095characters in the string fields are now replaced with '?' (Signature, OemId, 2096OemTableId, and CompilerId.) ACPI tables with non-printable characters in 2097these fields are occasionally seen in the field. ACPICA BZ 788. 2098 2099Fixed a problem with predefined method repair code where the code that 2100attempts to repair/convert an object of incorrect type is only executed on 2101the first time the predefined method is called. The mechanism that disables 2102warnings on subsequent calls was interfering with the repair mechanism. 2103ACPICA BZ 781. 2104 2105Fixed a possible memory leak in the predefined validation/repair code when a 2106buffer is automatically converted to an expected string object. 2107 2108Removed obsolete 16-bit files from the distribution and from the current git 2109tree head. ACPICA BZ 776. 2110 2111Example Code and Data Size: These are the sizes for the OS-independent 2112acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2113debug version of the code includes the debug output trace mechanism and has a 2114much larger code and data size. 2115 2116 Previous Release: 2117 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 2118 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 2119 Current Release: 2120 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 2121 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 2122 21232) iASL Compiler/Disassembler and Tools: 2124 2125ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 2126operation region keyword. ACPICA BZ 771, 772. Lin Ming. 2127 2128ACPI 4.0: iASL - implemented compile-time validation support for all new 2129predefined names and control methods (31 total). ACPICA BZ 769. 2130 2131---------------------------------------- 213221 May 2009. Summary of changes for version 20090521: 2133 21341) ACPI CA Core Subsystem: 2135 2136Disabled the preservation of the SCI enable bit in the PM1 control register. 2137The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be 2138a "preserved" bit - "OSPM always preserves this bit position", section 21394.7.3.2.1. However, some machines fail if this bit is in fact preserved 2140because the bit needs to be explicitly set by the OS as a workaround. No 2141machines fail if the bit is not preserved. Therefore, ACPICA no longer 2142attempts to preserve this bit. 2143 2144Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 2145incorrectly formed _PRT package could cause a fault. Added validation to 2146ensure that each package element is actually a sub-package. 2147 2148Implemented a new interface to install or override a single control method, 2149AcpiInstallMethod. This interface is useful when debugging in order to repair 2150an existing method or to install a missing method without having to override 2151the entire ACPI table. See the ACPICA Programmer Reference for use and 2152examples. Lin Ming, Bob Moore. 2153 2154Fixed several reference count issues with the DdbHandle object that is 2155created from a Load or LoadTable operator. Prevent premature deletion of the 2156object. Also, mark the object as invalid once the table has been unloaded. 2157This is needed because the handle itself may not be deleted after the table 2158unload, depending on whether it has been stored in a named object by the 2159caller. Lin Ming. 2160 2161Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 2162mutexes of the same sync level are acquired but then not released in strict 2163opposite order, the internally maintained Current Sync Level becomes confused 2164and can cause subsequent execution errors. ACPICA BZ 471. 2165 2166Changed the allowable release order for ASL mutex objects. The ACPI 4.0 2167specification has been changed to make the SyncLevel for mutex objects more 2168useful. When releasing a mutex, the SyncLevel of the mutex must now be the 2169same as the current sync level. This makes more sense than the previous rule 2170(SyncLevel less than or equal). This change updates the code to match the 2171specification. 2172 2173Fixed a problem with the local version of the AcpiOsPurgeCache function. The 2174(local) cache must be locked during all cache object deletions. Andrew 2175Baumann. 2176 2177Updated the Load operator to use operation region interfaces. This replaces 2178direct memory mapping with region access calls. Now, all region accesses go 2179through the installed region handler as they should. 2180 2181Simplified and optimized the NsGetNextNode function. Reduced parameter count 2182and reduced code for this frequently used function. 2183 2184Example Code and Data Size: These are the sizes for the OS-independent 2185acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2186debug version of the code includes the debug output trace mechanism and has a 2187much larger code and data size. 2188 2189 Previous Release: 2190 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 2191 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 2192 Current Release: 2193 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 2194 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 2195 21962) iASL Compiler/Disassembler and Tools: 2197 2198Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems 2199with sub-table disassembly and handling invalid sub-tables. Attempt recovery 2200after an invalid sub-table ID. 2201 2202---------------------------------------- 220322 April 2009. Summary of changes for version 20090422: 2204 22051) ACPI CA Core Subsystem: 2206 2207Fixed a compatibility issue with the recently released I/O port protection 2208mechanism. For windows compatibility, 1) On a port protection violation, 2209simply ignore the request and do not return an exception (allow the control 2210method to continue execution.) 2) If only part of the request overlaps a 2211protected port, read/write the individual ports that are not protected. Linux 2212BZ 13036. Lin Ming 2213 2214Enhanced the execution of the ASL/AML BreakPoint operator so that it actually 2215breaks into the AML debugger if the debugger is present. This matches the 2216ACPI-defined behavior. 2217 2218Fixed several possible warnings related to the use of the configurable 2219ACPI_THREAD_ID. This type can now be configured as either an integer or a 2220pointer with no warnings. Also fixes several warnings in printf-like 2221statements for the 64-bit build when the type is configured as a pointer. 2222ACPICA BZ 766, 767. 2223 2224Fixed a number of possible warnings when compiling with gcc 4+ (depending on 2225warning options.) Examples include printf formats, aliasing, unused globals, 2226missing prototypes, missing switch default statements, use of non-ANSI 2227library functions, use of non-ANSI constructs. See generate/unix/Makefile for 2228a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 2229 2230Example Code and Data Size: These are the sizes for the OS-independent 2231acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2232debug version of the code includes the debug output trace mechanism and has a 2233much larger code and data size. 2234 2235 Previous Release: 2236 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 2237 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 2238 Current Release: 2239 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 2240 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 2241 22422) iASL Compiler/Disassembler and Tools: 2243 2244iASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on 2245the 64-bit build. 2246 2247iASL: Fixed a problem where the Unix/Linux versions of the compiler could not 2248correctly digest Windows/DOS formatted files (with CR/LF). 2249 2250iASL: Added a new option for "quiet mode" (-va) that produces only the 2251compilation summary, not individual errors and warnings. Useful for large 2252batch compilations. 2253 2254AcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 2255timeout that can be used to detect hang conditions during execution of AML 2256code (includes both internal semaphores and AML-defined mutexes and events.) 2257 2258Added new makefiles for the generation of acpica in a generic unix-like 2259environment. These makefiles are intended to generate the acpica tools and 2260utilities from the original acpica git source tree structure. 2261 2262Test Suites: Updated and cleaned up the documentation files. Updated the 2263copyrights to 2009, affecting all source files. Use the new version of iASL 2264with quiet mode. Increased the number of available semaphores in the Windows 2265OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added 2266an alternate implementation of the semaphore timeout to allow aslts to 2267execute fully on Cygwin. 2268 2269---------------------------------------- 227020 March 2009. Summary of changes for version 20090320: 2271 22721) ACPI CA Core Subsystem: 2273 2274Fixed a possible race condition between AcpiWalkNamespace and dynamic table 2275unloads. Added a reader/writer locking mechanism to allow multiple concurrent 2276namespace walks (readers), but block a dynamic table unload until it can gain 2277exclusive write access to the namespace. This fixes a problem where a table 2278unload could (possibly catastrophically) delete the portion of the namespace 2279that is currently being examined by a walk. Adds a new file, utlock.c, that 2280implements the reader/writer lock mechanism. ACPICA BZ 749. 2281 2282Fixed a regression introduced in version 20090220 where a change to the FADT 2283handling could cause the ACPICA subsystem to access non-existent I/O ports. 2284 2285Modified the handling of FADT register and table (FACS/DSDT) addresses. The 2286FADT can contain both 32-bit and 64-bit versions of these addresses. 2287Previously, the 64-bit versions were favored, meaning that if both 32 and 64 2288versions were valid, but not equal, the 64-bit version was used. This was 2289found to cause some machines to fail. Now, in this case, the 32-bit version 2290is used instead. This now matches the Windows behavior. 2291 2292Implemented a new mechanism to protect certain I/O ports. Provides Microsoft 2293compatibility and protects the standard PC I/O ports from access via AML 2294code. Adds a new file, hwvalid.c 2295 2296Fixed a possible extraneous warning message from the FADT support. The 2297message warns of a 32/64 length mismatch between the legacy and GAS 2298definitions for a register. 2299 2300Removed the obsolete AcpiOsValidateAddress OSL interface. This interface is 2301made obsolete by the port protection mechanism above. It was previously used 2302to validate the entire address range of an operation region, which could be 2303incorrect if the range included illegal ports, but fields within the 2304operation region did not actually access those ports. Validation is now 2305performed on a per-field basis instead of the entire region. 2306 2307Modified the handling of the PM1 Status Register ignored bit (bit 11.) 2308Ignored bits must be "preserved" according to the ACPI spec. Usually, this 2309means a read/modify/write when writing to the register. However, for status 2310registers, writing a one means clear the event. Writing a zero means preserve 2311the event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 2312and the ACPICA code now simply always writes a zero to the ignored bit. 2313 2314Modified the handling of ignored bits for the PM1 A/B Control Registers. As 2315per the ACPI specification, for the control registers, preserve 2316(read/modify/write) all bits that are defined as either reserved or ignored. 2317 2318Updated the handling of write-only bits in the PM1 A/B Control Registers. 2319When reading the register, zero the write-only bits as per the ACPI spec. 2320ACPICA BZ 443. Lin Ming. 2321 2322Removed "Linux" from the list of supported _OSI strings. Linux no longer 2323wants to reply true to this request. The Windows strings are the only paths 2324through the AML that are tested and known to work properly. 2325 2326 Previous Release: 2327 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 2328 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 2329 Current Release: 2330 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 2331 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 2332 23332) iASL Compiler/Disassembler and Tools: 2334 2335Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c and 2336aetables.c 2337 2338---------------------------------------- 233920 February 2009. Summary of changes for version 20090220: 2340 23411) ACPI CA Core Subsystem: 2342 2343Optimized the ACPI register locking. Removed locking for reads from the ACPI 2344bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 2345not required when reading the single-bit registers. The 2346AcpiGetRegisterUnlocked function is no longer needed and has been removed. 2347This will improve performance for reads on these registers. ACPICA BZ 760. 2348 2349Fixed the parameter validation for AcpiRead/Write. Now return 2350AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if 2351the register has an address of zero. Previously, these cases simply returned 2352AE_OK. For optional registers such as PM1B status/enable/control, the caller 2353should check for a valid register address before calling. ACPICA BZ 748. 2354 2355Renamed the external ACPI bit register access functions. Renamed 2356AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 2357functions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 2358Also, restructured the code for these functions by simplifying the code path 2359and condensing duplicate code to reduce code size. 2360 2361Added new functions to transparently handle the possibly split PM1 A/B 2362registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 2363now handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ 2364746. 2365 2366Added a function to handle the PM1 control registers, AcpiHwWritePm1Control. 2367This function writes both of the PM1 control registers (A/B). These registers 2368are different than the PM1 A/B status and enable registers in that different 2369values can be written to the A/B registers. Most notably, the SLP_TYP bits 2370can be different, as per the values returned from the _Sx predefined methods. 2371 2372Removed an extra register write within AcpiHwClearAcpiStatus. This function 2373was writing an optional PM1B status register twice. The existing call to the 2374low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B 2375register. ACPICA BZ 751. 2376 2377Split out the PM1 Status registers from the FADT. Added new globals for these 2378registers (A/B), similar to the way the PM1 Enable registers are handled. 2379Instead of overloading the FADT Event Register blocks. This makes the code 2380clearer and less prone to error. 2381 2382Fixed the warning message for when the platform contains too many ACPI tables 2383for the default size of the global root table data structure. The calculation 2384for the truncation value was incorrect. 2385 2386Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 2387obsolete macro, since it is now a simple reference to ->common.type. There 2388were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 2389 2390Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 2391TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 2392simply SLEEP_TYPE. ACPICA BZ 754. 2393 2394Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 2395function is only needed on 64-bit host operating systems and is thus not 2396included for 32-bit hosts. 2397 2398Debug output: print the input and result for invocations of the _OSI reserved 2399control method via the ACPI_LV_INFO debug level. Also, reduced some of the 2400verbosity of this debug level. Len Brown. 2401 2402Example Code and Data Size: These are the sizes for the OS-independent 2403acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2404debug version of the code includes the debug output trace mechanism and has a 2405much larger code and data size. 2406 2407 Previous Release: 2408 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 2409 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 2410 Current Release: 2411 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 2412 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 2413 24142) iASL Compiler/Disassembler and Tools: 2415 2416Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 2417various legal performance profiles. 2418 2419---------------------------------------- 242023 January 2009. Summary of changes for version 20090123: 2421 24221) ACPI CA Core Subsystem: 2423 2424Added the 2009 copyright to all module headers and signons. This affects 2425virtually every file in the ACPICA core subsystem, the iASL compiler, and 2426the tools/utilities. 2427 2428Implemented a change to allow the host to override any ACPI table, including 2429dynamically loaded tables. Previously, only the DSDT could be replaced by the 2430host. With this change, the AcpiOsTableOverride interface is called for each 2431table found in the RSDT/XSDT during ACPICA initialization, and also whenever 2432a table is dynamically loaded via the AML Load operator. 2433 2434Updated FADT flag definitions, especially the Boot Architecture flags. 2435 2436Debugger: For the Find command, automatically pad the input ACPI name with 2437underscores if the name is shorter than 4 characters. This enables a match 2438with the actual namespace entry which is itself padded with underscores. 2439 2440Example Code and Data Size: These are the sizes for the OS-independent 2441acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2442debug version of the code includes the debug output trace mechanism and has a 2443much larger code and data size. 2444 2445 Previous Release: 2446 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 2447 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 2448 Current Release: 2449 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 2450 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 2451 24522) iASL Compiler/Disassembler and Tools: 2453 2454Fix build error under Bison-2.4. 2455 2456Dissasembler: Enhanced FADT support. Added decoding of the Boot Architecture 2457flags. Now decode all flags, regardless of the FADT version. Flag output 2458includes the FADT version which first defined each flag. 2459 2460The iASL -g option now dumps the RSDT to a file (in addition to the FADT and 2461DSDT). Windows only. 2462 2463---------------------------------------- 246404 December 2008. Summary of changes for version 20081204: 2465 24661) ACPI CA Core Subsystem: 2467 2468The ACPICA Programmer Reference has been completely updated and revamped for 2469this release. This includes updates to the external interfaces, OSL 2470interfaces, the overview sections, and the debugger reference. 2471 2472Several new ACPICA interfaces have been implemented and documented in the 2473programmer reference: 2474AcpiReset - Writes the reset value to the FADT-defined reset register. 2475AcpiDisableAllGpes - Disable all available GPEs. 2476AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 2477AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 2478AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 2479AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 2480AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 2481 2482Most of the public ACPI hardware-related interfaces have been moved to a new 2483file, components/hardware/hwxface.c 2484 2485Enhanced the FADT parsing and low-level ACPI register access: The ACPI 2486register lengths within the FADT are now used, and the low level ACPI 2487register access no longer hardcodes the ACPI register lengths. Given that 2488there may be some risk in actually trusting the FADT register lengths, a run- 2489time option was added to fall back to the default hardcoded lengths if the 2490FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 2491option is set to true for now, and a warning is issued if a suspicious FADT 2492register length is overridden with the default value. 2493 2494Fixed a reference count issue in NsRepairObject. This problem was introduced 2495in version 20081031 as part of a fix to repair Buffer objects within 2496Packages. Lin Ming. 2497 2498Added semaphore support to the Linux/Unix application OS-services layer 2499(OSL). ACPICA BZ 448. Lin Ming. 2500 2501Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes will 2502be implemented in the OSL, or will binary semaphores be used instead. 2503 2504Example Code and Data Size: These are the sizes for the OS-independent 2505acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2506debug version of the code includes the debug output trace mechanism and has a 2507much larger code and data size. 2508 2509 Previous Release: 2510 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 2511 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 2512 Current Release: 2513 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 2514 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 2515 25162) iASL Compiler/Disassembler and Tools: 2517 2518iASL: Completed the '-e' option to include additional ACPI tables in order to 2519aid with disassembly and External statement generation. ACPICA BZ 742. Lin 2520Ming. 2521 2522iASL: Removed the "named object in while loop" error. The compiler cannot 2523determine how many times a loop will execute. ACPICA BZ 730. 2524 2525Disassembler: Implemented support for FADT revision 2 (MS extension). ACPICA 2526BZ 743. 2527 2528Disassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). 2529 2530---------------------------------------- 253131 October 2008. Summary of changes for version 20081031: 2532 25331) ACPI CA Core Subsystem: 2534 2535Restructured the ACPICA header files into public/private. acpi.h now includes 2536only the "public" acpica headers. All other acpica headers are "private" and 2537should not be included by acpica users. One new file, accommon.h is used to 2538include the commonly used private headers for acpica code generation. Future 2539plans include moving all private headers to a new subdirectory. 2540 2541Implemented an automatic Buffer->String return value conversion for 2542predefined ACPI methods. For these methods (such as _BIF), added automatic 2543conversion for return objects that are required to be a String, but a Buffer 2544was found instead. This can happen when reading string battery data from an 2545operation region, because it used to be difficult to convert the data from 2546buffer to string from within the ASL. Ensures that the host OS is provided 2547with a valid null-terminated string. Linux BZ 11822. 2548 2549Updated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector 2550into two: one for the 32-bit vector, another for the 64-bit vector. This is 2551required because the host OS must setup the wake much differently for each 2552vector (real vs. protected mode, etc.) and the interface itself should not be 2553deciding which vector to use. Also, eliminated the GetFirmwareWakingVector 2554interface, as it served no purpose (only the firmware reads the vector, OS 2555only writes the vector.) ACPICA BZ 731. 2556 2557Implemented a mechanism to escape infinite AML While() loops. Added a loop 2558counter to force exit from AML While loops if the count becomes too large. 2559This can occur in poorly written AML when the hardware does not respond 2560within a while loop and the loop does not implement a timeout. The maximum 2561loop count is configurable. A new exception code is returned when a loop is 2562broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 2563 2564Optimized the execution of AML While loops. Previously, a control state 2565object was allocated and freed for each execution of the loop. The 2566optimization is to simply reuse the control state for each iteration. This 2567speeds up the raw loop execution time by about 5%. 2568 2569Enhanced the implicit return mechanism. For Windows compatibility, return an 2570implicit integer of value zero for methods that contain no executable code. 2571Such methods are seen in the field as stubs (presumably), and can cause 2572drivers to fail if they expect a return value. Lin Ming. 2573 2574Allow multiple backslashes as root prefixes in namepaths. In a fully 2575qualified namepath, allow multiple backslash prefixes. This can happen (and 2576is seen in the field) because of the use of a double-backslash in strings 2577(since backslash is the escape character) causing confusion. ACPICA BZ 739 2578Lin Ming. 2579 2580Emit a warning if two different FACS or DSDT tables are discovered in the 2581FADT. Checks if there are two valid but different addresses for the FACS and 2582DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 2583 2584Consolidated the method argument count validation code. Merged the code that 2585validates control method argument counts into the predefined validation 2586module. Eliminates possible multiple warnings for incorrect argument counts. 2587 2588Implemented ACPICA example code. Includes code for ACPICA initialization, 2589handler installation, and calling a control method. Available at 2590source/tools/examples. 2591 2592Added a global pointer for FACS table to simplify internal FACS access. Use 2593the global pointer instead of using AcpiGetTableByIndex for each FACS access. 2594This simplifies the code for the Global Lock and the Firmware Waking 2595Vector(s). 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: 81.2K Code, 17.0K Data, 98.2K Total 2604 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 2605 Current Release: 2606 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 2607 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 2608 26092) iASL Compiler/Disassembler and Tools: 2610 2611iASL: Improved disassembly of external method calls. Added the -e option to 2612allow the inclusion of additional ACPI tables to help with the disassembly of 2613method invocations and the generation of external declarations during the 2614disassembly. Certain external method invocations cannot be disassembled 2615properly without the actual declaration of the method. Use the -e option to 2616include the table where the external method(s) are actually declared. Most 2617useful for disassembling SSDTs that make method calls back to the master 2618DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d 2619-e dsdt.aml ssdt1.aml 2620 2621iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 2622problem where the use of an alias within a namepath would result in a not 2623found error or cause the compiler to fault. Also now allows forward 2624references from the Alias operator itself. ACPICA BZ 738. 2625 2626---------------------------------------- 262726 September 2008. Summary of changes for version 20080926: 2628 26291) ACPI CA Core Subsystem: 2630 2631Designed and implemented a mechanism to validate predefined ACPI methods and 2632objects. This code validates the predefined ACPI objects (objects whose names 2633start with underscore) that appear in the namespace, at the time they are 2634evaluated. The argument count and the type of the returned object are 2635validated against the ACPI specification. The purpose of this validation is 2636to detect problems with the BIOS-implemented predefined ACPI objects before 2637the results are returned to the ACPI-related drivers. Future enhancements may 2638include actual repair of incorrect return objects where possible. Two new 2639files are nspredef.c and acpredef.h. 2640 2641Fixed a fault in the AML parser if a memory allocation fails during the Op 2642completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 2643 2644Fixed an issue with implicit return compatibility. This change improves the 2645implicit return mechanism to be more compatible with the MS interpreter. Lin 2646Ming, ACPICA BZ 349. 2647 2648Implemented support for zero-length buffer-to-string conversions. Allow zero 2649length strings during interpreter buffer-to-string conversions. For example, 2650during the ToDecimalString and ToHexString operators, as well as implicit 2651conversions. Fiodor Suietov, ACPICA BZ 585. 2652 2653Fixed two possible memory leaks in the error exit paths of 2654AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 2655similar in that they use a stack of state objects in order to eliminate 2656recursion. The stack must be fully unwound and deallocated if an error 2657occurs. Lin Ming. ACPICA BZ 383. 2658 2659Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global 2660ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 2661Moore ACPICA BZ 442. 2662 2663Removed the obsolete version number in module headers. Removed the 2664"$Revision" number that appeared in each module header. This version number 2665was useful under SourceSafe and CVS, but has no meaning under git. It is not 2666only incorrect, it could also be misleading. 2667 2668Example Code and Data Size: These are the sizes for the OS-independent 2669acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2670debug version of the code includes the debug output trace mechanism and has a 2671much larger code and data size. 2672 2673 Previous Release: 2674 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2675 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 2676 Current Release: 2677 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 2678 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 2679 2680---------------------------------------- 268129 August 2008. Summary of changes for version 20080829: 2682 26831) ACPI CA Core Subsystem: 2684 2685Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 2686Reference. Changes include the elimination of cheating on the Object field 2687for the DdbHandle subtype, addition of a reference class field to 2688differentiate the various reference types (instead of an AML opcode), and the 2689cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 2690 2691Reduce an error to a warning for an incorrect method argument count. 2692Previously aborted with an error if too few arguments were passed to a 2693control method via the external ACPICA interface. Now issue a warning instead 2694and continue. Handles the case where the method inadvertently declares too 2695many arguments, but does not actually use the extra ones. Applies mainly to 2696the predefined methods. Lin Ming. Linux BZ 11032. 2697 2698Disallow the evaluation of named object types with no intrinsic value. Return 2699AE_TYPE for objects that have no value and therefore evaluation is undefined: 2700Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of 2701these types were allowed, but an exception would be generated at some point 2702during the evaluation. Now, the error is generated up front. 2703 2704Fixed a possible memory leak in the AcpiNsGetExternalPathname function 2705(nsnames.c). Fixes a leak in the error exit path. 2706 2707Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug 2708levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION 2709interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 2710ACPI_LV_EVENTS. 2711 2712Removed obsolete and/or unused exception codes from the acexcep.h header. 2713There is the possibility that certain device drivers may be affected if they 2714use any of these exceptions. 2715 2716The ACPICA documentation has been added to the public git source tree, under 2717acpica/documents. Included are the ACPICA programmer reference, the iASL 2718compiler reference, and the changes.txt release logfile. 2719 2720Example Code and Data Size: These are the sizes for the OS-independent 2721acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2722debug version of the code includes the debug output trace mechanism and has a 2723much larger code and data size. 2724 2725 Previous Release: 2726 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2727 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 2728 Current Release: 2729 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2730 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 2731 27322) iASL Compiler/Disassembler and Tools: 2733 2734Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 2735defines _SCP with 3 arguments. Previous versions defined it with only 1 2736argument. iASL now allows both definitions. 2737 2738iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- 2739length subtables when disassembling ACPI tables. Also fixed a couple of 2740errors where a full 16-bit table type field was not extracted from the input 2741properly. 2742 2743acpisrc: Improve comment counting mechanism for generating source code 2744statistics. Count first and last lines of multi-line comments as whitespace, 2745not comment lines. Handle Linux legal header in addition to standard acpica 2746header. 2747 2748---------------------------------------- 2749 275029 July 2008. Summary of changes for version 20080729: 2751 27521) ACPI CA Core Subsystem: 2753 2754Fix a possible deadlock in the GPE dispatch. Remove call to 2755AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt 2756to acquire the GPE lock but can deadlock since the GPE lock is already held 2757at dispatch time. This code was introduced in version 20060831 as a response 2758to Linux BZ 6881 and has since been removed from Linux. 2759 2760Add a function to dereference returned reference objects. Examines the return 2761object from a call to AcpiEvaluateObject. Any Index or RefOf references are 2762automatically dereferenced in an attempt to return something useful (these 2763reference types cannot be converted into an external ACPI_OBJECT.) Provides 2764MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 2765 2766x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 2767subtables for the MADT and one new subtable for the SRAT. Includes 2768disassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC 2769Specification, June 2008. 2770 2771Additional error checking for pathname utilities. Add error check after all 2772calls to AcpiNsGetPathnameLength. Add status return from 2773AcpiNsBuildExternalPath and check after all calls. Add parameter validation 2774to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 2775 2776Return status from the global init function AcpiUtGlobalInitialize. This is 2777used by both the kernel subsystem and the utilities such as iASL compiler. 2778The function could possibly fail when the caches are initialized. Yang Yi. 2779 2780Add a function to decode reference object types to strings. Created for 2781improved error messages. 2782 2783Improve object conversion error messages. Better error messages during object 2784conversion from internal to the external ACPI_OBJECT. Used for external calls 2785to AcpiEvaluateObject. 2786 2787Example Code and Data Size: These are the sizes for the OS-independent 2788acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2789debug version of the code includes the debug output trace mechanism and has a 2790much larger code and data size. 2791 2792 Previous Release: 2793 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 2794 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 2795 Current Release: 2796 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2797 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 2798 27992) iASL Compiler/Disassembler and Tools: 2800 2801Debugger: fix a possible hang when evaluating non-methods. Fixes a problem 2802introduced in version 20080701. If the object being evaluated (via execute 2803command) is not a method, the debugger can hang while trying to obtain non- 2804existent parameters. 2805 2806iASL: relax error for using reserved "_T_x" identifiers. These names can 2807appear in a disassembled ASL file if they were emitted by the original 2808compiler. Instead of issuing an error or warning and forcing the user to 2809manually change these names, issue a remark instead. 2810 2811iASL: error if named object created in while loop. Emit an error if any named 2812object is created within a While loop. If allowed, this code will generate a 2813run-time error on the second iteration of the loop when an attempt is made to 2814create the same named object twice. ACPICA bugzilla 730. 2815 2816iASL: Support absolute pathnames for include files. Add support for absolute 2817pathnames within the Include operator. previously, only relative pathnames 2818were supported. 2819 2820iASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor. 2821The ACPI spec requires one interrupt minimum. BZ 423 2822 2823iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 2824Handles the case for the Interrupt Resource Descriptor where 2825the ResourceSource argument is omitted but ResourceSourceIndex 2826is present. Now leave room for the Index. BZ 426 2827 2828iASL: Prevent error message if CondRefOf target does not exist. Fixes cases 2829where an error message is emitted if the target does not exist. BZ 516 2830 2831iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 2832(get ACPI tables on Windows). This was apparently broken in version 20070919. 2833 2834AcpiXtract: Handle EOF while extracting data. Correctly handle the case where 2835the EOF happens immediately after the last table in the input file. Print 2836completion message. Previously, no message was displayed in this case. 2837 2838---------------------------------------- 283901 July 2008. Summary of changes for version 20080701: 2840 28410) Git source tree / acpica.org 2842 2843Fixed a problem where a git-clone from http would not transfer the entire 2844source tree. 2845 28461) ACPI CA Core Subsystem: 2847 2848Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 2849enable bit. Now performs a read-change-write of the enable register instead 2850of simply writing out the cached enable mask. This will prevent inadvertent 2851enabling of GPEs if a rogue GPE is received during initialization (before GPE 2852handlers are installed.) 2853 2854Implemented a copy for dynamically loaded tables. Previously, dynamically 2855loaded tables were simply mapped - but on some machines this memory is 2856corrupted after suspend. Now copy the table to a local buffer. For the 2857OpRegion case, added checksum verify. Use the table length from the table 2858header, not the region length. For the Buffer case, use the table length 2859also. Dennis Noordsij, Bob Moore. BZ 10734 2860 2861Fixed a problem where the same ACPI table could not be dynamically loaded and 2862unloaded more than once. Without this change, a table cannot be loaded again 2863once it has been loaded/unloaded one time. The current mechanism does not 2864unregister a table upon an unload. During a load, if the same table is found, 2865this no longer returns an exception. BZ 722 2866 2867Fixed a problem where the wrong descriptor length was calculated for the 2868EndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 2869are calculated as 12 bytes long, but the actual length in the internal 2870descriptor is 16 because of the round-up to 8 on the 64-bit build. Reported 2871by Linn Crosetto. BZ 728 2872 2873Fixed a possible memory leak in the Unload operator. The DdbHandle returned 2874by Load() did not have its reference count decremented during unload, leading 2875to a memory leak. Lin Ming. BZ 727 2876 2877Fixed a possible memory leak when deleting thermal/processor objects. Any 2878associated notify handlers (and objects) were not being deleted. Fiodor 2879Suietov. BZ 506 2880 2881Fixed the ordering of the ASCII names in the global mutex table to match the 2882actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only. 2883Vegard Nossum. BZ 726 2884 2885Enhanced the AcpiGetObjectInfo interface to return the number of required 2886arguments if the object is a control method. Added this call to the debugger 2887so the proper number of default arguments are passed to a method. This 2888prevents a warning when executing methods from AcpiExec. 2889 2890Added a check for an invalid handle in AcpiGetObjectInfo. Return 2891AE_BAD_PARAMETER if input handle is invalid. BZ 474 2892 2893Fixed an extraneous warning from exconfig.c on the 64-bit build. 2894 2895Example Code and Data Size: These are the sizes for the OS-independent 2896acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2897debug version of the code includes the debug output trace mechanism and has a 2898much larger code and data size. 2899 2900 Previous Release: 2901 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 2902 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 2903 Current Release: 2904 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 2905 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 2906 29072) iASL Compiler/Disassembler and Tools: 2908 2909iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 2910resource descriptor names. 2911 2912iASL: Detect invalid ASCII characters in input (windows version). Removed the 2913"-CF" flag from the flex compile, enables correct detection of non-ASCII 2914characters in the input. BZ 441 2915 2916iASL: Eliminate warning when result of LoadTable is not used. Eliminate the 2917"result of operation not used" warning when the DDB handle returned from 2918LoadTable is not used. The warning is not needed. BZ 590 2919 2920AcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to 2921pass address of table to the AML. Added option to disable OpRegion simulation 2922to allow creation of an OpRegion with a real address that was passed to _CFG. 2923All of this allows testing of the Load and Unload operators from AcpiExec. 2924 2925Debugger: update tables command for unloaded tables. Handle unloaded tables 2926and use the standard table header output routine. 2927 2928---------------------------------------- 292909 June 2008. Summary of changes for version 20080609: 2930 29311) ACPI CA Core Subsystem: 2932 2933Implemented a workaround for reversed _PRT entries. A significant number of 2934BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 2935change dynamically detects and repairs this problem. Provides compatibility 2936with MS ACPI. BZ 6859 2937 2938Simplified the internal ACPI hardware interfaces to eliminate the locking 2939flag parameter from Register Read/Write. Added a new external interface, 2940AcpiGetRegisterUnlocked. 2941 2942Fixed a problem where the invocation of a GPE control method could hang. This 2943was a regression introduced in 20080514. The new method argument count 2944validation mechanism can enter an infinite loop when a GPE method is 2945dispatched. Problem fixed by removing the obsolete code that passed GPE block 2946information to the notify handler via the control method parameter pointer. 2947 2948Fixed a problem where the _SST execution status was incorrectly returned to 2949the caller of AcpiEnterSleepStatePrep. This was a regression introduced in 295020080514. _SST is optional and a NOT_FOUND exception should never be 2951returned. BZ 716 2952 2953Fixed a problem where a deleted object could be accessed from within the AML 2954parser. This was a regression introduced in version 20080123 as a fix for the 2955Unload operator. Lin Ming. BZ 10669 2956 2957Cleaned up the debug operand dump mechanism. Eliminated unnecessary operands 2958and eliminated the use of a negative index in a loop. Operands are now 2959displayed in the correct order, not backwards. This also fixes a regression 2960introduced in 20080514 on 64-bit systems where the elimination of 2961ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715 2962 2963Fixed a possible memory leak in EvPciConfigRegionSetup where the error exit 2964path did not delete a locally allocated structure. 2965 2966Updated definitions for the DMAR and SRAT tables to synchronize with the 2967current specifications. Includes disassembler support. 2968 2969Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 2970loop termination value was used. Loop terminated on iteration early, missing 2971one mutex. Linn Crosetto 2972 2973Example Code and Data Size: These are the sizes for the OS-independent 2974acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2975debug version of the code includes the debug output trace mechanism and has a 2976much larger code and data size. 2977 2978 Previous Release: 2979 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 2980 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 2981 Current Release: 2982 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 2983 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 2984 29852) iASL Compiler/Disassembler and Tools: 2986 2987Disassembler: Implemented support for EisaId() within _CID objects. Now 2988disassemble integer _CID objects back to EisaId invocations, including 2989multiple integers within _CID packages. Includes single-step support for 2990debugger also. 2991 2992Disassembler: Added support for DMAR and SRAT table definition changes. 2993 2994---------------------------------------- 299514 May 2008. Summary of changes for version 20080514: 2996 29971) ACPI CA Core Subsystem: 2998 2999Fixed a problem where GPEs were enabled too early during the ACPICA 3000initialization. This could lead to "handler not installed" errors on some 3001machines. Moved GPE enable until after _REG/_STA/_INI methods are run. This 3002ensures that all operation regions and devices throughout the namespace have 3003been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 3004 3005Implemented a change to the enter sleep code. Moved execution of the _GTS 3006method to just before setting sleep enable bit. The execution was moved from 3007AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 3008immediately before the SLP_EN bit is set, as per the ACPI specification. 3009Luming Yu, BZ 1653. 3010 3011Implemented a fix to disable unknown GPEs (2nd version). Now always disable 3012the GPE, even if ACPICA thinks that that it is already disabled. It is 3013possible that the AML or some other code has enabled the GPE unbeknownst to 3014the ACPICA code. 3015 3016Fixed a problem with the Field operator where zero-length fields would return 3017an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL 3018field declarations in Field(), BankField(), and IndexField(). BZ 10606. 3019 3020Implemented a fix for the Load operator, now load the table at the namespace 3021root. This reverts a change introduced in version 20071019. The table is now 3022loaded at the namespace root even though this goes against the ACPI 3023specification. This provides compatibility with other ACPI implementations. 3024The ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming. 3025 3026Fixed a problem where ACPICA would not Load() tables with unusual signatures. 3027Now ignore ACPI table signature for Load() operator. Only "SSDT" is 3028acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 3029Therefore, signature validation is worthless. Apparently MS ACPI accepts such 3030signatures, ACPICA must be compatible. BZ 10454. 3031 3032Fixed a possible negative array index in AcpiUtValidateException. Added NULL 3033fields to the exception string arrays to eliminate a -1 subtraction on the 3034SubStatus field. 3035 3036Updated the debug tracking macros to reduce overall code and data size. 3037Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 3038instead of pointers to static strings. Jan Beulich and Bob Moore. 3039 3040Implemented argument count checking in control method invocation via 3041AcpiEvaluateObject. Now emit an error if too few arguments, warning if too 3042many. This applies only to extern programmatic control method execution, not 3043method-to-method calls within the AML. Lin Ming. 3044 3045Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no 3046longer needed, especially with the removal of 16-bit support. It was replaced 3047mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on 304832/64-bit platforms is required. 3049 3050Added the C const qualifier for appropriate string constants -- mostly 3051MODULE_NAME and printf format strings. Jan Beulich. 3052 3053Example Code and Data Size: These are the sizes for the OS-independent 3054acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3055debug version of the code includes the debug output trace mechanism and has a 3056much larger code and data size. 3057 3058 Previous Release: 3059 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 3060 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 3061 Current Release: 3062 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 3063 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 3064 30652) iASL Compiler/Disassembler and Tools: 3066 3067Implemented ACPI table revision ID validation in the disassembler. Zero is 3068always invalid. For DSDTs, the ID controls the interpreter integer width. 1 3069means 32-bit and this is unusual. 2 or greater is 64-bit. 3070 3071---------------------------------------- 307221 March 2008. Summary of changes for version 20080321: 3073 30741) ACPI CA Core Subsystem: 3075 3076Implemented an additional change to the GPE support in order to suppress 3077spurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 3078disable incoming GPEs that are neither enabled nor disabled -- meaning that 3079the GPE is unknown to the system. This should prevent future interrupt floods 3080from that GPE. BZ 6217 (Zhang Rui) 3081 3082Fixed a problem where NULL package elements were not returned to the 3083AcpiEvaluateObject interface correctly. The element was simply ignored 3084instead of returning a NULL ACPI_OBJECT package element, potentially causing 3085a buffer overflow and/or confusing the caller who expected a fixed number of 3086elements. BZ 10132 (Lin Ming, Bob Moore) 3087 3088Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword, 3089Qword), Field, BankField, and IndexField operators when invoked from inside 3090an executing control method. In this case, these operators created namespace 3091nodes that were incorrectly left marked as permanent nodes instead of 3092temporary nodes. This could cause a problem if there is race condition 3093between an exiting control method and a running namespace walk. (Reported by 3094Linn Crosetto) 3095 3096Fixed a problem where the CreateField and CreateXXXField operators would 3097incorrectly allow duplicate names (the name of the field) with no exception 3098generated. 3099 3100Implemented several changes for Notify handling. Added support for new Notify 3101values (ACPI 2.0+) and improved the Notify debug output. Notify on 3102PowerResource objects is no longer allowed, as per the ACPI specification. 3103(Bob Moore, Zhang Rui) 3104 3105All Reference Objects returned via the AcpiEvaluateObject interface are now 3106marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for 3107NULL objects - either NULL package elements or unresolved named references. 3108 3109Fixed a problem where an extraneous debug message was produced for package 3110objects (when debugging enabled). The message "Package List length larger 3111than NumElements count" is now produced in the correct case, and is now an 3112error message rather than a debug message. Added a debug message for the 3113opposite case, where NumElements is larger than the Package List (the package 3114will be padded out with NULL elements as per the ACPI spec.) 3115 3116Implemented several improvements for the output of the ASL "Debug" object to 3117clarify and keep all data for a given object on one output line. 3118 3119Fixed two size calculation issues with the variable-length Start Dependent 3120resource descriptor. 3121 3122Example Code and Data Size: These are the sizes for the OS-independent 3123acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3124debug version of the code includes the debug output trace mechanism and has 3125a much larger code and data size. 3126 3127 Previous Release: 3128 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 3129 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 3130 Current Release: 3131 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 3132 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 3133 31342) iASL Compiler/Disassembler and Tools: 3135 3136Fixed a problem with the use of the Switch operator where execution of the 3137containing method by multiple concurrent threads could cause an 3138AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 3139actual Switch opcode, it must be simulated with local named temporary 3140variables and if/else pairs. The solution chosen was to mark any method that 3141uses Switch as Serialized, thus preventing multiple thread entries. BZ 469. 3142 3143---------------------------------------- 314413 February 2008. Summary of changes for version 20080213: 3145 31461) ACPI CA Core Subsystem: 3147 3148Implemented another MS compatibility design change for GPE/Notify handling. 3149GPEs are now cleared/enabled asynchronously to allow all pending notifies to 3150complete first. It is expected that the OSL will queue the enable request 3151behind all pending notify requests (may require changes to the local host OSL 3152in AcpiOsExecute). Alexey Starikovskiy. 3153 3154Fixed a problem where buffer and package objects passed as arguments to a 3155control method via the external AcpiEvaluateObject interface could cause an 3156AE_AML_INTERNAL exception depending on the order and type of operators 3157executed by the target control method. 3158 3159Fixed a problem where resource descriptor size optimization could cause a 3160problem when a _CRS resource template is passed to a _SRS method. The _SRS 3161resource template must use the same descriptors (with the same size) as 3162returned from _CRS. This change affects the following resource descriptors: 3163IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487) 3164 3165Fixed a problem where a CopyObject to RegionField, BankField, and IndexField 3166objects did not perform an implicit conversion as it should. These types must 3167retain their initial type permanently as per the ACPI specification. However, 3168a CopyObject to all other object types should not perform an implicit 3169conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 3170 3171Fixed a problem with the AcpiGetDevices interface where the mechanism to 3172match device CIDs did not examine the entire list of available CIDs, but 3173instead aborted on the first non-matching CID. Andrew Patterson. 3174 3175Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was 3176inadvertently changed to return a 16-bit value instead of a 32-bit value, 3177truncating the upper dword of a 64-bit value. This macro is only used to 3178display debug output, so no incorrect calculations were made. Also, 3179reimplemented the macro so that a 64-bit shift is not performed by 3180inefficient compilers. 3181 3182Added missing va_end statements that should correspond with each va_start 3183statement. 3184 3185Example Code and Data Size: These are the sizes for the OS-independent 3186acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3187debug version of the code includes the debug output trace mechanism and has 3188a much larger code and data size. 3189 3190 Previous Release: 3191 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 3192 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 3193 Current Release: 3194 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 3195 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 3196 31972) iASL Compiler/Disassembler and Tools: 3198 3199Implemented full disassembler support for the following new ACPI tables: 3200BERT, EINJ, and ERST. Implemented partial disassembler support for the 3201complicated HEST table. These tables support the Windows Hardware Error 3202Architecture (WHEA). 3203 3204---------------------------------------- 320523 January 2008. Summary of changes for version 20080123: 3206 32071) ACPI CA Core Subsystem: 3208 3209Added the 2008 copyright to all module headers and signons. This affects 3210virtually every file in the ACPICA core subsystem, the iASL compiler, and 3211the tools/utilities. 3212 3213Fixed a problem with the SizeOf operator when used with Package and Buffer 3214objects. These objects have deferred execution for some arguments, and the 3215execution is now completed before the SizeOf is executed. This problem caused 3216unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ 32179558 3218 3219Implemented an enhancement to the interpreter "slack mode". In the absence of 3220an explicit return or an implicitly returned object from the last executed 3221opcode, a control method will now implicitly return an integer of value 0 for 3222Microsoft compatibility. (Lin Ming) BZ 392 3223 3224Fixed a problem with the Load operator where an exception was not returned in 3225the case where the table is already loaded. (Lin Ming) BZ 463 3226 3227Implemented support for the use of DDBHandles as an Indexed Reference, as per 3228the ACPI spec. (Lin Ming) BZ 486 3229 3230Implemented support for UserTerm (Method invocation) for the Unload operator 3231as per the ACPI spec. (Lin Ming) BZ 580 3232 3233Fixed a problem with the LoadTable operator where the OemId and OemTableId 3234input strings could cause unexpected failures if they were shorter than the 3235maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 3236 3237Implemented support for UserTerm (Method invocation) for the Unload operator 3238as per the ACPI spec. (Lin Ming) BZ 580 3239 3240Implemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST, 3241IBFT, UEFI, WDAT. Disassembler support is forthcoming. 3242 3243Example Code and Data Size: These are the sizes for the OS-independent 3244acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3245debug version of the code includes the debug output trace mechanism and has 3246a much larger code and data size. 3247 3248 Previous Release: 3249 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 3250 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 3251 Current Release: 3252 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 3253 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 3254 32552) iASL Compiler/Disassembler and Tools: 3256 3257Implemented support in the disassembler for checksum validation on incoming 3258binary DSDTs and SSDTs. If incorrect, a message is displayed within the table 3259header dump at the start of the disassembly. 3260 3261Implemented additional debugging information in the namespace listing file 3262created during compilation. In addition to the namespace hierarchy, the full 3263pathname to each namespace object is displayed. 3264 3265Fixed a problem with the disassembler where invalid ACPI tables could cause 3266faults or infinite loops. 3267 3268Fixed an unexpected parse error when using the optional "parameter types" 3269list in a control method declaration. (Lin Ming) BZ 397 3270 3271Fixed a problem where two External declarations with the same name did not 3272cause an error (Lin Ming) BZ 509 3273 3274Implemented support for full TermArgs (adding Argx, Localx and method 3275invocation) for the ParameterData parameter to the LoadTable operator. (Lin 3276Ming) BZ 583,587 3277 3278---------------------------------------- 327919 December 2007. Summary of changes for version 20071219: 3280 32811) ACPI CA Core Subsystem: 3282 3283Implemented full support for deferred execution for the TermArg string 3284arguments for DataTableRegion. This enables forward references and full 3285operand resolution for the three string arguments. Similar to OperationRegion 3286deferred argument execution.) Lin Ming. BZ 430 3287 3288Implemented full argument resolution support for the BankValue argument to 3289BankField. Previously, only constants were supported, now any TermArg may be 3290used. Lin Ming BZ 387, 393 3291 3292Fixed a problem with AcpiGetDevices where the search of a branch of the 3293device tree could be terminated prematurely. In accordance with the ACPI 3294specification, the search down the current branch is terminated if a device 3295is both not present and not functional (instead of just not present.) Yakui 3296Zhao. 3297 3298Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly if 3299the underlying AML code changed the GPE enable registers. Now, any unknown 3300incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled 3301instead of simply ignored. Rui Zhang. 3302 3303Fixed a problem with Index Fields where the Index register was incorrectly 3304limited to a maximum of 32 bits. Now any size may be used. 3305 3306Fixed a couple memory leaks associated with "implicit return" objects when 3307the AML Interpreter slack mode is enabled. Lin Ming BZ 349 3308 3309Example Code and Data Size: These are the sizes for the OS-independent 3310acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3311debug version of the code includes the debug output trace mechanism and has 3312a much larger code and data size. 3313 3314 Previous Release: 3315 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 3316 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 3317 Current Release: 3318 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 3319 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 3320 3321---------------------------------------- 332214 November 2007. Summary of changes for version 20071114: 3323 33241) ACPI CA Core Subsystem: 3325 3326Implemented event counters for each of the Fixed Events, the ACPI SCI 3327(interrupt) itself, and control methods executed. Named 3328AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These 3329should be useful for debugging and statistics. 3330 3331Implemented a new external interface, AcpiGetStatistics, to retrieve the 3332contents of the various event counters. Returns the current values for 3333AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 3334AcpiMethodCount. The interface can be expanded in the future if new counters 3335are added. Device drivers should use this interface rather than access the 3336counters directly. 3337 3338Fixed a problem with the FromBCD and ToBCD operators. With some compilers, 3339the ShortDivide function worked incorrectly, causing problems with the BCD 3340functions with large input values. A truncation from 64-bit to 32-bit 3341inadvertently occurred. Internal BZ 435. Lin Ming 3342 3343Fixed a problem with Index references passed as method arguments. References 3344passed as arguments to control methods were dereferenced immediately (before 3345control was passed to the called method). The references are now correctly 3346passed directly to the called method. BZ 5389. Lin Ming 3347 3348Fixed a problem with CopyObject used in conjunction with the Index operator. 3349The reference was incorrectly dereferenced before the copy. The reference is 3350now correctly copied. BZ 5391. Lin Ming 3351 3352Fixed a problem with Control Method references within Package objects. These 3353references are now correctly generated. This completes the package 3354construction overhaul that began in version 20071019. 3355 3356Example Code and Data Size: These are the sizes for the OS-independent 3357acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3358debug version of the code includes the debug output trace mechanism and has 3359a much larger code and data size. 3360 3361 Previous Release: 3362 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 3363 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 3364 Current Release: 3365 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 3366 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 3367 3368 33692) iASL Compiler/Disassembler and Tools: 3370 3371The AcpiExec utility now installs handlers for all of the predefined 3372Operation Region types. New types supported are: PCI_Config, CMOS, and 3373PCIBARTarget. 3374 3375Fixed a problem with the 64-bit version of AcpiExec where the extended (64- 3376bit) address fields for the DSDT and FACS within the FADT were not being 3377used, causing truncation of the upper 32-bits of these addresses. Lin Ming 3378and Bob Moore 3379 3380---------------------------------------- 338119 October 2007. Summary of changes for version 20071019: 3382 33831) ACPI CA Core Subsystem: 3384 3385Fixed a problem with the Alias operator when the target of the alias is a 3386named ASL operator that opens a new scope -- Scope, Device, PowerResource, 3387Processor, and ThermalZone. In these cases, any children of the original 3388operator could not be accessed via the alias, potentially causing unexpected 3389AE_NOT_FOUND exceptions. (BZ 9067) 3390 3391Fixed a problem with the Package operator where all named references were 3392created as object references and left otherwise unresolved. According to the 3393ACPI specification, a Package can only contain Data Objects or references to 3394control methods. The implication is that named references to Data Objects 3395(Integer, Buffer, String, Package, BufferField, Field) should be resolved 3396immediately upon package creation. This is the approach taken with this 3397change. References to all other named objects (Methods, Devices, Scopes, 3398etc.) are all now properly created as reference objects. (BZ 5328) 3399 3400Reverted a change to Notify handling that was introduced in version 340120070508. This version changed the Notify handling from asynchronous to 3402fully synchronous (Device driver Notify handling with respect to the Notify 3403ASL operator). It was found that this change caused more problems than it 3404solved and was removed by most users. 3405 3406Fixed a problem with the Increment and Decrement operators where the type of 3407the target object could be unexpectedly and incorrectly changed. (BZ 353) 3408Lin Ming. 3409 3410Fixed a problem with the Load and LoadTable operators where the table 3411location within the namespace was ignored. Instead, the table was always 3412loaded into the root or current scope. Lin Ming. 3413 3414Fixed a problem with the Load operator when loading a table from a buffer 3415object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 3416 3417Fixed a problem with the Debug object where a store of a DdbHandle reference 3418object to the Debug object could cause a fault. 3419 3420Added a table checksum verification for the Load operator, in the case where 3421the load is from a buffer. (BZ 578). 3422 3423Implemented additional parameter validation for the LoadTable operator. The 3424length of the input strings SignatureString, OemIdString, and OemTableId are 3425now checked for maximum lengths. (BZ 582) Lin Ming. 3426 3427Example Code and Data Size: These are the sizes for the OS-independent 3428acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3429debug version of the code includes the debug output trace mechanism and has 3430a much larger code and data size. 3431 3432 Previous Release: 3433 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 3434 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 3435 Current Release: 3436 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 3437 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 3438 3439 34402) iASL Compiler/Disassembler: 3441 3442Fixed a problem where if a single file was specified and the file did not 3443exist, no error message was emitted. (Introduced with wildcard support in 3444version 20070917.) 3445 3446---------------------------------------- 344719 September 2007. Summary of changes for version 20070919: 3448 34491) ACPI CA Core Subsystem: 3450 3451Designed and implemented new external interfaces to install and remove 3452handlers for ACPI table-related events. Current events that are defined are 3453LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 3454they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 3455AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 3456 3457Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 3458(acpi_serialized option on Linux) could cause some systems to hang during 3459initialization. (Bob Moore) BZ 8171 3460 3461Fixed a problem where objects of certain types (Device, ThermalZone, 3462Processor, PowerResource) can be not found if they are declared and 3463referenced from within the same control method (Lin Ming) BZ 341 3464 3465Example Code and Data Size: These are the sizes for the OS-independent 3466acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3467debug version of the code includes the debug output trace mechanism and has 3468a much larger code and data size. 3469 3470 Previous Release: 3471 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 3472 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 3473 Current Release: 3474 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 3475 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 3476 3477 34782) iASL Compiler/Disassembler: 3479 3480Implemented support to allow multiple files to be compiled/disassembled in a 3481single invocation. This includes command line wildcard support for both the 3482Windows and Unix versions of the compiler. This feature simplifies the 3483disassembly and compilation of multiple ACPI tables in a single directory. 3484 3485---------------------------------------- 348608 May 2007. Summary of changes for version 20070508: 3487 34881) ACPI CA Core Subsystem: 3489 3490Implemented a Microsoft compatibility design change for the handling of the 3491Notify AML operator. Previously, notify handlers were dispatched and 3492executed completely asynchronously in a deferred thread. The new design 3493still executes the notify handlers in a different thread, but the original 3494thread that executed the Notify() now waits at a synchronization point for 3495the notify handler to complete. Some machines depend on a synchronous Notify 3496operator in order to operate correctly. 3497 3498Implemented support to allow Package objects to be passed as method 3499arguments to the external AcpiEvaluateObject interface. Previously, this 3500would return the AE_NOT_IMPLEMENTED exception. This feature had not been 3501implemented since there were no reserved control methods that required it 3502until recently. 3503 3504Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that 3505contained invalid non-zero values in reserved fields could cause later 3506failures because these fields have meaning in later revisions of the FADT. 3507For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields 3508are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 3509 3510Fixed a problem where the Global Lock handle was not properly updated if a 3511thread that acquired the Global Lock via executing AML code then attempted 3512to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe 3513Liu. 3514 3515Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 3516could be corrupted if the interrupt being removed was at the head of the 3517list. Reported by Linn Crosetto. 3518 3519Example Code and Data Size: These are the sizes for the OS-independent 3520acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3521debug version of the code includes the debug output trace mechanism and has 3522a much larger code and data size. 3523 3524 Previous Release: 3525 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3526 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 3527 Current Release: 3528 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 3529 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 3530 3531---------------------------------------- 353220 March 2007. Summary of changes for version 20070320: 3533 35341) ACPI CA Core Subsystem: 3535 3536Implemented a change to the order of interpretation and evaluation of AML 3537operand objects within the AML interpreter. The interpreter now evaluates 3538operands in the order that they appear in the AML stream (and the 3539corresponding ASL code), instead of in the reverse order (after the entire 3540operand list has been parsed). The previous behavior caused several subtle 3541incompatibilities with the Microsoft AML interpreter as well as being 3542somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 3543 3544Implemented a change to the ACPI Global Lock support. All interfaces to the 3545global lock now allow the same thread to acquire the lock multiple times. 3546This affects the AcpiAcquireGlobalLock external interface to the global lock 3547as well as the internal use of the global lock to support AML fields -- a 3548control method that is holding the global lock can now simultaneously access 3549AML fields that require global lock protection. Previously, in both cases, 3550this would have resulted in an AE_ALREADY_ACQUIRED exception. The change to 3551AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 3552Controller. There is no change to the behavior of the AML Acquire operator, 3553as this can already be used to acquire a mutex multiple times by the same 3554thread. BZ 8066. With assistance from Alexey Starikovskiy. 3555 3556Fixed a problem where invalid objects could be referenced in the AML 3557Interpreter after error conditions. During operand evaluation, ensure that 3558the internal "Return Object" field is cleared on error and only valid 3559pointers are stored there. Caused occasional access to deleted objects that 3560resulted in "large reference count" warning messages. Valery Podrezov. 3561 3562Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur on 3563deeply nested control method invocations. BZ 7873, local BZ 487. Valery 3564Podrezov. 3565 3566Fixed an internal problem with the handling of result objects on the 3567interpreter result stack. BZ 7872. Valery Podrezov. 3568 3569Removed obsolete code that handled the case where AML_NAME_OP is the target 3570of a reference (Reference.Opcode). This code was no longer necessary. BZ 35717874. Valery Podrezov. 3572 3573Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a 3574remnant from the previously discontinued 16-bit support. 3575 3576Example Code and Data Size: These are the sizes for the OS-independent 3577acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3578debug version of the code includes the debug output trace mechanism and has 3579a much larger code and data size. 3580 3581 Previous Release: 3582 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3583 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3584 Current Release: 3585 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3586 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 3587 3588---------------------------------------- 358926 January 2007. Summary of changes for version 20070126: 3590 35911) ACPI CA Core Subsystem: 3592 3593Added the 2007 copyright to all module headers and signons. This affects 3594virtually every file in the ACPICA core subsystem, the iASL compiler, and 3595the utilities. 3596 3597Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 3598during a table load. A bad pointer was passed in the case where the DSDT is 3599overridden, causing a fault in this case. 3600 3601Example Code and Data Size: These are the sizes for the OS-independent 3602acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3603debug version of the code includes the debug output trace mechanism and has 3604a much larger code and data size. 3605 3606 Previous Release: 3607 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3608 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3609 Current Release: 3610 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3611 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3612 3613---------------------------------------- 361415 December 2006. Summary of changes for version 20061215: 3615 36161) ACPI CA Core Subsystem: 3617 3618Support for 16-bit ACPICA has been completely removed since it is no longer 3619necessary and it clutters the code. All 16-bit macros, types, and 3620conditional compiles have been removed, cleaning up and simplifying the code 3621across the entire subsystem. DOS support is no longer needed since the 3622bootable Linux firmware kit is now available. 3623 3624The handler for the Global Lock is now removed during AcpiTerminate to 3625enable a clean subsystem restart, via the implementation of the 3626AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 3627HP) 3628 3629Implemented enhancements to the multithreading support within the debugger 3630to enable improved multithreading debugging and evaluation of the subsystem. 3631(Valery Podrezov) 3632 3633Debugger: Enhanced the Statistics/Memory command to emit the total (maximum) 3634memory used during the execution, as well as the maximum memory consumed by 3635each of the various object types. (Valery Podrezov) 3636 3637Example Code and Data Size: These are the sizes for the OS-independent 3638acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3639debug version of the code includes the debug output trace mechanism and has 3640a much larger code and data size. 3641 3642 Previous Release: 3643 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 3644 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 3645 Current Release: 3646 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3647 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3648 3649 36502) iASL Compiler/Disassembler and Tools: 3651 3652AcpiExec: Implemented a new option (-m) to display full memory use 3653statistics upon subsystem/program termination. (Valery Podrezov) 3654 3655---------------------------------------- 365609 November 2006. Summary of changes for version 20061109: 3657 36581) ACPI CA Core Subsystem: 3659 3660Optimized the Load ASL operator in the case where the source operand is an 3661operation region. Simply map the operation region memory, instead of 3662performing a bytewise read. (Region must be of type SystemMemory, see 3663below.) 3664 3665Fixed the Load ASL operator for the case where the source operand is a 3666region field. A buffer object is also allowed as the source operand. BZ 480 3667 3668Fixed a problem where the Load ASL operator allowed the source operand to be 3669an operation region of any type. It is now restricted to regions of type 3670SystemMemory, as per the ACPI specification. BZ 481 3671 3672Additional cleanup and optimizations for the new Table Manager code. 3673 3674AcpiEnable will now fail if all of the required ACPI tables are not loaded 3675(FADT, FACS, DSDT). BZ 477 3676 3677Added #pragma pack(8/4) to acobject.h to ensure that the structures in this 3678header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 3679manually optimized to be aligned and will not work if it is byte-packed. 3680 3681Example Code and Data Size: These are the sizes for the OS-independent 3682acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3683debug version of the code includes the debug output trace mechanism and has 3684a much larger code and data size. 3685 3686 Previous Release: 3687 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 3688 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 3689 Current Release: 3690 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 3691 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 3692 3693 36942) iASL Compiler/Disassembler and Tools: 3695 3696Fixed a problem where the presence of the _OSI predefined control method 3697within complex expressions could cause an internal compiler error. 3698 3699AcpiExec: Implemented full region support for multiple address spaces. 3700SpaceId is now part of the REGION object. BZ 429 3701 3702---------------------------------------- 370311 October 2006. Summary of changes for version 20061011: 3704 37051) ACPI CA Core Subsystem: 3706 3707Completed an AML interpreter performance enhancement for control method 3708execution. Previously a 2-pass parse/execution, control methods are now 3709completely parsed and executed in a single pass. This improves overall 3710interpreter performance by ~25%, reduces code size, and reduces CPU stack 3711use. (Valery Podrezov + interpreter changes in version 20051202 that 3712eliminated namespace loading during the pass one parse.) 3713 3714Implemented _CID support for PCI Root Bridge detection. If the _HID does not 3715match the predefined PCI Root Bridge IDs, the _CID list (if present) is now 3716obtained and also checked for an ID match. 3717 3718Implemented additional support for the PCI _ADR execution: upsearch until a 3719device scope is found before executing _ADR. This allows PCI_Config 3720operation regions to be declared locally within control methods underneath 3721PCI device objects. 3722 3723Fixed a problem with a possible race condition between threads executing 3724AcpiWalkNamespace and the AML interpreter. This condition was removed by 3725modifying AcpiWalkNamespace to (by default) ignore all temporary namespace 3726entries created during any concurrent control method execution. An 3727additional namespace race condition is known to exist between 3728AcpiWalkNamespace and the Load/Unload ASL operators and is still under 3729investigation. 3730 3731Restructured the AML ParseLoop function, breaking it into several 3732subfunctions in order to reduce CPU stack use and improve maintainability. 3733(Mikhail Kouzmich) 3734 3735AcpiGetHandle: Fix for parameter validation to detect invalid combinations 3736of prefix handle and pathname. BZ 478 3737 3738Example Code and Data Size: These are the sizes for the OS-independent 3739acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3740debug version of the code includes the debug output trace mechanism and has 3741a much larger code and data size. 3742 3743 Previous Release: 3744 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3745 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 3746 Current Release: 3747 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 3748 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 3749 37502) iASL Compiler/Disassembler and Tools: 3751 3752Ported the -g option (get local ACPI tables) to the new ACPICA Table Manager 3753to restore original behavior. 3754 3755---------------------------------------- 375627 September 2006. Summary of changes for version 20060927: 3757 37581) ACPI CA Core Subsystem: 3759 3760Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 3761These functions now use a spinlock for mutual exclusion and the interrupt 3762level indication flag is not needed. 3763 3764Fixed a problem with the Global Lock where the lock could appear to be 3765obtained before it is actually obtained. The global lock semaphore was 3766inadvertently created with one unit instead of zero units. (BZ 464) Fiodor 3767Suietov. 3768 3769Fixed a possible memory leak and fault in AcpiExResolveObjectToValue during 3770a read from a buffer or region field. (BZ 458) Fiodor Suietov. 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.9K Code, 17.1K Data, 95.0K Total 3779 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 3780 Current Release: 3781 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3782 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 3783 3784 37852) iASL Compiler/Disassembler and Tools: 3786 3787Fixed a compilation problem with the pre-defined Resource Descriptor field 3788names where an "object does not exist" error could be incorrectly generated 3789if the parent ResourceTemplate pathname places the template within a 3790different namespace scope than the current scope. (BZ 7212) 3791 3792Fixed a problem where the compiler could hang after syntax errors detected 3793in an ElseIf construct. (BZ 453) 3794 3795Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 3796operator. An incorrect output filename was produced when this parameter was 3797a null string (""). Now, the original input filename is used as the AML 3798output filename, with an ".aml" extension. 3799 3800Implemented a generic batch command mode for the AcpiExec utility (execute 3801any AML debugger command) (Valery Podrezov). 3802 3803---------------------------------------- 380412 September 2006. Summary of changes for version 20060912: 3805 38061) ACPI CA Core Subsystem: 3807 3808Enhanced the implementation of the "serialized mode" of the interpreter 3809(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 3810specified, instead of creating a serialization semaphore per control method, 3811the interpreter lock is simply no longer released before a blocking 3812operation during control method execution. This effectively makes the AML 3813Interpreter single-threaded. The overhead of a semaphore per-method is 3814eliminated. 3815 3816Fixed a regression where an error was no longer emitted if a control method 3817attempts to create 2 objects of the same name. This once again returns 3818AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that 3819will dynamically serialize the control method to possible prevent future 3820errors. (BZ 440) 3821 3822Integrated a fix for a problem with PCI Express HID detection in the PCI 3823Config Space setup procedure. (BZ 7145) 3824 3825Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 3826AcpiHwInitialize function - the FADT registers are now validated when the 3827table is loaded. 3828 3829Added two new warnings during FADT verification - 1) if the FADT is larger 3830than the largest known FADT version, and 2) if there is a mismatch between a 383132-bit block address and the 64-bit X counterpart (when both are non-zero.) 3832 3833Example Code and Data Size: These are the sizes for the OS-independent 3834acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3835debug version of the code includes the debug output trace mechanism and has 3836a much larger code and data size. 3837 3838 Previous Release: 3839 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 3840 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 3841 Current Release: 3842 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3843 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 3844 3845 38462) iASL Compiler/Disassembler and Tools: 3847 3848Fixed a problem with the implementation of the Switch() operator where the 3849temporary variable was declared too close to the actual Switch, instead of 3850at method level. This could cause a problem if the Switch() operator is 3851within a while loop, causing an error on the second iteration. (BZ 460) 3852 3853Disassembler - fix for error emitted for unknown type for target of scope 3854operator. Now, ignore it and continue. 3855 3856Disassembly of an FADT now verifies the input FADT and reports any errors 3857found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 3858 3859Disassembly of raw data buffers with byte initialization data now prefixes 3860each output line with the current buffer offset. 3861 3862Disassembly of ASF! table now includes all variable-length data fields at 3863the end of some of the subtables. 3864 3865The disassembler now emits a comment if a buffer appears to be a 3866ResourceTemplate, but cannot be disassembled as such because the EndTag does 3867not appear at the very end of the buffer. 3868 3869AcpiExec - Added the "-t" command line option to enable the serialized mode 3870of the AML interpreter. 3871 3872---------------------------------------- 387331 August 2006. Summary of changes for version 20060831: 3874 38751) ACPI CA Core Subsystem: 3876 3877Miscellaneous fixes for the Table Manager: 3878- Correctly initialize internal common FADT for all 64-bit "X" fields 3879- Fixed a couple table mapping issues during table load 3880- Fixed a couple alignment issues for IA64 3881- Initialize input array to zero in AcpiInitializeTables 3882- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 3883AcpiGetTableByIndex 3884 3885Change for GPE support: when a "wake" GPE is received, all wake GPEs are now 3886immediately disabled to prevent the waking GPE from firing again and to 3887prevent other wake GPEs from interrupting the wake process. 3888 3889Added the AcpiGpeCount global that tracks the number of processed GPEs, to 3890be used for debugging systems with a large number of ACPI interrupts. 3891 3892Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 3893both the ACPICA headers and the disassembler. 3894 3895Example Code and Data Size: These are the sizes for the OS-independent 3896acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3897debug version of the code includes the debug output trace mechanism and has 3898a much larger code and data size. 3899 3900 Previous Release: 3901 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 3902 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 3903 Current Release: 3904 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 3905 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 3906 3907 39082) iASL Compiler/Disassembler and Tools: 3909 3910Disassembler support for the DMAR ACPI table. 3911 3912---------------------------------------- 391323 August 2006. Summary of changes for version 20060823: 3914 39151) ACPI CA Core Subsystem: 3916 3917The Table Manager component has been completely redesigned and 3918reimplemented. The new design is much simpler, and reduces the overall code 3919and data size of the kernel-resident ACPICA by approximately 5%. Also, it is 3920now possible to obtain the ACPI tables very early during kernel 3921initialization, even before dynamic memory management is initialized. 3922(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 3923 3924Obsolete ACPICA interfaces: 3925 3926- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init 3927time). 3928- AcpiLoadTable: Not needed. 3929- AcpiUnloadTable: Not needed. 3930 3931New ACPICA interfaces: 3932 3933- AcpiInitializeTables: Must be called before the table manager can be used. 3934- AcpiReallocateRootTable: Used to transfer the root table to dynamically 3935allocated memory after it becomes available. 3936- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 3937in the RSDT/XSDT. 3938 3939Other ACPICA changes: 3940 3941- AcpiGetTableHeader returns the actual mapped table header, not a copy. Use 3942AcpiOsUnmapMemory to free this mapping. 3943- AcpiGetTable returns the actual mapped table. The mapping is managed 3944internally and must not be deleted by the caller. Use of this interface 3945causes no additional dynamic memory allocation. 3946- AcpiFindRootPointer: Support for physical addressing has been eliminated, 3947it appeared to be unused. 3948- The interface to AcpiOsMapMemory has changed to be consistent with the 3949other allocation interfaces. 3950- The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary 3951parameters. 3952- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- 3953bit platforms. Was previously 64 bits on all platforms. 3954- The interface to the ACPI Global Lock acquire/release macros have changed 3955slightly since ACPICA no longer keeps a local copy of the FACS with a 3956constructed pointer to the actual global lock. 3957 3958Porting to the new table manager: 3959 3960- AcpiInitializeTables: Must be called once, and can be called anytime 3961during the OS initialization process. It allows the host to specify an area 3962of memory to be used to store the internal version of the RSDT/XSDT (root 3963table). This allows the host to access ACPI tables before memory management 3964is initialized and running. 3965- AcpiReallocateRootTable: Can be called after memory management is running 3966to copy the root table to a dynamically allocated array, freeing up the 3967scratch memory specified in the call to AcpiInitializeTables. 3968- AcpiSubsystemInitialize: This existing interface is independent of the 3969Table Manager, and does not have to be called before the Table Manager can 3970be used, it only must be called before the rest of ACPICA can be used. 3971- ACPI Tables: Some changes have been made to the names and structure of the 3972actbl.h and actbl1.h header files and may require changes to existing code. 3973For example, bitfields have been completely removed because of their lack of 3974portability across C compilers. 3975- Update interfaces to the Global Lock acquire/release macros if local 3976versions are used. (see acwin.h) 3977 3978Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 3979 3980New files: tbfind.c 3981 3982Example Code and Data Size: These are the sizes for the OS-independent 3983acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3984debug version of the code includes the debug output trace mechanism and has 3985a much larger code and data size. 3986 3987 Previous Release: 3988 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 3989 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 3990 Current Release: 3991 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 3992 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 3993 3994 39952) iASL Compiler/Disassembler and Tools: 3996 3997No changes for this release. 3998 3999---------------------------------------- 400021 July 2006. Summary of changes for version 20060721: 4001 40021) ACPI CA Core Subsystem: 4003 4004The full source code for the ASL test suite used to validate the iASL 4005compiler and the ACPICA core subsystem is being released with the ACPICA 4006source for the first time. The source is contained in a separate package and 4007consists of over 1100 files that exercise all ASL/AML operators. The package 4008should appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 4009Suietov) 4010 4011Completed a new design and implementation for support of the ACPI Global 4012Lock. On the OS side, the global lock is now treated as a standard AML 4013mutex. Previously, multiple OS threads could "acquire" the global lock 4014simultaneously. However, this could cause the BIOS to be starved out of the 4015lock - especially in cases such as the Embedded Controller driver where 4016there is a tight coupling between the OS and the BIOS. 4017 4018Implemented an optimization for the ACPI Global Lock interrupt mechanism. 4019The Global Lock interrupt handler no longer queues the execution of a 4020separate thread to signal the global lock semaphore. Instead, the semaphore 4021is signaled directly from the interrupt handler. 4022 4023Implemented support within the AML interpreter for package objects that 4024contain a larger AML length (package list length) than the package element 4025count. In this case, the length of the package is truncated to match the 4026package element count. Some BIOS code apparently modifies the package length 4027on the fly, and this change supports this behavior. Provides compatibility 4028with the MS AML interpreter. (With assistance from Fiodor Suietov) 4029 4030Implemented a temporary fix for the BankValue parameter of a Bank Field to 4031support all constant values, now including the Zero and One opcodes. 4032Evaluation of this parameter must eventually be converted to a full TermArg 4033evaluation. A not-implemented error is now returned (temporarily) for non- 4034constant values for this parameter. 4035 4036Fixed problem reports (Fiodor Suietov) integrated: 4037- Fix for premature object deletion after CopyObject on Operation Region (BZ 4038350) 4039 4040Example Code and Data Size: These are the sizes for the OS-independent 4041acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4042debug version of the code includes the debug output trace mechanism and has 4043a much larger code and data size. 4044 4045 Previous Release: 4046 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 4047 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 4048 Current Release: 4049 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 4050 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 4051 4052 40532) iASL Compiler/Disassembler and Tools: 4054 4055No changes for this release. 4056 4057---------------------------------------- 405807 July 2006. Summary of changes for version 20060707: 4059 40601) ACPI CA Core Subsystem: 4061 4062Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 4063that do not allow the initialization of address pointers within packed 4064structures - even though the hardware itself may support misaligned 4065transfers. Some of the debug data structures are packed by default to 4066minimize size. 4067 4068Added an error message for the case where AcpiOsGetThreadId() returns zero. 4069A non-zero value is required by the core ACPICA code to ensure the proper 4070operation of AML mutexes and recursive control methods. 4071 4072The DSDT is now the only ACPI table that determines whether the AML 4073interpreter is in 32-bit or 64-bit mode. Not really a functional change, but 4074the hooks for per-table 32/64 switching have been removed from the code. A 4075clarification to the ACPI specification is forthcoming in ACPI 3.0B. 4076 4077Fixed a possible leak of an OwnerID in the error path of 4078AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 4079deletion to a single place in AcpiTbUninstallTable to correct possible leaks 4080when using the AcpiTbDeleteTablesByType interface (with assistance from 4081Lance Ortiz.) 4082 4083Fixed a problem with Serialized control methods where the semaphore 4084associated with the method could be over-signaled after multiple method 4085invocations. 4086 4087Fixed two issues with the locking of the internal namespace data structure. 4088Both the Unload() operator and AcpiUnloadTable interface now lock the 4089namespace during the namespace deletion associated with the table unload 4090(with assistance from Linn Crosetto.) 4091 4092Fixed problem reports (Valery Podrezov) integrated: 4093- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 4094 4095Fixed problem reports (Fiodor Suietov) integrated: 4096- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 4097- On Address Space handler deletion, needless deactivation call (BZ 374) 4098- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) 4099- Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone 4100(BZ 376) 4101- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 4102- Minimum Length of RSDT should be validated (BZ 379) 4103- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 4104Handler (BZ (380) 4105- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded 4106(BZ 381) 4107 4108Example Code and Data Size: These are the sizes for the OS-independent 4109acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4110debug version of the code includes the debug output trace mechanism and has 4111a much larger code and data size. 4112 4113 Previous Release: 4114 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 4115 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 4116 Current Release: 4117 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 4118 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 4119 4120 41212) iASL Compiler/Disassembler and Tools: 4122 4123Fixed problem reports: 4124Compiler segfault when ASL contains a long (>1024) String declaration (BZ 4125436) 4126 4127---------------------------------------- 412823 June 2006. Summary of changes for version 20060623: 4129 41301) ACPI CA Core Subsystem: 4131 4132Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 4133allows the type to be customized to the host OS for improved efficiency 4134(since a spinlock is usually a very small object.) 4135 4136Implemented support for "ignored" bits in the ACPI registers. According to 4137the ACPI specification, these bits should be preserved when writing the 4138registers via a read/modify/write cycle. There are 3 bits preserved in this 4139manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 4140 4141Implemented the initial deployment of new OSL mutex interfaces. Since some 4142host operating systems have separate mutex and semaphore objects, this 4143feature was requested. The base code now uses mutexes (and the new mutex 4144interfaces) wherever a binary semaphore was used previously. However, for 4145the current release, the mutex interfaces are defined as macros to map them 4146to the existing semaphore interfaces. Therefore, no OSL changes are required 4147at this time. (See acpiosxf.h) 4148 4149Fixed several problems with the support for the control method SyncLevel 4150parameter. The SyncLevel now works according to the ACPI specification and 4151in concert with the Mutex SyncLevel parameter, since the current SyncLevel 4152is a property of the executing thread. Mutual exclusion for control methods 4153is now implemented with a mutex instead of a semaphore. 4154 4155Fixed three instances of the use of the C shift operator in the bitfield 4156support code (exfldio.c) to avoid the use of a shift value larger than the 4157target data width. The behavior of C compilers is undefined in this case and 4158can cause unpredictable results, and therefore the case must be detected and 4159avoided. (Fiodor Suietov) 4160 4161Added an info message whenever an SSDT or OEM table is loaded dynamically 4162via the Load() or LoadTable() ASL operators. This should improve debugging 4163capability since it will show exactly what tables have been loaded (beyond 4164the tables present in the RSDT/XSDT.) 4165 4166Example Code and Data Size: These are the sizes for the OS-independent 4167acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4168debug version of the code includes the debug output trace mechanism and has 4169a much larger code and data size. 4170 4171 Previous Release: 4172 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 4173 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 4174 Current Release: 4175 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 4176 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 4177 4178 41792) iASL Compiler/Disassembler and Tools: 4180 4181No changes for this release. 4182 4183---------------------------------------- 418408 June 2006. Summary of changes for version 20060608: 4185 41861) ACPI CA Core Subsystem: 4187 4188Converted the locking mutex used for the ACPI hardware to a spinlock. This 4189change should eliminate all problems caused by attempting to acquire a 4190semaphore at interrupt level, and it means that all ACPICA external 4191interfaces that directly access the ACPI hardware can be safely called from 4192interrupt level. OSL code that implements the semaphore interfaces should be 4193able to eliminate any workarounds for being called at interrupt level. 4194 4195Fixed a regression introduced in 20060526 where the ACPI device 4196initialization could be prematurely aborted with an AE_NOT_FOUND if a device 4197did not have an optional _INI method. 4198 4199Fixed an IndexField issue where a write to the Data Register should be 4200limited in size to the AccessSize (width) of the IndexField itself. (BZ 433, 4201Fiodor Suietov) 4202 4203Fixed problem reports (Valery Podrezov) integrated: 4204- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 4205 4206Fixed problem reports (Fiodor Suietov) integrated: 4207- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 4208 4209Removed four global mutexes that were obsolete and were no longer being 4210used. 4211 4212Example Code and Data Size: These are the sizes for the OS-independent 4213acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4214debug version of the code includes the debug output trace mechanism and has 4215a much larger code and data size. 4216 4217 Previous Release: 4218 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 4219 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 4220 Current Release: 4221 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 4222 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 4223 4224 42252) iASL Compiler/Disassembler and Tools: 4226 4227Fixed a fault when using -g option (get tables from registry) on Windows 4228machines. 4229 4230Fixed problem reports integrated: 4231- Generate error if CreateField NumBits parameter is zero. (BZ 405) 4232- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 4233Suietov) 4234- Global table revision override (-r) is ignored (BZ 413) 4235 4236---------------------------------------- 423726 May 2006. Summary of changes for version 20060526: 4238 42391) ACPI CA Core Subsystem: 4240 4241Restructured, flattened, and simplified the internal interfaces for 4242namespace object evaluation - resulting in smaller code, less CPU stack use, 4243and fewer interfaces. (With assistance from Mikhail Kouzmich) 4244 4245Fixed a problem with the CopyObject operator where the first parameter was 4246not typed correctly for the parser, interpreter, compiler, and disassembler. 4247Caused various errors and unexpected behavior. 4248 4249Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 4250produced incorrect results with some C compilers. Since the behavior of C 4251compilers when the shift value is larger than the datatype width is 4252apparently not well defined, the interpreter now detects this condition and 4253simply returns zero as expected in all such cases. (BZ 395) 4254 4255Fixed problem reports (Valery Podrezov) integrated: 4256- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 4257- Allow interpreter to handle nested method declarations (BZ 5361) 4258 4259Fixed problem reports (Fiodor Suietov) integrated: 4260- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) 4261- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356) 4262- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 4263- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 4264- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 4265- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 4266- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 4267- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 4268- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365) 4269- Status of the Global Initialization Handler call not used (BZ 366) 4270- Incorrect object parameter to Global Initialization Handler (BZ 367) 4271 4272Example Code and Data Size: These are the sizes for the OS-independent 4273acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4274debug version of the code includes the debug output trace mechanism and has 4275a much larger code and data size. 4276 4277 Previous Release: 4278 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 4279 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 4280 Current Release: 4281 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 4282 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 4283 4284 42852) iASL Compiler/Disassembler and Tools: 4286 4287Modified the parser to allow the names IO, DMA, and IRQ to be used as 4288namespace identifiers with no collision with existing resource descriptor 4289macro names. This provides compatibility with other ASL compilers and is 4290most useful for disassembly/recompilation of existing tables without parse 4291errors. (With assistance from Thomas Renninger) 4292 4293Disassembler: fixed an incorrect disassembly problem with the 4294DataTableRegion and CopyObject operators. Fixed a possible fault during 4295disassembly of some Alias operators. 4296 4297---------------------------------------- 429812 May 2006. Summary of changes for version 20060512: 4299 43001) ACPI CA Core Subsystem: 4301 4302Replaced the AcpiOsQueueForExecution interface with a new interface named 4303AcpiOsExecute. The major difference is that the new interface does not have 4304a Priority parameter, this appeared to be useless and has been replaced by a 4305Type parameter. The Type tells the host what type of execution is being 4306requested, such as global lock handler, notify handler, GPE handler, etc. 4307This allows the host to queue and execute the request as appropriate for the 4308request type, possibly using different work queues and different priorities 4309for the various request types. This enables fixes for multithreading 4310deadlock problems such as BZ #5534, and will require changes to all existing 4311OS interface layers. (Alexey Starikovskiy and Bob Moore) 4312 4313Fixed a possible memory leak associated with the support for the so-called 4314"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 4315Suietov) 4316 4317Fixed a problem with the Load() operator where a table load from an 4318operation region could overwrite an internal table buffer by up to 7 bytes 4319and cause alignment faults on IPF systems. (With assistance from Luming Yu) 4320 4321Example Code and Data Size: These are the sizes for the OS-independent 4322acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4323debug version of the code includes the debug output trace mechanism and has 4324a much larger code and data size. 4325 4326 Previous Release: 4327 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 4328 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 4329 Current Release: 4330 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 4331 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 4332 4333 4334 43352) iASL Compiler/Disassembler and Tools: 4336 4337Disassembler: Implemented support to cross reference the internal namespace 4338and automatically generate ASL External() statements for symbols not defined 4339within the current table being disassembled. This will simplify the 4340disassembly and recompilation of interdependent tables such as SSDTs since 4341these statements will no longer have to be added manually. 4342 4343Disassembler: Implemented experimental support to automatically detect 4344invocations of external control methods and generate appropriate External() 4345statements. This is problematic because the AML cannot be correctly parsed 4346until the number of arguments for each control method is known. Currently, 4347standalone method invocations and invocations as the source operand of a 4348Store() statement are supported. 4349 4350Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 4351LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 4352LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 4353more readable and likely closer to the original ASL source. 4354 4355---------------------------------------- 435621 April 2006. Summary of changes for version 20060421: 4357 43581) ACPI CA Core Subsystem: 4359 4360Removed a device initialization optimization introduced in 20051216 where 4361the _STA method was not run unless an _INI was also present for the same 4362device. This optimization could cause problems because it could allow _INI 4363methods to be run within a not-present device subtree. (If a not-present 4364device had no _INI, _STA would not be run, the not-present status would not 4365be discovered, and the children of the device would be incorrectly 4366traversed.) 4367 4368Implemented a new _STA optimization where namespace subtrees that do not 4369contain _INI are identified and ignored during device initialization. 4370Selectively running _STA can significantly improve boot time on large 4371machines (with assistance from Len Brown.) 4372 4373Implemented support for the device initialization case where the returned 4374_STA flags indicate a device not-present but functioning. In this case, _INI 4375is not run, but the device children are examined for presence, as per the 4376ACPI specification. 4377 4378Implemented an additional change to the IndexField support in order to 4379conform to MS behavior. The value written to the Index Register is not 4380simply a byte offset, it is a byte offset in units of the access width of 4381the parent Index Field. (Fiodor Suietov) 4382 4383Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 4384interface is called during the creation of all AML operation regions, and 4385allows the host OS to exert control over what addresses it will allow the 4386AML code to access. Operation Regions whose addresses are disallowed will 4387cause a runtime exception when they are actually accessed (will not affect 4388or abort table loading.) See oswinxf or osunixxf for an example 4389implementation. 4390 4391Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 4392interface allows the host OS to match the various "optional" 4393interface/behavior strings for the _OSI predefined control method as 4394appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 4395for an example implementation. 4396 4397Restructured and corrected various problems in the exception handling code 4398paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 4399(with assistance from Takayoshi Kochi.) 4400 4401Modified the Linux source converter to ignore quoted string literals while 4402converting identifiers from mixed to lower case. This will correct problems 4403with the disassembler and other areas where such strings must not be 4404modified. 4405 4406The ACPI_FUNCTION_* macros no longer require quotes around the function 4407name. This allows the Linux source converter to convert the names, now that 4408the converter ignores quoted strings. 4409 4410Example Code and Data Size: These are the sizes for the OS-independent 4411acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4412debug version of the code includes the debug output trace mechanism and has 4413a much larger code and data size. 4414 4415 Previous Release: 4416 4417 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 4418 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 4419 Current Release: 4420 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 4421 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 4422 4423 44242) iASL Compiler/Disassembler and Tools: 4425 4426Implemented 3 new warnings for iASL, and implemented multiple warning levels 4427(w2 flag). 4428 44291) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not 4430WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 4431check for the possible timeout, a warning is issued. 4432 44332) Useless operators: If an ASL operator does not specify an optional target 4434operand and it also does not use the function return value from the 4435operator, a warning is issued since the operator effectively does nothing. 4436 44373) Unreferenced objects: If a namespace object is created, but never 4438referenced, a warning is issued. This is a warning level 2 since there are 4439cases where this is ok, such as when a secondary table is loaded that uses 4440the unreferenced objects. Even so, care is taken to only flag objects that 4441don't look like they will ever be used. For example, the reserved methods 4442(starting with an underscore) are usually not referenced because it is 4443expected that the OS will invoke them. 4444 4445---------------------------------------- 444631 March 2006. Summary of changes for version 20060331: 4447 44481) ACPI CA Core Subsystem: 4449 4450Implemented header file support for the following additional ACPI tables: 4451ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, 4452all current and known ACPI tables are now defined in the ACPICA headers and 4453are available for use by device drivers and other software. 4454 4455Implemented support to allow tables that contain ACPI names with invalid 4456characters to be loaded. Previously, this would cause the table load to 4457fail, but since there are several known cases of such tables on existing 4458machines, this change was made to enable ACPI support for them. Also, this 4459matches the behavior of the Microsoft ACPI implementation. 4460 4461Fixed a couple regressions introduced during the memory optimization in the 446220060317 release. The namespace node definition required additional 4463reorganization and an internal datatype that had been changed to 8-bit was 4464restored to 32-bit. (Valery Podrezov) 4465 4466Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 4467could be passed through to AcpiOsReleaseObject which is unexpected. Such 4468null pointers are now trapped and ignored, matching the behavior of the 4469previous implementation before the deployment of AcpiOsReleaseObject. 4470(Valery Podrezov, Fiodor Suietov) 4471 4472Fixed a memory mapping leak during the deletion of a SystemMemory operation 4473region where a cached memory mapping was not deleted. This became a 4474noticeable problem for operation regions that are defined within frequently 4475used control methods. (Dana Meyers) 4476 4477Reorganized the ACPI table header files into two main files: one for the 4478ACPI tables consumed by the ACPICA core, and another for the miscellaneous 4479ACPI tables that are consumed by the drivers and other software. The various 4480FADT definitions were merged into one common section and three different 4481tables (ACPI 1.0, 1.0+, and 2.0) 4482 4483Example Code and Data Size: These are the sizes for the OS-independent 4484acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4485debug version of the code includes the debug output trace mechanism and has 4486a much larger code and data size. 4487 4488 Previous Release: 4489 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 4490 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 4491 Current Release: 4492 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 4493 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 4494 4495 44962) iASL Compiler/Disassembler and Tools: 4497 4498Disassembler: Implemented support to decode and format all non-AML ACPI 4499tables (tables other than DSDTs and SSDTs.) This includes the new tables 4500added to the ACPICA headers, therefore all current and known ACPI tables are 4501supported. 4502 4503Disassembler: The change to allow ACPI names with invalid characters also 4504enables the disassembly of such tables. Invalid characters within names are 4505changed to '*' to make the name printable; the iASL compiler will still 4506generate an error for such names, however, since this is an invalid ACPI 4507character. 4508 4509Implemented an option for AcpiXtract (-a) to extract all tables found in the 4510input file. The default invocation extracts only the DSDTs and SSDTs. 4511 4512Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 4513makefile for the AcpiXtract utility. 4514 4515---------------------------------------- 451617 March 2006. Summary of changes for version 20060317: 4517 45181) ACPI CA Core Subsystem: 4519 4520Implemented the use of a cache object for all internal namespace nodes. 4521Since there are about 1000 static nodes in a typical system, this will 4522decrease memory use for cache implementations that minimize per-allocation 4523overhead (such as a slab allocator.) 4524 4525Removed the reference count mechanism for internal namespace nodes, since it 4526was deemed unnecessary. This reduces the size of each namespace node by 4527about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 4528and 32 bytes for the 64-bit case. 4529 4530Optimized several internal data structures to reduce object size on 64-bit 4531platforms by packing data within the 64-bit alignment. This includes the 4532frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 4533instances corresponding to the namespace objects. 4534 4535Added two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 4536and "Windows 2006". 4537 4538Split the allocation tracking mechanism out to a separate file, from 4539utalloc.c to uttrack.c. This mechanism appears to be only useful for 4540application-level code. Kernels may wish to not include uttrack.c in 4541distributions. 4542 4543Removed all remnants of the obsolete ACPI_REPORT_* macros and the associated 4544code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 4545macros.) 4546 4547Code and Data Size: These are the sizes for the acpica.lib produced by the 4548Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4549driver or OSPM code. The debug version of the code includes the debug output 4550trace mechanism and has a much larger code and data size. Note that these 4551values will vary depending on the efficiency of the compiler and the 4552compiler options used during generation. 4553 4554 Previous Release: 4555 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4556 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 4557 Current Release: 4558 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 4559 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 4560 4561 45622) iASL Compiler/Disassembler and Tools: 4563 4564Implemented an ANSI C version of the acpixtract utility. This version will 4565automatically extract the DSDT and all SSDTs from the input acpidump text 4566file and dump the binary output to separate files. It can also display a 4567summary of the input file including the headers for each table found and 4568will extract any single ACPI table, with any signature. (See 4569source/tools/acpixtract) 4570 4571---------------------------------------- 457210 March 2006. Summary of changes for version 20060310: 4573 45741) ACPI CA Core Subsystem: 4575 4576Tagged all external interfaces to the subsystem with the new 4577ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 4578kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 4579macro. The default definition is NULL. 4580 4581Added the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 4582This allows the host to define this as necessary to simplify kernel 4583integration. The default definition is ACPI_NATIVE_UINT. 4584 4585Fixed two interpreter problems related to error processing, the deletion of 4586objects, and placing invalid pointers onto the internal operator result 4587stack. BZ 6028, 6151 (Valery Podrezov) 4588 4589Increased the reference count threshold where a warning is emitted for large 4590reference counts in order to eliminate unnecessary warnings on systems with 4591large namespaces (especially 64-bit.) Increased the value from 0x400 to 45920x800. 4593 4594Due to universal disagreement as to the meaning of the 'c' in the calloc() 4595function, the ACPI_MEM_CALLOCATE macro has been renamed to 4596ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 4597ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 4598ACPI_FREE. 4599 4600Code and Data Size: These are the sizes for the acpica.lib produced by the 4601Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4602driver or OSPM code. The debug version of the code includes the debug output 4603trace mechanism and has a much larger code and data size. Note that these 4604values will vary depending on the efficiency of the compiler and the 4605compiler options used during generation. 4606 4607 Previous Release: 4608 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 4609 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 4610 Current Release: 4611 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4612 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 4613 4614 46152) iASL Compiler/Disassembler: 4616 4617Disassembler: implemented support for symbolic resource descriptor 4618references. If a CreateXxxxField operator references a fixed offset within a 4619resource descriptor, a name is assigned to the descriptor and the offset is 4620translated to the appropriate resource tag and pathname. The addition of 4621this support brings the disassembled code very close to the original ASL 4622source code and helps eliminate run-time errors when the disassembled code 4623is modified (and recompiled) in such a way as to invalidate the original 4624fixed offsets. 4625 4626Implemented support for a Descriptor Name as the last parameter to the ASL 4627Register() macro. This parameter was inadvertently left out of the ACPI 4628specification, and will be added for ACPI 3.0b. 4629 4630Fixed a problem where the use of the "_OSI" string (versus the full path 4631"\_OSI") caused an internal compiler error. ("No back ptr to op") 4632 4633Fixed a problem with the error message that occurs when an invalid string is 4634used for a _HID object (such as one with an embedded asterisk: "*PNP010A".) 4635The correct message is now displayed. 4636 4637---------------------------------------- 463817 February 2006. Summary of changes for version 20060217: 4639 46401) ACPI CA Core Subsystem: 4641 4642Implemented a change to the IndexField support to match the behavior of the 4643Microsoft AML interpreter. The value written to the Index register is now a 4644byte offset, no longer an index based upon the width of the Data register. 4645This should fix IndexField problems seen on some machines where the Data 4646register is not exactly one byte wide. The ACPI specification will be 4647clarified on this point. 4648 4649Fixed a problem where several resource descriptor types could overrun the 4650internal descriptor buffer due to size miscalculation: VendorShort, 4651VendorLong, and Interrupt. This was noticed on IA64 machines, but could 4652affect all platforms. 4653 4654Fixed a problem where individual resource descriptors were misaligned within 4655the internal buffer, causing alignment faults on IA64 platforms. 4656 4657Code and Data Size: These are the sizes for the acpica.lib produced by the 4658Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4659driver or OSPM code. The debug version of the code includes the debug output 4660trace mechanism and has a much larger code and data size. Note that these 4661values will vary depending on the efficiency of the compiler and the 4662compiler options used during generation. 4663 4664 Previous Release: 4665 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4666 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 4667 Current Release: 4668 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 4669 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 4670 4671 46722) iASL Compiler/Disassembler: 4673 4674Implemented support for new reserved names: _WDG and _WED are Microsoft 4675extensions for Windows Instrumentation Management, _TDL is a new ACPI- 4676defined method (Throttling Depth Limit.) 4677 4678Fixed a problem where a zero-length VendorShort or VendorLong resource 4679descriptor was incorrectly emitted as a descriptor of length one. 4680 4681---------------------------------------- 468210 February 2006. Summary of changes for version 20060210: 4683 46841) ACPI CA Core Subsystem: 4685 4686Removed a couple of extraneous ACPI_ERROR messages that appeared during 4687normal execution. These became apparent after the conversion from 4688ACPI_DEBUG_PRINT. 4689 4690Fixed a problem where the CreateField operator could hang if the BitIndex or 4691NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 4692 4693Fixed a problem where a DeRefOf operation on a buffer object incorrectly 4694failed with an exception. This also fixes a couple of related RefOf and 4695DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 4696 4697Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead of 4698AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ 46995480) 4700 4701Implemented a memory cleanup at the end of the execution of each iteration 4702of an AML While() loop, preventing the accumulation of outstanding objects. 4703(Valery Podrezov, BZ 5427) 4704 4705Eliminated a chunk of duplicate code in the object resolution code. (Valery 4706Podrezov, BZ 5336) 4707 4708Fixed several warnings during the 64-bit code generation. 4709 4710The AcpiSrc source code conversion tool now inserts one line of whitespace 4711after an if() statement that is followed immediately by a comment, improving 4712readability of the Linux code. 4713 4714Code and Data Size: The current and previous library sizes for the core 4715subsystem are shown below. These are the code and data sizes for the 4716acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4717values do not include any ACPI driver or OSPM code. The debug version of the 4718code includes the debug output trace mechanism and has a much larger code 4719and data size. Note that these values will vary depending on the efficiency 4720of the compiler and the compiler options used during generation. 4721 4722 Previous Release: 4723 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 4724 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 4725 Current Release: 4726 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4727 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 4728 4729 47302) iASL Compiler/Disassembler: 4731 4732Fixed a problem with the disassembly of a BankField operator with a complex 4733expression for the BankValue parameter. 4734 4735---------------------------------------- 473627 January 2006. Summary of changes for version 20060127: 4737 47381) ACPI CA Core Subsystem: 4739 4740Implemented support in the Resource Manager to allow unresolved namestring 4741references within resource package objects for the _PRT method. This support 4742is in addition to the previously implemented unresolved reference support 4743within the AML parser. If the interpreter slack mode is enabled, these 4744unresolved references will be passed through to the caller as a NULL package 4745entry. 4746 4747Implemented and deployed new macros and functions for error and warning 4748messages across the subsystem. These macros are simpler and generate less 4749code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 4750ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 4751macros remain defined to allow ACPI drivers time to migrate to the new 4752macros. 4753 4754Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 4755Acquire/Release Lock OSL interfaces. 4756 4757Fixed a problem where Alias ASL operators are sometimes not correctly 4758resolved, in both the interpreter and the iASL compiler. 4759 4760Fixed several problems with the implementation of the ConcatenateResTemplate 4761ASL operator. As per the ACPI specification, zero length buffers are now 4762treated as a single EndTag. One-length buffers always cause a fatal 4763exception. Non-zero length buffers that do not end with a full 2-byte EndTag 4764cause a fatal exception. 4765 4766Fixed a possible structure overwrite in the AcpiGetObjectInfo external 4767interface. (With assistance from Thomas Renninger) 4768 4769Code and Data Size: The current and previous library sizes for the core 4770subsystem are shown below. These are the code and data sizes for the 4771acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4772values do not include any ACPI driver or OSPM code. The debug version of the 4773code includes the debug output trace mechanism and has a much larger code 4774and data size. Note that these values will vary depending on the efficiency 4775of the compiler and the compiler options used during generation. 4776 4777 Previous Release: 4778 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 4779 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 4780 Current Release: 4781 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 4782 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 4783 4784 47852) iASL Compiler/Disassembler: 4786 4787Fixed an internal error that was generated for any forward references to ASL 4788Alias objects. 4789 4790---------------------------------------- 479113 January 2006. Summary of changes for version 20060113: 4792 47931) ACPI CA Core Subsystem: 4794 4795Added 2006 copyright to all module headers and signons. This affects 4796virtually every file in the ACPICA core subsystem, iASL compiler, and the 4797utilities. 4798 4799Enhanced the ACPICA error reporting in order to simplify user migration to 4800the non-debug version of ACPICA. Replaced all instances of the 4801ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 4802levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 4803respectively. This preserves all error and warning messages in the non-debug 4804version of the ACPICA code (this has been referred to as the "debug lite" 4805option.) Over 200 cases were converted to create a total of over 380 4806error/warning messages across the ACPICA code. This increases the code and 4807data size of the default non-debug version of the code somewhat (about 13K), 4808but all error/warning reporting may be disabled if desired (and code 4809eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 4810configuration option. The size of the debug version of ACPICA remains about 4811the same. 4812 4813Fixed a memory leak within the AML Debugger "Set" command. One object was 4814not properly deleted for every successful invocation of the command. 4815 4816Code and Data Size: The current and previous library sizes for the core 4817subsystem are shown below. These are the code and data sizes for the 4818acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4819values do not include any ACPI driver or OSPM code. The debug version of the 4820code includes the debug output trace mechanism and has a much larger code 4821and data size. Note that these values will vary depending on the efficiency 4822of the compiler and the compiler options used during generation. 4823 4824 Previous Release: 4825 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 4826 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 4827 Current Release: 4828 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 4829 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 4830 4831 48322) iASL Compiler/Disassembler: 4833 4834The compiler now officially supports the ACPI 3.0a specification that was 4835released on December 30, 2005. (Specification is available at www.acpi.info) 4836 4837---------------------------------------- 483816 December 2005. Summary of changes for version 20051216: 4839 48401) ACPI CA Core Subsystem: 4841 4842Implemented optional support to allow unresolved names within ASL Package 4843objects. A null object is inserted in the package when a named reference 4844cannot be located in the current namespace. Enabled via the interpreter 4845slack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 4846that contain such code. 4847 4848Implemented an optimization to the initialization sequence that can improve 4849boot time. During ACPI device initialization, the _STA method is now run if 4850and only if the _INI method exists. The _STA method is used to determine if 4851the device is present; An _INI can only be run if _STA returns present, but 4852it is a waste of time to run the _STA method if the _INI does not exist. 4853(Prototype and assistance from Dong Wei) 4854 4855Implemented use of the C99 uintptr_t for the pointer casting macros if it is 4856available in the current compiler. Otherwise, the default (void *) cast is 4857used as before. 4858 4859Fixed some possible memory leaks found within the execution path of the 4860Break, Continue, If, and CreateField operators. (Valery Podrezov) 4861 4862Fixed a problem introduced in the 20051202 release where an exception is 4863generated during method execution if a control method attempts to declare 4864another method. 4865 4866Moved resource descriptor string constants that are used by both the AML 4867disassembler and AML debugger to the common utilities directory so that 4868these components are independent. 4869 4870Implemented support in the AcpiExec utility (-e switch) to globally ignore 4871exceptions during control method execution (method is not aborted.) 4872 4873Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 4874generation. 4875 4876Code and Data Size: The current and previous library sizes for the core 4877subsystem are shown below. These are the code and data sizes for the 4878acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4879values do not include any ACPI driver or OSPM code. The debug version of the 4880code includes the debug output trace mechanism and has a much larger code 4881and data size. Note that these values will vary depending on the efficiency 4882of the compiler and the compiler options used during generation. 4883 4884 Previous Release: 4885 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4886 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 4887 Current Release: 4888 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 4889 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 4890 4891 48922) iASL Compiler/Disassembler: 4893 4894Fixed a problem where a CPU stack overflow fault could occur if a recursive 4895method call was made from within a Return statement. 4896 4897---------------------------------------- 489802 December 2005. Summary of changes for version 20051202: 4899 49001) ACPI CA Core Subsystem: 4901 4902Modified the parsing of control methods to no longer create namespace 4903objects during the first pass of the parse. Objects are now created only 4904during the execute phase, at the moment the namespace creation operator is 4905encountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 4906should eliminate ALREADY_EXISTS exceptions seen on some machines where 4907reentrant control methods are protected by an AML mutex. The mutex will now 4908correctly block multiple threads from attempting to create the same object 4909more than once. 4910 4911Increased the number of available Owner Ids for namespace object tracking 4912from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on 4913some machines with a large number of ACPI tables (either static or dynamic). 4914 4915Fixed a problem with the AcpiExec utility where a fault could occur when the 4916-b switch (batch mode) is used. 4917 4918Enhanced the namespace dump routine to output the owner ID for each 4919namespace object. 4920 4921Code and Data Size: The current and previous library sizes for the core 4922subsystem are shown below. These are the code and data sizes for the 4923acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4924values do not include any ACPI driver or OSPM code. The debug version of the 4925code includes the debug output trace mechanism and has a much larger code 4926and data size. Note that these values will vary depending on the efficiency 4927of the compiler and the compiler options used during generation. 4928 4929 Previous Release: 4930 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4931 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4932 Current Release: 4933 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4934 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 4935 4936 49372) iASL Compiler/Disassembler: 4938 4939Fixed a parse error during compilation of certain Switch/Case constructs. To 4940simplify the parse, the grammar now allows for multiple Default statements 4941and this error is now detected and flagged during the analysis phase. 4942 4943Disassembler: The disassembly now includes the contents of the original 4944table header within a comment at the start of the file. This includes the 4945name and version of the original ASL compiler. 4946 4947---------------------------------------- 494817 November 2005. Summary of changes for version 20051117: 4949 49501) ACPI CA Core Subsystem: 4951 4952Fixed a problem in the AML parser where the method thread count could be 4953decremented below zero if any errors occurred during the method parse phase. 4954This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines. 4955This also fixed a related regression with the mechanism that detects and 4956corrects methods that cannot properly handle reentrancy (related to the 4957deployment of the new OwnerId mechanism.) 4958 4959Eliminated the pre-parsing of control methods (to detect errors) during 4960table load. Related to the problem above, this was causing unwind issues if 4961any errors occurred during the parse, and it seemed to be overkill. A table 4962load should not be aborted if there are problems with any single control 4963method, thus rendering this feature rather pointless. 4964 4965Fixed a problem with the new table-driven resource manager where an internal 4966buffer overflow could occur for small resource templates. 4967 4968Implemented a new external interface, AcpiGetVendorResource. This interface 4969will find and return a vendor-defined resource descriptor within a _CRS or 4970_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas. 4971 4972Removed the length limit (200) on string objects as per the upcoming ACPI 49733.0A specification. This affects the following areas of the interpreter: 1) 4974any implicit conversion of a Buffer to a String, 2) a String object result 4975of the ASL Concatentate operator, 3) the String object result of the ASL 4976ToString operator. 4977 4978Fixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER 4979on a semaphore object would incorrectly timeout. This allows the 4980multithreading features of the AcpiExec utility to work properly under 4981Windows. 4982 4983Updated the Linux makefiles for the iASL compiler and AcpiExec to include 4984the recently added file named "utresrc.c". 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: 76.2K Code, 12.3K Data, 88.5K Total 4996 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4997 Current Release: 4998 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4999 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 5000 5001 50022) iASL Compiler/Disassembler: 5003 5004Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 5005specification. For the iASL compiler, this means that string literals within 5006the source ASL can be of any length. 5007 5008Enhanced the listing output to dump the AML code for resource descriptors 5009immediately after the ASL code for each descriptor, instead of in a block at 5010the end of the entire resource template. 5011 5012Enhanced the compiler debug output to dump the entire original parse tree 5013constructed during the parse phase, before any transforms are applied to the 5014tree. The transformed tree is dumped also. 5015 5016---------------------------------------- 501702 November 2005. Summary of changes for version 20051102: 5018 50191) ACPI CA Core Subsystem: 5020 5021Modified the subsystem initialization sequence to improve GPE support. The 5022GPE initialization has been split into two parts in order to defer execution 5023of the _PRW methods (Power Resources for Wake) until after the hardware is 5024fully initialized and the SCI handler is installed. This allows the _PRW 5025methods to access fields protected by the Global Lock. This will fix systems 5026where a NO_GLOBAL_LOCK exception has been seen during initialization. 5027 5028Converted the ACPI internal object disassemble and display code within the 5029AML debugger to fully table-driven operation, reducing code size and 5030increasing maintainability. 5031 5032Fixed a regression with the ConcatenateResTemplate() ASL operator introduced 5033in the 20051021 release. 5034 5035Implemented support for "local" internal ACPI object types within the 5036debugger "Object" command and the AcpiWalkNamespace external interfaces. 5037These local types include RegionFields, BankFields, IndexFields, Alias, and 5038reference objects. 5039 5040Moved common AML resource handling code into a new file, "utresrc.c". This 5041code is shared by both the Resource Manager and the AML Debugger. 5042 5043Code and Data Size: The current and previous library sizes for the core 5044subsystem are shown below. These are the code and data sizes for the 5045acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 5046values do not include any ACPI driver or OSPM code. The debug version of the 5047code includes the debug output trace mechanism and has a much larger code 5048and data size. Note that these values will vary depending on the efficiency 5049of the compiler and the compiler options used during generation. 5050 5051 Previous Release: 5052 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 5053 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 5054 Current Release: 5055 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 5056 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 5057 5058 50592) iASL Compiler/Disassembler: 5060 5061Fixed a problem with very large initializer lists (more than 4000 elements) 5062for both Buffer and Package objects where the parse stack could overflow. 5063 5064Enhanced the pre-compile source code scan for non-ASCII characters to ignore 5065characters within comment fields. The scan is now always performed and is no 5066longer optional, detecting invalid characters within a source file 5067immediately rather than during the parse phase or later. 5068 5069Enhanced the ASL grammar definition to force early reductions on all list- 5070style grammar elements so that the overall parse stack usage is greatly 5071reduced. This should improve performance and reduce the possibility of parse 5072stack overflow. 5073 5074Eliminated all reduce/reduce conflicts in the iASL parser generation. Also, 5075with the addition of a %expected statement, the compiler generates from 5076source with no warnings. 5077 5078Fixed a possible segment fault in the disassembler if the input filename 5079does not contain a "dot" extension (Thomas Renninger). 5080 5081---------------------------------------- 508221 October 2005. Summary of changes for version 20051021: 5083 50841) ACPI CA Core Subsystem: 5085 5086Implemented support for the EM64T and other x86-64 processors. This 5087essentially entails recognizing that these processors support non-aligned 5088memory transfers. Previously, all 64-bit processors were assumed to lack 5089hardware support for non-aligned transfers. 5090 5091Completed conversion of the Resource Manager to nearly full table-driven 5092operation. Specifically, the resource conversion code (convert AML to 5093internal format and the reverse) and the debug code to dump internal 5094resource descriptors are fully table-driven, reducing code and data size and 5095improving maintainability. 5096 5097The OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 5098on 64-bit processors instead of a fixed 32-bit word. (With assistance from 5099Alexey Starikovskiy) 5100 5101Implemented support within the resource conversion code for the Type- 5102Specific byte within the various ACPI 3.0 *WordSpace macros. 5103 5104Fixed some issues within the resource conversion code for the type-specific 5105flags for both Memory and I/O address resource descriptors. For Memory, 5106implemented support for the MTP and TTP flags. For I/O, split the TRS and 5107TTP flags into two separate fields. 5108 5109Code and Data Size: The current and previous library sizes for the core 5110subsystem are shown below. These are the code and data sizes for the 5111acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 5112values do not include any ACPI driver or OSPM code. The debug version of the 5113code includes the debug output trace mechanism and has a much larger code 5114and data size. Note that these values will vary depending on the efficiency 5115of the compiler and the compiler options used during generation. 5116 5117 Previous Release: 5118 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 5119 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 5120 Current Release: 5121 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 5122 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 5123 5124 5125 51262) iASL Compiler/Disassembler: 5127 5128Relaxed a compiler restriction that disallowed a ResourceIndex byte if the 5129corresponding ResourceSource string was not also present in a resource 5130descriptor declaration. This restriction caused problems with existing 5131AML/ASL code that includes the Index byte without the string. When such AML 5132was disassembled, it could not be compiled without modification. Further, 5133the modified code created a resource template with a different size than the 5134original, breaking code that used fixed offsets into the resource template 5135buffer. 5136 5137Removed a recent feature of the disassembler to ignore a lone ResourceIndex 5138byte. This byte is now emitted if present so that the exact AML can be 5139reproduced when the disassembled code is recompiled. 5140 5141Improved comments and text alignment for the resource descriptor code 5142emitted by the disassembler. 5143 5144Implemented disassembler support for the ACPI 3.0 AccessSize field within a 5145Register() resource descriptor. 5146 5147---------------------------------------- 514830 September 2005. Summary of changes for version 20050930: 5149 51501) ACPI CA Core Subsystem: 5151 5152Completed a major overhaul of the Resource Manager code - specifically, 5153optimizations in the area of the AML/internal resource conversion code. The 5154code has been optimized to simplify and eliminate duplicated code, CPU stack 5155use has been decreased by optimizing function parameters and local 5156variables, and naming conventions across the manager have been standardized 5157for clarity and ease of maintenance (this includes function, parameter, 5158variable, and struct/typedef names.) The update may force changes in some 5159driver code, depending on how resources are handled by the host OS. 5160 5161All Resource Manager dispatch and information tables have been moved to a 5162single location for clarity and ease of maintenance. One new file was 5163created, named "rsinfo.c". 5164 5165The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 5166guarantee that the argument is not evaluated twice, making them less prone 5167to macro side-effects. However, since there exists the possibility of 5168additional stack use if a particular compiler cannot optimize them (such as 5169in the debug generation case), the original macros are optionally available. 5170Note that some invocations of the return_VALUE macro may now cause size 5171mismatch warnings; the return_UINT8 and return_UINT32 macros are provided to 5172eliminate these. (From Randy Dunlap) 5173 5174Implemented a new mechanism to enable debug tracing for individual control 5175methods. A new external interface, AcpiDebugTrace, is provided to enable 5176this mechanism. The intent is to allow the host OS to easily enable and 5177disable tracing for problematic control methods. This interface can be 5178easily exposed to a user or debugger interface if desired. See the file 5179psxface.c for details. 5180 5181AcpiUtCallocate will now return a valid pointer if a length of zero is 5182specified - a length of one is used and a warning is issued. This matches 5183the behavior of AcpiUtAllocate. 5184 5185Code and Data Size: The current and previous library sizes for the core 5186subsystem are shown below. These are the code and data sizes for the 5187acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 5188values do not include any ACPI driver or OSPM code. The debug version of the 5189code includes the debug output trace mechanism and has a much larger code 5190and data size. Note that these values will vary depending on the efficiency 5191of the compiler and the compiler options used during generation. 5192 5193 Previous Release: 5194 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 5195 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 5196 Current Release: 5197 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 5198 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 5199 5200 52012) iASL Compiler/Disassembler: 5202 5203A remark is issued if the effective compile-time length of a package or 5204buffer is zero. Previously, this was a warning. 5205 5206---------------------------------------- 520716 September 2005. Summary of changes for version 20050916: 5208 52091) ACPI CA Core Subsystem: 5210 5211Fixed a problem within the Resource Manager where support for the Generic 5212Register descriptor was not fully implemented. This descriptor is now fully 5213recognized, parsed, disassembled, and displayed. 5214 5215Completely restructured the Resource Manager code to utilize table-driven 5216dispatch and lookup, eliminating many of the large switch() statements. This 5217reduces overall subsystem code size and code complexity. Affects the 5218resource parsing and construction, disassembly, and debug dump output. 5219 5220Cleaned up and restructured the debug dump output for all resource 5221descriptors. Improved readability of the output and reduced code size. 5222 5223Fixed a problem where changes to internal data structures caused the 5224optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 5225 5226Code and Data Size: The current and previous library sizes for the core 5227subsystem are shown below. These are the code and data sizes for the 5228acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 5229values do not include any ACPI driver or OSPM code. The debug version of the 5230code includes the debug output trace mechanism and has a much larger code 5231and data size. Note that these values will vary depending on the efficiency 5232of the compiler and the compiler options used during generation. 5233 5234 Previous Release: 5235 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 5236 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 5237 Current Release: 5238 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 5239 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 5240 5241 52422) iASL Compiler/Disassembler: 5243 5244Updated the disassembler to automatically insert an EndDependentFn() macro 5245into the ASL stream if this macro is missing in the original AML code, 5246simplifying compilation of the resulting ASL module. 5247 5248Fixed a problem in the disassembler where a disassembled ResourceSource 5249string (within a large resource descriptor) was not surrounded by quotes and 5250not followed by a comma, causing errors when the resulting ASL module was 5251compiled. Also, escape sequences within a ResourceSource string are now 5252handled correctly (especially "\\") 5253 5254---------------------------------------- 525502 September 2005. Summary of changes for version 20050902: 5256 52571) ACPI CA Core Subsystem: 5258 5259Fixed a problem with the internal Owner ID allocation and deallocation 5260mechanisms for control method execution and recursive method invocation. 5261This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 5262messages seen on some systems. Recursive method invocation depth is 5263currently limited to 255. (Alexey Starikovskiy) 5264 5265Completely eliminated all vestiges of support for the "module-level 5266executable code" until this support is fully implemented and debugged. This 5267should eliminate the NO_RETURN_VALUE exceptions seen during table load on 5268some systems that invoke this support. 5269 5270Fixed a problem within the resource manager code where the transaction flags 5271for a 64-bit address descriptor were handled incorrectly in the type- 5272specific flag byte. 5273 5274Consolidated duplicate code within the address descriptor resource manager 5275code, reducing overall subsystem code size. 5276 5277Fixed a fault when using the AML debugger "disassemble" command to 5278disassemble individual control methods. 5279 5280Removed references to the "release_current" directory within the Unix 5281release package. 5282 5283Code and Data Size: The current and previous core subsystem library sizes 5284are shown below. These are the code and data sizes for the acpica.lib 5285produced by the Microsoft Visual C++ 6.0 compiler. These values do not 5286include any ACPI driver or OSPM code. The debug version of the code includes 5287the debug output trace mechanism and has a much larger code and data size. 5288Note that these values will vary depending on the efficiency of the compiler 5289and the compiler options used during generation. 5290 5291 Previous Release: 5292 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5293 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 5294 Current Release: 5295 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 5296 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 5297 5298 52992) iASL Compiler/Disassembler: 5300 5301Implemented an error check for illegal duplicate values in the interrupt and 5302dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 5303Interrupt(). 5304 5305Implemented error checking for the Irq() and IrqNoFlags() macros to detect 5306too many values in the interrupt list (16 max) and invalid values in the 5307list (range 0 - 15) 5308 5309The maximum length string literal within an ASL file is now restricted to 5310200 characters as per the ACPI specification. 5311 5312Fixed a fault when using the -ln option (generate namespace listing). 5313 5314Implemented an error check to determine if a DescriptorName within a 5315resource descriptor has already been used within the current scope. 5316 5317---------------------------------------- 531815 August 2005. Summary of changes for version 20050815: 5319 53201) ACPI CA Core Subsystem: 5321 5322Implemented a full bytewise compare to determine if a table load request is 5323attempting to load a duplicate table. The compare is performed if the table 5324signatures and table lengths match. This will allow different tables with 5325the same OEM Table ID and revision to be loaded - probably against the ACPI 5326specification, but discovered in the field nonetheless. 5327 5328Added the changes.txt logfile to each of the zipped release packages. 5329 5330Code and Data Size: Current and previous core subsystem library sizes are 5331shown below. These are the code and data sizes for the acpica.lib produced 5332by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5333any ACPI driver or OSPM code. The debug version of the code includes the 5334debug output trace mechanism and has a much larger code and data size. Note 5335that these values will vary depending on the efficiency of the compiler and 5336the compiler options used during generation. 5337 5338 Previous Release: 5339 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5340 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 5341 Current Release: 5342 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5343 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 5344 5345 53462) iASL Compiler/Disassembler: 5347 5348Fixed a problem where incorrect AML code could be generated for Package 5349objects if optimization is disabled (via the -oa switch). 5350 5351Fixed a problem with where incorrect AML code is generated for variable- 5352length packages when the package length is not specified and the number of 5353initializer values is greater than 255. 5354 5355 5356---------------------------------------- 535729 July 2005. Summary of changes for version 20050729: 5358 53591) ACPI CA Core Subsystem: 5360 5361Implemented support to ignore an attempt to install/load a particular ACPI 5362table more than once. Apparently there exists BIOS code that repeatedly 5363attempts to load the same SSDT upon certain events. With assistance from 5364Venkatesh Pallipadi. 5365 5366Restructured the main interface to the AML parser in order to correctly 5367handle all exceptional conditions. This will prevent leakage of the OwnerId 5368resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some 5369machines. With assistance from Alexey Starikovskiy. 5370 5371Support for "module level code" has been disabled in this version due to a 5372number of issues that have appeared on various machines. The support can be 5373enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 5374compilation. When the issues are fully resolved, the code will be enabled by 5375default again. 5376 5377Modified the internal functions for debug print support to define the 5378FunctionName parameter as a (const char *) for compatibility with compiler 5379built-in macros such as __FUNCTION__, etc. 5380 5381Linted the entire ACPICA source tree for both 32-bit and 64-bit. 5382 5383Implemented support to display an object count summary for the AML Debugger 5384commands Object and Methods. 5385 5386Code and Data Size: Current and previous core subsystem library sizes are 5387shown below. These are the code and data sizes for the acpica.lib produced 5388by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5389any ACPI driver or OSPM code. The debug version of the code includes the 5390debug output trace mechanism and has a much larger code and data size. Note 5391that these values will vary depending on the efficiency of the compiler and 5392the compiler options used during generation. 5393 5394 Previous Release: 5395 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 5396 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 5397 Current Release: 5398 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5399 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 5400 5401 54022) iASL Compiler/Disassembler: 5403 5404Fixed a regression that appeared in the 20050708 version of the compiler 5405where an error message was inadvertently emitted for invocations of the _OSI 5406reserved control method. 5407 5408---------------------------------------- 540908 July 2005. Summary of changes for version 20050708: 5410 54111) ACPI CA Core Subsystem: 5412 5413The use of the CPU stack in the debug version of the subsystem has been 5414considerably reduced. Previously, a debug structure was declared in every 5415function that used the debug macros. This structure has been removed in 5416favor of declaring the individual elements as parameters to the debug 5417functions. This reduces the cumulative stack use during nested execution of 5418ACPI function calls at the cost of a small increase in the code size of the 5419debug version of the subsystem. With assistance from Alexey Starikovskiy and 5420Len Brown. 5421 5422Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 5423headers to define a macro that will return the current function name at 5424runtime (such as __FUNCTION__ or _func_, etc.) The function name is used by 5425the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 5426compiler-dependent header, the function name is saved on the CPU stack (one 5427pointer per function.) This mechanism is used because apparently there 5428exists no standard ANSI-C defined macro that that returns the function name. 5429 5430Redesigned and reimplemented the "Owner ID" mechanism used to track 5431namespace objects created/deleted by ACPI tables and control method 5432execution. A bitmap is now used to allocate and free the IDs, thus solving 5433the wraparound problem present in the previous implementation. The size of 5434the namespace node descriptor was reduced by 2 bytes as a result (Alexey 5435Starikovskiy). 5436 5437Removed the UINT32_BIT and UINT16_BIT types that were used for the bitfield 5438flag definitions within the headers for the predefined ACPI tables. These 5439have been replaced by UINT8_BIT in order to increase the code portability of 5440the subsystem. If the use of UINT8 remains a problem, we may be forced to 5441eliminate bitfields entirely because of a lack of portability. 5442 5443Enhanced the performance of the AcpiUtUpdateObjectReference procedure. This 5444is a frequently used function and this improvement increases the performance 5445of the entire subsystem (Alexey Starikovskiy). 5446 5447Fixed several possible memory leaks and the inverse - premature object 5448deletion (Alexey Starikovskiy). 5449 5450Code and Data Size: Current and previous core subsystem library sizes are 5451shown below. These are the code and data sizes for the acpica.lib produced 5452by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5453any ACPI driver or OSPM code. The debug version of the code includes the 5454debug output trace mechanism and has a much larger code and data size. Note 5455that these values will vary depending on the efficiency of the compiler and 5456the compiler options used during generation. 5457 5458 Previous Release: 5459 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 5460 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 5461 Current Release: 5462 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 5463 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 5464 5465---------------------------------------- 546624 June 2005. Summary of changes for version 20050624: 5467 54681) ACPI CA Core Subsystem: 5469 5470Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 5471the host-defined cache object. This allows the OSL implementation to define 5472and type this object in any manner desired, simplifying the OSL 5473implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 5474Linux, and should be defined in the OS-specific header file for other 5475operating systems as required. 5476 5477Changed the interface to AcpiOsAcquireObject to directly return the 5478requested object as the function return (instead of ACPI_STATUS.) This 5479change was made for performance reasons, since this is the purpose of the 5480interface in the first place. AcpiOsAcquireObject is now similar to the 5481AcpiOsAllocate interface. 5482 5483Implemented a new AML debugger command named Businfo. This command displays 5484information about all devices that have an associate _PRT object. The _ADR, 5485_HID, _UID, and _CID are displayed for these devices. 5486 5487Modified the initialization sequence in AcpiInitializeSubsystem to call the 5488OSL interface AcpiOslInitialize first, before any local initialization. This 5489change was required because the global initialization now calls OSL 5490interfaces. 5491 5492Enhanced the Dump command to display the entire contents of Package objects 5493(including all sub-objects and their values.) 5494 5495Restructured the code base to split some files because of size and/or 5496because the code logically belonged in a separate file. New files are listed 5497below. All makefiles and project files included in the ACPI CA release have 5498been updated. 5499 utilities/utcache.c /* Local cache interfaces */ 5500 utilities/utmutex.c /* Local mutex support */ 5501 utilities/utstate.c /* State object support */ 5502 interpreter/parser/psloop.c /* Main AML parse loop */ 5503 5504Code and Data Size: Current and previous core subsystem library sizes are 5505shown below. These are the code and data sizes for the acpica.lib produced 5506by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5507any ACPI driver or OSPM code. The debug version of the code includes the 5508debug output trace mechanism and has a much larger code and data size. Note 5509that these values will vary depending on the efficiency of the compiler and 5510the compiler options used during generation. 5511 5512 Previous Release: 5513 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 5514 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 5515 Current Release: 5516 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 5517 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 5518 5519 55202) iASL Compiler/Disassembler: 5521 5522Fixed a regression introduced in version 20050513 where the use of a Package 5523object within a Case() statement caused a compile time exception. The 5524original behavior has been restored (a Match() operator is emitted.) 5525 5526---------------------------------------- 552717 June 2005. Summary of changes for version 20050617: 5528 55291) ACPI CA Core Subsystem: 5530 5531Moved the object cache operations into the OS interface layer (OSL) to allow 5532the host OS to handle these operations if desired (for example, the Linux 5533OSL will invoke the slab allocator). This support is optional; the compile 5534time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 5535code in the ACPI CA core. The new OSL interfaces are shown below. See 5536utalloc.c for an example implementation, and acpiosxf.h for the exact 5537interface definitions. With assistance from Alexey Starikovskiy. 5538 AcpiOsCreateCache 5539 AcpiOsDeleteCache 5540 AcpiOsPurgeCache 5541 AcpiOsAcquireObject 5542 AcpiOsReleaseObject 5543 5544Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return 5545and restore a flags parameter. This fits better with many OS lock models. 5546Note: the current execution state (interrupt handler or not) is no longer 5547passed to these interfaces. If necessary, the OSL must determine this state 5548by itself, a simple and fast operation. With assistance from Alexey 5549Starikovskiy. 5550 5551Fixed a problem in the ACPI table handling where a valid XSDT was assumed 5552present if the revision of the RSDP was 2 or greater. According to the ACPI 5553specification, the XSDT is optional in all cases, and the table manager 5554therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 5555Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 5556only the RSDT. 5557 5558Fixed an interpreter problem with the Mid() operator in the case of an input 5559string where the resulting output string is of zero length. It now correctly 5560returns a valid, null terminated string object instead of a string object 5561with a null pointer. 5562 5563Fixed a problem with the control method argument handling to allow a store 5564to an Arg object that already contains an object of type Device. The Device 5565object is now correctly overwritten. Previously, an error was returned. 5566 5567 5568Enhanced the debugger Find command to emit object values in addition to the 5569found object pathnames. The output format is the same as the dump namespace 5570command. 5571 5572Enhanced the debugger Set command. It now has the ability to set the value 5573of any Named integer object in the namespace (Previously, only method locals 5574and args could be set.) 5575 5576Code and Data Size: Current and previous core subsystem library sizes are 5577shown below. These are the code and data sizes for the acpica.lib produced 5578by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5579any ACPI driver or OSPM code. The debug version of the code includes the 5580debug output trace mechanism and has a much larger code and data size. Note 5581that these values will vary depending on the efficiency of the compiler and 5582the compiler options used during generation. 5583 5584 Previous Release: 5585 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 5586 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 5587 Current Release: 5588 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 5589 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 5590 5591 55922) iASL Compiler/Disassembler: 5593 5594Fixed a regression in the disassembler where if/else/while constructs were 5595output incorrectly. This problem was introduced in the previous release 5596(20050526). This problem also affected the single-step disassembly in the 5597debugger. 5598 5599Fixed a problem where compiling the reserved _OSI method would randomly (but 5600rarely) produce compile errors. 5601 5602Enhanced the disassembler to emit compilable code in the face of incorrect 5603AML resource descriptors. If the optional ResourceSourceIndex is present, 5604but the ResourceSource is not, do not emit the ResourceSourceIndex in the 5605disassembly. Otherwise, the resulting code cannot be compiled without 5606errors. 5607 5608---------------------------------------- 560926 May 2005. Summary of changes for version 20050526: 5610 56111) ACPI CA Core Subsystem: 5612 5613Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 5614the module level (not within a control method.) These opcodes are executed 5615exactly once at the time the table is loaded. This type of code was legal up 5616until the release of ACPI 2.0B (2002) and is now supported within ACPI CA in 5617order to provide backwards compatibility with earlier BIOS implementations. 5618This eliminates the "Encountered executable code at module level" warning 5619that was previously generated upon detection of such code. 5620 5621Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 5622inadvertently be generated during the lookup of namespace objects in the 5623second pass parse of ACPI tables and control methods. It appears that this 5624problem could occur during the resolution of forward references to namespace 5625objects. 5626 5627Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 5628corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 5629allows the deadlock detection debug code to be compiled out in the normal 5630case, improving mutex performance (and overall subsystem performance) 5631considerably. 5632 5633Implemented a handful of miscellaneous fixes for possible memory leaks on 5634error conditions and error handling control paths. These fixes were 5635suggested by FreeBSD and the Coverity Prevent source code analysis tool. 5636 5637Added a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 5638to prevent a fault in this error case. 5639 5640Code and Data Size: Current and previous core subsystem library sizes are 5641shown below. These are the code and data sizes for the acpica.lib produced 5642by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5643any ACPI driver or OSPM code. The debug version of the code includes the 5644debug output trace mechanism and has a much larger code and data size. Note 5645that these values will vary depending on the efficiency of the compiler and 5646the compiler options used during generation. 5647 5648 Previous Release: 5649 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5650 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5651 Current Release: 5652 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 5653 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 5654 5655 56562) iASL Compiler/Disassembler: 5657 5658Implemented support to allow Type 1 and Type 2 ASL operators to appear at 5659the module level (not within a control method.) These operators will be 5660executed once at the time the table is loaded. This type of code was legal 5661up until the release of ACPI 2.0B (2002) and is now supported by the iASL 5662compiler in order to provide backwards compatibility with earlier BIOS ASL 5663code. 5664 5665The ACPI integer width (specified via the table revision ID or the -r 5666override, 32 or 64 bits) is now used internally during compile-time constant 5667folding to ensure that constants are truncated to 32 bits if necessary. 5668Previously, the revision ID value was only emitted in the AML table header. 5669 5670An error message is now generated for the Mutex and Method operators if the 5671SyncLevel parameter is outside the legal range of 0 through 15. 5672 5673Fixed a problem with the Method operator ParameterTypes list handling (ACPI 56743.0). Previously, more than 2 types or 2 arguments generated a syntax error. 5675The actual underlying implementation of method argument typechecking is 5676still under development, however. 5677 5678---------------------------------------- 567913 May 2005. Summary of changes for version 20050513: 5680 56811) ACPI CA Core Subsystem: 5682 5683Implemented support for PCI Express root bridges -- added support for device 5684PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 5685 5686The interpreter now automatically truncates incoming 64-bit constants to 32 5687bits if currently executing out of a 32-bit ACPI table (Revision < 2). This 5688also affects the iASL compiler constant folding. (Note: as per below, the 5689iASL compiler no longer allows 64-bit constants within 32-bit tables.) 5690 5691Fixed a problem where string and buffer objects with "static" pointers 5692(pointers to initialization data within an ACPI table) were not handled 5693consistently. The internal object copy operation now always copies the data 5694to a newly allocated buffer, regardless of whether the source object is 5695static or not. 5696 5697Fixed a problem with the FromBCD operator where an implicit result 5698conversion was improperly performed while storing the result to the target 5699operand. Since this is an "explicit conversion" operator, the implicit 5700conversion should never be performed on the output. 5701 5702Fixed a problem with the CopyObject operator where a copy to an existing 5703named object did not always completely overwrite the existing object stored 5704at name. Specifically, a buffer-to-buffer copy did not delete the existing 5705buffer. 5706 5707Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 5708structs for consistency. 5709 5710Code and Data Size: Current and previous core subsystem library sizes are 5711shown below. These are the code and data sizes for the acpica.lib produced 5712by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5713any ACPI driver or OSPM code. The debug version of the code includes the 5714debug output trace mechanism and has a much larger code and data size. Note 5715that these values will vary depending on the efficiency of the compiler and 5716the compiler options used during generation. 5717 5718 Previous Release: 5719 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5720 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5721 Current Release: (Same sizes) 5722 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5723 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5724 5725 57262) iASL Compiler/Disassembler: 5727 5728The compiler now emits a warning if an attempt is made to generate a 64-bit 5729integer constant from within a 32-bit ACPI table (Revision < 2). The integer 5730is truncated to 32 bits. 5731 5732Fixed a problem with large package objects: if the static length of the 5733package is greater than 255, the "variable length package" opcode is 5734emitted. Previously, this caused an error. This requires an update to the 5735ACPI spec, since it currently (incorrectly) states that packages larger than 5736255 elements are not allowed. 5737 5738The disassembler now correctly handles variable length packages and packages 5739larger than 255 elements. 5740 5741---------------------------------------- 574208 April 2005. Summary of changes for version 20050408: 5743 57441) ACPI CA Core Subsystem: 5745 5746Fixed three cases in the interpreter where an "index" argument to an ASL 5747function was still (internally) 32 bits instead of the required 64 bits. 5748This was the Index argument to the Index, Mid, and Match operators. 5749 5750The "strupr" function is now permanently local (AcpiUtStrupr), since this is 5751not a POSIX-defined function and not present in most kernel-level C 5752libraries. All references to the C library strupr function have been removed 5753from the headers. 5754 5755Completed the deployment of static functions/prototypes. All prototypes with 5756the static attribute have been moved from the headers to the owning C file. 5757 5758Implemented an extract option (-e) for the AcpiBin utility (AML binary 5759utility). This option allows the utility to extract individual ACPI tables 5760from the output of AcpiDmp. It provides the same functionality of the 5761acpixtract.pl perl script without the worry of setting the correct perl 5762options. AcpiBin runs on Windows and has not yet been generated/validated in 5763the Linux/Unix environment (but should be soon). 5764 5765Updated and fixed the table dump option for AcpiBin (-d). This option 5766converts a single ACPI table to a hex/ascii file, similar to the output of 5767AcpiDmp. 5768 5769Code and Data Size: Current and previous core subsystem library sizes are 5770shown below. These are the code and data sizes for the acpica.lib produced 5771by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5772any ACPI driver or OSPM code. The debug version of the code includes the 5773debug output trace mechanism and has a much larger code and data size. Note 5774that these values will vary depending on the efficiency of the compiler and 5775the compiler options used during generation. 5776 5777 Previous Release: 5778 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 5779 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 5780 Current Release: 5781 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5782 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5783 5784 57852) iASL Compiler/Disassembler: 5786 5787Disassembler fix: Added a check to ensure that the table length found in the 5788ACPI table header within the input file is not longer than the actual input 5789file size. This indicates some kind of file or table corruption. 5790 5791---------------------------------------- 579229 March 2005. Summary of changes for version 20050329: 5793 57941) ACPI CA Core Subsystem: 5795 5796An error is now generated if an attempt is made to create a Buffer Field of 5797length zero (A CreateField with a length operand of zero.) 5798 5799The interpreter now issues a warning whenever executable code at the module 5800level is detected during ACPI table load. This will give some idea of the 5801prevalence of this type of code. 5802 5803Implemented support for references to named objects (other than control 5804methods) within package objects. 5805 5806Enhanced package object output for the debug object. Package objects are now 5807completely dumped, showing all elements. 5808 5809Enhanced miscellaneous object output for the debug object. Any object can 5810now be written to the debug object (for example, a device object can be 5811written, and the type of the object will be displayed.) 5812 5813The "static" qualifier has been added to all local functions across both the 5814core subsystem and the iASL compiler. 5815 5816The number of "long" lines (> 80 chars) within the source has been 5817significantly reduced, by about 1/3. 5818 5819Cleaned up all header files to ensure that all CA/iASL functions are 5820prototyped (even static functions) and the formatting is consistent. 5821 5822Two new header files have been added, acopcode.h and acnames.h. 5823 5824Removed several obsolete functions that were no longer used. 5825 5826Code and Data Size: Current and previous core subsystem library sizes are 5827shown below. These are the code and data sizes for the acpica.lib produced 5828by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5829any ACPI driver or OSPM code. The debug version of the code includes the 5830debug output trace mechanism and has a much larger code and data size. Note 5831that these values will vary depending on the efficiency of the compiler and 5832the compiler options used during generation. 5833 5834 Previous Release: 5835 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5836 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 5837 Current Release: 5838 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 5839 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 5840 5841 5842 58432) iASL Compiler/Disassembler: 5844 5845Fixed a problem with the resource descriptor generation/support. For the 5846ResourceSourceIndex and the ResourceSource fields, both must be present, or 5847both must be not present - can't have one without the other. 5848 5849The compiler now returns non-zero from the main procedure if any errors have 5850occurred during the compilation. 5851 5852 5853---------------------------------------- 585409 March 2005. Summary of changes for version 20050309: 5855 58561) ACPI CA Core Subsystem: 5857 5858The string-to-buffer implicit conversion code has been modified again after 5859a change to the ACPI specification. In order to match the behavior of the 5860other major ACPI implementation, the target buffer is no longer truncated if 5861the source string is smaller than an existing target buffer. This change 5862requires an update to the ACPI spec, and should eliminate the recent 5863AE_AML_BUFFER_LIMIT issues. 5864 5865The "implicit return" support was rewritten to a new algorithm that solves 5866the general case. Rather than attempt to determine when a method is about to 5867exit, the result of every ASL operator is saved momentarily until the very 5868next ASL operator is executed. Therefore, no matter how the method exits, 5869there will always be a saved implicit return value. This feature is only 5870enabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 5871AE_AML_NO_RETURN_VALUE errors when enabled. 5872 5873Implemented implicit conversion support for the predicate (operand) of the 5874If, Else, and While operators. String and Buffer arguments are automatically 5875converted to Integers. 5876 5877Changed the string-to-integer conversion behavior to match the new ACPI 5878errata: "If no integer object exists, a new integer is created. The ASCII 5879string is interpreted as a hexadecimal constant. Each string character is 5880interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 5881with the first character as the most significant digit, and ending with the 5882first non-hexadecimal character or end-of-string." This means that the first 5883non-hex character terminates the conversion and this is the code that was 5884changed. 5885 5886Fixed a problem where the ObjectType operator would fail (fault) when used 5887on an Index of a Package which pointed to a null package element. The 5888operator now properly returns zero (Uninitialized) in this case. 5889 5890Fixed a problem where the While operator used excessive memory by not 5891properly popping the result stack during execution. There was no memory leak 5892after execution, however. (Code provided by Valery Podrezov.) 5893 5894Fixed a problem where references to control methods within Package objects 5895caused the method to be invoked, instead of producing a reference object 5896pointing to the method. 5897 5898Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 5899improve performance and reduce code size. (Code provided by Alexey 5900Starikovskiy.) 5901 5902Code and Data Size: Current and previous core subsystem library sizes are 5903shown below. These are the code and data sizes for the acpica.lib produced 5904by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5905any ACPI driver or OSPM code. The debug version of the code includes the 5906debug output trace mechanism and has a much larger code and data size. Note 5907that these values will vary depending on the efficiency of the compiler and 5908the compiler options used during generation. 5909 5910 Previous Release: 5911 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5912 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 5913 Current Release: 5914 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5915 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 5916 5917 59182) iASL Compiler/Disassembler: 5919 5920Fixed a problem with the Return operator with no arguments. Since the AML 5921grammar for the byte encoding requires an operand for the Return opcode, the 5922compiler now emits a Return(Zero) for this case. An ACPI specification 5923update has been written for this case. 5924 5925For tables other than the DSDT, namepath optimization is automatically 5926disabled. This is because SSDTs can be loaded anywhere in the namespace, the 5927compiler has no knowledge of where, and thus cannot optimize namepaths. 5928 5929Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 5930inadvertently omitted from the ACPI specification, and will require an 5931update to the spec. 5932 5933The source file scan for ASCII characters is now optional (-a). This change 5934was made because some vendors place non-ascii characters within comments. 5935However, the scan is simply a brute-force byte compare to ensure all 5936characters in the file are in the range 0x00 to 0x7F. 5937 5938Fixed a problem with the CondRefOf operator where the compiler was 5939inappropriately checking for the existence of the target. Since the point of 5940the operator is to check for the existence of the target at run-time, the 5941compiler no longer checks for the target existence. 5942 5943Fixed a problem where errors generated from the internal AML interpreter 5944during constant folding were not handled properly, causing a fault. 5945 5946Fixed a problem with overly aggressive range checking for the Stall 5947operator. The valid range (max 255) is now only checked if the operand is of 5948type Integer. All other operand types cannot be statically checked. 5949 5950Fixed a problem where control method references within the RefOf, DeRefOf, 5951and ObjectType operators were not treated properly. They are now treated as 5952actual references, not method invocations. 5953 5954Fixed and enhanced the "list namespace" option (-ln). This option was broken 5955a number of releases ago. 5956 5957Improved error handling for the Field, IndexField, and BankField operators. 5958The compiler now cleanly reports and recovers from errors in the field 5959component (FieldUnit) list. 5960 5961Fixed a disassembler problem where the optional ResourceDescriptor fields 5962TRS and TTP were not always handled correctly. 5963 5964Disassembler - Comments in output now use "//" instead of "/*" 5965 5966---------------------------------------- 596728 February 2005. Summary of changes for version 20050228: 5968 59691) ACPI CA Core Subsystem: 5970 5971Fixed a problem where the result of an Index() operator (an object 5972reference) must increment the reference count on the target object for the 5973life of the object reference. 5974 5975Implemented AML Interpreter and Debugger support for the new ACPI 3.0 5976Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace 5977resource descriptors. 5978 5979Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 5980Space Descriptor" string, indicating interpreter support for the descriptors 5981above. 5982 5983Implemented header support for the new ACPI 3.0 FADT flag bits. 5984 5985Implemented header support for the new ACPI 3.0 PCI Express bits for the PM1 5986status/enable registers. 5987 5988Updated header support for the MADT processor local Apic struct and MADT 5989platform interrupt source struct for new ACPI 3.0 fields. 5990 5991Implemented header support for the SRAT and SLIT ACPI tables. 5992 5993Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag 5994at runtime. 5995 5996Code and Data Size: Current and previous core subsystem library sizes are 5997shown below. These are the code and data sizes for the acpica.lib produced 5998by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5999any ACPI driver or OSPM code. The debug version of the code includes the 6000debug output trace mechanism and has a much larger code and data size. Note 6001that these values will vary depending on the efficiency of the compiler and 6002the compiler options used during generation. 6003 6004 Previous Release: 6005 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 6006 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 6007 Current Release: 6008 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6009 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 6010 6011 60122) iASL Compiler/Disassembler: 6013 6014Fixed a problem with the internal 64-bit String-to-integer conversion with 6015strings less than two characters long. 6016 6017Fixed a problem with constant folding where the result of the Index() 6018operator can not be considered a constant. This means that Index() cannot be 6019a type3 opcode and this will require an update to the ACPI specification. 6020 6021Disassembler: Implemented support for the TTP, MTP, and TRS resource 6022descriptor fields. These fields were inadvertently ignored and not output in 6023the disassembly of the resource descriptor. 6024 6025 6026 ---------------------------------------- 602711 February 2005. Summary of changes for version 20050211: 6028 60291) ACPI CA Core Subsystem: 6030 6031Implemented ACPI 3.0 support for implicit conversion within the Match() 6032operator. MatchObjects can now be of type integer, buffer, or string instead 6033of just type integer. Package elements are implicitly converted to the type 6034of the MatchObject. This change aligns the behavior of Match() with the 6035behavior of the other logical operators (LLess(), etc.) It also requires an 6036errata change to the ACPI specification as this support was intended for 6037ACPI 3.0, but was inadvertently omitted. 6038 6039Fixed a problem with the internal implicit "to buffer" conversion. Strings 6040that are converted to buffers will cause buffer truncation if the string is 6041smaller than the target buffer. Integers that are converted to buffers will 6042not cause buffer truncation, only zero extension (both as per the ACPI 6043spec.) The problem was introduced when code was added to truncate the 6044buffer, but this should not be performed in all cases, only the string case. 6045 6046Fixed a problem with the Buffer and Package operators where the interpreter 6047would get confused if two such operators were used as operands to an ASL 6048operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 6049stack was not being popped after the execution of these operators, resulting 6050in an AE_NO_RETURN_VALUE exception. 6051 6052Fixed a problem with constructs of the form Store(Index(...),...). The 6053reference object returned from Index was inadvertently resolved to an actual 6054value. This problem was introduced in version 20050114 when the behavior of 6055Store() was modified to restrict the object types that can be used as the 6056source operand (to match the ACPI specification.) 6057 6058Reduced excessive stack use within the AcpiGetObjectInfo procedure. 6059 6060Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 6061 6062Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 6063 6064Code and Data Size: Current and previous core subsystem library sizes are 6065shown below. These are the code and data sizes for the acpica.lib produced 6066by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6067any ACPI driver or OSPM code. The debug version of the code includes the 6068debug output trace mechanism and has a much larger code and data size. Note 6069that these values will vary depending on the efficiency of the compiler and 6070the compiler options used during generation. 6071 6072 Previous Release: 6073 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 6074 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 6075 Current Release: 6076 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 6077 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 6078 6079 60802) iASL Compiler/Disassembler: 6081 6082Fixed a code generation problem in the constant folding optimization code 6083where incorrect code was generated if a constant was reduced to a buffer 6084object (i.e., a reduced type 5 opcode.) 6085 6086Fixed a typechecking problem for the ToBuffer operator. Caused by an 6087incorrect return type in the internal opcode information table. 6088 6089---------------------------------------- 609025 January 2005. Summary of changes for version 20050125: 6091 60921) ACPI CA Core Subsystem: 6093 6094Fixed a recently introduced problem with the Global Lock where the 6095underlying semaphore was not created. This problem was introduced in 6096version 20050114, and caused an AE_AML_NO_OPERAND exception during an 6097Acquire() operation on _GL. 6098 6099The local object cache is now optional, and is disabled by default. Both 6100AcpiExec and the iASL compiler enable the cache because they run in user 6101mode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 6102to enable the local cache. 6103 6104Fixed an issue in the internal function AcpiUtEvaluateObject concerning the 6105optional "implicit return" support where an error was returned if no return 6106object was expected, but one was implicitly returned. AE_OK is now returned 6107in this case and the implicitly returned object is deleted. 6108AcpiUtEvaluateObject is only occasionally used, and only to execute reserved 6109methods such as _STA and _INI where the return type is known up front. 6110 6111Fixed a few issues with the internal convert-to-integer code. It now returns 6112an error if an attempt is made to convert a null string, a string of only 6113blanks/tabs, or a zero-length buffer. This affects both implicit conversion 6114and explicit conversion via the ToInteger() operator. 6115 6116The internal debug code in AcpiUtAcquireMutex has been commented out. It is 6117not needed for normal operation and should increase the performance of the 6118entire subsystem. The code remains in case it is needed for debug purposes 6119again. 6120 6121The AcpiExec source and makefile are included in the Unix/Linux package for 6122the first time. 6123 6124Code and Data Size: Current and previous core subsystem library sizes are 6125shown below. These are the code and data sizes for the acpica.lib produced 6126by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6127any ACPI driver or OSPM code. The debug version of the code includes the 6128debug output trace mechanism and has a much larger code and data size. Note 6129that these values will vary depending on the efficiency of the compiler and 6130the compiler options used during generation. 6131 6132 Previous Release: 6133 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 6134 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 6135 Current Release: 6136 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 6137 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 6138 61392) iASL Compiler/Disassembler: 6140 6141Switch/Case support: A warning is now issued if the type of the Switch value 6142cannot be determined at compile time. For example, Switch(Arg0) will 6143generate the warning, and the type is assumed to be an integer. As per the 6144ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the 6145warning. 6146 6147Switch/Case support: Implemented support for buffer and string objects as 6148the switch value. This is an ACPI 3.0 feature, now that LEqual supports 6149buffers and strings. 6150 6151Switch/Case support: The emitted code for the LEqual() comparisons now uses 6152the switch value as the first operand, not the second. The case value is now 6153the second operand, and this allows the case value to be implicitly 6154converted to the type of the switch value, not the other way around. 6155 6156Switch/Case support: Temporary variables are now emitted immediately within 6157the control method, not at the global level. This means that there are now 615836 temps available per-method, not 36 temps per-module as was the case with 6159the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 6160 6161---------------------------------------- 616214 January 2005. Summary of changes for version 20050114: 6163 6164Added 2005 copyright to all module headers. This affects every module in 6165the core subsystem, iASL compiler, and the utilities. 6166 61671) ACPI CA Core Subsystem: 6168 6169Fixed an issue with the String-to-Buffer conversion code where the string 6170null terminator was not included in the buffer after conversion, but there 6171is existing ASL that assumes the string null terminator is included. This is 6172the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 6173introduced in the previous version when the code was updated to correctly 6174set the converted buffer size as per the ACPI specification. The ACPI spec 6175is ambiguous and will be updated to specify that the null terminator must be 6176included in the converted buffer. This also affects the ToBuffer() ASL 6177operator. 6178 6179Fixed a problem with the Mid() ASL/AML operator where it did not work 6180correctly on Buffer objects. Newly created sub-buffers were not being marked 6181as initialized. 6182 6183 6184Fixed a problem in AcpiTbFindTable where incorrect string compares were 6185performed on the OemId and OemTableId table header fields. These fields are 6186not null terminated, so strncmp is now used instead of strcmp. 6187 6188Implemented a restriction on the Store() ASL/AML operator to align the 6189behavior with the ACPI specification. Previously, any object could be used 6190as the source operand. Now, the only objects that may be used are Integers, 6191Buffers, Strings, Packages, Object References, and DDB Handles. If 6192necessary, the original behavior can be restored by enabling the 6193EnableInterpreterSlack flag. 6194 6195Enhanced the optional "implicit return" support to allow an implicit return 6196value from methods that are invoked externally via the AcpiEvaluateObject 6197interface. This enables implicit returns from the _STA and _INI methods, 6198for example. 6199 6200Changed the Revision() ASL/AML operator to return the current version of the 6201AML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned 6202the supported ACPI version (This is the function of the _REV method). 6203 6204Updated the _REV predefined method to return the currently supported version 6205of ACPI, now 3. 6206 6207Implemented batch mode option for the AcpiExec utility (-b). 6208 6209Code and Data Size: Current and previous core subsystem library sizes are 6210shown below. These are the code and data sizes for the acpica.lib produced 6211by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6212any ACPI driver or OSPM code. The debug version of the code includes the 6213debug output trace mechanism and has a much larger code and data size. Note 6214that these values will vary depending on the efficiency of the compiler and 6215the compiler options used during generation. 6216 6217 Previous Release: 6218 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6219 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 6220 Current Release: 6221 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 6222 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 6223 6224---------------------------------------- 622510 December 2004. Summary of changes for version 20041210: 6226 6227ACPI 3.0 support is nearing completion in both the iASL compiler and the 6228ACPI CA core subsystem. 6229 62301) ACPI CA Core Subsystem: 6231 6232Fixed a problem in the ToDecimalString operator where the resulting string 6233length was incorrectly calculated. The length is now calculated exactly, 6234eliminating incorrect AE_STRING_LIMIT exceptions. 6235 6236Fixed a problem in the ToHexString operator to allow a maximum 200 character 6237string to be produced. 6238 6239Fixed a problem in the internal string-to-buffer and buffer-to-buffer copy 6240routine where the length of the resulting buffer was not truncated to the 6241new size (if the target buffer already existed). 6242 6243Code and Data Size: Current and previous core subsystem library sizes are 6244shown below. These are the code and data sizes for the acpica.lib produced 6245by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6246any ACPI driver or OSPM code. The debug version of the code includes the 6247debug output trace mechanism and has a much larger code and data size. Note 6248that these values will vary depending on the efficiency of the compiler and 6249the compiler options used during generation. 6250 6251 Previous Release: 6252 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6253 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 6254 Current Release: 6255 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6256 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 6257 6258 62592) iASL Compiler/Disassembler: 6260 6261Implemented the new ACPI 3.0 resource template macros - DWordSpace, 6262ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 6263Includes support in the disassembler. 6264 6265Implemented support for the new (ACPI 3.0) parameter to the Register macro, 6266AccessSize. 6267 6268Fixed a problem where the _HE resource name for the Interrupt macro was 6269referencing bit 0 instead of bit 1. 6270 6271Implemented check for maximum 255 interrupts in the Interrupt macro. 6272 6273Fixed a problem with the predefined resource descriptor names where 6274incorrect AML code was generated if the offset within the resource buffer 6275was 0 or 1. The optimizer shortened the AML code to a single byte opcode 6276but did not update the surrounding package lengths. 6277 6278Changes to the Dma macro: All channels within the channel list must be in 6279the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 6280optional (default is BusMaster). 6281 6282Implemented check for maximum 7 data bytes for the VendorShort macro. 6283 6284The ReadWrite parameter is now optional for the Memory32 and similar macros. 6285 6286---------------------------------------- 628703 December 2004. Summary of changes for version 20041203: 6288 62891) ACPI CA Core Subsystem: 6290 6291The low-level field insertion/extraction code (exfldio) has been completely 6292rewritten to eliminate unnecessary complexity, bugs, and boundary 6293conditions. 6294 6295Fixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString 6296operators where the input operand could be inadvertently deleted if no 6297conversion was necessary (e.g., if the input to ToInteger was an Integer 6298object.) 6299 6300Fixed a problem with the ToDecimalString and ToHexString where an incorrect 6301exception code was returned if the resulting string would be > 200 chars. 6302AE_STRING_LIMIT is now returned. 6303 6304Fixed a problem with the Concatenate operator where AE_OK was always 6305returned, even if the operation failed. 6306 6307Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 6308semaphores to be allocated. 6309 6310Code and Data Size: Current and previous core subsystem library sizes are 6311shown below. These are the code and data sizes for the acpica.lib produced 6312by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6313any ACPI driver or OSPM code. The debug version of the code includes the 6314debug output trace mechanism and has a much larger code and data size. Note 6315that these values will vary depending on the efficiency of the compiler and 6316the compiler options used during generation. 6317 6318 Previous Release: 6319 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6320 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6321 Current Release: 6322 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6323 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 6324 6325 63262) iASL Compiler/Disassembler: 6327 6328Fixed typechecking for the ObjectType and SizeOf operators. Problem was 6329recently introduced in 20041119. 6330 6331Fixed a problem with the ToUUID macro where the upper nybble of each buffer 6332byte was inadvertently set to zero. 6333 6334---------------------------------------- 633519 November 2004. Summary of changes for version 20041119: 6336 63371) ACPI CA Core Subsystem: 6338 6339Fixed a problem in the internal ConvertToInteger routine where new integers 6340were not truncated to 32 bits for 32-bit ACPI tables. This routine converts 6341buffers and strings to integers. 6342 6343Implemented support to store a value to an Index() on a String object. This 6344is an ACPI 2.0 feature that had not yet been implemented. 6345 6346Implemented new behavior for storing objects to individual package elements 6347(via the Index() operator). The previous behavior was to invoke the implicit 6348conversion rules if an object was already present at the index. The new 6349behavior is to simply delete any existing object and directly store the new 6350object. Although the ACPI specification seems unclear on this subject, other 6351ACPI implementations behave in this manner. (This is the root of the 6352AE_BAD_HEX_CONSTANT issue.) 6353 6354Modified the RSDP memory scan mechanism to support the extended checksum for 6355ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 6356RSDP signature is found with a valid checksum. 6357 6358Code and Data Size: Current and previous core subsystem library sizes are 6359shown below. These are the code and data sizes for the acpica.lib produced 6360by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6361any ACPI driver or OSPM code. The debug version of the code includes the 6362debug output trace mechanism and has a much larger code and data size. Note 6363that these values will vary depending on the efficiency of the compiler and 6364the compiler options used during generation. 6365 6366 Previous Release: 6367 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6368 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6369 Current Release: 6370 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6371 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6372 6373 63742) iASL Compiler/Disassembler: 6375 6376Fixed a missing semicolon in the aslcompiler.y file. 6377 6378---------------------------------------- 637905 November 2004. Summary of changes for version 20041105: 6380 63811) ACPI CA Core Subsystem: 6382 6383Implemented support for FADT revision 2. This was an interim table (between 6384ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 6385 6386Implemented optional support to allow uninitialized LocalX and ArgX 6387variables in a control method. The variables are initialized to an Integer 6388object with a value of zero. This support is enabled by setting the 6389AcpiGbl_EnableInterpreterSlack flag to TRUE. 6390 6391Implemented support for Integer objects for the SizeOf operator. Either 4 6392or 8 is returned, depending on the current integer size (32-bit or 64-bit, 6393depending on the parent table revision). 6394 6395Fixed a problem in the implementation of the SizeOf and ObjectType operators 6396where the operand was resolved to a value too early, causing incorrect 6397return values for some objects. 6398 6399Fixed some possible memory leaks during exceptional conditions. 6400 6401Code and Data Size: Current and previous core subsystem library sizes are 6402shown below. These are the code and data sizes for the acpica.lib produced 6403by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6404any ACPI driver or OSPM code. The debug version of the code includes the 6405debug output trace mechanism and has a much larger code and data size. Note 6406that these values will vary depending on the efficiency of the compiler and 6407the compiler options used during generation. 6408 6409 Previous Release: 6410 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6411 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 6412 Current Release: 6413 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6414 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6415 6416 64172) iASL Compiler/Disassembler: 6418 6419Implemented support for all ACPI 3.0 reserved names and methods. 6420 6421Implemented all ACPI 3.0 grammar elements in the front-end, including 6422support for semicolons. 6423 6424Implemented the ACPI 3.0 Function() and ToUUID() macros 6425 6426Fixed a problem in the disassembler where a Scope() operator would not be 6427emitted properly if the target of the scope was in another table. 6428 6429---------------------------------------- 643015 October 2004. Summary of changes for version 20041015: 6431 6432Note: ACPI CA is currently undergoing an in-depth and complete formal 6433evaluation to test/verify the following areas. Other suggestions are 6434welcome. This will result in an increase in the frequency of releases and 6435the number of bug fixes in the next few months. 6436 - Functional tests for all ASL/AML operators 6437 - All implicit/explicit type conversions 6438 - Bit fields and operation regions 6439 - 64-bit math support and 32-bit-only "truncated" math support 6440 - Exceptional conditions, both compiler and interpreter 6441 - Dynamic object deletion and memory leaks 6442 - ACPI 3.0 support when implemented 6443 - External interfaces to the ACPI subsystem 6444 6445 64461) ACPI CA Core Subsystem: 6447 6448Fixed two alignment issues on 64-bit platforms - within debug statements in 6449AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address 6450field within the non-aligned ACPI generic address structure. 6451 6452Fixed a problem in the Increment and Decrement operators where incorrect 6453operand resolution could result in the inadvertent modification of the 6454original integer when the integer is passed into another method as an 6455argument and the arg is then incremented/decremented. 6456 6457Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-bit 6458BCD number were truncated during conversion. 6459 6460Fixed a problem in the ToDecimal operator where the length of the resulting 6461string could be set incorrectly too long if the input operand was a Buffer 6462object. 6463 6464Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0) 6465within a buffer would prematurely terminate a compare between buffer 6466objects. 6467 6468Added a check for string overflow (>200 characters as per the ACPI 6469specification) during the Concatenate operator with two string operands. 6470 6471Code and Data Size: Current and previous core subsystem library sizes are 6472shown below. These are the code and data sizes for the acpica.lib produced 6473by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6474any ACPI driver or OSPM code. The debug version of the code includes the 6475debug output trace mechanism and has a much larger code and data size. Note 6476that these values will vary depending on the efficiency of the compiler and 6477the compiler options used during generation. 6478 6479 Previous Release: 6480 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6481 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 6482 Current Release: 6483 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6484 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 6485 6486 6487 64882) iASL Compiler/Disassembler: 6489 6490Allow the use of the ObjectType operator on uninitialized Locals and Args 6491(returns 0 as per the ACPI specification). 6492 6493Fixed a problem where the compiler would fault if there was a syntax error 6494in the FieldName of all of the various CreateXXXField operators. 6495 6496Disallow the use of lower case letters within the EISAID macro, as per the 6497ACPI specification. All EISAID strings must be of the form "UUUNNNN" Where 6498U is an uppercase letter and N is a hex digit. 6499 6500 6501---------------------------------------- 650206 October 2004. Summary of changes for version 20041006: 6503 65041) ACPI CA Core Subsystem: 6505 6506Implemented support for the ACPI 3.0 Timer operator. This ASL function 6507implements a 64-bit timer with 100 nanosecond granularity. 6508 6509Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 6510implement the ACPI 3.0 Timer operator. This allows the host OS to implement 6511the timer with the best clock available. Also, it keeps the core subsystem 6512out of the clock handling business, since the host OS (usually) performs 6513this function. 6514 6515Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 6516functions use a 64-bit address which is part of the packed ACPI Generic 6517Address Structure. Since the structure is non-aligned, the alignment macros 6518are now used to extract the address to a local variable before use. 6519 6520Fixed a problem where the ToInteger operator assumed all input strings were 6521hexadecimal. The operator now handles both decimal strings and hex strings 6522(prefixed with "0x"). 6523 6524Fixed a problem where the string length in the string object created as a 6525result of the internal ConvertToString procedure could be incorrect. This 6526potentially affected all implicit conversions and also the ToDecimalString 6527and ToHexString operators. 6528 6529Fixed two problems in the ToString operator. If the length parameter was 6530zero, an incorrect string object was created and the value of the input 6531length parameter was inadvertently changed from zero to Ones. 6532 6533Fixed a problem where the optional ResourceSource string in the ExtendedIRQ 6534resource macro was ignored. 6535 6536Simplified the interfaces to the internal division functions, reducing code 6537size and complexity. 6538 6539Code and Data Size: Current and previous core subsystem library sizes are 6540shown below. These are the code and data sizes for the acpica.lib produced 6541by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6542any ACPI driver or OSPM code. The debug version of the code includes the 6543debug output trace mechanism and has a much larger code and data size. Note 6544that these values will vary depending on the efficiency of the compiler and 6545the compiler options used during generation. 6546 6547 Previous Release: 6548 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 6549 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 6550 Current Release: 6551 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6552 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 6553 6554 65552) iASL Compiler/Disassembler: 6556 6557Implemented support for the ACPI 3.0 Timer operator. 6558 6559Fixed a problem where the Default() operator was inadvertently ignored in a 6560Switch/Case block. This was a problem in the translation of the Switch 6561statement to If...Else pairs. 6562 6563Added support to allow a standalone Return operator, with no parentheses (or 6564operands). 6565 6566Fixed a problem with code generation for the ElseIf operator where the 6567translated Else...If parse tree was improperly constructed leading to the 6568loss of some code. 6569 6570---------------------------------------- 657122 September 2004. Summary of changes for version 20040922: 6572 65731) ACPI CA Core Subsystem: 6574 6575Fixed a problem with the implementation of the LNot() operator where "Ones" 6576was not returned for the TRUE case. Changed the code to return Ones instead 6577of (!Arg) which was usually 1. This change affects iASL constant folding for 6578this operator also. 6579 6580Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 6581initialized properly -- Now zero the entire buffer in this case where the 6582buffer already exists. 6583 6584Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 6585Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 6586related code considerably. This will require changes/updates to all OS 6587interface layers (OSLs.) 6588 6589Implemented a new external interface, AcpiInstallExceptionHandler, to allow 6590a system exception handler to be installed. This handler is invoked upon any 6591run-time exception that occurs during control method execution. 6592 6593Added support for the DSDT in AcpiTbFindTable. This allows the 6594DataTableRegion() operator to access the local copy of the DSDT. 6595 6596Code and Data Size: Current and previous core subsystem library sizes are 6597shown below. These are the code and data sizes for the acpica.lib produced 6598by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6599any ACPI driver or OSPM code. The debug version of the code includes the 6600debug output trace mechanism and has a much larger code and data size. Note 6601that these values will vary depending on the efficiency of the compiler and 6602the compiler options used during generation. 6603 6604 Previous Release: 6605 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 6606 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 6607 Current Release: 6608 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 6609 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 6610 6611 66122) iASL Compiler/Disassembler: 6613 6614Fixed a problem with constant folding and the LNot operator. LNot was 6615returning 1 in the TRUE case, not Ones as per the ACPI specification. This 6616could result in the generation of an incorrect folded/reduced constant. 6617 6618End-Of-File is now allowed within a "//"-style comment. A parse error no 6619longer occurs if such a comment is at the very end of the input ASL source 6620file. 6621 6622Implemented the "-r" option to override the Revision in the table header. 6623The initial use of this option will be to simplify the evaluation of the AML 6624interpreter by allowing a single ASL source module to be compiled for either 662532-bit or 64-bit integers. 6626 6627 6628---------------------------------------- 662927 August 2004. Summary of changes for version 20040827: 6630 66311) ACPI CA Core Subsystem: 6632 6633- Implemented support for implicit object conversion in the non-numeric 6634logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 6635LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 6636the second operand is implicitly converted on the fly to match the type of 6637the first operand. For example: 6638 6639 LEqual (Source1, Source2) 6640 6641Source1 and Source2 must each evaluate to an integer, a string, or a buffer. 6642The data type of Source1 dictates the required type of Source2. Source2 is 6643implicitly converted if necessary to match the type of Source1. 6644 6645- Updated and corrected the behavior of the string conversion support. The 6646rules concerning conversion of buffers to strings (according to the ACPI 6647specification) are as follows: 6648 6649ToDecimalString - explicit byte-wise conversion of buffer to string of 6650decimal values (0-255) separated by commas. ToHexString - explicit byte-wise 6651conversion of buffer to string of hex values (0-FF) separated by commas. 6652ToString - explicit byte-wise conversion of buffer to string. Byte-by-byte 6653copy with no transform except NULL terminated. Any other implicit buffer-to- 6654string conversion - byte-wise conversion of buffer to string of hex values 6655(0-FF) separated by spaces. 6656 6657- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 6658 6659- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 6660one byte too short in the case of a node in the root scope. This could 6661cause a fault during debug output. 6662 6663- Code and Data Size: Current and previous core subsystem library sizes are 6664shown below. These are the code and data sizes for the acpica.lib produced 6665by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6666any ACPI driver or OSPM code. The debug version of the code includes the 6667debug output trace mechanism and has a much larger code and data size. Note 6668that these values will vary depending on the efficiency of the compiler and 6669the compiler options used during generation. 6670 6671 Previous Release: 6672 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 6673 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 6674 Current Release: 6675 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 6676 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 6677 6678 66792) iASL Compiler/Disassembler: 6680 6681- Fixed a Linux generation error. 6682 6683 6684---------------------------------------- 668516 August 2004. Summary of changes for version 20040816: 6686 66871) ACPI CA Core Subsystem: 6688 6689Designed and implemented support within the AML interpreter for the so- 6690called "implicit return". This support returns the result of the last ASL 6691operation within a control method, in the absence of an explicit Return() 6692operator. A few machines depend on this behavior, even though it is not 6693explicitly supported by the ASL language. It is optional support that can 6694be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 6695 6696Removed support for the PCI_Config address space from the internal low level 6697hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 6698support was not used internally, and would not work correctly anyway because 6699the PCI bus number and segment number were not supported. There are 6700separate interfaces for PCI configuration space access because of the unique 6701interface. 6702 6703Code and Data Size: Current and previous core subsystem library sizes are 6704shown below. These are the code and data sizes for the acpica.lib produced 6705by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6706any ACPI driver or OSPM code. The debug version of the code includes the 6707debug output trace mechanism and has a much larger code and data size. Note 6708that these values will vary depending on the efficiency of the compiler and 6709the compiler options used during generation. 6710 6711 Previous Release: 6712 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6713 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 6714 Current Release: 6715 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 6716 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 6717 6718 67192) iASL Compiler/Disassembler: 6720 6721Fixed a problem where constants in ASL expressions at the root level (not 6722within a control method) could be inadvertently truncated during code 6723generation. This problem was introduced in the 20040715 release. 6724 6725 6726---------------------------------------- 672715 July 2004. Summary of changes for version 20040715: 6728 67291) ACPI CA Core Subsystem: 6730 6731Restructured the internal HW GPE interfaces to pass/track the current state 6732of interrupts (enabled/disabled) in order to avoid possible deadlock and 6733increase flexibility of the interfaces. 6734 6735Implemented a "lexicographical compare" for String and Buffer objects within 6736the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 6737as per further clarification to the ACPI specification. Behavior is similar 6738to C library "strcmp". 6739 6740Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 6741external function. In the 32-bit non-debug case, the stack use has been 6742reduced from 168 bytes to 32 bytes. 6743 6744Deployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack, 6745whose purpose is to allow the AML interpreter to forgive certain bad AML 6746constructs. Default setting is FALSE. 6747 6748Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO 6749support code. If enabled, it allows field access to go beyond the end of a 6750region definition if the field is within the region length rounded up to the 6751next access width boundary (a common coding error.) 6752 6753Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 6754ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, these 6755symbols are lowercased by the latest version of the AcpiSrc tool. 6756 6757The prototypes for the PCI interfaces in acpiosxf.h have been updated to 6758rename "Register" to simply "Reg" to prevent certain compilers from 6759complaining. 6760 6761Code and Data Size: Current and previous core subsystem library sizes are 6762shown below. These are the code and data sizes for the acpica.lib produced 6763by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6764any ACPI driver or OSPM code. The debug version of the code includes the 6765debug output trace mechanism and has a much larger code and data size. Note 6766that these values will vary depending on the efficiency of the compiler and 6767the compiler options used during generation. 6768 6769 Previous Release: 6770 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6771 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 6772 Current Release: 6773 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6774 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 6775 6776 67772) iASL Compiler/Disassembler: 6778 6779Implemented full support for Package objects within the Case() operator. 6780Note: The Break() operator is currently not supported within Case blocks 6781(TermLists) as there is some question about backward compatibility with ACPI 67821.0 interpreters. 6783 6784 6785Fixed a problem where complex terms were not supported properly within the 6786Switch() operator. 6787 6788Eliminated extraneous warning for compiler-emitted reserved names of the 6789form "_T_x". (Used in Switch/Case operators.) 6790 6791Eliminated optimization messages for "_T_x" objects and small constants 6792within the DefinitionBlock operator. 6793 6794 6795---------------------------------------- 679615 June 2004. Summary of changes for version 20040615: 6797 67981) ACPI CA Core Subsystem: 6799 6800Implemented support for Buffer and String objects (as per ACPI 2.0) for the 6801following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 6802LLessEqual. 6803 6804All directory names in the entire source package are lower case, as they 6805were in earlier releases. 6806 6807Implemented "Disassemble" command in the AML debugger that will disassemble 6808a single control method. 6809 6810Code and Data Size: Current and previous core subsystem library sizes are 6811shown below. These are the code and data sizes for the acpica.lib produced 6812by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6813any ACPI driver or OSPM code. The debug version of the code includes the 6814debug output trace mechanism and has a much larger code and data size. Note 6815that these values will vary depending on the efficiency of the compiler and 6816the compiler options used during generation. 6817 6818 Previous Release: 6819 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 6820 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 6821 6822 Current Release: 6823 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6824 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 6825 6826 68272) iASL Compiler/Disassembler: 6828 6829Implemented support for Buffer and String objects (as per ACPI 2.0) for the 6830following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 6831LLessEqual. 6832 6833All directory names in the entire source package are lower case, as they 6834were in earlier releases. 6835 6836Fixed a fault when using the -g or -d<nofilename> options if the FADT was 6837not found. 6838 6839Fixed an issue with the Windows version of the compiler where later versions 6840of Windows place the FADT in the registry under the name "FADT" and not 6841"FACP" as earlier versions did. This applies when using the -g or - 6842d<nofilename> options. The compiler now looks for both strings as 6843necessary. 6844 6845Fixed a problem with compiler namepath optimization where a namepath within 6846the Scope() operator could not be optimized if the namepath was a subpath of 6847the current scope path. 6848 6849---------------------------------------- 685027 May 2004. Summary of changes for version 20040527: 6851 68521) ACPI CA Core Subsystem: 6853 6854Completed a new design and implementation for EBDA (Extended BIOS Data Area) 6855support in the RSDP scan code. The original code improperly scanned for the 6856EBDA by simply scanning from memory location 0 to 0x400. The correct method 6857is to first obtain the EBDA pointer from within the BIOS data area, then 6858scan 1K of memory starting at the EBDA pointer. There appear to be few if 6859any machines that place the RSDP in the EBDA, however. 6860 6861Integrated a fix for a possible fault during evaluation of BufferField 6862arguments. Obsolete code that was causing the problem was removed. 6863 6864Found and fixed a problem in the Field Support Code where data could be 6865corrupted on a bit field read that starts on an aligned boundary but does 6866not end on an aligned boundary. Merged the read/write "datum length" 6867calculation code into a common procedure. 6868 6869Rolled in a couple of changes to the FreeBSD-specific header. 6870 6871 6872Code and Data Size: Current and previous core subsystem library sizes are 6873shown below. These are the code and data sizes for the acpica.lib produced 6874by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6875any ACPI driver or OSPM code. The debug version of the code includes the 6876debug output trace mechanism and has a much larger code and data size. Note 6877that these values will vary depending on the efficiency of the compiler and 6878the compiler options used during generation. 6879 6880 Previous Release: 6881 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6882 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 6883 Current Release: 6884 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 6885 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 6886 6887 68882) iASL Compiler/Disassembler: 6889 6890Fixed a generation warning produced by some overly-verbose compilers for a 689164-bit constant. 6892 6893---------------------------------------- 689414 May 2004. Summary of changes for version 20040514: 6895 68961) ACPI CA Core Subsystem: 6897 6898Fixed a problem where hardware GPE enable bits sometimes not set properly 6899during and after GPE method execution. Result of 04/27 changes. 6900 6901Removed extra "clear all GPEs" when sleeping/waking. 6902 6903Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 6904AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to 6905the new AcpiEv* calls as appropriate. 6906 6907ACPI_OS_NAME was removed from the OS-specific headers. The default name is 6908now "Microsoft Windows NT" for maximum compatibility. However this can be 6909changed by modifying the acconfig.h file. 6910 6911Allow a single invocation of AcpiInstallNotifyHandler for a handler that 6912traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 6913 6914Run _INI methods on ThermalZone objects. This is against the ACPI 6915specification, but there is apparently ASL code in the field that has these 6916_INI methods, and apparently "other" AML interpreters execute them. 6917 6918Performed a full 16/32/64 bit lint that resulted in some small changes. 6919 6920Added a sleep simulation command to the AML debugger to test sleep code. 6921 6922Code and Data Size: Current and previous core subsystem library sizes are 6923shown below. These are the code and data sizes for the acpica.lib produced 6924by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6925any ACPI driver or OSPM code. The debug version of the code includes the 6926debug output trace mechanism and has a much larger code and data size. Note 6927that these values will vary depending on the efficiency of the compiler and 6928the compiler options used during generation. 6929 6930 Previous Release: 6931 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6932 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 6933 Current Release: 6934 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6935 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 6936 6937---------------------------------------- 693827 April 2004. Summary of changes for version 20040427: 6939 69401) ACPI CA Core Subsystem: 6941 6942Completed a major overhaul of the GPE handling within ACPI CA. There are 6943now three types of GPEs: wake-only, runtime-only, and combination wake/run. 6944The only GPEs allowed to be combination wake/run are for button-style 6945devices such as a control-method power button, control-method sleep button, 6946or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are not 6947referenced by any _PRW methods are marked for "runtime" and hardware 6948enabled. Any GPE that is referenced by a _PRW method is marked for "wake" 6949(and disabled at runtime). However, at sleep time, only those GPEs that 6950have been specifically enabled for wake via the AcpiEnableGpe interface will 6951actually be hardware enabled. 6952 6953A new external interface has been added, AcpiSetGpeType(), that is meant to 6954be used by device drivers to force a GPE to a particular type. It will be 6955especially useful for the drivers for the button devices mentioned above. 6956 6957Completed restructuring of the ACPI CA initialization sequence so that 6958default operation region handlers are installed before GPEs are initialized 6959and the _PRW methods are executed. This will prevent errors when the _PRW 6960methods attempt to access system memory or I/O space. 6961 6962GPE enable/disable no longer reads the GPE enable register. We now keep the 6963enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 6964thus no longer depend on the hardware to maintain these bits. 6965 6966Always clear the wake status and fixed/GPE status bits before sleep, even 6967for state S5. 6968 6969Improved the AML debugger output for displaying the GPE blocks and their 6970current status. 6971 6972Added new strings for the _OSI method, of the form "Windows 2001 SPx" where 6973x = 0,1,2,3,4. 6974 6975Fixed a problem where the physical address was incorrectly calculated when 6976the Load() operator was used to directly load from an Operation Region (vs. 6977loading from a Field object.) Also added check for minimum table length for 6978this case. 6979 6980Fix for multiple mutex acquisition. Restore original thread SyncLevel on 6981mutex release. 6982 6983Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 6984consistency with the other fields returned. 6985 6986Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 6987structure for each GPE in the system, so the size of this structure is 6988important. 6989 6990CPU stack requirement reduction: Cleaned up the method execution and object 6991evaluation paths so that now a parameter structure is passed, instead of 6992copying the various method parameters over and over again. 6993 6994In evregion.c: Correctly exit and reenter the interpreter region if and 6995only if dispatching an operation region request to a user-installed handler. 6996Do not exit/reenter when dispatching to a default handler (e.g., default 6997system memory or I/O handlers) 6998 6999 7000Notes for updating drivers for the new GPE support. The following changes 7001must be made to ACPI-related device drivers that are attached to one or more 7002GPEs: (This information will be added to the ACPI CA Programmer Reference.) 7003 70041) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 7005explicitly call AcpiEnableGpe. 70062) There is a new interface called AcpiSetGpeType. This should be called 7007before enabling the GPE. Also, this interface will automatically disable 7008the GPE if it is currently enabled. 70093) AcpiEnableGpe no longer supports a GPE type flag. 7010 7011Specific drivers that must be changed: 70121) EC driver: 7013 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 7014AeGpeHandler, NULL); 7015 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 7016 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 7017 70182) Button Drivers (Power, Lid, Sleep): 7019Run _PRW method under parent device 7020If _PRW exists: /* This is a control-method button */ 7021 Extract GPE number and possibly GpeDevice 7022 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 7023 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 7024 7025For all other devices that have _PRWs, we automatically set the GPE type to 7026ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This 7027must be done on a selective basis, usually requiring some kind of user app 7028to allow the user to pick the wake devices. 7029 7030 7031Code and Data Size: Current and previous core subsystem library sizes are 7032shown below. These are the code and data sizes for the acpica.lib produced 7033by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7034any ACPI driver or OSPM code. The debug version of the code includes the 7035debug output trace mechanism and has a much larger code and data size. Note 7036that these values will vary depending on the efficiency of the compiler and 7037the compiler options used during generation. 7038 7039 Previous Release: 7040 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 7041 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 7042 Current Release: 7043 7044 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 7045 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 7046 7047 7048 7049---------------------------------------- 705002 April 2004. Summary of changes for version 20040402: 7051 70521) ACPI CA Core Subsystem: 7053 7054Fixed an interpreter problem where an indirect store through an ArgX 7055parameter was incorrectly applying the "implicit conversion rules" during 7056the store. From the ACPI specification: "If the target is a method local or 7057argument (LocalX or ArgX), no conversion is performed and the result is 7058stored directly to the target". The new behavior is to disable implicit 7059conversion during ALL stores to an ArgX. 7060 7061Changed the behavior of the _PRW method scan to ignore any and all errors 7062returned by a given _PRW. This prevents the scan from aborting from the 7063failure of any single _PRW. 7064 7065Moved the runtime configuration parameters from the global init procedure to 7066static variables in acglobal.h. This will allow the host to override the 7067default values easily. 7068 7069Code and Data Size: Current and previous core subsystem library sizes are 7070shown below. These are the code and data sizes for the acpica.lib produced 7071by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7072any ACPI driver or OSPM code. The debug version of the code includes the 7073debug output trace mechanism and has a much larger code and data size. Note 7074that these values will vary depending on the efficiency of the compiler and 7075the compiler options used during generation. 7076 7077 Previous Release: 7078 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 7079 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 7080 Current Release: 7081 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 7082 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 7083 7084 70852) iASL Compiler/Disassembler: 7086 7087iASL now fully disassembles SSDTs. However, External() statements are not 7088generated automatically for unresolved symbols at this time. This is a 7089planned feature for future implementation. 7090 7091Fixed a scoping problem in the disassembler that occurs when the type of the 7092target of a Scope() operator is overridden. This problem caused an 7093incorrectly nested internal namespace to be constructed. 7094 7095Any warnings or errors that are emitted during disassembly are now commented 7096out automatically so that the resulting file can be recompiled without any 7097hand editing. 7098 7099---------------------------------------- 710026 March 2004. Summary of changes for version 20040326: 7101 71021) ACPI CA Core Subsystem: 7103 7104Implemented support for "wake" GPEs via interaction between GPEs and the 7105_PRW methods. Every GPE that is pointed to by one or more _PRWs is 7106identified as a WAKE GPE and by default will no longer be enabled at 7107runtime. Previously, we were blindly enabling all GPEs with a corresponding 7108_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. We 7109believe this has been the cause of thousands of "spurious" GPEs on some 7110systems. 7111 7112This new GPE behavior is can be reverted to the original behavior (enable 7113ALL GPEs at runtime) via a runtime flag. 7114 7115Fixed a problem where aliased control methods could not access objects 7116properly. The proper scope within the namespace was not initialized 7117(transferred to the target of the aliased method) before executing the 7118target method. 7119 7120Fixed a potential race condition on internal object deletion on the return 7121object in AcpiEvaluateObject. 7122 7123Integrated a fix for resource descriptors where both _MEM and _MTP were 7124being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 7125wide, 0x0F instead of 0x03.) 7126 7127Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a 7128fault in some cases. 7129 7130Updated Notify() values for debug statements in evmisc.c 7131 7132Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 7133 7134Code and Data Size: Current and previous core subsystem library sizes are 7135shown below. These are the code and data sizes for the acpica.lib produced 7136by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7137any ACPI driver or OSPM code. The debug version of the code includes the 7138debug output trace mechanism and has a much larger code and data size. Note 7139that these values will vary depending on the efficiency of the compiler and 7140the compiler options used during generation. 7141 7142 Previous Release: 7143 7144 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 7145 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 7146 Current Release: 7147 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 7148 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 7149 7150---------------------------------------- 715111 March 2004. Summary of changes for version 20040311: 7152 71531) ACPI CA Core Subsystem: 7154 7155Fixed a problem where errors occurring during the parse phase of control 7156method execution did not abort cleanly. For example, objects created and 7157installed in the namespace were not deleted. This caused all subsequent 7158invocations of the method to return the AE_ALREADY_EXISTS exception. 7159 7160Implemented a mechanism to force a control method to "Serialized" execution 7161if the method attempts to create namespace objects. (The root of the 7162AE_ALREADY_EXISTS problem.) 7163 7164Implemented support for the predefined _OSI "internal" control method. 7165Initial supported strings are "Linux", "Windows 2000", "Windows 2001", and 7166"Windows 2001.1", and can be easily upgraded for new strings as necessary. 7167This feature will allow "other" operating systems to execute the fully 7168tested, "Windows" code path through the ASL code 7169 7170Global Lock Support: Now allows multiple acquires and releases with any 7171internal thread. Removed concept of "owning thread" for this special mutex. 7172 7173Fixed two functions that were inappropriately declaring large objects on the 7174CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage during 7175method execution considerably. 7176 7177Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 7178S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 7179 7180Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 7181defined on the machine. 7182 7183Implemented two runtime options: One to force all control method execution 7184to "Serialized" to mimic Windows behavior, another to disable _OSI support 7185if it causes problems on a given machine. 7186 7187Code and Data Size: Current and previous core subsystem library sizes are 7188shown below. These are the code and data sizes for the acpica.lib produced 7189by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7190any ACPI driver or OSPM code. The debug version of the code includes the 7191debug output trace mechanism and has a much larger code and data size. Note 7192that these values will vary depending on the efficiency of the compiler and 7193the compiler options used during generation. 7194 7195 Previous Release: 7196 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 7197 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 7198 Current Release: 7199 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 7200 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 7201 72022) iASL Compiler/Disassembler: 7203 7204Fixed an array size problem for FreeBSD that would cause the compiler to 7205fault. 7206 7207---------------------------------------- 720820 February 2004. Summary of changes for version 20040220: 7209 7210 72111) ACPI CA Core Subsystem: 7212 7213Implemented execution of _SxD methods for Device objects in the 7214GetObjectInfo interface. 7215 7216Fixed calls to _SST method to pass the correct arguments. 7217 7218Added a call to _SST on wake to restore to "working" state. 7219 7220Check for End-Of-Buffer failure case in the WalkResources interface. 7221 7222Integrated fix for 64-bit alignment issue in acglobal.h by moving two 7223structures to the beginning of the file. 7224 7225After wake, clear GPE status register(s) before enabling GPEs. 7226 7227After wake, clear/enable power button. (Perhaps we should clear/enable all 7228fixed events upon wake.) 7229 7230Fixed a couple of possible memory leaks in the Namespace manager. 7231 7232Integrated latest acnetbsd.h file. 7233 7234---------------------------------------- 723511 February 2004. Summary of changes for version 20040211: 7236 7237 72381) ACPI CA Core Subsystem: 7239 7240Completed investigation and implementation of the call-by-reference 7241mechanism for control method arguments. 7242 7243Fixed a problem where a store of an object into an indexed package could 7244fail if the store occurs within a different method than the method that 7245created the package. 7246 7247Fixed a problem where the ToDecimal operator could return incorrect results. 7248 7249Fixed a problem where the CopyObject operator could fail on some of the more 7250obscure objects (e.g., Reference objects.) 7251 7252Improved the output of the Debug object to display buffer, package, and 7253index objects. 7254 7255Fixed a problem where constructs of the form "RefOf (ArgX)" did not return 7256the expected result. 7257 7258Added permanent ACPI_REPORT_ERROR macros for all instances of the 7259ACPI_AML_INTERNAL exception. 7260 7261Integrated latest version of acfreebsd.h 7262 7263---------------------------------------- 726416 January 2004. Summary of changes for version 20040116: 7265 7266The purpose of this release is primarily to update the copyright years in 7267each module, thus causing a huge number of diffs. There are a few small 7268functional changes, however. 7269 72701) ACPI CA Core Subsystem: 7271 7272Improved error messages when there is a problem finding one or more of the 7273required base ACPI tables 7274 7275Reintroduced the definition of APIC_HEADER in actbl.h 7276 7277Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 7278 7279Removed extraneous reference to NewObj in dsmthdat.c 7280 72812) iASL compiler 7282 7283Fixed a problem introduced in December that disabled the correct disassembly 7284of Resource Templates 7285 7286 7287---------------------------------------- 728803 December 2003. Summary of changes for version 20031203: 7289 72901) ACPI CA Core Subsystem: 7291 7292Changed the initialization of Operation Regions during subsystem 7293init to perform two entire walks of the ACPI namespace; The first 7294to initialize the regions themselves, the second to execute the 7295_REG methods. This fixed some interdependencies across _REG 7296methods found on some machines. 7297 7298Fixed a problem where a Store(Local0, Local1) could simply update 7299the object reference count, and not create a new copy of the 7300object if the Local1 is uninitialized. 7301 7302Implemented support for the _SST reserved method during sleep 7303transitions. 7304 7305Implemented support to clear the SLP_TYP and SLP_EN bits when 7306waking up, this is apparently required by some machines. 7307 7308When sleeping, clear the wake status only if SleepState is not S5. 7309 7310Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 7311pointer arithmetic advanced a string pointer too far. 7312 7313Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 7314could be returned if the requested table has not been loaded. 7315 7316Within the support for IRQ resources, restructured the handling of 7317the active and edge/level bits. 7318 7319Fixed a few problems in AcpiPsxExecute() where memory could be 7320leaked under certain error conditions. 7321 7322Improved error messages for the cases where the ACPI mode could 7323not be entered. 7324 7325Code and Data Size: Current and previous core subsystem library 7326sizes are shown below. These are the code and data sizes for the 7327acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7328these values do not include any ACPI driver or OSPM code. The 7329debug version of the code includes the debug output trace 7330mechanism and has a much larger code and data size. Note that 7331these values will vary depending on the efficiency of the compiler 7332and the compiler options used during generation. 7333 7334 Previous Release (20031029): 7335 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 7336 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 7337 Current Release: 7338 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 7339 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 7340 73412) iASL Compiler/Disassembler: 7342 7343Implemented a fix for the iASL disassembler where a bad index was 7344generated. This was most noticeable on 64-bit platforms 7345 7346 7347---------------------------------------- 734829 October 2003. Summary of changes for version 20031029: 7349 73501) ACPI CA Core Subsystem: 7351 7352 7353Fixed a problem where a level-triggered GPE with an associated 7354_Lxx control method was incorrectly cleared twice. 7355 7356Fixed a problem with the Field support code where an access can 7357occur beyond the end-of-region if the field is non-aligned but 7358extends to the very end of the parent region (resulted in an 7359AE_AML_REGION_LIMIT exception.) 7360 7361Fixed a problem with ACPI Fixed Events where an RT Clock handler 7362would not get invoked on an RTC event. The RTC event bitmasks for 7363the PM1 registers were not being initialized properly. 7364 7365Implemented support for executing _STA and _INI methods for 7366Processor objects. Although this is currently not part of the 7367ACPI specification, there is existing ASL code that depends on the 7368init-time execution of these methods. 7369 7370Implemented and deployed a GetDescriptorName function to decode 7371the various types of internal descriptors. Guards against null 7372descriptors during debug output also. 7373 7374Implemented and deployed a GetNodeName function to extract the 4- 7375character namespace node name. This function simplifies the debug 7376and error output, as well as guarding against null pointers during 7377output. 7378 7379Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 7380simplify the debug and error output of 64-bit integers. This 7381macro replaces the HIDWORD and LODWORD macros for dumping these 7382integers. 7383 7384Updated the implementation of the Stall() operator to only call 7385AcpiOsStall(), and also return an error if the operand is larger 7386than 255. This preserves the required behavior of not 7387relinquishing the processor, as would happen if AcpiOsSleep() was 7388called for "long stalls". 7389 7390Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 7391initialized are now treated as NOOPs. 7392 7393Cleaned up a handful of warnings during 64-bit generation. 7394 7395Fixed a reported error where and incorrect GPE number was passed 7396to the GPE dispatch handler. This value is only used for error 7397output, however. Used this opportunity to clean up and streamline 7398the GPE dispatch code. 7399 7400Code and Data Size: Current and previous core subsystem library 7401sizes are shown below. These are the code and data sizes for the 7402acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7403these values do not include any ACPI driver or OSPM code. The 7404 7405debug version of the code includes the debug output trace 7406mechanism and has a much larger code and data size. Note that 7407these values will vary depending on the efficiency of the compiler 7408and the compiler options used during generation. 7409 7410 Previous Release (20031002): 7411 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 7412 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 7413 Current Release: 7414 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 7415 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 7416 7417 74182) iASL Compiler/Disassembler: 7419 7420Updated the iASL compiler to return an error if the operand to the 7421Stall() operator is larger than 255. 7422 7423 7424---------------------------------------- 742502 October 2003. Summary of changes for version 20031002: 7426 7427 74281) ACPI CA Core Subsystem: 7429 7430Fixed a problem with Index Fields where the index was not 7431incremented for fields that require multiple writes to the 7432index/data registers (Fields that are wider than the data 7433register.) 7434 7435Fixed a problem with all Field objects where a write could go 7436beyond the end-of-field if the field was larger than the access 7437granularity and therefore required multiple writes to complete the 7438request. An extra write beyond the end of the field could happen 7439inadvertently. 7440 7441Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 7442would incorrectly be returned if the width of the Data Register 7443was larger than the specified field access width. 7444 7445Completed fixes for LoadTable() and Unload() and verified their 7446operation. Implemented full support for the "DdbHandle" object 7447throughout the ACPI CA subsystem. 7448 7449Implemented full support for the MADT and ECDT tables in the ACPI 7450CA header files. Even though these tables are not directly 7451consumed by ACPI CA, the header definitions are useful for ACPI 7452device drivers. 7453 7454Integrated resource descriptor fixes posted to the Linux ACPI 7455list. This included checks for minimum descriptor length, and 7456support for trailing NULL strings within descriptors that have 7457optional string elements. 7458 7459Code and Data Size: Current and previous core subsystem library 7460sizes are shown below. These are the code and data sizes for the 7461acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7462these values do not include any ACPI driver or OSPM code. The 7463debug version of the code includes the debug output trace 7464mechanism and has a much larger code and data size. Note that 7465these values will vary depending on the efficiency of the compiler 7466and the compiler options used during generation. 7467 7468 Previous Release (20030918): 7469 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 7470 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 7471 Current Release: 7472 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 7473 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 7474 7475 74762) iASL Compiler: 7477 7478Implemented detection of non-ASCII characters within the input 7479source ASL file. This catches attempts to compile binary (AML) 7480files early in the compile, with an informative error message. 7481 7482Fixed a problem where the disassembler would fault if the output 7483filename could not be generated or if the output file could not be 7484opened. 7485 7486---------------------------------------- 748718 September 2003. Summary of changes for version 20030918: 7488 7489 74901) ACPI CA Core Subsystem: 7491 7492Found and fixed a longstanding problem with the late execution of 7493the various deferred AML opcodes (such as Operation Regions, 7494Buffer Fields, Buffers, and Packages). If the name string 7495specified for the name of the new object placed the object in a 7496scope other than the current scope, the initialization/execution 7497of the opcode failed. The solution to this problem was to 7498implement a mechanism where the late execution of such opcodes 7499does not attempt to lookup/create the name a second time in an 7500incorrect scope. This fixes the "region size computed 7501incorrectly" problem. 7502 7503Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 7504Global Lock AE_BAD_PARAMETER error. 7505 7506Fixed several 64-bit issues with prototypes, casting and data 7507types. 7508 7509Removed duplicate prototype from acdisasm.h 7510 7511Fixed an issue involving EC Operation Region Detach (Shaohua Li) 7512 7513Code and Data Size: Current and previous core subsystem library 7514sizes are shown below. These are the code and data sizes for the 7515acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7516these values do not include any ACPI driver or OSPM code. The 7517debug version of the code includes the debug output trace 7518mechanism and has a much larger code and data size. Note that 7519these values will vary depending on the efficiency of the compiler 7520and the compiler options used during generation. 7521 7522 Previous Release: 7523 7524 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 7525 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 7526 Current Release: 7527 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 7528 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 7529 7530 75312) Linux: 7532 7533Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 7534correct sleep time in seconds. 7535 7536---------------------------------------- 753714 July 2003. Summary of changes for version 20030619: 7538 75391) ACPI CA Core Subsystem: 7540 7541Parse SSDTs in order discovered, as opposed to reverse order 7542(Hrvoje Habjanic) 7543 7544Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 7545Klausner, 7546 Nate Lawson) 7547 7548 75492) Linux: 7550 7551Dynamically allocate SDT list (suggested by Andi Kleen) 7552 7553proc function return value cleanups (Andi Kleen) 7554 7555Correctly handle NMI watchdog during long stalls (Andrew Morton) 7556 7557Make it so acpismp=force works (reported by Andrew Morton) 7558 7559 7560---------------------------------------- 756119 June 2003. Summary of changes for version 20030619: 7562 75631) ACPI CA Core Subsystem: 7564 7565Fix To/FromBCD, eliminating the need for an arch-specific #define. 7566 7567Do not acquire a semaphore in the S5 shutdown path. 7568 7569Fix ex_digits_needed for 0. (Takayoshi Kochi) 7570 7571Fix sleep/stall code reversal. (Andi Kleen) 7572 7573Revert a change having to do with control method calling 7574semantics. 7575 75762) Linux: 7577 7578acpiphp update (Takayoshi Kochi) 7579 7580Export acpi_disabled for sonypi (Stelian Pop) 7581 7582Mention acpismp=force in config help 7583 7584Re-add acpitable.c and acpismp=force. This improves backwards 7585 7586compatibility and also cleans up the code to a significant degree. 7587 7588Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 7589 7590---------------------------------------- 759122 May 2003. Summary of changes for version 20030522: 7592 75931) ACPI CA Core Subsystem: 7594 7595Found and fixed a reported problem where an AE_NOT_FOUND error 7596occurred occasionally during _BST evaluation. This turned out to 7597be an Owner ID allocation issue where a called method did not get 7598a new ID assigned to it. Eventually, (after 64k calls), the Owner 7599ID UINT16 would wraparound so that the ID would be the same as the 7600caller's and the called method would delete the caller's 7601namespace. 7602 7603Implemented extended error reporting for control methods that are 7604aborted due to a run-time exception. Output includes the exact 7605AML instruction that caused the method abort, a dump of the method 7606locals and arguments at the time of the abort, and a trace of all 7607nested control method calls. 7608 7609Modified the interpreter to allow the creation of buffers of zero 7610length from the AML code. Implemented new code to ensure that no 7611attempt is made to actually allocate a memory buffer (of length 7612zero) - instead, a simple buffer object with a NULL buffer pointer 7613and length zero is created. A warning is no longer issued when 7614the AML attempts to create a zero-length buffer. 7615 7616Implemented a workaround for the "leading asterisk issue" in 7617_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 7618asterisk is automatically removed if present in any HID, UID, or 7619CID strings. The iASL compiler will still flag this asterisk as 7620an error, however. 7621 7622Implemented full support for _CID methods that return a package of 7623multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 7624now additionally returns a device _CID list if present. This 7625required a change to the external interface in order to pass an 7626ACPI_BUFFER object as a parameter since the _CID list is of 7627variable length. 7628 7629Fixed a problem with the new AE_SAME_HANDLER exception where 7630handler initialization code did not know about this exception. 7631 7632Code and Data Size: Current and previous core subsystem library 7633sizes are shown below. These are the code and data sizes for the 7634acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7635these values do not include any ACPI driver or OSPM code. The 7636debug version of the code includes the debug output trace 7637mechanism and has a much larger code and data size. Note that 7638these values will vary depending on the efficiency of the compiler 7639and the compiler options used during generation. 7640 7641 Previous Release (20030509): 7642 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 7643 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 7644 Current Release: 7645 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 7646 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 7647 7648 76492) Linux: 7650 7651Fixed a bug in which we would reinitialize the ACPI interrupt 7652after it was already working, thus disabling all ACPI and the IRQs 7653for any other device sharing the interrupt. (Thanks to Stian 7654Jordet) 7655 7656Toshiba driver update (John Belmonte) 7657 7658Return only 0 or 1 for our interrupt handler status (Andrew 7659Morton) 7660 7661 76623) iASL Compiler: 7663 7664Fixed a reported problem where multiple (nested) ElseIf() 7665statements were not handled correctly by the compiler, resulting 7666in incorrect warnings and incorrect AML code. This was a problem 7667in both the ASL parser and the code generator. 7668 7669 76704) Documentation: 7671 7672Added changes to existing interfaces, new exception codes, and new 7673text concerning reference count object management versus garbage 7674collection. 7675 7676---------------------------------------- 767709 May 2003. Summary of changes for version 20030509. 7678 7679 76801) ACPI CA Core Subsystem: 7681 7682Changed the subsystem initialization sequence to hold off 7683installation of address space handlers until the hardware has been 7684initialized and the system has entered ACPI mode. This is because 7685the installation of space handlers can cause _REG methods to be 7686run. Previously, the _REG methods could potentially be run before 7687ACPI mode was enabled. 7688 7689Fixed some memory leak issues related to address space handler and 7690notify handler installation. There were some problems with the 7691reference count mechanism caused by the fact that the handler 7692objects are shared across several namespace objects. 7693 7694Fixed a reported problem where reference counts within the 7695namespace were not properly updated when named objects created by 7696method execution were deleted. 7697 7698Fixed a reported problem where multiple SSDTs caused a deletion 7699issue during subsystem termination. Restructured the table data 7700structures to simplify the linked lists and the related code. 7701 7702Fixed a problem where the table ID associated with secondary 7703tables (SSDTs) was not being propagated into the namespace objects 7704created by those tables. This would only present a problem for 7705tables that are unloaded at run-time, however. 7706 7707Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 7708type as the length parameter (instead of UINT32). 7709 7710Solved a long-standing problem where an ALREADY_EXISTS error 7711appears on various systems. This problem could happen when there 7712are multiple PCI_Config operation regions under a single PCI root 7713bus. This doesn't happen very frequently, but there are some 7714systems that do this in the ASL. 7715 7716Fixed a reported problem where the internal DeleteNode function 7717was incorrectly handling the case where a namespace node was the 7718first in the parent's child list, and had additional peers (not 7719the only child, but first in the list of children.) 7720 7721Code and Data Size: Current core subsystem library sizes are shown 7722below. These are the code and data sizes for the acpica.lib 7723produced by the Microsoft Visual C++ 6.0 compiler, and these 7724values do not include any ACPI driver or OSPM code. The debug 7725version of the code includes the debug output trace mechanism and 7726has a much larger code and data size. Note that these values will 7727vary depending on the efficiency of the compiler and the compiler 7728options used during generation. 7729 7730 Previous Release 7731 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 7732 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 7733 Current Release: 7734 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 7735 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 7736 7737 77382) Linux: 7739 7740Allow ":" in OS override string (Ducrot Bruno) 7741 7742Kobject fix (Greg KH) 7743 7744 77453 iASL Compiler/Disassembler: 7746 7747Fixed a problem in the generation of the C source code files (AML 7748is emitted in C source statements for BIOS inclusion) where the 7749Ascii dump that appears within a C comment at the end of each line 7750could cause a compile time error if the AML sequence happens to 7751have an open comment or close comment sequence embedded. 7752 7753 7754---------------------------------------- 775524 April 2003. Summary of changes for version 20030424. 7756 7757 77581) ACPI CA Core Subsystem: 7759 7760Support for big-endian systems has been implemented. Most of the 7761support has been invisibly added behind big-endian versions of the 7762ACPI_MOVE_* macros. 7763 7764Fixed a problem in AcpiHwDisableGpeBlock() and 7765AcpiHwClearGpeBlock() where an incorrect offset was passed to the 7766low level hardware write routine. The offset parameter was 7767actually eliminated from the low level read/write routines because 7768they had become obsolete. 7769 7770Fixed a problem where a handler object was deleted twice during 7771the removal of a fixed event handler. 7772 7773 77742) Linux: 7775 7776A fix for SMP systems with link devices was contributed by 7777 7778Compaq's Dan Zink. 7779 7780(2.5) Return whether we handled the interrupt in our IRQ handler. 7781(Linux ISRs no longer return void, so we can propagate the handler 7782return value from the ACPI CA core back to the OS.) 7783 7784 7785 77863) Documentation: 7787 7788The ACPI CA Programmer Reference has been updated to reflect new 7789interfaces and changes to existing interfaces. 7790 7791---------------------------------------- 779228 March 2003. Summary of changes for version 20030328. 7793 77941) ACPI CA Core Subsystem: 7795 7796The GPE Block Device support has been completed. New interfaces 7797are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 7798interfaces (enable, disable, clear, getstatus) have been split 7799into separate interfaces for Fixed Events and General Purpose 7800Events (GPEs) in order to support GPE Block Devices properly. 7801 7802Fixed a problem where the error message "Failed to acquire 7803semaphore" would appear during operations on the embedded 7804controller (EC). 7805 7806Code and Data Size: Current core subsystem library sizes are shown 7807below. These are the code and data sizes for the acpica.lib 7808produced by the Microsoft Visual C++ 6.0 compiler, and these 7809values do not include any ACPI driver or OSPM code. The debug 7810version of the code includes the debug output trace mechanism and 7811has a much larger code and data size. Note that these values will 7812vary depending on the efficiency of the compiler and the compiler 7813options used during generation. 7814 7815 Previous Release 7816 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 7817 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 7818 Current Release: 7819 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 7820 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 7821 7822 7823---------------------------------------- 782428 February 2003. Summary of changes for version 20030228. 7825 7826 78271) ACPI CA Core Subsystem: 7828 7829The GPE handling and dispatch code has been completely overhauled 7830in preparation for support of GPE Block Devices (ID ACPI0006). 7831This affects internal data structures and code only; there should 7832be no differences visible externally. One new file has been 7833added, evgpeblk.c 7834 7835The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 7836fields that are used to determine the GPE block lengths. The 7837REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 7838structures are ignored. This is per the ACPI specification but it 7839isn't very clear. The full 256 Block 0/1 GPEs are now supported 7840(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 7841 7842In the SCI interrupt handler, removed the read of the PM1_CONTROL 7843register to look at the SCI_EN bit. On some machines, this read 7844causes an SMI event and greatly slows down SCI events. (This may 7845in fact be the cause of slow battery status response on some 7846systems.) 7847 7848Fixed a problem where a store of a NULL string to a package object 7849could cause the premature deletion of the object. This was seen 7850during execution of the battery _BIF method on some systems, 7851resulting in no battery data being returned. 7852 7853Added AcpiWalkResources interface to simplify parsing of resource 7854lists. 7855 7856Code and Data Size: Current core subsystem library sizes are shown 7857below. These are the code and data sizes for the acpica.lib 7858produced by the Microsoft Visual C++ 6.0 compiler, and these 7859values do not include any ACPI driver or OSPM code. The debug 7860version of the code includes the debug output trace mechanism and 7861has a much larger code and data size. Note that these values will 7862vary depending on the efficiency of the compiler and the compiler 7863options used during generation. 7864 7865 Previous Release 7866 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7867 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7868 Current Release: 7869 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 7870 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 7871 7872 78732) Linux 7874 7875S3 fixes (Ole Rohne) 7876 7877Update ACPI PHP driver with to use new acpi_walk_resource API 7878(Bjorn Helgaas) 7879 7880Add S4BIOS support (Pavel Machek) 7881 7882Map in entire table before performing checksum (John Stultz) 7883 7884Expand the mem= cmdline to allow the specification of reserved and 7885ACPI DATA blocks (Pavel Machek) 7886 7887Never use ACPI on VISWS 7888 7889Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 7890 7891Revert a change that allowed P_BLK lengths to be 4 or 5. This is 7892causing us to think that some systems support C2 when they really 7893don't. 7894 7895Do not count processor objects for non-present CPUs (Thanks to 7896Dominik Brodowski) 7897 7898 78993) iASL Compiler: 7900 7901Fixed a problem where ASL include files could not be found and 7902opened. 7903 7904Added support for the _PDC reserved name. 7905 7906 7907---------------------------------------- 790822 January 2003. Summary of changes for version 20030122. 7909 7910 79111) ACPI CA Core Subsystem: 7912 7913Added a check for constructs of the form: Store (Local0, Local0) 7914where Local0 is not initialized. Apparently, some BIOS 7915programmers believe that this is a NOOP. Since this store doesn't 7916do anything anyway, the new prototype behavior will ignore this 7917error. This is a case where we can relax the strict checking in 7918the interpreter in the name of compatibility. 7919 7920 79212) Linux 7922 7923The AcpiSrc Source Conversion Utility has been released with the 7924Linux package for the first time. This is the utility that is 7925used to convert the ACPI CA base source code to the Linux version. 7926 7927(Both) Handle P_BLK lengths shorter than 6 more gracefully 7928 7929(Both) Move more headers to include/acpi, and delete an unused 7930header. 7931 7932(Both) Move drivers/acpi/include directory to include/acpi 7933 7934(Both) Boot functions don't use cmdline, so don't pass it around 7935 7936(Both) Remove include of unused header (Adrian Bunk) 7937 7938(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 7939the 7940former now also includes the latter, acpiphp.h only needs the one, 7941now. 7942 7943(2.5) Make it possible to select method of bios restoring after S3 7944resume. [=> no more ugly ifdefs] (Pavel Machek) 7945 7946(2.5) Make proc write interfaces work (Pavel Machek) 7947 7948(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 7949 7950(2.5) Break out ACPI Perf code into its own module, under cpufreq 7951(Dominik Brodowski) 7952 7953(2.4) S4BIOS support (Ducrot Bruno) 7954 7955(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 7956Visinoni) 7957 7958 79593) iASL Compiler: 7960 7961Added support to disassemble SSDT and PSDTs. 7962 7963Implemented support to obtain SSDTs from the Windows registry if 7964available. 7965 7966 7967---------------------------------------- 796809 January 2003. Summary of changes for version 20030109. 7969 79701) ACPI CA Core Subsystem: 7971 7972Changed the behavior of the internal Buffer-to-String conversion 7973function. The current ACPI specification states that the contents 7974of the buffer are "converted to a string of two-character 7975hexadecimal numbers, each separated by a space". Unfortunately, 7976this definition is not backwards compatible with existing ACPI 1.0 7977implementations (although the behavior was not defined in the ACPI 79781.0 specification). The new behavior simply copies data from the 7979buffer to the string until a null character is found or the end of 7980the buffer is reached. The new String object is always null 7981terminated. This problem was seen during the generation of _BIF 7982battery data where incorrect strings were returned for battery 7983type, etc. This will also require an errata to the ACPI 7984specification. 7985 7986Renamed all instances of NATIVE_UINT and NATIVE_INT to 7987ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 7988 7989Copyright in all module headers (both Linux and non-Linux) has be 7990updated to 2003. 7991 7992Code and Data Size: Current core subsystem library sizes are shown 7993below. These are the code and data sizes for the acpica.lib 7994produced by the Microsoft Visual C++ 6.0 compiler, and these 7995values do not include any ACPI driver or OSPM code. The debug 7996version of the code includes the debug output trace mechanism and 7997has a much larger code and data size. Note that these values will 7998vary depending on the efficiency of the compiler and the compiler 7999options used during generation. 8000 8001 Previous Release 8002 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 8003 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 8004 Current Release: 8005 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 8006 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 8007 8008 80092) Linux 8010 8011Fixed an oops on module insertion/removal (Matthew Tippett) 8012 8013(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 8014 8015(2.5) Replace pr_debug (Randy Dunlap) 8016 8017(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 8018 8019(Both) Eliminate spawning of thread from timer callback, in favor 8020of schedule_work() 8021 8022(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 8023 8024(Both) Added define for Fixed Function HW region (Matthew Wilcox) 8025 8026(Both) Add missing statics to button.c (Pavel Machek) 8027 8028Several changes have been made to the source code translation 8029utility that generates the Linux Code in order to make the code 8030more "Linux-like": 8031 8032All typedefs on structs and unions have been removed in keeping 8033with the Linux coding style. 8034 8035Removed the non-Linux SourceSafe module revision number from each 8036module header. 8037 8038Completed major overhaul of symbols to be lowercased for linux. 8039Doubled the number of symbols that are lowercased. 8040 8041Fixed a problem where identifiers within procedure headers and 8042within quotes were not fully lower cased (they were left with a 8043starting capital.) 8044 8045Some C macros whose only purpose is to allow the generation of 16- 8046bit code are now completely removed in the Linux code, increasing 8047readability and maintainability. 8048 8049---------------------------------------- 8050 805112 December 2002. Summary of changes for version 20021212. 8052 8053 80541) ACPI CA Core Subsystem: 8055 8056Fixed a problem where the creation of a zero-length AML Buffer 8057would cause a fault. 8058 8059Fixed a problem where a Buffer object that pointed to a static AML 8060buffer (in an ACPI table) could inadvertently be deleted, causing 8061memory corruption. 8062 8063Fixed a problem where a user buffer (passed in to the external 8064ACPI CA interfaces) could be overwritten if the buffer was too 8065small to complete the operation, causing memory corruption. 8066 8067Fixed a problem in the Buffer-to-String conversion code where a 8068string of length one was always returned, regardless of the size 8069of the input Buffer object. 8070 8071Removed the NATIVE_CHAR data type across the entire source due to 8072lack of need and lack of consistent use. 8073 8074Code and Data Size: Current core subsystem library sizes are shown 8075below. These are the code and data sizes for the acpica.lib 8076produced by the Microsoft Visual C++ 6.0 compiler, and these 8077values do not include any ACPI driver or OSPM code. The debug 8078version of the code includes the debug output trace mechanism and 8079has a much larger code and data size. Note that these values will 8080vary depending on the efficiency of the compiler and the compiler 8081options used during generation. 8082 8083 Previous Release 8084 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 8085 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 8086 Current Release: 8087 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 8088 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 8089 8090 8091---------------------------------------- 809205 December 2002. Summary of changes for version 20021205. 8093 80941) ACPI CA Core Subsystem: 8095 8096Fixed a problem where a store to a String or Buffer object could 8097cause corruption of the DSDT if the object type being stored was 8098the same as the target object type and the length of the object 8099being stored was equal to or smaller than the original (existing) 8100target object. This was seen to cause corruption of battery _BIF 8101buffers if the _BIF method modified the buffer on the fly. 8102 8103Fixed a problem where an internal error was generated if a control 8104method invocation was used in an OperationRegion, Buffer, or 8105Package declaration. This was caused by the deferred parsing of 8106the control method and thus the deferred creation of the internal 8107method object. The solution to this problem was to create the 8108internal method object at the moment the method is encountered in 8109the first pass - so that subsequent references to the method will 8110able to obtain the required parameter count and thus properly 8111parse the method invocation. This problem presented itself as an 8112AE_AML_INTERNAL during the pass 1 parse phase during table load. 8113 8114Fixed a problem where the internal String object copy routine did 8115not always allocate sufficient memory for the target String object 8116and caused memory corruption. This problem was seen to cause 8117"Allocation already present in list!" errors as memory allocation 8118became corrupted. 8119 8120Implemented a new function for the evaluation of namespace objects 8121that allows the specification of the allowable return object 8122types. This simplifies a lot of code that checks for a return 8123object of one or more specific objects returned from the 8124evaluation (such as _STA, etc.) This may become and external 8125function if it would be useful to ACPI-related drivers. 8126 8127Completed another round of prefixing #defines with "ACPI_" for 8128clarity. 8129 8130Completed additional code restructuring to allow more modular 8131linking for iASL compiler and AcpiExec. Several files were split 8132creating new files. New files: nsparse.c dsinit.c evgpe.c 8133 8134Implemented an abort mechanism to terminate an executing control 8135method via the AML debugger. This feature is useful for debugging 8136control methods that depend (wait) for specific hardware 8137responses. 8138 8139Code and Data Size: Current core subsystem library sizes are shown 8140below. These are the code and data sizes for the acpica.lib 8141produced by the Microsoft Visual C++ 6.0 compiler, and these 8142values do not include any ACPI driver or OSPM code. The debug 8143version of the code includes the debug output trace mechanism and 8144has a much larger code and data size. Note that these values will 8145vary depending on the efficiency of the compiler and the compiler 8146options used during generation. 8147 8148 Previous Release 8149 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8150 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 8151 Current Release: 8152 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 8153 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 8154 8155 81562) iASL Compiler/Disassembler 8157 8158Fixed a compiler code generation problem for "Interrupt" Resource 8159Descriptors. If specified in the ASL, the optional "Resource 8160Source Index" and "Resource Source" fields were not inserted into 8161the correct location within the AML resource descriptor, creating 8162an invalid descriptor. 8163 8164Fixed a disassembler problem for "Interrupt" resource descriptors. 8165The optional "Resource Source Index" and "Resource Source" fields 8166were ignored. 8167 8168 8169---------------------------------------- 817022 November 2002. Summary of changes for version 20021122. 8171 8172 81731) ACPI CA Core Subsystem: 8174 8175Fixed a reported problem where an object stored to a Method Local 8176or Arg was not copied to a new object during the store - the 8177object pointer was simply copied to the Local/Arg. This caused 8178all subsequent operations on the Local/Arg to also affect the 8179original source of the store operation. 8180 8181Fixed a problem where a store operation to a Method Local or Arg 8182was not completed properly if the Local/Arg contained a reference 8183(from RefOf) to a named field. The general-purpose store-to- 8184namespace-node code is now used so that this case is handled 8185automatically. 8186 8187Fixed a problem where the internal object copy routine would cause 8188a protection fault if the object being copied was a Package and 8189contained either 1) a NULL package element or 2) a nested sub- 8190package. 8191 8192Fixed a problem with the GPE initialization that resulted from an 8193ambiguity in the ACPI specification. One section of the 8194specification states that both the address and length of the GPE 8195block must be zero if the block is not supported. Another section 8196implies that only the address need be zero if the block is not 8197supported. The code has been changed so that both the address and 8198the length must be non-zero to indicate a valid GPE block (i.e., 8199if either the address or the length is zero, the GPE block is 8200invalid.) 8201 8202Code and Data Size: Current core subsystem library sizes are shown 8203below. These are the code and data sizes for the acpica.lib 8204produced by the Microsoft Visual C++ 6.0 compiler, and these 8205values do not include any ACPI driver or OSPM code. The debug 8206version of the code includes the debug output trace mechanism and 8207has a much larger code and data size. Note that these values will 8208vary depending on the efficiency of the compiler and the compiler 8209options used during generation. 8210 8211 Previous Release 8212 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 8213 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 8214 Current Release: 8215 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8216 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 8217 8218 82192) Linux 8220 8221Cleaned up EC driver. Exported an external EC read/write 8222interface. By going through this, other drivers (most notably 8223sonypi) will be able to serialize access to the EC. 8224 8225 82263) iASL Compiler/Disassembler 8227 8228Implemented support to optionally generate include files for both 8229ASM and C (the -i switch). This simplifies BIOS development by 8230automatically creating include files that contain external 8231declarations for the symbols that are created within the 8232 8233(optionally generated) ASM and C AML source files. 8234 8235 8236---------------------------------------- 823715 November 2002. Summary of changes for version 20021115. 8238 82391) ACPI CA Core Subsystem: 8240 8241Fixed a memory leak problem where an error during resolution of 8242 8243method arguments during a method invocation from another method 8244failed to cleanup properly by deleting all successfully resolved 8245argument objects. 8246 8247Fixed a problem where the target of the Index() operator was not 8248correctly constructed if the source object was a package. This 8249problem has not been detected because the use of a target operand 8250with Index() is very rare. 8251 8252Fixed a problem with the Index() operator where an attempt was 8253made to delete the operand objects twice. 8254 8255Fixed a problem where an attempt was made to delete an operand 8256twice during execution of the CondRefOf() operator if the target 8257did not exist. 8258 8259Implemented the first of perhaps several internal create object 8260functions that create and initialize a specific object type. This 8261consolidates duplicated code wherever the object is created, thus 8262shrinking the size of the subsystem. 8263 8264Implemented improved debug/error messages for errors that occur 8265during nested method invocations. All executing method pathnames 8266are displayed (with the error) as the call stack is unwound - thus 8267simplifying debug. 8268 8269Fixed a problem introduced in the 10/02 release that caused 8270premature deletion of a buffer object if a buffer was used as an 8271ASL operand where an integer operand is required (Thus causing an 8272implicit object conversion from Buffer to Integer.) The change in 8273the 10/02 release was attempting to fix a memory leak (albeit 8274incorrectly.) 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: 71.9K Code, 9.1K Data, 81.0K Total 8287 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 8288 Current Release: 8289 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 8290 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 8291 8292 82932) Linux 8294 8295Changed the implementation of the ACPI semaphores to use down() 8296instead of down_interruptable(). It is important that the 8297execution of ACPI control methods not be interrupted by signals. 8298Methods must run to completion, or the system may be left in an 8299unknown/unstable state. 8300 8301Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 8302(Shawn Starr) 8303 8304 83053) iASL Compiler/Disassembler 8306 8307 8308Changed the default location of output files. All output files 8309are now placed in the current directory by default instead of in 8310the directory of the source file. This change may affect some 8311existing makefiles, but it brings the behavior of the compiler in 8312line with other similar tools. The location of the output files 8313can be overridden with the -p command line switch. 8314 8315 8316---------------------------------------- 831711 November 2002. Summary of changes for version 20021111. 8318 8319 83200) ACPI Specification 2.0B is released and is now available at: 8321http://www.acpi.info/index.html 8322 8323 83241) ACPI CA Core Subsystem: 8325 8326Implemented support for the ACPI 2.0 SMBus Operation Regions. 8327This includes the early detection and handoff of the request to 8328the SMBus region handler (avoiding all of the complex field 8329support code), and support for the bidirectional return packet 8330from an SMBus write operation. This paves the way for the 8331development of SMBus drivers in each host operating system. 8332 8333Fixed a problem where the semaphore WAIT_FOREVER constant was 8334defined as 32 bits, but must be 16 bits according to the ACPI 8335specification. This had the side effect of causing ASL 8336Mutex/Event timeouts even though the ASL code requested a wait 8337forever. Changed all internal references to the ACPI timeout 8338parameter to 16 bits to prevent future problems. Changed the name 8339of WAIT_FOREVER to ACPI_WAIT_FOREVER. 8340 8341Code and Data Size: Current core subsystem library sizes are shown 8342below. These are the code and data sizes for the acpica.lib 8343produced by the Microsoft Visual C++ 6.0 compiler, and these 8344values do not include any ACPI driver or OSPM code. The debug 8345version of the code includes the debug output trace mechanism and 8346has a much larger code and data size. Note that these values will 8347vary depending on the efficiency of the compiler and the compiler 8348options used during generation. 8349 8350 Previous Release 8351 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8352 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 8353 Current Release: 8354 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 8355 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 8356 8357 83582) Linux 8359 8360Module loading/unloading fixes (John Cagle) 8361 8362 83633) iASL Compiler/Disassembler 8364 8365Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 8366 8367Implemented support for the disassembly of all SMBus protocol 8368keywords (SMBQuick, SMBWord, etc.) 8369 8370---------------------------------------- 837101 November 2002. Summary of changes for version 20021101. 8372 8373 83741) ACPI CA Core Subsystem: 8375 8376Fixed a problem where platforms that have a GPE1 block but no GPE0 8377block were not handled correctly. This resulted in a "GPE 8378overlap" error message. GPE0 is no longer required. 8379 8380Removed code added in the previous release that inserted nodes 8381into the namespace in alphabetical order. This caused some side- 8382effects on various machines. The root cause of the problem is 8383still under investigation since in theory, the internal ordering 8384of the namespace nodes should not matter. 8385 8386 8387Enhanced error reporting for the case where a named object is not 8388found during control method execution. The full ACPI namepath 8389(name reference) of the object that was not found is displayed in 8390this case. 8391 8392Note: as a result of the overhaul of the namespace object types in 8393the previous release, the namespace nodes for the predefined 8394scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 8395instead of ACPI_TYPE_ANY. This simplifies the namespace 8396management code but may affect code that walks the namespace tree 8397looking for specific object types. 8398 8399Code and Data Size: Current core subsystem library sizes are shown 8400below. These are the code and data sizes for the acpica.lib 8401produced by the Microsoft Visual C++ 6.0 compiler, and these 8402values do not include any ACPI driver or OSPM code. The debug 8403version of the code includes the debug output trace mechanism and 8404has a much larger code and data size. Note that these values will 8405vary depending on the efficiency of the compiler and the compiler 8406options used during generation. 8407 8408 Previous Release 8409 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 8410 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 8411 Current Release: 8412 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8413 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 8414 8415 84162) Linux 8417 8418Fixed a problem introduced in the previous release where the 8419Processor and Thermal objects were not recognized and installed in 8420/proc. This was related to the scope type change described above. 8421 8422 84233) iASL Compiler/Disassembler 8424 8425Implemented the -g option to get all of the required ACPI tables 8426from the registry and save them to files (Windows version of the 8427compiler only.) The required tables are the FADT, FACS, and DSDT. 8428 8429Added ACPI table checksum validation during table disassembly in 8430order to catch corrupted tables. 8431 8432 8433---------------------------------------- 843422 October 2002. Summary of changes for version 20021022. 8435 84361) ACPI CA Core Subsystem: 8437 8438Implemented a restriction on the Scope operator that the target 8439must already exist in the namespace at the time the operator is 8440encountered (during table load or method execution). In other 8441words, forward references are not allowed and Scope() cannot 8442create a new object. This changes the previous behavior where the 8443interpreter would create the name if not found. This new behavior 8444correctly enables the search-to-root algorithm during namespace 8445lookup of the target name. Because of this upsearch, this fixes 8446the known Compaq _SB_.OKEC problem and makes both the AML 8447interpreter and iASL compiler compatible with other ACPI 8448implementations. 8449 8450Completed a major overhaul of the internal ACPI object types for 8451the ACPI Namespace and the associated operand objects. Many of 8452these types had become obsolete with the introduction of the two- 8453pass namespace load. This cleanup simplifies the code and makes 8454the entire namespace load mechanism much clearer and easier to 8455understand. 8456 8457Improved debug output for tracking scope opening/closing to help 8458diagnose scoping issues. The old scope name as well as the new 8459scope name are displayed. Also improved error messages for 8460problems with ASL Mutex objects and error messages for GPE 8461problems. 8462 8463Cleaned up the namespace dump code, removed obsolete code. 8464 8465All string output (for all namespace/object dumps) now uses the 8466common ACPI string output procedure which handles escapes properly 8467and does not emit non-printable characters. 8468 8469Fixed some issues with constants in the 64-bit version of the 8470local C library (utclib.c) 8471 8472 84732) Linux 8474 8475EC Driver: No longer attempts to acquire the Global Lock at 8476interrupt level. 8477 8478 84793) iASL Compiler/Disassembler 8480 8481Implemented ACPI 2.0B grammar change that disallows all Type 1 and 84822 opcodes outside of a control method. This means that the 8483"executable" operators (versus the "namespace" operators) cannot 8484be used at the table level; they can only be used within a control 8485method. 8486 8487Implemented the restriction on the Scope() operator where the 8488target must already exist in the namespace at the time the 8489operator is encountered (during ASL compilation). In other words, 8490forward references are not allowed and Scope() cannot create a new 8491object. This makes the iASL compiler compatible with other ACPI 8492implementations and makes the Scope() implementation adhere to the 8493ACPI specification. 8494 8495Fixed a problem where namepath optimization for the Alias operator 8496was optimizing the wrong path (of the two namepaths.) This caused 8497a "Missing alias link" error message. 8498 8499Fixed a problem where an "unknown reserved name" warning could be 8500incorrectly generated for names like "_SB" when the trailing 8501underscore is not used in the original ASL. 8502 8503Fixed a problem where the reserved name check did not handle 8504NamePaths with multiple NameSegs correctly. The first nameseg of 8505the NamePath was examined instead of the last NameSeg. 8506 8507 8508---------------------------------------- 8509 851002 October 2002. Summary of changes for this release. 8511 8512 85131) ACPI CA Core Subsystem version 20021002: 8514 8515Fixed a problem where a store/copy of a string to an existing 8516string did not always set the string length properly in the String 8517object. 8518 8519Fixed a reported problem with the ToString operator where the 8520behavior was identical to the ToHexString operator instead of just 8521simply converting a raw buffer to a string data type. 8522 8523Fixed a problem where CopyObject and the other "explicit" 8524conversion operators were not updating the internal namespace node 8525type as part of the store operation. 8526 8527Fixed a memory leak during implicit source operand conversion 8528where the original object was not deleted if it was converted to a 8529new object of a different type. 8530 8531Enhanced error messages for all problems associated with namespace 8532lookups. Common procedure generates and prints the lookup name as 8533well as the formatted status. 8534 8535Completed implementation of a new design for the Alias support 8536within the namespace. The existing design did not handle the case 8537where a new object was assigned to one of the two names due to the 8538use of an explicit conversion operator, resulting in the two names 8539pointing to two different objects. The new design simply points 8540the Alias name to the original name node - not to the object. 8541This results in a level of indirection that must be handled in the 8542name resolution mechanism. 8543 8544Code and Data Size: Current core subsystem library sizes are shown 8545below. These are the code and data sizes for the acpica.lib 8546produced by the Microsoft Visual C++ 6.0 compiler, and these 8547values do not include any ACPI driver or OSPM code. The debug 8548version of the code includes the debug output trace mechanism and 8549has a larger code and data size. Note that these values will vary 8550depending on the efficiency of the compiler and the compiler 8551options used during generation. 8552 8553 Previous Release 8554 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 8555 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 8556 Current Release: 8557 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 8558 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 8559 8560 85612) Linux 8562 8563Initialize thermal driver's timer before it is used. (Knut 8564Neumann) 8565 8566Allow handling negative celsius values. (Kochi Takayoshi) 8567 8568Fix thermal management and make trip points. R/W (Pavel Machek) 8569 8570Fix /proc/acpi/sleep. (P. Christeas) 8571 8572IA64 fixes. (David Mosberger) 8573 8574Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 8575 8576Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 8577Brodowski) 8578 8579 85803) iASL Compiler/Disassembler 8581 8582Clarified some warning/error messages. 8583 8584 8585---------------------------------------- 858618 September 2002. Summary of changes for this release. 8587 8588 85891) ACPI CA Core Subsystem version 20020918: 8590 8591Fixed a reported problem with reference chaining (via the Index() 8592and RefOf() operators) in the ObjectType() and SizeOf() operators. 8593The definition of these operators includes the dereferencing of 8594all chained references to return information on the base object. 8595 8596Fixed a problem with stores to indexed package elements - the 8597existing code would not complete the store if an "implicit 8598conversion" was not performed. In other words, if the existing 8599object (package element) was to be replaced completely, the code 8600didn't handle this case. 8601 8602Relaxed typechecking on the ASL "Scope" operator to allow the 8603target name to refer to an object of type Integer, String, or 8604Buffer, in addition to the scoping object types (Device, 8605predefined Scopes, Processor, PowerResource, and ThermalZone.) 8606This allows existing AML code that has workarounds for a bug in 8607Windows to function properly. A warning is issued, however. This 8608affects both the AML interpreter and the iASL compiler. Below is 8609an example of this type of ASL code: 8610 8611 Name(DEB,0x00) 8612 Scope(DEB) 8613 { 8614 8615Fixed some reported problems with 64-bit integer support in the 8616local implementation of C library functions (clib.c) 8617 8618 86192) Linux 8620 8621Use ACPI fix map region instead of IOAPIC region, since it is 8622undefined in non-SMP. 8623 8624Ensure that the SCI has the proper polarity and trigger, even on 8625systems that do not have an interrupt override entry in the MADT. 8626 86272.5 big driver reorganization (Pat Mochel) 8628 8629Use early table mapping code from acpitable.c (Andi Kleen) 8630 8631New blacklist entries (Andi Kleen) 8632 8633Blacklist improvements. Split blacklist code out into a separate 8634file. Move checking the blacklist to very early. Previously, we 8635would use ACPI tables, and then halfway through init, check the 8636blacklist -- too late. Now, it's early enough to completely fall- 8637back to non-ACPI. 8638 8639 86403) iASL Compiler/Disassembler version 20020918: 8641 8642Fixed a problem where the typechecking code didn't know that an 8643alias could point to a method. In other words, aliases were not 8644being dereferenced during typechecking. 8645 8646 8647---------------------------------------- 864829 August 2002. Summary of changes for this release. 8649 86501) ACPI CA Core Subsystem Version 20020829: 8651 8652If the target of a Scope() operator already exists, it must be an 8653object type that actually opens a scope -- such as a Device, 8654Method, Scope, etc. This is a fatal runtime error. Similar error 8655check has been added to the iASL compiler also. 8656 8657Tightened up the namespace load to disallow multiple names in the 8658same scope. This previously was allowed if both objects were of 8659the same type. (i.e., a lookup was the same as entering a new 8660name). 8661 8662 86632) Linux 8664 8665Ensure that the ACPI interrupt has the proper trigger and 8666polarity. 8667 8668local_irq_disable is extraneous. (Matthew Wilcox) 8669 8670Make "acpi=off" actually do what it says, and not use the ACPI 8671interpreter *or* the tables. 8672 8673Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 8674Takayoshi) 8675 8676 86773) iASL Compiler/Disassembler Version 20020829: 8678 8679Implemented namepath optimization for name declarations. For 8680example, a declaration like "Method (\_SB_.ABCD)" would get 8681optimized to "Method (ABCD)" if the declaration is within the 8682\_SB_ scope. This optimization is in addition to the named 8683reference path optimization first released in the previous 8684version. This would seem to complete all possible optimizations 8685for namepaths within the ASL/AML. 8686 8687If the target of a Scope() operator already exists, it must be an 8688object type that actually opens a scope -- such as a Device, 8689Method, Scope, etc. 8690 8691Implemented a check and warning for unreachable code in the same 8692block below a Return() statement. 8693 8694Fixed a problem where the listing file was not generated if the 8695compiler aborted if the maximum error count was exceeded (200). 8696 8697Fixed a problem where the typechecking of method return values was 8698broken. This includes the check for a return value when the 8699method is invoked as a TermArg (a return value is expected.) 8700 8701Fixed a reported problem where EOF conditions during a quoted 8702string or comment caused a fault. 8703 8704 8705---------------------------------------- 870615 August 2002. Summary of changes for this release. 8707 87081) ACPI CA Core Subsystem Version 20020815: 8709 8710Fixed a reported problem where a Store to a method argument that 8711contains a reference did not perform the indirect store correctly. 8712This problem was created during the conversion to the new 8713reference object model - the indirect store to a method argument 8714code was not updated to reflect the new model. 8715 8716Reworked the ACPI mode change code to better conform to ACPI 2.0, 8717handle corner cases, and improve code legibility (Kochi Takayoshi) 8718 8719Fixed a problem with the pathname parsing for the carat (^) 8720prefix. The heavy use of the carat operator by the new namepath 8721optimization in the iASL compiler uncovered a problem with the AML 8722interpreter handling of this prefix. In the case where one or 8723more carats precede a single nameseg, the nameseg was treated as 8724standalone and the search rule (to root) was inadvertently 8725applied. This could cause both the iASL compiler and the 8726interpreter to find the wrong object or to miss the error that 8727should occur if the object does not exist at that exact pathname. 8728 8729Found and fixed the problem where the HP Pavilion DSDT would not 8730load. This was a relatively minor tweak to the table loading code 8731(a problem caused by the unexpected encounter with a method 8732invocation not within a control method), but it does not solve the 8733overall issue of the execution of AML code at the table level. 8734This investigation is still ongoing. 8735 8736Code and Data Size: Current core subsystem library sizes are shown 8737below. These are the code and data sizes for the acpica.lib 8738produced by the Microsoft Visual C++ 6.0 compiler, and these 8739values do not include any ACPI driver or OSPM code. The debug 8740version of the code includes the debug output trace mechanism and 8741has a larger code and data size. Note that these values will vary 8742depending on the efficiency of the compiler and the compiler 8743options used during generation. 8744 8745 Previous Release 8746 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 8747 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 8748 Current Release: 8749 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 8750 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 8751 8752 87532) Linux 8754 8755Remove redundant slab.h include (Brad Hards) 8756 8757Fix several bugs in thermal.c (Herbert Nachtnebel) 8758 8759Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 8760 8761Change acpi_system_suspend to use updated irq functions (Pavel 8762Machek) 8763 8764Export acpi_get_firmware_table (Matthew Wilcox) 8765 8766Use proper root proc entry for ACPI (Kochi Takayoshi) 8767 8768Fix early-boot table parsing (Bjorn Helgaas) 8769 8770 87713) iASL Compiler/Disassembler 8772 8773Reworked the compiler options to make them more consistent and to 8774use two-letter options where appropriate. We were running out of 8775sensible letters. This may break some makefiles, so check the 8776current options list by invoking the compiler with no parameters. 8777 8778Completed the design and implementation of the ASL namepath 8779optimization option for the compiler. This option optimizes all 8780references to named objects to the shortest possible path. The 8781first attempt tries to utilize a single nameseg (4 characters) and 8782the "search-to-root" algorithm used by the interpreter. If that 8783cannot be used (because either the name is not in the search path 8784or there is a conflict with another object with the same name), 8785the pathname is optimized using the carat prefix (usually a 8786shorter string than specifying the entire path from the root.) 8787 8788Implemented support to obtain the DSDT from the Windows registry 8789(when the disassembly option is specified with no input file). 8790Added this code as the implementation for AcpiOsTableOverride in 8791the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 8792utility) to scan memory for the DSDT to the AcpiOsTableOverride 8793function in the DOS OSL to make the disassembler truly OS 8794independent. 8795 8796Implemented a new option to disassemble and compile in one step. 8797When used without an input filename, this option will grab the 8798DSDT from the local machine, disassemble it, and compile it in one 8799step. 8800 8801Added a warning message for invalid escapes (a backslash followed 8802by any character other than the allowable escapes). This catches 8803the quoted string error "\_SB_" (which should be "\\_SB_" ). 8804 8805Also, there are numerous instances in the ACPI specification where 8806this error occurs. 8807 8808Added a compiler option to disable all optimizations. This is 8809basically the "compatibility mode" because by using this option, 8810the AML code will come out exactly the same as other ASL 8811compilers. 8812 8813Added error messages for incorrectly ordered dependent resource 8814functions. This includes: missing EndDependentFn macro at end of 8815dependent resource list, nested dependent function macros (both 8816start and end), and missing StartDependentFn macro. These are 8817common errors that should be caught at compile time. 8818 8819Implemented _OSI support for the disassembler and compiler. _OSI 8820must be included in the namespace for proper disassembly (because 8821the disassembler must know the number of arguments.) 8822 8823Added an "optimization" message type that is optional (off by 8824default). This message is used for all optimizations - including 8825constant folding, integer optimization, and namepath optimization. 8826 8827---------------------------------------- 882825 July 2002. Summary of changes for this release. 8829 8830 88311) ACPI CA Core Subsystem Version 20020725: 8832 8833The AML Disassembler has been enhanced to produce compilable ASL 8834code and has been integrated into the iASL compiler (see below) as 8835well as the single-step disassembly for the AML debugger and the 8836disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 8837resource templates and macros are fully supported. The 8838disassembler has been tested on over 30 different AML files, 8839producing identical AML when the resulting disassembled ASL file 8840is recompiled with the same ASL compiler. 8841 8842Modified the Resource Manager to allow zero interrupts and zero 8843dma channels during the GetCurrentResources call. This was 8844causing problems on some platforms. 8845 8846Added the AcpiOsRedirectOutput interface to the OSL to simplify 8847output redirection for the AcpiOsPrintf and AcpiOsVprintf 8848interfaces. 8849 8850Code and Data Size: Current core subsystem library sizes are shown 8851below. These are the code and data sizes for the acpica.lib 8852produced by the Microsoft Visual C++ 6.0 compiler, and these 8853values do not include any ACPI driver or OSPM code. The debug 8854version of the code includes the debug output trace mechanism and 8855has a larger code and data size. Note that these values will vary 8856depending on the efficiency of the compiler and the compiler 8857options used during generation. 8858 8859 Previous Release 8860 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 8861 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 8862 Current Release: 8863 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 8864 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 8865 8866 88672) Linux 8868 8869Fixed a panic in the EC driver (Dominik Brodowski) 8870 8871Implemented checksum of the R/XSDT itself during Linux table scan 8872(Richard Schaal) 8873 8874 88753) iASL compiler 8876 8877The AML disassembler is integrated into the compiler. The "-d" 8878option invokes the disassembler to completely disassemble an 8879input AML file, producing as output a text ASL file with the 8880extension ".dsl" (to avoid name collisions with existing .asl 8881source files.) A future enhancement will allow the disassembler 8882to obtain the BIOS DSDT from the registry under Windows. 8883 8884Fixed a problem with the VendorShort and VendorLong resource 8885descriptors where an invalid AML sequence was created. 8886 8887Implemented a fix for BufferData term in the ASL parser. It was 8888inadvertently defined twice, allowing invalid syntax to pass and 8889causing reduction conflicts. 8890 8891Fixed a problem where the Ones opcode could get converted to a 8892value of zero if "Ones" was used where a byte, word or dword value 8893was expected. The 64-bit value is now truncated to the correct 8894size with the correct value. 8895 8896 8897 8898---------------------------------------- 889902 July 2002. Summary of changes for this release. 8900 8901 89021) ACPI CA Core Subsystem Version 20020702: 8903 8904The Table Manager code has been restructured to add several new 8905features. Tables that are not required by the core subsystem 8906(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 8907validated in any way and are returned from AcpiGetFirmwareTable if 8908requested. The AcpiOsTableOverride interface is now called for 8909each table that is loaded by the subsystem in order to allow the 8910host to override any table it chooses. Previously, only the DSDT 8911could be overridden. Added one new files, tbrsdt.c and 8912tbgetall.c. 8913 8914Fixed a problem with the conversion of internal package objects to 8915external objects (when a package is returned from a control 8916method.) The return buffer length was set to zero instead of the 8917proper length of the package object. 8918 8919Fixed a reported problem with the use of the RefOf and DeRefOf 8920operators when passing reference arguments to control methods. A 8921new type of Reference object is used internally for references 8922produced by the RefOf operator. 8923 8924Added additional error messages in the Resource Manager to explain 8925AE_BAD_DATA errors when they occur during resource parsing. 8926 8927Split the AcpiEnableSubsystem into two primitives to enable a 8928finer granularity initialization sequence. These two calls should 8929be called in this order: AcpiEnableSubsystem (flags), 8930AcpiInitializeObjects (flags). The flags parameter remains the 8931same. 8932 8933 89342) Linux 8935 8936Updated the ACPI utilities module to understand the new style of 8937fully resolved package objects that are now returned from the core 8938subsystem. This eliminates errors of the form: 8939 8940 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 8941 acpi_utils-0430 [145] acpi_evaluate_reference: 8942 Invalid element in package (not a device reference) 8943 8944The method evaluation utility uses the new buffer allocation 8945scheme instead of calling AcpiEvaluate Object twice. 8946 8947Added support for ECDT. This allows the use of the Embedded 8948 8949Controller before the namespace has been fully initialized, which 8950is necessary for ACPI 2.0 support, and for some laptops to 8951initialize properly. (Laptops using ECDT are still rare, so only 8952limited testing was performed of the added functionality.) 8953 8954Fixed memory leaks in the EC driver. 8955 8956Eliminated a brittle code structure in acpi_bus_init(). 8957 8958Eliminated the acpi_evaluate() helper function in utils.c. It is 8959no longer needed since acpi_evaluate_object can optionally 8960allocate memory for the return object. 8961 8962Implemented fix for keyboard hang when getting battery readings on 8963some systems (Stephen White) 8964 8965PCI IRQ routing update (Dominik Brodowski) 8966 8967Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 8968support 8969 8970---------------------------------------- 897111 June 2002. Summary of changes for this release. 8972 8973 89741) ACPI CA Core Subsystem Version 20020611: 8975 8976Fixed a reported problem where constants such as Zero and One 8977appearing within _PRT packages were not handled correctly within 8978the resource manager code. Originally reported against the ASL 8979compiler because the code generator now optimizes integers to 8980their minimal AML representation (i.e. AML constants if possible.) 8981The _PRT code now handles all AML constant opcodes correctly 8982(Zero, One, Ones, Revision). 8983 8984Fixed a problem with the Concatenate operator in the AML 8985interpreter where a buffer result object was incorrectly marked as 8986not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 8987 8988All package sub-objects are now fully resolved before they are 8989returned from the external ACPI interfaces. This means that name 8990strings are resolved to object handles, and constant operators 8991(Zero, One, Ones, Revision) are resolved to Integers. 8992 8993Implemented immediate resolution of the AML Constant opcodes 8994(Zero, One, Ones, Revision) to Integer objects upon detection 8995within the AML stream. This has simplified and reduced the 8996generated code size of the subsystem by eliminating about 10 8997switch statements for these constants (which previously were 8998contained in Reference objects.) The complicating issues are that 8999the Zero opcode is used as a "placeholder" for unspecified 9000optional target operands and stores to constants are defined to be 9001no-ops. 9002 9003Code and Data Size: Current core subsystem library sizes are shown 9004below. These are the code and data sizes for the acpica.lib 9005produced by the Microsoft Visual C++ 6.0 compiler, and these 9006values do not include any ACPI driver or OSPM code. The debug 9007version of the code includes the debug output trace mechanism and 9008has a larger code and data size. Note that these values will vary 9009depending on the efficiency of the compiler and the compiler 9010options used during generation. 9011 9012 Previous Release 9013 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 9014 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 9015 Current Release: 9016 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 9017 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 9018 9019 90202) Linux 9021 9022 9023Added preliminary support for obtaining _TRA data for PCI root 9024bridges (Bjorn Helgaas). 9025 9026 90273) iASL Compiler Version X2046: 9028 9029Fixed a problem where the "_DDN" reserved name was defined to be a 9030control method with one argument. There are no arguments, and 9031_DDN does not have to be a control method. 9032 9033Fixed a problem with the Linux version of the compiler where the 9034source lines printed with error messages were the wrong lines. 9035This turned out to be the "LF versus CR/LF" difference between 9036Windows and Unix. This appears to be the longstanding issue 9037concerning listing output and error messages. 9038 9039Fixed a problem with the Linux version of compiler where opcode 9040names within error messages were wrong. This was caused by a 9041slight difference in the output of the Flex tool on Linux versus 9042Windows. 9043 9044Fixed a problem with the Linux compiler where the hex output files 9045contained some garbage data caused by an internal buffer overrun. 9046 9047 9048---------------------------------------- 904917 May 2002. Summary of changes for this release. 9050 9051 90521) ACPI CA Core Subsystem Version 20020517: 9053 9054Implemented a workaround to an BIOS bug discovered on the HP 9055OmniBook where the FADT revision number and the table size are 9056inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 9057behavior is to fallback to using only the ACPI 1.0 fields of the 9058FADT if the table is too small to be a ACPI 2.0 table as claimed 9059by the revision number. Although this is a BIOS bug, this is a 9060case where the workaround is simple enough and with no side 9061effects, so it seemed prudent to add it. A warning message is 9062issued, however. 9063 9064Implemented minimum size checks for the fixed-length ACPI tables - 9065- the FADT and FACS, as well as consistency checks between the 9066revision number and the table size. 9067 9068Fixed a reported problem in the table override support where the 9069new table pointer was incorrectly treated as a physical address 9070instead of a logical address. 9071 9072Eliminated the use of the AE_AML_ERROR exception and replaced it 9073with more descriptive codes. 9074 9075Fixed a problem where an exception would occur if an ASL Field was 9076defined with no named Field Units underneath it (used by some 9077index fields). 9078 9079Code and Data Size: Current core subsystem library sizes are shown 9080below. These are the code and data sizes for the acpica.lib 9081produced by the Microsoft Visual C++ 6.0 compiler, and these 9082values do not include any ACPI driver or OSPM code. The debug 9083version of the code includes the debug output trace mechanism and 9084has a larger code and data size. Note that these values will vary 9085depending on the efficiency of the compiler and the compiler 9086options used during generation. 9087 9088 Previous Release 9089 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 9090 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 9091 Current Release: 9092 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 9093 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 9094 9095 9096 90972) Linux 9098 9099Much work done on ACPI init (MADT and PCI IRQ routing support). 9100(Paul D. and Dominik Brodowski) 9101 9102Fix PCI IRQ-related panic on boot (Sam Revitch) 9103 9104Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 9105 9106Fix "MHz" typo (Dominik Brodowski) 9107 9108Fix RTC year 2000 issue (Dominik Brodowski) 9109 9110Preclude multiple button proc entries (Eric Brunet) 9111 9112Moved arch-specific code out of include/platform/aclinux.h 9113 91143) iASL Compiler Version X2044: 9115 9116Implemented error checking for the string used in the EISAID macro 9117(Usually used in the definition of the _HID object.) The code now 9118strictly enforces the PnP format - exactly 7 characters, 3 9119uppercase letters and 4 hex digits. 9120 9121If a raw string is used in the definition of the _HID object 9122(instead of the EISAID macro), the string must contain all 9123alphanumeric characters (e.g., "*PNP0011" is not allowed because 9124of the asterisk.) 9125 9126Implemented checking for invalid use of ACPI reserved names for 9127most of the name creation operators (Name, Device, Event, Mutex, 9128OperationRegion, PowerResource, Processor, and ThermalZone.) 9129Previously, this check was only performed for control methods. 9130 9131Implemented an additional check on the Name operator to emit an 9132error if a reserved name that must be implemented in ASL as a 9133control method is used. We know that a reserved name must be a 9134method if it is defined with input arguments. 9135 9136The warning emitted when a namespace object reference is not found 9137during the cross reference phase has been changed into an error. 9138The "External" directive should be used for names defined in other 9139modules. 9140 9141 91424) Tools and Utilities 9143 9144The 16-bit tools (adump16 and aexec16) have been regenerated and 9145tested. 9146 9147Fixed a problem with the output of both acpidump and adump16 where 9148the indentation of closing parentheses and brackets was not 9149 9150aligned properly with the parent block. 9151 9152 9153---------------------------------------- 915403 May 2002. Summary of changes for this release. 9155 9156 91571) ACPI CA Core Subsystem Version 20020503: 9158 9159Added support a new OSL interface that allows the host operating 9160 9161system software to override the DSDT found in the firmware - 9162AcpiOsTableOverride. With this interface, the OSL can examine the 9163version of the firmware DSDT and replace it with a different one 9164if desired. 9165 9166Added new external interfaces for accessing ACPI registers from 9167device drivers and other system software - AcpiGetRegister and 9168AcpiSetRegister. This was simply an externalization of the 9169existing AcpiHwBitRegister interfaces. 9170 9171Fixed a regression introduced in the previous build where the 9172ASL/AML CreateField operator always returned an error, 9173"destination must be a NS Node". 9174 9175Extended the maximum time (before failure) to successfully enable 9176ACPI mode to 3 seconds. 9177 9178Code and Data Size: Current core subsystem library sizes are shown 9179below. These are the code and data sizes for the acpica.lib 9180produced by the Microsoft Visual C++ 6.0 compiler, and these 9181values do not include any ACPI driver or OSPM code. The debug 9182version of the code includes the debug output trace mechanism and 9183has a larger code and data size. Note that these values will vary 9184depending on the efficiency of the compiler and the compiler 9185options used during generation. 9186 9187 Previous Release 9188 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 9189 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 9190 Current Release: 9191 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 9192 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 9193 9194 91952) Linux 9196 9197Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 9198free. While 3 out of 4 of our in-house systems work fine, the last 9199one still hangs when testing the LAPIC timer. 9200 9201Renamed many files in 2.5 kernel release to omit "acpi_" from the 9202name. 9203 9204Added warning on boot for Presario 711FR. 9205 9206Sleep improvements (Pavel Machek) 9207 9208ACPI can now be built without CONFIG_PCI enabled. 9209 9210IA64: Fixed memory map functions (JI Lee) 9211 9212 92133) iASL Compiler Version X2043: 9214 9215Added support to allow the compiler to be integrated into the MS 9216VC++ development environment for one-button compilation of single 9217files or entire projects -- with error-to-source-line mapping. 9218 9219Implemented support for compile-time constant folding for the 9220Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 9221specification. This allows the ASL writer to use expressions 9222instead of Integer/Buffer/String constants in terms that must 9223evaluate to constants at compile time and will also simplify the 9224emitted AML in any such sub-expressions that can be folded 9225(evaluated at compile-time.) This increases the size of the 9226compiler significantly because a portion of the ACPI CA AML 9227interpreter is included within the compiler in order to pre- 9228evaluate constant expressions. 9229 9230 9231Fixed a problem with the "Unicode" ASL macro that caused the 9232compiler to fault. (This macro is used in conjunction with the 9233_STR reserved name.) 9234 9235Implemented an AML opcode optimization to use the Zero, One, and 9236Ones opcodes where possible to further reduce the size of integer 9237constants and thus reduce the overall size of the generated AML 9238code. 9239 9240Implemented error checking for new reserved terms for ACPI version 92412.0A. 9242 9243Implemented the -qr option to display the current list of ACPI 9244reserved names known to the compiler. 9245 9246Implemented the -qc option to display the current list of ASL 9247operators that are allowed within constant expressions and can 9248therefore be folded at compile time if the operands are constants. 9249 9250 92514) Documentation 9252 9253Updated the Programmer's Reference for new interfaces, data types, 9254and memory allocation model options. 9255 9256Updated the iASL Compiler User Reference to apply new format and 9257add information about new features and options. 9258 9259---------------------------------------- 926019 April 2002. Summary of changes for this release. 9261 92621) ACPI CA Core Subsystem Version 20020419: 9263 9264The source code base for the Core Subsystem has been completely 9265cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 9266versions. The Lint option files used are included in the 9267/acpi/generate/lint directory. 9268 9269Implemented enhanced status/error checking across the entire 9270Hardware manager subsystem. Any hardware errors (reported from 9271the OSL) are now bubbled up and will abort a running control 9272method. 9273 9274 9275Fixed a problem where the per-ACPI-table integer width (32 or 64) 9276was stored only with control method nodes, causing a fault when 9277non-control method code was executed during table loading. The 9278solution implemented uses a global variable to indicate table 9279width across the entire ACPI subsystem. Therefore, ACPI CA does 9280not support mixed integer widths across different ACPI tables 9281(DSDT, SSDT). 9282 9283Fixed a problem where NULL extended fields (X fields) in an ACPI 92842.0 ACPI FADT caused the table load to fail. Although the 9285existing ACPI specification is a bit fuzzy on this topic, the new 9286behavior is to fall back on a ACPI 1.0 field if the corresponding 9287ACPI 2.0 X field is zero (even though the table revision indicates 9288a full ACPI 2.0 table.) The ACPI specification will be updated to 9289clarify this issue. 9290 9291Fixed a problem with the SystemMemory operation region handler 9292where memory was always accessed byte-wise even if the AML- 9293specified access width was larger than a byte. This caused 9294problems on systems with memory-mapped I/O. Memory is now 9295accessed with the width specified. On systems that do not support 9296non-aligned transfers, a check is made to guarantee proper address 9297alignment before proceeding in order to avoid an AML-caused 9298alignment fault within the kernel. 9299 9300 9301Fixed a problem with the ExtendedIrq resource where only one byte 9302of the 4-byte Irq field was extracted. 9303 9304Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 9305function was out of date and required a rewrite. 9306 9307Code and Data Size: Current core subsystem library sizes are shown 9308below. These are the code and data sizes for the acpica.lib 9309produced by the Microsoft Visual C++ 6.0 compiler, and these 9310values do not include any ACPI driver or OSPM code. The debug 9311version of the code includes the debug output trace mechanism and 9312has a larger code and data size. Note that these values will vary 9313depending on the efficiency of the compiler and the compiler 9314options used during generation. 9315 9316 Previous Release 9317 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 9318 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 9319 Current Release: 9320 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 9321 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 9322 9323 93242) Linux 9325 9326PCI IRQ routing fixes (Dominik Brodowski) 9327 9328 93293) iASL Compiler Version X2042: 9330 9331Implemented an additional compile-time error check for a field 9332unit whose size + minimum access width would cause a run-time 9333access beyond the end-of-region. Previously, only the field size 9334itself was checked. 9335 9336The Core subsystem and iASL compiler now share a common parse 9337object in preparation for compile-time evaluation of the type 93383/4/5 ASL operators. 9339 9340 9341---------------------------------------- 9342Summary of changes for this release: 03_29_02 9343 93441) ACPI CA Core Subsystem Version 20020329: 9345 9346Implemented support for late evaluation of TermArg operands to 9347Buffer and Package objects. This allows complex expressions to be 9348used in the declarations of these object types. 9349 9350Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 93511.0, if the field was larger than 32 bits, it was returned as a 9352buffer - otherwise it was returned as an integer. In ACPI 2.0, 9353the field is returned as a buffer only if the field is larger than 935464 bits. The TableRevision is now considered when making this 9355conversion to avoid incompatibility with existing ASL code. 9356 9357Implemented logical addressing for AcpiOsGetRootPointer. This 9358allows an RSDP with either a logical or physical address. With 9359this support, the host OS can now override all ACPI tables with 9360one logical RSDP. Includes implementation of "typed" pointer 9361support to allow a common data type for both physical and logical 9362pointers internally. This required a change to the 9363AcpiOsGetRootPointer interface. 9364 9365Implemented the use of ACPI 2.0 Generic Address Structures for all 9366GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 9367mapped I/O for these ACPI features. 9368 9369Initialization now ignores not only non-required tables (All 9370tables other than the FADT, FACS, DSDT, and SSDTs), but also does 9371not validate the table headers of unrecognized tables. 9372 9373Fixed a problem where a notify handler could only be 9374installed/removed on an object of type Device. All "notify" 9375 9376objects are now supported -- Devices, Processor, Power, and 9377Thermal. 9378 9379Removed most verbosity from the ACPI_DB_INFO debug level. Only 9380critical information is returned when this debug level is enabled. 9381 9382Code and Data Size: Current core subsystem library sizes are shown 9383below. These are the code and data sizes for the acpica.lib 9384produced by the Microsoft Visual C++ 6.0 compiler, and these 9385values do not include any ACPI driver or OSPM code. The debug 9386version of the code includes the debug output trace mechanism and 9387has a larger code and data size. Note that these values will vary 9388depending on the efficiency of the compiler and the compiler 9389options used during generation. 9390 9391 Previous Release 9392 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 9393 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 9394 Current Release: 9395 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 9396 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 9397 9398 93992) Linux: 9400 9401The processor driver (acpi_processor.c) now fully supports ACPI 94022.0-based processor performance control (e.g. Intel(R) 9403SpeedStep(TM) technology) Note that older laptops that only have 9404the Intel "applet" interface are not supported through this. The 9405'limit' and 'performance' interface (/proc) are fully functional. 9406[Note that basic policy for controlling performance state 9407transitions will be included in the next version of ospmd.] The 9408idle handler was modified to more aggressively use C2, and PIIX4 9409errata handling underwent a complete overhaul (big thanks to 9410Dominik Brodowski). 9411 9412Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 9413based devices in the ACPI namespace are now dynamically bound 9414(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 9415This allows, among other things, ACPI to resolve bus numbers for 9416subordinate PCI bridges. 9417 9418Enhanced PCI IRQ routing to get the proper bus number for _PRT 9419entries defined underneath PCI bridges. 9420 9421Added IBM 600E to bad bios list due to invalid _ADR value for 9422PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 9423 9424In the process of adding full MADT support (e.g. IOAPIC) for IA32 9425(acpi.c, mpparse.c) -- stay tuned. 9426 9427Added back visual differentiation between fixed-feature and 9428control-method buttons in dmesg. Buttons are also subtyped (e.g. 9429button/power/PWRF) to simplify button identification. 9430 9431We no longer use -Wno-unused when compiling debug. Please ignore 9432any "_THIS_MODULE defined but not used" messages. 9433 9434Can now shut down the system using "magic sysrq" key. 9435 9436 94373) iASL Compiler version 2041: 9438 9439Fixed a problem where conversion errors for hex/octal/decimal 9440constants were not reported. 9441 9442Implemented a fix for the General Register template Address field. 9443This field was 8 bits when it should be 64. 9444 9445Fixed a problem where errors/warnings were no longer being emitted 9446within the listing output file. 9447 9448Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 9449exactly 4 characters, alphanumeric only. 9450 9451 9452 9453 9454---------------------------------------- 9455Summary of changes for this release: 03_08_02 9456 9457 94581) ACPI CA Core Subsystem Version 20020308: 9459 9460Fixed a problem with AML Fields where the use of the "AccessAny" 9461keyword could cause an interpreter error due to attempting to read 9462or write beyond the end of the parent Operation Region. 9463 9464Fixed a problem in the SystemMemory Operation Region handler where 9465an attempt was made to map memory beyond the end of the region. 9466This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 9467errors on some Linux systems. 9468 9469Fixed a problem where the interpreter/namespace "search to root" 9470algorithm was not functioning for some object types. Relaxed the 9471internal restriction on the search to allow upsearches for all 9472external object types as well as most internal types. 9473 9474 94752) Linux: 9476 9477We now use safe_halt() macro versus individual calls to sti | hlt. 9478 9479Writing to the processor limit interface should now work. "echo 1" 9480will increase the limit, 2 will decrease, and 0 will reset to the 9481 9482default. 9483 9484 94853) ASL compiler: 9486 9487Fixed segfault on Linux version. 9488 9489 9490---------------------------------------- 9491Summary of changes for this release: 02_25_02 9492 94931) ACPI CA Core Subsystem: 9494 9495 9496Fixed a problem where the GPE bit masks were not initialized 9497properly, causing erratic GPE behavior. 9498 9499Implemented limited support for multiple calling conventions. The 9500code can be generated with either the VPL (variable parameter 9501list, or "C") convention, or the FPL (fixed parameter list, or 9502"Pascal") convention. The core subsystem is about 3.4% smaller 9503when generated with FPL. 9504 9505 95062) Linux 9507 9508Re-add some /proc/acpi/event functionality that was lost during 9509the rewrite 9510 9511Resolved issue with /proc events for fixed-feature buttons showing 9512up as the system device. 9513 9514Fixed checks on C2/C3 latencies to be inclusive of maximum values. 9515 9516Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 9517 9518Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 9519 9520Fixed limit interface & usage to fix bugs with passive cooling 9521hysterisis. 9522 9523Restructured PRT support. 9524 9525 9526---------------------------------------- 9527Summary of changes for this label: 02_14_02 9528 9529 95301) ACPI CA Core Subsystem: 9531 9532Implemented support in AcpiLoadTable to allow loading of FACS and 9533FADT tables. 9534 9535Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 9536been removed. All 64-bit platforms should be migrated to the ACPI 95372.0 tables. The actbl71.h header has been removed from the source 9538tree. 9539 9540All C macros defined within the subsystem have been prefixed with 9541"ACPI_" to avoid collision with other system include files. 9542 9543Removed the return value for the two AcpiOsPrint interfaces, since 9544it is never used and causes lint warnings for ignoring the return 9545value. 9546 9547Added error checking to all internal mutex acquire and release 9548calls. Although a failure from one of these interfaces is 9549probably a fatal system error, these checks will cause the 9550immediate abort of the currently executing method or interface. 9551 9552Fixed a problem where the AcpiSetCurrentResources interface could 9553fault. This was a side effect of the deployment of the new memory 9554allocation model. 9555 9556Fixed a couple of problems with the Global Lock support introduced 9557in the last major build. The "common" (1.0/2.0) internal FACS was 9558being overwritten with the FACS signature and clobbering the 9559Global Lock pointer. Also, the actual firmware FACS was being 9560unmapped after construction of the "common" FACS, preventing 9561access to the actual Global Lock field within it. The "common" 9562internal FACS is no longer installed as an actual ACPI table; it 9563is used simply as a global. 9564 9565Code and Data Size: Current core subsystem library sizes are shown 9566below. These are the code and data sizes for the acpica.lib 9567produced by the Microsoft Visual C++ 6.0 compiler, and these 9568values do not include any ACPI driver or OSPM code. The debug 9569version of the code includes the debug output trace mechanism and 9570has a larger code and data size. Note that these values will vary 9571depending on the efficiency of the compiler and the compiler 9572options used during generation. 9573 9574 Previous Release (02_07_01) 9575 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 9576 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 9577 Current Release: 9578 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 9579 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 9580 9581 95822) Linux 9583 9584Updated Linux-specific code for core macro and OSL interface 9585changes described above. 9586 9587Improved /proc/acpi/event. It now can be opened only once and has 9588proper poll functionality. 9589 9590Fixed and restructured power management (acpi_bus). 9591 9592Only create /proc "view by type" when devices of that class exist. 9593 9594Fixed "charging/discharging" bug (and others) in acpi_battery. 9595 9596Improved thermal zone code. 9597 9598 95993) ASL Compiler, version X2039: 9600 9601 9602Implemented the new compiler restriction on ASL String hex/octal 9603escapes to non-null, ASCII values. An error results if an invalid 9604value is used. (This will require an ACPI 2.0 specification 9605change.) 9606 9607AML object labels that are output to the optional C and ASM source 9608are now prefixed with both the ACPI table signature and table ID 9609to help guarantee uniqueness within a large BIOS project. 9610 9611 9612---------------------------------------- 9613Summary of changes for this label: 02_01_02 9614 96151) ACPI CA Core Subsystem: 9616 9617ACPI 2.0 support is complete in the entire Core Subsystem and the 9618ASL compiler. All new ACPI 2.0 operators are implemented and all 9619other changes for ACPI 2.0 support are complete. With 9620simultaneous code and data optimizations throughout the subsystem, 9621ACPI 2.0 support has been implemented with almost no additional 9622cost in terms of code and data size. 9623 9624Implemented a new mechanism for allocation of return buffers. If 9625the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 9626be allocated on behalf of the caller. Consolidated all return 9627buffer validation and allocation to a common procedure. Return 9628buffers will be allocated via the primary OSL allocation interface 9629since it appears that a separate pool is not needed by most users. 9630If a separate pool is required for these buffers, the caller can 9631still use the original mechanism and pre-allocate the buffer(s). 9632 9633Implemented support for string operands within the DerefOf 9634operator. 9635 9636Restructured the Hardware and Event managers to be table driven, 9637simplifying the source code and reducing the amount of generated 9638code. 9639 9640Split the common read/write low-level ACPI register bitfield 9641procedure into a separate read and write, simplifying the code 9642considerably. 9643 9644Obsoleted the AcpiOsCallocate OSL interface. This interface was 9645used only a handful of times and didn't have enough critical mass 9646for a separate interface. Replaced with a common calloc procedure 9647in the core. 9648 9649Fixed a reported problem with the GPE number mapping mechanism 9650that allows GPE1 numbers to be non-contiguous with GPE0. 9651Reorganized the GPE information and shrunk a large array that was 9652originally large enough to hold info for all possible GPEs (256) 9653to simply large enough to hold all GPEs up to the largest GPE 9654number on the machine. 9655 9656Fixed a reported problem with resource structure alignment on 64- 9657bit platforms. 9658 9659Changed the AcpiEnableEvent and AcpiDisableEvent external 9660interfaces to not require any flags for the common case of 9661enabling/disabling a GPE. 9662 9663Implemented support to allow a "Notify" on a Processor object. 9664 9665Most TBDs in comments within the source code have been resolved 9666and eliminated. 9667 9668 9669Fixed a problem in the interpreter where a standalone parent 9670prefix (^) was not handled correctly in the interpreter and 9671debugger. 9672 9673Removed obsolete and unnecessary GPE save/restore code. 9674 9675Implemented Field support in the ASL Load operator. This allows a 9676table to be loaded from a named field, in addition to loading a 9677table directly from an Operation Region. 9678 9679Implemented timeout and handle support in the external Global Lock 9680interfaces. 9681 9682Fixed a problem in the AcpiDump utility where pathnames were no 9683longer being generated correctly during the dump of named objects. 9684 9685Modified the AML debugger to give a full display of if/while 9686predicates instead of just one AML opcode at a time. (The 9687predicate can have several nested ASL statements.) The old method 9688was confusing during single stepping. 9689 9690Code and Data Size: Current core subsystem library sizes are shown 9691below. These are the code and data sizes for the acpica.lib 9692produced by the Microsoft Visual C++ 6.0 compiler, and these 9693values do not include any ACPI driver or OSPM code. The debug 9694version of the code includes the debug output trace mechanism and 9695has a larger code and data size. Note that these values will vary 9696depending on the efficiency of the compiler and the compiler 9697options used during generation. 9698 9699 Previous Release (12_18_01) 9700 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 9701 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 9702 Current Release: 9703 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 9704 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 9705 97062) Linux 9707 9708 Implemented fix for PIIX reverse throttling errata (Processor 9709driver) 9710 9711Added new Limit interface (Processor and Thermal drivers) 9712 9713New thermal policy (Thermal driver) 9714 9715Many updates to /proc 9716 9717Battery "low" event support (Battery driver) 9718 9719Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 9720 9721IA32 - IA64 initialization unification, no longer experimental 9722 9723Menuconfig options redesigned 9724 97253) ASL Compiler, version X2037: 9726 9727Implemented several new output features to simplify integration of 9728AML code into firmware: 1) Output the AML in C source code with 9729labels for each named ASL object. The original ASL source code 9730is interleaved as C comments. 2) Output the AML in ASM source code 9731with labels and interleaved ASL source. 3) Output the AML in 9732raw hex table form, in either C or ASM. 9733 9734Implemented support for optional string parameters to the 9735LoadTable operator. 9736 9737Completed support for embedded escape sequences within string 9738literals. The compiler now supports all single character escapes 9739as well as the Octal and Hex escapes. Note: the insertion of a 9740null byte into a string literal (via the hex/octal escape) causes 9741the string to be immediately terminated. A warning is issued. 9742 9743Fixed a problem where incorrect AML was generated for the case 9744where an ASL namepath consists of a single parent prefix ( 9745 9746) with no trailing name segments. 9747 9748The compiler has been successfully generated with a 64-bit C 9749compiler. 9750 9751 9752 9753 9754---------------------------------------- 9755Summary of changes for this label: 12_18_01 9756 97571) Linux 9758 9759Enhanced blacklist with reason and severity fields. Any table's 9760signature may now be used to identify a blacklisted system. 9761 9762Call _PIC control method to inform the firmware which interrupt 9763model the OS is using. Turn on any disabled link devices. 9764 9765Cleaned up busmgr /proc error handling (Andreas Dilger) 9766 9767 2) ACPI CA Core Subsystem: 9768 9769Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 9770while loop) 9771 9772Completed implementation of the ACPI 2.0 "Continue", 9773"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 9774operators. All new ACPI 2.0 operators are now implemented in both 9775the ASL compiler and the AML interpreter. The only remaining ACPI 97762.0 task is support for the String data type in the DerefOf 9777operator. Fixed a problem with AcquireMutex where the status code 9778was lost if the caller had to actually wait for the mutex. 9779 9780Increased the maximum ASL Field size from 64K bits to 4G bits. 9781 9782Completed implementation of the external Global Lock interfaces -- 9783AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 9784Handler parameters were added. 9785 9786Completed another pass at removing warnings and issues when 9787compiling with 64-bit compilers. The code now compiles cleanly 9788with the Intel 64-bit C/C++ compiler. Most notably, the pointer 9789add and subtract (diff) macros have changed considerably. 9790 9791 9792Created and deployed a new ACPI_SIZE type that is 64-bits wide on 979364-bit platforms, 32-bits on all others. This type is used 9794wherever memory allocation and/or the C sizeof() operator is used, 9795and affects the OSL memory allocation interfaces AcpiOsAllocate 9796and AcpiOsCallocate. 9797 9798Implemented sticky user breakpoints in the AML debugger. 9799 9800Code and Data Size: Current core subsystem library sizes are shown 9801below. These are the code and data sizes for the acpica.lib 9802produced by the Microsoft Visual C++ 6.0 compiler, and these 9803values do not include any ACPI driver or OSPM code. The debug 9804version of the code includes the debug output trace mechanism and 9805has a larger code and data size. Note that these values will vary 9806depending on the efficiency of the compiler and the compiler 9807options used during generation. 9808 9809 Previous Release (12_05_01) 9810 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 9811 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 9812 Current Release: 9813 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 9814 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 9815 9816 3) ASL Compiler, version X2034: 9817 9818Now checks for (and generates an error if detected) the use of a 9819Break or Continue statement without an enclosing While statement. 9820 9821 9822Successfully generated the compiler with the Intel 64-bit C 9823compiler. 9824 9825 ---------------------------------------- 9826Summary of changes for this label: 12_05_01 9827 9828 1) ACPI CA Core Subsystem: 9829 9830The ACPI 2.0 CopyObject operator is fully implemented. This 9831operator creates a new copy of an object (and is also used to 9832bypass the "implicit conversion" mechanism of the Store operator.) 9833 9834The ACPI 2.0 semantics for the SizeOf operator are fully 9835implemented. The change is that performing a SizeOf on a 9836reference object causes an automatic dereference of the object to 9837tha actual value before the size is evaluated. This behavior was 9838undefined in ACPI 1.0. 9839 9840The ACPI 2.0 semantics for the Extended IRQ resource descriptor 9841have been implemented. The interrupt polarity and mode are now 9842independently set. 9843 9844Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 9845appearing in Package objects were not properly converted to 9846integers when the internal Package was converted to an external 9847object (via the AcpiEvaluateObject interface.) 9848 9849Fixed a problem with the namespace object deletion mechanism for 9850objects created by control methods. There were two parts to this 9851problem: 1) Objects created during the initialization phase method 9852parse were not being deleted, and 2) The object owner ID mechanism 9853to track objects was broken. 9854 9855Fixed a problem where the use of the ASL Scope operator within a 9856control method would result in an invalid opcode exception. 9857 9858Fixed a problem introduced in the previous label where the buffer 9859length required for the _PRT structure was not being returned 9860correctly. 9861 9862Code and Data Size: Current core subsystem library sizes are shown 9863below. These are the code and data sizes for the acpica.lib 9864produced by the Microsoft Visual C++ 6.0 compiler, and these 9865values do not include any ACPI driver or OSPM code. The debug 9866version of the code includes the debug output trace mechanism and 9867has a larger code and data size. Note that these values will vary 9868depending on the efficiency of the compiler and the compiler 9869options used during generation. 9870 9871 Previous Release (11_20_01) 9872 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 9873 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 9874 9875 Current Release: 9876 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 9877 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 9878 9879 2) Linux: 9880 9881Updated all files to apply cleanly against 2.4.16. 9882 9883Added basic PCI Interrupt Routing Table (PRT) support for IA32 9884(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 9885version supports both static and dyanmic PRT entries, but dynamic 9886entries are treated as if they were static (not yet 9887reconfigurable). Architecture- specific code to use this data is 9888absent on IA32 but should be available shortly. 9889 9890Changed the initialization sequence to start the ACPI interpreter 9891(acpi_init) prior to initialization of the PCI driver (pci_init) 9892in init/main.c. This ordering is required to support PRT and 9893facilitate other (future) enhancement. A side effect is that the 9894ACPI bus driver and certain device drivers can no longer be loaded 9895as modules. 9896 9897Modified the 'make menuconfig' options to allow PCI Interrupt 9898Routing support to be included without the ACPI Bus and other 9899device drivers. 9900 9901 3) ASL Compiler, version X2033: 9902 9903Fixed some issues with the use of the new CopyObject and 9904DataTableRegion operators. Both are fully functional. 9905 9906 ---------------------------------------- 9907Summary of changes for this label: 11_20_01 9908 9909 20 November 2001. Summary of changes for this release. 9910 9911 1) ACPI CA Core Subsystem: 9912 9913Updated Index support to match ACPI 2.0 semantics. Storing a 9914Integer, String, or Buffer to an Index of a Buffer will store only 9915the least-significant byte of the source to the Indexed buffer 9916byte. Multiple writes are not performed. 9917 9918Fixed a problem where the access type used in an AccessAs ASL 9919operator was not recorded correctly into the field object. 9920 9921Fixed a problem where ASL Event objects were created in a 9922signalled state. Events are now created in an unsignalled state. 9923 9924The internal object cache is now purged after table loading and 9925initialization to reduce the use of dynamic kernel memory -- on 9926the assumption that object use is greatest during the parse phase 9927of the entire table (versus the run-time use of individual control 9928methods.) 9929 9930ACPI 2.0 variable-length packages are now fully operational. 9931 9932Code and Data Size: Code and Data optimizations have permitted new 9933feature development with an actual reduction in the library size. 9934Current core subsystem library sizes are shown below. These are 9935the code and data sizes for the acpica.lib produced by the 9936Microsoft Visual C++ 6.0 compiler, and these values do not include 9937any ACPI driver or OSPM code. The debug version of the code 9938includes the debug output trace mechanism and has a larger code 9939and data size. Note that these values will vary depending on the 9940efficiency of the compiler and the compiler options used during 9941generation. 9942 9943 Previous Release (11_09_01): 9944 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 9945 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 9946 9947 Current Release: 9948 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 9949 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 9950 9951 2) Linux: 9952 9953Enhanced the ACPI boot-time initialization code to allow the use 9954of Local APIC tables for processor enumeration on IA-32, and to 9955pave the way for a fully MPS-free boot (on SMP systems) in the 9956near future. This functionality replaces 9957arch/i386/kernel/acpitables.c, which was introduced in an earlier 99582.4.15-preX release. To enable this feature you must add 9959"acpi_boot=on" to the kernel command line -- see the help entry 9960for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 9961the works... 9962 9963Restructured the configuration options to allow boot-time table 9964parsing support without inclusion of the ACPI Interpreter (and 9965other) code. 9966 9967NOTE: This release does not include fixes for the reported events, 9968power-down, and thermal passive cooling issues (coming soon). 9969 9970 3) ASL Compiler: 9971 9972Added additional typechecking for Fields within restricted access 9973Operation Regions. All fields within EC and CMOS regions must be 9974declared with ByteAcc. All fields withing SMBus regions must be 9975declared with the BufferAcc access type. 9976 9977Fixed a problem where the listing file output of control methods 9978no longer interleaved the actual AML code with the ASL source 9979code. 9980 9981 9982 9983 9984---------------------------------------- 9985Summary of changes for this label: 11_09_01 9986 99871) ACPI CA Core Subsystem: 9988 9989Implemented ACPI 2.0-defined support for writes to fields with a 9990Buffer, String, or Integer source operand that is smaller than the 9991target field. In these cases, the source operand is zero-extended 9992to fill the target field. 9993 9994Fixed a problem where a Field starting bit offset (within the 9995parent operation region) was calculated incorrectly if the 9996 9997alignment of the field differed from the access width. This 9998affected CreateWordField, CreateDwordField, CreateQwordField, and 9999possibly other fields that use the "AccessAny" keyword. 10000 10001Fixed a problem introduced in the 11_02_01 release where indirect 10002stores through method arguments did not operate correctly. 10003 100042) Linux: 10005 10006Implemented boot-time ACPI table parsing support 10007(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 10008facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 10009legacy BIOS interfaces (e.g. MPS) for the configuration of system 10010processors, memory, and interrupts during setup_arch(). Note that 10011this patch does not include the required architecture-specific 10012changes required to apply this information -- subsequent patches 10013will be posted for both IA32 and IA64 to achieve this. 10014 10015Added low-level sleep support for IA32 platforms, courtesy of Pat 10016Mochel. This allows IA32 systems to transition to/from various 10017sleeping states (e.g. S1, S3), although the lack of a centralized 10018driver model and power-manageable drivers will prevent its 10019(successful) use on most systems. 10020 10021Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 10022submenu, unified IA32 and IA64 options, added new "Boot using ACPI 10023tables" option, etc. 10024 10025Increased the default timeout for the EC driver from 1ms to 10ms 10026(1000 cycles of 10us) to try to address AE_TIME errors during EC 10027transactions. 10028 10029 ---------------------------------------- 10030Summary of changes for this label: 11_02_01 10031 100321) ACPI CA Core Subsystem: 10033 10034ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 10035(QWordAcc keyword). All ACPI 2.0 64-bit support is now 10036implemented. 10037 10038OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 10039changes to support ACPI 2.0 Qword field access. Read/Write 10040PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 10041accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 10042the value parameter for the address space handler interface is now 10043an ACPI_INTEGER. OSL implementations of these interfaces must now 10044handle the case where the Width parameter is 64. 10045 10046Index Fields: Fixed a problem where unaligned bit assembly and 10047disassembly for IndexFields was not supported correctly. 10048 10049Index and Bank Fields: Nested Index and Bank Fields are now 10050supported. During field access, a check is performed to ensure 10051that the value written to an Index or Bank register is not out of 10052the range of the register. The Index (or Bank) register is 10053written before each access to the field data. Future support will 10054include allowing individual IndexFields to be wider than the 10055DataRegister width. 10056 10057Fields: Fixed a problem where the AML interpreter was incorrectly 10058attempting to write beyond the end of a Field/OpRegion. This was 10059a boundary case that occurred when a DWORD field was written to a 10060BYTE access OpRegion, forcing multiple writes and causing the 10061interpreter to write one datum too many. 10062 10063Fields: Fixed a problem with Field/OpRegion access where the 10064starting bit address of a field was incorrectly calculated if the 10065current access type was wider than a byte (WordAcc, DwordAcc, or 10066QwordAcc). 10067 10068Fields: Fixed a problem where forward references to individual 10069FieldUnits (individual Field names within a Field definition) were 10070not resolved during the AML table load. 10071 10072Fields: Fixed a problem where forward references from a Field 10073definition to the parent Operation Region definition were not 10074resolved during the AML table load. 10075 10076Fields: Duplicate FieldUnit names within a scope are now detected 10077during AML table load. 10078 10079Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 10080returned an incorrect name for the root node. 10081 10082Code and Data Size: Code and Data optimizations have permitted new 10083feature development with an actual reduction in the library size. 10084Current core subsystem library sizes are shown below. These are 10085the code and data sizes for the acpica.lib produced by the 10086Microsoft Visual C++ 6.0 compiler, and these values do not include 10087any ACPI driver or OSPM code. The debug version of the code 10088includes the debug output trace mechanism and has a larger code 10089and data size. Note that these values will vary depending on the 10090efficiency of the compiler and the compiler options used during 10091generation. 10092 10093 Previous Release (10_18_01): 10094 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 10095 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 10096 10097 Current Release: 10098 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 10099 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 10100 10101 2) Linux: 10102 10103Improved /proc processor output (Pavel Machek) Re-added 10104MODULE_LICENSE("GPL") to all modules. 10105 10106 3) ASL Compiler version X2030: 10107 10108Duplicate FieldUnit names within a scope are now detected and 10109flagged as errors. 10110 10111 4) Documentation: 10112 10113Programmer Reference updated to reflect OSL and address space 10114handler interface changes described above. 10115 10116---------------------------------------- 10117Summary of changes for this label: 10_18_01 10118 10119ACPI CA Core Subsystem: 10120 10121Fixed a problem with the internal object reference count mechanism 10122that occasionally caused premature object deletion. This resolves 10123all of the outstanding problem reports where an object is deleted 10124in the middle of an interpreter evaluation. Although this problem 10125only showed up in rather obscure cases, the solution to the 10126problem involved an adjustment of all reference counts involving 10127objects attached to namespace nodes. 10128 10129Fixed a problem with Field support in the interpreter where 10130writing to an aligned field whose length is an exact multiple (2 10131or greater) of the field access granularity would cause an attempt 10132to write beyond the end of the field. 10133 10134The top level AML opcode execution functions within the 10135interpreter have been renamed with a more meaningful and 10136consistent naming convention. The modules exmonad.c and 10137exdyadic.c were eliminated. New modules are exoparg1.c, 10138exoparg2.c, exoparg3.c, and exoparg6.c. 10139 10140Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 10141 10142Fixed a problem where the AML debugger was causing some internal 10143objects to not be deleted during subsystem termination. 10144 10145Fixed a problem with the external AcpiEvaluateObject interface 10146where the subsystem would fault if the named object to be 10147evaluated refered to a constant such as Zero, Ones, etc. 10148 10149Fixed a problem with IndexFields and BankFields where the 10150subsystem would fault if the index, data, or bank registers were 10151not defined in the same scope as the field itself. 10152 10153Added printf format string checking for compilers that support 10154this feature. Corrected more than 50 instances of issues with 10155format specifiers within invocations of ACPI_DEBUG_PRINT 10156throughout the core subsystem code. 10157 10158The ASL "Revision" operator now returns the ACPI support level 10159implemented in the core - the value "2" since the ACPI 2.0 support 10160is more than 50% implemented. 10161 10162Enhanced the output of the AML debugger "dump namespace" command 10163to output in a more human-readable form. 10164 10165Current core subsystem library code sizes are shown below. These 10166 10167are the code and data sizes for the acpica.lib produced by the 10168Microsoft Visual C++ 6.0 compiler, and these values do not include 10169any ACPI driver or OSPM code. The debug version of the code 10170includes the full debug trace mechanism -- leading to a much 10171 10172larger code and data size. Note that these values will vary 10173depending on the efficiency of the compiler and the compiler 10174options used during generation. 10175 10176 Previous Label (09_20_01): 10177 Non-Debug Version: 65K Code, 5K Data, 70K Total 10178 Debug Version: 138K Code, 58K Data, 196K Total 10179 10180 This Label: 10181 10182 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 10183 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 10184 10185Linux: 10186 10187Implemented a "Bad BIOS Blacklist" to track machines that have 10188known ASL/AML problems. 10189 10190Enhanced the /proc interface for the thermal zone driver and added 10191support for _HOT (the critical suspend trip point). The 'info' 10192file now includes threshold/policy information, and allows setting 10193of _SCP (cooling preference) and _TZP (polling frequency) values 10194to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 10195frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 10196preference to the passive/quiet mode (if supported by the ASL). 10197 10198Implemented a workaround for a gcc bug that resuted in an OOPs 10199when loading the control method battery driver. 10200 10201 ---------------------------------------- 10202Summary of changes for this label: 09_20_01 10203 10204 ACPI CA Core Subsystem: 10205 10206The AcpiEnableEvent and AcpiDisableEvent interfaces have been 10207modified to allow individual GPE levels to be flagged as wake- 10208enabled (i.e., these GPEs are to remain enabled when the platform 10209sleeps.) 10210 10211The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 10212support wake-enabled GPEs. This means that upon entering the 10213sleep state, all GPEs that are not wake-enabled are disabled. 10214When leaving the sleep state, these GPEs are reenabled. 10215 10216A local double-precision divide/modulo module has been added to 10217enhance portability to OS kernels where a 64-bit math library is 10218not available. The new module is "utmath.c". 10219 10220Several optimizations have been made to reduce the use of CPU 10221stack. Originally over 2K, the maximum stack usage is now below 102222K at 1860 bytes (1.82k) 10223 10224Fixed a problem with the AcpiGetFirmwareTable interface where the 10225root table pointer was not mapped into a logical address properly. 10226 10227Fixed a problem where a NULL pointer was being dereferenced in the 10228interpreter code for the ASL Notify operator. 10229 10230Fixed a problem where the use of the ASL Revision operator 10231returned an error. This operator now returns the current version 10232of the ACPI CA core subsystem. 10233 10234Fixed a problem where objects passed as control method parameters 10235to AcpiEvaluateObject were always deleted at method termination. 10236However, these objects may end up being stored into the namespace 10237by the called method. The object reference count mechanism was 10238applied to these objects instead of a force delete. 10239 10240Fixed a problem where static strings or buffers (contained in the 10241AML code) that are declared as package elements within the ASL 10242code could cause a fault because the interpreter would attempt to 10243delete them. These objects are now marked with the "static 10244object" flag to prevent any attempt to delete them. 10245 10246Implemented an interpreter optimization to use operands directly 10247from the state object instead of extracting the operands to local 10248variables. This reduces stack use and code size, and improves 10249performance. 10250 10251The module exxface.c was eliminated as it was an unnecessary extra 10252layer of code. 10253 10254Current core subsystem library code sizes are shown below. These 10255are the code and data sizes for the acpica.lib produced by the 10256Microsoft Visual C++ 6.0 compiler, and these values do not include 10257any ACPI driver or OSPM code. The debug version of the code 10258includes the full debug trace mechanism -- leading to a much 10259larger code and data size. Note that these values will vary 10260depending on the efficiency of the compiler and the compiler 10261options used during generation. 10262 10263 Non-Debug Version: 65K Code, 5K Data, 70K Total 10264(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 10265Total (Previously 195K) 10266 10267Linux: 10268 10269Support for ACPI 2.0 64-bit integers has been added. All ACPI 10270Integer objects are now 64 bits wide 10271 10272All Acpi data types and structures are now in lower case. Only 10273Acpi macros are upper case for differentiation. 10274 10275 Documentation: 10276 10277Changes to the external interfaces as described above. 10278 10279 ---------------------------------------- 10280Summary of changes for this label: 08_31_01 10281 10282 ACPI CA Core Subsystem: 10283 10284A bug with interpreter implementation of the ASL Divide operator 10285was found and fixed. The implicit function return value (not the 10286explicit store operands) was returning the remainder instead of 10287the quotient. This was a longstanding bug and it fixes several 10288known outstanding issues on various platforms. 10289 10290The ACPI_DEBUG_PRINT and function trace entry/exit macros have 10291been further optimized for size. There are 700 invocations of the 10292DEBUG_PRINT macro alone, so each optimization reduces the size of 10293the debug version of the subsystem significantly. 10294 10295A stack trace mechanism has been implemented. The maximum stack 10296usage is about 2K on 32-bit platforms. The debugger command "stat 10297stack" will display the current maximum stack usage. 10298 10299All public symbols and global variables within the subsystem are 10300now prefixed with the string "Acpi". This keeps all of the 10301symbols grouped together in a kernel map, and avoids conflicts 10302with other kernel subsystems. 10303 10304Most of the internal fixed lookup tables have been moved into the 10305code segment via the const operator. 10306 10307Several enhancements have been made to the interpreter to both 10308reduce the code size and improve performance. 10309 10310Current core subsystem library code sizes are shown below. These 10311are the code and data sizes for the acpica.lib produced by the 10312Microsoft Visual C++ 6.0 compiler, and these values do not include 10313any ACPI driver or OSPM code. The debug version of the code 10314includes the full debug trace mechanism which contains over 700 10315invocations of the DEBUG_PRINT macro, 500 function entry macro 10316invocations, and over 900 function exit macro invocations -- 10317leading to a much larger code and data size. Note that these 10318values will vary depending on the efficiency of the compiler and 10319the compiler options used during generation. 10320 10321 Non-Debug Version: 64K Code, 5K Data, 69K Total 10322Debug Version: 137K Code, 58K Data, 195K Total 10323 10324 Linux: 10325 10326Implemented wbinvd() macro, pending a kernel-wide definition. 10327 10328Fixed /proc/acpi/event to handle poll() and short reads. 10329 10330 ASL Compiler, version X2026: 10331 10332Fixed a problem introduced in the previous label where the AML 10333 10334code emitted for package objects produced packages with zero 10335length. 10336 10337 ---------------------------------------- 10338Summary of changes for this label: 08_16_01 10339 10340ACPI CA Core Subsystem: 10341 10342The following ACPI 2.0 ASL operators have been implemented in the 10343AML interpreter (These are already supported by the Intel ASL 10344compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 10345ToBuffer. Support for 64-bit AML constants is implemented in the 10346AML parser, debugger, and disassembler. 10347 10348The internal memory tracking mechanism (leak detection code) has 10349been upgraded to reduce the memory overhead (a separate tracking 10350block is no longer allocated for each memory allocation), and now 10351supports all of the internal object caches. 10352 10353The data structures and code for the internal object caches have 10354been coelesced and optimized so that there is a single cache and 10355memory list data structure and a single group of functions that 10356implement generic cache management. This has reduced the code 10357size in both the debug and release versions of the subsystem. 10358 10359The DEBUG_PRINT macro(s) have been optimized for size and replaced 10360by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 10361different, because it generates a single call to an internal 10362function. This results in a savings of about 90 bytes per 10363invocation, resulting in an overall code and data savings of about 1036416% in the debug version of the subsystem. 10365 10366 Linux: 10367 10368Fixed C3 disk corruption problems and re-enabled C3 on supporting 10369machines. 10370 10371Integrated low-level sleep code by Patrick Mochel. 10372 10373Further tweaked source code Linuxization. 10374 10375Other minor fixes. 10376 10377 ASL Compiler: 10378 10379Support for ACPI 2.0 variable length packages is fixed/completed. 10380 10381Fixed a problem where the optional length parameter for the ACPI 103822.0 ToString operator. 10383 10384Fixed multiple extraneous error messages when a syntax error is 10385detected within the declaration line of a control method. 10386 10387 ---------------------------------------- 10388Summary of changes for this label: 07_17_01 10389 10390ACPI CA Core Subsystem: 10391 10392Added a new interface named AcpiGetFirmwareTable to obtain any 10393ACPI table via the ACPI signature. The interface can be called at 10394any time during kernel initialization, even before the kernel 10395virtual memory manager is initialized and paging is enabled. This 10396allows kernel subsystems to obtain ACPI tables very early, even 10397before the ACPI CA subsystem is initialized. 10398 10399Fixed a problem where Fields defined with the AnyAcc attribute 10400could be resolved to the incorrect address under the following 10401conditions: 1) the field width is larger than 8 bits and 2) the 10402parent operation region is not defined on a DWORD boundary. 10403 10404Fixed a problem where the interpreter is not being locked during 10405namespace initialization (during execution of the _INI control 10406methods), causing an error when an attempt is made to release it 10407later. 10408 10409ACPI 2.0 support in the AML Interpreter has begun and will be 10410ongoing throughout the rest of this year. In this label, The Mod 10411operator is implemented. 10412 10413Added a new data type to contain full PCI addresses named 10414ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 10415and Function values. 10416 10417 Linux: 10418 10419Enhanced the Linux version of the source code to change most 10420capitalized ACPI type names to lowercase. For example, all 10421instances of ACPI_STATUS are changed to acpi_status. This will 10422result in a large diff, but the change is strictly cosmetic and 10423aligns the CA code closer to the Linux coding standard. 10424 10425OSL Interfaces: 10426 10427The interfaces to the PCI configuration space have been changed to 10428add the PCI Segment number and to split the single 32-bit combined 10429DeviceFunction field into two 16-bit fields. This was 10430accomplished by moving the four values that define an address in 10431PCI configuration space (segment, bus, device, and function) to 10432the new ACPI_PCI_ID structure. 10433 10434The changes to the PCI configuration space interfaces led to a 10435reexamination of the complete set of address space access 10436interfaces for PCI, I/O, and Memory. The previously existing 18 10437interfaces have proven difficult to maintain (any small change 10438must be propagated across at least 6 interfaces) and do not easily 10439allow for future expansion to 64 bits if necessary. Also, on some 10440systems, it would not be appropriate to demultiplex the access 10441width (8, 16, 32,or 64) before calling the OSL if the 10442corresponding native OS interfaces contain a similar access width 10443parameter. For these reasons, the 18 address space interfaces 10444have been replaced by these 6 new ones: 10445 10446AcpiOsReadPciConfiguration 10447AcpiOsWritePciConfiguration 10448AcpiOsReadMemory 10449AcpiOsWriteMemory 10450AcpiOsReadPort 10451AcpiOsWritePort 10452 10453Added a new interface named AcpiOsGetRootPointer to allow the OSL 10454to perform the platform and/or OS-specific actions necessary to 10455obtain the ACPI RSDP table pointer. On IA-32 platforms, this 10456interface will simply call down to the CA core to perform the low- 10457memory search for the table. On IA-64, the RSDP is obtained from 10458EFI. Migrating this interface to the OSL allows the CA core to 10459 10460remain OS and platform independent. 10461 10462Added a new interface named AcpiOsSignal to provide a generic 10463"function code and pointer" interface for various miscellaneous 10464signals and notifications that must be made to the host OS. The 10465first such signals are intended to support the ASL Fatal and 10466Breakpoint operators. In the latter case, the AcpiOsBreakpoint 10467interface has been obsoleted. 10468 10469The definition of the AcpiFormatException interface has been 10470changed to simplify its use. The caller no longer must supply a 10471buffer to the call; A pointer to a const string is now returned 10472directly. This allows the call to be easily used in printf 10473statements, etc. since the caller does not have to manage a local 10474buffer. 10475 10476 10477 ASL Compiler, Version X2025: 10478 10479The ACPI 2.0 Switch/Case/Default operators have been implemented 10480and are fully functional. They will work with all ACPI 1.0 10481interpreters, since the operators are simply translated to If/Else 10482pairs. 10483 10484The ACPI 2.0 ElseIf operator is implemented and will also work 10485with 1.0 interpreters, for the same reason. 10486 10487Implemented support for ACPI 2.0 variable-length packages. These 10488packages have a separate opcode, and their size is determined by 10489the interpreter at run-time. 10490 10491Documentation The ACPI CA Programmer Reference has been updated to 10492reflect the new interfaces and changes to existing interfaces. 10493 10494 ------------------------------------------ 10495Summary of changes for this label: 06_15_01 10496 10497 ACPI CA Core Subsystem: 10498 10499Fixed a problem where a DWORD-accessed field within a Buffer 10500object would get its byte address inadvertently rounded down to 10501the nearest DWORD. Buffers are always Byte-accessible. 10502 10503 ASL Compiler, version X2024: 10504 10505Fixed a problem where the Switch() operator would either fault or 10506hang the compiler. Note however, that the AML code for this ACPI 105072.0 operator is not yet implemented. 10508 10509Compiler uses the new AcpiOsGetTimer interface to obtain compile 10510timings. 10511 10512Implementation of the CreateField operator automatically converts 10513a reference to a named field within a resource descriptor from a 10514byte offset to a bit offset if required. 10515 10516Added some missing named fields from the resource descriptor 10517support. These are the names that are automatically created by the 10518compiler to reference fields within a descriptor. They are only 10519valid at compile time and are not passed through to the AML 10520interpreter. 10521 10522Resource descriptor named fields are now typed as Integers and 10523subject to compile-time typechecking when used in expressions. 10524 10525 ------------------------------------------ 10526Summary of changes for this label: 05_18_01 10527 10528 ACPI CA Core Subsystem: 10529 10530Fixed a couple of problems in the Field support code where bits 10531from adjacent fields could be returned along with the proper field 10532bits. Restructured the field support code to improve performance, 10533readability and maintainability. 10534 10535New DEBUG_PRINTP macro automatically inserts the procedure name 10536into the output, saving hundreds of copies of procedure name 10537strings within the source, shrinking the memory footprint of the 10538debug version of the core subsystem. 10539 10540 Source Code Structure: 10541 10542The source code directory tree was restructured to reflect the 10543current organization of the component architecture. Some files 10544and directories have been moved and/or renamed. 10545 10546 Linux: 10547 10548Fixed leaking kacpidpc processes. 10549 10550Fixed queueing event data even when /proc/acpi/event is not 10551opened. 10552 10553 ASL Compiler, version X2020: 10554 10555Memory allocation performance enhancement - over 24X compile time 10556improvement on large ASL files. Parse nodes and namestring 10557buffers are now allocated from a large internal compiler buffer. 10558 10559The temporary .SRC file is deleted unless the "-s" option is 10560specified 10561 10562The "-d" debug output option now sends all output to the .DBG file 10563instead of the console. 10564 10565"External" second parameter is now optional 10566 10567"ElseIf" syntax now properly allows the predicate 10568 10569Last operand to "Load" now recognized as a Target operand 10570 10571Debug object can now be used anywhere as a normal object. 10572 10573ResourceTemplate now returns an object of type BUFFER 10574 10575EISAID now returns an object of type INTEGER 10576 10577"Index" now works with a STRING operand 10578 10579"LoadTable" now accepts optional parameters 10580 10581"ToString" length parameter is now optional 10582 10583"Interrupt (ResourceType," parse error fixed. 10584 10585"Register" with a user-defined region space parse error fixed 10586 10587Escaped backslash at the end of a string ("\\") scan/parse error 10588fixed 10589 10590"Revision" is now an object of type INTEGER. 10591 10592 10593 10594------------------------------------------ 10595Summary of changes for this label: 05_02_01 10596 10597Linux: 10598 10599/proc/acpi/event now blocks properly. 10600 10601Removed /proc/sys/acpi. You can still dump your DSDT from 10602/proc/acpi/dsdt. 10603 10604 ACPI CA Core Subsystem: 10605 10606Fixed a problem introduced in the previous label where some of the 10607"small" resource descriptor types were not recognized. 10608 10609Improved error messages for the case where an ASL Field is outside 10610the range of the parent operation region. 10611 10612 ASL Compiler, version X2018: 10613 10614 10615Added error detection for ASL Fields that extend beyond the length 10616of the parent operation region (only if the length of the region 10617is known at compile time.) This includes fields that have a 10618minimum access width that is smaller than the parent region, and 10619individual field units that are partially or entirely beyond the 10620extent of the parent. 10621 10622 10623 10624------------------------------------------ 10625Summary of changes for this label: 04_27_01 10626 10627 ACPI CA Core Subsystem: 10628 10629Fixed a problem where the namespace mutex could be released at the 10630wrong time during execution of AcpiRemoveAddressSpaceHandler. 10631 10632Added optional thread ID output for debug traces, to simplify 10633debugging of multiple threads. Added context switch notification 10634when the debug code realizes that a different thread is now 10635executing ACPI code. 10636 10637Some additional external data types have been prefixed with the 10638string "ACPI_" for consistency. This may effect existing code. 10639The data types affected are the external callback typedefs - e.g., 10640 10641WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 10642 10643 Linux: 10644 10645Fixed an issue with the OSL semaphore implementation where a 10646thread was waking up with an error from receiving a SIGCHLD 10647signal. 10648 10649Linux version of ACPI CA now uses the system C library for string 10650manipulation routines instead of a local implementation. 10651 10652Cleaned up comments and removed TBDs. 10653 10654 ASL Compiler, version X2017: 10655 10656Enhanced error detection and reporting for all file I/O 10657operations. 10658 10659 Documentation: 10660 10661Programmer Reference updated to version 1.06. 10662 10663 10664 10665------------------------------------------ 10666Summary of changes for this label: 04_13_01 10667 10668 ACPI CA Core Subsystem: 10669 10670Restructured support for BufferFields and RegionFields. 10671BankFields support is now fully operational. All known 32-bit 10672limitations on field sizes have been removed. Both BufferFields 10673and (Operation) RegionFields are now supported by the same field 10674management code. 10675 10676Resource support now supports QWORD address and IO resources. The 1067716/32/64 bit address structures and the Extended IRQ structure 10678have been changed to properly handle Source Resource strings. 10679 10680A ThreadId of -1 is now used to indicate a "mutex not acquired" 10681condition internally and must never be returned by AcpiOsThreadId. 10682This reserved value was changed from 0 since Unix systems allow a 10683thread ID of 0. 10684 10685Linux: 10686 10687Driver code reorganized to enhance portability 10688 10689Added a kernel configuration option to control ACPI_DEBUG 10690 10691Fixed the EC driver to honor _GLK. 10692 10693ASL Compiler, version X2016: 10694 10695Fixed support for the "FixedHw" keyword. Previously, the FixedHw 10696address space was set to 0, not 0x7f as it should be. 10697 10698 ------------------------------------------ 10699Summary of changes for this label: 03_13_01 10700 10701 ACPI CA Core Subsystem: 10702 10703During ACPI initialization, the _SB_._INI method is now run if 10704present. 10705 10706Notify handler fix - notifies are deferred until the parent method 10707completes execution. This fixes the "mutex already acquired" 10708issue seen occasionally. 10709 10710Part of the "implicit conversion" rules in ACPI 2.0 have been 10711found to cause compatibility problems with existing ASL/AML. The 10712convert "result-to-target-type" implementation has been removed 10713for stores to method Args and Locals. Source operand conversion 10714is still fully implemented. Possible changes to ACPI 2.0 10715specification pending. 10716 10717Fix to AcpiRsCalculatePciRoutingTableLength to return correct 10718length. 10719 10720Fix for compiler warnings for 64-bit compiles. 10721 10722 Linux: 10723 10724/proc output aligned for easier parsing. 10725 10726Release-version compile problem fixed. 10727 10728New kernel configuration options documented in Configure.help. 10729 10730IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 10731context" message. 10732 10733 OSPM: 10734 10735Power resource driver integrated with bus manager. 10736 10737Fixed kernel fault during active cooling for thermal zones. 10738 10739Source Code: 10740 10741The source code tree has been restructured. 10742 10743 10744 10745------------------------------------------ 10746Summary of changes for this label: 03_02_01 10747 10748 Linux OS Services Layer (OSL): 10749 10750Major revision of all Linux-specific code. 10751 10752Modularized all ACPI-specific drivers. 10753 10754Added new thermal zone and power resource drivers. 10755 10756Revamped /proc interface (new functionality is under /proc/acpi). 10757 10758New kernel configuration options. 10759 10760 Linux known issues: 10761 10762New kernel configuration options not documented in Configure.help 10763yet. 10764 10765 10766Module dependencies not currently implemented. If used, they 10767should be loaded in this order: busmgr, power, ec, system, 10768processor, battery, ac_adapter, button, thermal. 10769 10770Modules will not load if CONFIG_MODVERSION is set. 10771 10772IBM 600E - entering S5 may reboot instead of shutting down. 10773 10774IBM 600E - Sleep button may generate "Invalid <NULL> context" 10775message. 10776 10777Some systems may fail with "execution mutex already acquired" 10778message. 10779 10780 ACPI CA Core Subsystem: 10781 10782Added a new OSL Interface, AcpiOsGetThreadId. This was required 10783for the deadlock detection code. Defined to return a non-zero, 32- 10784bit thread ID for the currently executing thread. May be a non- 10785zero constant integer on single-thread systems. 10786 10787Implemented deadlock detection for internal subsystem mutexes. We 10788may add conditional compilation for this code (debug only) later. 10789 10790ASL/AML Mutex object semantics are now fully supported. This 10791includes multiple acquires/releases by owner and support for the 10792 10793Mutex SyncLevel parameter. 10794 10795A new "Force Release" mechanism automatically frees all ASL 10796Mutexes that have been acquired but not released when a thread 10797exits the interpreter. This forces conformance to the ACPI spec 10798("All mutexes must be released when an invocation exits") and 10799prevents deadlocked ASL threads. This mechanism can be expanded 10800(later) to monitor other resource acquisitions if OEM ASL code 10801continues to misbehave (which it will). 10802 10803Several new ACPI exception codes have been added for the Mutex 10804support. 10805 10806Recursive method calls are now allowed and supported (the ACPI 10807spec does in fact allow recursive method calls.) The number of 10808recursive calls is subject to the restrictions imposed by the 10809SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 10810parameter. 10811 10812Implemented support for the SyncLevel parameter for control 10813methods (ACPI 2.0 feature) 10814 10815Fixed a deadlock problem when multiple threads attempted to use 10816the interpreter. 10817 10818Fixed a problem where the string length of a String package 10819element was not always set in a package returned from 10820AcpiEvaluateObject. 10821 10822Fixed a problem where the length of a String package element was 10823not always included in the length of the overall package returned 10824from AcpiEvaluateObject. 10825 10826Added external interfaces (Acpi*) to the ACPI debug memory 10827manager. This manager keeps a list of all outstanding 10828allocations, and can therefore detect memory leaks and attempts to 10829free memory blocks more than once. Useful for code such as the 10830power manager, etc. May not be appropriate for device drivers. 10831Performance with the debug code enabled is slow. 10832 10833The ACPI Global Lock is now an optional hardware element. 10834 10835 ASL Compiler Version X2015: 10836 10837Integrated changes to allow the compiler to be generated on 10838multiple platforms. 10839 10840Linux makefile added to generate the compiler on Linux 10841 10842 Source Code: 10843 10844All platform-specific headers have been moved to their own 10845subdirectory, Include/Platform. 10846 10847New source file added, Interpreter/ammutex.c 10848 10849New header file, Include/acstruct.h 10850 10851 Documentation: 10852 10853The programmer reference has been updated for the following new 10854interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 10855 10856 ------------------------------------------ 10857Summary of changes for this label: 02_08_01 10858 10859Core ACPI CA Subsystem: Fixed a problem where an error was 10860incorrectly returned if the return resource buffer was larger than 10861the actual data (in the resource interfaces). 10862 10863References to named objects within packages are resolved to the 10864 10865full pathname string before packages are returned directly (via 10866the AcpiEvaluateObject interface) or indirectly via the resource 10867interfaces. 10868 10869Linux OS Services Layer (OSL): 10870 10871Improved /proc battery interface. 10872 10873 10874Added C-state debugging output and other miscellaneous fixes. 10875 10876ASL Compiler Version X2014: 10877 10878All defined method arguments can now be used as local variables, 10879including the ones that are not actually passed in as parameters. 10880The compiler tracks initialization of the arguments and issues an 10881exception if they are used without prior assignment (just like 10882locals). 10883 10884The -o option now specifies a filename prefix that is used for all 10885output files, including the AML output file. Otherwise, the 10886default behavior is as follows: 1) the AML goes to the file 10887specified in the DSDT. 2) all other output files use the input 10888source filename as the base. 10889 10890 ------------------------------------------ 10891Summary of changes for this label: 01_25_01 10892 10893Core ACPI CA Subsystem: Restructured the implementation of object 10894store support within the interpreter. This includes support for 10895the Store operator as well as any ASL operators that include a 10896target operand. 10897 10898Partially implemented support for Implicit Result-to-Target 10899conversion. This is when a result object is converted on the fly 10900to the type of an existing target object. Completion of this 10901support is pending further analysis of the ACPI specification 10902concerning this matter. 10903 10904CPU-specific code has been removed from the subsystem (hardware 10905directory). 10906 10907New Power Management Timer functions added 10908 10909Linux OS Services Layer (OSL): Moved system state transition code 10910to the core, fixed it, and modified Linux OSL accordingly. 10911 10912Fixed C2 and C3 latency calculations. 10913 10914 10915We no longer use the compilation date for the version message on 10916initialization, but retrieve the version from AcpiGetSystemInfo(). 10917 10918Incorporated for fix Sony VAIO machines. 10919 10920Documentation: The Programmer Reference has been updated and 10921reformatted. 10922 10923 10924ASL Compiler: Version X2013: Fixed a problem where the line 10925numbering and error reporting could get out of sync in the 10926presence of multiple include files. 10927 10928 ------------------------------------------ 10929Summary of changes for this label: 01_15_01 10930 10931Core ACPI CA Subsystem: 10932 10933Implemented support for type conversions in the execution of the 10934ASL Concatenate operator (The second operand is converted to 10935match the type of the first operand before concatenation.) 10936 10937Support for implicit source operand conversion is partially 10938implemented. The ASL source operand types Integer, Buffer, and 10939String are freely interchangeable for most ASL operators and are 10940converted by the interpreter on the fly as required. Implicit 10941Target operand conversion (where the result is converted to the 10942target type before storing) is not yet implemented. 10943 10944Support for 32-bit and 64-bit BCD integers is implemented. 10945 10946Problem fixed where a field read on an aligned field could cause a 10947read past the end of the field. 10948 10949New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 10950does not return a value, but the caller expects one. (The ASL 10951compiler flags this as a warning.) 10952 10953ASL Compiler: 10954 10955Version X2011: 109561. Static typechecking of all operands is implemented. This 10957prevents the use of invalid objects (such as using a Package where 10958an Integer is required) at compile time instead of at interpreter 10959run-time. 109602. The ASL source line is printed with ALL errors and warnings. 109613. Bug fix for source EOF without final linefeed. 109624. Debug option is split into a parse trace and a namespace trace. 109635. Namespace output option (-n) includes initial values for 10964integers and strings. 109656. Parse-only option added for quick syntax checking. 109667. Compiler checks for duplicate ACPI name declarations 10967 10968Version X2012: 109691. Relaxed typechecking to allow interchangeability between 10970strings, integers, and buffers. These types are now converted by 10971the interpreter at runtime. 109722. Compiler reports time taken by each internal subsystem in the 10973debug output file. 10974 10975 10976 ------------------------------------------ 10977Summary of changes for this label: 12_14_00 10978 10979ASL Compiler: 10980 10981This is the first official release of the compiler. Since the 10982compiler requires elements of the Core Subsystem, this label 10983synchronizes everything. 10984 10985------------------------------------------ 10986Summary of changes for this label: 12_08_00 10987 10988 10989Fixed a problem where named references within the ASL definition 10990of both OperationRegions and CreateXXXFields did not work 10991properly. The symptom was an AE_AML_OPERAND_TYPE during 10992initialization of the region/field. This is similar (but not 10993related internally) to the problem that was fixed in the last 10994label. 10995 10996Implemented both 32-bit and 64-bit support for the BCD ASL 10997functions ToBCD and FromBCD. 10998 10999Updated all legal headers to include "2000" in the copyright 11000years. 11001 11002 ------------------------------------------ 11003Summary of changes for this label: 12_01_00 11004 11005Fixed a problem where method invocations within the ASL definition 11006of both OperationRegions and CreateXXXFields did not work 11007properly. The symptom was an AE_AML_OPERAND_TYPE during 11008initialization of the region/field: 11009 11010 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 11011[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 11012(0x3005) 11013 11014Fixed a problem where operators with more than one nested 11015subexpression would fail. The symptoms were varied, by mostly 11016AE_AML_OPERAND_TYPE errors. This was actually a rather serious 11017problem that has gone unnoticed until now. 11018 11019 Subtract (Add (1,2), Multiply (3,4)) 11020 11021Fixed a problem where AcpiGetHandle didn't quite get fixed in the 11022previous build (The prefix part of a relative path was handled 11023incorrectly). 11024 11025Fixed a problem where Operation Region initialization failed if 11026the operation region name was a "namepath" instead of a simple 11027"nameseg". Symptom was an AE_NO_OPERAND error. 11028 11029Fixed a problem where an assignment to a local variable via the 11030indirect RefOf mechanism only worked for the first such 11031assignment. Subsequent assignments were ignored. 11032 11033 ------------------------------------------ 11034Summary of changes for this label: 11_15_00 11035 11036ACPI 2.0 table support with backwards support for ACPI 1.0 and the 110370.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 11038the AML interpreter does NOT have support for the new 2.0 ASL 11039grammar terms at this time. 11040 11041All ACPI hardware access is via the GAS structures in the ACPI 2.0 11042FADT. 11043 11044All physical memory addresses across all platforms are now 64 bits 11045wide. Logical address width remains dependent on the platform 11046(i.e., "void *"). 11047 11048AcpiOsMapMemory interface changed to a 64-bit physical address. 11049 11050The AML interpreter integer size is now 64 bits, as per the ACPI 110512.0 specification. 11052 11053For backwards compatibility with ACPI 1.0, ACPI tables with a 11054revision number less than 2 use 32-bit integers only. 11055 11056Fixed a problem where the evaluation of OpRegion operands did not 11057always resolve them to numbers properly. 11058 11059------------------------------------------ 11060Summary of changes for this label: 10_20_00 11061 11062Fix for CBN_._STA issue. This fix will allow correct access to 11063CBN_ OpRegions when the _STA returns 0x8. 11064 11065Support to convert ACPI constants (Ones, Zeros, One) to actual 11066values before a package object is returned 11067 11068Fix for method call as predicate to if/while construct causing 11069incorrect if/while behavior 11070 11071Fix for Else block package lengths sometimes calculated wrong (if 11072block > 63 bytes) 11073 11074Fix for Processor object length field, was always zero 11075 11076Table load abort if FACP sanity check fails 11077 11078Fix for problem with Scope(name) if name already exists 11079 11080Warning emitted if a named object referenced cannot be found 11081(resolved) during method execution. 11082 11083 11084 11085 11086 11087------------------------------------------ 11088Summary of changes for this label: 9_29_00 11089 11090New table initialization interfaces: AcpiInitializeSubsystem no 11091longer has any parameters AcpiFindRootPointer - Find the RSDP (if 11092necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 11093>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 11094AcpiLoadTables 11095 11096Note: These interface changes require changes to all existing OSDs 11097 11098The PCI_Config default address space handler is always installed 11099at the root namespace object. 11100 11101------------------------------------------- 11102Summary of changes for this label: 09_15_00 11103 11104The new initialization architecture is implemented. New 11105interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 11106AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 11107 11108(Namespace is automatically loaded when a table is loaded) 11109 11110The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1111152 bytes to 32 bytes. There is usually one of these for every 11112namespace object, so the memory savings is significant. 11113 11114Implemented just-in-time evaluation of the CreateField operators. 11115 11116Bug fixes for IA-64 support have been integrated. 11117 11118Additional code review comments have been implemented 11119 11120The so-called "third pass parse" has been replaced by a final walk 11121through the namespace to initialize all operation regions (address 11122spaces) and fields that have not yet been initialized during the 11123execution of the various _INI and REG methods. 11124 11125New file - namespace/nsinit.c 11126 11127------------------------------------------- 11128Summary of changes for this label: 09_01_00 11129 11130Namespace manager data structures have been reworked to change the 11131primary object from a table to a single object. This has 11132resulted in dynamic memory savings of 3X within the namespace and 111332X overall in the ACPI CA subsystem. 11134 11135Fixed problem where the call to AcpiEvFindPciRootBuses was 11136inadvertently left commented out. 11137 11138Reduced the warning count when generating the source with the GCC 11139compiler. 11140 11141Revision numbers added to each module header showing the 11142SourceSafe version of the file. Please refer to this version 11143number when giving us feedback or comments on individual modules. 11144 11145The main object types within the subsystem have been renamed to 11146clarify their purpose: 11147 11148ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 11149ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 11150ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 11151 11152NOTE: no changes to the initialization sequence are included in 11153this label. 11154 11155------------------------------------------- 11156Summary of changes for this label: 08_23_00 11157 11158Fixed problem where TerminateControlMethod was being called 11159multiple times per method 11160 11161Fixed debugger problem where single stepping caused a semaphore to 11162be oversignalled 11163 11164Improved performance through additional parse object caching - 11165added ACPI_EXTENDED_OP type 11166 11167------------------------------------------- 11168Summary of changes for this label: 08_10_00 11169 11170Parser/Interpreter integration: Eliminated the creation of 11171complete parse trees for ACPI tables and control methods. 11172Instead, parse subtrees are created and then deleted as soon as 11173they are processed (Either entered into the namespace or executed 11174by the interpreter). This reduces the use of dynamic kernel 11175memory significantly. (about 10X) 11176 11177Exception codes broken into classes and renumbered. Be sure to 11178recompile all code that includes acexcep.h. Hopefully we won't 11179have to renumber the codes again now that they are split into 11180classes (environment, programmer, AML code, ACPI table, and 11181internal). 11182 11183Fixed some additional alignment issues in the Resource Manager 11184subcomponent 11185 11186Implemented semaphore tracking in the AcpiExec utility, and fixed 11187several places where mutexes/semaphores were being unlocked 11188without a corresponding lock operation. There are no known 11189semaphore or mutex "leaks" at this time. 11190 11191Fixed the case where an ASL Return operator is used to return an 11192unnamed package. 11193 11194------------------------------------------- 11195Summary of changes for this label: 07_28_00 11196 11197Fixed a problem with the way addresses were calculated in 11198AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 11199manifested itself when a Field was created with WordAccess or 11200DwordAccess, but the field unit defined within the Field was less 11201 11202than a Word or Dword. 11203 11204Fixed a problem in AmlDumpOperands() module's loop to pull 11205operands off of the operand stack to display information. The 11206problem manifested itself as a TLB error on 64-bit systems when 11207accessing an operand stack with two or more operands. 11208 11209Fixed a problem with the PCI configuration space handlers where 11210context was getting confused between accesses. This required a 11211change to the generic address space handler and address space 11212setup definitions. Handlers now get both a global handler context 11213(this is the one passed in by the user when executing 11214AcpiInstallAddressSpaceHandler() and a specific region context 11215that is unique to each region (For example, the _ADR, _SEG and 11216_BBN values associated with a specific region). The generic 11217function definitions have changed to the following: 11218 11219typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 11220UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 11221*HandlerContext, // This used to be void *Context void 11222*RegionContext); // This is an additional parameter 11223 11224typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 11225RegionHandle, UINT32 Function, void *HandlerContext, void 11226**RegionContext); // This used to be **ReturnContext 11227 11228------------------------------------------- 11229Summary of changes for this label: 07_21_00 11230 11231Major file consolidation and rename. All files within the 11232interpreter have been renamed as well as most header files. This 11233was done to prevent collisions with existing files in the host 11234OSs -- filenames such as "config.h" and "global.h" seem to be 11235quite common. The VC project files have been updated. All 11236makefiles will require modification. 11237 11238The parser/interpreter integration continues in Phase 5 with the 11239implementation of a complete 2-pass parse (the AML is parsed 11240twice) for each table; This avoids the construction of a huge 11241parse tree and therefore reduces the amount of dynamic memory 11242required by the subsystem. Greater use of the parse object cache 11243means that performance is unaffected. 11244 11245Many comments from the two code reviews have been rolled in. 11246 11247The 64-bit alignment support is complete. 11248 11249------------------------------------------- 11250Summary of changes for this label: 06_30_00 11251 11252With a nod and a tip of the hat to the technology of yesteryear, 11253we've added support in the source code for 80 column output 11254devices. The code is now mostly constrained to 80 columns or 11255less to support environments and editors that 1) cannot display 11256or print more than 80 characters on a single line, and 2) cannot 11257disable line wrapping. 11258 11259A major restructuring of the namespace data structure has been 11260completed. The result is 1) cleaner and more 11261understandable/maintainable code, and 2) a significant reduction 11262in the dynamic memory requirement for each named ACPI object 11263(almost half). 11264 11265------------------------------------------- 11266Summary of changes for this label: 06_23_00 11267 11268Linux support has been added. In order to obtain approval to get 11269the ACPI CA subsystem into the Linux kernel, we've had to make 11270quite a few changes to the base subsystem that will affect all 11271users (all the changes are generic and OS- independent). The 11272effects of these global changes have been somewhat far reaching. 11273Files have been merged and/or renamed and interfaces have been 11274renamed. The major changes are described below. 11275 11276Osd* interfaces renamed to AcpiOs* to eliminate namespace 11277pollution/confusion within our target kernels. All OSD 11278interfaces must be modified to match the new naming convention. 11279 11280Files merged across the subsystem. A number of the smaller source 11281and header files have been merged to reduce the file count and 11282increase the density of the existing files. There are too many 11283to list here. In general, makefiles that call out individual 11284files will require rebuilding. 11285 11286Interpreter files renamed. All interpreter files now have the 11287prefix am* instead of ie* and is*. 11288 11289Header files renamed: The acapi.h file is now acpixf.h. The 11290acpiosd.h file is now acpiosxf.h. We are removing references to 11291the acronym "API" since it is somewhat windowsy. The new name is 11292"external interface" or xface or xf in the filenames.j 11293 11294 11295All manifest constants have been forced to upper case (some were 11296mixed case.) Also, the string "ACPI_" has been prepended to many 11297(not all) of the constants, typedefs, and structs. 11298 11299The globals "DebugLevel" and "DebugLayer" have been renamed 11300"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 11301 11302All other globals within the subsystem are now prefixed with 11303"AcpiGbl_" Internal procedures within the subsystem are now 11304prefixed with "Acpi" (with only a few exceptions). The original 11305two-letter abbreviation for the subcomponent remains after "Acpi" 11306- for example, CmCallocate became AcpiCmCallocate. 11307 11308Added a source code translation/conversion utility. Used to 11309generate the Linux source code, it can be modified to generate 11310other types of source as well. Can also be used to cleanup 11311existing source by removing extraneous spaces and blank lines. 11312Found in tools/acpisrc/* 11313 11314OsdUnMapMemory was renamed to OsdUnmapMemory and then 11315AcpiOsUnmapMemory. (UnMap became Unmap). 11316 11317A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 11318When set to one, this indicates that the caller wants to use the 11319 11320semaphore as a mutex, not a counting semaphore. ACPI CA uses 11321both types. However, implementers of this call may want to use 11322different OS primitives depending on the type of semaphore 11323requested. For example, some operating systems provide separate 11324 11325"mutex" and "semaphore" interfaces - where the mutex interface is 11326much faster because it doesn't have all the overhead of a full 11327semaphore implementation. 11328 11329Fixed a deadlock problem where a method that accesses the PCI 11330address space can block forever if it is the first access to the 11331space. 11332 11333------------------------------------------- 11334Summary of changes for this label: 06_02_00 11335 11336Support for environments that cannot handle unaligned data 11337accesses (e.g. firmware and OS environments devoid of alignment 11338handler technology namely SAL/EFI and the IA-64 Linux kernel) has 11339been added (via configurable macros) in these three areas: - 11340Transfer of data from the raw AML byte stream is done via byte 11341moves instead of word/dword/qword moves. - External objects are 11342aligned within the user buffer, including package elements (sub- 11343objects). - Conversion of name strings to UINT32 Acpi Names is now 11344done byte-wise. 11345 11346The Store operator was modified to mimic Microsoft's 11347implementation when storing to a Buffer Field. 11348 11349Added a check of the BM_STS bit before entering C3. 11350 11351The methods subdirectory has been obsoleted and removed. A new 11352file, cmeval.c subsumes the functionality. 11353 11354A 16-bit (DOS) version of AcpiExec has been developed. The 11355makefile is under the acpiexec directory. 11356