changes.txt revision 234623
12175Sjp161948---------------------------------------- 22175Sjp16194820 April 2012. Summary of changes for version 20120420: 32175Sjp161948 42175Sjp161948This release is available at www.acpica.org/downloads. 52175Sjp161948The ACPI 5.0 specification is available at www.acpi.info. 62175Sjp161948 72175Sjp1619481) ACPICA Core Subsystem: 82175Sjp161948 92175Sjp161948Implemented support for multiple notify handlers. This change adds support to 102175Sjp161948allow multiple system and device notify handlers on Device, Thermal Zone, and 112175Sjp161948Processor objects. This can simplify the host OS notification implementation. 122175Sjp161948Also re-worked and restructured the entire notify support code to simplify 132175Sjp161948handler installation, handler removal, notify event queuing, and notify 142175Sjp161948dispatch to handler(s). Note: there can still only be two global notify 152175Sjp161948handlers - one for system notifies and one for device notifies. There are no 162175Sjp161948changes to the existing handler install/remove interfaces. Lin Ming, Bob 172175Sjp161948Moore, Rafael Wysocki. 182175Sjp161948 192175Sjp161948Fixed a regression in the package repair code where the object reference 202175Sjp161948count was calculated incorrectly. Regression was introduced in the commit 212175Sjp161948"Support to add Package wrappers". 222175Sjp161948 232175Sjp161948Fixed a couple possible memory leaks in the AML parser, in the error recovery 242175Sjp161948path. Jesper Juhl, Lin Ming. 252175Sjp161948 262175Sjp161948Example Code and Data Size: These are the sizes for the OS-independent 272175Sjp161948acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 282175Sjp161948debug version of the code includes the debug output trace mechanism and has a 292175Sjp161948much larger code and data size. 302175Sjp161948 312175Sjp161948 Previous Release: 322175Sjp161948 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 332175Sjp161948 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 342175Sjp161948 Current Release: 352175Sjp161948 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 362175Sjp161948 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 372175Sjp161948 382175Sjp161948 392175Sjp1619482) iASL Compiler/Disassembler and Tools: 402175Sjp161948 412175Sjp161948iASL: Fixed a problem with the resource descriptor support where the length 422175Sjp161948of the StartDependentFn and StartDependentFnNoPrio descriptors were not 432175Sjp161948included in cumulative descriptor offset, resulting in incorrect values for 442175Sjp161948resource tags within resource descriptors appearing after a StartDependent* 452175Sjp161948descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 462175Sjp161948 472175Sjp161948iASL and Preprocessor: Implemented full support for the #line directive to 482175Sjp161948correctly track original source file line numbers through the .i preprocessor 492175Sjp161948output file - for error and warning messages. 502175Sjp161948 512175Sjp161948iASL: Expand the allowable byte constants for address space IDs. Previously, 522175Sjp161948the allowable range was 0x80-0xFF (user-defined spaces), now the range is 532175Sjp1619480x0A-0xFF to allow for custom and new IDs without changing the compiler. 542175Sjp161948 552175Sjp161948iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 562175Sjp161948 572175Sjp161948iASL: Add option to completely disable the preprocessor (-Pn). 582175Sjp161948 592175Sjp161948iASL: Now emit all error/warning messages to standard error (stderr) by 602175Sjp161948default (instead of the previous stdout). 612175Sjp161948 622175Sjp161948ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). Update 632175Sjp161948for resource descriptor offset fix above. Update/cleanup error output 642175Sjp161948routines. Enable and send iASL errors/warnings to an error logfile 652175Sjp161948(error.txt). Send all other iASL output to a logfile (compiler.txt). Fixed 662175Sjp161948several extraneous "unrecognized operator" messages. 672175Sjp161948 682175Sjp161948---------------------------------------- 692175Sjp16194820 March 2012. Summary of changes for version 20120320: 702175Sjp161948 712175Sjp161948This release is available at www.acpica.org/downloads. 722175Sjp161948The ACPI 5.0 specification is available at www.acpi.info. 732175Sjp161948 742175Sjp1619481) ACPICA Core Subsystem: 752175Sjp161948 762175Sjp161948Enhanced the sleep/wake interfaces to optionally execute the _GTS method 772175Sjp161948(Going To Sleep) and the _BFS method (Back From Sleep). Windows apparently 782175Sjp161948does not execute these methods, and therefore these methods are often 792175Sjp161948untested. It has been seen on some systems where the execution of these 802175Sjp161948methods causes errors and also prevents the machine from entering S5. It is 812175Sjp161948therefore suggested that host operating systems do not execute these methods 822175Sjp161948by default. In the future, perhaps these methods can be optionally executed 832175Sjp161948based on the age of the system and/or what is the newest version of Windows 842175Sjp161948that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState and 852175Sjp161948AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 862175Sjp161948Ming. 872175Sjp161948 882175Sjp161948Fixed a problem where the length of the local/common FADT was set too early. 892175Sjp161948The local FADT table length cannot be set to the common length until the 902175Sjp161948original length has been examined. There is code that checks the table length 912175Sjp161948and sets various fields appropriately. This can affect older machines with 922175Sjp161948early FADT versions. For example, this can cause inadvertent writes to the 932175Sjp161948CST_CNT register. Julian Anastasov. 942175Sjp161948 952175Sjp161948Fixed a mapping issue related to a physical table override. Use the deferred 962175Sjp161948mapping mechanism for tables loaded via the physical override OSL interface. 972175Sjp161948This allows for early mapping before the virtual memory manager is available. 982175Sjp161948Thomas Renninger, Bob Moore. 992175Sjp161948 1002175Sjp161948Enhanced the automatic return-object repair code: Repair a common problem with 1012175Sjp161948predefined methods that are defined to return a variable-length Package of 1022175Sjp161948sub-objects. If there is only one sub-object, some BIOS ASL code mistakenly 1032175Sjp161948simply returns the single object instead of a Package with one sub-object. 1042175Sjp161948This new support will repair this error by wrapping a Package object around 1052175Sjp161948the original object, creating the correct and expected Package with one sub- 1062175Sjp161948object. Names that can be repaired in this manner include: _ALR, _CSD, _HPX, 1072175Sjp161948_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 939. 1082175Sjp161948 1092175Sjp161948Changed the exception code returned for invalid ACPI paths passed as 1102175Sjp161948parameters to external interfaces such as AcpiEvaluateObject. Was 1112175Sjp161948AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 1122175Sjp161948 1132175Sjp161948Example Code and Data Size: These are the sizes for the OS-independent 1142175Sjp161948acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 1152175Sjp161948version of the code includes the debug output trace mechanism and has a much 1162175Sjp161948larger code and data size. 1172175Sjp161948 1182175Sjp161948 Previous Release: 1192175Sjp161948 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 1202175Sjp161948 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 1212175Sjp161948 Current Release: 1222175Sjp161948 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 1232175Sjp161948 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 1242175Sjp161948 1252175Sjp161948 1262175Sjp1619482) iASL Compiler/Disassembler and Tools: 1272175Sjp161948 1282175Sjp161948iASL: Added the infrastructure and initial implementation of a integrated C- 1292175Sjp161948like preprocessor. This will simplify BIOS development process by eliminating 1302175Sjp161948the need for a separate preprocessing step during builds. On Windows, it also 1312175Sjp161948eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 1322175Sjp161948features including full #define() macro support are still under development. 1332175Sjp161948These preprocessor directives are supported: 1342175Sjp161948 #define 1352175Sjp161948 #elif 1362175Sjp161948 #else 1372175Sjp161948 #endif 1382175Sjp161948 #error 1392175Sjp161948 #if 1402175Sjp161948 #ifdef 1412175Sjp161948 #ifndef 1422175Sjp161948 #include 1432175Sjp161948 #pragma message 1442175Sjp161948 #undef 1452175Sjp161948 #warning 1462175Sjp161948In addition, these new command line options are supported: 1472175Sjp161948 -D <symbol> Define symbol for preprocessor use 1482175Sjp161948 -li Create preprocessed output file (*.i) 1492175Sjp161948 -P Preprocess only and create preprocessor output file (*.i) 1502175Sjp161948 1512175Sjp161948Table Compiler: Fixed a problem where the equals operator within an expression 1522175Sjp161948did not work properly. 1532175Sjp161948 1542175Sjp161948Updated iASL to use the current versions of Bison/Flex. Updated the Windows 1552175Sjp161948project file to invoke these tools from the standard location. ACPICA BZ 904. 1562175Sjp161948Versions supported: 1572175Sjp161948 Flex for Windows: V2.5.4 1582175Sjp161948 Bison for Windows: V2.4.1 1592175Sjp161948 1602175Sjp161948---------------------------------------- 1612175Sjp16194815 February 2012. Summary of changes for version 20120215: 1622175Sjp161948 1632175Sjp161948This release is available at www.acpica.org/downloads. 1642175Sjp161948The ACPI 5.0 specification is available at www.acpi.info. 1652175Sjp161948 1662175Sjp1619481) ACPICA Core Subsystem: 1672175Sjp161948 1682175Sjp161948There have been some major changes to the sleep/wake support code, as 1692175Sjp161948described below (a - e). 1702175Sjp161948 1712175Sjp161948a) The AcpiLeaveSleepState has been split into two interfaces, similar to 1722175Sjp161948AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 1732175Sjp161948AcpiLeaveSleepStatePrep. This allows the host to perform actions between the 174time the _BFS method is called and the _WAK method is called. NOTE: all hosts 175must update their wake/resume code or else sleep/wake will not work properly. 176Rafael Wysocki. 177 178b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the _WAK 179method. Some machines require that the GPEs are enabled before the _WAK method 180is executed. Thomas Renninger. 181 182c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) bit. 183Some BIOS code assumes that WAK_STS will be cleared on resume and use it to 184determine whether the system is rebooting or resuming. Matthew Garrett. 185 186d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From Sleep) to 187match the ACPI specification requirement. Rafael Wysocki. 188 189e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 190registers within the V5 FADT. This support adds two new files: 191hardware/hwesleep.c implements the support for the new registers. Moved all 192sleep/wake external interfaces to hardware/hwxfsleep.c. 193 194 195Added a new OSL interface for ACPI table overrides, 196AcpiOsPhysicalTableOverride. This interface allows the host to override a 197table via a physical address, instead of the logical address required by 198AcpiOsTableOverride. This simplifies the host implementation. Initial 199implementation by Thomas Renninger. The ACPICA implementation creates a single 200shared function for table overrides that attempts both a logical and a 201physical override. 202 203Expanded the OSL memory read/write interfaces to 64-bit data 204(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 205transfer support for GAS register structures passed to AcpiRead and AcpiWrite. 206 207Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a custom 208build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) model. 209See the ACPICA reference for details. ACPICA BZ 942. This option removes about 21010% of the code and 5% of the static data, and the following hardware ACPI 211features become unavailable: 212 PM Event and Control registers 213 SCI interrupt (and handler) 214 Fixed Events 215 General Purpose Events (GPEs) 216 Global Lock 217 ACPI PM timer 218 FACS table (Waking vectors and Global Lock) 219 220Updated the unix tarball directory structure to match the ACPICA git source 221tree. This ensures that the generic unix makefiles work properly (in 222generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 867. 223 224Updated the return value of the _REV predefined method to integer value 5 to 225reflect ACPI 5.0 support. 226 227Moved the external ACPI PM timer interface prototypes to the public acpixf.h 228file where they belong. 229 230Example Code and Data Size: These are the sizes for the OS-independent 231acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 232version of the code includes the debug output trace mechanism and has a much 233larger code and data size. 234 235 Previous Release: 236 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 237 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 238 Current Release: 239 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 240 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 241 242 2432) iASL Compiler/Disassembler and Tools: 244 245Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 246descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 247incorrectly displayed. 248 249AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 250specification. 251 252---------------------------------------- 25311 January 2012. Summary of changes for version 20120111: 254 255This release is available at www.acpica.org/downloads. 256The ACPI 5.0 specification is available at www.acpi.info. 257 2581) ACPICA Core Subsystem: 259 260Implemented a new mechanism to allow host device drivers to check for address 261range conflicts with ACPI Operation Regions. Both SystemMemory and SystemIO 262address spaces are supported. A new external interface, AcpiCheckAddressRange, 263allows drivers to check an address range against the ACPI namespace. See the 264ACPICA reference for additional details. Adds one new file, 265utilities/utaddress.c. Lin Ming, Bob Moore. 266 267Fixed several issues with the ACPI 5.0 FADT support: Add the sleep Control and 268Status registers, update the ACPI 5.0 flags, and update internal data 269structures to handle an FADT larger than 256 bytes. The size of the ACPI 5.0 270FADT is 268 bytes. 271 272Updated all ACPICA copyrights and signons to 2012. Added the 2012 copyright to 273all module headers and signons, including the standard Linux header. This 274affects virtually every file in the ACPICA core subsystem, iASL compiler, and 275all ACPICA utilities. 276 277Example Code and Data Size: These are the sizes for the OS-independent 278acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 279version of the code includes the debug output trace mechanism and has a much 280larger code and data size. 281 282 Previous Release: 283 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 284 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 285 Current Release: 286 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 287 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 288 289 2902) iASL Compiler/Disassembler and Tools: 291 292Disassembler: fixed a problem with the automatic resource tag generation 293support. Fixes a problem where the resource tags are inadvertently not 294constructed if the table being disassembled contains external references to 295control methods. Moved the actual construction of the tags to after the final 296namespace is constructed (after 2nd parse is invoked due to external control 297method references.) ACPICA BZ 941. 298 299Table Compiler: Make all "generic" operators caseless. These are the operators 300like UINT8, String, etc. Making these caseless improves ease-of-use. ACPICA BZ 301934. 302 303---------------------------------------- 30423 November 2011. Summary of changes for version 20111123: 305 3060) ACPI 5.0 Support: 307 308This release contains full support for the ACPI 5.0 specification, as 309summarized below. 310 311Reduced Hardware Support: 312------------------------- 313 314This support allows for ACPI systems without the usual ACPI hardware. This 315support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA will 316not attempt to initialize or use any of the usual ACPI hardware. Note, when 317this flag is set, all of the following ACPI hardware is assumed to be not 318present and is not initialized or accessed: 319 320 General Purpose Events (GPEs) 321 Fixed Events (PM1a/PM1b and PM Control) 322 Power Management Timer and Console Buttons (power/sleep) 323 Real-time Clock Alarm 324 Global Lock 325 System Control Interrupt (SCI) 326 The FACS is assumed to be non-existent 327 328ACPI Tables: 329------------ 330 331All new tables and updates to existing tables are fully supported in the 332ACPICA headers (for use by device drivers), the disassembler, and the iASL 333Data Table Compiler. ACPI 5.0 defines these new tables: 334 335 BGRT /* Boot Graphics Resource Table */ 336 DRTM /* Dynamic Root of Trust for Measurement table */ 337 FPDT /* Firmware Performance Data Table */ 338 GTDT /* Generic Timer Description Table */ 339 MPST /* Memory Power State Table */ 340 PCCT /* Platform Communications Channel Table */ 341 PMTT /* Platform Memory Topology Table */ 342 RASF /* RAS Feature table */ 343 344Operation Regions/SpaceIDs: 345--------------------------- 346 347All new operation regions are fully supported by the iASL compiler, the 348disassembler, and the ACPICA runtime code (for dispatch to region handlers.) 349The new operation region Space IDs are: 350 351 GeneralPurposeIo 352 GenericSerialBus 353 354Resource Descriptors: 355--------------------- 356 357All new ASL resource descriptors are fully supported by the iASL compiler, the 358ASL/AML disassembler, and the ACPICA runtime Resource Manager code (including 359all new predefined resource tags). New descriptors are: 360 361 FixedDma 362 GpioIo 363 GpioInt 364 I2cSerialBus 365 SpiSerialBus 366 UartSerialBus 367 368ASL/AML Operators, New and Modified: 369------------------------------------ 370 371One new operator is added, the Connection operator, which is used to associate 372a GeneralPurposeIo or GenericSerialBus resource descriptor with individual 373field objects within an operation region. Several new protocols are associated 374with the AccessAs operator. All are fully supported by the iASL compiler, 375disassembler, and runtime ACPICA AML interpreter: 376 377 Connection // Declare Field Connection attributes 378 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 379 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes Protocol 380 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 381 RawDataBuffer // Data type for Vendor Data fields 382 383Predefined ASL/AML Objects: 384--------------------------- 385 386All new predefined objects/control-methods are supported by the iASL compiler 387and the ACPICA runtime validation/repair (arguments and return values.) New 388predefined names include the following: 389 390Standard Predefined Names (Objects or Control Methods): 391 _AEI, _CLS, _CPC, _CWS, _DEP, 392 _DLM, _EVT, _GCP, _CRT, _GWS, 393 _HRV, _PRE, _PSE, _SRT, _SUB. 394 395Resource Tags (Names used to access individual fields within resource 396descriptors): 397 _DBT, _DPL, _DRS, _END, _FLC, 398 _IOR, _LIN, _MOD, _PAR, _PHA, 399 _PIN, _PPI, _POL, _RXL, _SLV, 400 _SPE, _STB, _TXL, _VEN. 401 402ACPICA External Interfaces: 403--------------------------- 404 405Several new interfaces have been defined for use by ACPI-related device 406drivers and other host OS services: 407 408AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS to 409acquire and release AML mutexes that are defined in the DSDT/SSDT tables 410provided by the BIOS. They are intended to be used in conjunction with the 411ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 412mutual exclusion with the AML code/interpreter. 413 414AcpiGetEventResources: Returns the (formatted) resource descriptors as defined 415by the ACPI 5.0 _AEI object (ACPI Event Information). This object provides 416resource descriptors associated with hardware-reduced platform events, similar 417to the AcpiGetCurrentResources interface. 418 419Operation Region Handlers: For General Purpose IO and Generic Serial Bus 420operation regions, information about the Connection() object and any optional 421length information is passed to the region handler within the Context 422parameter. 423 424AcpiBufferToResource: This interface converts a raw AML buffer containing a 425resource template or resource descriptor to the ACPI_RESOURCE internal format 426suitable for use by device drivers. Can be used by an operation region handler 427to convert the Connection() buffer object into a ACPI_RESOURCE. 428 429Miscellaneous/Tools/TestSuites: 430------------------------------- 431 432Support for extended _HID names (Four alpha characters instead of three). 433Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 434Support for ACPI 5.0 features in the ASLTS test suite. 435Fully updated documentation (ACPICA and iASL reference documents.) 436 437ACPI Table Definition Language: 438------------------------------- 439 440Support for this language was implemented and released as a subsystem of the 441iASL compiler in 2010. (See the iASL compiler User Guide.) 442 443 444Non-ACPI 5.0 changes for this release: 445-------------------------------------- 446 4471) ACPICA Core Subsystem: 448 449Fix a problem with operation region declarations where a failure can occur if 450the region name and an argument that evaluates to an object (such as the 451region address) are in different namespace scopes. Lin Ming, ACPICA BZ 937. 452 453Do not abort an ACPI table load if an invalid space ID is found within. This 454will be caught later if the offending method is executed. ACPICA BZ 925. 455 456Fixed an issue with the FFixedHW space ID where the ID was not always 457recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 458 459Fixed a problem with the 32-bit generation of the unix-specific OSL 460(osunixxf.c). Lin Ming, ACPICA BZ 936. 461 462Several changes made to enable generation with the GCC 4.6 compiler. ACPICA BZ 463935. 464 465New error messages: Unsupported I/O requests (not 8/16/32 bit), and Index/Bank 466field registers out-of-range. 467 4682) iASL Compiler/Disassembler and Tools: 469 470iASL: Implemented the __PATH__ operator, which returns the full pathname of 471the current source file. 472 473AcpiHelp: Automatically display expanded keyword information for all ASL 474operators. 475 476Debugger: Add "Template" command to disassemble/dump resource template 477buffers. 478 479Added a new master script to generate and execute the ASLTS test suite. 480Automatically handles 32- and 64-bit generation. See tests/aslts.sh 481 482iASL: Fix problem with listing generation during processing of the Switch() 483operator where AML listing was disabled until the entire Switch block was 484completed. 485 486iASL: Improve support for semicolon statement terminators. Fix "invalid 487character" message for some cases when the semicolon is used. Semicolons are 488now allowed after every <Term> grammar element. ACPICA BZ 927. 489 490iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 923. 491 492Disassembler: Fix problem with disassembly of the DataTableRegion operator 493where an inadvertent "Unhandled deferred opcode" message could be generated. 494 4953) Example Code and Data Size 496 497These are the sizes for the OS-independent acpica.lib produced by the 498Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 499includes the debug output trace mechanism and has a much larger code and data 500size. 501 502 Previous Release: 503 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 504 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 505 Current Release: 506 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 507 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 508 509---------------------------------------- 51022 September 2011. Summary of changes for version 20110922: 511 5120) ACPI 5.0 News: 513 514Support for ACPI 5.0 in ACPICA has been underway for several months and will 515be released at the same time that ACPI 5.0 is officially released. 516 517The ACPI 5.0 specification is on track for release in the next few months. 518 5191) ACPICA Core Subsystem: 520 521Fixed a problem where the maximum sleep time for the Sleep() operator was 522intended to be limited to two seconds, but was inadvertently limited to 20 523seconds instead. 524 525Linux and Unix makefiles: Added header file dependencies to ensure correct 526generation of ACPICA core code and utilities. Also simplified the makefiles 527considerably through the use of the vpath variable to specify search paths. 528ACPICA BZ 924. 529 5302) iASL Compiler/Disassembler and Tools: 531 532iASL: Implemented support to check the access length for all fields created to 533access named Resource Descriptor fields. For example, if a resource field is 534defined to be two bits, a warning is issued if a CreateXxxxField() is used 535with an incorrect bit length. This is implemented for all current resource 536descriptor names. ACPICA BZ 930. 537 538Disassembler: Fixed a byte ordering problem with the output of 24-bit and 56- 539bit integers. 540 541iASL: Fixed a couple of issues associated with variable-length package 542objects. 1) properly handle constants like One, Ones, Zero -- do not make a 543VAR_PACKAGE when these are used as a package length. 2) Allow the VAR_PACKAGE 544opcode (in addition to PACKAGE) when validating object types for predefined 545names. 546 547iASL: Emit statistics for all output files (instead of just the ASL input and 548AML output). Includes listings, hex files, etc. 549 550iASL: Added -G option to the table compiler to allow the compilation of custom 551ACPI tables. The only part of a table that is required is the standard 36-byte 552ACPI header. 553 554AcpiXtract: Ported to the standard ACPICA environment (with ACPICA headers), 555which also adds correct 64-bit support. Also, now all output filenames are 556completely lower case. 557 558AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 559loading table files. A warning is issued for any such tables. The only 560exception is an FADT. This also fixes a possible fault when attempting to load 561non-AML tables. ACPICA BZ 932. 562 563AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where a 564missing table terminator could cause a fault when using the -p option. 565 566AcpiSrc: Fixed a possible divide-by-zero fault when generating file 567statistics. 568 5693) Example Code and Data Size 570 571These are the sizes for the OS-independent acpica.lib produced by the 572Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 573includes the debug output trace mechanism and has a much larger code and data 574size. 575 576 Previous Release (VC 9.0): 577 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 578 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 579 Current Release (VC 9.0): 580 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 581 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 582 583 584---------------------------------------- 58523 June 2011. Summary of changes for version 20110623: 586 5871) ACPI CA Core Subsystem: 588 589Updated the predefined name repair mechanism to not attempt repair of a _TSS 590return object if a _PSS object is present. We can only sort the _TSS return 591package if there is no _PSS within the same scope. This is because if _PSS is 592present, the ACPI specification dictates that the _TSS Power Dissipation field 593is to be ignored, and therefore some BIOSs leave garbage values in the _TSS 594Power field(s). In this case, it is best to just return the _TSS package as- 595is. Reported by, and fixed with assistance from Fenghua Yu. 596 597Added an option to globally disable the control method return value validation 598and repair. This runtime option can be used to disable return value repair if 599this is causing a problem on a particular machine. Also added an option to 600AcpiExec (-dr) to set this disable flag. 601 602All makefiles and project files: Major changes to improve generation of ACPICA 603tools. ACPICA BZ 912: 604 Reduce default optimization levels to improve compatibility 605 For Linux, add strict-aliasing=0 for gcc 4 606 Cleanup and simplify use of command line defines 607 Cleanup multithread library support 608 Improve usage messages 609 610Linux-specific header: update handling of THREAD_ID and pthread. For the 32- 611bit case, improve casting to eliminate possible warnings, especially with the 612acpica tools. 613 614Example Code and Data Size: These are the sizes for the OS-independent 615acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 616version of the code includes the debug output trace mechanism and has a much 617larger code and data size. 618 619 Previous Release (VC 9.0): 620 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 621 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 622 Current Release (VC 9.0): 623 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 624 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 625 6262) iASL Compiler/Disassembler and Tools: 627 628With this release, a new utility named "acpihelp" has been added to the ACPICA 629package. This utility summarizes the ACPI specification chapters for the ASL 630and AML languages. It generates under Linux/Unix as well as Windows, and 631provides the following functionality: 632 Find/display ASL operator(s) -- with description and syntax. 633 Find/display ASL keyword(s) -- with exact spelling and descriptions. 634 Find/display ACPI predefined name(s) -- with description, number 635 of arguments, and the return value data type. 636 Find/display AML opcode name(s) -- with opcode, arguments, and grammar. 637 Decode/display AML opcode -- with opcode name, arguments, and grammar. 638 639Service Layers: Make multi-thread support configurable. Conditionally compile 640the multi-thread support so that threading libraries will not be linked if not 641necessary. The only tool that requires multi-thread support is AcpiExec. 642 643iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions of 644Bison appear to want the interface to yyerror to be a const char * (or at 645least this is a problem when generating iASL on some systems.) ACPICA BZ 923 646Pierre Lejeune. 647 648Tools: Fix for systems where O_BINARY is not defined. Only used for Windows 649versions of the tools. 650 651---------------------------------------- 65227 May 2011. Summary of changes for version 20110527: 653 6541) ACPI CA Core Subsystem: 655 656ASL Load() operator: Reinstate most restrictions on the incoming ACPI table 657signature. Now, only allow SSDT, OEMx, and a null signature. History: 658 1) Originally, we checked the table signature for "SSDT" or "PSDT". 659 (PSDT is now obsolete.) 660 2) We added support for OEMx tables, signature "OEM" plus a fourth 661 "don't care" character. 662 3) Valid tables were encountered with a null signature, so we just 663 gave up on validating the signature, (05/2008). 664 4) We encountered non-AML tables such as the MADT, which caused 665 interpreter errors and kernel faults. So now, we once again allow 666 only SSDT, OEMx, and now, also a null signature. (05/2011). 667 668Added the missing _TDL predefined name to the global name list in order to 669enable validation. Affects both the core ACPICA code and the iASL compiler. 670 671Example Code and Data Size: These are the sizes for the OS-independent 672acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 673version of the code includes the debug output trace mechanism and has a much 674larger code and data size. 675 676 Previous Release (VC 9.0): 677 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 678 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 679 Current Release (VC 9.0): 680 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 681 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 682 6832) iASL Compiler/Disassembler and Tools: 684 685Debugger/AcpiExec: Implemented support for "complex" method arguments on the 686debugger command line. This adds support beyond simple integers -- including 687Strings, Buffers, and Packages. Includes support for nested packages. 688Increased the default command line buffer size to accommodate these arguments. 689See the ACPICA reference for details and syntax. ACPICA BZ 917. 690 691Debugger/AcpiExec: Implemented support for "default" method arguments for the 692Execute/Debug command. Now, the debugger will always invoke a control method 693with the required number of arguments -- even if the command line specifies 694none or insufficient arguments. It uses default integer values for any missing 695arguments. Also fixes a bug where only six method arguments maximum were 696supported instead of the required seven. 697 698Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine and 699also return status in order to prevent buffer overruns. See the ACPICA 700reference for details and syntax. ACPICA BZ 921 701 702iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 703makefiles to simplify support for the two different but similar parser 704generators, bison and yacc. 705 706Updated the generic unix makefile for gcc 4. The default gcc version is now 707expected to be 4 or greater, since options specific to gcc 4 are used. 708 709---------------------------------------- 71013 April 2011. Summary of changes for version 20110413: 711 7121) ACPI CA Core Subsystem: 713 714Implemented support to execute a so-called "orphan" _REG method under the EC 715device. This change will force the execution of a _REG method underneath the 716EC 717device even if there is no corresponding operation region of type 718EmbeddedControl. Fixes a problem seen on some machines and apparently is 719compatible with Windows behavior. ACPICA BZ 875. 720 721Added more predefined methods that are eligible for automatic NULL package 722element removal. This change adds another group of predefined names to the 723list 724of names that can be repaired by having NULL package elements dynamically 725removed. This group are those methods that return a single variable-length 726package containing simple data types such as integers, buffers, strings. This 727includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, _PSL, 728_Sx, 729and _TZD. ACPICA BZ 914. 730 731Split and segregated all internal global lock functions to a new file, 732evglock.c. 733 734Updated internal address SpaceID for DataTable regions. Moved this internal 735space 736id in preparation for ACPI 5.0 changes that will include some new space IDs. 737This 738change should not affect user/host code. 739 740Example Code and Data Size: These are the sizes for the OS-independent 741acpica.lib 742produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of 743the code includes the debug output trace mechanism and has a much larger code 744and 745data size. 746 747 Previous Release (VC 9.0): 748 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 749 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 750 Current Release (VC 9.0): 751 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 752 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 753 7542) iASL Compiler/Disassembler and Tools: 755 756iASL/DTC: Major update for new grammar features. Allow generic data types in 757custom ACPI tables. Field names are now optional. Any line can be split to 758multiple lines using the continuation char (\). Large buffers now use line- 759continuation character(s) and no colon on the continuation lines. See the 760grammar 761update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob Moore. 762 763iASL: Mark ASL "Return()" and the simple "Return" as "Null" return statements. 764Since the parser stuffs a "zero" as the return value for these statements (due 765to 766the underlying AML grammar), they were seen as "return with value" by the iASL 767semantic checking. They are now seen correctly as "null" return statements. 768 769iASL: Check if a_REG declaration has a corresponding Operation Region. Adds a 770check for each _REG to ensure that there is in fact a corresponding operation 771region declaration in the same scope. If not, the _REG method is not very 772useful 773since it probably won't be executed. ACPICA BZ 915. 774 775iASL/DTC: Finish support for expression evaluation. Added a new expression 776parser 777that implements c-style operator precedence and parenthesization. ACPICA 778bugzilla 779908. 780 781Disassembler/DTC: Remove support for () and <> style comments in data tables. 782Now 783that DTC has full expression support, we don't want to have comment strings 784that 785start with a parentheses or a less-than symbol. Now, only the standard /* and 786// 787comments are supported, as well as the bracket [] comments. 788 789AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 790"unusual" 791headers in the acpidump file. Update the header validation to support these 792tables. Problem introduced in previous AcpiXtract version in the change to 793support "wrong checksum" error messages emitted by acpidump utility. 794 795iASL: Add a * option to generate all template files (as a synonym for ALL) as 796in 797"iasl -T *" or "iasl -T ALL". 798 799iASL/DTC: Do not abort compiler on fatal errors. We do not want to completely 800abort the compiler on "fatal" errors, simply should abort the current compile. 801This allows multiple compiles with a single (possibly wildcard) compiler 802invocation. 803 804---------------------------------------- 80516 March 2011. Summary of changes for version 20110316: 806 8071) ACPI CA Core Subsystem: 808 809Fixed a problem caused by a _PRW method appearing at the namespace root scope 810during the setup of wake GPEs. A fault could occur if a _PRW directly under 811the 812root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 813 814Implemented support for "spurious" Global Lock interrupts. On some systems, a 815global lock interrupt can occur without the pending flag being set. Upon a GL 816interrupt, we now ensure that a thread is actually waiting for the lock before 817signaling GL availability. Rafael Wysocki, Bob Moore. 818 819Example Code and Data Size: These are the sizes for the OS-independent 820acpica.lib 821produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of 822the code includes the debug output trace mechanism and has a much larger code 823and 824data size. 825 826 Previous Release (VC 9.0): 827 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 828 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 829 Current Release (VC 9.0): 830 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 831 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 832 8332) iASL Compiler/Disassembler and Tools: 834 835Implemented full support for the "SLIC" ACPI table. Includes support in the 836header files, disassembler, table compiler, and template generator. Bob Moore, 837Lin Ming. 838 839AcpiXtract: Correctly handle embedded comments and messages from AcpiDump. 840Apparently some or all versions of acpidump will occasionally emit a comment 841like 842"Wrong checksum", etc., into the dump file. This was causing problems for 843AcpiXtract. ACPICA BZ 905. 844 845iASL: Fix the Linux makefile by removing an inadvertent double file inclusion. 846ACPICA BZ 913. 847 848AcpiExec: Update installation of operation region handlers. Install one 849handler 850for a user-defined address space. This is used by the ASL test suite (ASLTS). 851 852---------------------------------------- 85311 February 2011. Summary of changes for version 20110211: 854 8551) ACPI CA Core Subsystem: 856 857Added a mechanism to defer _REG methods for some early-installed handlers. 858Most user handlers should be installed before call to AcpiEnableSubsystem. 859However, Event handlers and region handlers should be installed after 860AcpiInitializeObjects. Override handlers for the "default" regions should be 861installed early, however. This change executes all _REG methods for the 862default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 863chicken/egg issues between them. ACPICA BZ 848. 864 865Implemented an optimization for GPE detection. This optimization will simply 866ignore GPE registers that contain no enabled GPEs -- there is no need to 867read the register since this information is available internally. This 868becomes more important on machines with a large GPE space. ACPICA bugzilla 869884. Lin Ming. Suggestion from Joe Liu. 870 871Removed all use of the highly unreliable FADT revision field. The revision 872number in the FADT has been found to be completely unreliable and cannot be 873trusted. Only the actual table length can be used to infer the version. This 874change updates the ACPICA core and the disassembler so that both no longer 875even look at the FADT version and instead depend solely upon the FADT 876length. 877 878Fix an unresolved name issue for the no-debug and no-error-message source 879generation cases. The _AcpiModuleName was left undefined in these cases, but 880it is actually needed as a parameter to some interfaces. Define 881_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 882 883Split several large files (makefiles and project files updated) 884 utglobal.c -> utdecode.c 885 dbcomds.c -> dbmethod.c dbnames.c 886 dsopcode.c -> dsargs.c dscontrol.c 887 dsload.c -> dsload2.c 888 aslanalyze.c -> aslbtypes.c aslwalks.c 889 890Example Code and Data Size: These are the sizes for the OS-independent 891acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 892debug version of the code includes the debug output trace mechanism and has 893a much larger code and data size. 894 895 Previous Release (VC 9.0): 896 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 897 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 898 Current Release (VC 9.0): 899 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 900 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 901 9022) iASL Compiler/Disassembler and Tools: 903 904iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 905These are useful C-style macros with the standard definitions. ACPICA 906bugzilla 898. 907 908iASL/DTC: Added support for integer expressions and labels. Support for full 909expressions for all integer fields in all ACPI tables. Support for labels in 910"generic" portions of tables such as UEFI. See the iASL reference manual. 911 912Debugger: Added a command to display the status of global handlers. The 913"handlers" command will display op region, fixed event, and miscellaneous 914global handlers. installation status -- and for op regions, whether default 915or user-installed handler will be used. 916 917iASL: Warn if reserved method incorrectly returns a value. Many predefined 918names are defined such that they do not return a value. If implemented as a 919method, issue a warning if such a name explicitly returns a value. ACPICA 920Bugzilla 855. 921 922iASL: Added detection of GPE method name conflicts. Detects a conflict where 923there are two GPE methods of the form _Lxy and _Exy in the same scope. (For 924example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 925 926iASL/DTC: Fixed a couple input scanner issues with comments and line 927numbers. Comment remover could get confused and miss a comment ending. Fixed 928a problem with line counter maintenance. 929 930iASL/DTC: Reduced the severity of some errors from fatal to error. There is 931no need to abort on simple errors within a field definition. 932 933Debugger: Simplified the output of the help command. All help output now in 934a single screen, instead of help subcommands. ACPICA Bugzilla 897. 935 936---------------------------------------- 93712 January 2011. Summary of changes for version 20110112: 938 9391) ACPI CA Core Subsystem: 940 941Fixed a race condition between method execution and namespace walks that can 942possibly cause a fault. The problem was apparently introduced in version 94320100528 as a result of a performance optimization that reduces the number of 944namespace walks upon method exit by using the delete_namespace_subtree 945function instead of the delete_namespace_by_owner function used previously. 946Bug is a missing namespace lock in the delete_namespace_subtree function. 947dana.myers@oracle.com 948 949Fixed several issues and a possible fault with the automatic "serialized" 950method support. History: This support changes a method to "serialized" on the 951fly if the method generates an AE_ALREADY_EXISTS error, indicating the 952possibility that it cannot handle reentrancy. This fix repairs a couple of 953issues seen in the field, especially on machines with many cores: 954 955 1) Delete method children only upon the exit of the last thread, 956 so as to not delete objects out from under other running threads 957 (and possibly causing a fault.) 958 2) Set the "serialized" bit for the method only upon the exit of the 959 Last thread, so as to not cause deadlock when running threads 960 attempt to exit. 961 3) Cleanup the use of the AML "MethodFlags" and internal method flags 962 so that there is no longer any confusion between the two. 963 964 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 965 966Debugger: Now lock the namespace for duration of a namespace dump. Prevents 967issues if the namespace is changing dynamically underneath the debugger. 968Especially affects temporary namespace nodes, since the debugger displays 969these also. 970 971Updated the ordering of include files. The ACPICA headers should appear 972before any compiler-specific headers (stdio.h, etc.) so that acenv.h can set 973any necessary compiler-specific defines, etc. Affects the ACPI-related tools 974and utilities. 975 976Updated all ACPICA copyrights and signons to 2011. Added the 2011 copyright 977to all module headers and signons, including the Linux header. This affects 978virtually every file in the ACPICA core subsystem, iASL compiler, and all 979utilities. 980 981Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 982project files for VC++ 6.0 are now obsolete. New project files can be found 983under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 984details. 985 986Example Code and Data Size: These are the sizes for the OS-independent 987acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 988debug version of the code includes the debug output trace mechanism and has a 989much larger code and data size. 990 991 Previous Release (VC 6.0): 992 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 993 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 994 Current Release (VC 9.0): 995 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 996 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 997 9982) iASL Compiler/Disassembler and Tools: 999 1000iASL: Added generic data types to the Data Table compiler. Add "generic" data 1001types such as UINT32, String, Unicode, etc., to simplify the generation of 1002platform-defined tables such as UEFI. Lin Ming. 1003 1004iASL: Added listing support for the Data Table Compiler. Adds listing support 1005(-l) to display actual binary output for each line of input code. 1006 1007---------------------------------------- 100809 December 2010. Summary of changes for version 20101209: 1009 10101) ACPI CA Core Subsystem: 1011 1012Completed the major overhaul of the GPE support code that was begun in July 10132010. Major features include: removal of _PRW execution in ACPICA (host 1014executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 1015changes to existing interfaces, simplification of GPE handler operation, and 1016a handful of new interfaces: 1017 1018 AcpiUpdateAllGpes 1019 AcpiFinishGpe 1020 AcpiSetupGpeForWake 1021 AcpiSetGpeWakeMask 1022 One new file, evxfgpe.c to consolidate all external GPE interfaces. 1023 1024See the ACPICA Programmer Reference for full details and programming 1025information. See the new section 4.4 "General Purpose Event (GPE) Support" 1026for a full overview, and section 8.7 "ACPI General Purpose Event Management" 1027for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin Ming, 1028Bob Moore, Rafael Wysocki. 1029 1030Implemented a new GPE feature for Windows compatibility, the "Implicit Wake 1031GPE Notify". This feature will automatically issue a Notify(2) on a device 1032when a Wake GPE is received if there is no corresponding GPE method or 1033handler. ACPICA BZ 870. 1034 1035Fixed a problem with the Scope() operator during table parse and load phase. 1036During load phase (table load or method execution), the scope operator should 1037not enter the target into the namespace. Instead, it should open a new scope 1038at the target location. Linux BZ 19462, ACPICA BZ 882. 1039 1040Example Code and Data Size: These are the sizes for the OS-independent 1041acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1042debug version of the code includes the debug output trace mechanism and has a 1043much larger code and data size. 1044 1045 Previous Release: 1046 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 1047 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 1048 Current Release: 1049 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 1050 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 1051 10522) iASL Compiler/Disassembler and Tools: 1053 1054iASL: Relax the alphanumeric restriction on _CID strings. These strings are 1055"bus-specific" per the ACPI specification, and therefore any characters are 1056acceptable. The only checks that can be performed are for a null string and 1057perhaps for a leading asterisk. ACPICA BZ 886. 1058 1059iASL: Fixed a problem where a syntax error that caused a premature EOF 1060condition on the source file emitted a very confusing error message. The 1061premature EOF is now detected correctly. ACPICA BZ 891. 1062 1063Disassembler: Decode the AccessSize within a Generic Address Structure (byte 1064access, word access, etc.) Note, this field does not allow arbitrary bit 1065access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 1066 1067New: AcpiNames utility - Example namespace dump utility. Shows an example of 1068ACPICA configuration for a minimal namespace dump utility. Uses table and 1069namespace managers, but no AML interpreter. Does not add any functionality 1070over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 1071partition and configure ACPICA. ACPICA BZ 883. 1072 1073AML Debugger: Increased the debugger buffer size for method return objects. 1074Was 4K, increased to 16K. Also enhanced error messages for debugger method 1075execution, including the buffer overflow case. 1076 1077---------------------------------------- 107813 October 2010. Summary of changes for version 20101013: 1079 10801) ACPI CA Core Subsystem: 1081 1082Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, now 1083clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 1084HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 1085 1086Changed the type of the predefined namespace object _TZ from ThermalZone to 1087Device. This was found to be confusing to the host software that processes 1088the various thermal zones, since _TZ is not really a ThermalZone. However, a 1089Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 1090Zhang. 1091 1092Added Windows Vista SP2 to the list of supported _OSI strings. The actual 1093string is "Windows 2006 SP2". 1094 1095Eliminated duplicate code in AcpiUtExecute* functions. Now that the nsrepair 1096code automatically repairs _HID-related strings, this type of code is no 1097longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 878. 1098 1099Example Code and Data Size: These are the sizes for the OS-independent 1100acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1101debug version of the code includes the debug output trace mechanism and has a 1102much larger code and data size. 1103 1104 Previous 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 Current Release: 1108 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 1109 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 1110 11112) iASL Compiler/Disassembler and Tools: 1112 1113iASL: Implemented additional compile-time validation for _HID strings. The 1114non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the length of 1115the string must be exactly seven or eight characters. For both _HID and _CID 1116strings, all characters must be alphanumeric. ACPICA BZ 874. 1117 1118iASL: Allow certain "null" resource descriptors. Some BIOS code creates 1119descriptors that are mostly or all zeros, with the expectation that they will 1120be filled in at runtime. iASL now allows this as long as there is a "resource 1121tag" (name) associated with the descriptor, which gives the ASL a handle 1122needed to modify the descriptor. ACPICA BZ 873. 1123 1124Added single-thread support to the generic Unix application OSL. Primarily 1125for iASL support, this change removes the use of semaphores in the single- 1126threaded ACPICA tools/applications - increasing performance. The 1127_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 1128option. ACPICA BZ 879. 1129 1130AcpiExec: several fixes for the 64-bit version. Adds XSDT support and support 1131for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 1132 1133iASL: Moved all compiler messages to a new file, aslmessages.h. 1134 1135---------------------------------------- 113615 September 2010. Summary of changes for version 20100915: 1137 11381) ACPI CA Core Subsystem: 1139 1140Removed the AcpiOsDerivePciId OSL interface. The various host implementations 1141of this function were not OS-dependent and are now obsolete and can be 1142removed from all host OSLs. This function has been replaced by 1143AcpiHwDerivePciId, which is now part of the ACPICA core code. 1144AcpiHwDerivePciId has been implemented without recursion. Adds one new 1145module, hwpci.c. ACPICA BZ 857. 1146 1147Implemented a dynamic repair for _HID and _CID strings. The following 1148problems are now repaired at runtime: 1) Remove a leading asterisk in the 1149string, and 2) the entire string is uppercased. Both repairs are in 1150accordance with the ACPI specification and will simplify host driver code. 1151ACPICA BZ 871. 1152 1153The ACPI_THREAD_ID type is no longer configurable, internally it is now 1154always UINT64. This simplifies the ACPICA code, especially any printf output. 1155UINT64 is the only common data type for all thread_id types across all 1156operating systems. It is now up to the host OSL to cast the native thread_id 1157type to UINT64 before returning the value to ACPICA (via AcpiOsGetThreadId). 1158Lin Ming, Bob Moore. 1159 1160Added the ACPI_INLINE type to enhance the ACPICA configuration. The "inline" 1161keyword is not standard across compilers, and this type allows inline to be 1162configured on a per-compiler basis. Lin Ming. 1163 1164Made the system global AcpiGbl_SystemAwakeAndRunning publically available. 1165Added an extern for this boolean in acpixf.h. Some hosts utilize this value 1166during suspend/restore operations. ACPICA BZ 869. 1167 1168All code that implements error/warning messages with the "ACPI:" prefix has 1169been moved to a new module, utxferror.c. 1170 1171The UINT64_OVERLAY was moved to utmath.c, which is the only module where it 1172is used. ACPICA BZ 829. Lin Ming, Bob Moore. 1173 1174Example Code and Data Size: These are the sizes for the OS-independent 1175acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1176debug version of the code includes the debug output trace mechanism and has a 1177much larger code and data size. 1178 1179 Previous Release: 1180 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 1181 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 1182 Current Release: 1183 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 1184 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 1185 11862) iASL Compiler/Disassembler and Tools: 1187 1188iASL/Disassembler: Write ACPI errors to stderr instead of the output file. 1189This keeps the output files free of random error messages that may originate 1190from within the namespace/interpreter code. Used this opportunity to merge 1191all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 1192866. Lin Ming, Bob Moore. 1193 1194Tools: update some printfs for ansi warnings on size_t. Handle width change 1195of size_t on 32-bit versus 64-bit generations. Lin Ming. 1196 1197---------------------------------------- 119806 August 2010. Summary of changes for version 20100806: 1199 12001) ACPI CA Core Subsystem: 1201 1202Designed and implemented a new host interface to the _OSI support code. This 1203will allow the host to dynamically add or remove multiple _OSI strings, as 1204well as install an optional handler that is called for each _OSI invocation. 1205Also added a new AML debugger command, 'osi' to display and modify the global 1206_OSI string table, and test support in the AcpiExec utility. See the ACPICA 1207reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 1208New Functions: 1209 AcpiInstallInterface - Add an _OSI string. 1210 AcpiRemoveInterface - Delete an _OSI string. 1211 AcpiInstallInterfaceHandler - Install optional _OSI handler. 1212Obsolete Functions: 1213 AcpiOsValidateInterface - no longer used. 1214New Files: 1215 source/components/utilities/utosi.c 1216 1217Re-introduced the support to enable multi-byte transfers for Embedded 1218Controller (EC) operation regions. A reported problem was found to be a bug 1219in the host OS, not in the multi-byte support. Previously, the maximum data 1220size passed to the EC operation region handler was a single byte. There are 1221often EC Fields larger than one byte that need to be transferred, and it is 1222useful for the EC driver to lock these as a single transaction. This change 1223enables single transfers larger than 8 bits. This effectively changes the 1224access to the EC space from ByteAcc to AnyAcc, and will probably require 1225changes to the host OS Embedded Controller driver to enable 16/32/64/256-bit 1226transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 1227 1228Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 1229prototype in acpiosxf.h had the output value pointer as a (void *). 1230It should be a (UINT64 *). This may affect some host OSL code. 1231 1232Fixed a couple problems with the recently modified Linux makefiles for iASL 1233and AcpiExec. These new makefiles place the generated object files in the 1234local directory so that there can be no collisions between the files that are 1235shared between them that are compiled with different options. 1236 1237Example Code and Data Size: These are the sizes for the OS-independent 1238acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1239debug version of the code includes the debug output trace mechanism and has a 1240much larger code and data size. 1241 1242 Previous Release: 1243 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1244 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 1245 Current Release: 1246 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 1247 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 1248 12492) iASL Compiler/Disassembler and Tools: 1250 1251iASL/Disassembler: Added a new option (-da, "disassemble all") to load the 1252namespace from and disassemble an entire group of AML files. Useful for 1253loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) and 1254disassembling with one simple command. ACPICA BZ 865. Lin Ming. 1255 1256iASL: Allow multiple invocations of -e option. This change allows multiple 1257uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 834. 1258Lin Ming. 1259 1260---------------------------------------- 126102 July 2010. Summary of changes for version 20100702: 1262 12631) ACPI CA Core Subsystem: 1264 1265Implemented several updates to the recently added GPE reference count 1266support. The model for "wake" GPEs is changing to give the host OS complete 1267control of these GPEs. Eventually, the ACPICA core will not execute any _PRW 1268methods, since the host already must execute them. Also, additional changes 1269were made to help ensure that the reference counts are kept in proper 1270synchronization with reality. Rafael J. Wysocki. 1271 12721) Ensure that GPEs are not enabled twice during initialization. 12732) Ensure that GPE enable masks stay in sync with the reference count. 12743) Do not inadvertently enable GPEs when writing GPE registers. 12754) Remove the internal wake reference counter and add new AcpiGpeWakeup 1276interface. This interface will set or clear individual GPEs for wakeup. 12775) Remove GpeType argument from AcpiEnable and AcpiDisable. These interfaces 1278are now used for "runtime" GPEs only. 1279 1280Changed the behavior of the GPE install/remove handler interfaces. The GPE is 1281no longer disabled during this process, as it was found to cause problems on 1282some machines. Rafael J. Wysocki. 1283 1284Reverted a change introduced in version 20100528 to enable Embedded 1285Controller multi-byte transfers. This change was found to cause problems with 1286Index Fields and possibly Bank Fields. It will be reintroduced when these 1287problems have been resolved. 1288 1289Fixed a problem with references to Alias objects within Package Objects. A 1290reference to an Alias within the definition of a Package was not always 1291resolved properly. Aliases to objects like Processors, Thermal zones, etc. 1292were resolved to the actual object instead of a reference to the object as it 1293should be. Package objects are only allowed to contain integer, string, 1294buffer, package, and reference objects. Redhat bugzilla 608648. 1295 1296Example Code and Data Size: These are the sizes for the OS-independent 1297acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1298debug version of the code includes the debug output trace mechanism and has a 1299much larger code and data size. 1300 1301 Previous Release: 1302 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1303 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 1304 Current Release: 1305 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1306 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 1307 13082) iASL Compiler/Disassembler and Tools: 1309 1310iASL: Implemented a new compiler subsystem to allow definition and 1311compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. These 1312are called "ACPI Data Tables", and the new compiler is the "Data Table 1313Compiler". This compiler is intended to simplify the existing error-prone 1314process of creating these tables for the BIOS, as well as allowing the 1315disassembly, modification, recompilation, and override of existing ACPI data 1316tables. See the iASL User Guide for detailed information. 1317 1318iASL: Implemented a new Template Generator option in support of the new Data 1319Table Compiler. This option will create examples of all known ACPI tables 1320that can be used as the basis for table development. See the iASL 1321documentation and the -T option. 1322 1323Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 1324Descriptor Table). 1325 1326Updated the Linux makefiles for iASL and AcpiExec to place the generated 1327object files in the local directory so that there can be no collisions 1328between the shared files between them that are generated with different 1329options. 1330 1331Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. Use 1332the #define __APPLE__ to enable this support. 1333 1334---------------------------------------- 133528 May 2010. Summary of changes for version 20100528: 1336 1337Note: The ACPI 4.0a specification was released on April 5, 2010 and is 1338available at www.acpi.info. This is primarily an errata release. 1339 13401) ACPI CA Core Subsystem: 1341 1342Undefined ACPI tables: We are looking for the definitions for the following 1343ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 1344 1345Implemented support to enable multi-byte transfers for Embedded Controller 1346(EC) operation regions. Previously, the maximum data size passed to the EC 1347operation region handler was a single byte. There are often EC Fields larger 1348than one byte that need to be transferred, and it is useful for the EC driver 1349to lock these as a single transaction. This change enables single transfers 1350larger than 8 bits. This effectively changes the access to the EC space from 1351ByteAcc to AnyAcc, and will probably require changes to the host OS Embedded 1352Controller driver to enable 16/32/64/256-bit transfers in addition to 8-bit 1353transfers. Alexey Starikovskiy, Lin Ming 1354 1355Implemented a performance enhancement for namespace search and access. This 1356change enhances the performance of namespace searches and walks by adding a 1357backpointer to the parent in each namespace node. On large namespaces, this 1358change can improve overall ACPI performance by up to 9X. Adding a pointer to 1359each namespace node increases the overall size of the internal namespace by 1360about 5%, since each namespace entry usually consists of both a namespace 1361node and an ACPI operand object. However, this is the first growth of the 1362namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 1363 1364Implemented a performance optimization that reduces the number of namespace 1365walks. On control method exit, only walk the namespace if the method is known 1366to have created namespace objects outside of its local scope. Previously, the 1367entire namespace was traversed on each control method exit. This change can 1368improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob Moore. 1369 1370Added support to truncate I/O addresses to 16 bits for Windows compatibility. 1371Some ASL code has been seen in the field that inadvertently has bits set 1372above bit 15. This feature is optional and is enabled if the BIOS requests 1373any Windows OSI strings. It can also be enabled by the host OS. Matthew 1374Garrett, Bob Moore. 1375 1376Added support to limit the maximum time for the ASL Sleep() operator. To 1377prevent accidental deep sleeps, limit the maximum time that Sleep() will 1378actually sleep. Configurable, the default maximum is two seconds. ACPICA 1379bugzilla 854. 1380 1381Added run-time validation support for the _WDG and_WED Microsoft predefined 1382methods. These objects are defined by "Windows Instrumentation", and are not 1383part of the ACPI spec. ACPICA BZ 860. 1384 1385Expanded all statistic counters used during namespace and device 1386initialization from 16 to 32 bits in order to support very large namespaces. 1387 1388Replaced all instances of %d in printf format specifiers with %u since nearly 1389all integers in ACPICA are unsigned. 1390 1391Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly returned 1392as AE_NO_HANDLER. 1393 1394Example Code and Data Size: These are the sizes for the OS-independent 1395acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1396debug version of the code includes the debug output trace mechanism and has a 1397much larger code and data size. 1398 1399 Previous Release: 1400 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 1401 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 1402 Current Release: 1403 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1404 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 1405 14062) iASL Compiler/Disassembler and Tools: 1407 1408iASL: Added compiler support for the _WDG and_WED Microsoft predefined 1409methods. These objects are defined by "Windows Instrumentation", and are not 1410part of the ACPI spec. ACPICA BZ 860. 1411 1412AcpiExec: added option to disable the memory tracking mechanism. The -dt 1413option will disable the tracking mechanism, which improves performance 1414considerably. 1415 1416AcpiExec: Restructured the command line options into -d (disable) and -e 1417(enable) options. 1418 1419---------------------------------------- 142028 April 2010. Summary of changes for version 20100428: 1421 14221) ACPI CA Core Subsystem: 1423 1424Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 1425including FADT-based and GPE Block Devices, execute any _PRW methods in the 1426new table, and process any _Lxx/_Exx GPE methods in the new table. Any 1427runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 1428immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 1429Devices. Provides compatibility with other ACPI implementations. Two new 1430files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob Moore. 1431 1432Fixed a regression introduced in version 20100331 within the table manager 1433where initial table loading could fail. This was introduced in the fix for 1434AcpiReallocateRootTable. Also, renamed some of fields in the table manager 1435data structures to clarify their meaning and use. 1436 1437Fixed a possible allocation overrun during internal object copy in 1438AcpiUtCopySimpleObject. The original code did not correctly handle the case 1439where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 847. 1440 1441Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 1442possible access beyond end-of-allocation. Also, now fully validate descriptor 1443(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 1444 1445Example Code and Data Size: These are the sizes for the OS-independent 1446acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1447debug version of the code includes the debug output trace mechanism and has a 1448much larger code and data size. 1449 1450 Previous Release: 1451 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 1452 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 1453 Current Release: 1454 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 1455 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 1456 14572) iASL Compiler/Disassembler and Tools: 1458 1459iASL: Implemented Min/Max/Len/Gran validation for address resource 1460descriptors. This change implements validation for the address fields that 1461are common to all address-type resource descriptors. These checks are 1462implemented: Checks for valid Min/Max, length within the Min/Max window, 1463valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as per 1464table 6-40 in the ACPI 4.0a specification. Also split the large aslrestype1.c 1465and aslrestype2.c files into five new files. ACPICA BZ 840. 1466 1467iASL: Added support for the _Wxx predefined names. This support was missing 1468and these names were not recognized by the compiler as valid predefined 1469names. ACPICA BZ 851. 1470 1471iASL: Added an error for all predefined names that are defined to return no 1472value and thus must be implemented as Control Methods. These include all of 1473the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 1474names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 1475 1476iASL: Implemented the -ts option to emit hex AML data in ASL format, as an 1477ASL Buffer. Allows ACPI tables to be easily included within ASL files, to be 1478dynamically loaded via the Load() operator. Also cleaned up output for the - 1479ta and -tc options. ACPICA BZ 853. 1480 1481Tests: Added a new file with examples of extended iASL error checking. 1482Demonstrates the advanced error checking ability of the iASL compiler. 1483Available at tests/misc/badcode.asl. 1484 1485---------------------------------------- 148631 March 2010. Summary of changes for version 20100331: 1487 14881) ACPI CA Core Subsystem: 1489 1490Completed a major update for the GPE support in order to improve support for 1491shared GPEs and to simplify both host OS and ACPICA code. Added a reference 1492count mechanism to support shared GPEs that require multiple device drivers. 1493Several external interfaces have changed. One external interface has been 1494removed. One new external interface was added. Most of the GPE external 1495interfaces now use the GPE spinlock instead of the events mutex (and the 1496Flags parameter for many GPE interfaces has been removed.) See the updated 1497ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, Rafael 1498Wysocki. ACPICA BZ 831. 1499 1500Changed: 1501 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 1502Removed: 1503 AcpiSetGpeType 1504New: 1505 AcpiSetGpe 1506 1507Implemented write support for DataTable operation regions. These regions are 1508defined via the DataTableRegion() operator. Previously, only read support was 1509implemented. The ACPI specification allows DataTableRegions to be read/write, 1510however. 1511 1512Implemented a new subsystem option to force a copy of the DSDT to local 1513memory. Optionally copy the entire DSDT to local memory (instead of simply 1514mapping it.) There are some (albeit very rare) BIOSs that corrupt or replace 1515the original DSDT, creating the need for this option. Default is FALSE, do 1516not copy the DSDT. 1517 1518Implemented detection of a corrupted or replaced DSDT. This change adds 1519support to detect a DSDT that has been corrupted and/or replaced from outside 1520the OS (by firmware). This is typically catastrophic for the system, but has 1521been seen on some machines. Once this problem has been detected, the DSDT 1522copy option can be enabled via system configuration. Lin Ming, Bob Moore. 1523 1524Fixed two problems with AcpiReallocateRootTable during the root table copy. 1525When copying the root table to the new allocation, the length used was 1526incorrect. The new size was used instead of the current table size, meaning 1527too much data was copied. Also, the count of available slots for ACPI tables 1528was not set correctly. Alexey Starikovskiy, Bob Moore. 1529 1530Example Code and Data Size: These are the sizes for the OS-independent 1531acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1532debug version of the code includes the debug output trace mechanism and has a 1533much larger code and data size. 1534 1535 Previous Release: 1536 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 1537 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 1538 Current Release: 1539 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 1540 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 1541 15422) iASL Compiler/Disassembler and Tools: 1543 1544iASL: Implement limited typechecking for values returned from predefined 1545control methods. The type of any returned static (unnamed) object is now 1546validated. For example, Return(1). ACPICA BZ 786. 1547 1548iASL: Fixed a predefined name object verification regression. Fixes a problem 1549introduced in version 20100304. An error is incorrectly generated if a 1550predefined name is declared as a static named object with a value defined 1551using the keywords "Zero", "One", or "Ones". Lin Ming. 1552 1553iASL: Added Windows 7 support for the -g option (get local ACPI tables) by 1554reducing the requested registry access rights. ACPICA BZ 842. 1555 1556Disassembler: fixed a possible fault when generating External() statements. 1557Introduced in commit ae7d6fd: Properly handle externals with parent-prefix 1558(carat). Fixes a string length allocation calculation. Lin Ming. 1559 1560---------------------------------------- 156104 March 2010. Summary of changes for version 20100304: 1562 15631) ACPI CA Core Subsystem: 1564 1565Fixed a possible problem with the AML Mutex handling function 1566AcpiExReleaseMutex where the function could fault under the very rare 1567condition when the interpreter has blocked, the interpreter lock is released, 1568the interpreter is then reentered via the same thread, and attempts to 1569acquire an AML mutex that was previously acquired. FreeBSD report 140979. Lin 1570Ming. 1571 1572Implemented additional configuration support for the AML "Debug Object". 1573Output from the debug object can now be enabled via a global variable, 1574AcpiGbl_EnableAmlDebugObject. This will assist with remote machine debugging. 1575This debug output is now available in the release version of ACPICA instead 1576of just the debug version. Also, the entire debug output module can now be 1577configured out of the ACPICA build if desired. One new file added, 1578executer/exdebug.c. Lin Ming, Bob Moore. 1579 1580Added header support for the ACPI MCHI table (Management Controller Host 1581Interface Table). This table was added in ACPI 4.0, but the defining document 1582has only recently become available. 1583 1584Standardized output of integer values for ACPICA warnings/errors. Always use 15850x prefix for hex output, always use %u for unsigned integer decimal output. 1586Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 400 1587invocations.) These invocations were converted from the original 1588ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 1589 1590Example Code and Data Size: These are the sizes for the OS-independent 1591acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1592debug version of the code includes the debug output trace mechanism and has a 1593much larger code and data size. 1594 1595 Previous Release: 1596 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 1597 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 1598 Current Release: 1599 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 1600 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 1601 16022) iASL Compiler/Disassembler and Tools: 1603 1604iASL: Implemented typechecking support for static (non-control method) 1605predefined named objects that are declared with the Name() operator. For 1606example, the type of this object is now validated to be of type Integer: 1607Name(_BBN, 1). This change migrates the compiler to using the core predefined 1608name table instead of maintaining a local version. Added a new file, 1609aslpredef.c. ACPICA BZ 832. 1610 1611Disassembler: Added support for the ACPI 4.0 MCHI table. 1612 1613---------------------------------------- 161421 January 2010. Summary of changes for version 20100121: 1615 16161) ACPI CA Core Subsystem: 1617 1618Added the 2010 copyright to all module headers and signons. This affects 1619virtually every file in the ACPICA core subsystem, the iASL compiler, the 1620tools/utilities, and the test suites. 1621 1622Implemented a change to the AcpiGetDevices interface to eliminate unnecessary 1623invocations of the _STA method. In the case where a specific _HID is 1624requested, do not run _STA until a _HID match is found. This eliminates 1625potentially dozens of _STA calls during a search for a particular device/HID, 1626which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 1627 1628Implemented an additional repair for predefined method return values. Attempt 1629to repair unexpected NULL elements within returned Package objects. Create an 1630Integer of value zero, a NULL String, or a zero-length Buffer as appropriate. 1631ACPICA BZ 818. Lin Ming, Bob Moore. 1632 1633Removed the obsolete ACPI_INTEGER data type. This type was introduced as the 1634code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 (with 163564-bit AML integers). It is now obsolete and this change removes it from the 1636ACPICA code base, replaced by UINT64. The original typedef has been retained 1637for now for compatibility with existing device driver code. ACPICA BZ 824. 1638 1639Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field in 1640the parse tree object. 1641 1642Added additional warning options for the gcc-4 generation. Updated the source 1643accordingly. This includes some code restructuring to eliminate unreachable 1644code, elimination of some gotos, elimination of unused return values, some 1645additional casting, and removal of redundant declarations. 1646 1647Example Code and Data Size: These are the sizes for the OS-independent 1648acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1649debug version of the code includes the debug output trace mechanism and has a 1650much larger code and data size. 1651 1652 Previous Release: 1653 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 1654 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 1655 Current Release: 1656 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 1657 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 1658 16592) iASL Compiler/Disassembler and Tools: 1660 1661No functional changes for this release. 1662 1663---------------------------------------- 166414 December 2009. Summary of changes for version 20091214: 1665 16661) ACPI CA Core Subsystem: 1667 1668Enhanced automatic data type conversions for predefined name repairs. This 1669change expands the automatic repairs/conversions for predefined name return 1670values to make Integers, Strings, and Buffers fully interchangeable. Also, a 1671Buffer can be converted to a Package of Integers if necessary. The nsrepair.c 1672module was completely restructured. Lin Ming, Bob Moore. 1673 1674Implemented automatic removal of null package elements during predefined name 1675repairs. This change will automatically remove embedded and trailing NULL 1676package elements from returned package objects that are defined to contain a 1677variable number of sub-packages. The driver is then presented with a package 1678with no null elements to deal with. ACPICA BZ 819. 1679 1680Implemented a repair for the predefined _FDE and _GTM names. The expected 1681return value for both names is a Buffer of 5 DWORDs. This repair fixes two 1682possible problems (both seen in the field), where a package of integers is 1683returned, or a buffer of BYTEs is returned. With assistance from Jung-uk Kim. 1684 1685Implemented additional module-level code support. This change will properly 1686execute module-level code that is not at the root of the namespace (under a 1687Device object, etc.). Now executes the code within the current scope instead 1688of the root. ACPICA BZ 762. Lin Ming. 1689 1690Fixed possible mutex acquisition errors when running _REG methods. Fixes a 1691problem where mutex errors can occur when running a _REG method that is in 1692the same scope as a method-defined operation region or an operation region 1693under a module-level IF block. This type of code is rare, so the problem has 1694not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 1695 1696Fixed a possible memory leak during module-level code execution. An object 1697could be leaked for each block of executed module-level code if the 1698interpreter slack mode is enabled This change deletes any implicitly returned 1699object from the module-level code block. Lin Ming. 1700 1701Removed messages for successful predefined repair(s). The repair mechanism 1702was considered too wordy. Now, messages are only unconditionally emitted if 1703the return object cannot be repaired. Existing messages for successful 1704repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 827. 1705 1706Example Code and Data Size: These are the sizes for the OS-independent 1707acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1708debug version of the code includes the debug output trace mechanism and has a 1709much larger code and data size. 1710 1711 Previous Release: 1712 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 1713 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 1714 Current Release: 1715 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 1716 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 1717 17182) iASL Compiler/Disassembler and Tools: 1719 1720iASL: Fixed a regression introduced in 20091112 where intermediate .SRC files 1721were no longer automatically removed at the termination of the compile. 1722 1723acpiexec: Implemented the -f option to specify default region fill value. 1724This option specifies the value used to initialize buffers that simulate 1725operation regions. Default value is zero. Useful for debugging problems that 1726depend on a specific initial value for a region or field. 1727 1728---------------------------------------- 172912 November 2009. Summary of changes for version 20091112: 1730 17311) ACPI CA Core Subsystem: 1732 1733Implemented a post-order callback to AcpiWalkNamespace. The existing 1734interface only has a pre-order callback. This change adds an additional 1735parameter for a post-order callback which will be more useful for bus scans. 1736ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 1737 1738Modified the behavior of the operation region memory mapping cache for 1739SystemMemory. Ensure that the memory mappings created for operation regions 1740do not cross 4K page boundaries. Crossing a page boundary while mapping 1741regions can cause kernel warnings on some hosts if the pages have different 1742attributes. Such regions are probably BIOS bugs, and this is the workaround. 1743Linux BZ 14445. Lin Ming. 1744 1745Implemented an automatic repair for predefined methods that must return 1746sorted lists. This change will repair (by sorting) packages returned by _ALR, 1747_PSS, and _TSS. Drivers can now assume that the packages are correctly sorted 1748and do not contain NULL package elements. Adds one new file, 1749namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 1750 1751Fixed a possible fault during predefined name validation if a return Package 1752object contains NULL elements. Also adds a warning if a NULL element is 1753followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement may 1754include repair or removal of all such NULL elements where possible. 1755 1756Implemented additional module-level executable AML code support. This change 1757will execute module-level code that is not at the root of the namespace 1758(under a Device object, etc.) at table load time. Module-level executable AML 1759code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 1760 1761Implemented a new internal function to create Integer objects. This function 1762simplifies miscellaneous object creation code. ACPICA BZ 823. 1763 1764Reduced the severity of predefined repair messages, Warning to Info. Since 1765the object was successfully repaired, a warning is too severe. Reduced to an 1766info message for now. These messages may eventually be changed to debug-only. 1767ACPICA BZ 812. 1768 1769Example Code and Data Size: These are the sizes for the OS-independent 1770acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1771debug version of the code includes the debug output trace mechanism and has a 1772much larger code and data size. 1773 1774 Previous Release: 1775 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 1776 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 1777 Current Release: 1778 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 1779 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 1780 17812) iASL Compiler/Disassembler and Tools: 1782 1783iASL: Implemented Switch() with While(1) so that Break works correctly. This 1784change correctly implements the Switch operator with a surrounding While(1) 1785so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 1786 1787iASL: Added a message if a package initializer list is shorter than package 1788length. Adds a new remark for a Package() declaration if an initializer list 1789exists, but is shorter than the declared length of the package. Although 1790technically legal, this is probably a coding error and it is seen in the 1791field. ACPICA BZ 815. Lin Ming, Bob Moore. 1792 1793iASL: Fixed a problem where the compiler could fault after the maximum number 1794of errors was reached (200). 1795 1796acpixtract: Fixed a possible warning for pointer cast if the compiler warning 1797level set very high. 1798 1799---------------------------------------- 180013 October 2009. Summary of changes for version 20091013: 1801 18021) ACPI CA Core Subsystem: 1803 1804Fixed a problem where an Operation Region _REG method could be executed more 1805than once. If a custom address space handler is installed by the host before 1806the "initialize operation regions" phase of the ACPICA initialization, any 1807_REG methods for that address space could be executed twice. This change 1808fixes the problem. ACPICA BZ 427. Lin Ming. 1809 1810Fixed a possible memory leak for the Scope() ASL operator. When the exact 1811invocation of "Scope(\)" is executed (change scope to root), one internal 1812operand object was leaked. Lin Ming. 1813 1814Implemented a run-time repair for the _MAT predefined method. If the _MAT 1815return value is defined as a Field object in the AML, and the field 1816size is less than or equal to the default width of an integer (32 or 64),_MAT 1817can incorrectly return an Integer instead of a Buffer. ACPICA now 1818automatically repairs this problem. ACPICA BZ 810. 1819 1820Implemented a run-time repair for the _BIF and _BIX predefined methods. The 1821"OEM Information" field is often incorrectly returned as an Integer with 1822value zero if the field is not supported by the platform. This is due to an 1823ambiguity in the ACPI specification. The field should always be a string. 1824ACPICA now automatically repairs this problem by returning a NULL string 1825within the returned Package. ACPICA BZ 807. 1826 1827Example Code and Data Size: These are the sizes for the OS-independent 1828acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1829debug version of the code includes the debug output trace mechanism and has a 1830much larger code and data size. 1831 1832 Previous Release: 1833 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 1834 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 1835 Current Release: 1836 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 1837 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 1838 18392) iASL Compiler/Disassembler and Tools: 1840 1841Disassembler: Fixed a problem where references to external symbols that 1842contained one or more parent-prefixes (carats) were not handled correctly, 1843possibly causing a fault. ACPICA BZ 806. Lin Ming. 1844 1845Disassembler: Restructured the code so that all functions that handle 1846external symbols are in a single module. One new file is added, 1847common/dmextern.c. 1848 1849AML Debugger: Added a max count argument for the Batch command (which 1850executes multiple predefined methods within the namespace.) 1851 1852iASL: Updated the compiler documentation (User Reference.) Available at 1853http://www.acpica.org/documentation/. ACPICA BZ 750. 1854 1855AcpiXtract: Updated for Lint and other formatting changes. Close all open 1856files. 1857 1858---------------------------------------- 185903 September 2009. Summary of changes for version 20090903: 1860 18611) ACPI CA Core Subsystem: 1862 1863For Windows Vista compatibility, added the automatic execution of an _INI 1864method located at the namespace root (\_INI). This method is executed at 1865table load time. This support is in addition to the automatic execution of 1866\_SB._INI. Lin Ming. 1867 1868Fixed a possible memory leak in the interpreter for AML package objects if 1869the package initializer list is longer than the defined size of the package. 1870This apparently can only happen if the BIOS changes the package size on the 1871fly (seen in a _PSS object), as ASL compilers do not allow this. The 1872interpreter will truncate the package to the defined size (and issue an error 1873message), but previously could leave the extra objects undeleted if they were 1874pre-created during the argument processing (such is the case if the package 1875consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 1876 1877Fixed a problem seen when a Buffer or String is stored to itself via ASL. 1878This has been reported in the field. Previously, ACPICA would zero out the 1879buffer/string. Now, the operation is treated as a noop. Provides Windows 1880compatibility. ACPICA BZ 803. Lin Ming. 1881 1882Removed an extraneous error message for ASL constructs of the form 1883Store(LocalX,LocalX) when LocalX is uninitialized. These curious statements 1884are seen in many BIOSs and are once again treated as NOOPs and no error is 1885emitted when they are encountered. ACPICA BZ 785. 1886 1887Fixed an extraneous warning message if a _DSM reserved method returns a 1888Package object. _DSM can return any type of object, so validation on the 1889return type cannot be performed. ACPICA BZ 802. 1890 1891Example Code and Data Size: These are the sizes for the OS-independent 1892acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1893debug version of the code includes the debug output trace mechanism and has a 1894much larger code and data size. 1895 1896 Previous Release: 1897 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 1898 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 1899 Current Release: 1900 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 1901 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 1902 19032) iASL Compiler/Disassembler and Tools: 1904 1905iASL: Fixed a problem with the use of the Alias operator and Resource 1906Templates. The correct alias is now constructed and no error is emitted. 1907ACPICA BZ 738. 1908 1909iASL: Implemented the -I option to specify additional search directories for 1910include files. Allows multiple additional search paths for include files. 1911Directories are searched in the order specified on the command line (after 1912the local directory is searched.) ACPICA BZ 800. 1913 1914iASL: Fixed a problem where the full pathname for include files was not 1915emitted for warnings/errors. This caused the IDE support to not work 1916properly. ACPICA BZ 765. 1917 1918iASL: Implemented the -@ option to specify a Windows-style response file 1919containing additional command line options. ACPICA BZ 801. 1920 1921AcpiExec: Added support to load multiple AML files simultaneously (such as a 1922DSDT and multiple SSDTs). Also added support for wildcards within the AML 1923pathname. These features allow all machine tables to be easily loaded and 1924debugged together. ACPICA BZ 804. 1925 1926Disassembler: Added missing support for disassembly of HEST table Error Bank 1927subtables. 1928 1929---------------------------------------- 193030 July 2009. Summary of changes for version 20090730: 1931 1932The ACPI 4.0 implementation for ACPICA is complete with this release. 1933 19341) ACPI CA Core Subsystem: 1935 1936ACPI 4.0: Added header file support for all new and changed ACPI tables. 1937Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 1938for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, BERT, 1939EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. There 1940have been some ACPI 4.0 changes to other existing tables. Split the large 1941actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 1942 1943ACPI 4.0: Implemented predefined name validation for all new names. There are 194431 new names in ACPI 4.0. The predefined validation module was split into two 1945files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 1946 1947Implemented support for so-called "module-level executable code". This is 1948executable AML code that exists outside of any control method and is intended 1949to be executed at table load time. Although illegal since ACPI 2.0, this type 1950of code still exists and is apparently still being created. Blocks of this 1951code are now detected and executed as intended. Currently, the code blocks 1952must exist under either an If, Else, or While construct; these are the 1953typical cases seen in the field. ACPICA BZ 762. Lin Ming. 1954 1955Implemented an automatic dynamic repair for predefined names that return 1956nested Package objects. This applies to predefined names that are defined to 1957return a variable-length Package of sub-packages. If the number of sub- 1958packages is one, BIOS code is occasionally seen that creates a simple single 1959package with no sub-packages. This code attempts to fix the problem by 1960wrapping a new package object around the existing package. These methods can 1961be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 1962790. 1963 1964Fixed a regression introduced in 20090625 for the AcpiGetDevices interface. 1965The _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA 1966BZ 793. 1967 1968Fixed a problem with AcpiReset where the reset would silently fail if the 1969register was one of the protected I/O ports. AcpiReset now bypasses the port 1970validation mechanism. This may eventually be driven into the AcpiRead/Write 1971interfaces. 1972 1973Fixed a regression related to the recent update of the AcpiRead/Write 1974interfaces. A sleep/suspend could fail if the optional PM2 Control register 1975does not exist during an attempt to write the Bus Master Arbitration bit. 1976(However, some hosts already delete the code that writes this bit, and the 1977code may in fact be obsolete at this date.) ACPICA BZ 799. 1978 1979Fixed a problem where AcpiTerminate could fault if inadvertently called twice 1980in succession. ACPICA BZ 795. 1981 1982Example Code and Data Size: These are the sizes for the OS-independent 1983acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1984debug version of the code includes the debug output trace mechanism and has a 1985much larger code and data size. 1986 1987 Previous Release: 1988 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 1989 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 1990 Current Release: 1991 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 1992 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 1993 19942) iASL Compiler/Disassembler and Tools: 1995 1996ACPI 4.0: Implemented disassembler support for all new ACPI tables and 1997changes to existing tables. ACPICA BZ 775. 1998 1999---------------------------------------- 200025 June 2009. Summary of changes for version 20090625: 2001 2002The ACPI 4.0 Specification was released on June 16 and is available at 2003www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 2004continue for the next few releases. 2005 20061) ACPI CA Core Subsystem: 2007 2008ACPI 4.0: Implemented interpreter support for the IPMI operation region 2009address space. Includes support for bi-directional data buffers and an IPMI 2010address space handler (to be installed by an IPMI device driver.) ACPICA BZ 2011773. Lin Ming. 2012 2013ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 2014support in both the header files and the disassembler. 2015 2016Completed a major update for the AcpiGetObjectInfo external interface. 2017Changes include: 2018 - Support for variable, unlimited length HID, UID, and CID strings. 2019 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.) 2020 - Call the _SxW power methods on behalf of a device object. 2021 - Determine if a device is a PCI root bridge. 2022 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 2023These changes will require an update to all callers of this interface. See 2024the updated ACPICA Programmer Reference for details. One new source file has 2025been added - utilities/utids.c. ACPICA BZ 368, 780. 2026 2027Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 2028transfers. The Value parameter has been extended from 32 bits to 64 bits in 2029order to support new ACPI 4.0 tables. These changes will require an update to 2030all callers of these interfaces. See the ACPICA Programmer Reference for 2031details. ACPICA BZ 768. 2032 2033Fixed several problems with AcpiAttachData. The handler was not invoked when 2034the host node was deleted. The data sub-object was not automatically deleted 2035when the host node was deleted. The interface to the handler had an unused 2036parameter, this was removed. ACPICA BZ 778. 2037 2038Enhanced the function that dumps ACPI table headers. All non-printable 2039characters in the string fields are now replaced with '?' (Signature, OemId, 2040OemTableId, and CompilerId.) ACPI tables with non-printable characters in 2041these fields are occasionally seen in the field. ACPICA BZ 788. 2042 2043Fixed a problem with predefined method repair code where the code that 2044attempts to repair/convert an object of incorrect type is only executed on 2045the first time the predefined method is called. The mechanism that disables 2046warnings on subsequent calls was interfering with the repair mechanism. 2047ACPICA BZ 781. 2048 2049Fixed a possible memory leak in the predefined validation/repair code when a 2050buffer is automatically converted to an expected string object. 2051 2052Removed obsolete 16-bit files from the distribution and from the current git 2053tree head. ACPICA BZ 776. 2054 2055Example Code and Data Size: These are the sizes for the OS-independent 2056acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2057debug version of the code includes the debug output trace mechanism and has a 2058much larger code and data size. 2059 2060 Previous Release: 2061 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 2062 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 2063 Current Release: 2064 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 2065 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 2066 20672) iASL Compiler/Disassembler and Tools: 2068 2069ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 2070operation region keyword. ACPICA BZ 771, 772. Lin Ming. 2071 2072ACPI 4.0: iASL - implemented compile-time validation support for all new 2073predefined names and control methods (31 total). ACPICA BZ 769. 2074 2075---------------------------------------- 207621 May 2009. Summary of changes for version 20090521: 2077 20781) ACPI CA Core Subsystem: 2079 2080Disabled the preservation of the SCI enable bit in the PM1 control register. 2081The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be 2082a "preserved" bit - "OSPM always preserves this bit position", section 20834.7.3.2.1. However, some machines fail if this bit is in fact preserved 2084because the bit needs to be explicitly set by the OS as a workaround. No 2085machines fail if the bit is not preserved. Therefore, ACPICA no longer 2086attempts to preserve this bit. 2087 2088Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 2089incorrectly formed _PRT package could cause a fault. Added validation to 2090ensure that each package element is actually a sub-package. 2091 2092Implemented a new interface to install or override a single control method, 2093AcpiInstallMethod. This interface is useful when debugging in order to repair 2094an existing method or to install a missing method without having to override 2095the entire ACPI table. See the ACPICA Programmer Reference for use and 2096examples. Lin Ming, Bob Moore. 2097 2098Fixed several reference count issues with the DdbHandle object that is 2099created from a Load or LoadTable operator. Prevent premature deletion of the 2100object. Also, mark the object as invalid once the table has been unloaded. 2101This is needed because the handle itself may not be deleted after the table 2102unload, depending on whether it has been stored in a named object by the 2103caller. Lin Ming. 2104 2105Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 2106mutexes of the same sync level are acquired but then not released in strict 2107opposite order, the internally maintained Current Sync Level becomes confused 2108and can cause subsequent execution errors. ACPICA BZ 471. 2109 2110Changed the allowable release order for ASL mutex objects. The ACPI 4.0 2111specification has been changed to make the SyncLevel for mutex objects more 2112useful. When releasing a mutex, the SyncLevel of the mutex must now be the 2113same as the current sync level. This makes more sense than the previous rule 2114(SyncLevel less than or equal). This change updates the code to match the 2115specification. 2116 2117Fixed a problem with the local version of the AcpiOsPurgeCache function. The 2118(local) cache must be locked during all cache object deletions. Andrew 2119Baumann. 2120 2121Updated the Load operator to use operation region interfaces. This replaces 2122direct memory mapping with region access calls. Now, all region accesses go 2123through the installed region handler as they should. 2124 2125Simplified and optimized the NsGetNextNode function. Reduced parameter count 2126and reduced code for this frequently used function. 2127 2128Example Code and Data Size: These are the sizes for the OS-independent 2129acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2130debug version of the code includes the debug output trace mechanism and has a 2131much larger code and data size. 2132 2133 Previous Release: 2134 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 2135 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 2136 Current Release: 2137 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 2138 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 2139 21402) iASL Compiler/Disassembler and Tools: 2141 2142Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems 2143with sub-table disassembly and handling invalid sub-tables. Attempt recovery 2144after an invalid sub-table ID. 2145 2146---------------------------------------- 214722 April 2009. Summary of changes for version 20090422: 2148 21491) ACPI CA Core Subsystem: 2150 2151Fixed a compatibility issue with the recently released I/O port protection 2152mechanism. For windows compatibility, 1) On a port protection violation, 2153simply ignore the request and do not return an exception (allow the control 2154method to continue execution.) 2) If only part of the request overlaps a 2155protected port, read/write the individual ports that are not protected. Linux 2156BZ 13036. Lin Ming 2157 2158Enhanced the execution of the ASL/AML BreakPoint operator so that it actually 2159breaks into the AML debugger if the debugger is present. This matches the 2160ACPI-defined behavior. 2161 2162Fixed several possible warnings related to the use of the configurable 2163ACPI_THREAD_ID. This type can now be configured as either an integer or a 2164pointer with no warnings. Also fixes several warnings in printf-like 2165statements for the 64-bit build when the type is configured as a pointer. 2166ACPICA BZ 766, 767. 2167 2168Fixed a number of possible warnings when compiling with gcc 4+ (depending on 2169warning options.) Examples include printf formats, aliasing, unused globals, 2170missing prototypes, missing switch default statements, use of non-ANSI 2171library functions, use of non-ANSI constructs. See generate/unix/Makefile for 2172a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 2173 2174Example Code and Data Size: These are the sizes for the OS-independent 2175acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2176debug version of the code includes the debug output trace mechanism and has a 2177much larger code and data size. 2178 2179 Previous Release: 2180 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 2181 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 2182 Current Release: 2183 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 2184 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 2185 21862) iASL Compiler/Disassembler and Tools: 2187 2188iASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on 2189the 64-bit build. 2190 2191iASL: Fixed a problem where the Unix/Linux versions of the compiler could not 2192correctly digest Windows/DOS formatted files (with CR/LF). 2193 2194iASL: Added a new option for "quiet mode" (-va) that produces only the 2195compilation summary, not individual errors and warnings. Useful for large 2196batch compilations. 2197 2198AcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 2199timeout that can be used to detect hang conditions during execution of AML 2200code (includes both internal semaphores and AML-defined mutexes and events.) 2201 2202Added new makefiles for the generation of acpica in a generic unix-like 2203environment. These makefiles are intended to generate the acpica tools and 2204utilities from the original acpica git source tree structure. 2205 2206Test Suites: Updated and cleaned up the documentation files. Updated the 2207copyrights to 2009, affecting all source files. Use the new version of iASL 2208with quiet mode. Increased the number of available semaphores in the Windows 2209OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added 2210an alternate implementation of the semaphore timeout to allow aslts to 2211execute fully on Cygwin. 2212 2213---------------------------------------- 221420 March 2009. Summary of changes for version 20090320: 2215 22161) ACPI CA Core Subsystem: 2217 2218Fixed a possible race condition between AcpiWalkNamespace and dynamic table 2219unloads. Added a reader/writer locking mechanism to allow multiple concurrent 2220namespace walks (readers), but block a dynamic table unload until it can gain 2221exclusive write access to the namespace. This fixes a problem where a table 2222unload could (possibly catastrophically) delete the portion of the namespace 2223that is currently being examined by a walk. Adds a new file, utlock.c, that 2224implements the reader/writer lock mechanism. ACPICA BZ 749. 2225 2226Fixed a regression introduced in version 20090220 where a change to the FADT 2227handling could cause the ACPICA subsystem to access non-existent I/O ports. 2228 2229Modified the handling of FADT register and table (FACS/DSDT) addresses. The 2230FADT can contain both 32-bit and 64-bit versions of these addresses. 2231Previously, the 64-bit versions were favored, meaning that if both 32 and 64 2232versions were valid, but not equal, the 64-bit version was used. This was 2233found to cause some machines to fail. Now, in this case, the 32-bit version 2234is used instead. This now matches the Windows behavior. 2235 2236Implemented a new mechanism to protect certain I/O ports. Provides Microsoft 2237compatibility and protects the standard PC I/O ports from access via AML 2238code. Adds a new file, hwvalid.c 2239 2240Fixed a possible extraneous warning message from the FADT support. The 2241message warns of a 32/64 length mismatch between the legacy and GAS 2242definitions for a register. 2243 2244Removed the obsolete AcpiOsValidateAddress OSL interface. This interface is 2245made obsolete by the port protection mechanism above. It was previously used 2246to validate the entire address range of an operation region, which could be 2247incorrect if the range included illegal ports, but fields within the 2248operation region did not actually access those ports. Validation is now 2249performed on a per-field basis instead of the entire region. 2250 2251Modified the handling of the PM1 Status Register ignored bit (bit 11.) 2252Ignored bits must be "preserved" according to the ACPI spec. Usually, this 2253means a read/modify/write when writing to the register. However, for status 2254registers, writing a one means clear the event. Writing a zero means preserve 2255the event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 2256and the ACPICA code now simply always writes a zero to the ignored bit. 2257 2258Modified the handling of ignored bits for the PM1 A/B Control Registers. As 2259per the ACPI specification, for the control registers, preserve 2260(read/modify/write) all bits that are defined as either reserved or ignored. 2261 2262Updated the handling of write-only bits in the PM1 A/B Control Registers. 2263When reading the register, zero the write-only bits as per the ACPI spec. 2264ACPICA BZ 443. Lin Ming. 2265 2266Removed "Linux" from the list of supported _OSI strings. Linux no longer 2267wants to reply true to this request. The Windows strings are the only paths 2268through the AML that are tested and known to work properly. 2269 2270 Previous Release: 2271 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 2272 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 2273 Current Release: 2274 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 2275 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 2276 22772) iASL Compiler/Disassembler and Tools: 2278 2279Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c and 2280aetables.c 2281 2282---------------------------------------- 228320 February 2009. Summary of changes for version 20090220: 2284 22851) ACPI CA Core Subsystem: 2286 2287Optimized the ACPI register locking. Removed locking for reads from the ACPI 2288bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 2289not required when reading the single-bit registers. The 2290AcpiGetRegisterUnlocked function is no longer needed and has been removed. 2291This will improve performance for reads on these registers. ACPICA BZ 760. 2292 2293Fixed the parameter validation for AcpiRead/Write. Now return 2294AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if 2295the register has an address of zero. Previously, these cases simply returned 2296AE_OK. For optional registers such as PM1B status/enable/control, the caller 2297should check for a valid register address before calling. ACPICA BZ 748. 2298 2299Renamed the external ACPI bit register access functions. Renamed 2300AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 2301functions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 2302Also, restructured the code for these functions by simplifying the code path 2303and condensing duplicate code to reduce code size. 2304 2305Added new functions to transparently handle the possibly split PM1 A/B 2306registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 2307now handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ 2308746. 2309 2310Added a function to handle the PM1 control registers, AcpiHwWritePm1Control. 2311This function writes both of the PM1 control registers (A/B). These registers 2312are different than the PM1 A/B status and enable registers in that different 2313values can be written to the A/B registers. Most notably, the SLP_TYP bits 2314can be different, as per the values returned from the _Sx predefined methods. 2315 2316Removed an extra register write within AcpiHwClearAcpiStatus. This function 2317was writing an optional PM1B status register twice. The existing call to the 2318low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B 2319register. ACPICA BZ 751. 2320 2321Split out the PM1 Status registers from the FADT. Added new globals for these 2322registers (A/B), similar to the way the PM1 Enable registers are handled. 2323Instead of overloading the FADT Event Register blocks. This makes the code 2324clearer and less prone to error. 2325 2326Fixed the warning message for when the platform contains too many ACPI tables 2327for the default size of the global root table data structure. The calculation 2328for the truncation value was incorrect. 2329 2330Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 2331obsolete macro, since it is now a simple reference to ->common.type. There 2332were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 2333 2334Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 2335TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 2336simply SLEEP_TYPE. ACPICA BZ 754. 2337 2338Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 2339function is only needed on 64-bit host operating systems and is thus not 2340included for 32-bit hosts. 2341 2342Debug output: print the input and result for invocations of the _OSI reserved 2343control method via the ACPI_LV_INFO debug level. Also, reduced some of the 2344verbosity of this debug level. Len Brown. 2345 2346Example Code and Data Size: These are the sizes for the OS-independent 2347acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2348debug version of the code includes the debug output trace mechanism and has a 2349much larger code and data size. 2350 2351 Previous Release: 2352 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 2353 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 2354 Current Release: 2355 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 2356 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 2357 23582) iASL Compiler/Disassembler and Tools: 2359 2360Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 2361various legal performance profiles. 2362 2363---------------------------------------- 236423 January 2009. Summary of changes for version 20090123: 2365 23661) ACPI CA Core Subsystem: 2367 2368Added the 2009 copyright to all module headers and signons. This affects 2369virtually every file in the ACPICA core subsystem, the iASL compiler, and 2370the tools/utilities. 2371 2372Implemented a change to allow the host to override any ACPI table, including 2373dynamically loaded tables. Previously, only the DSDT could be replaced by the 2374host. With this change, the AcpiOsTableOverride interface is called for each 2375table found in the RSDT/XSDT during ACPICA initialization, and also whenever 2376a table is dynamically loaded via the AML Load operator. 2377 2378Updated FADT flag definitions, especially the Boot Architecture flags. 2379 2380Debugger: For the Find command, automatically pad the input ACPI name with 2381underscores if the name is shorter than 4 characters. This enables a match 2382with the actual namespace entry which is itself padded with underscores. 2383 2384Example Code and Data Size: These are the sizes for the OS-independent 2385acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2386debug version of the code includes the debug output trace mechanism and has a 2387much larger code and data size. 2388 2389 Previous Release: 2390 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 2391 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 2392 Current Release: 2393 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 2394 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 2395 23962) iASL Compiler/Disassembler and Tools: 2397 2398Fix build error under Bison-2.4. 2399 2400Dissasembler: Enhanced FADT support. Added decoding of the Boot Architecture 2401flags. Now decode all flags, regardless of the FADT version. Flag output 2402includes the FADT version which first defined each flag. 2403 2404The iASL -g option now dumps the RSDT to a file (in addition to the FADT and 2405DSDT). Windows only. 2406 2407---------------------------------------- 240804 December 2008. Summary of changes for version 20081204: 2409 24101) ACPI CA Core Subsystem: 2411 2412The ACPICA Programmer Reference has been completely updated and revamped for 2413this release. This includes updates to the external interfaces, OSL 2414interfaces, the overview sections, and the debugger reference. 2415 2416Several new ACPICA interfaces have been implemented and documented in the 2417programmer reference: 2418AcpiReset - Writes the reset value to the FADT-defined reset register. 2419AcpiDisableAllGpes - Disable all available GPEs. 2420AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 2421AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 2422AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 2423AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 2424AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 2425 2426Most of the public ACPI hardware-related interfaces have been moved to a new 2427file, components/hardware/hwxface.c 2428 2429Enhanced the FADT parsing and low-level ACPI register access: The ACPI 2430register lengths within the FADT are now used, and the low level ACPI 2431register access no longer hardcodes the ACPI register lengths. Given that 2432there may be some risk in actually trusting the FADT register lengths, a run- 2433time option was added to fall back to the default hardcoded lengths if the 2434FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 2435option is set to true for now, and a warning is issued if a suspicious FADT 2436register length is overridden with the default value. 2437 2438Fixed a reference count issue in NsRepairObject. This problem was introduced 2439in version 20081031 as part of a fix to repair Buffer objects within 2440Packages. Lin Ming. 2441 2442Added semaphore support to the Linux/Unix application OS-services layer 2443(OSL). ACPICA BZ 448. Lin Ming. 2444 2445Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes will 2446be implemented in the OSL, or will binary semaphores be used instead. 2447 2448Example Code and Data Size: These are the sizes for the OS-independent 2449acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2450debug version of the code includes the debug output trace mechanism and has a 2451much larger code and data size. 2452 2453 Previous Release: 2454 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 2455 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 2456 Current Release: 2457 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 2458 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 2459 24602) iASL Compiler/Disassembler and Tools: 2461 2462iASL: Completed the '-e' option to include additional ACPI tables in order to 2463aid with disassembly and External statement generation. ACPICA BZ 742. Lin 2464Ming. 2465 2466iASL: Removed the "named object in while loop" error. The compiler cannot 2467determine how many times a loop will execute. ACPICA BZ 730. 2468 2469Disassembler: Implemented support for FADT revision 2 (MS extension). ACPICA 2470BZ 743. 2471 2472Disassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). 2473 2474---------------------------------------- 247531 October 2008. Summary of changes for version 20081031: 2476 24771) ACPI CA Core Subsystem: 2478 2479Restructured the ACPICA header files into public/private. acpi.h now includes 2480only the "public" acpica headers. All other acpica headers are "private" and 2481should not be included by acpica users. One new file, accommon.h is used to 2482include the commonly used private headers for acpica code generation. Future 2483plans include moving all private headers to a new subdirectory. 2484 2485Implemented an automatic Buffer->String return value conversion for 2486predefined ACPI methods. For these methods (such as _BIF), added automatic 2487conversion for return objects that are required to be a String, but a Buffer 2488was found instead. This can happen when reading string battery data from an 2489operation region, because it used to be difficult to convert the data from 2490buffer to string from within the ASL. Ensures that the host OS is provided 2491with a valid null-terminated string. Linux BZ 11822. 2492 2493Updated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector 2494into two: one for the 32-bit vector, another for the 64-bit vector. This is 2495required because the host OS must setup the wake much differently for each 2496vector (real vs. protected mode, etc.) and the interface itself should not be 2497deciding which vector to use. Also, eliminated the GetFirmwareWakingVector 2498interface, as it served no purpose (only the firmware reads the vector, OS 2499only writes the vector.) ACPICA BZ 731. 2500 2501Implemented a mechanism to escape infinite AML While() loops. Added a loop 2502counter to force exit from AML While loops if the count becomes too large. 2503This can occur in poorly written AML when the hardware does not respond 2504within a while loop and the loop does not implement a timeout. The maximum 2505loop count is configurable. A new exception code is returned when a loop is 2506broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 2507 2508Optimized the execution of AML While loops. Previously, a control state 2509object was allocated and freed for each execution of the loop. The 2510optimization is to simply reuse the control state for each iteration. This 2511speeds up the raw loop execution time by about 5%. 2512 2513Enhanced the implicit return mechanism. For Windows compatibility, return an 2514implicit integer of value zero for methods that contain no executable code. 2515Such methods are seen in the field as stubs (presumably), and can cause 2516drivers to fail if they expect a return value. Lin Ming. 2517 2518Allow multiple backslashes as root prefixes in namepaths. In a fully 2519qualified namepath, allow multiple backslash prefixes. This can happen (and 2520is seen in the field) because of the use of a double-backslash in strings 2521(since backslash is the escape character) causing confusion. ACPICA BZ 739 2522Lin Ming. 2523 2524Emit a warning if two different FACS or DSDT tables are discovered in the 2525FADT. Checks if there are two valid but different addresses for the FACS and 2526DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 2527 2528Consolidated the method argument count validation code. Merged the code that 2529validates control method argument counts into the predefined validation 2530module. Eliminates possible multiple warnings for incorrect argument counts. 2531 2532Implemented ACPICA example code. Includes code for ACPICA initialization, 2533handler installation, and calling a control method. Available at 2534source/tools/examples. 2535 2536Added a global pointer for FACS table to simplify internal FACS access. Use 2537the global pointer instead of using AcpiGetTableByIndex for each FACS access. 2538This simplifies the code for the Global Lock and the Firmware Waking 2539Vector(s). 2540 2541Example Code and Data Size: These are the sizes for the OS-independent 2542acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2543debug version of the code includes the debug output trace mechanism and has a 2544much larger code and data size. 2545 2546 Previous Release: 2547 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 2548 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 2549 Current Release: 2550 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 2551 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 2552 25532) iASL Compiler/Disassembler and Tools: 2554 2555iASL: Improved disassembly of external method calls. Added the -e option to 2556allow the inclusion of additional ACPI tables to help with the disassembly of 2557method invocations and the generation of external declarations during the 2558disassembly. Certain external method invocations cannot be disassembled 2559properly without the actual declaration of the method. Use the -e option to 2560include the table where the external method(s) are actually declared. Most 2561useful for disassembling SSDTs that make method calls back to the master 2562DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d 2563-e dsdt.aml ssdt1.aml 2564 2565iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 2566problem where the use of an alias within a namepath would result in a not 2567found error or cause the compiler to fault. Also now allows forward 2568references from the Alias operator itself. ACPICA BZ 738. 2569 2570---------------------------------------- 257126 September 2008. Summary of changes for version 20080926: 2572 25731) ACPI CA Core Subsystem: 2574 2575Designed and implemented a mechanism to validate predefined ACPI methods and 2576objects. This code validates the predefined ACPI objects (objects whose names 2577start with underscore) that appear in the namespace, at the time they are 2578evaluated. The argument count and the type of the returned object are 2579validated against the ACPI specification. The purpose of this validation is 2580to detect problems with the BIOS-implemented predefined ACPI objects before 2581the results are returned to the ACPI-related drivers. Future enhancements may 2582include actual repair of incorrect return objects where possible. Two new 2583files are nspredef.c and acpredef.h. 2584 2585Fixed a fault in the AML parser if a memory allocation fails during the Op 2586completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 2587 2588Fixed an issue with implicit return compatibility. This change improves the 2589implicit return mechanism to be more compatible with the MS interpreter. Lin 2590Ming, ACPICA BZ 349. 2591 2592Implemented support for zero-length buffer-to-string conversions. Allow zero 2593length strings during interpreter buffer-to-string conversions. For example, 2594during the ToDecimalString and ToHexString operators, as well as implicit 2595conversions. Fiodor Suietov, ACPICA BZ 585. 2596 2597Fixed two possible memory leaks in the error exit paths of 2598AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 2599similar in that they use a stack of state objects in order to eliminate 2600recursion. The stack must be fully unwound and deallocated if an error 2601occurs. Lin Ming. ACPICA BZ 383. 2602 2603Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global 2604ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 2605Moore ACPICA BZ 442. 2606 2607Removed the obsolete version number in module headers. Removed the 2608"$Revision" number that appeared in each module header. This version number 2609was useful under SourceSafe and CVS, but has no meaning under git. It is not 2610only incorrect, it could also be misleading. 2611 2612Example Code and Data Size: These are the sizes for the OS-independent 2613acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2614debug version of the code includes the debug output trace mechanism and has a 2615much larger code and data size. 2616 2617 Previous Release: 2618 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2619 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 2620 Current Release: 2621 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 2622 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 2623 2624---------------------------------------- 262529 August 2008. Summary of changes for version 20080829: 2626 26271) ACPI CA Core Subsystem: 2628 2629Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 2630Reference. Changes include the elimination of cheating on the Object field 2631for the DdbHandle subtype, addition of a reference class field to 2632differentiate the various reference types (instead of an AML opcode), and the 2633cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 2634 2635Reduce an error to a warning for an incorrect method argument count. 2636Previously aborted with an error if too few arguments were passed to a 2637control method via the external ACPICA interface. Now issue a warning instead 2638and continue. Handles the case where the method inadvertently declares too 2639many arguments, but does not actually use the extra ones. Applies mainly to 2640the predefined methods. Lin Ming. Linux BZ 11032. 2641 2642Disallow the evaluation of named object types with no intrinsic value. Return 2643AE_TYPE for objects that have no value and therefore evaluation is undefined: 2644Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of 2645these types were allowed, but an exception would be generated at some point 2646during the evaluation. Now, the error is generated up front. 2647 2648Fixed a possible memory leak in the AcpiNsGetExternalPathname function 2649(nsnames.c). Fixes a leak in the error exit path. 2650 2651Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug 2652levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION 2653interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 2654ACPI_LV_EVENTS. 2655 2656Removed obsolete and/or unused exception codes from the acexcep.h header. 2657There is the possibility that certain device drivers may be affected if they 2658use any of these exceptions. 2659 2660The ACPICA documentation has been added to the public git source tree, under 2661acpica/documents. Included are the ACPICA programmer reference, the iASL 2662compiler reference, and the changes.txt release logfile. 2663 2664Example Code and Data Size: These are the sizes for the OS-independent 2665acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2666debug version of the code includes the debug output trace mechanism and has a 2667much larger code and data size. 2668 2669 Previous Release: 2670 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2671 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 2672 Current Release: 2673 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2674 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 2675 26762) iASL Compiler/Disassembler and Tools: 2677 2678Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 2679defines _SCP with 3 arguments. Previous versions defined it with only 1 2680argument. iASL now allows both definitions. 2681 2682iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- 2683length subtables when disassembling ACPI tables. Also fixed a couple of 2684errors where a full 16-bit table type field was not extracted from the input 2685properly. 2686 2687acpisrc: Improve comment counting mechanism for generating source code 2688statistics. Count first and last lines of multi-line comments as whitespace, 2689not comment lines. Handle Linux legal header in addition to standard acpica 2690header. 2691 2692---------------------------------------- 2693 269429 July 2008. Summary of changes for version 20080729: 2695 26961) ACPI CA Core Subsystem: 2697 2698Fix a possible deadlock in the GPE dispatch. Remove call to 2699AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt 2700to acquire the GPE lock but can deadlock since the GPE lock is already held 2701at dispatch time. This code was introduced in version 20060831 as a response 2702to Linux BZ 6881 and has since been removed from Linux. 2703 2704Add a function to dereference returned reference objects. Examines the return 2705object from a call to AcpiEvaluateObject. Any Index or RefOf references are 2706automatically dereferenced in an attempt to return something useful (these 2707reference types cannot be converted into an external ACPI_OBJECT.) Provides 2708MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 2709 2710x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 2711subtables for the MADT and one new subtable for the SRAT. Includes 2712disassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC 2713Specification, June 2008. 2714 2715Additional error checking for pathname utilities. Add error check after all 2716calls to AcpiNsGetPathnameLength. Add status return from 2717AcpiNsBuildExternalPath and check after all calls. Add parameter validation 2718to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 2719 2720Return status from the global init function AcpiUtGlobalInitialize. This is 2721used by both the kernel subsystem and the utilities such as iASL compiler. 2722The function could possibly fail when the caches are initialized. Yang Yi. 2723 2724Add a function to decode reference object types to strings. Created for 2725improved error messages. 2726 2727Improve object conversion error messages. Better error messages during object 2728conversion from internal to the external ACPI_OBJECT. Used for external calls 2729to AcpiEvaluateObject. 2730 2731Example Code and Data Size: These are the sizes for the OS-independent 2732acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2733debug version of the code includes the debug output trace mechanism and has a 2734much larger code and data size. 2735 2736 Previous Release: 2737 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 2738 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 2739 Current Release: 2740 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2741 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 2742 27432) iASL Compiler/Disassembler and Tools: 2744 2745Debugger: fix a possible hang when evaluating non-methods. Fixes a problem 2746introduced in version 20080701. If the object being evaluated (via execute 2747command) is not a method, the debugger can hang while trying to obtain non- 2748existent parameters. 2749 2750iASL: relax error for using reserved "_T_x" identifiers. These names can 2751appear in a disassembled ASL file if they were emitted by the original 2752compiler. Instead of issuing an error or warning and forcing the user to 2753manually change these names, issue a remark instead. 2754 2755iASL: error if named object created in while loop. Emit an error if any named 2756object is created within a While loop. If allowed, this code will generate a 2757run-time error on the second iteration of the loop when an attempt is made to 2758create the same named object twice. ACPICA bugzilla 730. 2759 2760iASL: Support absolute pathnames for include files. Add support for absolute 2761pathnames within the Include operator. previously, only relative pathnames 2762were supported. 2763 2764iASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor. 2765The ACPI spec requires one interrupt minimum. BZ 423 2766 2767iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 2768Handles the case for the Interrupt Resource Descriptor where 2769the ResourceSource argument is omitted but ResourceSourceIndex 2770is present. Now leave room for the Index. BZ 426 2771 2772iASL: Prevent error message if CondRefOf target does not exist. Fixes cases 2773where an error message is emitted if the target does not exist. BZ 516 2774 2775iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 2776(get ACPI tables on Windows). This was apparently broken in version 20070919. 2777 2778AcpiXtract: Handle EOF while extracting data. Correctly handle the case where 2779the EOF happens immediately after the last table in the input file. Print 2780completion message. Previously, no message was displayed in this case. 2781 2782---------------------------------------- 278301 July 2008. Summary of changes for version 20080701: 2784 27850) Git source tree / acpica.org 2786 2787Fixed a problem where a git-clone from http would not transfer the entire 2788source tree. 2789 27901) ACPI CA Core Subsystem: 2791 2792Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 2793enable bit. Now performs a read-change-write of the enable register instead 2794of simply writing out the cached enable mask. This will prevent inadvertent 2795enabling of GPEs if a rogue GPE is received during initialization (before GPE 2796handlers are installed.) 2797 2798Implemented a copy for dynamically loaded tables. Previously, dynamically 2799loaded tables were simply mapped - but on some machines this memory is 2800corrupted after suspend. Now copy the table to a local buffer. For the 2801OpRegion case, added checksum verify. Use the table length from the table 2802header, not the region length. For the Buffer case, use the table length 2803also. Dennis Noordsij, Bob Moore. BZ 10734 2804 2805Fixed a problem where the same ACPI table could not be dynamically loaded and 2806unloaded more than once. Without this change, a table cannot be loaded again 2807once it has been loaded/unloaded one time. The current mechanism does not 2808unregister a table upon an unload. During a load, if the same table is found, 2809this no longer returns an exception. BZ 722 2810 2811Fixed a problem where the wrong descriptor length was calculated for the 2812EndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 2813are calculated as 12 bytes long, but the actual length in the internal 2814descriptor is 16 because of the round-up to 8 on the 64-bit build. Reported 2815by Linn Crosetto. BZ 728 2816 2817Fixed a possible memory leak in the Unload operator. The DdbHandle returned 2818by Load() did not have its reference count decremented during unload, leading 2819to a memory leak. Lin Ming. BZ 727 2820 2821Fixed a possible memory leak when deleting thermal/processor objects. Any 2822associated notify handlers (and objects) were not being deleted. Fiodor 2823Suietov. BZ 506 2824 2825Fixed the ordering of the ASCII names in the global mutex table to match the 2826actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only. 2827Vegard Nossum. BZ 726 2828 2829Enhanced the AcpiGetObjectInfo interface to return the number of required 2830arguments if the object is a control method. Added this call to the debugger 2831so the proper number of default arguments are passed to a method. This 2832prevents a warning when executing methods from AcpiExec. 2833 2834Added a check for an invalid handle in AcpiGetObjectInfo. Return 2835AE_BAD_PARAMETER if input handle is invalid. BZ 474 2836 2837Fixed an extraneous warning from exconfig.c on the 64-bit build. 2838 2839Example Code and Data Size: These are the sizes for the OS-independent 2840acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2841debug version of the code includes the debug output trace mechanism and has a 2842much larger code and data size. 2843 2844 Previous Release: 2845 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 2846 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 2847 Current Release: 2848 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 2849 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 2850 28512) iASL Compiler/Disassembler and Tools: 2852 2853iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 2854resource descriptor names. 2855 2856iASL: Detect invalid ASCII characters in input (windows version). Removed the 2857"-CF" flag from the flex compile, enables correct detection of non-ASCII 2858characters in the input. BZ 441 2859 2860iASL: Eliminate warning when result of LoadTable is not used. Eliminate the 2861"result of operation not used" warning when the DDB handle returned from 2862LoadTable is not used. The warning is not needed. BZ 590 2863 2864AcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to 2865pass address of table to the AML. Added option to disable OpRegion simulation 2866to allow creation of an OpRegion with a real address that was passed to _CFG. 2867All of this allows testing of the Load and Unload operators from AcpiExec. 2868 2869Debugger: update tables command for unloaded tables. Handle unloaded tables 2870and use the standard table header output routine. 2871 2872---------------------------------------- 287309 June 2008. Summary of changes for version 20080609: 2874 28751) ACPI CA Core Subsystem: 2876 2877Implemented a workaround for reversed _PRT entries. A significant number of 2878BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 2879change dynamically detects and repairs this problem. Provides compatibility 2880with MS ACPI. BZ 6859 2881 2882Simplified the internal ACPI hardware interfaces to eliminate the locking 2883flag parameter from Register Read/Write. Added a new external interface, 2884AcpiGetRegisterUnlocked. 2885 2886Fixed a problem where the invocation of a GPE control method could hang. This 2887was a regression introduced in 20080514. The new method argument count 2888validation mechanism can enter an infinite loop when a GPE method is 2889dispatched. Problem fixed by removing the obsolete code that passed GPE block 2890information to the notify handler via the control method parameter pointer. 2891 2892Fixed a problem where the _SST execution status was incorrectly returned to 2893the caller of AcpiEnterSleepStatePrep. This was a regression introduced in 289420080514. _SST is optional and a NOT_FOUND exception should never be 2895returned. BZ 716 2896 2897Fixed a problem where a deleted object could be accessed from within the AML 2898parser. This was a regression introduced in version 20080123 as a fix for the 2899Unload operator. Lin Ming. BZ 10669 2900 2901Cleaned up the debug operand dump mechanism. Eliminated unnecessary operands 2902and eliminated the use of a negative index in a loop. Operands are now 2903displayed in the correct order, not backwards. This also fixes a regression 2904introduced in 20080514 on 64-bit systems where the elimination of 2905ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715 2906 2907Fixed a possible memory leak in EvPciConfigRegionSetup where the error exit 2908path did not delete a locally allocated structure. 2909 2910Updated definitions for the DMAR and SRAT tables to synchronize with the 2911current specifications. Includes disassembler support. 2912 2913Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 2914loop termination value was used. Loop terminated on iteration early, missing 2915one mutex. Linn Crosetto 2916 2917Example Code and Data Size: These are the sizes for the OS-independent 2918acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2919debug version of the code includes the debug output trace mechanism and has a 2920much larger code and data size. 2921 2922 Previous Release: 2923 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 2924 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 2925 Current Release: 2926 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 2927 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 2928 29292) iASL Compiler/Disassembler and Tools: 2930 2931Disassembler: Implemented support for EisaId() within _CID objects. Now 2932disassemble integer _CID objects back to EisaId invocations, including 2933multiple integers within _CID packages. Includes single-step support for 2934debugger also. 2935 2936Disassembler: Added support for DMAR and SRAT table definition changes. 2937 2938---------------------------------------- 293914 May 2008. Summary of changes for version 20080514: 2940 29411) ACPI CA Core Subsystem: 2942 2943Fixed a problem where GPEs were enabled too early during the ACPICA 2944initialization. This could lead to "handler not installed" errors on some 2945machines. Moved GPE enable until after _REG/_STA/_INI methods are run. This 2946ensures that all operation regions and devices throughout the namespace have 2947been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 2948 2949Implemented a change to the enter sleep code. Moved execution of the _GTS 2950method to just before setting sleep enable bit. The execution was moved from 2951AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 2952immediately before the SLP_EN bit is set, as per the ACPI specification. 2953Luming Yu, BZ 1653. 2954 2955Implemented a fix to disable unknown GPEs (2nd version). Now always disable 2956the GPE, even if ACPICA thinks that that it is already disabled. It is 2957possible that the AML or some other code has enabled the GPE unbeknownst to 2958the ACPICA code. 2959 2960Fixed a problem with the Field operator where zero-length fields would return 2961an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL 2962field declarations in Field(), BankField(), and IndexField(). BZ 10606. 2963 2964Implemented a fix for the Load operator, now load the table at the namespace 2965root. This reverts a change introduced in version 20071019. The table is now 2966loaded at the namespace root even though this goes against the ACPI 2967specification. This provides compatibility with other ACPI implementations. 2968The ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming. 2969 2970Fixed a problem where ACPICA would not Load() tables with unusual signatures. 2971Now ignore ACPI table signature for Load() operator. Only "SSDT" is 2972acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 2973Therefore, signature validation is worthless. Apparently MS ACPI accepts such 2974signatures, ACPICA must be compatible. BZ 10454. 2975 2976Fixed a possible negative array index in AcpiUtValidateException. Added NULL 2977fields to the exception string arrays to eliminate a -1 subtraction on the 2978SubStatus field. 2979 2980Updated the debug tracking macros to reduce overall code and data size. 2981Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 2982instead of pointers to static strings. Jan Beulich and Bob Moore. 2983 2984Implemented argument count checking in control method invocation via 2985AcpiEvaluateObject. Now emit an error if too few arguments, warning if too 2986many. This applies only to extern programmatic control method execution, not 2987method-to-method calls within the AML. Lin Ming. 2988 2989Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no 2990longer needed, especially with the removal of 16-bit support. It was replaced 2991mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on 299232/64-bit platforms is required. 2993 2994Added the C const qualifier for appropriate string constants -- mostly 2995MODULE_NAME and printf format strings. Jan Beulich. 2996 2997Example Code and Data Size: These are the sizes for the OS-independent 2998acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2999debug version of the code includes the debug output trace mechanism and has a 3000much larger code and data size. 3001 3002 Previous Release: 3003 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 3004 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 3005 Current Release: 3006 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 3007 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 3008 30092) iASL Compiler/Disassembler and Tools: 3010 3011Implemented ACPI table revision ID validation in the disassembler. Zero is 3012always invalid. For DSDTs, the ID controls the interpreter integer width. 1 3013means 32-bit and this is unusual. 2 or greater is 64-bit. 3014 3015---------------------------------------- 301621 March 2008. Summary of changes for version 20080321: 3017 30181) ACPI CA Core Subsystem: 3019 3020Implemented an additional change to the GPE support in order to suppress 3021spurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 3022disable incoming GPEs that are neither enabled nor disabled -- meaning that 3023the GPE is unknown to the system. This should prevent future interrupt floods 3024from that GPE. BZ 6217 (Zhang Rui) 3025 3026Fixed a problem where NULL package elements were not returned to the 3027AcpiEvaluateObject interface correctly. The element was simply ignored 3028instead of returning a NULL ACPI_OBJECT package element, potentially causing 3029a buffer overflow and/or confusing the caller who expected a fixed number of 3030elements. BZ 10132 (Lin Ming, Bob Moore) 3031 3032Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword, 3033Qword), Field, BankField, and IndexField operators when invoked from inside 3034an executing control method. In this case, these operators created namespace 3035nodes that were incorrectly left marked as permanent nodes instead of 3036temporary nodes. This could cause a problem if there is race condition 3037between an exiting control method and a running namespace walk. (Reported by 3038Linn Crosetto) 3039 3040Fixed a problem where the CreateField and CreateXXXField operators would 3041incorrectly allow duplicate names (the name of the field) with no exception 3042generated. 3043 3044Implemented several changes for Notify handling. Added support for new Notify 3045values (ACPI 2.0+) and improved the Notify debug output. Notify on 3046PowerResource objects is no longer allowed, as per the ACPI specification. 3047(Bob Moore, Zhang Rui) 3048 3049All Reference Objects returned via the AcpiEvaluateObject interface are now 3050marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for 3051NULL objects - either NULL package elements or unresolved named references. 3052 3053Fixed a problem where an extraneous debug message was produced for package 3054objects (when debugging enabled). The message "Package List length larger 3055than NumElements count" is now produced in the correct case, and is now an 3056error message rather than a debug message. Added a debug message for the 3057opposite case, where NumElements is larger than the Package List (the package 3058will be padded out with NULL elements as per the ACPI spec.) 3059 3060Implemented several improvements for the output of the ASL "Debug" object to 3061clarify and keep all data for a given object on one output line. 3062 3063Fixed two size calculation issues with the variable-length Start Dependent 3064resource descriptor. 3065 3066Example Code and Data Size: These are the sizes for the OS-independent 3067acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3068debug version of the code includes the debug output trace mechanism and has 3069a much larger code and data size. 3070 3071 Previous Release: 3072 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 3073 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 3074 Current Release: 3075 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 3076 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 3077 30782) iASL Compiler/Disassembler and Tools: 3079 3080Fixed a problem with the use of the Switch operator where execution of the 3081containing method by multiple concurrent threads could cause an 3082AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 3083actual Switch opcode, it must be simulated with local named temporary 3084variables and if/else pairs. The solution chosen was to mark any method that 3085uses Switch as Serialized, thus preventing multiple thread entries. BZ 469. 3086 3087---------------------------------------- 308813 February 2008. Summary of changes for version 20080213: 3089 30901) ACPI CA Core Subsystem: 3091 3092Implemented another MS compatibility design change for GPE/Notify handling. 3093GPEs are now cleared/enabled asynchronously to allow all pending notifies to 3094complete first. It is expected that the OSL will queue the enable request 3095behind all pending notify requests (may require changes to the local host OSL 3096in AcpiOsExecute). Alexey Starikovskiy. 3097 3098Fixed a problem where buffer and package objects passed as arguments to a 3099control method via the external AcpiEvaluateObject interface could cause an 3100AE_AML_INTERNAL exception depending on the order and type of operators 3101executed by the target control method. 3102 3103Fixed a problem where resource descriptor size optimization could cause a 3104problem when a _CRS resource template is passed to a _SRS method. The _SRS 3105resource template must use the same descriptors (with the same size) as 3106returned from _CRS. This change affects the following resource descriptors: 3107IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487) 3108 3109Fixed a problem where a CopyObject to RegionField, BankField, and IndexField 3110objects did not perform an implicit conversion as it should. These types must 3111retain their initial type permanently as per the ACPI specification. However, 3112a CopyObject to all other object types should not perform an implicit 3113conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 3114 3115Fixed a problem with the AcpiGetDevices interface where the mechanism to 3116match device CIDs did not examine the entire list of available CIDs, but 3117instead aborted on the first non-matching CID. Andrew Patterson. 3118 3119Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was 3120inadvertently changed to return a 16-bit value instead of a 32-bit value, 3121truncating the upper dword of a 64-bit value. This macro is only used to 3122display debug output, so no incorrect calculations were made. Also, 3123reimplemented the macro so that a 64-bit shift is not performed by 3124inefficient compilers. 3125 3126Added missing va_end statements that should correspond with each va_start 3127statement. 3128 3129Example Code and Data Size: These are the sizes for the OS-independent 3130acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3131debug version of the code includes the debug output trace mechanism and has 3132a much larger code and data size. 3133 3134 Previous Release: 3135 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 3136 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 3137 Current Release: 3138 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 3139 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 3140 31412) iASL Compiler/Disassembler and Tools: 3142 3143Implemented full disassembler support for the following new ACPI tables: 3144BERT, EINJ, and ERST. Implemented partial disassembler support for the 3145complicated HEST table. These tables support the Windows Hardware Error 3146Architecture (WHEA). 3147 3148---------------------------------------- 314923 January 2008. Summary of changes for version 20080123: 3150 31511) ACPI CA Core Subsystem: 3152 3153Added the 2008 copyright to all module headers and signons. This affects 3154virtually every file in the ACPICA core subsystem, the iASL compiler, and 3155the tools/utilities. 3156 3157Fixed a problem with the SizeOf operator when used with Package and Buffer 3158objects. These objects have deferred execution for some arguments, and the 3159execution is now completed before the SizeOf is executed. This problem caused 3160unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ 31619558 3162 3163Implemented an enhancement to the interpreter "slack mode". In the absence of 3164an explicit return or an implicitly returned object from the last executed 3165opcode, a control method will now implicitly return an integer of value 0 for 3166Microsoft compatibility. (Lin Ming) BZ 392 3167 3168Fixed a problem with the Load operator where an exception was not returned in 3169the case where the table is already loaded. (Lin Ming) BZ 463 3170 3171Implemented support for the use of DDBHandles as an Indexed Reference, as per 3172the ACPI spec. (Lin Ming) BZ 486 3173 3174Implemented support for UserTerm (Method invocation) for the Unload operator 3175as per the ACPI spec. (Lin Ming) BZ 580 3176 3177Fixed a problem with the LoadTable operator where the OemId and OemTableId 3178input strings could cause unexpected failures if they were shorter than the 3179maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 3180 3181Implemented support for UserTerm (Method invocation) for the Unload operator 3182as per the ACPI spec. (Lin Ming) BZ 580 3183 3184Implemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST, 3185IBFT, UEFI, WDAT. Disassembler support is forthcoming. 3186 3187Example Code and Data Size: These are the sizes for the OS-independent 3188acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3189debug version of the code includes the debug output trace mechanism and has 3190a much larger code and data size. 3191 3192 Previous Release: 3193 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 3194 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 3195 Current Release: 3196 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 3197 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 3198 31992) iASL Compiler/Disassembler and Tools: 3200 3201Implemented support in the disassembler for checksum validation on incoming 3202binary DSDTs and SSDTs. If incorrect, a message is displayed within the table 3203header dump at the start of the disassembly. 3204 3205Implemented additional debugging information in the namespace listing file 3206created during compilation. In addition to the namespace hierarchy, the full 3207pathname to each namespace object is displayed. 3208 3209Fixed a problem with the disassembler where invalid ACPI tables could cause 3210faults or infinite loops. 3211 3212Fixed an unexpected parse error when using the optional "parameter types" 3213list in a control method declaration. (Lin Ming) BZ 397 3214 3215Fixed a problem where two External declarations with the same name did not 3216cause an error (Lin Ming) BZ 509 3217 3218Implemented support for full TermArgs (adding Argx, Localx and method 3219invocation) for the ParameterData parameter to the LoadTable operator. (Lin 3220Ming) BZ 583,587 3221 3222---------------------------------------- 322319 December 2007. Summary of changes for version 20071219: 3224 32251) ACPI CA Core Subsystem: 3226 3227Implemented full support for deferred execution for the TermArg string 3228arguments for DataTableRegion. This enables forward references and full 3229operand resolution for the three string arguments. Similar to OperationRegion 3230deferred argument execution.) Lin Ming. BZ 430 3231 3232Implemented full argument resolution support for the BankValue argument to 3233BankField. Previously, only constants were supported, now any TermArg may be 3234used. Lin Ming BZ 387, 393 3235 3236Fixed a problem with AcpiGetDevices where the search of a branch of the 3237device tree could be terminated prematurely. In accordance with the ACPI 3238specification, the search down the current branch is terminated if a device 3239is both not present and not functional (instead of just not present.) Yakui 3240Zhao. 3241 3242Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly if 3243the underlying AML code changed the GPE enable registers. Now, any unknown 3244incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled 3245instead of simply ignored. Rui Zhang. 3246 3247Fixed a problem with Index Fields where the Index register was incorrectly 3248limited to a maximum of 32 bits. Now any size may be used. 3249 3250Fixed a couple memory leaks associated with "implicit return" objects when 3251the AML Interpreter slack mode is enabled. Lin Ming BZ 349 3252 3253Example Code and Data Size: These are the sizes for the OS-independent 3254acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3255debug version of the code includes the debug output trace mechanism and has 3256a much larger code and data size. 3257 3258 Previous Release: 3259 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 3260 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 3261 Current Release: 3262 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 3263 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 3264 3265---------------------------------------- 326614 November 2007. Summary of changes for version 20071114: 3267 32681) ACPI CA Core Subsystem: 3269 3270Implemented event counters for each of the Fixed Events, the ACPI SCI 3271(interrupt) itself, and control methods executed. Named 3272AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These 3273should be useful for debugging and statistics. 3274 3275Implemented a new external interface, AcpiGetStatistics, to retrieve the 3276contents of the various event counters. Returns the current values for 3277AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 3278AcpiMethodCount. The interface can be expanded in the future if new counters 3279are added. Device drivers should use this interface rather than access the 3280counters directly. 3281 3282Fixed a problem with the FromBCD and ToBCD operators. With some compilers, 3283the ShortDivide function worked incorrectly, causing problems with the BCD 3284functions with large input values. A truncation from 64-bit to 32-bit 3285inadvertently occurred. Internal BZ 435. Lin Ming 3286 3287Fixed a problem with Index references passed as method arguments. References 3288passed as arguments to control methods were dereferenced immediately (before 3289control was passed to the called method). The references are now correctly 3290passed directly to the called method. BZ 5389. Lin Ming 3291 3292Fixed a problem with CopyObject used in conjunction with the Index operator. 3293The reference was incorrectly dereferenced before the copy. The reference is 3294now correctly copied. BZ 5391. Lin Ming 3295 3296Fixed a problem with Control Method references within Package objects. These 3297references are now correctly generated. This completes the package 3298construction overhaul that began in version 20071019. 3299 3300Example Code and Data Size: These are the sizes for the OS-independent 3301acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3302debug version of the code includes the debug output trace mechanism and has 3303a much larger code and data size. 3304 3305 Previous Release: 3306 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 3307 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 3308 Current Release: 3309 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 3310 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 3311 3312 33132) iASL Compiler/Disassembler and Tools: 3314 3315The AcpiExec utility now installs handlers for all of the predefined 3316Operation Region types. New types supported are: PCI_Config, CMOS, and 3317PCIBARTarget. 3318 3319Fixed a problem with the 64-bit version of AcpiExec where the extended (64- 3320bit) address fields for the DSDT and FACS within the FADT were not being 3321used, causing truncation of the upper 32-bits of these addresses. Lin Ming 3322and Bob Moore 3323 3324---------------------------------------- 332519 October 2007. Summary of changes for version 20071019: 3326 33271) ACPI CA Core Subsystem: 3328 3329Fixed a problem with the Alias operator when the target of the alias is a 3330named ASL operator that opens a new scope -- Scope, Device, PowerResource, 3331Processor, and ThermalZone. In these cases, any children of the original 3332operator could not be accessed via the alias, potentially causing unexpected 3333AE_NOT_FOUND exceptions. (BZ 9067) 3334 3335Fixed a problem with the Package operator where all named references were 3336created as object references and left otherwise unresolved. According to the 3337ACPI specification, a Package can only contain Data Objects or references to 3338control methods. The implication is that named references to Data Objects 3339(Integer, Buffer, String, Package, BufferField, Field) should be resolved 3340immediately upon package creation. This is the approach taken with this 3341change. References to all other named objects (Methods, Devices, Scopes, 3342etc.) are all now properly created as reference objects. (BZ 5328) 3343 3344Reverted a change to Notify handling that was introduced in version 334520070508. This version changed the Notify handling from asynchronous to 3346fully synchronous (Device driver Notify handling with respect to the Notify 3347ASL operator). It was found that this change caused more problems than it 3348solved and was removed by most users. 3349 3350Fixed a problem with the Increment and Decrement operators where the type of 3351the target object could be unexpectedly and incorrectly changed. (BZ 353) 3352Lin Ming. 3353 3354Fixed a problem with the Load and LoadTable operators where the table 3355location within the namespace was ignored. Instead, the table was always 3356loaded into the root or current scope. Lin Ming. 3357 3358Fixed a problem with the Load operator when loading a table from a buffer 3359object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 3360 3361Fixed a problem with the Debug object where a store of a DdbHandle reference 3362object to the Debug object could cause a fault. 3363 3364Added a table checksum verification for the Load operator, in the case where 3365the load is from a buffer. (BZ 578). 3366 3367Implemented additional parameter validation for the LoadTable operator. The 3368length of the input strings SignatureString, OemIdString, and OemTableId are 3369now checked for maximum lengths. (BZ 582) Lin Ming. 3370 3371Example Code and Data Size: These are the sizes for the OS-independent 3372acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3373debug version of the code includes the debug output trace mechanism and has 3374a much larger code and data size. 3375 3376 Previous Release: 3377 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 3378 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 3379 Current Release: 3380 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 3381 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 3382 3383 33842) iASL Compiler/Disassembler: 3385 3386Fixed a problem where if a single file was specified and the file did not 3387exist, no error message was emitted. (Introduced with wildcard support in 3388version 20070917.) 3389 3390---------------------------------------- 339119 September 2007. Summary of changes for version 20070919: 3392 33931) ACPI CA Core Subsystem: 3394 3395Designed and implemented new external interfaces to install and remove 3396handlers for ACPI table-related events. Current events that are defined are 3397LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 3398they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 3399AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 3400 3401Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 3402(acpi_serialized option on Linux) could cause some systems to hang during 3403initialization. (Bob Moore) BZ 8171 3404 3405Fixed a problem where objects of certain types (Device, ThermalZone, 3406Processor, PowerResource) can be not found if they are declared and 3407referenced from within the same control method (Lin Ming) BZ 341 3408 3409Example Code and Data Size: These are the sizes for the OS-independent 3410acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3411debug version of the code includes the debug output trace mechanism and has 3412a much larger code and data size. 3413 3414 Previous Release: 3415 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 3416 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 3417 Current Release: 3418 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 3419 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 3420 3421 34222) iASL Compiler/Disassembler: 3423 3424Implemented support to allow multiple files to be compiled/disassembled in a 3425single invocation. This includes command line wildcard support for both the 3426Windows and Unix versions of the compiler. This feature simplifies the 3427disassembly and compilation of multiple ACPI tables in a single directory. 3428 3429---------------------------------------- 343008 May 2007. Summary of changes for version 20070508: 3431 34321) ACPI CA Core Subsystem: 3433 3434Implemented a Microsoft compatibility design change for the handling of the 3435Notify AML operator. Previously, notify handlers were dispatched and 3436executed completely asynchronously in a deferred thread. The new design 3437still executes the notify handlers in a different thread, but the original 3438thread that executed the Notify() now waits at a synchronization point for 3439the notify handler to complete. Some machines depend on a synchronous Notify 3440operator in order to operate correctly. 3441 3442Implemented support to allow Package objects to be passed as method 3443arguments to the external AcpiEvaluateObject interface. Previously, this 3444would return the AE_NOT_IMPLEMENTED exception. This feature had not been 3445implemented since there were no reserved control methods that required it 3446until recently. 3447 3448Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that 3449contained invalid non-zero values in reserved fields could cause later 3450failures because these fields have meaning in later revisions of the FADT. 3451For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields 3452are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 3453 3454Fixed a problem where the Global Lock handle was not properly updated if a 3455thread that acquired the Global Lock via executing AML code then attempted 3456to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe 3457Liu. 3458 3459Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 3460could be corrupted if the interrupt being removed was at the head of the 3461list. Reported by Linn Crosetto. 3462 3463Example Code and Data Size: These are the sizes for the OS-independent 3464acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3465debug version of the code includes the debug output trace mechanism and has 3466a much larger code and data size. 3467 3468 Previous Release: 3469 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3470 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 3471 Current Release: 3472 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 3473 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 3474 3475---------------------------------------- 347620 March 2007. Summary of changes for version 20070320: 3477 34781) ACPI CA Core Subsystem: 3479 3480Implemented a change to the order of interpretation and evaluation of AML 3481operand objects within the AML interpreter. The interpreter now evaluates 3482operands in the order that they appear in the AML stream (and the 3483corresponding ASL code), instead of in the reverse order (after the entire 3484operand list has been parsed). The previous behavior caused several subtle 3485incompatibilities with the Microsoft AML interpreter as well as being 3486somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 3487 3488Implemented a change to the ACPI Global Lock support. All interfaces to the 3489global lock now allow the same thread to acquire the lock multiple times. 3490This affects the AcpiAcquireGlobalLock external interface to the global lock 3491as well as the internal use of the global lock to support AML fields -- a 3492control method that is holding the global lock can now simultaneously access 3493AML fields that require global lock protection. Previously, in both cases, 3494this would have resulted in an AE_ALREADY_ACQUIRED exception. The change to 3495AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 3496Controller. There is no change to the behavior of the AML Acquire operator, 3497as this can already be used to acquire a mutex multiple times by the same 3498thread. BZ 8066. With assistance from Alexey Starikovskiy. 3499 3500Fixed a problem where invalid objects could be referenced in the AML 3501Interpreter after error conditions. During operand evaluation, ensure that 3502the internal "Return Object" field is cleared on error and only valid 3503pointers are stored there. Caused occasional access to deleted objects that 3504resulted in "large reference count" warning messages. Valery Podrezov. 3505 3506Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur on 3507deeply nested control method invocations. BZ 7873, local BZ 487. Valery 3508Podrezov. 3509 3510Fixed an internal problem with the handling of result objects on the 3511interpreter result stack. BZ 7872. Valery Podrezov. 3512 3513Removed obsolete code that handled the case where AML_NAME_OP is the target 3514of a reference (Reference.Opcode). This code was no longer necessary. BZ 35157874. Valery Podrezov. 3516 3517Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a 3518remnant from the previously discontinued 16-bit support. 3519 3520Example Code and Data Size: These are the sizes for the OS-independent 3521acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3522debug version of the code includes the debug output trace mechanism and has 3523a much larger code and data size. 3524 3525 Previous Release: 3526 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3527 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3528 Current Release: 3529 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3530 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 3531 3532---------------------------------------- 353326 January 2007. Summary of changes for version 20070126: 3534 35351) ACPI CA Core Subsystem: 3536 3537Added the 2007 copyright to all module headers and signons. This affects 3538virtually every file in the ACPICA core subsystem, the iASL compiler, and 3539the utilities. 3540 3541Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 3542during a table load. A bad pointer was passed in the case where the DSDT is 3543overridden, causing a fault in this case. 3544 3545Example Code and Data Size: These are the sizes for the OS-independent 3546acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3547debug version of the code includes the debug output trace mechanism and has 3548a much larger code and data size. 3549 3550 Previous Release: 3551 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3552 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3553 Current Release: 3554 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3555 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3556 3557---------------------------------------- 355815 December 2006. Summary of changes for version 20061215: 3559 35601) ACPI CA Core Subsystem: 3561 3562Support for 16-bit ACPICA has been completely removed since it is no longer 3563necessary and it clutters the code. All 16-bit macros, types, and 3564conditional compiles have been removed, cleaning up and simplifying the code 3565across the entire subsystem. DOS support is no longer needed since the 3566bootable Linux firmware kit is now available. 3567 3568The handler for the Global Lock is now removed during AcpiTerminate to 3569enable a clean subsystem restart, via the implementation of the 3570AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 3571HP) 3572 3573Implemented enhancements to the multithreading support within the debugger 3574to enable improved multithreading debugging and evaluation of the subsystem. 3575(Valery Podrezov) 3576 3577Debugger: Enhanced the Statistics/Memory command to emit the total (maximum) 3578memory used during the execution, as well as the maximum memory consumed by 3579each of the various object types. (Valery Podrezov) 3580 3581Example Code and Data Size: These are the sizes for the OS-independent 3582acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3583debug version of the code includes the debug output trace mechanism and has 3584a much larger code and data size. 3585 3586 Previous Release: 3587 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 3588 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 3589 Current Release: 3590 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3591 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3592 3593 35942) iASL Compiler/Disassembler and Tools: 3595 3596AcpiExec: Implemented a new option (-m) to display full memory use 3597statistics upon subsystem/program termination. (Valery Podrezov) 3598 3599---------------------------------------- 360009 November 2006. Summary of changes for version 20061109: 3601 36021) ACPI CA Core Subsystem: 3603 3604Optimized the Load ASL operator in the case where the source operand is an 3605operation region. Simply map the operation region memory, instead of 3606performing a bytewise read. (Region must be of type SystemMemory, see 3607below.) 3608 3609Fixed the Load ASL operator for the case where the source operand is a 3610region field. A buffer object is also allowed as the source operand. BZ 480 3611 3612Fixed a problem where the Load ASL operator allowed the source operand to be 3613an operation region of any type. It is now restricted to regions of type 3614SystemMemory, as per the ACPI specification. BZ 481 3615 3616Additional cleanup and optimizations for the new Table Manager code. 3617 3618AcpiEnable will now fail if all of the required ACPI tables are not loaded 3619(FADT, FACS, DSDT). BZ 477 3620 3621Added #pragma pack(8/4) to acobject.h to ensure that the structures in this 3622header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 3623manually optimized to be aligned and will not work if it is byte-packed. 3624 3625Example Code and Data Size: These are the sizes for the OS-independent 3626acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3627debug version of the code includes the debug output trace mechanism and has 3628a much larger code and data size. 3629 3630 Previous Release: 3631 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 3632 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 3633 Current Release: 3634 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 3635 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 3636 3637 36382) iASL Compiler/Disassembler and Tools: 3639 3640Fixed a problem where the presence of the _OSI predefined control method 3641within complex expressions could cause an internal compiler error. 3642 3643AcpiExec: Implemented full region support for multiple address spaces. 3644SpaceId is now part of the REGION object. BZ 429 3645 3646---------------------------------------- 364711 October 2006. Summary of changes for version 20061011: 3648 36491) ACPI CA Core Subsystem: 3650 3651Completed an AML interpreter performance enhancement for control method 3652execution. Previously a 2-pass parse/execution, control methods are now 3653completely parsed and executed in a single pass. This improves overall 3654interpreter performance by ~25%, reduces code size, and reduces CPU stack 3655use. (Valery Podrezov + interpreter changes in version 20051202 that 3656eliminated namespace loading during the pass one parse.) 3657 3658Implemented _CID support for PCI Root Bridge detection. If the _HID does not 3659match the predefined PCI Root Bridge IDs, the _CID list (if present) is now 3660obtained and also checked for an ID match. 3661 3662Implemented additional support for the PCI _ADR execution: upsearch until a 3663device scope is found before executing _ADR. This allows PCI_Config 3664operation regions to be declared locally within control methods underneath 3665PCI device objects. 3666 3667Fixed a problem with a possible race condition between threads executing 3668AcpiWalkNamespace and the AML interpreter. This condition was removed by 3669modifying AcpiWalkNamespace to (by default) ignore all temporary namespace 3670entries created during any concurrent control method execution. An 3671additional namespace race condition is known to exist between 3672AcpiWalkNamespace and the Load/Unload ASL operators and is still under 3673investigation. 3674 3675Restructured the AML ParseLoop function, breaking it into several 3676subfunctions in order to reduce CPU stack use and improve maintainability. 3677(Mikhail Kouzmich) 3678 3679AcpiGetHandle: Fix for parameter validation to detect invalid combinations 3680of prefix handle and pathname. BZ 478 3681 3682Example Code and Data Size: These are the sizes for the OS-independent 3683acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3684debug version of the code includes the debug output trace mechanism and has 3685a much larger code and data size. 3686 3687 Previous Release: 3688 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3689 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 3690 Current Release: 3691 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 3692 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 3693 36942) iASL Compiler/Disassembler and Tools: 3695 3696Ported the -g option (get local ACPI tables) to the new ACPICA Table Manager 3697to restore original behavior. 3698 3699---------------------------------------- 370027 September 2006. Summary of changes for version 20060927: 3701 37021) ACPI CA Core Subsystem: 3703 3704Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 3705These functions now use a spinlock for mutual exclusion and the interrupt 3706level indication flag is not needed. 3707 3708Fixed a problem with the Global Lock where the lock could appear to be 3709obtained before it is actually obtained. The global lock semaphore was 3710inadvertently created with one unit instead of zero units. (BZ 464) Fiodor 3711Suietov. 3712 3713Fixed a possible memory leak and fault in AcpiExResolveObjectToValue during 3714a read from a buffer or region field. (BZ 458) Fiodor Suietov. 3715 3716Example Code and Data Size: These are the sizes for the OS-independent 3717acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3718debug version of the code includes the debug output trace mechanism and has 3719a much larger code and data size. 3720 3721 Previous Release: 3722 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3723 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 3724 Current Release: 3725 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3726 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 3727 3728 37292) iASL Compiler/Disassembler and Tools: 3730 3731Fixed a compilation problem with the pre-defined Resource Descriptor field 3732names where an "object does not exist" error could be incorrectly generated 3733if the parent ResourceTemplate pathname places the template within a 3734different namespace scope than the current scope. (BZ 7212) 3735 3736Fixed a problem where the compiler could hang after syntax errors detected 3737in an ElseIf construct. (BZ 453) 3738 3739Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 3740operator. An incorrect output filename was produced when this parameter was 3741a null string (""). Now, the original input filename is used as the AML 3742output filename, with an ".aml" extension. 3743 3744Implemented a generic batch command mode for the AcpiExec utility (execute 3745any AML debugger command) (Valery Podrezov). 3746 3747---------------------------------------- 374812 September 2006. Summary of changes for version 20060912: 3749 37501) ACPI CA Core Subsystem: 3751 3752Enhanced the implementation of the "serialized mode" of the interpreter 3753(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 3754specified, instead of creating a serialization semaphore per control method, 3755the interpreter lock is simply no longer released before a blocking 3756operation during control method execution. This effectively makes the AML 3757Interpreter single-threaded. The overhead of a semaphore per-method is 3758eliminated. 3759 3760Fixed a regression where an error was no longer emitted if a control method 3761attempts to create 2 objects of the same name. This once again returns 3762AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that 3763will dynamically serialize the control method to possible prevent future 3764errors. (BZ 440) 3765 3766Integrated a fix for a problem with PCI Express HID detection in the PCI 3767Config Space setup procedure. (BZ 7145) 3768 3769Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 3770AcpiHwInitialize function - the FADT registers are now validated when the 3771table is loaded. 3772 3773Added two new warnings during FADT verification - 1) if the FADT is larger 3774than the largest known FADT version, and 2) if there is a mismatch between a 377532-bit block address and the 64-bit X counterpart (when both are non-zero.) 3776 3777Example Code and Data Size: These are the sizes for the OS-independent 3778acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3779debug version of the code includes the debug output trace mechanism and has 3780a much larger code and data size. 3781 3782 Previous Release: 3783 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 3784 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 3785 Current Release: 3786 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3787 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 3788 3789 37902) iASL Compiler/Disassembler and Tools: 3791 3792Fixed a problem with the implementation of the Switch() operator where the 3793temporary variable was declared too close to the actual Switch, instead of 3794at method level. This could cause a problem if the Switch() operator is 3795within a while loop, causing an error on the second iteration. (BZ 460) 3796 3797Disassembler - fix for error emitted for unknown type for target of scope 3798operator. Now, ignore it and continue. 3799 3800Disassembly of an FADT now verifies the input FADT and reports any errors 3801found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 3802 3803Disassembly of raw data buffers with byte initialization data now prefixes 3804each output line with the current buffer offset. 3805 3806Disassembly of ASF! table now includes all variable-length data fields at 3807the end of some of the subtables. 3808 3809The disassembler now emits a comment if a buffer appears to be a 3810ResourceTemplate, but cannot be disassembled as such because the EndTag does 3811not appear at the very end of the buffer. 3812 3813AcpiExec - Added the "-t" command line option to enable the serialized mode 3814of the AML interpreter. 3815 3816---------------------------------------- 381731 August 2006. Summary of changes for version 20060831: 3818 38191) ACPI CA Core Subsystem: 3820 3821Miscellaneous fixes for the Table Manager: 3822- Correctly initialize internal common FADT for all 64-bit "X" fields 3823- Fixed a couple table mapping issues during table load 3824- Fixed a couple alignment issues for IA64 3825- Initialize input array to zero in AcpiInitializeTables 3826- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 3827AcpiGetTableByIndex 3828 3829Change for GPE support: when a "wake" GPE is received, all wake GPEs are now 3830immediately disabled to prevent the waking GPE from firing again and to 3831prevent other wake GPEs from interrupting the wake process. 3832 3833Added the AcpiGpeCount global that tracks the number of processed GPEs, to 3834be used for debugging systems with a large number of ACPI interrupts. 3835 3836Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 3837both the ACPICA headers and the disassembler. 3838 3839Example Code and Data Size: These are the sizes for the OS-independent 3840acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3841debug version of the code includes the debug output trace mechanism and has 3842a much larger code and data size. 3843 3844 Previous Release: 3845 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 3846 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 3847 Current Release: 3848 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 3849 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 3850 3851 38522) iASL Compiler/Disassembler and Tools: 3853 3854Disassembler support for the DMAR ACPI table. 3855 3856---------------------------------------- 385723 August 2006. Summary of changes for version 20060823: 3858 38591) ACPI CA Core Subsystem: 3860 3861The Table Manager component has been completely redesigned and 3862reimplemented. The new design is much simpler, and reduces the overall code 3863and data size of the kernel-resident ACPICA by approximately 5%. Also, it is 3864now possible to obtain the ACPI tables very early during kernel 3865initialization, even before dynamic memory management is initialized. 3866(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 3867 3868Obsolete ACPICA interfaces: 3869 3870- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init 3871time). 3872- AcpiLoadTable: Not needed. 3873- AcpiUnloadTable: Not needed. 3874 3875New ACPICA interfaces: 3876 3877- AcpiInitializeTables: Must be called before the table manager can be used. 3878- AcpiReallocateRootTable: Used to transfer the root table to dynamically 3879allocated memory after it becomes available. 3880- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 3881in the RSDT/XSDT. 3882 3883Other ACPICA changes: 3884 3885- AcpiGetTableHeader returns the actual mapped table header, not a copy. Use 3886AcpiOsUnmapMemory to free this mapping. 3887- AcpiGetTable returns the actual mapped table. The mapping is managed 3888internally and must not be deleted by the caller. Use of this interface 3889causes no additional dynamic memory allocation. 3890- AcpiFindRootPointer: Support for physical addressing has been eliminated, 3891it appeared to be unused. 3892- The interface to AcpiOsMapMemory has changed to be consistent with the 3893other allocation interfaces. 3894- The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary 3895parameters. 3896- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- 3897bit platforms. Was previously 64 bits on all platforms. 3898- The interface to the ACPI Global Lock acquire/release macros have changed 3899slightly since ACPICA no longer keeps a local copy of the FACS with a 3900constructed pointer to the actual global lock. 3901 3902Porting to the new table manager: 3903 3904- AcpiInitializeTables: Must be called once, and can be called anytime 3905during the OS initialization process. It allows the host to specify an area 3906of memory to be used to store the internal version of the RSDT/XSDT (root 3907table). This allows the host to access ACPI tables before memory management 3908is initialized and running. 3909- AcpiReallocateRootTable: Can be called after memory management is running 3910to copy the root table to a dynamically allocated array, freeing up the 3911scratch memory specified in the call to AcpiInitializeTables. 3912- AcpiSubsystemInitialize: This existing interface is independent of the 3913Table Manager, and does not have to be called before the Table Manager can 3914be used, it only must be called before the rest of ACPICA can be used. 3915- ACPI Tables: Some changes have been made to the names and structure of the 3916actbl.h and actbl1.h header files and may require changes to existing code. 3917For example, bitfields have been completely removed because of their lack of 3918portability across C compilers. 3919- Update interfaces to the Global Lock acquire/release macros if local 3920versions are used. (see acwin.h) 3921 3922Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 3923 3924New files: tbfind.c 3925 3926Example Code and Data Size: These are the sizes for the OS-independent 3927acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3928debug version of the code includes the debug output trace mechanism and has 3929a much larger code and data size. 3930 3931 Previous Release: 3932 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 3933 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 3934 Current Release: 3935 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 3936 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 3937 3938 39392) iASL Compiler/Disassembler and Tools: 3940 3941No changes for this release. 3942 3943---------------------------------------- 394421 July 2006. Summary of changes for version 20060721: 3945 39461) ACPI CA Core Subsystem: 3947 3948The full source code for the ASL test suite used to validate the iASL 3949compiler and the ACPICA core subsystem is being released with the ACPICA 3950source for the first time. The source is contained in a separate package and 3951consists of over 1100 files that exercise all ASL/AML operators. The package 3952should appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 3953Suietov) 3954 3955Completed a new design and implementation for support of the ACPI Global 3956Lock. On the OS side, the global lock is now treated as a standard AML 3957mutex. Previously, multiple OS threads could "acquire" the global lock 3958simultaneously. However, this could cause the BIOS to be starved out of the 3959lock - especially in cases such as the Embedded Controller driver where 3960there is a tight coupling between the OS and the BIOS. 3961 3962Implemented an optimization for the ACPI Global Lock interrupt mechanism. 3963The Global Lock interrupt handler no longer queues the execution of a 3964separate thread to signal the global lock semaphore. Instead, the semaphore 3965is signaled directly from the interrupt handler. 3966 3967Implemented support within the AML interpreter for package objects that 3968contain a larger AML length (package list length) than the package element 3969count. In this case, the length of the package is truncated to match the 3970package element count. Some BIOS code apparently modifies the package length 3971on the fly, and this change supports this behavior. Provides compatibility 3972with the MS AML interpreter. (With assistance from Fiodor Suietov) 3973 3974Implemented a temporary fix for the BankValue parameter of a Bank Field to 3975support all constant values, now including the Zero and One opcodes. 3976Evaluation of this parameter must eventually be converted to a full TermArg 3977evaluation. A not-implemented error is now returned (temporarily) for non- 3978constant values for this parameter. 3979 3980Fixed problem reports (Fiodor Suietov) integrated: 3981- Fix for premature object deletion after CopyObject on Operation Region (BZ 3982350) 3983 3984Example Code and Data Size: These are the sizes for the OS-independent 3985acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3986debug version of the code includes the debug output trace mechanism and has 3987a much larger code and data size. 3988 3989 Previous Release: 3990 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 3991 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 3992 Current Release: 3993 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 3994 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 3995 3996 39972) iASL Compiler/Disassembler and Tools: 3998 3999No changes for this release. 4000 4001---------------------------------------- 400207 July 2006. Summary of changes for version 20060707: 4003 40041) ACPI CA Core Subsystem: 4005 4006Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 4007that do not allow the initialization of address pointers within packed 4008structures - even though the hardware itself may support misaligned 4009transfers. Some of the debug data structures are packed by default to 4010minimize size. 4011 4012Added an error message for the case where AcpiOsGetThreadId() returns zero. 4013A non-zero value is required by the core ACPICA code to ensure the proper 4014operation of AML mutexes and recursive control methods. 4015 4016The DSDT is now the only ACPI table that determines whether the AML 4017interpreter is in 32-bit or 64-bit mode. Not really a functional change, but 4018the hooks for per-table 32/64 switching have been removed from the code. A 4019clarification to the ACPI specification is forthcoming in ACPI 3.0B. 4020 4021Fixed a possible leak of an OwnerID in the error path of 4022AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 4023deletion to a single place in AcpiTbUninstallTable to correct possible leaks 4024when using the AcpiTbDeleteTablesByType interface (with assistance from 4025Lance Ortiz.) 4026 4027Fixed a problem with Serialized control methods where the semaphore 4028associated with the method could be over-signaled after multiple method 4029invocations. 4030 4031Fixed two issues with the locking of the internal namespace data structure. 4032Both the Unload() operator and AcpiUnloadTable interface now lock the 4033namespace during the namespace deletion associated with the table unload 4034(with assistance from Linn Crosetto.) 4035 4036Fixed problem reports (Valery Podrezov) integrated: 4037- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 4038 4039Fixed problem reports (Fiodor Suietov) integrated: 4040- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 4041- On Address Space handler deletion, needless deactivation call (BZ 374) 4042- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) 4043- Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone 4044(BZ 376) 4045- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 4046- Minimum Length of RSDT should be validated (BZ 379) 4047- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 4048Handler (BZ (380) 4049- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded 4050(BZ 381) 4051 4052Example Code and Data Size: These are the sizes for the OS-independent 4053acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4054debug version of the code includes the debug output trace mechanism and has 4055a much larger code and data size. 4056 4057 Previous Release: 4058 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 4059 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 4060 Current Release: 4061 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 4062 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 4063 4064 40652) iASL Compiler/Disassembler and Tools: 4066 4067Fixed problem reports: 4068Compiler segfault when ASL contains a long (>1024) String declaration (BZ 4069436) 4070 4071---------------------------------------- 407223 June 2006. Summary of changes for version 20060623: 4073 40741) ACPI CA Core Subsystem: 4075 4076Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 4077allows the type to be customized to the host OS for improved efficiency 4078(since a spinlock is usually a very small object.) 4079 4080Implemented support for "ignored" bits in the ACPI registers. According to 4081the ACPI specification, these bits should be preserved when writing the 4082registers via a read/modify/write cycle. There are 3 bits preserved in this 4083manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 4084 4085Implemented the initial deployment of new OSL mutex interfaces. Since some 4086host operating systems have separate mutex and semaphore objects, this 4087feature was requested. The base code now uses mutexes (and the new mutex 4088interfaces) wherever a binary semaphore was used previously. However, for 4089the current release, the mutex interfaces are defined as macros to map them 4090to the existing semaphore interfaces. Therefore, no OSL changes are required 4091at this time. (See acpiosxf.h) 4092 4093Fixed several problems with the support for the control method SyncLevel 4094parameter. The SyncLevel now works according to the ACPI specification and 4095in concert with the Mutex SyncLevel parameter, since the current SyncLevel 4096is a property of the executing thread. Mutual exclusion for control methods 4097is now implemented with a mutex instead of a semaphore. 4098 4099Fixed three instances of the use of the C shift operator in the bitfield 4100support code (exfldio.c) to avoid the use of a shift value larger than the 4101target data width. The behavior of C compilers is undefined in this case and 4102can cause unpredictable results, and therefore the case must be detected and 4103avoided. (Fiodor Suietov) 4104 4105Added an info message whenever an SSDT or OEM table is loaded dynamically 4106via the Load() or LoadTable() ASL operators. This should improve debugging 4107capability since it will show exactly what tables have been loaded (beyond 4108the tables present in the RSDT/XSDT.) 4109 4110Example Code and Data Size: These are the sizes for the OS-independent 4111acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4112debug version of the code includes the debug output trace mechanism and has 4113a much larger code and data size. 4114 4115 Previous Release: 4116 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 4117 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 4118 Current Release: 4119 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 4120 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 4121 4122 41232) iASL Compiler/Disassembler and Tools: 4124 4125No changes for this release. 4126 4127---------------------------------------- 412808 June 2006. Summary of changes for version 20060608: 4129 41301) ACPI CA Core Subsystem: 4131 4132Converted the locking mutex used for the ACPI hardware to a spinlock. This 4133change should eliminate all problems caused by attempting to acquire a 4134semaphore at interrupt level, and it means that all ACPICA external 4135interfaces that directly access the ACPI hardware can be safely called from 4136interrupt level. OSL code that implements the semaphore interfaces should be 4137able to eliminate any workarounds for being called at interrupt level. 4138 4139Fixed a regression introduced in 20060526 where the ACPI device 4140initialization could be prematurely aborted with an AE_NOT_FOUND if a device 4141did not have an optional _INI method. 4142 4143Fixed an IndexField issue where a write to the Data Register should be 4144limited in size to the AccessSize (width) of the IndexField itself. (BZ 433, 4145Fiodor Suietov) 4146 4147Fixed problem reports (Valery Podrezov) integrated: 4148- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 4149 4150Fixed problem reports (Fiodor Suietov) integrated: 4151- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 4152 4153Removed four global mutexes that were obsolete and were no longer being 4154used. 4155 4156Example Code and Data Size: These are the sizes for the OS-independent 4157acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4158debug version of the code includes the debug output trace mechanism and has 4159a much larger code and data size. 4160 4161 Previous Release: 4162 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 4163 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 4164 Current Release: 4165 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 4166 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 4167 4168 41692) iASL Compiler/Disassembler and Tools: 4170 4171Fixed a fault when using -g option (get tables from registry) on Windows 4172machines. 4173 4174Fixed problem reports integrated: 4175- Generate error if CreateField NumBits parameter is zero. (BZ 405) 4176- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 4177Suietov) 4178- Global table revision override (-r) is ignored (BZ 413) 4179 4180---------------------------------------- 418126 May 2006. Summary of changes for version 20060526: 4182 41831) ACPI CA Core Subsystem: 4184 4185Restructured, flattened, and simplified the internal interfaces for 4186namespace object evaluation - resulting in smaller code, less CPU stack use, 4187and fewer interfaces. (With assistance from Mikhail Kouzmich) 4188 4189Fixed a problem with the CopyObject operator where the first parameter was 4190not typed correctly for the parser, interpreter, compiler, and disassembler. 4191Caused various errors and unexpected behavior. 4192 4193Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 4194produced incorrect results with some C compilers. Since the behavior of C 4195compilers when the shift value is larger than the datatype width is 4196apparently not well defined, the interpreter now detects this condition and 4197simply returns zero as expected in all such cases. (BZ 395) 4198 4199Fixed problem reports (Valery Podrezov) integrated: 4200- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 4201- Allow interpreter to handle nested method declarations (BZ 5361) 4202 4203Fixed problem reports (Fiodor Suietov) integrated: 4204- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) 4205- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356) 4206- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 4207- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 4208- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 4209- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 4210- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 4211- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 4212- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365) 4213- Status of the Global Initialization Handler call not used (BZ 366) 4214- Incorrect object parameter to Global Initialization Handler (BZ 367) 4215 4216Example Code and Data Size: These are the sizes for the OS-independent 4217acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4218debug version of the code includes the debug output trace mechanism and has 4219a much larger code and data size. 4220 4221 Previous Release: 4222 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 4223 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 4224 Current Release: 4225 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 4226 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 4227 4228 42292) iASL Compiler/Disassembler and Tools: 4230 4231Modified the parser to allow the names IO, DMA, and IRQ to be used as 4232namespace identifiers with no collision with existing resource descriptor 4233macro names. This provides compatibility with other ASL compilers and is 4234most useful for disassembly/recompilation of existing tables without parse 4235errors. (With assistance from Thomas Renninger) 4236 4237Disassembler: fixed an incorrect disassembly problem with the 4238DataTableRegion and CopyObject operators. Fixed a possible fault during 4239disassembly of some Alias operators. 4240 4241---------------------------------------- 424212 May 2006. Summary of changes for version 20060512: 4243 42441) ACPI CA Core Subsystem: 4245 4246Replaced the AcpiOsQueueForExecution interface with a new interface named 4247AcpiOsExecute. The major difference is that the new interface does not have 4248a Priority parameter, this appeared to be useless and has been replaced by a 4249Type parameter. The Type tells the host what type of execution is being 4250requested, such as global lock handler, notify handler, GPE handler, etc. 4251This allows the host to queue and execute the request as appropriate for the 4252request type, possibly using different work queues and different priorities 4253for the various request types. This enables fixes for multithreading 4254deadlock problems such as BZ #5534, and will require changes to all existing 4255OS interface layers. (Alexey Starikovskiy and Bob Moore) 4256 4257Fixed a possible memory leak associated with the support for the so-called 4258"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 4259Suietov) 4260 4261Fixed a problem with the Load() operator where a table load from an 4262operation region could overwrite an internal table buffer by up to 7 bytes 4263and cause alignment faults on IPF systems. (With assistance from Luming Yu) 4264 4265Example Code and Data Size: These are the sizes for the OS-independent 4266acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4267debug version of the code includes the debug output trace mechanism and has 4268a much larger code and data size. 4269 4270 Previous Release: 4271 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 4272 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 4273 Current Release: 4274 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 4275 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 4276 4277 4278 42792) iASL Compiler/Disassembler and Tools: 4280 4281Disassembler: Implemented support to cross reference the internal namespace 4282and automatically generate ASL External() statements for symbols not defined 4283within the current table being disassembled. This will simplify the 4284disassembly and recompilation of interdependent tables such as SSDTs since 4285these statements will no longer have to be added manually. 4286 4287Disassembler: Implemented experimental support to automatically detect 4288invocations of external control methods and generate appropriate External() 4289statements. This is problematic because the AML cannot be correctly parsed 4290until the number of arguments for each control method is known. Currently, 4291standalone method invocations and invocations as the source operand of a 4292Store() statement are supported. 4293 4294Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 4295LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 4296LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 4297more readable and likely closer to the original ASL source. 4298 4299---------------------------------------- 430021 April 2006. Summary of changes for version 20060421: 4301 43021) ACPI CA Core Subsystem: 4303 4304Removed a device initialization optimization introduced in 20051216 where 4305the _STA method was not run unless an _INI was also present for the same 4306device. This optimization could cause problems because it could allow _INI 4307methods to be run within a not-present device subtree. (If a not-present 4308device had no _INI, _STA would not be run, the not-present status would not 4309be discovered, and the children of the device would be incorrectly 4310traversed.) 4311 4312Implemented a new _STA optimization where namespace subtrees that do not 4313contain _INI are identified and ignored during device initialization. 4314Selectively running _STA can significantly improve boot time on large 4315machines (with assistance from Len Brown.) 4316 4317Implemented support for the device initialization case where the returned 4318_STA flags indicate a device not-present but functioning. In this case, _INI 4319is not run, but the device children are examined for presence, as per the 4320ACPI specification. 4321 4322Implemented an additional change to the IndexField support in order to 4323conform to MS behavior. The value written to the Index Register is not 4324simply a byte offset, it is a byte offset in units of the access width of 4325the parent Index Field. (Fiodor Suietov) 4326 4327Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 4328interface is called during the creation of all AML operation regions, and 4329allows the host OS to exert control over what addresses it will allow the 4330AML code to access. Operation Regions whose addresses are disallowed will 4331cause a runtime exception when they are actually accessed (will not affect 4332or abort table loading.) See oswinxf or osunixxf for an example 4333implementation. 4334 4335Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 4336interface allows the host OS to match the various "optional" 4337interface/behavior strings for the _OSI predefined control method as 4338appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 4339for an example implementation. 4340 4341Restructured and corrected various problems in the exception handling code 4342paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 4343(with assistance from Takayoshi Kochi.) 4344 4345Modified the Linux source converter to ignore quoted string literals while 4346converting identifiers from mixed to lower case. This will correct problems 4347with the disassembler and other areas where such strings must not be 4348modified. 4349 4350The ACPI_FUNCTION_* macros no longer require quotes around the function 4351name. This allows the Linux source converter to convert the names, now that 4352the converter ignores quoted strings. 4353 4354Example Code and Data Size: These are the sizes for the OS-independent 4355acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4356debug version of the code includes the debug output trace mechanism and has 4357a much larger code and data size. 4358 4359 Previous Release: 4360 4361 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 4362 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 4363 Current Release: 4364 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 4365 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 4366 4367 43682) iASL Compiler/Disassembler and Tools: 4369 4370Implemented 3 new warnings for iASL, and implemented multiple warning levels 4371(w2 flag). 4372 43731) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not 4374WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 4375check for the possible timeout, a warning is issued. 4376 43772) Useless operators: If an ASL operator does not specify an optional target 4378operand and it also does not use the function return value from the 4379operator, a warning is issued since the operator effectively does nothing. 4380 43813) Unreferenced objects: If a namespace object is created, but never 4382referenced, a warning is issued. This is a warning level 2 since there are 4383cases where this is ok, such as when a secondary table is loaded that uses 4384the unreferenced objects. Even so, care is taken to only flag objects that 4385don't look like they will ever be used. For example, the reserved methods 4386(starting with an underscore) are usually not referenced because it is 4387expected that the OS will invoke them. 4388 4389---------------------------------------- 439031 March 2006. Summary of changes for version 20060331: 4391 43921) ACPI CA Core Subsystem: 4393 4394Implemented header file support for the following additional ACPI tables: 4395ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, 4396all current and known ACPI tables are now defined in the ACPICA headers and 4397are available for use by device drivers and other software. 4398 4399Implemented support to allow tables that contain ACPI names with invalid 4400characters to be loaded. Previously, this would cause the table load to 4401fail, but since there are several known cases of such tables on existing 4402machines, this change was made to enable ACPI support for them. Also, this 4403matches the behavior of the Microsoft ACPI implementation. 4404 4405Fixed a couple regressions introduced during the memory optimization in the 440620060317 release. The namespace node definition required additional 4407reorganization and an internal datatype that had been changed to 8-bit was 4408restored to 32-bit. (Valery Podrezov) 4409 4410Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 4411could be passed through to AcpiOsReleaseObject which is unexpected. Such 4412null pointers are now trapped and ignored, matching the behavior of the 4413previous implementation before the deployment of AcpiOsReleaseObject. 4414(Valery Podrezov, Fiodor Suietov) 4415 4416Fixed a memory mapping leak during the deletion of a SystemMemory operation 4417region where a cached memory mapping was not deleted. This became a 4418noticeable problem for operation regions that are defined within frequently 4419used control methods. (Dana Meyers) 4420 4421Reorganized the ACPI table header files into two main files: one for the 4422ACPI tables consumed by the ACPICA core, and another for the miscellaneous 4423ACPI tables that are consumed by the drivers and other software. The various 4424FADT definitions were merged into one common section and three different 4425tables (ACPI 1.0, 1.0+, and 2.0) 4426 4427Example Code and Data Size: These are the sizes for the OS-independent 4428acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4429debug version of the code includes the debug output trace mechanism and has 4430a much larger code and data size. 4431 4432 Previous Release: 4433 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 4434 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 4435 Current Release: 4436 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 4437 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 4438 4439 44402) iASL Compiler/Disassembler and Tools: 4441 4442Disassembler: Implemented support to decode and format all non-AML ACPI 4443tables (tables other than DSDTs and SSDTs.) This includes the new tables 4444added to the ACPICA headers, therefore all current and known ACPI tables are 4445supported. 4446 4447Disassembler: The change to allow ACPI names with invalid characters also 4448enables the disassembly of such tables. Invalid characters within names are 4449changed to '*' to make the name printable; the iASL compiler will still 4450generate an error for such names, however, since this is an invalid ACPI 4451character. 4452 4453Implemented an option for AcpiXtract (-a) to extract all tables found in the 4454input file. The default invocation extracts only the DSDTs and SSDTs. 4455 4456Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 4457makefile for the AcpiXtract utility. 4458 4459---------------------------------------- 446017 March 2006. Summary of changes for version 20060317: 4461 44621) ACPI CA Core Subsystem: 4463 4464Implemented the use of a cache object for all internal namespace nodes. 4465Since there are about 1000 static nodes in a typical system, this will 4466decrease memory use for cache implementations that minimize per-allocation 4467overhead (such as a slab allocator.) 4468 4469Removed the reference count mechanism for internal namespace nodes, since it 4470was deemed unnecessary. This reduces the size of each namespace node by 4471about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 4472and 32 bytes for the 64-bit case. 4473 4474Optimized several internal data structures to reduce object size on 64-bit 4475platforms by packing data within the 64-bit alignment. This includes the 4476frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 4477instances corresponding to the namespace objects. 4478 4479Added two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 4480and "Windows 2006". 4481 4482Split the allocation tracking mechanism out to a separate file, from 4483utalloc.c to uttrack.c. This mechanism appears to be only useful for 4484application-level code. Kernels may wish to not include uttrack.c in 4485distributions. 4486 4487Removed all remnants of the obsolete ACPI_REPORT_* macros and the associated 4488code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 4489macros.) 4490 4491Code and Data Size: These are the sizes for the acpica.lib produced by the 4492Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4493driver or OSPM code. The debug version of the code includes the debug output 4494trace mechanism and has a much larger code and data size. Note that these 4495values will vary depending on the efficiency of the compiler and the 4496compiler options used during generation. 4497 4498 Previous Release: 4499 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4500 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 4501 Current Release: 4502 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 4503 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 4504 4505 45062) iASL Compiler/Disassembler and Tools: 4507 4508Implemented an ANSI C version of the acpixtract utility. This version will 4509automatically extract the DSDT and all SSDTs from the input acpidump text 4510file and dump the binary output to separate files. It can also display a 4511summary of the input file including the headers for each table found and 4512will extract any single ACPI table, with any signature. (See 4513source/tools/acpixtract) 4514 4515---------------------------------------- 451610 March 2006. Summary of changes for version 20060310: 4517 45181) ACPI CA Core Subsystem: 4519 4520Tagged all external interfaces to the subsystem with the new 4521ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 4522kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 4523macro. The default definition is NULL. 4524 4525Added the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 4526This allows the host to define this as necessary to simplify kernel 4527integration. The default definition is ACPI_NATIVE_UINT. 4528 4529Fixed two interpreter problems related to error processing, the deletion of 4530objects, and placing invalid pointers onto the internal operator result 4531stack. BZ 6028, 6151 (Valery Podrezov) 4532 4533Increased the reference count threshold where a warning is emitted for large 4534reference counts in order to eliminate unnecessary warnings on systems with 4535large namespaces (especially 64-bit.) Increased the value from 0x400 to 45360x800. 4537 4538Due to universal disagreement as to the meaning of the 'c' in the calloc() 4539function, the ACPI_MEM_CALLOCATE macro has been renamed to 4540ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 4541ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 4542ACPI_FREE. 4543 4544Code and Data Size: These are the sizes for the acpica.lib produced by the 4545Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4546driver or OSPM code. The debug version of the code includes the debug output 4547trace mechanism and has a much larger code and data size. Note that these 4548values will vary depending on the efficiency of the compiler and the 4549compiler options used during generation. 4550 4551 Previous Release: 4552 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 4553 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 4554 Current 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 4558 45592) iASL Compiler/Disassembler: 4560 4561Disassembler: implemented support for symbolic resource descriptor 4562references. If a CreateXxxxField operator references a fixed offset within a 4563resource descriptor, a name is assigned to the descriptor and the offset is 4564translated to the appropriate resource tag and pathname. The addition of 4565this support brings the disassembled code very close to the original ASL 4566source code and helps eliminate run-time errors when the disassembled code 4567is modified (and recompiled) in such a way as to invalidate the original 4568fixed offsets. 4569 4570Implemented support for a Descriptor Name as the last parameter to the ASL 4571Register() macro. This parameter was inadvertently left out of the ACPI 4572specification, and will be added for ACPI 3.0b. 4573 4574Fixed a problem where the use of the "_OSI" string (versus the full path 4575"\_OSI") caused an internal compiler error. ("No back ptr to op") 4576 4577Fixed a problem with the error message that occurs when an invalid string is 4578used for a _HID object (such as one with an embedded asterisk: "*PNP010A".) 4579The correct message is now displayed. 4580 4581---------------------------------------- 458217 February 2006. Summary of changes for version 20060217: 4583 45841) ACPI CA Core Subsystem: 4585 4586Implemented a change to the IndexField support to match the behavior of the 4587Microsoft AML interpreter. The value written to the Index register is now a 4588byte offset, no longer an index based upon the width of the Data register. 4589This should fix IndexField problems seen on some machines where the Data 4590register is not exactly one byte wide. The ACPI specification will be 4591clarified on this point. 4592 4593Fixed a problem where several resource descriptor types could overrun the 4594internal descriptor buffer due to size miscalculation: VendorShort, 4595VendorLong, and Interrupt. This was noticed on IA64 machines, but could 4596affect all platforms. 4597 4598Fixed a problem where individual resource descriptors were misaligned within 4599the internal buffer, causing alignment faults on IA64 platforms. 4600 4601Code and Data Size: These are the sizes for the acpica.lib produced by the 4602Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4603driver or OSPM code. The debug version of the code includes the debug output 4604trace mechanism and has a much larger code and data size. Note that these 4605values will vary depending on the efficiency of the compiler and the 4606compiler options used during generation. 4607 4608 Previous Release: 4609 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4610 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 4611 Current Release: 4612 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 4613 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 4614 4615 46162) iASL Compiler/Disassembler: 4617 4618Implemented support for new reserved names: _WDG and _WED are Microsoft 4619extensions for Windows Instrumentation Management, _TDL is a new ACPI- 4620defined method (Throttling Depth Limit.) 4621 4622Fixed a problem where a zero-length VendorShort or VendorLong resource 4623descriptor was incorrectly emitted as a descriptor of length one. 4624 4625---------------------------------------- 462610 February 2006. Summary of changes for version 20060210: 4627 46281) ACPI CA Core Subsystem: 4629 4630Removed a couple of extraneous ACPI_ERROR messages that appeared during 4631normal execution. These became apparent after the conversion from 4632ACPI_DEBUG_PRINT. 4633 4634Fixed a problem where the CreateField operator could hang if the BitIndex or 4635NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 4636 4637Fixed a problem where a DeRefOf operation on a buffer object incorrectly 4638failed with an exception. This also fixes a couple of related RefOf and 4639DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 4640 4641Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead of 4642AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ 46435480) 4644 4645Implemented a memory cleanup at the end of the execution of each iteration 4646of an AML While() loop, preventing the accumulation of outstanding objects. 4647(Valery Podrezov, BZ 5427) 4648 4649Eliminated a chunk of duplicate code in the object resolution code. (Valery 4650Podrezov, BZ 5336) 4651 4652Fixed several warnings during the 64-bit code generation. 4653 4654The AcpiSrc source code conversion tool now inserts one line of whitespace 4655after an if() statement that is followed immediately by a comment, improving 4656readability of the Linux code. 4657 4658Code and Data Size: The current and previous library sizes for the core 4659subsystem are shown below. These are the code and data sizes for the 4660acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4661values do not include any ACPI driver or OSPM code. The debug version of the 4662code includes the debug output trace mechanism and has a much larger code 4663and data size. Note that these values will vary depending on the efficiency 4664of the compiler and the compiler options used during generation. 4665 4666 Previous Release: 4667 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 4668 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 4669 Current Release: 4670 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4671 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 4672 4673 46742) iASL Compiler/Disassembler: 4675 4676Fixed a problem with the disassembly of a BankField operator with a complex 4677expression for the BankValue parameter. 4678 4679---------------------------------------- 468027 January 2006. Summary of changes for version 20060127: 4681 46821) ACPI CA Core Subsystem: 4683 4684Implemented support in the Resource Manager to allow unresolved namestring 4685references within resource package objects for the _PRT method. This support 4686is in addition to the previously implemented unresolved reference support 4687within the AML parser. If the interpreter slack mode is enabled, these 4688unresolved references will be passed through to the caller as a NULL package 4689entry. 4690 4691Implemented and deployed new macros and functions for error and warning 4692messages across the subsystem. These macros are simpler and generate less 4693code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 4694ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 4695macros remain defined to allow ACPI drivers time to migrate to the new 4696macros. 4697 4698Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 4699Acquire/Release Lock OSL interfaces. 4700 4701Fixed a problem where Alias ASL operators are sometimes not correctly 4702resolved, in both the interpreter and the iASL compiler. 4703 4704Fixed several problems with the implementation of the ConcatenateResTemplate 4705ASL operator. As per the ACPI specification, zero length buffers are now 4706treated as a single EndTag. One-length buffers always cause a fatal 4707exception. Non-zero length buffers that do not end with a full 2-byte EndTag 4708cause a fatal exception. 4709 4710Fixed a possible structure overwrite in the AcpiGetObjectInfo external 4711interface. (With assistance from Thomas Renninger) 4712 4713Code and Data Size: The current and previous library sizes for the core 4714subsystem are shown below. These are the code and data sizes for the 4715acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4716values do not include any ACPI driver or OSPM code. The debug version of the 4717code includes the debug output trace mechanism and has a much larger code 4718and data size. Note that these values will vary depending on the efficiency 4719of the compiler and the compiler options used during generation. 4720 4721 Previous Release: 4722 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 4723 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 4724 Current Release: 4725 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 4726 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 4727 4728 47292) iASL Compiler/Disassembler: 4730 4731Fixed an internal error that was generated for any forward references to ASL 4732Alias objects. 4733 4734---------------------------------------- 473513 January 2006. Summary of changes for version 20060113: 4736 47371) ACPI CA Core Subsystem: 4738 4739Added 2006 copyright to all module headers and signons. This affects 4740virtually every file in the ACPICA core subsystem, iASL compiler, and the 4741utilities. 4742 4743Enhanced the ACPICA error reporting in order to simplify user migration to 4744the non-debug version of ACPICA. Replaced all instances of the 4745ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 4746levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 4747respectively. This preserves all error and warning messages in the non-debug 4748version of the ACPICA code (this has been referred to as the "debug lite" 4749option.) Over 200 cases were converted to create a total of over 380 4750error/warning messages across the ACPICA code. This increases the code and 4751data size of the default non-debug version of the code somewhat (about 13K), 4752but all error/warning reporting may be disabled if desired (and code 4753eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 4754configuration option. The size of the debug version of ACPICA remains about 4755the same. 4756 4757Fixed a memory leak within the AML Debugger "Set" command. One object was 4758not properly deleted for every successful invocation of the command. 4759 4760Code and Data Size: The current and previous library sizes for the core 4761subsystem are shown below. These are the code and data sizes for the 4762acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4763values do not include any ACPI driver or OSPM code. The debug version of the 4764code includes the debug output trace mechanism and has a much larger code 4765and data size. Note that these values will vary depending on the efficiency 4766of the compiler and the compiler options used during generation. 4767 4768 Previous Release: 4769 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 4770 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 4771 Current Release: 4772 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 4773 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 4774 4775 47762) iASL Compiler/Disassembler: 4777 4778The compiler now officially supports the ACPI 3.0a specification that was 4779released on December 30, 2005. (Specification is available at www.acpi.info) 4780 4781---------------------------------------- 478216 December 2005. Summary of changes for version 20051216: 4783 47841) ACPI CA Core Subsystem: 4785 4786Implemented optional support to allow unresolved names within ASL Package 4787objects. A null object is inserted in the package when a named reference 4788cannot be located in the current namespace. Enabled via the interpreter 4789slack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 4790that contain such code. 4791 4792Implemented an optimization to the initialization sequence that can improve 4793boot time. During ACPI device initialization, the _STA method is now run if 4794and only if the _INI method exists. The _STA method is used to determine if 4795the device is present; An _INI can only be run if _STA returns present, but 4796it is a waste of time to run the _STA method if the _INI does not exist. 4797(Prototype and assistance from Dong Wei) 4798 4799Implemented use of the C99 uintptr_t for the pointer casting macros if it is 4800available in the current compiler. Otherwise, the default (void *) cast is 4801used as before. 4802 4803Fixed some possible memory leaks found within the execution path of the 4804Break, Continue, If, and CreateField operators. (Valery Podrezov) 4805 4806Fixed a problem introduced in the 20051202 release where an exception is 4807generated during method execution if a control method attempts to declare 4808another method. 4809 4810Moved resource descriptor string constants that are used by both the AML 4811disassembler and AML debugger to the common utilities directory so that 4812these components are independent. 4813 4814Implemented support in the AcpiExec utility (-e switch) to globally ignore 4815exceptions during control method execution (method is not aborted.) 4816 4817Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 4818generation. 4819 4820Code and Data Size: The current and previous library sizes for the core 4821subsystem are shown below. These are the code and data sizes for the 4822acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4823values do not include any ACPI driver or OSPM code. The debug version of the 4824code includes the debug output trace mechanism and has a much larger code 4825and data size. Note that these values will vary depending on the efficiency 4826of the compiler and the compiler options used during generation. 4827 4828 Previous Release: 4829 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4830 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 4831 Current Release: 4832 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 4833 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 4834 4835 48362) iASL Compiler/Disassembler: 4837 4838Fixed a problem where a CPU stack overflow fault could occur if a recursive 4839method call was made from within a Return statement. 4840 4841---------------------------------------- 484202 December 2005. Summary of changes for version 20051202: 4843 48441) ACPI CA Core Subsystem: 4845 4846Modified the parsing of control methods to no longer create namespace 4847objects during the first pass of the parse. Objects are now created only 4848during the execute phase, at the moment the namespace creation operator is 4849encountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 4850should eliminate ALREADY_EXISTS exceptions seen on some machines where 4851reentrant control methods are protected by an AML mutex. The mutex will now 4852correctly block multiple threads from attempting to create the same object 4853more than once. 4854 4855Increased the number of available Owner Ids for namespace object tracking 4856from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on 4857some machines with a large number of ACPI tables (either static or dynamic). 4858 4859Fixed a problem with the AcpiExec utility where a fault could occur when the 4860-b switch (batch mode) is used. 4861 4862Enhanced the namespace dump routine to output the owner ID for each 4863namespace object. 4864 4865Code and Data Size: The current and previous library sizes for the core 4866subsystem are shown below. These are the code and data sizes for the 4867acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4868values do not include any ACPI driver or OSPM code. The debug version of the 4869code includes the debug output trace mechanism and has a much larger code 4870and data size. Note that these values will vary depending on the efficiency 4871of the compiler and the compiler options used during generation. 4872 4873 Previous Release: 4874 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4875 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4876 Current Release: 4877 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4878 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 4879 4880 48812) iASL Compiler/Disassembler: 4882 4883Fixed a parse error during compilation of certain Switch/Case constructs. To 4884simplify the parse, the grammar now allows for multiple Default statements 4885and this error is now detected and flagged during the analysis phase. 4886 4887Disassembler: The disassembly now includes the contents of the original 4888table header within a comment at the start of the file. This includes the 4889name and version of the original ASL compiler. 4890 4891---------------------------------------- 489217 November 2005. Summary of changes for version 20051117: 4893 48941) ACPI CA Core Subsystem: 4895 4896Fixed a problem in the AML parser where the method thread count could be 4897decremented below zero if any errors occurred during the method parse phase. 4898This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines. 4899This also fixed a related regression with the mechanism that detects and 4900corrects methods that cannot properly handle reentrancy (related to the 4901deployment of the new OwnerId mechanism.) 4902 4903Eliminated the pre-parsing of control methods (to detect errors) during 4904table load. Related to the problem above, this was causing unwind issues if 4905any errors occurred during the parse, and it seemed to be overkill. A table 4906load should not be aborted if there are problems with any single control 4907method, thus rendering this feature rather pointless. 4908 4909Fixed a problem with the new table-driven resource manager where an internal 4910buffer overflow could occur for small resource templates. 4911 4912Implemented a new external interface, AcpiGetVendorResource. This interface 4913will find and return a vendor-defined resource descriptor within a _CRS or 4914_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas. 4915 4916Removed the length limit (200) on string objects as per the upcoming ACPI 49173.0A specification. This affects the following areas of the interpreter: 1) 4918any implicit conversion of a Buffer to a String, 2) a String object result 4919of the ASL Concatentate operator, 3) the String object result of the ASL 4920ToString operator. 4921 4922Fixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER 4923on a semaphore object would incorrectly timeout. This allows the 4924multithreading features of the AcpiExec utility to work properly under 4925Windows. 4926 4927Updated the Linux makefiles for the iASL compiler and AcpiExec to include 4928the recently added file named "utresrc.c". 4929 4930Code and Data Size: The current and previous library sizes for the core 4931subsystem are shown below. These are the code and data sizes for the 4932acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4933values do not include any ACPI driver or OSPM code. The debug version of the 4934code includes the debug output trace mechanism and has a much larger code 4935and data size. Note that these values will vary depending on the efficiency 4936of the compiler and the compiler options used during generation. 4937 4938 Previous Release: 4939 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 4940 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4941 Current Release: 4942 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4943 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4944 4945 49462) iASL Compiler/Disassembler: 4947 4948Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 4949specification. For the iASL compiler, this means that string literals within 4950the source ASL can be of any length. 4951 4952Enhanced the listing output to dump the AML code for resource descriptors 4953immediately after the ASL code for each descriptor, instead of in a block at 4954the end of the entire resource template. 4955 4956Enhanced the compiler debug output to dump the entire original parse tree 4957constructed during the parse phase, before any transforms are applied to the 4958tree. The transformed tree is dumped also. 4959 4960---------------------------------------- 496102 November 2005. Summary of changes for version 20051102: 4962 49631) ACPI CA Core Subsystem: 4964 4965Modified the subsystem initialization sequence to improve GPE support. The 4966GPE initialization has been split into two parts in order to defer execution 4967of the _PRW methods (Power Resources for Wake) until after the hardware is 4968fully initialized and the SCI handler is installed. This allows the _PRW 4969methods to access fields protected by the Global Lock. This will fix systems 4970where a NO_GLOBAL_LOCK exception has been seen during initialization. 4971 4972Converted the ACPI internal object disassemble and display code within the 4973AML debugger to fully table-driven operation, reducing code size and 4974increasing maintainability. 4975 4976Fixed a regression with the ConcatenateResTemplate() ASL operator introduced 4977in the 20051021 release. 4978 4979Implemented support for "local" internal ACPI object types within the 4980debugger "Object" command and the AcpiWalkNamespace external interfaces. 4981These local types include RegionFields, BankFields, IndexFields, Alias, and 4982reference objects. 4983 4984Moved common AML resource handling code into a new file, "utresrc.c". This 4985code is shared by both the Resource Manager and the AML Debugger. 4986 4987Code and Data Size: The current and previous library sizes for the core 4988subsystem are shown below. These are the code and data sizes for the 4989acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4990values do not include any ACPI driver or OSPM code. The debug version of the 4991code includes the debug output trace mechanism and has a much larger code 4992and data size. Note that these values will vary depending on the efficiency 4993of the compiler and the compiler options used during generation. 4994 4995 Previous Release: 4996 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 4997 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 4998 Current Release: 4999 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 5000 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 5001 5002 50032) iASL Compiler/Disassembler: 5004 5005Fixed a problem with very large initializer lists (more than 4000 elements) 5006for both Buffer and Package objects where the parse stack could overflow. 5007 5008Enhanced the pre-compile source code scan for non-ASCII characters to ignore 5009characters within comment fields. The scan is now always performed and is no 5010longer optional, detecting invalid characters within a source file 5011immediately rather than during the parse phase or later. 5012 5013Enhanced the ASL grammar definition to force early reductions on all list- 5014style grammar elements so that the overall parse stack usage is greatly 5015reduced. This should improve performance and reduce the possibility of parse 5016stack overflow. 5017 5018Eliminated all reduce/reduce conflicts in the iASL parser generation. Also, 5019with the addition of a %expected statement, the compiler generates from 5020source with no warnings. 5021 5022Fixed a possible segment fault in the disassembler if the input filename 5023does not contain a "dot" extension (Thomas Renninger). 5024 5025---------------------------------------- 502621 October 2005. Summary of changes for version 20051021: 5027 50281) ACPI CA Core Subsystem: 5029 5030Implemented support for the EM64T and other x86-64 processors. This 5031essentially entails recognizing that these processors support non-aligned 5032memory transfers. Previously, all 64-bit processors were assumed to lack 5033hardware support for non-aligned transfers. 5034 5035Completed conversion of the Resource Manager to nearly full table-driven 5036operation. Specifically, the resource conversion code (convert AML to 5037internal format and the reverse) and the debug code to dump internal 5038resource descriptors are fully table-driven, reducing code and data size and 5039improving maintainability. 5040 5041The OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 5042on 64-bit processors instead of a fixed 32-bit word. (With assistance from 5043Alexey Starikovskiy) 5044 5045Implemented support within the resource conversion code for the Type- 5046Specific byte within the various ACPI 3.0 *WordSpace macros. 5047 5048Fixed some issues within the resource conversion code for the type-specific 5049flags for both Memory and I/O address resource descriptors. For Memory, 5050implemented support for the MTP and TTP flags. For I/O, split the TRS and 5051TTP flags into two separate fields. 5052 5053Code and Data Size: The current and previous library sizes for the core 5054subsystem are shown below. These are the code and data sizes for the 5055acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 5056values do not include any ACPI driver or OSPM code. The debug version of the 5057code includes the debug output trace mechanism and has a much larger code 5058and data size. Note that these values will vary depending on the efficiency 5059of the compiler and the compiler options used during generation. 5060 5061 Previous Release: 5062 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 5063 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 5064 Current Release: 5065 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 5066 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 5067 5068 5069 50702) iASL Compiler/Disassembler: 5071 5072Relaxed a compiler restriction that disallowed a ResourceIndex byte if the 5073corresponding ResourceSource string was not also present in a resource 5074descriptor declaration. This restriction caused problems with existing 5075AML/ASL code that includes the Index byte without the string. When such AML 5076was disassembled, it could not be compiled without modification. Further, 5077the modified code created a resource template with a different size than the 5078original, breaking code that used fixed offsets into the resource template 5079buffer. 5080 5081Removed a recent feature of the disassembler to ignore a lone ResourceIndex 5082byte. This byte is now emitted if present so that the exact AML can be 5083reproduced when the disassembled code is recompiled. 5084 5085Improved comments and text alignment for the resource descriptor code 5086emitted by the disassembler. 5087 5088Implemented disassembler support for the ACPI 3.0 AccessSize field within a 5089Register() resource descriptor. 5090 5091---------------------------------------- 509230 September 2005. Summary of changes for version 20050930: 5093 50941) ACPI CA Core Subsystem: 5095 5096Completed a major overhaul of the Resource Manager code - specifically, 5097optimizations in the area of the AML/internal resource conversion code. The 5098code has been optimized to simplify and eliminate duplicated code, CPU stack 5099use has been decreased by optimizing function parameters and local 5100variables, and naming conventions across the manager have been standardized 5101for clarity and ease of maintenance (this includes function, parameter, 5102variable, and struct/typedef names.) The update may force changes in some 5103driver code, depending on how resources are handled by the host OS. 5104 5105All Resource Manager dispatch and information tables have been moved to a 5106single location for clarity and ease of maintenance. One new file was 5107created, named "rsinfo.c". 5108 5109The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 5110guarantee that the argument is not evaluated twice, making them less prone 5111to macro side-effects. However, since there exists the possibility of 5112additional stack use if a particular compiler cannot optimize them (such as 5113in the debug generation case), the original macros are optionally available. 5114Note that some invocations of the return_VALUE macro may now cause size 5115mismatch warnings; the return_UINT8 and return_UINT32 macros are provided to 5116eliminate these. (From Randy Dunlap) 5117 5118Implemented a new mechanism to enable debug tracing for individual control 5119methods. A new external interface, AcpiDebugTrace, is provided to enable 5120this mechanism. The intent is to allow the host OS to easily enable and 5121disable tracing for problematic control methods. This interface can be 5122easily exposed to a user or debugger interface if desired. See the file 5123psxface.c for details. 5124 5125AcpiUtCallocate will now return a valid pointer if a length of zero is 5126specified - a length of one is used and a warning is issued. This matches 5127the behavior of AcpiUtAllocate. 5128 5129Code and Data Size: The current and previous library sizes for the core 5130subsystem are shown below. These are the code and data sizes for the 5131acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 5132values do not include any ACPI driver or OSPM code. The debug version of the 5133code includes the debug output trace mechanism and has a much larger code 5134and data size. Note that these values will vary depending on the efficiency 5135of the compiler and the compiler options used during generation. 5136 5137 Previous Release: 5138 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 5139 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 5140 Current Release: 5141 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 5142 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 5143 5144 51452) iASL Compiler/Disassembler: 5146 5147A remark is issued if the effective compile-time length of a package or 5148buffer is zero. Previously, this was a warning. 5149 5150---------------------------------------- 515116 September 2005. Summary of changes for version 20050916: 5152 51531) ACPI CA Core Subsystem: 5154 5155Fixed a problem within the Resource Manager where support for the Generic 5156Register descriptor was not fully implemented. This descriptor is now fully 5157recognized, parsed, disassembled, and displayed. 5158 5159Completely restructured the Resource Manager code to utilize table-driven 5160dispatch and lookup, eliminating many of the large switch() statements. This 5161reduces overall subsystem code size and code complexity. Affects the 5162resource parsing and construction, disassembly, and debug dump output. 5163 5164Cleaned up and restructured the debug dump output for all resource 5165descriptors. Improved readability of the output and reduced code size. 5166 5167Fixed a problem where changes to internal data structures caused the 5168optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 5169 5170Code and Data Size: The current and previous library sizes for the core 5171subsystem are shown below. These are the code and data sizes for the 5172acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 5173values do not include any ACPI driver or OSPM code. The debug version of the 5174code includes the debug output trace mechanism and has a much larger code 5175and data size. Note that these values will vary depending on the efficiency 5176of the compiler and the compiler options used during generation. 5177 5178 Previous Release: 5179 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 5180 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 5181 Current Release: 5182 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 5183 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 5184 5185 51862) iASL Compiler/Disassembler: 5187 5188Updated the disassembler to automatically insert an EndDependentFn() macro 5189into the ASL stream if this macro is missing in the original AML code, 5190simplifying compilation of the resulting ASL module. 5191 5192Fixed a problem in the disassembler where a disassembled ResourceSource 5193string (within a large resource descriptor) was not surrounded by quotes and 5194not followed by a comma, causing errors when the resulting ASL module was 5195compiled. Also, escape sequences within a ResourceSource string are now 5196handled correctly (especially "\\") 5197 5198---------------------------------------- 519902 September 2005. Summary of changes for version 20050902: 5200 52011) ACPI CA Core Subsystem: 5202 5203Fixed a problem with the internal Owner ID allocation and deallocation 5204mechanisms for control method execution and recursive method invocation. 5205This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 5206messages seen on some systems. Recursive method invocation depth is 5207currently limited to 255. (Alexey Starikovskiy) 5208 5209Completely eliminated all vestiges of support for the "module-level 5210executable code" until this support is fully implemented and debugged. This 5211should eliminate the NO_RETURN_VALUE exceptions seen during table load on 5212some systems that invoke this support. 5213 5214Fixed a problem within the resource manager code where the transaction flags 5215for a 64-bit address descriptor were handled incorrectly in the type- 5216specific flag byte. 5217 5218Consolidated duplicate code within the address descriptor resource manager 5219code, reducing overall subsystem code size. 5220 5221Fixed a fault when using the AML debugger "disassemble" command to 5222disassemble individual control methods. 5223 5224Removed references to the "release_current" directory within the Unix 5225release package. 5226 5227Code and Data Size: The current and previous core subsystem library sizes 5228are shown below. These are the code and data sizes for the acpica.lib 5229produced by the Microsoft Visual C++ 6.0 compiler. These values do not 5230include any ACPI driver or OSPM code. The debug version of the code includes 5231the debug output trace mechanism and has a much larger code and data size. 5232Note that these values will vary depending on the efficiency of the compiler 5233and the compiler options used during generation. 5234 5235 Previous Release: 5236 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5237 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 5238 Current Release: 5239 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 5240 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 5241 5242 52432) iASL Compiler/Disassembler: 5244 5245Implemented an error check for illegal duplicate values in the interrupt and 5246dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 5247Interrupt(). 5248 5249Implemented error checking for the Irq() and IrqNoFlags() macros to detect 5250too many values in the interrupt list (16 max) and invalid values in the 5251list (range 0 - 15) 5252 5253The maximum length string literal within an ASL file is now restricted to 5254200 characters as per the ACPI specification. 5255 5256Fixed a fault when using the -ln option (generate namespace listing). 5257 5258Implemented an error check to determine if a DescriptorName within a 5259resource descriptor has already been used within the current scope. 5260 5261---------------------------------------- 526215 August 2005. Summary of changes for version 20050815: 5263 52641) ACPI CA Core Subsystem: 5265 5266Implemented a full bytewise compare to determine if a table load request is 5267attempting to load a duplicate table. The compare is performed if the table 5268signatures and table lengths match. This will allow different tables with 5269the same OEM Table ID and revision to be loaded - probably against the ACPI 5270specification, but discovered in the field nonetheless. 5271 5272Added the changes.txt logfile to each of the zipped release packages. 5273 5274Code and Data Size: Current and previous core subsystem library sizes are 5275shown below. These are the code and data sizes for the acpica.lib produced 5276by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5277any ACPI driver or OSPM code. The debug version of the code includes the 5278debug output trace mechanism and has a much larger code and data size. Note 5279that these values will vary depending on the efficiency of the compiler and 5280the compiler options used during generation. 5281 5282 Previous Release: 5283 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5284 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 5285 Current Release: 5286 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5287 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 5288 5289 52902) iASL Compiler/Disassembler: 5291 5292Fixed a problem where incorrect AML code could be generated for Package 5293objects if optimization is disabled (via the -oa switch). 5294 5295Fixed a problem with where incorrect AML code is generated for variable- 5296length packages when the package length is not specified and the number of 5297initializer values is greater than 255. 5298 5299 5300---------------------------------------- 530129 July 2005. Summary of changes for version 20050729: 5302 53031) ACPI CA Core Subsystem: 5304 5305Implemented support to ignore an attempt to install/load a particular ACPI 5306table more than once. Apparently there exists BIOS code that repeatedly 5307attempts to load the same SSDT upon certain events. With assistance from 5308Venkatesh Pallipadi. 5309 5310Restructured the main interface to the AML parser in order to correctly 5311handle all exceptional conditions. This will prevent leakage of the OwnerId 5312resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some 5313machines. With assistance from Alexey Starikovskiy. 5314 5315Support for "module level code" has been disabled in this version due to a 5316number of issues that have appeared on various machines. The support can be 5317enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 5318compilation. When the issues are fully resolved, the code will be enabled by 5319default again. 5320 5321Modified the internal functions for debug print support to define the 5322FunctionName parameter as a (const char *) for compatibility with compiler 5323built-in macros such as __FUNCTION__, etc. 5324 5325Linted the entire ACPICA source tree for both 32-bit and 64-bit. 5326 5327Implemented support to display an object count summary for the AML Debugger 5328commands Object and Methods. 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.6K Data, 90.2K Total 5340 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 5341 Current Release: 5342 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5343 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 5344 5345 53462) iASL Compiler/Disassembler: 5347 5348Fixed a regression that appeared in the 20050708 version of the compiler 5349where an error message was inadvertently emitted for invocations of the _OSI 5350reserved control method. 5351 5352---------------------------------------- 535308 July 2005. Summary of changes for version 20050708: 5354 53551) ACPI CA Core Subsystem: 5356 5357The use of the CPU stack in the debug version of the subsystem has been 5358considerably reduced. Previously, a debug structure was declared in every 5359function that used the debug macros. This structure has been removed in 5360favor of declaring the individual elements as parameters to the debug 5361functions. This reduces the cumulative stack use during nested execution of 5362ACPI function calls at the cost of a small increase in the code size of the 5363debug version of the subsystem. With assistance from Alexey Starikovskiy and 5364Len Brown. 5365 5366Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 5367headers to define a macro that will return the current function name at 5368runtime (such as __FUNCTION__ or _func_, etc.) The function name is used by 5369the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 5370compiler-dependent header, the function name is saved on the CPU stack (one 5371pointer per function.) This mechanism is used because apparently there 5372exists no standard ANSI-C defined macro that that returns the function name. 5373 5374Redesigned and reimplemented the "Owner ID" mechanism used to track 5375namespace objects created/deleted by ACPI tables and control method 5376execution. A bitmap is now used to allocate and free the IDs, thus solving 5377the wraparound problem present in the previous implementation. The size of 5378the namespace node descriptor was reduced by 2 bytes as a result (Alexey 5379Starikovskiy). 5380 5381Removed the UINT32_BIT and UINT16_BIT types that were used for the bitfield 5382flag definitions within the headers for the predefined ACPI tables. These 5383have been replaced by UINT8_BIT in order to increase the code portability of 5384the subsystem. If the use of UINT8 remains a problem, we may be forced to 5385eliminate bitfields entirely because of a lack of portability. 5386 5387Enhanced the performance of the AcpiUtUpdateObjectReference procedure. This 5388is a frequently used function and this improvement increases the performance 5389of the entire subsystem (Alexey Starikovskiy). 5390 5391Fixed several possible memory leaks and the inverse - premature object 5392deletion (Alexey Starikovskiy). 5393 5394Code and Data Size: Current and previous core subsystem library sizes are 5395shown below. These are the code and data sizes for the acpica.lib produced 5396by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5397any ACPI driver or OSPM code. The debug version of the code includes the 5398debug output trace mechanism and has a much larger code and data size. Note 5399that these values will vary depending on the efficiency of the compiler and 5400the compiler options used during generation. 5401 5402 Previous Release: 5403 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 5404 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 5405 Current Release: 5406 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 5407 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 5408 5409---------------------------------------- 541024 June 2005. Summary of changes for version 20050624: 5411 54121) ACPI CA Core Subsystem: 5413 5414Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 5415the host-defined cache object. This allows the OSL implementation to define 5416and type this object in any manner desired, simplifying the OSL 5417implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 5418Linux, and should be defined in the OS-specific header file for other 5419operating systems as required. 5420 5421Changed the interface to AcpiOsAcquireObject to directly return the 5422requested object as the function return (instead of ACPI_STATUS.) This 5423change was made for performance reasons, since this is the purpose of the 5424interface in the first place. AcpiOsAcquireObject is now similar to the 5425AcpiOsAllocate interface. 5426 5427Implemented a new AML debugger command named Businfo. This command displays 5428information about all devices that have an associate _PRT object. The _ADR, 5429_HID, _UID, and _CID are displayed for these devices. 5430 5431Modified the initialization sequence in AcpiInitializeSubsystem to call the 5432OSL interface AcpiOslInitialize first, before any local initialization. This 5433change was required because the global initialization now calls OSL 5434interfaces. 5435 5436Enhanced the Dump command to display the entire contents of Package objects 5437(including all sub-objects and their values.) 5438 5439Restructured the code base to split some files because of size and/or 5440because the code logically belonged in a separate file. New files are listed 5441below. All makefiles and project files included in the ACPI CA release have 5442been updated. 5443 utilities/utcache.c /* Local cache interfaces */ 5444 utilities/utmutex.c /* Local mutex support */ 5445 utilities/utstate.c /* State object support */ 5446 interpreter/parser/psloop.c /* Main AML parse loop */ 5447 5448Code and Data Size: Current and previous core subsystem library sizes are 5449shown below. These are the code and data sizes for the acpica.lib produced 5450by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5451any ACPI driver or OSPM code. The debug version of the code includes the 5452debug output trace mechanism and has a much larger code and data size. Note 5453that these values will vary depending on the efficiency of the compiler and 5454the compiler options used during generation. 5455 5456 Previous Release: 5457 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 5458 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 5459 Current Release: 5460 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 5461 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 5462 5463 54642) iASL Compiler/Disassembler: 5465 5466Fixed a regression introduced in version 20050513 where the use of a Package 5467object within a Case() statement caused a compile time exception. The 5468original behavior has been restored (a Match() operator is emitted.) 5469 5470---------------------------------------- 547117 June 2005. Summary of changes for version 20050617: 5472 54731) ACPI CA Core Subsystem: 5474 5475Moved the object cache operations into the OS interface layer (OSL) to allow 5476the host OS to handle these operations if desired (for example, the Linux 5477OSL will invoke the slab allocator). This support is optional; the compile 5478time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 5479code in the ACPI CA core. The new OSL interfaces are shown below. See 5480utalloc.c for an example implementation, and acpiosxf.h for the exact 5481interface definitions. With assistance from Alexey Starikovskiy. 5482 AcpiOsCreateCache 5483 AcpiOsDeleteCache 5484 AcpiOsPurgeCache 5485 AcpiOsAcquireObject 5486 AcpiOsReleaseObject 5487 5488Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return 5489and restore a flags parameter. This fits better with many OS lock models. 5490Note: the current execution state (interrupt handler or not) is no longer 5491passed to these interfaces. If necessary, the OSL must determine this state 5492by itself, a simple and fast operation. With assistance from Alexey 5493Starikovskiy. 5494 5495Fixed a problem in the ACPI table handling where a valid XSDT was assumed 5496present if the revision of the RSDP was 2 or greater. According to the ACPI 5497specification, the XSDT is optional in all cases, and the table manager 5498therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 5499Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 5500only the RSDT. 5501 5502Fixed an interpreter problem with the Mid() operator in the case of an input 5503string where the resulting output string is of zero length. It now correctly 5504returns a valid, null terminated string object instead of a string object 5505with a null pointer. 5506 5507Fixed a problem with the control method argument handling to allow a store 5508to an Arg object that already contains an object of type Device. The Device 5509object is now correctly overwritten. Previously, an error was returned. 5510 5511 5512Enhanced the debugger Find command to emit object values in addition to the 5513found object pathnames. The output format is the same as the dump namespace 5514command. 5515 5516Enhanced the debugger Set command. It now has the ability to set the value 5517of any Named integer object in the namespace (Previously, only method locals 5518and args could be set.) 5519 5520Code and Data Size: Current and previous core subsystem library sizes are 5521shown below. These are the code and data sizes for the acpica.lib produced 5522by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5523any ACPI driver or OSPM code. The debug version of the code includes the 5524debug output trace mechanism and has a much larger code and data size. Note 5525that these values will vary depending on the efficiency of the compiler and 5526the compiler options used during generation. 5527 5528 Previous Release: 5529 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 5530 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 5531 Current Release: 5532 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 5533 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 5534 5535 55362) iASL Compiler/Disassembler: 5537 5538Fixed a regression in the disassembler where if/else/while constructs were 5539output incorrectly. This problem was introduced in the previous release 5540(20050526). This problem also affected the single-step disassembly in the 5541debugger. 5542 5543Fixed a problem where compiling the reserved _OSI method would randomly (but 5544rarely) produce compile errors. 5545 5546Enhanced the disassembler to emit compilable code in the face of incorrect 5547AML resource descriptors. If the optional ResourceSourceIndex is present, 5548but the ResourceSource is not, do not emit the ResourceSourceIndex in the 5549disassembly. Otherwise, the resulting code cannot be compiled without 5550errors. 5551 5552---------------------------------------- 555326 May 2005. Summary of changes for version 20050526: 5554 55551) ACPI CA Core Subsystem: 5556 5557Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 5558the module level (not within a control method.) These opcodes are executed 5559exactly once at the time the table is loaded. This type of code was legal up 5560until the release of ACPI 2.0B (2002) and is now supported within ACPI CA in 5561order to provide backwards compatibility with earlier BIOS implementations. 5562This eliminates the "Encountered executable code at module level" warning 5563that was previously generated upon detection of such code. 5564 5565Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 5566inadvertently be generated during the lookup of namespace objects in the 5567second pass parse of ACPI tables and control methods. It appears that this 5568problem could occur during the resolution of forward references to namespace 5569objects. 5570 5571Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 5572corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 5573allows the deadlock detection debug code to be compiled out in the normal 5574case, improving mutex performance (and overall subsystem performance) 5575considerably. 5576 5577Implemented a handful of miscellaneous fixes for possible memory leaks on 5578error conditions and error handling control paths. These fixes were 5579suggested by FreeBSD and the Coverity Prevent source code analysis tool. 5580 5581Added a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 5582to prevent a fault in this error case. 5583 5584Code and Data Size: Current and previous core subsystem library sizes are 5585shown below. These are the code and data sizes for the acpica.lib produced 5586by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5587any ACPI driver or OSPM code. The debug version of the code includes the 5588debug output trace mechanism and has a much larger code and data size. Note 5589that these values will vary depending on the efficiency of the compiler and 5590the compiler options used during generation. 5591 5592 Previous Release: 5593 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5594 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5595 Current Release: 5596 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 5597 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 5598 5599 56002) iASL Compiler/Disassembler: 5601 5602Implemented support to allow Type 1 and Type 2 ASL operators to appear at 5603the module level (not within a control method.) These operators will be 5604executed once at the time the table is loaded. This type of code was legal 5605up until the release of ACPI 2.0B (2002) and is now supported by the iASL 5606compiler in order to provide backwards compatibility with earlier BIOS ASL 5607code. 5608 5609The ACPI integer width (specified via the table revision ID or the -r 5610override, 32 or 64 bits) is now used internally during compile-time constant 5611folding to ensure that constants are truncated to 32 bits if necessary. 5612Previously, the revision ID value was only emitted in the AML table header. 5613 5614An error message is now generated for the Mutex and Method operators if the 5615SyncLevel parameter is outside the legal range of 0 through 15. 5616 5617Fixed a problem with the Method operator ParameterTypes list handling (ACPI 56183.0). Previously, more than 2 types or 2 arguments generated a syntax error. 5619The actual underlying implementation of method argument typechecking is 5620still under development, however. 5621 5622---------------------------------------- 562313 May 2005. Summary of changes for version 20050513: 5624 56251) ACPI CA Core Subsystem: 5626 5627Implemented support for PCI Express root bridges -- added support for device 5628PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 5629 5630The interpreter now automatically truncates incoming 64-bit constants to 32 5631bits if currently executing out of a 32-bit ACPI table (Revision < 2). This 5632also affects the iASL compiler constant folding. (Note: as per below, the 5633iASL compiler no longer allows 64-bit constants within 32-bit tables.) 5634 5635Fixed a problem where string and buffer objects with "static" pointers 5636(pointers to initialization data within an ACPI table) were not handled 5637consistently. The internal object copy operation now always copies the data 5638to a newly allocated buffer, regardless of whether the source object is 5639static or not. 5640 5641Fixed a problem with the FromBCD operator where an implicit result 5642conversion was improperly performed while storing the result to the target 5643operand. Since this is an "explicit conversion" operator, the implicit 5644conversion should never be performed on the output. 5645 5646Fixed a problem with the CopyObject operator where a copy to an existing 5647named object did not always completely overwrite the existing object stored 5648at name. Specifically, a buffer-to-buffer copy did not delete the existing 5649buffer. 5650 5651Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 5652structs for consistency. 5653 5654Code and Data Size: Current and previous core subsystem library sizes are 5655shown below. These are the code and data sizes for the acpica.lib produced 5656by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5657any ACPI driver or OSPM code. The debug version of the code includes the 5658debug output trace mechanism and has a much larger code and data size. Note 5659that these values will vary depending on the efficiency of the compiler and 5660the compiler options used during generation. 5661 5662 Previous Release: 5663 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5664 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5665 Current Release: (Same sizes) 5666 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5667 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5668 5669 56702) iASL Compiler/Disassembler: 5671 5672The compiler now emits a warning if an attempt is made to generate a 64-bit 5673integer constant from within a 32-bit ACPI table (Revision < 2). The integer 5674is truncated to 32 bits. 5675 5676Fixed a problem with large package objects: if the static length of the 5677package is greater than 255, the "variable length package" opcode is 5678emitted. Previously, this caused an error. This requires an update to the 5679ACPI spec, since it currently (incorrectly) states that packages larger than 5680255 elements are not allowed. 5681 5682The disassembler now correctly handles variable length packages and packages 5683larger than 255 elements. 5684 5685---------------------------------------- 568608 April 2005. Summary of changes for version 20050408: 5687 56881) ACPI CA Core Subsystem: 5689 5690Fixed three cases in the interpreter where an "index" argument to an ASL 5691function was still (internally) 32 bits instead of the required 64 bits. 5692This was the Index argument to the Index, Mid, and Match operators. 5693 5694The "strupr" function is now permanently local (AcpiUtStrupr), since this is 5695not a POSIX-defined function and not present in most kernel-level C 5696libraries. All references to the C library strupr function have been removed 5697from the headers. 5698 5699Completed the deployment of static functions/prototypes. All prototypes with 5700the static attribute have been moved from the headers to the owning C file. 5701 5702Implemented an extract option (-e) for the AcpiBin utility (AML binary 5703utility). This option allows the utility to extract individual ACPI tables 5704from the output of AcpiDmp. It provides the same functionality of the 5705acpixtract.pl perl script without the worry of setting the correct perl 5706options. AcpiBin runs on Windows and has not yet been generated/validated in 5707the Linux/Unix environment (but should be soon). 5708 5709Updated and fixed the table dump option for AcpiBin (-d). This option 5710converts a single ACPI table to a hex/ascii file, similar to the output of 5711AcpiDmp. 5712 5713Code and Data Size: Current and previous core subsystem library sizes are 5714shown below. These are the code and data sizes for the acpica.lib produced 5715by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5716any ACPI driver or OSPM code. The debug version of the code includes the 5717debug output trace mechanism and has a much larger code and data size. Note 5718that these values will vary depending on the efficiency of the compiler and 5719the compiler options used during generation. 5720 5721 Previous Release: 5722 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 5723 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 5724 Current Release: 5725 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5726 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5727 5728 57292) iASL Compiler/Disassembler: 5730 5731Disassembler fix: Added a check to ensure that the table length found in the 5732ACPI table header within the input file is not longer than the actual input 5733file size. This indicates some kind of file or table corruption. 5734 5735---------------------------------------- 573629 March 2005. Summary of changes for version 20050329: 5737 57381) ACPI CA Core Subsystem: 5739 5740An error is now generated if an attempt is made to create a Buffer Field of 5741length zero (A CreateField with a length operand of zero.) 5742 5743The interpreter now issues a warning whenever executable code at the module 5744level is detected during ACPI table load. This will give some idea of the 5745prevalence of this type of code. 5746 5747Implemented support for references to named objects (other than control 5748methods) within package objects. 5749 5750Enhanced package object output for the debug object. Package objects are now 5751completely dumped, showing all elements. 5752 5753Enhanced miscellaneous object output for the debug object. Any object can 5754now be written to the debug object (for example, a device object can be 5755written, and the type of the object will be displayed.) 5756 5757The "static" qualifier has been added to all local functions across both the 5758core subsystem and the iASL compiler. 5759 5760The number of "long" lines (> 80 chars) within the source has been 5761significantly reduced, by about 1/3. 5762 5763Cleaned up all header files to ensure that all CA/iASL functions are 5764prototyped (even static functions) and the formatting is consistent. 5765 5766Two new header files have been added, acopcode.h and acnames.h. 5767 5768Removed several obsolete functions that were no longer used. 5769 5770Code and Data Size: Current and previous core subsystem library sizes are 5771shown below. These are the code and data sizes for the acpica.lib produced 5772by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5773any ACPI driver or OSPM code. The debug version of the code includes the 5774debug output trace mechanism and has a much larger code and data size. Note 5775that these values will vary depending on the efficiency of the compiler and 5776the compiler options used during generation. 5777 5778 Previous Release: 5779 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5780 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 5781 Current Release: 5782 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 5783 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 5784 5785 5786 57872) iASL Compiler/Disassembler: 5788 5789Fixed a problem with the resource descriptor generation/support. For the 5790ResourceSourceIndex and the ResourceSource fields, both must be present, or 5791both must be not present - can't have one without the other. 5792 5793The compiler now returns non-zero from the main procedure if any errors have 5794occurred during the compilation. 5795 5796 5797---------------------------------------- 579809 March 2005. Summary of changes for version 20050309: 5799 58001) ACPI CA Core Subsystem: 5801 5802The string-to-buffer implicit conversion code has been modified again after 5803a change to the ACPI specification. In order to match the behavior of the 5804other major ACPI implementation, the target buffer is no longer truncated if 5805the source string is smaller than an existing target buffer. This change 5806requires an update to the ACPI spec, and should eliminate the recent 5807AE_AML_BUFFER_LIMIT issues. 5808 5809The "implicit return" support was rewritten to a new algorithm that solves 5810the general case. Rather than attempt to determine when a method is about to 5811exit, the result of every ASL operator is saved momentarily until the very 5812next ASL operator is executed. Therefore, no matter how the method exits, 5813there will always be a saved implicit return value. This feature is only 5814enabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 5815AE_AML_NO_RETURN_VALUE errors when enabled. 5816 5817Implemented implicit conversion support for the predicate (operand) of the 5818If, Else, and While operators. String and Buffer arguments are automatically 5819converted to Integers. 5820 5821Changed the string-to-integer conversion behavior to match the new ACPI 5822errata: "If no integer object exists, a new integer is created. The ASCII 5823string is interpreted as a hexadecimal constant. Each string character is 5824interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 5825with the first character as the most significant digit, and ending with the 5826first non-hexadecimal character or end-of-string." This means that the first 5827non-hex character terminates the conversion and this is the code that was 5828changed. 5829 5830Fixed a problem where the ObjectType operator would fail (fault) when used 5831on an Index of a Package which pointed to a null package element. The 5832operator now properly returns zero (Uninitialized) in this case. 5833 5834Fixed a problem where the While operator used excessive memory by not 5835properly popping the result stack during execution. There was no memory leak 5836after execution, however. (Code provided by Valery Podrezov.) 5837 5838Fixed a problem where references to control methods within Package objects 5839caused the method to be invoked, instead of producing a reference object 5840pointing to the method. 5841 5842Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 5843improve performance and reduce code size. (Code provided by Alexey 5844Starikovskiy.) 5845 5846Code and Data Size: Current and previous core subsystem library sizes are 5847shown below. These are the code and data sizes for the acpica.lib produced 5848by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5849any ACPI driver or OSPM code. The debug version of the code includes the 5850debug output trace mechanism and has a much larger code and data size. Note 5851that these values will vary depending on the efficiency of the compiler and 5852the compiler options used during generation. 5853 5854 Previous Release: 5855 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5856 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 5857 Current Release: 5858 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5859 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 5860 5861 58622) iASL Compiler/Disassembler: 5863 5864Fixed a problem with the Return operator with no arguments. Since the AML 5865grammar for the byte encoding requires an operand for the Return opcode, the 5866compiler now emits a Return(Zero) for this case. An ACPI specification 5867update has been written for this case. 5868 5869For tables other than the DSDT, namepath optimization is automatically 5870disabled. This is because SSDTs can be loaded anywhere in the namespace, the 5871compiler has no knowledge of where, and thus cannot optimize namepaths. 5872 5873Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 5874inadvertently omitted from the ACPI specification, and will require an 5875update to the spec. 5876 5877The source file scan for ASCII characters is now optional (-a). This change 5878was made because some vendors place non-ascii characters within comments. 5879However, the scan is simply a brute-force byte compare to ensure all 5880characters in the file are in the range 0x00 to 0x7F. 5881 5882Fixed a problem with the CondRefOf operator where the compiler was 5883inappropriately checking for the existence of the target. Since the point of 5884the operator is to check for the existence of the target at run-time, the 5885compiler no longer checks for the target existence. 5886 5887Fixed a problem where errors generated from the internal AML interpreter 5888during constant folding were not handled properly, causing a fault. 5889 5890Fixed a problem with overly aggressive range checking for the Stall 5891operator. The valid range (max 255) is now only checked if the operand is of 5892type Integer. All other operand types cannot be statically checked. 5893 5894Fixed a problem where control method references within the RefOf, DeRefOf, 5895and ObjectType operators were not treated properly. They are now treated as 5896actual references, not method invocations. 5897 5898Fixed and enhanced the "list namespace" option (-ln). This option was broken 5899a number of releases ago. 5900 5901Improved error handling for the Field, IndexField, and BankField operators. 5902The compiler now cleanly reports and recovers from errors in the field 5903component (FieldUnit) list. 5904 5905Fixed a disassembler problem where the optional ResourceDescriptor fields 5906TRS and TTP were not always handled correctly. 5907 5908Disassembler - Comments in output now use "//" instead of "/*" 5909 5910---------------------------------------- 591128 February 2005. Summary of changes for version 20050228: 5912 59131) ACPI CA Core Subsystem: 5914 5915Fixed a problem where the result of an Index() operator (an object 5916reference) must increment the reference count on the target object for the 5917life of the object reference. 5918 5919Implemented AML Interpreter and Debugger support for the new ACPI 3.0 5920Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace 5921resource descriptors. 5922 5923Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 5924Space Descriptor" string, indicating interpreter support for the descriptors 5925above. 5926 5927Implemented header support for the new ACPI 3.0 FADT flag bits. 5928 5929Implemented header support for the new ACPI 3.0 PCI Express bits for the PM1 5930status/enable registers. 5931 5932Updated header support for the MADT processor local Apic struct and MADT 5933platform interrupt source struct for new ACPI 3.0 fields. 5934 5935Implemented header support for the SRAT and SLIT ACPI tables. 5936 5937Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag 5938at runtime. 5939 5940Code and Data Size: Current and previous core subsystem library sizes are 5941shown below. These are the code and data sizes for the acpica.lib produced 5942by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5943any ACPI driver or OSPM code. The debug version of the code includes the 5944debug output trace mechanism and has a much larger code and data size. Note 5945that these values will vary depending on the efficiency of the compiler and 5946the compiler options used during generation. 5947 5948 Previous Release: 5949 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 5950 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 5951 Current Release: 5952 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5953 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 5954 5955 59562) iASL Compiler/Disassembler: 5957 5958Fixed a problem with the internal 64-bit String-to-integer conversion with 5959strings less than two characters long. 5960 5961Fixed a problem with constant folding where the result of the Index() 5962operator can not be considered a constant. This means that Index() cannot be 5963a type3 opcode and this will require an update to the ACPI specification. 5964 5965Disassembler: Implemented support for the TTP, MTP, and TRS resource 5966descriptor fields. These fields were inadvertently ignored and not output in 5967the disassembly of the resource descriptor. 5968 5969 5970 ---------------------------------------- 597111 February 2005. Summary of changes for version 20050211: 5972 59731) ACPI CA Core Subsystem: 5974 5975Implemented ACPI 3.0 support for implicit conversion within the Match() 5976operator. MatchObjects can now be of type integer, buffer, or string instead 5977of just type integer. Package elements are implicitly converted to the type 5978of the MatchObject. This change aligns the behavior of Match() with the 5979behavior of the other logical operators (LLess(), etc.) It also requires an 5980errata change to the ACPI specification as this support was intended for 5981ACPI 3.0, but was inadvertently omitted. 5982 5983Fixed a problem with the internal implicit "to buffer" conversion. Strings 5984that are converted to buffers will cause buffer truncation if the string is 5985smaller than the target buffer. Integers that are converted to buffers will 5986not cause buffer truncation, only zero extension (both as per the ACPI 5987spec.) The problem was introduced when code was added to truncate the 5988buffer, but this should not be performed in all cases, only the string case. 5989 5990Fixed a problem with the Buffer and Package operators where the interpreter 5991would get confused if two such operators were used as operands to an ASL 5992operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 5993stack was not being popped after the execution of these operators, resulting 5994in an AE_NO_RETURN_VALUE exception. 5995 5996Fixed a problem with constructs of the form Store(Index(...),...). The 5997reference object returned from Index was inadvertently resolved to an actual 5998value. This problem was introduced in version 20050114 when the behavior of 5999Store() was modified to restrict the object types that can be used as the 6000source operand (to match the ACPI specification.) 6001 6002Reduced excessive stack use within the AcpiGetObjectInfo procedure. 6003 6004Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 6005 6006Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 6007 6008Code and Data Size: Current and previous core subsystem library sizes are 6009shown below. These are the code and data sizes for the acpica.lib produced 6010by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6011any ACPI driver or OSPM code. The debug version of the code includes the 6012debug output trace mechanism and has a much larger code and data size. Note 6013that these values will vary depending on the efficiency of the compiler and 6014the compiler options used during generation. 6015 6016 Previous Release: 6017 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 6018 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 6019 Current Release: 6020 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 6021 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 6022 6023 60242) iASL Compiler/Disassembler: 6025 6026Fixed a code generation problem in the constant folding optimization code 6027where incorrect code was generated if a constant was reduced to a buffer 6028object (i.e., a reduced type 5 opcode.) 6029 6030Fixed a typechecking problem for the ToBuffer operator. Caused by an 6031incorrect return type in the internal opcode information table. 6032 6033---------------------------------------- 603425 January 2005. Summary of changes for version 20050125: 6035 60361) ACPI CA Core Subsystem: 6037 6038Fixed a recently introduced problem with the Global Lock where the 6039underlying semaphore was not created. This problem was introduced in 6040version 20050114, and caused an AE_AML_NO_OPERAND exception during an 6041Acquire() operation on _GL. 6042 6043The local object cache is now optional, and is disabled by default. Both 6044AcpiExec and the iASL compiler enable the cache because they run in user 6045mode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 6046to enable the local cache. 6047 6048Fixed an issue in the internal function AcpiUtEvaluateObject concerning the 6049optional "implicit return" support where an error was returned if no return 6050object was expected, but one was implicitly returned. AE_OK is now returned 6051in this case and the implicitly returned object is deleted. 6052AcpiUtEvaluateObject is only occasionally used, and only to execute reserved 6053methods such as _STA and _INI where the return type is known up front. 6054 6055Fixed a few issues with the internal convert-to-integer code. It now returns 6056an error if an attempt is made to convert a null string, a string of only 6057blanks/tabs, or a zero-length buffer. This affects both implicit conversion 6058and explicit conversion via the ToInteger() operator. 6059 6060The internal debug code in AcpiUtAcquireMutex has been commented out. It is 6061not needed for normal operation and should increase the performance of the 6062entire subsystem. The code remains in case it is needed for debug purposes 6063again. 6064 6065The AcpiExec source and makefile are included in the Unix/Linux package for 6066the first time. 6067 6068Code and Data Size: Current and previous core subsystem library sizes are 6069shown below. These are the code and data sizes for the acpica.lib produced 6070by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6071any ACPI driver or OSPM code. The debug version of the code includes the 6072debug output trace mechanism and has a much larger code and data size. Note 6073that these values will vary depending on the efficiency of the compiler and 6074the compiler options used during generation. 6075 6076 Previous Release: 6077 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 6078 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 6079 Current Release: 6080 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 6081 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 6082 60832) iASL Compiler/Disassembler: 6084 6085Switch/Case support: A warning is now issued if the type of the Switch value 6086cannot be determined at compile time. For example, Switch(Arg0) will 6087generate the warning, and the type is assumed to be an integer. As per the 6088ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the 6089warning. 6090 6091Switch/Case support: Implemented support for buffer and string objects as 6092the switch value. This is an ACPI 3.0 feature, now that LEqual supports 6093buffers and strings. 6094 6095Switch/Case support: The emitted code for the LEqual() comparisons now uses 6096the switch value as the first operand, not the second. The case value is now 6097the second operand, and this allows the case value to be implicitly 6098converted to the type of the switch value, not the other way around. 6099 6100Switch/Case support: Temporary variables are now emitted immediately within 6101the control method, not at the global level. This means that there are now 610236 temps available per-method, not 36 temps per-module as was the case with 6103the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 6104 6105---------------------------------------- 610614 January 2005. Summary of changes for version 20050114: 6107 6108Added 2005 copyright to all module headers. This affects every module in 6109the core subsystem, iASL compiler, and the utilities. 6110 61111) ACPI CA Core Subsystem: 6112 6113Fixed an issue with the String-to-Buffer conversion code where the string 6114null terminator was not included in the buffer after conversion, but there 6115is existing ASL that assumes the string null terminator is included. This is 6116the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 6117introduced in the previous version when the code was updated to correctly 6118set the converted buffer size as per the ACPI specification. The ACPI spec 6119is ambiguous and will be updated to specify that the null terminator must be 6120included in the converted buffer. This also affects the ToBuffer() ASL 6121operator. 6122 6123Fixed a problem with the Mid() ASL/AML operator where it did not work 6124correctly on Buffer objects. Newly created sub-buffers were not being marked 6125as initialized. 6126 6127 6128Fixed a problem in AcpiTbFindTable where incorrect string compares were 6129performed on the OemId and OemTableId table header fields. These fields are 6130not null terminated, so strncmp is now used instead of strcmp. 6131 6132Implemented a restriction on the Store() ASL/AML operator to align the 6133behavior with the ACPI specification. Previously, any object could be used 6134as the source operand. Now, the only objects that may be used are Integers, 6135Buffers, Strings, Packages, Object References, and DDB Handles. If 6136necessary, the original behavior can be restored by enabling the 6137EnableInterpreterSlack flag. 6138 6139Enhanced the optional "implicit return" support to allow an implicit return 6140value from methods that are invoked externally via the AcpiEvaluateObject 6141interface. This enables implicit returns from the _STA and _INI methods, 6142for example. 6143 6144Changed the Revision() ASL/AML operator to return the current version of the 6145AML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned 6146the supported ACPI version (This is the function of the _REV method). 6147 6148Updated the _REV predefined method to return the currently supported version 6149of ACPI, now 3. 6150 6151Implemented batch mode option for the AcpiExec utility (-b). 6152 6153Code and Data Size: Current and previous core subsystem library sizes are 6154shown below. These are the code and data sizes for the acpica.lib produced 6155by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6156any ACPI driver or OSPM code. The debug version of the code includes the 6157debug output trace mechanism and has a much larger code and data size. Note 6158that these values will vary depending on the efficiency of the compiler and 6159the compiler options used during generation. 6160 6161 Previous Release: 6162 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6163 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 6164 Current Release: 6165 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 6166 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 6167 6168---------------------------------------- 616910 December 2004. Summary of changes for version 20041210: 6170 6171ACPI 3.0 support is nearing completion in both the iASL compiler and the 6172ACPI CA core subsystem. 6173 61741) ACPI CA Core Subsystem: 6175 6176Fixed a problem in the ToDecimalString operator where the resulting string 6177length was incorrectly calculated. The length is now calculated exactly, 6178eliminating incorrect AE_STRING_LIMIT exceptions. 6179 6180Fixed a problem in the ToHexString operator to allow a maximum 200 character 6181string to be produced. 6182 6183Fixed a problem in the internal string-to-buffer and buffer-to-buffer copy 6184routine where the length of the resulting buffer was not truncated to the 6185new size (if the target buffer already existed). 6186 6187Code and Data Size: Current and previous core subsystem library sizes are 6188shown below. These are the code and data sizes for the acpica.lib produced 6189by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6190any ACPI driver or OSPM code. The debug version of the code includes the 6191debug output trace mechanism and has a much larger code and data size. Note 6192that these values will vary depending on the efficiency of the compiler and 6193the compiler options used during generation. 6194 6195 Previous Release: 6196 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6197 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 6198 Current Release: 6199 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6200 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 6201 6202 62032) iASL Compiler/Disassembler: 6204 6205Implemented the new ACPI 3.0 resource template macros - DWordSpace, 6206ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 6207Includes support in the disassembler. 6208 6209Implemented support for the new (ACPI 3.0) parameter to the Register macro, 6210AccessSize. 6211 6212Fixed a problem where the _HE resource name for the Interrupt macro was 6213referencing bit 0 instead of bit 1. 6214 6215Implemented check for maximum 255 interrupts in the Interrupt macro. 6216 6217Fixed a problem with the predefined resource descriptor names where 6218incorrect AML code was generated if the offset within the resource buffer 6219was 0 or 1. The optimizer shortened the AML code to a single byte opcode 6220but did not update the surrounding package lengths. 6221 6222Changes to the Dma macro: All channels within the channel list must be in 6223the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 6224optional (default is BusMaster). 6225 6226Implemented check for maximum 7 data bytes for the VendorShort macro. 6227 6228The ReadWrite parameter is now optional for the Memory32 and similar macros. 6229 6230---------------------------------------- 623103 December 2004. Summary of changes for version 20041203: 6232 62331) ACPI CA Core Subsystem: 6234 6235The low-level field insertion/extraction code (exfldio) has been completely 6236rewritten to eliminate unnecessary complexity, bugs, and boundary 6237conditions. 6238 6239Fixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString 6240operators where the input operand could be inadvertently deleted if no 6241conversion was necessary (e.g., if the input to ToInteger was an Integer 6242object.) 6243 6244Fixed a problem with the ToDecimalString and ToHexString where an incorrect 6245exception code was returned if the resulting string would be > 200 chars. 6246AE_STRING_LIMIT is now returned. 6247 6248Fixed a problem with the Concatenate operator where AE_OK was always 6249returned, even if the operation failed. 6250 6251Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 6252semaphores to be allocated. 6253 6254Code and Data Size: Current and previous core subsystem library sizes are 6255shown below. These are the code and data sizes for the acpica.lib produced 6256by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6257any ACPI driver or OSPM code. The debug version of the code includes the 6258debug output trace mechanism and has a much larger code and data size. Note 6259that these values will vary depending on the efficiency of the compiler and 6260the compiler options used during generation. 6261 6262 Previous Release: 6263 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6264 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6265 Current Release: 6266 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 6267 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 6268 6269 62702) iASL Compiler/Disassembler: 6271 6272Fixed typechecking for the ObjectType and SizeOf operators. Problem was 6273recently introduced in 20041119. 6274 6275Fixed a problem with the ToUUID macro where the upper nybble of each buffer 6276byte was inadvertently set to zero. 6277 6278---------------------------------------- 627919 November 2004. Summary of changes for version 20041119: 6280 62811) ACPI CA Core Subsystem: 6282 6283Fixed a problem in the internal ConvertToInteger routine where new integers 6284were not truncated to 32 bits for 32-bit ACPI tables. This routine converts 6285buffers and strings to integers. 6286 6287Implemented support to store a value to an Index() on a String object. This 6288is an ACPI 2.0 feature that had not yet been implemented. 6289 6290Implemented new behavior for storing objects to individual package elements 6291(via the Index() operator). The previous behavior was to invoke the implicit 6292conversion rules if an object was already present at the index. The new 6293behavior is to simply delete any existing object and directly store the new 6294object. Although the ACPI specification seems unclear on this subject, other 6295ACPI implementations behave in this manner. (This is the root of the 6296AE_BAD_HEX_CONSTANT issue.) 6297 6298Modified the RSDP memory scan mechanism to support the extended checksum for 6299ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 6300RSDP signature is found with a valid checksum. 6301 6302Code and Data Size: Current and previous core subsystem library sizes are 6303shown below. These are the code and data sizes for the acpica.lib produced 6304by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6305any ACPI driver or OSPM code. The debug version of the code includes the 6306debug output trace mechanism and has a much larger code and data size. Note 6307that these values will vary depending on the efficiency of the compiler and 6308the compiler options used during generation. 6309 6310 Previous Release: 6311 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6312 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6313 Current Release: 6314 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6315 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6316 6317 63182) iASL Compiler/Disassembler: 6319 6320Fixed a missing semicolon in the aslcompiler.y file. 6321 6322---------------------------------------- 632305 November 2004. Summary of changes for version 20041105: 6324 63251) ACPI CA Core Subsystem: 6326 6327Implemented support for FADT revision 2. This was an interim table (between 6328ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 6329 6330Implemented optional support to allow uninitialized LocalX and ArgX 6331variables in a control method. The variables are initialized to an Integer 6332object with a value of zero. This support is enabled by setting the 6333AcpiGbl_EnableInterpreterSlack flag to TRUE. 6334 6335Implemented support for Integer objects for the SizeOf operator. Either 4 6336or 8 is returned, depending on the current integer size (32-bit or 64-bit, 6337depending on the parent table revision). 6338 6339Fixed a problem in the implementation of the SizeOf and ObjectType operators 6340where the operand was resolved to a value too early, causing incorrect 6341return values for some objects. 6342 6343Fixed some possible memory leaks during exceptional conditions. 6344 6345Code and Data Size: Current and previous core subsystem library sizes are 6346shown below. These are the code and data sizes for the acpica.lib produced 6347by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6348any ACPI driver or OSPM code. The debug version of the code includes the 6349debug output trace mechanism and has a much larger code and data size. Note 6350that these values will vary depending on the efficiency of the compiler and 6351the compiler options used during generation. 6352 6353 Previous Release: 6354 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6355 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 6356 Current Release: 6357 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6358 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6359 6360 63612) iASL Compiler/Disassembler: 6362 6363Implemented support for all ACPI 3.0 reserved names and methods. 6364 6365Implemented all ACPI 3.0 grammar elements in the front-end, including 6366support for semicolons. 6367 6368Implemented the ACPI 3.0 Function() and ToUUID() macros 6369 6370Fixed a problem in the disassembler where a Scope() operator would not be 6371emitted properly if the target of the scope was in another table. 6372 6373---------------------------------------- 637415 October 2004. Summary of changes for version 20041015: 6375 6376Note: ACPI CA is currently undergoing an in-depth and complete formal 6377evaluation to test/verify the following areas. Other suggestions are 6378welcome. This will result in an increase in the frequency of releases and 6379the number of bug fixes in the next few months. 6380 - Functional tests for all ASL/AML operators 6381 - All implicit/explicit type conversions 6382 - Bit fields and operation regions 6383 - 64-bit math support and 32-bit-only "truncated" math support 6384 - Exceptional conditions, both compiler and interpreter 6385 - Dynamic object deletion and memory leaks 6386 - ACPI 3.0 support when implemented 6387 - External interfaces to the ACPI subsystem 6388 6389 63901) ACPI CA Core Subsystem: 6391 6392Fixed two alignment issues on 64-bit platforms - within debug statements in 6393AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address 6394field within the non-aligned ACPI generic address structure. 6395 6396Fixed a problem in the Increment and Decrement operators where incorrect 6397operand resolution could result in the inadvertent modification of the 6398original integer when the integer is passed into another method as an 6399argument and the arg is then incremented/decremented. 6400 6401Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-bit 6402BCD number were truncated during conversion. 6403 6404Fixed a problem in the ToDecimal operator where the length of the resulting 6405string could be set incorrectly too long if the input operand was a Buffer 6406object. 6407 6408Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0) 6409within a buffer would prematurely terminate a compare between buffer 6410objects. 6411 6412Added a check for string overflow (>200 characters as per the ACPI 6413specification) during the Concatenate operator with two string operands. 6414 6415Code and Data Size: Current and previous core subsystem library sizes are 6416shown below. These are the code and data sizes for the acpica.lib produced 6417by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6418any ACPI driver or OSPM code. The debug version of the code includes the 6419debug output trace mechanism and has a much larger code and data size. Note 6420that these values will vary depending on the efficiency of the compiler and 6421the compiler options used during generation. 6422 6423 Previous Release: 6424 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6425 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 6426 Current Release: 6427 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6428 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 6429 6430 6431 64322) iASL Compiler/Disassembler: 6433 6434Allow the use of the ObjectType operator on uninitialized Locals and Args 6435(returns 0 as per the ACPI specification). 6436 6437Fixed a problem where the compiler would fault if there was a syntax error 6438in the FieldName of all of the various CreateXXXField operators. 6439 6440Disallow the use of lower case letters within the EISAID macro, as per the 6441ACPI specification. All EISAID strings must be of the form "UUUNNNN" Where 6442U is an uppercase letter and N is a hex digit. 6443 6444 6445---------------------------------------- 644606 October 2004. Summary of changes for version 20041006: 6447 64481) ACPI CA Core Subsystem: 6449 6450Implemented support for the ACPI 3.0 Timer operator. This ASL function 6451implements a 64-bit timer with 100 nanosecond granularity. 6452 6453Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 6454implement the ACPI 3.0 Timer operator. This allows the host OS to implement 6455the timer with the best clock available. Also, it keeps the core subsystem 6456out of the clock handling business, since the host OS (usually) performs 6457this function. 6458 6459Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 6460functions use a 64-bit address which is part of the packed ACPI Generic 6461Address Structure. Since the structure is non-aligned, the alignment macros 6462are now used to extract the address to a local variable before use. 6463 6464Fixed a problem where the ToInteger operator assumed all input strings were 6465hexadecimal. The operator now handles both decimal strings and hex strings 6466(prefixed with "0x"). 6467 6468Fixed a problem where the string length in the string object created as a 6469result of the internal ConvertToString procedure could be incorrect. This 6470potentially affected all implicit conversions and also the ToDecimalString 6471and ToHexString operators. 6472 6473Fixed two problems in the ToString operator. If the length parameter was 6474zero, an incorrect string object was created and the value of the input 6475length parameter was inadvertently changed from zero to Ones. 6476 6477Fixed a problem where the optional ResourceSource string in the ExtendedIRQ 6478resource macro was ignored. 6479 6480Simplified the interfaces to the internal division functions, reducing code 6481size and complexity. 6482 6483Code and Data Size: Current and previous core subsystem library sizes are 6484shown below. These are the code and data sizes for the acpica.lib produced 6485by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6486any ACPI driver or OSPM code. The debug version of the code includes the 6487debug output trace mechanism and has a much larger code and data size. Note 6488that these values will vary depending on the efficiency of the compiler and 6489the compiler options used during generation. 6490 6491 Previous Release: 6492 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 6493 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 6494 Current Release: 6495 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6496 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 6497 6498 64992) iASL Compiler/Disassembler: 6500 6501Implemented support for the ACPI 3.0 Timer operator. 6502 6503Fixed a problem where the Default() operator was inadvertently ignored in a 6504Switch/Case block. This was a problem in the translation of the Switch 6505statement to If...Else pairs. 6506 6507Added support to allow a standalone Return operator, with no parentheses (or 6508operands). 6509 6510Fixed a problem with code generation for the ElseIf operator where the 6511translated Else...If parse tree was improperly constructed leading to the 6512loss of some code. 6513 6514---------------------------------------- 651522 September 2004. Summary of changes for version 20040922: 6516 65171) ACPI CA Core Subsystem: 6518 6519Fixed a problem with the implementation of the LNot() operator where "Ones" 6520was not returned for the TRUE case. Changed the code to return Ones instead 6521of (!Arg) which was usually 1. This change affects iASL constant folding for 6522this operator also. 6523 6524Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 6525initialized properly -- Now zero the entire buffer in this case where the 6526buffer already exists. 6527 6528Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 6529Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 6530related code considerably. This will require changes/updates to all OS 6531interface layers (OSLs.) 6532 6533Implemented a new external interface, AcpiInstallExceptionHandler, to allow 6534a system exception handler to be installed. This handler is invoked upon any 6535run-time exception that occurs during control method execution. 6536 6537Added support for the DSDT in AcpiTbFindTable. This allows the 6538DataTableRegion() operator to access the local copy of the DSDT. 6539 6540Code and Data Size: Current and previous core subsystem library sizes are 6541shown below. These are the code and data sizes for the acpica.lib produced 6542by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6543any ACPI driver or OSPM code. The debug version of the code includes the 6544debug output trace mechanism and has a much larger code and data size. Note 6545that these values will vary depending on the efficiency of the compiler and 6546the compiler options used during generation. 6547 6548 Previous Release: 6549 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 6550 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 6551 Current Release: 6552 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 6553 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 6554 6555 65562) iASL Compiler/Disassembler: 6557 6558Fixed a problem with constant folding and the LNot operator. LNot was 6559returning 1 in the TRUE case, not Ones as per the ACPI specification. This 6560could result in the generation of an incorrect folded/reduced constant. 6561 6562End-Of-File is now allowed within a "//"-style comment. A parse error no 6563longer occurs if such a comment is at the very end of the input ASL source 6564file. 6565 6566Implemented the "-r" option to override the Revision in the table header. 6567The initial use of this option will be to simplify the evaluation of the AML 6568interpreter by allowing a single ASL source module to be compiled for either 656932-bit or 64-bit integers. 6570 6571 6572---------------------------------------- 657327 August 2004. Summary of changes for version 20040827: 6574 65751) ACPI CA Core Subsystem: 6576 6577- Implemented support for implicit object conversion in the non-numeric 6578logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 6579LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 6580the second operand is implicitly converted on the fly to match the type of 6581the first operand. For example: 6582 6583 LEqual (Source1, Source2) 6584 6585Source1 and Source2 must each evaluate to an integer, a string, or a buffer. 6586The data type of Source1 dictates the required type of Source2. Source2 is 6587implicitly converted if necessary to match the type of Source1. 6588 6589- Updated and corrected the behavior of the string conversion support. The 6590rules concerning conversion of buffers to strings (according to the ACPI 6591specification) are as follows: 6592 6593ToDecimalString - explicit byte-wise conversion of buffer to string of 6594decimal values (0-255) separated by commas. ToHexString - explicit byte-wise 6595conversion of buffer to string of hex values (0-FF) separated by commas. 6596ToString - explicit byte-wise conversion of buffer to string. Byte-by-byte 6597copy with no transform except NULL terminated. Any other implicit buffer-to- 6598string conversion - byte-wise conversion of buffer to string of hex values 6599(0-FF) separated by spaces. 6600 6601- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 6602 6603- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 6604one byte too short in the case of a node in the root scope. This could 6605cause a fault during debug output. 6606 6607- Code and Data Size: Current and previous core subsystem library sizes are 6608shown below. These are the code and data sizes for the acpica.lib produced 6609by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6610any ACPI driver or OSPM code. The debug version of the code includes the 6611debug output trace mechanism and has a much larger code and data size. Note 6612that these values will vary depending on the efficiency of the compiler and 6613the compiler options used during generation. 6614 6615 Previous Release: 6616 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 6617 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 6618 Current Release: 6619 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 6620 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 6621 6622 66232) iASL Compiler/Disassembler: 6624 6625- Fixed a Linux generation error. 6626 6627 6628---------------------------------------- 662916 August 2004. Summary of changes for version 20040816: 6630 66311) ACPI CA Core Subsystem: 6632 6633Designed and implemented support within the AML interpreter for the so- 6634called "implicit return". This support returns the result of the last ASL 6635operation within a control method, in the absence of an explicit Return() 6636operator. A few machines depend on this behavior, even though it is not 6637explicitly supported by the ASL language. It is optional support that can 6638be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 6639 6640Removed support for the PCI_Config address space from the internal low level 6641hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 6642support was not used internally, and would not work correctly anyway because 6643the PCI bus number and segment number were not supported. There are 6644separate interfaces for PCI configuration space access because of the unique 6645interface. 6646 6647Code and Data Size: Current and previous core subsystem library sizes are 6648shown below. These are the code and data sizes for the acpica.lib produced 6649by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6650any ACPI driver or OSPM code. The debug version of the code includes the 6651debug output trace mechanism and has a much larger code and data size. Note 6652that these values will vary depending on the efficiency of the compiler and 6653the compiler options used during generation. 6654 6655 Previous Release: 6656 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6657 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 6658 Current Release: 6659 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 6660 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 6661 6662 66632) iASL Compiler/Disassembler: 6664 6665Fixed a problem where constants in ASL expressions at the root level (not 6666within a control method) could be inadvertently truncated during code 6667generation. This problem was introduced in the 20040715 release. 6668 6669 6670---------------------------------------- 667115 July 2004. Summary of changes for version 20040715: 6672 66731) ACPI CA Core Subsystem: 6674 6675Restructured the internal HW GPE interfaces to pass/track the current state 6676of interrupts (enabled/disabled) in order to avoid possible deadlock and 6677increase flexibility of the interfaces. 6678 6679Implemented a "lexicographical compare" for String and Buffer objects within 6680the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 6681as per further clarification to the ACPI specification. Behavior is similar 6682to C library "strcmp". 6683 6684Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 6685external function. In the 32-bit non-debug case, the stack use has been 6686reduced from 168 bytes to 32 bytes. 6687 6688Deployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack, 6689whose purpose is to allow the AML interpreter to forgive certain bad AML 6690constructs. Default setting is FALSE. 6691 6692Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO 6693support code. If enabled, it allows field access to go beyond the end of a 6694region definition if the field is within the region length rounded up to the 6695next access width boundary (a common coding error.) 6696 6697Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 6698ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, these 6699symbols are lowercased by the latest version of the AcpiSrc tool. 6700 6701The prototypes for the PCI interfaces in acpiosxf.h have been updated to 6702rename "Register" to simply "Reg" to prevent certain compilers from 6703complaining. 6704 6705Code and Data Size: Current and previous core subsystem library sizes are 6706shown below. These are the code and data sizes for the acpica.lib produced 6707by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6708any ACPI driver or OSPM code. The debug version of the code includes the 6709debug output trace mechanism and has a much larger code and data size. Note 6710that these values will vary depending on the efficiency of the compiler and 6711the compiler options used during generation. 6712 6713 Previous Release: 6714 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6715 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 6716 Current Release: 6717 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6718 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 6719 6720 67212) iASL Compiler/Disassembler: 6722 6723Implemented full support for Package objects within the Case() operator. 6724Note: The Break() operator is currently not supported within Case blocks 6725(TermLists) as there is some question about backward compatibility with ACPI 67261.0 interpreters. 6727 6728 6729Fixed a problem where complex terms were not supported properly within the 6730Switch() operator. 6731 6732Eliminated extraneous warning for compiler-emitted reserved names of the 6733form "_T_x". (Used in Switch/Case operators.) 6734 6735Eliminated optimization messages for "_T_x" objects and small constants 6736within the DefinitionBlock operator. 6737 6738 6739---------------------------------------- 674015 June 2004. Summary of changes for version 20040615: 6741 67421) ACPI CA Core Subsystem: 6743 6744Implemented support for Buffer and String objects (as per ACPI 2.0) for the 6745following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 6746LLessEqual. 6747 6748All directory names in the entire source package are lower case, as they 6749were in earlier releases. 6750 6751Implemented "Disassemble" command in the AML debugger that will disassemble 6752a single control method. 6753 6754Code and Data Size: Current and previous core subsystem library sizes are 6755shown below. These are the code and data sizes for the acpica.lib produced 6756by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6757any ACPI driver or OSPM code. The debug version of the code includes the 6758debug output trace mechanism and has a much larger code and data size. Note 6759that these values will vary depending on the efficiency of the compiler and 6760the compiler options used during generation. 6761 6762 Previous Release: 6763 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 6764 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 6765 6766 Current Release: 6767 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6768 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 6769 6770 67712) iASL Compiler/Disassembler: 6772 6773Implemented support for Buffer and String objects (as per ACPI 2.0) for the 6774following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 6775LLessEqual. 6776 6777All directory names in the entire source package are lower case, as they 6778were in earlier releases. 6779 6780Fixed a fault when using the -g or -d<nofilename> options if the FADT was 6781not found. 6782 6783Fixed an issue with the Windows version of the compiler where later versions 6784of Windows place the FADT in the registry under the name "FADT" and not 6785"FACP" as earlier versions did. This applies when using the -g or - 6786d<nofilename> options. The compiler now looks for both strings as 6787necessary. 6788 6789Fixed a problem with compiler namepath optimization where a namepath within 6790the Scope() operator could not be optimized if the namepath was a subpath of 6791the current scope path. 6792 6793---------------------------------------- 679427 May 2004. Summary of changes for version 20040527: 6795 67961) ACPI CA Core Subsystem: 6797 6798Completed a new design and implementation for EBDA (Extended BIOS Data Area) 6799support in the RSDP scan code. The original code improperly scanned for the 6800EBDA by simply scanning from memory location 0 to 0x400. The correct method 6801is to first obtain the EBDA pointer from within the BIOS data area, then 6802scan 1K of memory starting at the EBDA pointer. There appear to be few if 6803any machines that place the RSDP in the EBDA, however. 6804 6805Integrated a fix for a possible fault during evaluation of BufferField 6806arguments. Obsolete code that was causing the problem was removed. 6807 6808Found and fixed a problem in the Field Support Code where data could be 6809corrupted on a bit field read that starts on an aligned boundary but does 6810not end on an aligned boundary. Merged the read/write "datum length" 6811calculation code into a common procedure. 6812 6813Rolled in a couple of changes to the FreeBSD-specific header. 6814 6815 6816Code and Data Size: Current and previous core subsystem library sizes are 6817shown below. These are the code and data sizes for the acpica.lib produced 6818by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6819any ACPI driver or OSPM code. The debug version of the code includes the 6820debug output trace mechanism and has a much larger code and data size. Note 6821that these values will vary depending on the efficiency of the compiler and 6822the compiler options used during generation. 6823 6824 Previous Release: 6825 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6826 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 6827 Current Release: 6828 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 6829 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 6830 6831 68322) iASL Compiler/Disassembler: 6833 6834Fixed a generation warning produced by some overly-verbose compilers for a 683564-bit constant. 6836 6837---------------------------------------- 683814 May 2004. Summary of changes for version 20040514: 6839 68401) ACPI CA Core Subsystem: 6841 6842Fixed a problem where hardware GPE enable bits sometimes not set properly 6843during and after GPE method execution. Result of 04/27 changes. 6844 6845Removed extra "clear all GPEs" when sleeping/waking. 6846 6847Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 6848AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to 6849the new AcpiEv* calls as appropriate. 6850 6851ACPI_OS_NAME was removed from the OS-specific headers. The default name is 6852now "Microsoft Windows NT" for maximum compatibility. However this can be 6853changed by modifying the acconfig.h file. 6854 6855Allow a single invocation of AcpiInstallNotifyHandler for a handler that 6856traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 6857 6858Run _INI methods on ThermalZone objects. This is against the ACPI 6859specification, but there is apparently ASL code in the field that has these 6860_INI methods, and apparently "other" AML interpreters execute them. 6861 6862Performed a full 16/32/64 bit lint that resulted in some small changes. 6863 6864Added a sleep simulation command to the AML debugger to test sleep code. 6865 6866Code and Data Size: Current and previous core subsystem library sizes are 6867shown below. These are the code and data sizes for the acpica.lib produced 6868by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6869any ACPI driver or OSPM code. The debug version of the code includes the 6870debug output trace mechanism and has a much larger code and data size. Note 6871that these values will vary depending on the efficiency of the compiler and 6872the compiler options used during generation. 6873 6874 Previous Release: 6875 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6876 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 6877 Current Release: 6878 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6879 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 6880 6881---------------------------------------- 688227 April 2004. Summary of changes for version 20040427: 6883 68841) ACPI CA Core Subsystem: 6885 6886Completed a major overhaul of the GPE handling within ACPI CA. There are 6887now three types of GPEs: wake-only, runtime-only, and combination wake/run. 6888The only GPEs allowed to be combination wake/run are for button-style 6889devices such as a control-method power button, control-method sleep button, 6890or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are not 6891referenced by any _PRW methods are marked for "runtime" and hardware 6892enabled. Any GPE that is referenced by a _PRW method is marked for "wake" 6893(and disabled at runtime). However, at sleep time, only those GPEs that 6894have been specifically enabled for wake via the AcpiEnableGpe interface will 6895actually be hardware enabled. 6896 6897A new external interface has been added, AcpiSetGpeType(), that is meant to 6898be used by device drivers to force a GPE to a particular type. It will be 6899especially useful for the drivers for the button devices mentioned above. 6900 6901Completed restructuring of the ACPI CA initialization sequence so that 6902default operation region handlers are installed before GPEs are initialized 6903and the _PRW methods are executed. This will prevent errors when the _PRW 6904methods attempt to access system memory or I/O space. 6905 6906GPE enable/disable no longer reads the GPE enable register. We now keep the 6907enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 6908thus no longer depend on the hardware to maintain these bits. 6909 6910Always clear the wake status and fixed/GPE status bits before sleep, even 6911for state S5. 6912 6913Improved the AML debugger output for displaying the GPE blocks and their 6914current status. 6915 6916Added new strings for the _OSI method, of the form "Windows 2001 SPx" where 6917x = 0,1,2,3,4. 6918 6919Fixed a problem where the physical address was incorrectly calculated when 6920the Load() operator was used to directly load from an Operation Region (vs. 6921loading from a Field object.) Also added check for minimum table length for 6922this case. 6923 6924Fix for multiple mutex acquisition. Restore original thread SyncLevel on 6925mutex release. 6926 6927Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 6928consistency with the other fields returned. 6929 6930Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 6931structure for each GPE in the system, so the size of this structure is 6932important. 6933 6934CPU stack requirement reduction: Cleaned up the method execution and object 6935evaluation paths so that now a parameter structure is passed, instead of 6936copying the various method parameters over and over again. 6937 6938In evregion.c: Correctly exit and reenter the interpreter region if and 6939only if dispatching an operation region request to a user-installed handler. 6940Do not exit/reenter when dispatching to a default handler (e.g., default 6941system memory or I/O handlers) 6942 6943 6944Notes for updating drivers for the new GPE support. The following changes 6945must be made to ACPI-related device drivers that are attached to one or more 6946GPEs: (This information will be added to the ACPI CA Programmer Reference.) 6947 69481) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 6949explicitly call AcpiEnableGpe. 69502) There is a new interface called AcpiSetGpeType. This should be called 6951before enabling the GPE. Also, this interface will automatically disable 6952the GPE if it is currently enabled. 69533) AcpiEnableGpe no longer supports a GPE type flag. 6954 6955Specific drivers that must be changed: 69561) EC driver: 6957 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 6958AeGpeHandler, NULL); 6959 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 6960 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 6961 69622) Button Drivers (Power, Lid, Sleep): 6963Run _PRW method under parent device 6964If _PRW exists: /* This is a control-method button */ 6965 Extract GPE number and possibly GpeDevice 6966 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 6967 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 6968 6969For all other devices that have _PRWs, we automatically set the GPE type to 6970ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This 6971must be done on a selective basis, usually requiring some kind of user app 6972to allow the user to pick the wake devices. 6973 6974 6975Code and Data Size: Current and previous core subsystem library sizes are 6976shown below. These are the code and data sizes for the acpica.lib produced 6977by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6978any ACPI driver or OSPM code. The debug version of the code includes the 6979debug output trace mechanism and has a much larger code and data size. Note 6980that these values will vary depending on the efficiency of the compiler and 6981the compiler options used during generation. 6982 6983 Previous Release: 6984 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 6985 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 6986 Current Release: 6987 6988 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6989 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 6990 6991 6992 6993---------------------------------------- 699402 April 2004. Summary of changes for version 20040402: 6995 69961) ACPI CA Core Subsystem: 6997 6998Fixed an interpreter problem where an indirect store through an ArgX 6999parameter was incorrectly applying the "implicit conversion rules" during 7000the store. From the ACPI specification: "If the target is a method local or 7001argument (LocalX or ArgX), no conversion is performed and the result is 7002stored directly to the target". The new behavior is to disable implicit 7003conversion during ALL stores to an ArgX. 7004 7005Changed the behavior of the _PRW method scan to ignore any and all errors 7006returned by a given _PRW. This prevents the scan from aborting from the 7007failure of any single _PRW. 7008 7009Moved the runtime configuration parameters from the global init procedure to 7010static variables in acglobal.h. This will allow the host to override the 7011default values easily. 7012 7013Code and Data Size: Current and previous core subsystem library sizes are 7014shown below. These are the code and data sizes for the acpica.lib produced 7015by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7016any ACPI driver or OSPM code. The debug version of the code includes the 7017debug output trace mechanism and has a much larger code and data size. Note 7018that these values will vary depending on the efficiency of the compiler and 7019the compiler options used during generation. 7020 7021 Previous Release: 7022 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 7023 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 7024 Current Release: 7025 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 7026 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 7027 7028 70292) iASL Compiler/Disassembler: 7030 7031iASL now fully disassembles SSDTs. However, External() statements are not 7032generated automatically for unresolved symbols at this time. This is a 7033planned feature for future implementation. 7034 7035Fixed a scoping problem in the disassembler that occurs when the type of the 7036target of a Scope() operator is overridden. This problem caused an 7037incorrectly nested internal namespace to be constructed. 7038 7039Any warnings or errors that are emitted during disassembly are now commented 7040out automatically so that the resulting file can be recompiled without any 7041hand editing. 7042 7043---------------------------------------- 704426 March 2004. Summary of changes for version 20040326: 7045 70461) ACPI CA Core Subsystem: 7047 7048Implemented support for "wake" GPEs via interaction between GPEs and the 7049_PRW methods. Every GPE that is pointed to by one or more _PRWs is 7050identified as a WAKE GPE and by default will no longer be enabled at 7051runtime. Previously, we were blindly enabling all GPEs with a corresponding 7052_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. We 7053believe this has been the cause of thousands of "spurious" GPEs on some 7054systems. 7055 7056This new GPE behavior is can be reverted to the original behavior (enable 7057ALL GPEs at runtime) via a runtime flag. 7058 7059Fixed a problem where aliased control methods could not access objects 7060properly. The proper scope within the namespace was not initialized 7061(transferred to the target of the aliased method) before executing the 7062target method. 7063 7064Fixed a potential race condition on internal object deletion on the return 7065object in AcpiEvaluateObject. 7066 7067Integrated a fix for resource descriptors where both _MEM and _MTP were 7068being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 7069wide, 0x0F instead of 0x03.) 7070 7071Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a 7072fault in some cases. 7073 7074Updated Notify() values for debug statements in evmisc.c 7075 7076Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 7077 7078Code and Data Size: Current and previous core subsystem library sizes are 7079shown below. These are the code and data sizes for the acpica.lib produced 7080by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7081any ACPI driver or OSPM code. The debug version of the code includes the 7082debug output trace mechanism and has a much larger code and data size. Note 7083that these values will vary depending on the efficiency of the compiler and 7084the compiler options used during generation. 7085 7086 Previous Release: 7087 7088 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 7089 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 7090 Current Release: 7091 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 7092 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 7093 7094---------------------------------------- 709511 March 2004. Summary of changes for version 20040311: 7096 70971) ACPI CA Core Subsystem: 7098 7099Fixed a problem where errors occurring during the parse phase of control 7100method execution did not abort cleanly. For example, objects created and 7101installed in the namespace were not deleted. This caused all subsequent 7102invocations of the method to return the AE_ALREADY_EXISTS exception. 7103 7104Implemented a mechanism to force a control method to "Serialized" execution 7105if the method attempts to create namespace objects. (The root of the 7106AE_ALREADY_EXISTS problem.) 7107 7108Implemented support for the predefined _OSI "internal" control method. 7109Initial supported strings are "Linux", "Windows 2000", "Windows 2001", and 7110"Windows 2001.1", and can be easily upgraded for new strings as necessary. 7111This feature will allow "other" operating systems to execute the fully 7112tested, "Windows" code path through the ASL code 7113 7114Global Lock Support: Now allows multiple acquires and releases with any 7115internal thread. Removed concept of "owning thread" for this special mutex. 7116 7117Fixed two functions that were inappropriately declaring large objects on the 7118CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage during 7119method execution considerably. 7120 7121Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 7122S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 7123 7124Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 7125defined on the machine. 7126 7127Implemented two runtime options: One to force all control method execution 7128to "Serialized" to mimic Windows behavior, another to disable _OSI support 7129if it causes problems on a given machine. 7130 7131Code and Data Size: Current and previous core subsystem library sizes are 7132shown below. These are the code and data sizes for the acpica.lib produced 7133by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7134any ACPI driver or OSPM code. The debug version of the code includes the 7135debug output trace mechanism and has a much larger code and data size. Note 7136that these values will vary depending on the efficiency of the compiler and 7137the compiler options used during generation. 7138 7139 Previous Release: 7140 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 7141 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 7142 Current Release: 7143 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 7144 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 7145 71462) iASL Compiler/Disassembler: 7147 7148Fixed an array size problem for FreeBSD that would cause the compiler to 7149fault. 7150 7151---------------------------------------- 715220 February 2004. Summary of changes for version 20040220: 7153 7154 71551) ACPI CA Core Subsystem: 7156 7157Implemented execution of _SxD methods for Device objects in the 7158GetObjectInfo interface. 7159 7160Fixed calls to _SST method to pass the correct arguments. 7161 7162Added a call to _SST on wake to restore to "working" state. 7163 7164Check for End-Of-Buffer failure case in the WalkResources interface. 7165 7166Integrated fix for 64-bit alignment issue in acglobal.h by moving two 7167structures to the beginning of the file. 7168 7169After wake, clear GPE status register(s) before enabling GPEs. 7170 7171After wake, clear/enable power button. (Perhaps we should clear/enable all 7172fixed events upon wake.) 7173 7174Fixed a couple of possible memory leaks in the Namespace manager. 7175 7176Integrated latest acnetbsd.h file. 7177 7178---------------------------------------- 717911 February 2004. Summary of changes for version 20040211: 7180 7181 71821) ACPI CA Core Subsystem: 7183 7184Completed investigation and implementation of the call-by-reference 7185mechanism for control method arguments. 7186 7187Fixed a problem where a store of an object into an indexed package could 7188fail if the store occurs within a different method than the method that 7189created the package. 7190 7191Fixed a problem where the ToDecimal operator could return incorrect results. 7192 7193Fixed a problem where the CopyObject operator could fail on some of the more 7194obscure objects (e.g., Reference objects.) 7195 7196Improved the output of the Debug object to display buffer, package, and 7197index objects. 7198 7199Fixed a problem where constructs of the form "RefOf (ArgX)" did not return 7200the expected result. 7201 7202Added permanent ACPI_REPORT_ERROR macros for all instances of the 7203ACPI_AML_INTERNAL exception. 7204 7205Integrated latest version of acfreebsd.h 7206 7207---------------------------------------- 720816 January 2004. Summary of changes for version 20040116: 7209 7210The purpose of this release is primarily to update the copyright years in 7211each module, thus causing a huge number of diffs. There are a few small 7212functional changes, however. 7213 72141) ACPI CA Core Subsystem: 7215 7216Improved error messages when there is a problem finding one or more of the 7217required base ACPI tables 7218 7219Reintroduced the definition of APIC_HEADER in actbl.h 7220 7221Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 7222 7223Removed extraneous reference to NewObj in dsmthdat.c 7224 72252) iASL compiler 7226 7227Fixed a problem introduced in December that disabled the correct disassembly 7228of Resource Templates 7229 7230 7231---------------------------------------- 723203 December 2003. Summary of changes for version 20031203: 7233 72341) ACPI CA Core Subsystem: 7235 7236Changed the initialization of Operation Regions during subsystem 7237init to perform two entire walks of the ACPI namespace; The first 7238to initialize the regions themselves, the second to execute the 7239_REG methods. This fixed some interdependencies across _REG 7240methods found on some machines. 7241 7242Fixed a problem where a Store(Local0, Local1) could simply update 7243the object reference count, and not create a new copy of the 7244object if the Local1 is uninitialized. 7245 7246Implemented support for the _SST reserved method during sleep 7247transitions. 7248 7249Implemented support to clear the SLP_TYP and SLP_EN bits when 7250waking up, this is apparently required by some machines. 7251 7252When sleeping, clear the wake status only if SleepState is not S5. 7253 7254Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 7255pointer arithmetic advanced a string pointer too far. 7256 7257Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 7258could be returned if the requested table has not been loaded. 7259 7260Within the support for IRQ resources, restructured the handling of 7261the active and edge/level bits. 7262 7263Fixed a few problems in AcpiPsxExecute() where memory could be 7264leaked under certain error conditions. 7265 7266Improved error messages for the cases where the ACPI mode could 7267not be entered. 7268 7269Code and Data Size: Current and previous core subsystem library 7270sizes are shown below. These are the code and data sizes for the 7271acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7272these values do not include any ACPI driver or OSPM code. The 7273debug version of the code includes the debug output trace 7274mechanism and has a much larger code and data size. Note that 7275these values will vary depending on the efficiency of the compiler 7276and the compiler options used during generation. 7277 7278 Previous Release (20031029): 7279 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 7280 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 7281 Current Release: 7282 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 7283 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 7284 72852) iASL Compiler/Disassembler: 7286 7287Implemented a fix for the iASL disassembler where a bad index was 7288generated. This was most noticeable on 64-bit platforms 7289 7290 7291---------------------------------------- 729229 October 2003. Summary of changes for version 20031029: 7293 72941) ACPI CA Core Subsystem: 7295 7296 7297Fixed a problem where a level-triggered GPE with an associated 7298_Lxx control method was incorrectly cleared twice. 7299 7300Fixed a problem with the Field support code where an access can 7301occur beyond the end-of-region if the field is non-aligned but 7302extends to the very end of the parent region (resulted in an 7303AE_AML_REGION_LIMIT exception.) 7304 7305Fixed a problem with ACPI Fixed Events where an RT Clock handler 7306would not get invoked on an RTC event. The RTC event bitmasks for 7307the PM1 registers were not being initialized properly. 7308 7309Implemented support for executing _STA and _INI methods for 7310Processor objects. Although this is currently not part of the 7311ACPI specification, there is existing ASL code that depends on the 7312init-time execution of these methods. 7313 7314Implemented and deployed a GetDescriptorName function to decode 7315the various types of internal descriptors. Guards against null 7316descriptors during debug output also. 7317 7318Implemented and deployed a GetNodeName function to extract the 4- 7319character namespace node name. This function simplifies the debug 7320and error output, as well as guarding against null pointers during 7321output. 7322 7323Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 7324simplify the debug and error output of 64-bit integers. This 7325macro replaces the HIDWORD and LODWORD macros for dumping these 7326integers. 7327 7328Updated the implementation of the Stall() operator to only call 7329AcpiOsStall(), and also return an error if the operand is larger 7330than 255. This preserves the required behavior of not 7331relinquishing the processor, as would happen if AcpiOsSleep() was 7332called for "long stalls". 7333 7334Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 7335initialized are now treated as NOOPs. 7336 7337Cleaned up a handful of warnings during 64-bit generation. 7338 7339Fixed a reported error where and incorrect GPE number was passed 7340to the GPE dispatch handler. This value is only used for error 7341output, however. Used this opportunity to clean up and streamline 7342the GPE dispatch code. 7343 7344Code and Data Size: Current and previous core subsystem library 7345sizes are shown below. These are the code and data sizes for the 7346acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7347these values do not include any ACPI driver or OSPM code. The 7348 7349debug version of the code includes the debug output trace 7350mechanism and has a much larger code and data size. Note that 7351these values will vary depending on the efficiency of the compiler 7352and the compiler options used during generation. 7353 7354 Previous Release (20031002): 7355 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 7356 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 7357 Current Release: 7358 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 7359 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 7360 7361 73622) iASL Compiler/Disassembler: 7363 7364Updated the iASL compiler to return an error if the operand to the 7365Stall() operator is larger than 255. 7366 7367 7368---------------------------------------- 736902 October 2003. Summary of changes for version 20031002: 7370 7371 73721) ACPI CA Core Subsystem: 7373 7374Fixed a problem with Index Fields where the index was not 7375incremented for fields that require multiple writes to the 7376index/data registers (Fields that are wider than the data 7377register.) 7378 7379Fixed a problem with all Field objects where a write could go 7380beyond the end-of-field if the field was larger than the access 7381granularity and therefore required multiple writes to complete the 7382request. An extra write beyond the end of the field could happen 7383inadvertently. 7384 7385Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 7386would incorrectly be returned if the width of the Data Register 7387was larger than the specified field access width. 7388 7389Completed fixes for LoadTable() and Unload() and verified their 7390operation. Implemented full support for the "DdbHandle" object 7391throughout the ACPI CA subsystem. 7392 7393Implemented full support for the MADT and ECDT tables in the ACPI 7394CA header files. Even though these tables are not directly 7395consumed by ACPI CA, the header definitions are useful for ACPI 7396device drivers. 7397 7398Integrated resource descriptor fixes posted to the Linux ACPI 7399list. This included checks for minimum descriptor length, and 7400support for trailing NULL strings within descriptors that have 7401optional string elements. 7402 7403Code and Data Size: Current and previous core subsystem library 7404sizes are shown below. These are the code and data sizes for the 7405acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7406these values do not include any ACPI driver or OSPM code. The 7407debug version of the code includes the debug output trace 7408mechanism and has a much larger code and data size. Note that 7409these values will vary depending on the efficiency of the compiler 7410and the compiler options used during generation. 7411 7412 Previous Release (20030918): 7413 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 7414 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 7415 Current Release: 7416 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 7417 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 7418 7419 74202) iASL Compiler: 7421 7422Implemented detection of non-ASCII characters within the input 7423source ASL file. This catches attempts to compile binary (AML) 7424files early in the compile, with an informative error message. 7425 7426Fixed a problem where the disassembler would fault if the output 7427filename could not be generated or if the output file could not be 7428opened. 7429 7430---------------------------------------- 743118 September 2003. Summary of changes for version 20030918: 7432 7433 74341) ACPI CA Core Subsystem: 7435 7436Found and fixed a longstanding problem with the late execution of 7437the various deferred AML opcodes (such as Operation Regions, 7438Buffer Fields, Buffers, and Packages). If the name string 7439specified for the name of the new object placed the object in a 7440scope other than the current scope, the initialization/execution 7441of the opcode failed. The solution to this problem was to 7442implement a mechanism where the late execution of such opcodes 7443does not attempt to lookup/create the name a second time in an 7444incorrect scope. This fixes the "region size computed 7445incorrectly" problem. 7446 7447Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 7448Global Lock AE_BAD_PARAMETER error. 7449 7450Fixed several 64-bit issues with prototypes, casting and data 7451types. 7452 7453Removed duplicate prototype from acdisasm.h 7454 7455Fixed an issue involving EC Operation Region Detach (Shaohua Li) 7456 7457Code and Data Size: Current and previous core subsystem library 7458sizes are shown below. These are the code and data sizes for the 7459acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7460these values do not include any ACPI driver or OSPM code. The 7461debug version of the code includes the debug output trace 7462mechanism and has a much larger code and data size. Note that 7463these values will vary depending on the efficiency of the compiler 7464and the compiler options used during generation. 7465 7466 Previous Release: 7467 7468 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 7469 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 7470 Current Release: 7471 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 7472 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 7473 7474 74752) Linux: 7476 7477Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 7478correct sleep time in seconds. 7479 7480---------------------------------------- 748114 July 2003. Summary of changes for version 20030619: 7482 74831) ACPI CA Core Subsystem: 7484 7485Parse SSDTs in order discovered, as opposed to reverse order 7486(Hrvoje Habjanic) 7487 7488Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 7489Klausner, 7490 Nate Lawson) 7491 7492 74932) Linux: 7494 7495Dynamically allocate SDT list (suggested by Andi Kleen) 7496 7497proc function return value cleanups (Andi Kleen) 7498 7499Correctly handle NMI watchdog during long stalls (Andrew Morton) 7500 7501Make it so acpismp=force works (reported by Andrew Morton) 7502 7503 7504---------------------------------------- 750519 June 2003. Summary of changes for version 20030619: 7506 75071) ACPI CA Core Subsystem: 7508 7509Fix To/FromBCD, eliminating the need for an arch-specific #define. 7510 7511Do not acquire a semaphore in the S5 shutdown path. 7512 7513Fix ex_digits_needed for 0. (Takayoshi Kochi) 7514 7515Fix sleep/stall code reversal. (Andi Kleen) 7516 7517Revert a change having to do with control method calling 7518semantics. 7519 75202) Linux: 7521 7522acpiphp update (Takayoshi Kochi) 7523 7524Export acpi_disabled for sonypi (Stelian Pop) 7525 7526Mention acpismp=force in config help 7527 7528Re-add acpitable.c and acpismp=force. This improves backwards 7529 7530compatibility and also cleans up the code to a significant degree. 7531 7532Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 7533 7534---------------------------------------- 753522 May 2003. Summary of changes for version 20030522: 7536 75371) ACPI CA Core Subsystem: 7538 7539Found and fixed a reported problem where an AE_NOT_FOUND error 7540occurred occasionally during _BST evaluation. This turned out to 7541be an Owner ID allocation issue where a called method did not get 7542a new ID assigned to it. Eventually, (after 64k calls), the Owner 7543ID UINT16 would wraparound so that the ID would be the same as the 7544caller's and the called method would delete the caller's 7545namespace. 7546 7547Implemented extended error reporting for control methods that are 7548aborted due to a run-time exception. Output includes the exact 7549AML instruction that caused the method abort, a dump of the method 7550locals and arguments at the time of the abort, and a trace of all 7551nested control method calls. 7552 7553Modified the interpreter to allow the creation of buffers of zero 7554length from the AML code. Implemented new code to ensure that no 7555attempt is made to actually allocate a memory buffer (of length 7556zero) - instead, a simple buffer object with a NULL buffer pointer 7557and length zero is created. A warning is no longer issued when 7558the AML attempts to create a zero-length buffer. 7559 7560Implemented a workaround for the "leading asterisk issue" in 7561_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 7562asterisk is automatically removed if present in any HID, UID, or 7563CID strings. The iASL compiler will still flag this asterisk as 7564an error, however. 7565 7566Implemented full support for _CID methods that return a package of 7567multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 7568now additionally returns a device _CID list if present. This 7569required a change to the external interface in order to pass an 7570ACPI_BUFFER object as a parameter since the _CID list is of 7571variable length. 7572 7573Fixed a problem with the new AE_SAME_HANDLER exception where 7574handler initialization code did not know about this exception. 7575 7576Code and Data Size: Current and previous core subsystem library 7577sizes are shown below. These are the code and data sizes for the 7578acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7579these values do not include any ACPI driver or OSPM code. The 7580debug version of the code includes the debug output trace 7581mechanism and has a much larger code and data size. Note that 7582these values will vary depending on the efficiency of the compiler 7583and the compiler options used during generation. 7584 7585 Previous Release (20030509): 7586 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 7587 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 7588 Current Release: 7589 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 7590 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 7591 7592 75932) Linux: 7594 7595Fixed a bug in which we would reinitialize the ACPI interrupt 7596after it was already working, thus disabling all ACPI and the IRQs 7597for any other device sharing the interrupt. (Thanks to Stian 7598Jordet) 7599 7600Toshiba driver update (John Belmonte) 7601 7602Return only 0 or 1 for our interrupt handler status (Andrew 7603Morton) 7604 7605 76063) iASL Compiler: 7607 7608Fixed a reported problem where multiple (nested) ElseIf() 7609statements were not handled correctly by the compiler, resulting 7610in incorrect warnings and incorrect AML code. This was a problem 7611in both the ASL parser and the code generator. 7612 7613 76144) Documentation: 7615 7616Added changes to existing interfaces, new exception codes, and new 7617text concerning reference count object management versus garbage 7618collection. 7619 7620---------------------------------------- 762109 May 2003. Summary of changes for version 20030509. 7622 7623 76241) ACPI CA Core Subsystem: 7625 7626Changed the subsystem initialization sequence to hold off 7627installation of address space handlers until the hardware has been 7628initialized and the system has entered ACPI mode. This is because 7629the installation of space handlers can cause _REG methods to be 7630run. Previously, the _REG methods could potentially be run before 7631ACPI mode was enabled. 7632 7633Fixed some memory leak issues related to address space handler and 7634notify handler installation. There were some problems with the 7635reference count mechanism caused by the fact that the handler 7636objects are shared across several namespace objects. 7637 7638Fixed a reported problem where reference counts within the 7639namespace were not properly updated when named objects created by 7640method execution were deleted. 7641 7642Fixed a reported problem where multiple SSDTs caused a deletion 7643issue during subsystem termination. Restructured the table data 7644structures to simplify the linked lists and the related code. 7645 7646Fixed a problem where the table ID associated with secondary 7647tables (SSDTs) was not being propagated into the namespace objects 7648created by those tables. This would only present a problem for 7649tables that are unloaded at run-time, however. 7650 7651Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 7652type as the length parameter (instead of UINT32). 7653 7654Solved a long-standing problem where an ALREADY_EXISTS error 7655appears on various systems. This problem could happen when there 7656are multiple PCI_Config operation regions under a single PCI root 7657bus. This doesn't happen very frequently, but there are some 7658systems that do this in the ASL. 7659 7660Fixed a reported problem where the internal DeleteNode function 7661was incorrectly handling the case where a namespace node was the 7662first in the parent's child list, and had additional peers (not 7663the only child, but first in the list of children.) 7664 7665Code and Data Size: Current core subsystem library sizes are shown 7666below. These are the code and data sizes for the acpica.lib 7667produced by the Microsoft Visual C++ 6.0 compiler, and these 7668values do not include any ACPI driver or OSPM code. The debug 7669version of the code includes the debug output trace mechanism and 7670has a much larger code and data size. Note that these values will 7671vary depending on the efficiency of the compiler and the compiler 7672options used during generation. 7673 7674 Previous Release 7675 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 7676 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 7677 Current Release: 7678 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 7679 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 7680 7681 76822) Linux: 7683 7684Allow ":" in OS override string (Ducrot Bruno) 7685 7686Kobject fix (Greg KH) 7687 7688 76893 iASL Compiler/Disassembler: 7690 7691Fixed a problem in the generation of the C source code files (AML 7692is emitted in C source statements for BIOS inclusion) where the 7693Ascii dump that appears within a C comment at the end of each line 7694could cause a compile time error if the AML sequence happens to 7695have an open comment or close comment sequence embedded. 7696 7697 7698---------------------------------------- 769924 April 2003. Summary of changes for version 20030424. 7700 7701 77021) ACPI CA Core Subsystem: 7703 7704Support for big-endian systems has been implemented. Most of the 7705support has been invisibly added behind big-endian versions of the 7706ACPI_MOVE_* macros. 7707 7708Fixed a problem in AcpiHwDisableGpeBlock() and 7709AcpiHwClearGpeBlock() where an incorrect offset was passed to the 7710low level hardware write routine. The offset parameter was 7711actually eliminated from the low level read/write routines because 7712they had become obsolete. 7713 7714Fixed a problem where a handler object was deleted twice during 7715the removal of a fixed event handler. 7716 7717 77182) Linux: 7719 7720A fix for SMP systems with link devices was contributed by 7721 7722Compaq's Dan Zink. 7723 7724(2.5) Return whether we handled the interrupt in our IRQ handler. 7725(Linux ISRs no longer return void, so we can propagate the handler 7726return value from the ACPI CA core back to the OS.) 7727 7728 7729 77303) Documentation: 7731 7732The ACPI CA Programmer Reference has been updated to reflect new 7733interfaces and changes to existing interfaces. 7734 7735---------------------------------------- 773628 March 2003. Summary of changes for version 20030328. 7737 77381) ACPI CA Core Subsystem: 7739 7740The GPE Block Device support has been completed. New interfaces 7741are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 7742interfaces (enable, disable, clear, getstatus) have been split 7743into separate interfaces for Fixed Events and General Purpose 7744Events (GPEs) in order to support GPE Block Devices properly. 7745 7746Fixed a problem where the error message "Failed to acquire 7747semaphore" would appear during operations on the embedded 7748controller (EC). 7749 7750Code and Data Size: Current core subsystem library sizes are shown 7751below. These are the code and data sizes for the acpica.lib 7752produced by the Microsoft Visual C++ 6.0 compiler, and these 7753values do not include any ACPI driver or OSPM code. The debug 7754version of the code includes the debug output trace mechanism and 7755has a much larger code and data size. Note that these values will 7756vary depending on the efficiency of the compiler and the compiler 7757options used during generation. 7758 7759 Previous Release 7760 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 7761 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 7762 Current Release: 7763 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 7764 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 7765 7766 7767---------------------------------------- 776828 February 2003. Summary of changes for version 20030228. 7769 7770 77711) ACPI CA Core Subsystem: 7772 7773The GPE handling and dispatch code has been completely overhauled 7774in preparation for support of GPE Block Devices (ID ACPI0006). 7775This affects internal data structures and code only; there should 7776be no differences visible externally. One new file has been 7777added, evgpeblk.c 7778 7779The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 7780fields that are used to determine the GPE block lengths. The 7781REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 7782structures are ignored. This is per the ACPI specification but it 7783isn't very clear. The full 256 Block 0/1 GPEs are now supported 7784(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 7785 7786In the SCI interrupt handler, removed the read of the PM1_CONTROL 7787register to look at the SCI_EN bit. On some machines, this read 7788causes an SMI event and greatly slows down SCI events. (This may 7789in fact be the cause of slow battery status response on some 7790systems.) 7791 7792Fixed a problem where a store of a NULL string to a package object 7793could cause the premature deletion of the object. This was seen 7794during execution of the battery _BIF method on some systems, 7795resulting in no battery data being returned. 7796 7797Added AcpiWalkResources interface to simplify parsing of resource 7798lists. 7799 7800Code and Data Size: Current core subsystem library sizes are shown 7801below. These are the code and data sizes for the acpica.lib 7802produced by the Microsoft Visual C++ 6.0 compiler, and these 7803values do not include any ACPI driver or OSPM code. The debug 7804version of the code includes the debug output trace mechanism and 7805has a much larger code and data size. Note that these values will 7806vary depending on the efficiency of the compiler and the compiler 7807options used during generation. 7808 7809 Previous Release 7810 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7811 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7812 Current Release: 7813 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 7814 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 7815 7816 78172) Linux 7818 7819S3 fixes (Ole Rohne) 7820 7821Update ACPI PHP driver with to use new acpi_walk_resource API 7822(Bjorn Helgaas) 7823 7824Add S4BIOS support (Pavel Machek) 7825 7826Map in entire table before performing checksum (John Stultz) 7827 7828Expand the mem= cmdline to allow the specification of reserved and 7829ACPI DATA blocks (Pavel Machek) 7830 7831Never use ACPI on VISWS 7832 7833Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 7834 7835Revert a change that allowed P_BLK lengths to be 4 or 5. This is 7836causing us to think that some systems support C2 when they really 7837don't. 7838 7839Do not count processor objects for non-present CPUs (Thanks to 7840Dominik Brodowski) 7841 7842 78433) iASL Compiler: 7844 7845Fixed a problem where ASL include files could not be found and 7846opened. 7847 7848Added support for the _PDC reserved name. 7849 7850 7851---------------------------------------- 785222 January 2003. Summary of changes for version 20030122. 7853 7854 78551) ACPI CA Core Subsystem: 7856 7857Added a check for constructs of the form: Store (Local0, Local0) 7858where Local0 is not initialized. Apparently, some BIOS 7859programmers believe that this is a NOOP. Since this store doesn't 7860do anything anyway, the new prototype behavior will ignore this 7861error. This is a case where we can relax the strict checking in 7862the interpreter in the name of compatibility. 7863 7864 78652) Linux 7866 7867The AcpiSrc Source Conversion Utility has been released with the 7868Linux package for the first time. This is the utility that is 7869used to convert the ACPI CA base source code to the Linux version. 7870 7871(Both) Handle P_BLK lengths shorter than 6 more gracefully 7872 7873(Both) Move more headers to include/acpi, and delete an unused 7874header. 7875 7876(Both) Move drivers/acpi/include directory to include/acpi 7877 7878(Both) Boot functions don't use cmdline, so don't pass it around 7879 7880(Both) Remove include of unused header (Adrian Bunk) 7881 7882(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 7883the 7884former now also includes the latter, acpiphp.h only needs the one, 7885now. 7886 7887(2.5) Make it possible to select method of bios restoring after S3 7888resume. [=> no more ugly ifdefs] (Pavel Machek) 7889 7890(2.5) Make proc write interfaces work (Pavel Machek) 7891 7892(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 7893 7894(2.5) Break out ACPI Perf code into its own module, under cpufreq 7895(Dominik Brodowski) 7896 7897(2.4) S4BIOS support (Ducrot Bruno) 7898 7899(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 7900Visinoni) 7901 7902 79033) iASL Compiler: 7904 7905Added support to disassemble SSDT and PSDTs. 7906 7907Implemented support to obtain SSDTs from the Windows registry if 7908available. 7909 7910 7911---------------------------------------- 791209 January 2003. Summary of changes for version 20030109. 7913 79141) ACPI CA Core Subsystem: 7915 7916Changed the behavior of the internal Buffer-to-String conversion 7917function. The current ACPI specification states that the contents 7918of the buffer are "converted to a string of two-character 7919hexadecimal numbers, each separated by a space". Unfortunately, 7920this definition is not backwards compatible with existing ACPI 1.0 7921implementations (although the behavior was not defined in the ACPI 79221.0 specification). The new behavior simply copies data from the 7923buffer to the string until a null character is found or the end of 7924the buffer is reached. The new String object is always null 7925terminated. This problem was seen during the generation of _BIF 7926battery data where incorrect strings were returned for battery 7927type, etc. This will also require an errata to the ACPI 7928specification. 7929 7930Renamed all instances of NATIVE_UINT and NATIVE_INT to 7931ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 7932 7933Copyright in all module headers (both Linux and non-Linux) has be 7934updated to 2003. 7935 7936Code and Data Size: Current core subsystem library sizes are shown 7937below. These are the code and data sizes for the acpica.lib 7938produced by the Microsoft Visual C++ 6.0 compiler, and these 7939values do not include any ACPI driver or OSPM code. The debug 7940version of the code includes the debug output trace mechanism and 7941has a much larger code and data size. Note that these values will 7942vary depending on the efficiency of the compiler and the compiler 7943options used during generation. 7944 7945 Previous Release 7946 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7947 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7948 Current Release: 7949 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7950 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7951 7952 79532) Linux 7954 7955Fixed an oops on module insertion/removal (Matthew Tippett) 7956 7957(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 7958 7959(2.5) Replace pr_debug (Randy Dunlap) 7960 7961(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 7962 7963(Both) Eliminate spawning of thread from timer callback, in favor 7964of schedule_work() 7965 7966(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 7967 7968(Both) Added define for Fixed Function HW region (Matthew Wilcox) 7969 7970(Both) Add missing statics to button.c (Pavel Machek) 7971 7972Several changes have been made to the source code translation 7973utility that generates the Linux Code in order to make the code 7974more "Linux-like": 7975 7976All typedefs on structs and unions have been removed in keeping 7977with the Linux coding style. 7978 7979Removed the non-Linux SourceSafe module revision number from each 7980module header. 7981 7982Completed major overhaul of symbols to be lowercased for linux. 7983Doubled the number of symbols that are lowercased. 7984 7985Fixed a problem where identifiers within procedure headers and 7986within quotes were not fully lower cased (they were left with a 7987starting capital.) 7988 7989Some C macros whose only purpose is to allow the generation of 16- 7990bit code are now completely removed in the Linux code, increasing 7991readability and maintainability. 7992 7993---------------------------------------- 7994 799512 December 2002. Summary of changes for version 20021212. 7996 7997 79981) ACPI CA Core Subsystem: 7999 8000Fixed a problem where the creation of a zero-length AML Buffer 8001would cause a fault. 8002 8003Fixed a problem where a Buffer object that pointed to a static AML 8004buffer (in an ACPI table) could inadvertently be deleted, causing 8005memory corruption. 8006 8007Fixed a problem where a user buffer (passed in to the external 8008ACPI CA interfaces) could be overwritten if the buffer was too 8009small to complete the operation, causing memory corruption. 8010 8011Fixed a problem in the Buffer-to-String conversion code where a 8012string of length one was always returned, regardless of the size 8013of the input Buffer object. 8014 8015Removed the NATIVE_CHAR data type across the entire source due to 8016lack of need and lack of consistent use. 8017 8018Code and Data Size: Current core subsystem library sizes are shown 8019below. These are the code and data sizes for the acpica.lib 8020produced by the Microsoft Visual C++ 6.0 compiler, and these 8021values do not include any ACPI driver or OSPM code. The debug 8022version of the code includes the debug output trace mechanism and 8023has a much larger code and data size. Note that these values will 8024vary depending on the efficiency of the compiler and the compiler 8025options used during generation. 8026 8027 Previous Release 8028 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 8029 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 8030 Current Release: 8031 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 8032 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 8033 8034 8035---------------------------------------- 803605 December 2002. Summary of changes for version 20021205. 8037 80381) ACPI CA Core Subsystem: 8039 8040Fixed a problem where a store to a String or Buffer object could 8041cause corruption of the DSDT if the object type being stored was 8042the same as the target object type and the length of the object 8043being stored was equal to or smaller than the original (existing) 8044target object. This was seen to cause corruption of battery _BIF 8045buffers if the _BIF method modified the buffer on the fly. 8046 8047Fixed a problem where an internal error was generated if a control 8048method invocation was used in an OperationRegion, Buffer, or 8049Package declaration. This was caused by the deferred parsing of 8050the control method and thus the deferred creation of the internal 8051method object. The solution to this problem was to create the 8052internal method object at the moment the method is encountered in 8053the first pass - so that subsequent references to the method will 8054able to obtain the required parameter count and thus properly 8055parse the method invocation. This problem presented itself as an 8056AE_AML_INTERNAL during the pass 1 parse phase during table load. 8057 8058Fixed a problem where the internal String object copy routine did 8059not always allocate sufficient memory for the target String object 8060and caused memory corruption. This problem was seen to cause 8061"Allocation already present in list!" errors as memory allocation 8062became corrupted. 8063 8064Implemented a new function for the evaluation of namespace objects 8065that allows the specification of the allowable return object 8066types. This simplifies a lot of code that checks for a return 8067object of one or more specific objects returned from the 8068evaluation (such as _STA, etc.) This may become and external 8069function if it would be useful to ACPI-related drivers. 8070 8071Completed another round of prefixing #defines with "ACPI_" for 8072clarity. 8073 8074Completed additional code restructuring to allow more modular 8075linking for iASL compiler and AcpiExec. Several files were split 8076creating new files. New files: nsparse.c dsinit.c evgpe.c 8077 8078Implemented an abort mechanism to terminate an executing control 8079method via the AML debugger. This feature is useful for debugging 8080control methods that depend (wait) for specific hardware 8081responses. 8082 8083Code and Data Size: Current core subsystem library sizes are shown 8084below. These are the code and data sizes for the acpica.lib 8085produced by the Microsoft Visual C++ 6.0 compiler, and these 8086values do not include any ACPI driver or OSPM code. The debug 8087version of the code includes the debug output trace mechanism and 8088has a much larger code and data size. Note that these values will 8089vary depending on the efficiency of the compiler and the compiler 8090options used during generation. 8091 8092 Previous Release 8093 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8094 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 8095 Current Release: 8096 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 8097 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 8098 8099 81002) iASL Compiler/Disassembler 8101 8102Fixed a compiler code generation problem for "Interrupt" Resource 8103Descriptors. If specified in the ASL, the optional "Resource 8104Source Index" and "Resource Source" fields were not inserted into 8105the correct location within the AML resource descriptor, creating 8106an invalid descriptor. 8107 8108Fixed a disassembler problem for "Interrupt" resource descriptors. 8109The optional "Resource Source Index" and "Resource Source" fields 8110were ignored. 8111 8112 8113---------------------------------------- 811422 November 2002. Summary of changes for version 20021122. 8115 8116 81171) ACPI CA Core Subsystem: 8118 8119Fixed a reported problem where an object stored to a Method Local 8120or Arg was not copied to a new object during the store - the 8121object pointer was simply copied to the Local/Arg. This caused 8122all subsequent operations on the Local/Arg to also affect the 8123original source of the store operation. 8124 8125Fixed a problem where a store operation to a Method Local or Arg 8126was not completed properly if the Local/Arg contained a reference 8127(from RefOf) to a named field. The general-purpose store-to- 8128namespace-node code is now used so that this case is handled 8129automatically. 8130 8131Fixed a problem where the internal object copy routine would cause 8132a protection fault if the object being copied was a Package and 8133contained either 1) a NULL package element or 2) a nested sub- 8134package. 8135 8136Fixed a problem with the GPE initialization that resulted from an 8137ambiguity in the ACPI specification. One section of the 8138specification states that both the address and length of the GPE 8139block must be zero if the block is not supported. Another section 8140implies that only the address need be zero if the block is not 8141supported. The code has been changed so that both the address and 8142the length must be non-zero to indicate a valid GPE block (i.e., 8143if either the address or the length is zero, the GPE block is 8144invalid.) 8145 8146Code and Data Size: Current core subsystem library sizes are shown 8147below. These are the code and data sizes for the acpica.lib 8148produced by the Microsoft Visual C++ 6.0 compiler, and these 8149values do not include any ACPI driver or OSPM code. The debug 8150version of the code includes the debug output trace mechanism and 8151has a much larger code and data size. Note that these values will 8152vary depending on the efficiency of the compiler and the compiler 8153options used during generation. 8154 8155 Previous Release 8156 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 8157 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 8158 Current Release: 8159 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8160 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 8161 8162 81632) Linux 8164 8165Cleaned up EC driver. Exported an external EC read/write 8166interface. By going through this, other drivers (most notably 8167sonypi) will be able to serialize access to the EC. 8168 8169 81703) iASL Compiler/Disassembler 8171 8172Implemented support to optionally generate include files for both 8173ASM and C (the -i switch). This simplifies BIOS development by 8174automatically creating include files that contain external 8175declarations for the symbols that are created within the 8176 8177(optionally generated) ASM and C AML source files. 8178 8179 8180---------------------------------------- 818115 November 2002. Summary of changes for version 20021115. 8182 81831) ACPI CA Core Subsystem: 8184 8185Fixed a memory leak problem where an error during resolution of 8186 8187method arguments during a method invocation from another method 8188failed to cleanup properly by deleting all successfully resolved 8189argument objects. 8190 8191Fixed a problem where the target of the Index() operator was not 8192correctly constructed if the source object was a package. This 8193problem has not been detected because the use of a target operand 8194with Index() is very rare. 8195 8196Fixed a problem with the Index() operator where an attempt was 8197made to delete the operand objects twice. 8198 8199Fixed a problem where an attempt was made to delete an operand 8200twice during execution of the CondRefOf() operator if the target 8201did not exist. 8202 8203Implemented the first of perhaps several internal create object 8204functions that create and initialize a specific object type. This 8205consolidates duplicated code wherever the object is created, thus 8206shrinking the size of the subsystem. 8207 8208Implemented improved debug/error messages for errors that occur 8209during nested method invocations. All executing method pathnames 8210are displayed (with the error) as the call stack is unwound - thus 8211simplifying debug. 8212 8213Fixed a problem introduced in the 10/02 release that caused 8214premature deletion of a buffer object if a buffer was used as an 8215ASL operand where an integer operand is required (Thus causing an 8216implicit object conversion from Buffer to Integer.) The change in 8217the 10/02 release was attempting to fix a memory leak (albeit 8218incorrectly.) 8219 8220Code and Data Size: Current core subsystem library sizes are shown 8221below. These are the code and data sizes for the acpica.lib 8222produced by the Microsoft Visual C++ 6.0 compiler, and these 8223values do not include any ACPI driver or OSPM code. The debug 8224version of the code includes the debug output trace mechanism and 8225has a much larger code and data size. Note that these values will 8226vary depending on the efficiency of the compiler and the compiler 8227options used during generation. 8228 8229 Previous Release 8230 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 8231 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 8232 Current Release: 8233 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 8234 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 8235 8236 82372) Linux 8238 8239Changed the implementation of the ACPI semaphores to use down() 8240instead of down_interruptable(). It is important that the 8241execution of ACPI control methods not be interrupted by signals. 8242Methods must run to completion, or the system may be left in an 8243unknown/unstable state. 8244 8245Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 8246(Shawn Starr) 8247 8248 82493) iASL Compiler/Disassembler 8250 8251 8252Changed the default location of output files. All output files 8253are now placed in the current directory by default instead of in 8254the directory of the source file. This change may affect some 8255existing makefiles, but it brings the behavior of the compiler in 8256line with other similar tools. The location of the output files 8257can be overridden with the -p command line switch. 8258 8259 8260---------------------------------------- 826111 November 2002. Summary of changes for version 20021111. 8262 8263 82640) ACPI Specification 2.0B is released and is now available at: 8265http://www.acpi.info/index.html 8266 8267 82681) ACPI CA Core Subsystem: 8269 8270Implemented support for the ACPI 2.0 SMBus Operation Regions. 8271This includes the early detection and handoff of the request to 8272the SMBus region handler (avoiding all of the complex field 8273support code), and support for the bidirectional return packet 8274from an SMBus write operation. This paves the way for the 8275development of SMBus drivers in each host operating system. 8276 8277Fixed a problem where the semaphore WAIT_FOREVER constant was 8278defined as 32 bits, but must be 16 bits according to the ACPI 8279specification. This had the side effect of causing ASL 8280Mutex/Event timeouts even though the ASL code requested a wait 8281forever. Changed all internal references to the ACPI timeout 8282parameter to 16 bits to prevent future problems. Changed the name 8283of WAIT_FOREVER to ACPI_WAIT_FOREVER. 8284 8285Code and Data Size: Current core subsystem library sizes are shown 8286below. These are the code and data sizes for the acpica.lib 8287produced by the Microsoft Visual C++ 6.0 compiler, and these 8288values do not include any ACPI driver or OSPM code. The debug 8289version of the code includes the debug output trace mechanism and 8290has a much larger code and data size. Note that these values will 8291vary depending on the efficiency of the compiler and the compiler 8292options used during generation. 8293 8294 Previous Release 8295 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8296 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 8297 Current Release: 8298 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 8299 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 8300 8301 83022) Linux 8303 8304Module loading/unloading fixes (John Cagle) 8305 8306 83073) iASL Compiler/Disassembler 8308 8309Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 8310 8311Implemented support for the disassembly of all SMBus protocol 8312keywords (SMBQuick, SMBWord, etc.) 8313 8314---------------------------------------- 831501 November 2002. Summary of changes for version 20021101. 8316 8317 83181) ACPI CA Core Subsystem: 8319 8320Fixed a problem where platforms that have a GPE1 block but no GPE0 8321block were not handled correctly. This resulted in a "GPE 8322overlap" error message. GPE0 is no longer required. 8323 8324Removed code added in the previous release that inserted nodes 8325into the namespace in alphabetical order. This caused some side- 8326effects on various machines. The root cause of the problem is 8327still under investigation since in theory, the internal ordering 8328of the namespace nodes should not matter. 8329 8330 8331Enhanced error reporting for the case where a named object is not 8332found during control method execution. The full ACPI namepath 8333(name reference) of the object that was not found is displayed in 8334this case. 8335 8336Note: as a result of the overhaul of the namespace object types in 8337the previous release, the namespace nodes for the predefined 8338scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 8339instead of ACPI_TYPE_ANY. This simplifies the namespace 8340management code but may affect code that walks the namespace tree 8341looking for specific object types. 8342 8343Code and Data Size: Current core subsystem library sizes are shown 8344below. These are the code and data sizes for the acpica.lib 8345produced by the Microsoft Visual C++ 6.0 compiler, and these 8346values do not include any ACPI driver or OSPM code. The debug 8347version of the code includes the debug output trace mechanism and 8348has a much larger code and data size. Note that these values will 8349vary depending on the efficiency of the compiler and the compiler 8350options used during generation. 8351 8352 Previous Release 8353 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 8354 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 8355 Current Release: 8356 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8357 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 8358 8359 83602) Linux 8361 8362Fixed a problem introduced in the previous release where the 8363Processor and Thermal objects were not recognized and installed in 8364/proc. This was related to the scope type change described above. 8365 8366 83673) iASL Compiler/Disassembler 8368 8369Implemented the -g option to get all of the required ACPI tables 8370from the registry and save them to files (Windows version of the 8371compiler only.) The required tables are the FADT, FACS, and DSDT. 8372 8373Added ACPI table checksum validation during table disassembly in 8374order to catch corrupted tables. 8375 8376 8377---------------------------------------- 837822 October 2002. Summary of changes for version 20021022. 8379 83801) ACPI CA Core Subsystem: 8381 8382Implemented a restriction on the Scope operator that the target 8383must already exist in the namespace at the time the operator is 8384encountered (during table load or method execution). In other 8385words, forward references are not allowed and Scope() cannot 8386create a new object. This changes the previous behavior where the 8387interpreter would create the name if not found. This new behavior 8388correctly enables the search-to-root algorithm during namespace 8389lookup of the target name. Because of this upsearch, this fixes 8390the known Compaq _SB_.OKEC problem and makes both the AML 8391interpreter and iASL compiler compatible with other ACPI 8392implementations. 8393 8394Completed a major overhaul of the internal ACPI object types for 8395the ACPI Namespace and the associated operand objects. Many of 8396these types had become obsolete with the introduction of the two- 8397pass namespace load. This cleanup simplifies the code and makes 8398the entire namespace load mechanism much clearer and easier to 8399understand. 8400 8401Improved debug output for tracking scope opening/closing to help 8402diagnose scoping issues. The old scope name as well as the new 8403scope name are displayed. Also improved error messages for 8404problems with ASL Mutex objects and error messages for GPE 8405problems. 8406 8407Cleaned up the namespace dump code, removed obsolete code. 8408 8409All string output (for all namespace/object dumps) now uses the 8410common ACPI string output procedure which handles escapes properly 8411and does not emit non-printable characters. 8412 8413Fixed some issues with constants in the 64-bit version of the 8414local C library (utclib.c) 8415 8416 84172) Linux 8418 8419EC Driver: No longer attempts to acquire the Global Lock at 8420interrupt level. 8421 8422 84233) iASL Compiler/Disassembler 8424 8425Implemented ACPI 2.0B grammar change that disallows all Type 1 and 84262 opcodes outside of a control method. This means that the 8427"executable" operators (versus the "namespace" operators) cannot 8428be used at the table level; they can only be used within a control 8429method. 8430 8431Implemented the restriction on the Scope() operator where the 8432target must already exist in the namespace at the time the 8433operator is encountered (during ASL compilation). In other words, 8434forward references are not allowed and Scope() cannot create a new 8435object. This makes the iASL compiler compatible with other ACPI 8436implementations and makes the Scope() implementation adhere to the 8437ACPI specification. 8438 8439Fixed a problem where namepath optimization for the Alias operator 8440was optimizing the wrong path (of the two namepaths.) This caused 8441a "Missing alias link" error message. 8442 8443Fixed a problem where an "unknown reserved name" warning could be 8444incorrectly generated for names like "_SB" when the trailing 8445underscore is not used in the original ASL. 8446 8447Fixed a problem where the reserved name check did not handle 8448NamePaths with multiple NameSegs correctly. The first nameseg of 8449the NamePath was examined instead of the last NameSeg. 8450 8451 8452---------------------------------------- 8453 845402 October 2002. Summary of changes for this release. 8455 8456 84571) ACPI CA Core Subsystem version 20021002: 8458 8459Fixed a problem where a store/copy of a string to an existing 8460string did not always set the string length properly in the String 8461object. 8462 8463Fixed a reported problem with the ToString operator where the 8464behavior was identical to the ToHexString operator instead of just 8465simply converting a raw buffer to a string data type. 8466 8467Fixed a problem where CopyObject and the other "explicit" 8468conversion operators were not updating the internal namespace node 8469type as part of the store operation. 8470 8471Fixed a memory leak during implicit source operand conversion 8472where the original object was not deleted if it was converted to a 8473new object of a different type. 8474 8475Enhanced error messages for all problems associated with namespace 8476lookups. Common procedure generates and prints the lookup name as 8477well as the formatted status. 8478 8479Completed implementation of a new design for the Alias support 8480within the namespace. The existing design did not handle the case 8481where a new object was assigned to one of the two names due to the 8482use of an explicit conversion operator, resulting in the two names 8483pointing to two different objects. The new design simply points 8484the Alias name to the original name node - not to the object. 8485This results in a level of indirection that must be handled in the 8486name resolution mechanism. 8487 8488Code and Data Size: Current core subsystem library sizes are shown 8489below. These are the code and data sizes for the acpica.lib 8490produced by the Microsoft Visual C++ 6.0 compiler, and these 8491values do not include any ACPI driver or OSPM code. The debug 8492version of the code includes the debug output trace mechanism and 8493has a larger code and data size. Note that these values will vary 8494depending on the efficiency of the compiler and the compiler 8495options used during generation. 8496 8497 Previous Release 8498 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 8499 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 8500 Current Release: 8501 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 8502 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 8503 8504 85052) Linux 8506 8507Initialize thermal driver's timer before it is used. (Knut 8508Neumann) 8509 8510Allow handling negative celsius values. (Kochi Takayoshi) 8511 8512Fix thermal management and make trip points. R/W (Pavel Machek) 8513 8514Fix /proc/acpi/sleep. (P. Christeas) 8515 8516IA64 fixes. (David Mosberger) 8517 8518Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 8519 8520Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 8521Brodowski) 8522 8523 85243) iASL Compiler/Disassembler 8525 8526Clarified some warning/error messages. 8527 8528 8529---------------------------------------- 853018 September 2002. Summary of changes for this release. 8531 8532 85331) ACPI CA Core Subsystem version 20020918: 8534 8535Fixed a reported problem with reference chaining (via the Index() 8536and RefOf() operators) in the ObjectType() and SizeOf() operators. 8537The definition of these operators includes the dereferencing of 8538all chained references to return information on the base object. 8539 8540Fixed a problem with stores to indexed package elements - the 8541existing code would not complete the store if an "implicit 8542conversion" was not performed. In other words, if the existing 8543object (package element) was to be replaced completely, the code 8544didn't handle this case. 8545 8546Relaxed typechecking on the ASL "Scope" operator to allow the 8547target name to refer to an object of type Integer, String, or 8548Buffer, in addition to the scoping object types (Device, 8549predefined Scopes, Processor, PowerResource, and ThermalZone.) 8550This allows existing AML code that has workarounds for a bug in 8551Windows to function properly. A warning is issued, however. This 8552affects both the AML interpreter and the iASL compiler. Below is 8553an example of this type of ASL code: 8554 8555 Name(DEB,0x00) 8556 Scope(DEB) 8557 { 8558 8559Fixed some reported problems with 64-bit integer support in the 8560local implementation of C library functions (clib.c) 8561 8562 85632) Linux 8564 8565Use ACPI fix map region instead of IOAPIC region, since it is 8566undefined in non-SMP. 8567 8568Ensure that the SCI has the proper polarity and trigger, even on 8569systems that do not have an interrupt override entry in the MADT. 8570 85712.5 big driver reorganization (Pat Mochel) 8572 8573Use early table mapping code from acpitable.c (Andi Kleen) 8574 8575New blacklist entries (Andi Kleen) 8576 8577Blacklist improvements. Split blacklist code out into a separate 8578file. Move checking the blacklist to very early. Previously, we 8579would use ACPI tables, and then halfway through init, check the 8580blacklist -- too late. Now, it's early enough to completely fall- 8581back to non-ACPI. 8582 8583 85843) iASL Compiler/Disassembler version 20020918: 8585 8586Fixed a problem where the typechecking code didn't know that an 8587alias could point to a method. In other words, aliases were not 8588being dereferenced during typechecking. 8589 8590 8591---------------------------------------- 859229 August 2002. Summary of changes for this release. 8593 85941) ACPI CA Core Subsystem Version 20020829: 8595 8596If the target of a Scope() operator already exists, it must be an 8597object type that actually opens a scope -- such as a Device, 8598Method, Scope, etc. This is a fatal runtime error. Similar error 8599check has been added to the iASL compiler also. 8600 8601Tightened up the namespace load to disallow multiple names in the 8602same scope. This previously was allowed if both objects were of 8603the same type. (i.e., a lookup was the same as entering a new 8604name). 8605 8606 86072) Linux 8608 8609Ensure that the ACPI interrupt has the proper trigger and 8610polarity. 8611 8612local_irq_disable is extraneous. (Matthew Wilcox) 8613 8614Make "acpi=off" actually do what it says, and not use the ACPI 8615interpreter *or* the tables. 8616 8617Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 8618Takayoshi) 8619 8620 86213) iASL Compiler/Disassembler Version 20020829: 8622 8623Implemented namepath optimization for name declarations. For 8624example, a declaration like "Method (\_SB_.ABCD)" would get 8625optimized to "Method (ABCD)" if the declaration is within the 8626\_SB_ scope. This optimization is in addition to the named 8627reference path optimization first released in the previous 8628version. This would seem to complete all possible optimizations 8629for namepaths within the ASL/AML. 8630 8631If the target of a Scope() operator already exists, it must be an 8632object type that actually opens a scope -- such as a Device, 8633Method, Scope, etc. 8634 8635Implemented a check and warning for unreachable code in the same 8636block below a Return() statement. 8637 8638Fixed a problem where the listing file was not generated if the 8639compiler aborted if the maximum error count was exceeded (200). 8640 8641Fixed a problem where the typechecking of method return values was 8642broken. This includes the check for a return value when the 8643method is invoked as a TermArg (a return value is expected.) 8644 8645Fixed a reported problem where EOF conditions during a quoted 8646string or comment caused a fault. 8647 8648 8649---------------------------------------- 865015 August 2002. Summary of changes for this release. 8651 86521) ACPI CA Core Subsystem Version 20020815: 8653 8654Fixed a reported problem where a Store to a method argument that 8655contains a reference did not perform the indirect store correctly. 8656This problem was created during the conversion to the new 8657reference object model - the indirect store to a method argument 8658code was not updated to reflect the new model. 8659 8660Reworked the ACPI mode change code to better conform to ACPI 2.0, 8661handle corner cases, and improve code legibility (Kochi Takayoshi) 8662 8663Fixed a problem with the pathname parsing for the carat (^) 8664prefix. The heavy use of the carat operator by the new namepath 8665optimization in the iASL compiler uncovered a problem with the AML 8666interpreter handling of this prefix. In the case where one or 8667more carats precede a single nameseg, the nameseg was treated as 8668standalone and the search rule (to root) was inadvertently 8669applied. This could cause both the iASL compiler and the 8670interpreter to find the wrong object or to miss the error that 8671should occur if the object does not exist at that exact pathname. 8672 8673Found and fixed the problem where the HP Pavilion DSDT would not 8674load. This was a relatively minor tweak to the table loading code 8675(a problem caused by the unexpected encounter with a method 8676invocation not within a control method), but it does not solve the 8677overall issue of the execution of AML code at the table level. 8678This investigation is still ongoing. 8679 8680Code and Data Size: Current core subsystem library sizes are shown 8681below. These are the code and data sizes for the acpica.lib 8682produced by the Microsoft Visual C++ 6.0 compiler, and these 8683values do not include any ACPI driver or OSPM code. The debug 8684version of the code includes the debug output trace mechanism and 8685has a larger code and data size. Note that these values will vary 8686depending on the efficiency of the compiler and the compiler 8687options used during generation. 8688 8689 Previous Release 8690 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 8691 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 8692 Current Release: 8693 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 8694 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 8695 8696 86972) Linux 8698 8699Remove redundant slab.h include (Brad Hards) 8700 8701Fix several bugs in thermal.c (Herbert Nachtnebel) 8702 8703Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 8704 8705Change acpi_system_suspend to use updated irq functions (Pavel 8706Machek) 8707 8708Export acpi_get_firmware_table (Matthew Wilcox) 8709 8710Use proper root proc entry for ACPI (Kochi Takayoshi) 8711 8712Fix early-boot table parsing (Bjorn Helgaas) 8713 8714 87153) iASL Compiler/Disassembler 8716 8717Reworked the compiler options to make them more consistent and to 8718use two-letter options where appropriate. We were running out of 8719sensible letters. This may break some makefiles, so check the 8720current options list by invoking the compiler with no parameters. 8721 8722Completed the design and implementation of the ASL namepath 8723optimization option for the compiler. This option optimizes all 8724references to named objects to the shortest possible path. The 8725first attempt tries to utilize a single nameseg (4 characters) and 8726the "search-to-root" algorithm used by the interpreter. If that 8727cannot be used (because either the name is not in the search path 8728or there is a conflict with another object with the same name), 8729the pathname is optimized using the carat prefix (usually a 8730shorter string than specifying the entire path from the root.) 8731 8732Implemented support to obtain the DSDT from the Windows registry 8733(when the disassembly option is specified with no input file). 8734Added this code as the implementation for AcpiOsTableOverride in 8735the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 8736utility) to scan memory for the DSDT to the AcpiOsTableOverride 8737function in the DOS OSL to make the disassembler truly OS 8738independent. 8739 8740Implemented a new option to disassemble and compile in one step. 8741When used without an input filename, this option will grab the 8742DSDT from the local machine, disassemble it, and compile it in one 8743step. 8744 8745Added a warning message for invalid escapes (a backslash followed 8746by any character other than the allowable escapes). This catches 8747the quoted string error "\_SB_" (which should be "\\_SB_" ). 8748 8749Also, there are numerous instances in the ACPI specification where 8750this error occurs. 8751 8752Added a compiler option to disable all optimizations. This is 8753basically the "compatibility mode" because by using this option, 8754the AML code will come out exactly the same as other ASL 8755compilers. 8756 8757Added error messages for incorrectly ordered dependent resource 8758functions. This includes: missing EndDependentFn macro at end of 8759dependent resource list, nested dependent function macros (both 8760start and end), and missing StartDependentFn macro. These are 8761common errors that should be caught at compile time. 8762 8763Implemented _OSI support for the disassembler and compiler. _OSI 8764must be included in the namespace for proper disassembly (because 8765the disassembler must know the number of arguments.) 8766 8767Added an "optimization" message type that is optional (off by 8768default). This message is used for all optimizations - including 8769constant folding, integer optimization, and namepath optimization. 8770 8771---------------------------------------- 877225 July 2002. Summary of changes for this release. 8773 8774 87751) ACPI CA Core Subsystem Version 20020725: 8776 8777The AML Disassembler has been enhanced to produce compilable ASL 8778code and has been integrated into the iASL compiler (see below) as 8779well as the single-step disassembly for the AML debugger and the 8780disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 8781resource templates and macros are fully supported. The 8782disassembler has been tested on over 30 different AML files, 8783producing identical AML when the resulting disassembled ASL file 8784is recompiled with the same ASL compiler. 8785 8786Modified the Resource Manager to allow zero interrupts and zero 8787dma channels during the GetCurrentResources call. This was 8788causing problems on some platforms. 8789 8790Added the AcpiOsRedirectOutput interface to the OSL to simplify 8791output redirection for the AcpiOsPrintf and AcpiOsVprintf 8792interfaces. 8793 8794Code and Data Size: Current core subsystem library sizes are shown 8795below. These are the code and data sizes for the acpica.lib 8796produced by the Microsoft Visual C++ 6.0 compiler, and these 8797values do not include any ACPI driver or OSPM code. The debug 8798version of the code includes the debug output trace mechanism and 8799has a larger code and data size. Note that these values will vary 8800depending on the efficiency of the compiler and the compiler 8801options used during generation. 8802 8803 Previous Release 8804 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 8805 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 8806 Current Release: 8807 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 8808 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 8809 8810 88112) Linux 8812 8813Fixed a panic in the EC driver (Dominik Brodowski) 8814 8815Implemented checksum of the R/XSDT itself during Linux table scan 8816(Richard Schaal) 8817 8818 88193) iASL compiler 8820 8821The AML disassembler is integrated into the compiler. The "-d" 8822option invokes the disassembler to completely disassemble an 8823input AML file, producing as output a text ASL file with the 8824extension ".dsl" (to avoid name collisions with existing .asl 8825source files.) A future enhancement will allow the disassembler 8826to obtain the BIOS DSDT from the registry under Windows. 8827 8828Fixed a problem with the VendorShort and VendorLong resource 8829descriptors where an invalid AML sequence was created. 8830 8831Implemented a fix for BufferData term in the ASL parser. It was 8832inadvertently defined twice, allowing invalid syntax to pass and 8833causing reduction conflicts. 8834 8835Fixed a problem where the Ones opcode could get converted to a 8836value of zero if "Ones" was used where a byte, word or dword value 8837was expected. The 64-bit value is now truncated to the correct 8838size with the correct value. 8839 8840 8841 8842---------------------------------------- 884302 July 2002. Summary of changes for this release. 8844 8845 88461) ACPI CA Core Subsystem Version 20020702: 8847 8848The Table Manager code has been restructured to add several new 8849features. Tables that are not required by the core subsystem 8850(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 8851validated in any way and are returned from AcpiGetFirmwareTable if 8852requested. The AcpiOsTableOverride interface is now called for 8853each table that is loaded by the subsystem in order to allow the 8854host to override any table it chooses. Previously, only the DSDT 8855could be overridden. Added one new files, tbrsdt.c and 8856tbgetall.c. 8857 8858Fixed a problem with the conversion of internal package objects to 8859external objects (when a package is returned from a control 8860method.) The return buffer length was set to zero instead of the 8861proper length of the package object. 8862 8863Fixed a reported problem with the use of the RefOf and DeRefOf 8864operators when passing reference arguments to control methods. A 8865new type of Reference object is used internally for references 8866produced by the RefOf operator. 8867 8868Added additional error messages in the Resource Manager to explain 8869AE_BAD_DATA errors when they occur during resource parsing. 8870 8871Split the AcpiEnableSubsystem into two primitives to enable a 8872finer granularity initialization sequence. These two calls should 8873be called in this order: AcpiEnableSubsystem (flags), 8874AcpiInitializeObjects (flags). The flags parameter remains the 8875same. 8876 8877 88782) Linux 8879 8880Updated the ACPI utilities module to understand the new style of 8881fully resolved package objects that are now returned from the core 8882subsystem. This eliminates errors of the form: 8883 8884 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 8885 acpi_utils-0430 [145] acpi_evaluate_reference: 8886 Invalid element in package (not a device reference) 8887 8888The method evaluation utility uses the new buffer allocation 8889scheme instead of calling AcpiEvaluate Object twice. 8890 8891Added support for ECDT. This allows the use of the Embedded 8892 8893Controller before the namespace has been fully initialized, which 8894is necessary for ACPI 2.0 support, and for some laptops to 8895initialize properly. (Laptops using ECDT are still rare, so only 8896limited testing was performed of the added functionality.) 8897 8898Fixed memory leaks in the EC driver. 8899 8900Eliminated a brittle code structure in acpi_bus_init(). 8901 8902Eliminated the acpi_evaluate() helper function in utils.c. It is 8903no longer needed since acpi_evaluate_object can optionally 8904allocate memory for the return object. 8905 8906Implemented fix for keyboard hang when getting battery readings on 8907some systems (Stephen White) 8908 8909PCI IRQ routing update (Dominik Brodowski) 8910 8911Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 8912support 8913 8914---------------------------------------- 891511 June 2002. Summary of changes for this release. 8916 8917 89181) ACPI CA Core Subsystem Version 20020611: 8919 8920Fixed a reported problem where constants such as Zero and One 8921appearing within _PRT packages were not handled correctly within 8922the resource manager code. Originally reported against the ASL 8923compiler because the code generator now optimizes integers to 8924their minimal AML representation (i.e. AML constants if possible.) 8925The _PRT code now handles all AML constant opcodes correctly 8926(Zero, One, Ones, Revision). 8927 8928Fixed a problem with the Concatenate operator in the AML 8929interpreter where a buffer result object was incorrectly marked as 8930not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 8931 8932All package sub-objects are now fully resolved before they are 8933returned from the external ACPI interfaces. This means that name 8934strings are resolved to object handles, and constant operators 8935(Zero, One, Ones, Revision) are resolved to Integers. 8936 8937Implemented immediate resolution of the AML Constant opcodes 8938(Zero, One, Ones, Revision) to Integer objects upon detection 8939within the AML stream. This has simplified and reduced the 8940generated code size of the subsystem by eliminating about 10 8941switch statements for these constants (which previously were 8942contained in Reference objects.) The complicating issues are that 8943the Zero opcode is used as a "placeholder" for unspecified 8944optional target operands and stores to constants are defined to be 8945no-ops. 8946 8947Code and Data Size: Current core subsystem library sizes are shown 8948below. These are the code and data sizes for the acpica.lib 8949produced by the Microsoft Visual C++ 6.0 compiler, and these 8950values do not include any ACPI driver or OSPM code. The debug 8951version of the code includes the debug output trace mechanism and 8952has a larger code and data size. Note that these values will vary 8953depending on the efficiency of the compiler and the compiler 8954options used during generation. 8955 8956 Previous Release 8957 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 8958 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 8959 Current Release: 8960 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 8961 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 8962 8963 89642) Linux 8965 8966 8967Added preliminary support for obtaining _TRA data for PCI root 8968bridges (Bjorn Helgaas). 8969 8970 89713) iASL Compiler Version X2046: 8972 8973Fixed a problem where the "_DDN" reserved name was defined to be a 8974control method with one argument. There are no arguments, and 8975_DDN does not have to be a control method. 8976 8977Fixed a problem with the Linux version of the compiler where the 8978source lines printed with error messages were the wrong lines. 8979This turned out to be the "LF versus CR/LF" difference between 8980Windows and Unix. This appears to be the longstanding issue 8981concerning listing output and error messages. 8982 8983Fixed a problem with the Linux version of compiler where opcode 8984names within error messages were wrong. This was caused by a 8985slight difference in the output of the Flex tool on Linux versus 8986Windows. 8987 8988Fixed a problem with the Linux compiler where the hex output files 8989contained some garbage data caused by an internal buffer overrun. 8990 8991 8992---------------------------------------- 899317 May 2002. Summary of changes for this release. 8994 8995 89961) ACPI CA Core Subsystem Version 20020517: 8997 8998Implemented a workaround to an BIOS bug discovered on the HP 8999OmniBook where the FADT revision number and the table size are 9000inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 9001behavior is to fallback to using only the ACPI 1.0 fields of the 9002FADT if the table is too small to be a ACPI 2.0 table as claimed 9003by the revision number. Although this is a BIOS bug, this is a 9004case where the workaround is simple enough and with no side 9005effects, so it seemed prudent to add it. A warning message is 9006issued, however. 9007 9008Implemented minimum size checks for the fixed-length ACPI tables - 9009- the FADT and FACS, as well as consistency checks between the 9010revision number and the table size. 9011 9012Fixed a reported problem in the table override support where the 9013new table pointer was incorrectly treated as a physical address 9014instead of a logical address. 9015 9016Eliminated the use of the AE_AML_ERROR exception and replaced it 9017with more descriptive codes. 9018 9019Fixed a problem where an exception would occur if an ASL Field was 9020defined with no named Field Units underneath it (used by some 9021index fields). 9022 9023Code and Data Size: Current core subsystem library sizes are shown 9024below. These are the code and data sizes for the acpica.lib 9025produced by the Microsoft Visual C++ 6.0 compiler, and these 9026values do not include any ACPI driver or OSPM code. The debug 9027version of the code includes the debug output trace mechanism and 9028has a larger code and data size. Note that these values will vary 9029depending on the efficiency of the compiler and the compiler 9030options used during generation. 9031 9032 Previous Release 9033 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 9034 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 9035 Current Release: 9036 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 9037 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 9038 9039 9040 90412) Linux 9042 9043Much work done on ACPI init (MADT and PCI IRQ routing support). 9044(Paul D. and Dominik Brodowski) 9045 9046Fix PCI IRQ-related panic on boot (Sam Revitch) 9047 9048Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 9049 9050Fix "MHz" typo (Dominik Brodowski) 9051 9052Fix RTC year 2000 issue (Dominik Brodowski) 9053 9054Preclude multiple button proc entries (Eric Brunet) 9055 9056Moved arch-specific code out of include/platform/aclinux.h 9057 90583) iASL Compiler Version X2044: 9059 9060Implemented error checking for the string used in the EISAID macro 9061(Usually used in the definition of the _HID object.) The code now 9062strictly enforces the PnP format - exactly 7 characters, 3 9063uppercase letters and 4 hex digits. 9064 9065If a raw string is used in the definition of the _HID object 9066(instead of the EISAID macro), the string must contain all 9067alphanumeric characters (e.g., "*PNP0011" is not allowed because 9068of the asterisk.) 9069 9070Implemented checking for invalid use of ACPI reserved names for 9071most of the name creation operators (Name, Device, Event, Mutex, 9072OperationRegion, PowerResource, Processor, and ThermalZone.) 9073Previously, this check was only performed for control methods. 9074 9075Implemented an additional check on the Name operator to emit an 9076error if a reserved name that must be implemented in ASL as a 9077control method is used. We know that a reserved name must be a 9078method if it is defined with input arguments. 9079 9080The warning emitted when a namespace object reference is not found 9081during the cross reference phase has been changed into an error. 9082The "External" directive should be used for names defined in other 9083modules. 9084 9085 90864) Tools and Utilities 9087 9088The 16-bit tools (adump16 and aexec16) have been regenerated and 9089tested. 9090 9091Fixed a problem with the output of both acpidump and adump16 where 9092the indentation of closing parentheses and brackets was not 9093 9094aligned properly with the parent block. 9095 9096 9097---------------------------------------- 909803 May 2002. Summary of changes for this release. 9099 9100 91011) ACPI CA Core Subsystem Version 20020503: 9102 9103Added support a new OSL interface that allows the host operating 9104 9105system software to override the DSDT found in the firmware - 9106AcpiOsTableOverride. With this interface, the OSL can examine the 9107version of the firmware DSDT and replace it with a different one 9108if desired. 9109 9110Added new external interfaces for accessing ACPI registers from 9111device drivers and other system software - AcpiGetRegister and 9112AcpiSetRegister. This was simply an externalization of the 9113existing AcpiHwBitRegister interfaces. 9114 9115Fixed a regression introduced in the previous build where the 9116ASL/AML CreateField operator always returned an error, 9117"destination must be a NS Node". 9118 9119Extended the maximum time (before failure) to successfully enable 9120ACPI mode to 3 seconds. 9121 9122Code and Data Size: Current core subsystem library sizes are shown 9123below. These are the code and data sizes for the acpica.lib 9124produced by the Microsoft Visual C++ 6.0 compiler, and these 9125values do not include any ACPI driver or OSPM code. The debug 9126version of the code includes the debug output trace mechanism and 9127has a larger code and data size. Note that these values will vary 9128depending on the efficiency of the compiler and the compiler 9129options used during generation. 9130 9131 Previous Release 9132 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 9133 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 9134 Current Release: 9135 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 9136 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 9137 9138 91392) Linux 9140 9141Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 9142free. While 3 out of 4 of our in-house systems work fine, the last 9143one still hangs when testing the LAPIC timer. 9144 9145Renamed many files in 2.5 kernel release to omit "acpi_" from the 9146name. 9147 9148Added warning on boot for Presario 711FR. 9149 9150Sleep improvements (Pavel Machek) 9151 9152ACPI can now be built without CONFIG_PCI enabled. 9153 9154IA64: Fixed memory map functions (JI Lee) 9155 9156 91573) iASL Compiler Version X2043: 9158 9159Added support to allow the compiler to be integrated into the MS 9160VC++ development environment for one-button compilation of single 9161files or entire projects -- with error-to-source-line mapping. 9162 9163Implemented support for compile-time constant folding for the 9164Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 9165specification. This allows the ASL writer to use expressions 9166instead of Integer/Buffer/String constants in terms that must 9167evaluate to constants at compile time and will also simplify the 9168emitted AML in any such sub-expressions that can be folded 9169(evaluated at compile-time.) This increases the size of the 9170compiler significantly because a portion of the ACPI CA AML 9171interpreter is included within the compiler in order to pre- 9172evaluate constant expressions. 9173 9174 9175Fixed a problem with the "Unicode" ASL macro that caused the 9176compiler to fault. (This macro is used in conjunction with the 9177_STR reserved name.) 9178 9179Implemented an AML opcode optimization to use the Zero, One, and 9180Ones opcodes where possible to further reduce the size of integer 9181constants and thus reduce the overall size of the generated AML 9182code. 9183 9184Implemented error checking for new reserved terms for ACPI version 91852.0A. 9186 9187Implemented the -qr option to display the current list of ACPI 9188reserved names known to the compiler. 9189 9190Implemented the -qc option to display the current list of ASL 9191operators that are allowed within constant expressions and can 9192therefore be folded at compile time if the operands are constants. 9193 9194 91954) Documentation 9196 9197Updated the Programmer's Reference for new interfaces, data types, 9198and memory allocation model options. 9199 9200Updated the iASL Compiler User Reference to apply new format and 9201add information about new features and options. 9202 9203---------------------------------------- 920419 April 2002. Summary of changes for this release. 9205 92061) ACPI CA Core Subsystem Version 20020419: 9207 9208The source code base for the Core Subsystem has been completely 9209cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 9210versions. The Lint option files used are included in the 9211/acpi/generate/lint directory. 9212 9213Implemented enhanced status/error checking across the entire 9214Hardware manager subsystem. Any hardware errors (reported from 9215the OSL) are now bubbled up and will abort a running control 9216method. 9217 9218 9219Fixed a problem where the per-ACPI-table integer width (32 or 64) 9220was stored only with control method nodes, causing a fault when 9221non-control method code was executed during table loading. The 9222solution implemented uses a global variable to indicate table 9223width across the entire ACPI subsystem. Therefore, ACPI CA does 9224not support mixed integer widths across different ACPI tables 9225(DSDT, SSDT). 9226 9227Fixed a problem where NULL extended fields (X fields) in an ACPI 92282.0 ACPI FADT caused the table load to fail. Although the 9229existing ACPI specification is a bit fuzzy on this topic, the new 9230behavior is to fall back on a ACPI 1.0 field if the corresponding 9231ACPI 2.0 X field is zero (even though the table revision indicates 9232a full ACPI 2.0 table.) The ACPI specification will be updated to 9233clarify this issue. 9234 9235Fixed a problem with the SystemMemory operation region handler 9236where memory was always accessed byte-wise even if the AML- 9237specified access width was larger than a byte. This caused 9238problems on systems with memory-mapped I/O. Memory is now 9239accessed with the width specified. On systems that do not support 9240non-aligned transfers, a check is made to guarantee proper address 9241alignment before proceeding in order to avoid an AML-caused 9242alignment fault within the kernel. 9243 9244 9245Fixed a problem with the ExtendedIrq resource where only one byte 9246of the 4-byte Irq field was extracted. 9247 9248Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 9249function was out of date and required a rewrite. 9250 9251Code and Data Size: Current core subsystem library sizes are shown 9252below. These are the code and data sizes for the acpica.lib 9253produced by the Microsoft Visual C++ 6.0 compiler, and these 9254values do not include any ACPI driver or OSPM code. The debug 9255version of the code includes the debug output trace mechanism and 9256has a larger code and data size. Note that these values will vary 9257depending on the efficiency of the compiler and the compiler 9258options used during generation. 9259 9260 Previous Release 9261 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 9262 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 9263 Current Release: 9264 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 9265 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 9266 9267 92682) Linux 9269 9270PCI IRQ routing fixes (Dominik Brodowski) 9271 9272 92733) iASL Compiler Version X2042: 9274 9275Implemented an additional compile-time error check for a field 9276unit whose size + minimum access width would cause a run-time 9277access beyond the end-of-region. Previously, only the field size 9278itself was checked. 9279 9280The Core subsystem and iASL compiler now share a common parse 9281object in preparation for compile-time evaluation of the type 92823/4/5 ASL operators. 9283 9284 9285---------------------------------------- 9286Summary of changes for this release: 03_29_02 9287 92881) ACPI CA Core Subsystem Version 20020329: 9289 9290Implemented support for late evaluation of TermArg operands to 9291Buffer and Package objects. This allows complex expressions to be 9292used in the declarations of these object types. 9293 9294Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 92951.0, if the field was larger than 32 bits, it was returned as a 9296buffer - otherwise it was returned as an integer. In ACPI 2.0, 9297the field is returned as a buffer only if the field is larger than 929864 bits. The TableRevision is now considered when making this 9299conversion to avoid incompatibility with existing ASL code. 9300 9301Implemented logical addressing for AcpiOsGetRootPointer. This 9302allows an RSDP with either a logical or physical address. With 9303this support, the host OS can now override all ACPI tables with 9304one logical RSDP. Includes implementation of "typed" pointer 9305support to allow a common data type for both physical and logical 9306pointers internally. This required a change to the 9307AcpiOsGetRootPointer interface. 9308 9309Implemented the use of ACPI 2.0 Generic Address Structures for all 9310GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 9311mapped I/O for these ACPI features. 9312 9313Initialization now ignores not only non-required tables (All 9314tables other than the FADT, FACS, DSDT, and SSDTs), but also does 9315not validate the table headers of unrecognized tables. 9316 9317Fixed a problem where a notify handler could only be 9318installed/removed on an object of type Device. All "notify" 9319 9320objects are now supported -- Devices, Processor, Power, and 9321Thermal. 9322 9323Removed most verbosity from the ACPI_DB_INFO debug level. Only 9324critical information is returned when this debug level is enabled. 9325 9326Code and Data Size: Current core subsystem library sizes are shown 9327below. These are the code and data sizes for the acpica.lib 9328produced by the Microsoft Visual C++ 6.0 compiler, and these 9329values do not include any ACPI driver or OSPM code. The debug 9330version of the code includes the debug output trace mechanism and 9331has a larger code and data size. Note that these values will vary 9332depending on the efficiency of the compiler and the compiler 9333options used during generation. 9334 9335 Previous Release 9336 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 9337 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 9338 Current Release: 9339 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 9340 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 9341 9342 93432) Linux: 9344 9345The processor driver (acpi_processor.c) now fully supports ACPI 93462.0-based processor performance control (e.g. Intel(R) 9347SpeedStep(TM) technology) Note that older laptops that only have 9348the Intel "applet" interface are not supported through this. The 9349'limit' and 'performance' interface (/proc) are fully functional. 9350[Note that basic policy for controlling performance state 9351transitions will be included in the next version of ospmd.] The 9352idle handler was modified to more aggressively use C2, and PIIX4 9353errata handling underwent a complete overhaul (big thanks to 9354Dominik Brodowski). 9355 9356Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 9357based devices in the ACPI namespace are now dynamically bound 9358(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 9359This allows, among other things, ACPI to resolve bus numbers for 9360subordinate PCI bridges. 9361 9362Enhanced PCI IRQ routing to get the proper bus number for _PRT 9363entries defined underneath PCI bridges. 9364 9365Added IBM 600E to bad bios list due to invalid _ADR value for 9366PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 9367 9368In the process of adding full MADT support (e.g. IOAPIC) for IA32 9369(acpi.c, mpparse.c) -- stay tuned. 9370 9371Added back visual differentiation between fixed-feature and 9372control-method buttons in dmesg. Buttons are also subtyped (e.g. 9373button/power/PWRF) to simplify button identification. 9374 9375We no longer use -Wno-unused when compiling debug. Please ignore 9376any "_THIS_MODULE defined but not used" messages. 9377 9378Can now shut down the system using "magic sysrq" key. 9379 9380 93813) iASL Compiler version 2041: 9382 9383Fixed a problem where conversion errors for hex/octal/decimal 9384constants were not reported. 9385 9386Implemented a fix for the General Register template Address field. 9387This field was 8 bits when it should be 64. 9388 9389Fixed a problem where errors/warnings were no longer being emitted 9390within the listing output file. 9391 9392Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 9393exactly 4 characters, alphanumeric only. 9394 9395 9396 9397 9398---------------------------------------- 9399Summary of changes for this release: 03_08_02 9400 9401 94021) ACPI CA Core Subsystem Version 20020308: 9403 9404Fixed a problem with AML Fields where the use of the "AccessAny" 9405keyword could cause an interpreter error due to attempting to read 9406or write beyond the end of the parent Operation Region. 9407 9408Fixed a problem in the SystemMemory Operation Region handler where 9409an attempt was made to map memory beyond the end of the region. 9410This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 9411errors on some Linux systems. 9412 9413Fixed a problem where the interpreter/namespace "search to root" 9414algorithm was not functioning for some object types. Relaxed the 9415internal restriction on the search to allow upsearches for all 9416external object types as well as most internal types. 9417 9418 94192) Linux: 9420 9421We now use safe_halt() macro versus individual calls to sti | hlt. 9422 9423Writing to the processor limit interface should now work. "echo 1" 9424will increase the limit, 2 will decrease, and 0 will reset to the 9425 9426default. 9427 9428 94293) ASL compiler: 9430 9431Fixed segfault on Linux version. 9432 9433 9434---------------------------------------- 9435Summary of changes for this release: 02_25_02 9436 94371) ACPI CA Core Subsystem: 9438 9439 9440Fixed a problem where the GPE bit masks were not initialized 9441properly, causing erratic GPE behavior. 9442 9443Implemented limited support for multiple calling conventions. The 9444code can be generated with either the VPL (variable parameter 9445list, or "C") convention, or the FPL (fixed parameter list, or 9446"Pascal") convention. The core subsystem is about 3.4% smaller 9447when generated with FPL. 9448 9449 94502) Linux 9451 9452Re-add some /proc/acpi/event functionality that was lost during 9453the rewrite 9454 9455Resolved issue with /proc events for fixed-feature buttons showing 9456up as the system device. 9457 9458Fixed checks on C2/C3 latencies to be inclusive of maximum values. 9459 9460Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 9461 9462Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 9463 9464Fixed limit interface & usage to fix bugs with passive cooling 9465hysterisis. 9466 9467Restructured PRT support. 9468 9469 9470---------------------------------------- 9471Summary of changes for this label: 02_14_02 9472 9473 94741) ACPI CA Core Subsystem: 9475 9476Implemented support in AcpiLoadTable to allow loading of FACS and 9477FADT tables. 9478 9479Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 9480been removed. All 64-bit platforms should be migrated to the ACPI 94812.0 tables. The actbl71.h header has been removed from the source 9482tree. 9483 9484All C macros defined within the subsystem have been prefixed with 9485"ACPI_" to avoid collision with other system include files. 9486 9487Removed the return value for the two AcpiOsPrint interfaces, since 9488it is never used and causes lint warnings for ignoring the return 9489value. 9490 9491Added error checking to all internal mutex acquire and release 9492calls. Although a failure from one of these interfaces is 9493probably a fatal system error, these checks will cause the 9494immediate abort of the currently executing method or interface. 9495 9496Fixed a problem where the AcpiSetCurrentResources interface could 9497fault. This was a side effect of the deployment of the new memory 9498allocation model. 9499 9500Fixed a couple of problems with the Global Lock support introduced 9501in the last major build. The "common" (1.0/2.0) internal FACS was 9502being overwritten with the FACS signature and clobbering the 9503Global Lock pointer. Also, the actual firmware FACS was being 9504unmapped after construction of the "common" FACS, preventing 9505access to the actual Global Lock field within it. The "common" 9506internal FACS is no longer installed as an actual ACPI table; it 9507is used simply as a global. 9508 9509Code and Data Size: Current core subsystem library sizes are shown 9510below. These are the code and data sizes for the acpica.lib 9511produced by the Microsoft Visual C++ 6.0 compiler, and these 9512values do not include any ACPI driver or OSPM code. The debug 9513version of the code includes the debug output trace mechanism and 9514has a larger code and data size. Note that these values will vary 9515depending on the efficiency of the compiler and the compiler 9516options used during generation. 9517 9518 Previous Release (02_07_01) 9519 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 9520 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 9521 Current Release: 9522 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 9523 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 9524 9525 95262) Linux 9527 9528Updated Linux-specific code for core macro and OSL interface 9529changes described above. 9530 9531Improved /proc/acpi/event. It now can be opened only once and has 9532proper poll functionality. 9533 9534Fixed and restructured power management (acpi_bus). 9535 9536Only create /proc "view by type" when devices of that class exist. 9537 9538Fixed "charging/discharging" bug (and others) in acpi_battery. 9539 9540Improved thermal zone code. 9541 9542 95433) ASL Compiler, version X2039: 9544 9545 9546Implemented the new compiler restriction on ASL String hex/octal 9547escapes to non-null, ASCII values. An error results if an invalid 9548value is used. (This will require an ACPI 2.0 specification 9549change.) 9550 9551AML object labels that are output to the optional C and ASM source 9552are now prefixed with both the ACPI table signature and table ID 9553to help guarantee uniqueness within a large BIOS project. 9554 9555 9556---------------------------------------- 9557Summary of changes for this label: 02_01_02 9558 95591) ACPI CA Core Subsystem: 9560 9561ACPI 2.0 support is complete in the entire Core Subsystem and the 9562ASL compiler. All new ACPI 2.0 operators are implemented and all 9563other changes for ACPI 2.0 support are complete. With 9564simultaneous code and data optimizations throughout the subsystem, 9565ACPI 2.0 support has been implemented with almost no additional 9566cost in terms of code and data size. 9567 9568Implemented a new mechanism for allocation of return buffers. If 9569the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 9570be allocated on behalf of the caller. Consolidated all return 9571buffer validation and allocation to a common procedure. Return 9572buffers will be allocated via the primary OSL allocation interface 9573since it appears that a separate pool is not needed by most users. 9574If a separate pool is required for these buffers, the caller can 9575still use the original mechanism and pre-allocate the buffer(s). 9576 9577Implemented support for string operands within the DerefOf 9578operator. 9579 9580Restructured the Hardware and Event managers to be table driven, 9581simplifying the source code and reducing the amount of generated 9582code. 9583 9584Split the common read/write low-level ACPI register bitfield 9585procedure into a separate read and write, simplifying the code 9586considerably. 9587 9588Obsoleted the AcpiOsCallocate OSL interface. This interface was 9589used only a handful of times and didn't have enough critical mass 9590for a separate interface. Replaced with a common calloc procedure 9591in the core. 9592 9593Fixed a reported problem with the GPE number mapping mechanism 9594that allows GPE1 numbers to be non-contiguous with GPE0. 9595Reorganized the GPE information and shrunk a large array that was 9596originally large enough to hold info for all possible GPEs (256) 9597to simply large enough to hold all GPEs up to the largest GPE 9598number on the machine. 9599 9600Fixed a reported problem with resource structure alignment on 64- 9601bit platforms. 9602 9603Changed the AcpiEnableEvent and AcpiDisableEvent external 9604interfaces to not require any flags for the common case of 9605enabling/disabling a GPE. 9606 9607Implemented support to allow a "Notify" on a Processor object. 9608 9609Most TBDs in comments within the source code have been resolved 9610and eliminated. 9611 9612 9613Fixed a problem in the interpreter where a standalone parent 9614prefix (^) was not handled correctly in the interpreter and 9615debugger. 9616 9617Removed obsolete and unnecessary GPE save/restore code. 9618 9619Implemented Field support in the ASL Load operator. This allows a 9620table to be loaded from a named field, in addition to loading a 9621table directly from an Operation Region. 9622 9623Implemented timeout and handle support in the external Global Lock 9624interfaces. 9625 9626Fixed a problem in the AcpiDump utility where pathnames were no 9627longer being generated correctly during the dump of named objects. 9628 9629Modified the AML debugger to give a full display of if/while 9630predicates instead of just one AML opcode at a time. (The 9631predicate can have several nested ASL statements.) The old method 9632was confusing during single stepping. 9633 9634Code and Data Size: Current core subsystem library sizes are shown 9635below. These are the code and data sizes for the acpica.lib 9636produced by the Microsoft Visual C++ 6.0 compiler, and these 9637values do not include any ACPI driver or OSPM code. The debug 9638version of the code includes the debug output trace mechanism and 9639has a larger code and data size. Note that these values will vary 9640depending on the efficiency of the compiler and the compiler 9641options used during generation. 9642 9643 Previous Release (12_18_01) 9644 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 9645 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 9646 Current Release: 9647 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 9648 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 9649 96502) Linux 9651 9652 Implemented fix for PIIX reverse throttling errata (Processor 9653driver) 9654 9655Added new Limit interface (Processor and Thermal drivers) 9656 9657New thermal policy (Thermal driver) 9658 9659Many updates to /proc 9660 9661Battery "low" event support (Battery driver) 9662 9663Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 9664 9665IA32 - IA64 initialization unification, no longer experimental 9666 9667Menuconfig options redesigned 9668 96693) ASL Compiler, version X2037: 9670 9671Implemented several new output features to simplify integration of 9672AML code into firmware: 1) Output the AML in C source code with 9673labels for each named ASL object. The original ASL source code 9674is interleaved as C comments. 2) Output the AML in ASM source code 9675with labels and interleaved ASL source. 3) Output the AML in 9676raw hex table form, in either C or ASM. 9677 9678Implemented support for optional string parameters to the 9679LoadTable operator. 9680 9681Completed support for embedded escape sequences within string 9682literals. The compiler now supports all single character escapes 9683as well as the Octal and Hex escapes. Note: the insertion of a 9684null byte into a string literal (via the hex/octal escape) causes 9685the string to be immediately terminated. A warning is issued. 9686 9687Fixed a problem where incorrect AML was generated for the case 9688where an ASL namepath consists of a single parent prefix ( 9689 9690) with no trailing name segments. 9691 9692The compiler has been successfully generated with a 64-bit C 9693compiler. 9694 9695 9696 9697 9698---------------------------------------- 9699Summary of changes for this label: 12_18_01 9700 97011) Linux 9702 9703Enhanced blacklist with reason and severity fields. Any table's 9704signature may now be used to identify a blacklisted system. 9705 9706Call _PIC control method to inform the firmware which interrupt 9707model the OS is using. Turn on any disabled link devices. 9708 9709Cleaned up busmgr /proc error handling (Andreas Dilger) 9710 9711 2) ACPI CA Core Subsystem: 9712 9713Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 9714while loop) 9715 9716Completed implementation of the ACPI 2.0 "Continue", 9717"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 9718operators. All new ACPI 2.0 operators are now implemented in both 9719the ASL compiler and the AML interpreter. The only remaining ACPI 97202.0 task is support for the String data type in the DerefOf 9721operator. Fixed a problem with AcquireMutex where the status code 9722was lost if the caller had to actually wait for the mutex. 9723 9724Increased the maximum ASL Field size from 64K bits to 4G bits. 9725 9726Completed implementation of the external Global Lock interfaces -- 9727AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 9728Handler parameters were added. 9729 9730Completed another pass at removing warnings and issues when 9731compiling with 64-bit compilers. The code now compiles cleanly 9732with the Intel 64-bit C/C++ compiler. Most notably, the pointer 9733add and subtract (diff) macros have changed considerably. 9734 9735 9736Created and deployed a new ACPI_SIZE type that is 64-bits wide on 973764-bit platforms, 32-bits on all others. This type is used 9738wherever memory allocation and/or the C sizeof() operator is used, 9739and affects the OSL memory allocation interfaces AcpiOsAllocate 9740and AcpiOsCallocate. 9741 9742Implemented sticky user breakpoints in the AML debugger. 9743 9744Code and Data Size: Current core subsystem library sizes are shown 9745below. These are the code and data sizes for the acpica.lib 9746produced by the Microsoft Visual C++ 6.0 compiler, and these 9747values do not include any ACPI driver or OSPM code. The debug 9748version of the code includes the debug output trace mechanism and 9749has a larger code and data size. Note that these values will vary 9750depending on the efficiency of the compiler and the compiler 9751options used during generation. 9752 9753 Previous Release (12_05_01) 9754 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 9755 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 9756 Current Release: 9757 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 9758 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 9759 9760 3) ASL Compiler, version X2034: 9761 9762Now checks for (and generates an error if detected) the use of a 9763Break or Continue statement without an enclosing While statement. 9764 9765 9766Successfully generated the compiler with the Intel 64-bit C 9767compiler. 9768 9769 ---------------------------------------- 9770Summary of changes for this label: 12_05_01 9771 9772 1) ACPI CA Core Subsystem: 9773 9774The ACPI 2.0 CopyObject operator is fully implemented. This 9775operator creates a new copy of an object (and is also used to 9776bypass the "implicit conversion" mechanism of the Store operator.) 9777 9778The ACPI 2.0 semantics for the SizeOf operator are fully 9779implemented. The change is that performing a SizeOf on a 9780reference object causes an automatic dereference of the object to 9781tha actual value before the size is evaluated. This behavior was 9782undefined in ACPI 1.0. 9783 9784The ACPI 2.0 semantics for the Extended IRQ resource descriptor 9785have been implemented. The interrupt polarity and mode are now 9786independently set. 9787 9788Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 9789appearing in Package objects were not properly converted to 9790integers when the internal Package was converted to an external 9791object (via the AcpiEvaluateObject interface.) 9792 9793Fixed a problem with the namespace object deletion mechanism for 9794objects created by control methods. There were two parts to this 9795problem: 1) Objects created during the initialization phase method 9796parse were not being deleted, and 2) The object owner ID mechanism 9797to track objects was broken. 9798 9799Fixed a problem where the use of the ASL Scope operator within a 9800control method would result in an invalid opcode exception. 9801 9802Fixed a problem introduced in the previous label where the buffer 9803length required for the _PRT structure was not being returned 9804correctly. 9805 9806Code and Data Size: Current core subsystem library sizes are shown 9807below. These are the code and data sizes for the acpica.lib 9808produced by the Microsoft Visual C++ 6.0 compiler, and these 9809values do not include any ACPI driver or OSPM code. The debug 9810version of the code includes the debug output trace mechanism and 9811has a larger code and data size. Note that these values will vary 9812depending on the efficiency of the compiler and the compiler 9813options used during generation. 9814 9815 Previous Release (11_20_01) 9816 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 9817 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 9818 9819 Current Release: 9820 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 9821 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 9822 9823 2) Linux: 9824 9825Updated all files to apply cleanly against 2.4.16. 9826 9827Added basic PCI Interrupt Routing Table (PRT) support for IA32 9828(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 9829version supports both static and dyanmic PRT entries, but dynamic 9830entries are treated as if they were static (not yet 9831reconfigurable). Architecture- specific code to use this data is 9832absent on IA32 but should be available shortly. 9833 9834Changed the initialization sequence to start the ACPI interpreter 9835(acpi_init) prior to initialization of the PCI driver (pci_init) 9836in init/main.c. This ordering is required to support PRT and 9837facilitate other (future) enhancement. A side effect is that the 9838ACPI bus driver and certain device drivers can no longer be loaded 9839as modules. 9840 9841Modified the 'make menuconfig' options to allow PCI Interrupt 9842Routing support to be included without the ACPI Bus and other 9843device drivers. 9844 9845 3) ASL Compiler, version X2033: 9846 9847Fixed some issues with the use of the new CopyObject and 9848DataTableRegion operators. Both are fully functional. 9849 9850 ---------------------------------------- 9851Summary of changes for this label: 11_20_01 9852 9853 20 November 2001. Summary of changes for this release. 9854 9855 1) ACPI CA Core Subsystem: 9856 9857Updated Index support to match ACPI 2.0 semantics. Storing a 9858Integer, String, or Buffer to an Index of a Buffer will store only 9859the least-significant byte of the source to the Indexed buffer 9860byte. Multiple writes are not performed. 9861 9862Fixed a problem where the access type used in an AccessAs ASL 9863operator was not recorded correctly into the field object. 9864 9865Fixed a problem where ASL Event objects were created in a 9866signalled state. Events are now created in an unsignalled state. 9867 9868The internal object cache is now purged after table loading and 9869initialization to reduce the use of dynamic kernel memory -- on 9870the assumption that object use is greatest during the parse phase 9871of the entire table (versus the run-time use of individual control 9872methods.) 9873 9874ACPI 2.0 variable-length packages are now fully operational. 9875 9876Code and Data Size: Code and Data optimizations have permitted new 9877feature development with an actual reduction in the library size. 9878Current core subsystem library sizes are shown below. These are 9879the code and data sizes for the acpica.lib produced by the 9880Microsoft Visual C++ 6.0 compiler, and these values do not include 9881any ACPI driver or OSPM code. The debug version of the code 9882includes the debug output trace mechanism and has a larger code 9883and data size. Note that these values will vary depending on the 9884efficiency of the compiler and the compiler options used during 9885generation. 9886 9887 Previous Release (11_09_01): 9888 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 9889 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 9890 9891 Current Release: 9892 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 9893 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 9894 9895 2) Linux: 9896 9897Enhanced the ACPI boot-time initialization code to allow the use 9898of Local APIC tables for processor enumeration on IA-32, and to 9899pave the way for a fully MPS-free boot (on SMP systems) in the 9900near future. This functionality replaces 9901arch/i386/kernel/acpitables.c, which was introduced in an earlier 99022.4.15-preX release. To enable this feature you must add 9903"acpi_boot=on" to the kernel command line -- see the help entry 9904for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 9905the works... 9906 9907Restructured the configuration options to allow boot-time table 9908parsing support without inclusion of the ACPI Interpreter (and 9909other) code. 9910 9911NOTE: This release does not include fixes for the reported events, 9912power-down, and thermal passive cooling issues (coming soon). 9913 9914 3) ASL Compiler: 9915 9916Added additional typechecking for Fields within restricted access 9917Operation Regions. All fields within EC and CMOS regions must be 9918declared with ByteAcc. All fields withing SMBus regions must be 9919declared with the BufferAcc access type. 9920 9921Fixed a problem where the listing file output of control methods 9922no longer interleaved the actual AML code with the ASL source 9923code. 9924 9925 9926 9927 9928---------------------------------------- 9929Summary of changes for this label: 11_09_01 9930 99311) ACPI CA Core Subsystem: 9932 9933Implemented ACPI 2.0-defined support for writes to fields with a 9934Buffer, String, or Integer source operand that is smaller than the 9935target field. In these cases, the source operand is zero-extended 9936to fill the target field. 9937 9938Fixed a problem where a Field starting bit offset (within the 9939parent operation region) was calculated incorrectly if the 9940 9941alignment of the field differed from the access width. This 9942affected CreateWordField, CreateDwordField, CreateQwordField, and 9943possibly other fields that use the "AccessAny" keyword. 9944 9945Fixed a problem introduced in the 11_02_01 release where indirect 9946stores through method arguments did not operate correctly. 9947 99482) Linux: 9949 9950Implemented boot-time ACPI table parsing support 9951(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 9952facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 9953legacy BIOS interfaces (e.g. MPS) for the configuration of system 9954processors, memory, and interrupts during setup_arch(). Note that 9955this patch does not include the required architecture-specific 9956changes required to apply this information -- subsequent patches 9957will be posted for both IA32 and IA64 to achieve this. 9958 9959Added low-level sleep support for IA32 platforms, courtesy of Pat 9960Mochel. This allows IA32 systems to transition to/from various 9961sleeping states (e.g. S1, S3), although the lack of a centralized 9962driver model and power-manageable drivers will prevent its 9963(successful) use on most systems. 9964 9965Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 9966submenu, unified IA32 and IA64 options, added new "Boot using ACPI 9967tables" option, etc. 9968 9969Increased the default timeout for the EC driver from 1ms to 10ms 9970(1000 cycles of 10us) to try to address AE_TIME errors during EC 9971transactions. 9972 9973 ---------------------------------------- 9974Summary of changes for this label: 11_02_01 9975 99761) ACPI CA Core Subsystem: 9977 9978ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 9979(QWordAcc keyword). All ACPI 2.0 64-bit support is now 9980implemented. 9981 9982OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 9983changes to support ACPI 2.0 Qword field access. Read/Write 9984PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 9985accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 9986the value parameter for the address space handler interface is now 9987an ACPI_INTEGER. OSL implementations of these interfaces must now 9988handle the case where the Width parameter is 64. 9989 9990Index Fields: Fixed a problem where unaligned bit assembly and 9991disassembly for IndexFields was not supported correctly. 9992 9993Index and Bank Fields: Nested Index and Bank Fields are now 9994supported. During field access, a check is performed to ensure 9995that the value written to an Index or Bank register is not out of 9996the range of the register. The Index (or Bank) register is 9997written before each access to the field data. Future support will 9998include allowing individual IndexFields to be wider than the 9999DataRegister width. 10000 10001Fields: Fixed a problem where the AML interpreter was incorrectly 10002attempting to write beyond the end of a Field/OpRegion. This was 10003a boundary case that occurred when a DWORD field was written to a 10004BYTE access OpRegion, forcing multiple writes and causing the 10005interpreter to write one datum too many. 10006 10007Fields: Fixed a problem with Field/OpRegion access where the 10008starting bit address of a field was incorrectly calculated if the 10009current access type was wider than a byte (WordAcc, DwordAcc, or 10010QwordAcc). 10011 10012Fields: Fixed a problem where forward references to individual 10013FieldUnits (individual Field names within a Field definition) were 10014not resolved during the AML table load. 10015 10016Fields: Fixed a problem where forward references from a Field 10017definition to the parent Operation Region definition were not 10018resolved during the AML table load. 10019 10020Fields: Duplicate FieldUnit names within a scope are now detected 10021during AML table load. 10022 10023Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 10024returned an incorrect name for the root node. 10025 10026Code and Data Size: Code and Data optimizations have permitted new 10027feature development with an actual reduction in the library size. 10028Current core subsystem library sizes are shown below. These are 10029the code and data sizes for the acpica.lib produced by the 10030Microsoft Visual C++ 6.0 compiler, and these values do not include 10031any ACPI driver or OSPM code. The debug version of the code 10032includes the debug output trace mechanism and has a larger code 10033and data size. Note that these values will vary depending on the 10034efficiency of the compiler and the compiler options used during 10035generation. 10036 10037 Previous Release (10_18_01): 10038 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 10039 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 10040 10041 Current Release: 10042 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 10043 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 10044 10045 2) Linux: 10046 10047Improved /proc processor output (Pavel Machek) Re-added 10048MODULE_LICENSE("GPL") to all modules. 10049 10050 3) ASL Compiler version X2030: 10051 10052Duplicate FieldUnit names within a scope are now detected and 10053flagged as errors. 10054 10055 4) Documentation: 10056 10057Programmer Reference updated to reflect OSL and address space 10058handler interface changes described above. 10059 10060---------------------------------------- 10061Summary of changes for this label: 10_18_01 10062 10063ACPI CA Core Subsystem: 10064 10065Fixed a problem with the internal object reference count mechanism 10066that occasionally caused premature object deletion. This resolves 10067all of the outstanding problem reports where an object is deleted 10068in the middle of an interpreter evaluation. Although this problem 10069only showed up in rather obscure cases, the solution to the 10070problem involved an adjustment of all reference counts involving 10071objects attached to namespace nodes. 10072 10073Fixed a problem with Field support in the interpreter where 10074writing to an aligned field whose length is an exact multiple (2 10075or greater) of the field access granularity would cause an attempt 10076to write beyond the end of the field. 10077 10078The top level AML opcode execution functions within the 10079interpreter have been renamed with a more meaningful and 10080consistent naming convention. The modules exmonad.c and 10081exdyadic.c were eliminated. New modules are exoparg1.c, 10082exoparg2.c, exoparg3.c, and exoparg6.c. 10083 10084Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 10085 10086Fixed a problem where the AML debugger was causing some internal 10087objects to not be deleted during subsystem termination. 10088 10089Fixed a problem with the external AcpiEvaluateObject interface 10090where the subsystem would fault if the named object to be 10091evaluated refered to a constant such as Zero, Ones, etc. 10092 10093Fixed a problem with IndexFields and BankFields where the 10094subsystem would fault if the index, data, or bank registers were 10095not defined in the same scope as the field itself. 10096 10097Added printf format string checking for compilers that support 10098this feature. Corrected more than 50 instances of issues with 10099format specifiers within invocations of ACPI_DEBUG_PRINT 10100throughout the core subsystem code. 10101 10102The ASL "Revision" operator now returns the ACPI support level 10103implemented in the core - the value "2" since the ACPI 2.0 support 10104is more than 50% implemented. 10105 10106Enhanced the output of the AML debugger "dump namespace" command 10107to output in a more human-readable form. 10108 10109Current core subsystem library code sizes are shown below. These 10110 10111are the code and data sizes for the acpica.lib produced by the 10112Microsoft Visual C++ 6.0 compiler, and these values do not include 10113any ACPI driver or OSPM code. The debug version of the code 10114includes the full debug trace mechanism -- leading to a much 10115 10116larger code and data size. Note that these values will vary 10117depending on the efficiency of the compiler and the compiler 10118options used during generation. 10119 10120 Previous Label (09_20_01): 10121 Non-Debug Version: 65K Code, 5K Data, 70K Total 10122 Debug Version: 138K Code, 58K Data, 196K Total 10123 10124 This Label: 10125 10126 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 10127 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 10128 10129Linux: 10130 10131Implemented a "Bad BIOS Blacklist" to track machines that have 10132known ASL/AML problems. 10133 10134Enhanced the /proc interface for the thermal zone driver and added 10135support for _HOT (the critical suspend trip point). The 'info' 10136file now includes threshold/policy information, and allows setting 10137of _SCP (cooling preference) and _TZP (polling frequency) values 10138to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 10139frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 10140preference to the passive/quiet mode (if supported by the ASL). 10141 10142Implemented a workaround for a gcc bug that resuted in an OOPs 10143when loading the control method battery driver. 10144 10145 ---------------------------------------- 10146Summary of changes for this label: 09_20_01 10147 10148 ACPI CA Core Subsystem: 10149 10150The AcpiEnableEvent and AcpiDisableEvent interfaces have been 10151modified to allow individual GPE levels to be flagged as wake- 10152enabled (i.e., these GPEs are to remain enabled when the platform 10153sleeps.) 10154 10155The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 10156support wake-enabled GPEs. This means that upon entering the 10157sleep state, all GPEs that are not wake-enabled are disabled. 10158When leaving the sleep state, these GPEs are reenabled. 10159 10160A local double-precision divide/modulo module has been added to 10161enhance portability to OS kernels where a 64-bit math library is 10162not available. The new module is "utmath.c". 10163 10164Several optimizations have been made to reduce the use of CPU 10165stack. Originally over 2K, the maximum stack usage is now below 101662K at 1860 bytes (1.82k) 10167 10168Fixed a problem with the AcpiGetFirmwareTable interface where the 10169root table pointer was not mapped into a logical address properly. 10170 10171Fixed a problem where a NULL pointer was being dereferenced in the 10172interpreter code for the ASL Notify operator. 10173 10174Fixed a problem where the use of the ASL Revision operator 10175returned an error. This operator now returns the current version 10176of the ACPI CA core subsystem. 10177 10178Fixed a problem where objects passed as control method parameters 10179to AcpiEvaluateObject were always deleted at method termination. 10180However, these objects may end up being stored into the namespace 10181by the called method. The object reference count mechanism was 10182applied to these objects instead of a force delete. 10183 10184Fixed a problem where static strings or buffers (contained in the 10185AML code) that are declared as package elements within the ASL 10186code could cause a fault because the interpreter would attempt to 10187delete them. These objects are now marked with the "static 10188object" flag to prevent any attempt to delete them. 10189 10190Implemented an interpreter optimization to use operands directly 10191from the state object instead of extracting the operands to local 10192variables. This reduces stack use and code size, and improves 10193performance. 10194 10195The module exxface.c was eliminated as it was an unnecessary extra 10196layer of code. 10197 10198Current core subsystem library code sizes are shown below. These 10199are the code and data sizes for the acpica.lib produced by the 10200Microsoft Visual C++ 6.0 compiler, and these values do not include 10201any ACPI driver or OSPM code. The debug version of the code 10202includes the full debug trace mechanism -- leading to a much 10203larger code and data size. Note that these values will vary 10204depending on the efficiency of the compiler and the compiler 10205options used during generation. 10206 10207 Non-Debug Version: 65K Code, 5K Data, 70K Total 10208(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 10209Total (Previously 195K) 10210 10211Linux: 10212 10213Support for ACPI 2.0 64-bit integers has been added. All ACPI 10214Integer objects are now 64 bits wide 10215 10216All Acpi data types and structures are now in lower case. Only 10217Acpi macros are upper case for differentiation. 10218 10219 Documentation: 10220 10221Changes to the external interfaces as described above. 10222 10223 ---------------------------------------- 10224Summary of changes for this label: 08_31_01 10225 10226 ACPI CA Core Subsystem: 10227 10228A bug with interpreter implementation of the ASL Divide operator 10229was found and fixed. The implicit function return value (not the 10230explicit store operands) was returning the remainder instead of 10231the quotient. This was a longstanding bug and it fixes several 10232known outstanding issues on various platforms. 10233 10234The ACPI_DEBUG_PRINT and function trace entry/exit macros have 10235been further optimized for size. There are 700 invocations of the 10236DEBUG_PRINT macro alone, so each optimization reduces the size of 10237the debug version of the subsystem significantly. 10238 10239A stack trace mechanism has been implemented. The maximum stack 10240usage is about 2K on 32-bit platforms. The debugger command "stat 10241stack" will display the current maximum stack usage. 10242 10243All public symbols and global variables within the subsystem are 10244now prefixed with the string "Acpi". This keeps all of the 10245symbols grouped together in a kernel map, and avoids conflicts 10246with other kernel subsystems. 10247 10248Most of the internal fixed lookup tables have been moved into the 10249code segment via the const operator. 10250 10251Several enhancements have been made to the interpreter to both 10252reduce the code size and improve performance. 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 which contains over 700 10259invocations of the DEBUG_PRINT macro, 500 function entry macro 10260invocations, and over 900 function exit macro invocations -- 10261leading to a much larger code and data size. Note that these 10262values will vary depending on the efficiency of the compiler and 10263the compiler options used during generation. 10264 10265 Non-Debug Version: 64K Code, 5K Data, 69K Total 10266Debug Version: 137K Code, 58K Data, 195K Total 10267 10268 Linux: 10269 10270Implemented wbinvd() macro, pending a kernel-wide definition. 10271 10272Fixed /proc/acpi/event to handle poll() and short reads. 10273 10274 ASL Compiler, version X2026: 10275 10276Fixed a problem introduced in the previous label where the AML 10277 10278code emitted for package objects produced packages with zero 10279length. 10280 10281 ---------------------------------------- 10282Summary of changes for this label: 08_16_01 10283 10284ACPI CA Core Subsystem: 10285 10286The following ACPI 2.0 ASL operators have been implemented in the 10287AML interpreter (These are already supported by the Intel ASL 10288compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 10289ToBuffer. Support for 64-bit AML constants is implemented in the 10290AML parser, debugger, and disassembler. 10291 10292The internal memory tracking mechanism (leak detection code) has 10293been upgraded to reduce the memory overhead (a separate tracking 10294block is no longer allocated for each memory allocation), and now 10295supports all of the internal object caches. 10296 10297The data structures and code for the internal object caches have 10298been coelesced and optimized so that there is a single cache and 10299memory list data structure and a single group of functions that 10300implement generic cache management. This has reduced the code 10301size in both the debug and release versions of the subsystem. 10302 10303The DEBUG_PRINT macro(s) have been optimized for size and replaced 10304by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 10305different, because it generates a single call to an internal 10306function. This results in a savings of about 90 bytes per 10307invocation, resulting in an overall code and data savings of about 1030816% in the debug version of the subsystem. 10309 10310 Linux: 10311 10312Fixed C3 disk corruption problems and re-enabled C3 on supporting 10313machines. 10314 10315Integrated low-level sleep code by Patrick Mochel. 10316 10317Further tweaked source code Linuxization. 10318 10319Other minor fixes. 10320 10321 ASL Compiler: 10322 10323Support for ACPI 2.0 variable length packages is fixed/completed. 10324 10325Fixed a problem where the optional length parameter for the ACPI 103262.0 ToString operator. 10327 10328Fixed multiple extraneous error messages when a syntax error is 10329detected within the declaration line of a control method. 10330 10331 ---------------------------------------- 10332Summary of changes for this label: 07_17_01 10333 10334ACPI CA Core Subsystem: 10335 10336Added a new interface named AcpiGetFirmwareTable to obtain any 10337ACPI table via the ACPI signature. The interface can be called at 10338any time during kernel initialization, even before the kernel 10339virtual memory manager is initialized and paging is enabled. This 10340allows kernel subsystems to obtain ACPI tables very early, even 10341before the ACPI CA subsystem is initialized. 10342 10343Fixed a problem where Fields defined with the AnyAcc attribute 10344could be resolved to the incorrect address under the following 10345conditions: 1) the field width is larger than 8 bits and 2) the 10346parent operation region is not defined on a DWORD boundary. 10347 10348Fixed a problem where the interpreter is not being locked during 10349namespace initialization (during execution of the _INI control 10350methods), causing an error when an attempt is made to release it 10351later. 10352 10353ACPI 2.0 support in the AML Interpreter has begun and will be 10354ongoing throughout the rest of this year. In this label, The Mod 10355operator is implemented. 10356 10357Added a new data type to contain full PCI addresses named 10358ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 10359and Function values. 10360 10361 Linux: 10362 10363Enhanced the Linux version of the source code to change most 10364capitalized ACPI type names to lowercase. For example, all 10365instances of ACPI_STATUS are changed to acpi_status. This will 10366result in a large diff, but the change is strictly cosmetic and 10367aligns the CA code closer to the Linux coding standard. 10368 10369OSL Interfaces: 10370 10371The interfaces to the PCI configuration space have been changed to 10372add the PCI Segment number and to split the single 32-bit combined 10373DeviceFunction field into two 16-bit fields. This was 10374accomplished by moving the four values that define an address in 10375PCI configuration space (segment, bus, device, and function) to 10376the new ACPI_PCI_ID structure. 10377 10378The changes to the PCI configuration space interfaces led to a 10379reexamination of the complete set of address space access 10380interfaces for PCI, I/O, and Memory. The previously existing 18 10381interfaces have proven difficult to maintain (any small change 10382must be propagated across at least 6 interfaces) and do not easily 10383allow for future expansion to 64 bits if necessary. Also, on some 10384systems, it would not be appropriate to demultiplex the access 10385width (8, 16, 32,or 64) before calling the OSL if the 10386corresponding native OS interfaces contain a similar access width 10387parameter. For these reasons, the 18 address space interfaces 10388have been replaced by these 6 new ones: 10389 10390AcpiOsReadPciConfiguration 10391AcpiOsWritePciConfiguration 10392AcpiOsReadMemory 10393AcpiOsWriteMemory 10394AcpiOsReadPort 10395AcpiOsWritePort 10396 10397Added a new interface named AcpiOsGetRootPointer to allow the OSL 10398to perform the platform and/or OS-specific actions necessary to 10399obtain the ACPI RSDP table pointer. On IA-32 platforms, this 10400interface will simply call down to the CA core to perform the low- 10401memory search for the table. On IA-64, the RSDP is obtained from 10402EFI. Migrating this interface to the OSL allows the CA core to 10403 10404remain OS and platform independent. 10405 10406Added a new interface named AcpiOsSignal to provide a generic 10407"function code and pointer" interface for various miscellaneous 10408signals and notifications that must be made to the host OS. The 10409first such signals are intended to support the ASL Fatal and 10410Breakpoint operators. In the latter case, the AcpiOsBreakpoint 10411interface has been obsoleted. 10412 10413The definition of the AcpiFormatException interface has been 10414changed to simplify its use. The caller no longer must supply a 10415buffer to the call; A pointer to a const string is now returned 10416directly. This allows the call to be easily used in printf 10417statements, etc. since the caller does not have to manage a local 10418buffer. 10419 10420 10421 ASL Compiler, Version X2025: 10422 10423The ACPI 2.0 Switch/Case/Default operators have been implemented 10424and are fully functional. They will work with all ACPI 1.0 10425interpreters, since the operators are simply translated to If/Else 10426pairs. 10427 10428The ACPI 2.0 ElseIf operator is implemented and will also work 10429with 1.0 interpreters, for the same reason. 10430 10431Implemented support for ACPI 2.0 variable-length packages. These 10432packages have a separate opcode, and their size is determined by 10433the interpreter at run-time. 10434 10435Documentation The ACPI CA Programmer Reference has been updated to 10436reflect the new interfaces and changes to existing interfaces. 10437 10438 ------------------------------------------ 10439Summary of changes for this label: 06_15_01 10440 10441 ACPI CA Core Subsystem: 10442 10443Fixed a problem where a DWORD-accessed field within a Buffer 10444object would get its byte address inadvertently rounded down to 10445the nearest DWORD. Buffers are always Byte-accessible. 10446 10447 ASL Compiler, version X2024: 10448 10449Fixed a problem where the Switch() operator would either fault or 10450hang the compiler. Note however, that the AML code for this ACPI 104512.0 operator is not yet implemented. 10452 10453Compiler uses the new AcpiOsGetTimer interface to obtain compile 10454timings. 10455 10456Implementation of the CreateField operator automatically converts 10457a reference to a named field within a resource descriptor from a 10458byte offset to a bit offset if required. 10459 10460Added some missing named fields from the resource descriptor 10461support. These are the names that are automatically created by the 10462compiler to reference fields within a descriptor. They are only 10463valid at compile time and are not passed through to the AML 10464interpreter. 10465 10466Resource descriptor named fields are now typed as Integers and 10467subject to compile-time typechecking when used in expressions. 10468 10469 ------------------------------------------ 10470Summary of changes for this label: 05_18_01 10471 10472 ACPI CA Core Subsystem: 10473 10474Fixed a couple of problems in the Field support code where bits 10475from adjacent fields could be returned along with the proper field 10476bits. Restructured the field support code to improve performance, 10477readability and maintainability. 10478 10479New DEBUG_PRINTP macro automatically inserts the procedure name 10480into the output, saving hundreds of copies of procedure name 10481strings within the source, shrinking the memory footprint of the 10482debug version of the core subsystem. 10483 10484 Source Code Structure: 10485 10486The source code directory tree was restructured to reflect the 10487current organization of the component architecture. Some files 10488and directories have been moved and/or renamed. 10489 10490 Linux: 10491 10492Fixed leaking kacpidpc processes. 10493 10494Fixed queueing event data even when /proc/acpi/event is not 10495opened. 10496 10497 ASL Compiler, version X2020: 10498 10499Memory allocation performance enhancement - over 24X compile time 10500improvement on large ASL files. Parse nodes and namestring 10501buffers are now allocated from a large internal compiler buffer. 10502 10503The temporary .SRC file is deleted unless the "-s" option is 10504specified 10505 10506The "-d" debug output option now sends all output to the .DBG file 10507instead of the console. 10508 10509"External" second parameter is now optional 10510 10511"ElseIf" syntax now properly allows the predicate 10512 10513Last operand to "Load" now recognized as a Target operand 10514 10515Debug object can now be used anywhere as a normal object. 10516 10517ResourceTemplate now returns an object of type BUFFER 10518 10519EISAID now returns an object of type INTEGER 10520 10521"Index" now works with a STRING operand 10522 10523"LoadTable" now accepts optional parameters 10524 10525"ToString" length parameter is now optional 10526 10527"Interrupt (ResourceType," parse error fixed. 10528 10529"Register" with a user-defined region space parse error fixed 10530 10531Escaped backslash at the end of a string ("\\") scan/parse error 10532fixed 10533 10534"Revision" is now an object of type INTEGER. 10535 10536 10537 10538------------------------------------------ 10539Summary of changes for this label: 05_02_01 10540 10541Linux: 10542 10543/proc/acpi/event now blocks properly. 10544 10545Removed /proc/sys/acpi. You can still dump your DSDT from 10546/proc/acpi/dsdt. 10547 10548 ACPI CA Core Subsystem: 10549 10550Fixed a problem introduced in the previous label where some of the 10551"small" resource descriptor types were not recognized. 10552 10553Improved error messages for the case where an ASL Field is outside 10554the range of the parent operation region. 10555 10556 ASL Compiler, version X2018: 10557 10558 10559Added error detection for ASL Fields that extend beyond the length 10560of the parent operation region (only if the length of the region 10561is known at compile time.) This includes fields that have a 10562minimum access width that is smaller than the parent region, and 10563individual field units that are partially or entirely beyond the 10564extent of the parent. 10565 10566 10567 10568------------------------------------------ 10569Summary of changes for this label: 04_27_01 10570 10571 ACPI CA Core Subsystem: 10572 10573Fixed a problem where the namespace mutex could be released at the 10574wrong time during execution of AcpiRemoveAddressSpaceHandler. 10575 10576Added optional thread ID output for debug traces, to simplify 10577debugging of multiple threads. Added context switch notification 10578when the debug code realizes that a different thread is now 10579executing ACPI code. 10580 10581Some additional external data types have been prefixed with the 10582string "ACPI_" for consistency. This may effect existing code. 10583The data types affected are the external callback typedefs - e.g., 10584 10585WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 10586 10587 Linux: 10588 10589Fixed an issue with the OSL semaphore implementation where a 10590thread was waking up with an error from receiving a SIGCHLD 10591signal. 10592 10593Linux version of ACPI CA now uses the system C library for string 10594manipulation routines instead of a local implementation. 10595 10596Cleaned up comments and removed TBDs. 10597 10598 ASL Compiler, version X2017: 10599 10600Enhanced error detection and reporting for all file I/O 10601operations. 10602 10603 Documentation: 10604 10605Programmer Reference updated to version 1.06. 10606 10607 10608 10609------------------------------------------ 10610Summary of changes for this label: 04_13_01 10611 10612 ACPI CA Core Subsystem: 10613 10614Restructured support for BufferFields and RegionFields. 10615BankFields support is now fully operational. All known 32-bit 10616limitations on field sizes have been removed. Both BufferFields 10617and (Operation) RegionFields are now supported by the same field 10618management code. 10619 10620Resource support now supports QWORD address and IO resources. The 1062116/32/64 bit address structures and the Extended IRQ structure 10622have been changed to properly handle Source Resource strings. 10623 10624A ThreadId of -1 is now used to indicate a "mutex not acquired" 10625condition internally and must never be returned by AcpiOsThreadId. 10626This reserved value was changed from 0 since Unix systems allow a 10627thread ID of 0. 10628 10629Linux: 10630 10631Driver code reorganized to enhance portability 10632 10633Added a kernel configuration option to control ACPI_DEBUG 10634 10635Fixed the EC driver to honor _GLK. 10636 10637ASL Compiler, version X2016: 10638 10639Fixed support for the "FixedHw" keyword. Previously, the FixedHw 10640address space was set to 0, not 0x7f as it should be. 10641 10642 ------------------------------------------ 10643Summary of changes for this label: 03_13_01 10644 10645 ACPI CA Core Subsystem: 10646 10647During ACPI initialization, the _SB_._INI method is now run if 10648present. 10649 10650Notify handler fix - notifies are deferred until the parent method 10651completes execution. This fixes the "mutex already acquired" 10652issue seen occasionally. 10653 10654Part of the "implicit conversion" rules in ACPI 2.0 have been 10655found to cause compatibility problems with existing ASL/AML. The 10656convert "result-to-target-type" implementation has been removed 10657for stores to method Args and Locals. Source operand conversion 10658is still fully implemented. Possible changes to ACPI 2.0 10659specification pending. 10660 10661Fix to AcpiRsCalculatePciRoutingTableLength to return correct 10662length. 10663 10664Fix for compiler warnings for 64-bit compiles. 10665 10666 Linux: 10667 10668/proc output aligned for easier parsing. 10669 10670Release-version compile problem fixed. 10671 10672New kernel configuration options documented in Configure.help. 10673 10674IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 10675context" message. 10676 10677 OSPM: 10678 10679Power resource driver integrated with bus manager. 10680 10681Fixed kernel fault during active cooling for thermal zones. 10682 10683Source Code: 10684 10685The source code tree has been restructured. 10686 10687 10688 10689------------------------------------------ 10690Summary of changes for this label: 03_02_01 10691 10692 Linux OS Services Layer (OSL): 10693 10694Major revision of all Linux-specific code. 10695 10696Modularized all ACPI-specific drivers. 10697 10698Added new thermal zone and power resource drivers. 10699 10700Revamped /proc interface (new functionality is under /proc/acpi). 10701 10702New kernel configuration options. 10703 10704 Linux known issues: 10705 10706New kernel configuration options not documented in Configure.help 10707yet. 10708 10709 10710Module dependencies not currently implemented. If used, they 10711should be loaded in this order: busmgr, power, ec, system, 10712processor, battery, ac_adapter, button, thermal. 10713 10714Modules will not load if CONFIG_MODVERSION is set. 10715 10716IBM 600E - entering S5 may reboot instead of shutting down. 10717 10718IBM 600E - Sleep button may generate "Invalid <NULL> context" 10719message. 10720 10721Some systems may fail with "execution mutex already acquired" 10722message. 10723 10724 ACPI CA Core Subsystem: 10725 10726Added a new OSL Interface, AcpiOsGetThreadId. This was required 10727for the deadlock detection code. Defined to return a non-zero, 32- 10728bit thread ID for the currently executing thread. May be a non- 10729zero constant integer on single-thread systems. 10730 10731Implemented deadlock detection for internal subsystem mutexes. We 10732may add conditional compilation for this code (debug only) later. 10733 10734ASL/AML Mutex object semantics are now fully supported. This 10735includes multiple acquires/releases by owner and support for the 10736 10737Mutex SyncLevel parameter. 10738 10739A new "Force Release" mechanism automatically frees all ASL 10740Mutexes that have been acquired but not released when a thread 10741exits the interpreter. This forces conformance to the ACPI spec 10742("All mutexes must be released when an invocation exits") and 10743prevents deadlocked ASL threads. This mechanism can be expanded 10744(later) to monitor other resource acquisitions if OEM ASL code 10745continues to misbehave (which it will). 10746 10747Several new ACPI exception codes have been added for the Mutex 10748support. 10749 10750Recursive method calls are now allowed and supported (the ACPI 10751spec does in fact allow recursive method calls.) The number of 10752recursive calls is subject to the restrictions imposed by the 10753SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 10754parameter. 10755 10756Implemented support for the SyncLevel parameter for control 10757methods (ACPI 2.0 feature) 10758 10759Fixed a deadlock problem when multiple threads attempted to use 10760the interpreter. 10761 10762Fixed a problem where the string length of a String package 10763element was not always set in a package returned from 10764AcpiEvaluateObject. 10765 10766Fixed a problem where the length of a String package element was 10767not always included in the length of the overall package returned 10768from AcpiEvaluateObject. 10769 10770Added external interfaces (Acpi*) to the ACPI debug memory 10771manager. This manager keeps a list of all outstanding 10772allocations, and can therefore detect memory leaks and attempts to 10773free memory blocks more than once. Useful for code such as the 10774power manager, etc. May not be appropriate for device drivers. 10775Performance with the debug code enabled is slow. 10776 10777The ACPI Global Lock is now an optional hardware element. 10778 10779 ASL Compiler Version X2015: 10780 10781Integrated changes to allow the compiler to be generated on 10782multiple platforms. 10783 10784Linux makefile added to generate the compiler on Linux 10785 10786 Source Code: 10787 10788All platform-specific headers have been moved to their own 10789subdirectory, Include/Platform. 10790 10791New source file added, Interpreter/ammutex.c 10792 10793New header file, Include/acstruct.h 10794 10795 Documentation: 10796 10797The programmer reference has been updated for the following new 10798interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 10799 10800 ------------------------------------------ 10801Summary of changes for this label: 02_08_01 10802 10803Core ACPI CA Subsystem: Fixed a problem where an error was 10804incorrectly returned if the return resource buffer was larger than 10805the actual data (in the resource interfaces). 10806 10807References to named objects within packages are resolved to the 10808 10809full pathname string before packages are returned directly (via 10810the AcpiEvaluateObject interface) or indirectly via the resource 10811interfaces. 10812 10813Linux OS Services Layer (OSL): 10814 10815Improved /proc battery interface. 10816 10817 10818Added C-state debugging output and other miscellaneous fixes. 10819 10820ASL Compiler Version X2014: 10821 10822All defined method arguments can now be used as local variables, 10823including the ones that are not actually passed in as parameters. 10824The compiler tracks initialization of the arguments and issues an 10825exception if they are used without prior assignment (just like 10826locals). 10827 10828The -o option now specifies a filename prefix that is used for all 10829output files, including the AML output file. Otherwise, the 10830default behavior is as follows: 1) the AML goes to the file 10831specified in the DSDT. 2) all other output files use the input 10832source filename as the base. 10833 10834 ------------------------------------------ 10835Summary of changes for this label: 01_25_01 10836 10837Core ACPI CA Subsystem: Restructured the implementation of object 10838store support within the interpreter. This includes support for 10839the Store operator as well as any ASL operators that include a 10840target operand. 10841 10842Partially implemented support for Implicit Result-to-Target 10843conversion. This is when a result object is converted on the fly 10844to the type of an existing target object. Completion of this 10845support is pending further analysis of the ACPI specification 10846concerning this matter. 10847 10848CPU-specific code has been removed from the subsystem (hardware 10849directory). 10850 10851New Power Management Timer functions added 10852 10853Linux OS Services Layer (OSL): Moved system state transition code 10854to the core, fixed it, and modified Linux OSL accordingly. 10855 10856Fixed C2 and C3 latency calculations. 10857 10858 10859We no longer use the compilation date for the version message on 10860initialization, but retrieve the version from AcpiGetSystemInfo(). 10861 10862Incorporated for fix Sony VAIO machines. 10863 10864Documentation: The Programmer Reference has been updated and 10865reformatted. 10866 10867 10868ASL Compiler: Version X2013: Fixed a problem where the line 10869numbering and error reporting could get out of sync in the 10870presence of multiple include files. 10871 10872 ------------------------------------------ 10873Summary of changes for this label: 01_15_01 10874 10875Core ACPI CA Subsystem: 10876 10877Implemented support for type conversions in the execution of the 10878ASL Concatenate operator (The second operand is converted to 10879match the type of the first operand before concatenation.) 10880 10881Support for implicit source operand conversion is partially 10882implemented. The ASL source operand types Integer, Buffer, and 10883String are freely interchangeable for most ASL operators and are 10884converted by the interpreter on the fly as required. Implicit 10885Target operand conversion (where the result is converted to the 10886target type before storing) is not yet implemented. 10887 10888Support for 32-bit and 64-bit BCD integers is implemented. 10889 10890Problem fixed where a field read on an aligned field could cause a 10891read past the end of the field. 10892 10893New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 10894does not return a value, but the caller expects one. (The ASL 10895compiler flags this as a warning.) 10896 10897ASL Compiler: 10898 10899Version X2011: 109001. Static typechecking of all operands is implemented. This 10901prevents the use of invalid objects (such as using a Package where 10902an Integer is required) at compile time instead of at interpreter 10903run-time. 109042. The ASL source line is printed with ALL errors and warnings. 109053. Bug fix for source EOF without final linefeed. 109064. Debug option is split into a parse trace and a namespace trace. 109075. Namespace output option (-n) includes initial values for 10908integers and strings. 109096. Parse-only option added for quick syntax checking. 109107. Compiler checks for duplicate ACPI name declarations 10911 10912Version X2012: 109131. Relaxed typechecking to allow interchangeability between 10914strings, integers, and buffers. These types are now converted by 10915the interpreter at runtime. 109162. Compiler reports time taken by each internal subsystem in the 10917debug output file. 10918 10919 10920 ------------------------------------------ 10921Summary of changes for this label: 12_14_00 10922 10923ASL Compiler: 10924 10925This is the first official release of the compiler. Since the 10926compiler requires elements of the Core Subsystem, this label 10927synchronizes everything. 10928 10929------------------------------------------ 10930Summary of changes for this label: 12_08_00 10931 10932 10933Fixed a problem where named references within the ASL definition 10934of both OperationRegions and CreateXXXFields did not work 10935properly. The symptom was an AE_AML_OPERAND_TYPE during 10936initialization of the region/field. This is similar (but not 10937related internally) to the problem that was fixed in the last 10938label. 10939 10940Implemented both 32-bit and 64-bit support for the BCD ASL 10941functions ToBCD and FromBCD. 10942 10943Updated all legal headers to include "2000" in the copyright 10944years. 10945 10946 ------------------------------------------ 10947Summary of changes for this label: 12_01_00 10948 10949Fixed a problem where method invocations within the ASL definition 10950of both OperationRegions and CreateXXXFields did not work 10951properly. The symptom was an AE_AML_OPERAND_TYPE during 10952initialization of the region/field: 10953 10954 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 10955[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 10956(0x3005) 10957 10958Fixed a problem where operators with more than one nested 10959subexpression would fail. The symptoms were varied, by mostly 10960AE_AML_OPERAND_TYPE errors. This was actually a rather serious 10961problem that has gone unnoticed until now. 10962 10963 Subtract (Add (1,2), Multiply (3,4)) 10964 10965Fixed a problem where AcpiGetHandle didn't quite get fixed in the 10966previous build (The prefix part of a relative path was handled 10967incorrectly). 10968 10969Fixed a problem where Operation Region initialization failed if 10970the operation region name was a "namepath" instead of a simple 10971"nameseg". Symptom was an AE_NO_OPERAND error. 10972 10973Fixed a problem where an assignment to a local variable via the 10974indirect RefOf mechanism only worked for the first such 10975assignment. Subsequent assignments were ignored. 10976 10977 ------------------------------------------ 10978Summary of changes for this label: 11_15_00 10979 10980ACPI 2.0 table support with backwards support for ACPI 1.0 and the 109810.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 10982the AML interpreter does NOT have support for the new 2.0 ASL 10983grammar terms at this time. 10984 10985All ACPI hardware access is via the GAS structures in the ACPI 2.0 10986FADT. 10987 10988All physical memory addresses across all platforms are now 64 bits 10989wide. Logical address width remains dependent on the platform 10990(i.e., "void *"). 10991 10992AcpiOsMapMemory interface changed to a 64-bit physical address. 10993 10994The AML interpreter integer size is now 64 bits, as per the ACPI 109952.0 specification. 10996 10997For backwards compatibility with ACPI 1.0, ACPI tables with a 10998revision number less than 2 use 32-bit integers only. 10999 11000Fixed a problem where the evaluation of OpRegion operands did not 11001always resolve them to numbers properly. 11002 11003------------------------------------------ 11004Summary of changes for this label: 10_20_00 11005 11006Fix for CBN_._STA issue. This fix will allow correct access to 11007CBN_ OpRegions when the _STA returns 0x8. 11008 11009Support to convert ACPI constants (Ones, Zeros, One) to actual 11010values before a package object is returned 11011 11012Fix for method call as predicate to if/while construct causing 11013incorrect if/while behavior 11014 11015Fix for Else block package lengths sometimes calculated wrong (if 11016block > 63 bytes) 11017 11018Fix for Processor object length field, was always zero 11019 11020Table load abort if FACP sanity check fails 11021 11022Fix for problem with Scope(name) if name already exists 11023 11024Warning emitted if a named object referenced cannot be found 11025(resolved) during method execution. 11026 11027 11028 11029 11030 11031------------------------------------------ 11032Summary of changes for this label: 9_29_00 11033 11034New table initialization interfaces: AcpiInitializeSubsystem no 11035longer has any parameters AcpiFindRootPointer - Find the RSDP (if 11036necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 11037>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 11038AcpiLoadTables 11039 11040Note: These interface changes require changes to all existing OSDs 11041 11042The PCI_Config default address space handler is always installed 11043at the root namespace object. 11044 11045------------------------------------------- 11046Summary of changes for this label: 09_15_00 11047 11048The new initialization architecture is implemented. New 11049interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 11050AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 11051 11052(Namespace is automatically loaded when a table is loaded) 11053 11054The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1105552 bytes to 32 bytes. There is usually one of these for every 11056namespace object, so the memory savings is significant. 11057 11058Implemented just-in-time evaluation of the CreateField operators. 11059 11060Bug fixes for IA-64 support have been integrated. 11061 11062Additional code review comments have been implemented 11063 11064The so-called "third pass parse" has been replaced by a final walk 11065through the namespace to initialize all operation regions (address 11066spaces) and fields that have not yet been initialized during the 11067execution of the various _INI and REG methods. 11068 11069New file - namespace/nsinit.c 11070 11071------------------------------------------- 11072Summary of changes for this label: 09_01_00 11073 11074Namespace manager data structures have been reworked to change the 11075primary object from a table to a single object. This has 11076resulted in dynamic memory savings of 3X within the namespace and 110772X overall in the ACPI CA subsystem. 11078 11079Fixed problem where the call to AcpiEvFindPciRootBuses was 11080inadvertently left commented out. 11081 11082Reduced the warning count when generating the source with the GCC 11083compiler. 11084 11085Revision numbers added to each module header showing the 11086SourceSafe version of the file. Please refer to this version 11087number when giving us feedback or comments on individual modules. 11088 11089The main object types within the subsystem have been renamed to 11090clarify their purpose: 11091 11092ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 11093ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 11094ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 11095 11096NOTE: no changes to the initialization sequence are included in 11097this label. 11098 11099------------------------------------------- 11100Summary of changes for this label: 08_23_00 11101 11102Fixed problem where TerminateControlMethod was being called 11103multiple times per method 11104 11105Fixed debugger problem where single stepping caused a semaphore to 11106be oversignalled 11107 11108Improved performance through additional parse object caching - 11109added ACPI_EXTENDED_OP type 11110 11111------------------------------------------- 11112Summary of changes for this label: 08_10_00 11113 11114Parser/Interpreter integration: Eliminated the creation of 11115complete parse trees for ACPI tables and control methods. 11116Instead, parse subtrees are created and then deleted as soon as 11117they are processed (Either entered into the namespace or executed 11118by the interpreter). This reduces the use of dynamic kernel 11119memory significantly. (about 10X) 11120 11121Exception codes broken into classes and renumbered. Be sure to 11122recompile all code that includes acexcep.h. Hopefully we won't 11123have to renumber the codes again now that they are split into 11124classes (environment, programmer, AML code, ACPI table, and 11125internal). 11126 11127Fixed some additional alignment issues in the Resource Manager 11128subcomponent 11129 11130Implemented semaphore tracking in the AcpiExec utility, and fixed 11131several places where mutexes/semaphores were being unlocked 11132without a corresponding lock operation. There are no known 11133semaphore or mutex "leaks" at this time. 11134 11135Fixed the case where an ASL Return operator is used to return an 11136unnamed package. 11137 11138------------------------------------------- 11139Summary of changes for this label: 07_28_00 11140 11141Fixed a problem with the way addresses were calculated in 11142AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 11143manifested itself when a Field was created with WordAccess or 11144DwordAccess, but the field unit defined within the Field was less 11145 11146than a Word or Dword. 11147 11148Fixed a problem in AmlDumpOperands() module's loop to pull 11149operands off of the operand stack to display information. The 11150problem manifested itself as a TLB error on 64-bit systems when 11151accessing an operand stack with two or more operands. 11152 11153Fixed a problem with the PCI configuration space handlers where 11154context was getting confused between accesses. This required a 11155change to the generic address space handler and address space 11156setup definitions. Handlers now get both a global handler context 11157(this is the one passed in by the user when executing 11158AcpiInstallAddressSpaceHandler() and a specific region context 11159that is unique to each region (For example, the _ADR, _SEG and 11160_BBN values associated with a specific region). The generic 11161function definitions have changed to the following: 11162 11163typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 11164UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 11165*HandlerContext, // This used to be void *Context void 11166*RegionContext); // This is an additional parameter 11167 11168typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 11169RegionHandle, UINT32 Function, void *HandlerContext, void 11170**RegionContext); // This used to be **ReturnContext 11171 11172------------------------------------------- 11173Summary of changes for this label: 07_21_00 11174 11175Major file consolidation and rename. All files within the 11176interpreter have been renamed as well as most header files. This 11177was done to prevent collisions with existing files in the host 11178OSs -- filenames such as "config.h" and "global.h" seem to be 11179quite common. The VC project files have been updated. All 11180makefiles will require modification. 11181 11182The parser/interpreter integration continues in Phase 5 with the 11183implementation of a complete 2-pass parse (the AML is parsed 11184twice) for each table; This avoids the construction of a huge 11185parse tree and therefore reduces the amount of dynamic memory 11186required by the subsystem. Greater use of the parse object cache 11187means that performance is unaffected. 11188 11189Many comments from the two code reviews have been rolled in. 11190 11191The 64-bit alignment support is complete. 11192 11193------------------------------------------- 11194Summary of changes for this label: 06_30_00 11195 11196With a nod and a tip of the hat to the technology of yesteryear, 11197we've added support in the source code for 80 column output 11198devices. The code is now mostly constrained to 80 columns or 11199less to support environments and editors that 1) cannot display 11200or print more than 80 characters on a single line, and 2) cannot 11201disable line wrapping. 11202 11203A major restructuring of the namespace data structure has been 11204completed. The result is 1) cleaner and more 11205understandable/maintainable code, and 2) a significant reduction 11206in the dynamic memory requirement for each named ACPI object 11207(almost half). 11208 11209------------------------------------------- 11210Summary of changes for this label: 06_23_00 11211 11212Linux support has been added. In order to obtain approval to get 11213the ACPI CA subsystem into the Linux kernel, we've had to make 11214quite a few changes to the base subsystem that will affect all 11215users (all the changes are generic and OS- independent). The 11216effects of these global changes have been somewhat far reaching. 11217Files have been merged and/or renamed and interfaces have been 11218renamed. The major changes are described below. 11219 11220Osd* interfaces renamed to AcpiOs* to eliminate namespace 11221pollution/confusion within our target kernels. All OSD 11222interfaces must be modified to match the new naming convention. 11223 11224Files merged across the subsystem. A number of the smaller source 11225and header files have been merged to reduce the file count and 11226increase the density of the existing files. There are too many 11227to list here. In general, makefiles that call out individual 11228files will require rebuilding. 11229 11230Interpreter files renamed. All interpreter files now have the 11231prefix am* instead of ie* and is*. 11232 11233Header files renamed: The acapi.h file is now acpixf.h. The 11234acpiosd.h file is now acpiosxf.h. We are removing references to 11235the acronym "API" since it is somewhat windowsy. The new name is 11236"external interface" or xface or xf in the filenames.j 11237 11238 11239All manifest constants have been forced to upper case (some were 11240mixed case.) Also, the string "ACPI_" has been prepended to many 11241(not all) of the constants, typedefs, and structs. 11242 11243The globals "DebugLevel" and "DebugLayer" have been renamed 11244"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 11245 11246All other globals within the subsystem are now prefixed with 11247"AcpiGbl_" Internal procedures within the subsystem are now 11248prefixed with "Acpi" (with only a few exceptions). The original 11249two-letter abbreviation for the subcomponent remains after "Acpi" 11250- for example, CmCallocate became AcpiCmCallocate. 11251 11252Added a source code translation/conversion utility. Used to 11253generate the Linux source code, it can be modified to generate 11254other types of source as well. Can also be used to cleanup 11255existing source by removing extraneous spaces and blank lines. 11256Found in tools/acpisrc/* 11257 11258OsdUnMapMemory was renamed to OsdUnmapMemory and then 11259AcpiOsUnmapMemory. (UnMap became Unmap). 11260 11261A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 11262When set to one, this indicates that the caller wants to use the 11263 11264semaphore as a mutex, not a counting semaphore. ACPI CA uses 11265both types. However, implementers of this call may want to use 11266different OS primitives depending on the type of semaphore 11267requested. For example, some operating systems provide separate 11268 11269"mutex" and "semaphore" interfaces - where the mutex interface is 11270much faster because it doesn't have all the overhead of a full 11271semaphore implementation. 11272 11273Fixed a deadlock problem where a method that accesses the PCI 11274address space can block forever if it is the first access to the 11275space. 11276 11277------------------------------------------- 11278Summary of changes for this label: 06_02_00 11279 11280Support for environments that cannot handle unaligned data 11281accesses (e.g. firmware and OS environments devoid of alignment 11282handler technology namely SAL/EFI and the IA-64 Linux kernel) has 11283been added (via configurable macros) in these three areas: - 11284Transfer of data from the raw AML byte stream is done via byte 11285moves instead of word/dword/qword moves. - External objects are 11286aligned within the user buffer, including package elements (sub- 11287objects). - Conversion of name strings to UINT32 Acpi Names is now 11288done byte-wise. 11289 11290The Store operator was modified to mimic Microsoft's 11291implementation when storing to a Buffer Field. 11292 11293Added a check of the BM_STS bit before entering C3. 11294 11295The methods subdirectory has been obsoleted and removed. A new 11296file, cmeval.c subsumes the functionality. 11297 11298A 16-bit (DOS) version of AcpiExec has been developed. The 11299makefile is under the acpiexec directory. 11300