1---------------------------------------- 28 January 2016. Summary of changes for version 20160108: 3 41) ACPICA kernel-resident subsystem: 5 6Updated all ACPICA copyrights and signons to 2016: Added the 2016 7copyright to all source code module headers and utility/tool signons. 8This includes the standard Linux dual-license header. This affects 9virtually every file in the ACPICA core subsystem, iASL compiler, all 10ACPICA utilities, and the ACPICA test suite. 11 12Fixed a regression introduced in version 20151218 concerning the 13execution of so-called module-level ASL/AML code. Namespace objects 14created under a module-level If() construct were not properly/fully 15entered into the namespace and could cause an interpreter fault when 16accessed. 17 18Example Code and Data Size: These are the sizes for the OS-independent 19acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 20debug version of the code includes the debug output trace mechanism and 21has a much larger code and data size. 22 23Current Release: 24 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 25 Debug Version: 200.4K Code, 81.9K Data, 282.4K Total 26 Previous Release: 27 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 28 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 29 30 312) iASL Compiler/Disassembler and Tools: 32 33Fixed a problem with the compilation of the GpioIo and GpioInt resource 34descriptors. The _PIN field name was incorrectly defined to be an array 35of 32-bit values, but the _PIN values are in fact 16 bits each. This 36would cause incorrect bit width warnings when using Word (16-bit) fields 37to access the descriptors. 38 39 40---------------------------------------- 4118 December 2015. Summary of changes for version 20151218: 42 431) ACPICA kernel-resident subsystem: 44 45Implemented per-AML-table execution of "module-level code" as individual 46ACPI tables are loaded into the namespace during ACPICA initialization. 47In other words, any module-level code within an AML table is executed 48immediately after the table is loaded, instead of batched and executed 49after all of the tables have been loaded. This provides compatibility 50with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng, 51David Box. 52 53To fully support the feature above, the default operation region handlers 54for the SystemMemory, SystemIO, and PCI_Config address spaces are now 55installed before any ACPI tables are loaded. This enables module-level 56code to access these address spaces during the table load and module- 57level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David 58Box. 59 60Implemented several changes to the internal _REG support in conjunction 61with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples 62utilities for the changes above. Although these tools were changed, host 63operating systems that simply use the default handlers for SystemMemory, 64SystemIO, and PCI_Config spaces should not require any update. Lv Zheng. 65 66For example, in the code below, DEV1 is conditionally added to the 67namespace by the DSDT via module-level code that accesses an operation 68region. The SSDT references DEV1 via the Scope operator. DEV1 must be 69created immediately after the DSDT is loaded in order for the SSDT to 70successfully reference DEV1. Previously, this code would cause an 71AE_NOT_EXIST exception during the load of the SSDT. Now, this code is 72fully supported by ACPICA. 73 74 DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1) 75 { 76 OperationRegion (OPR1, SystemMemory, 0x400, 32) 77 Field (OPR1, AnyAcc, NoLock, Preserve) 78 { 79 FLD1, 1 80 } 81 If (FLD1) 82 { 83 Device (\DEV1) 84 { 85 } 86 } 87 } 88 DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1) 89 { 90 External (\DEV1, DeviceObj) 91 Scope (\DEV1) 92 { 93 } 94 } 95 96Fixed an AML interpreter problem where control method invocations were 97not handled correctly when the invocation was itself a SuperName argument 98to another ASL operator. In these cases, the method was not invoked. 99ACPICA BZ 1002. Affects the following ASL operators that have a SuperName 100argument: 101 Store 102 Acquire, Wait 103 CondRefOf, RefOf 104 Decrement, Increment 105 Load, Unload 106 Notify 107 Signal, Release, Reset 108 SizeOf 109 110Implemented automatic String-to-ObjectReference conversion support for 111packages returned by predefined names (such as _DEP). A common BIOS error 112is to add double quotes around an ObjectReference namepath, which turns 113the reference into an unexpected string object. This support detects the 114problem and corrects it before the package is returned to the caller that 115invoked the method. Lv Zheng. 116 117Implemented extensions to the Concatenate operator. Concatenate now 118accepts any type of object, it is not restricted to simply 119Integer/String/Buffer. For objects other than these 3 basic data types, 120the argument is treated as a string containing the name of the object 121type. This expands the utility of Concatenate and the Printf/Fprintf 122macros. ACPICA BZ 1222. 123 124Cleaned up the output of the ASL Debug object. The timer() value is now 125optional and no longer emitted by default. Also, the basic data types of 126Integer/String/Buffer are simply emitted as their values, without a data 127type string -- since the data type is obvious from the output. ACPICA BZ 1281221. 129 130Example Code and Data Size: These are the sizes for the OS-independent 131acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 132debug version of the code includes the debug output trace mechanism and 133has a much larger code and data size. 134 135 Current Release: 136 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 137 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 138 Previous Release: 139 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 140 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 141 142 1432) iASL Compiler/Disassembler and Tools: 144 145iASL: Fixed some issues with the ASL Include() operator. This operator 146was incorrectly defined in the iASL parser rules, causing a new scope to 147be opened for the code within the include file. This could lead to 148several issues, including allowing ASL code that is technically illegal 149and not supported by AML interpreters. Note, this does not affect the 150related #include preprocessor operator. ACPICA BZ 1212. 151 152iASL/Disassembler: Implemented support for the ASL ElseIf operator. This 153operator is essentially an ASL macro since there is no AML opcode 154associated with it. The code emitted by the iASL compiler for ElseIf is 155an Else opcode followed immediately by an If opcode. The disassembler 156will now emit an ElseIf if it finds an Else immediately followed by an 157If. This simplifies the decoded ASL, especially for deeply nested 158If..Else and large Switch constructs. Thus, the disassembled code more 159closely follows the original source ASL. ACPICA BZ 1211. Example: 160 161 Old disassembly: 162 Else 163 { 164 If (Arg0 == 0x02) 165 { 166 Local0 = 0x05 167 } 168 } 169 170 New disassembly: 171 ElseIf (Arg0 == 0x02) 172 { 173 Local0 = 0x05 174 } 175 176AcpiExec: Added support for the new module level code behavior and the 177early region installation. This required a small change to the 178initialization, since AcpiExec must install its own operation region 179handlers. 180 181AcpiExec: Added support to make the debug object timer optional. Default 182is timer disabled. This cleans up the debug object output -- the timer 183data is rarely used. 184 185AcpiExec: Multiple ACPI tables are now loaded in the order that they 186appear on the command line. This can be important when there are 187interdependencies/references between the tables. 188 189iASL/Templates. Add support to generate template files with multiple 190SSDTs within a single output file. Also added ommand line support to 191specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ 1921223, 1225. 193 194 195---------------------------------------- 19624 November 2015. Summary of changes for version 20151124: 197 1981) ACPICA kernel-resident subsystem: 199 200Fixed a possible regression for a previous update to FADT handling. The 201FADT no longer has a fixed table ID, causing some issues with code that 202was hardwired to a specific ID. Lv Zheng. 203 204Fixed a problem where the method auto-serialization could interfere with 205the current SyncLevel. This change makes the auto-serialization support 206transparent to the SyncLevel support and management. 207 208Removed support for the _SUB predefined name in AcpiGetObjectInfo. This 209interface is intended for early access to the namespace during the 210initial namespace device discovery walk. The _SUB method has been seen to 211access operation regions in some cases, causing errors because the 212operation regions are not fully initialized. 213 214AML Debugger: Fixed some issues with the terminate/quit/exit commands 215that can cause faults. Lv Zheng. 216 217AML Debugger: Add thread ID support so that single-step mode only applies 218to the AML Debugger thread. This prevents runtime errors within some 219kernels. Lv Zheng. 220 221Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx 222methods that are invoked by this interface are optional, removed warnings 223emitted for the case where one or more of these methods do not exist. 224ACPICA BZ 1208, original change by Prarit Bhargava. 225 226Made a major pass through the entire ACPICA source code base to 227standardize formatting that has diverged a bit over time. There are no 228functional changes, but this will of course cause quite a few code 229differences from the previous ACPICA release. 230 231Example Code and Data Size: These are the sizes for the OS-independent 232acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 233debug version of the code includes the debug output trace mechanism and 234has a much larger code and data size. 235 236 Current Release: 237 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 238 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 239 Previous Release: 240 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 241 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 242 243 2442) iASL Compiler/Disassembler and Tools: 245 246iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple 247definition blocks within a single ASL file and the resulting AML file. 248Support for this type of file was also added to the various tools that 249use binary AML files: acpiexec, acpixtract, and the AML disassembler. The 250example code below shows two definition blocks within the same file: 251 252 DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template", 2530x12345678) 254 { 255 } 256 DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01) 257 { 258 } 259 260iASL: Enhanced typechecking for the Name() operator. All expressions for 261the value of the named object must be reduced/folded to a single constant 262at compile time, as per the ACPI specification (the AML definition of 263Name()). 264 265iASL: Fixed some code indentation issues for the -ic and -ia options (C 266and assembly headers). Now all emitted code correctly begins in column 1. 267 268iASL: Added an error message for an attempt to open a Scope() on an 269object defined in an SSDT. The DSDT is always loaded into the namespace 270first, so any attempt to open a Scope on an SSDT object will fail at 271runtime. 272 273 274---------------------------------------- 27530 September 2015. Summary of changes for version 20150930: 276 2771) ACPICA kernel-resident subsystem: 278 279Debugger: Implemented several changes and bug fixes to assist support for 280the in-kernel version of the AML debugger. Lv Zheng. 281- Fix the "predefined" command for in-kernel debugger. 282- Do not enter debug command loop for the help and version commands. 283- Disallow "execute" command during execution/single-step of a method. 284 285Interpreter: Updated runtime typechecking for all operators that have 286target operands. The operand is resolved and validated that it is legal. 287For example, the target cannot be a non-data object such as a Device, 288Mutex, ThermalZone, etc., as per the ACPI specification. 289 290Debugger: Fixed the double-mutex user I/O handshake to work when local 291deadlock detection is enabled. 292 293Debugger: limited display of method locals and arguments (LocalX and 294ArgX) to only those that have actually been initialized. This prevents 295lines of extraneous output. 296 297Updated the definition of the NFIT table to correct the bit polarity of 298one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED 299 300Example Code and Data Size: These are the sizes for the OS-independent 301acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 302debug version of the code includes the debug output trace mechanism and 303has a much larger code and data size. 304 305 Current Release: 306 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 307 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 308 Previous Release: 309 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 310 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 311 312 3132) iASL Compiler/Disassembler and Tools: 314 315iASL: Improved the compile-time typechecking for operands of many of the 316ASL operators: 317 318-- Added an option to disable compiler operand/operator typechecking (- 319ot). 320 321-- For the following operators, the TermArg operands are now validated 322when possible to be Integer data objects: BankField, OperationRegion, 323DataTableRegion, Buffer, and Package. 324 325-- Store (Source, Target): Both the source and target operands are 326resolved and checked that the operands are both legal. For example, 327neither operand can be a non-data object such as a Device, Mutex, 328ThermalZone, etc. Note, as per the ACPI specification, the CopyObject 329operator can be used to store an object to any type of target object. 330 331-- Store (Source, Target): If the source is a Package object, the target 332must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target 333is a Package, the source must also be a Package. 334 335-- Store (Source, Target): A warning is issued if the source and target 336resolve to the identical named object. 337 338-- Store (Source, <method invocation>): An error is generated for the 339target method invocation, as this construct is not supported by the AML 340interpreter. 341 342-- For all ASL math and logic operators, the target operand must be a 343data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This 344includes the function return value also. 345 346-- External declarations are also included in the typechecking where 347possible. External objects defined using the UnknownObj keyword cannot be 348typechecked, however. 349 350iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index 351operator: 352- Legacy code: Index(PKG1, 3) 353- New ASL+ code: PKG1[3] 354This completes the ACPI 6.0 ASL+ support as it was the only operator not 355supported. 356 357iASL: Fixed the file suffix for the preprocessor output file (.i). Two 358spaces were inadvertently appended to the filename, causing file access 359and deletion problems on some systems. 360 361ASL Test Suite (ASLTS): Updated the master makefile to generate all 362possible compiler output files when building the test suite -- thus 363exercising these features of the compiler. These files are automatically 364deleted when the test suite exits. 365 366 367---------------------------------------- 36818 August 2015. Summary of changes for version 20150818: 369 3701) ACPICA kernel-resident subsystem: 371 372Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv 373Zheng. ACPICA BZ 1186. 374 375Completed development to ensure that the ACPICA Disassembler and Debugger 376are fully standalone components of ACPICA. Removed cross-component 377dependences. Lv Zheng. 378 379The max-number-of-AML-loops is now runtime configurable (previously was 380compile-time only). This is essentially a loop timeout to force-abort 381infinite AML loops. ACPCIA BZ 1192. 382 383Debugger: Cleanup output to dump ACPI names and namepaths without any 384trailing underscores. Lv Zheng. ACPICA BZ 1135. 385 386Removed unnecessary conditional compilations across the Debugger and 387Disassembler components where entire modules could be left uncompiled. 388 389The aapits test is deprecated and has been removed from the ACPICA git 390tree. The test has never been completed and has not been maintained, thus 391becoming rather useless. ACPICA BZ 1015, 794. 392 393A batch of small changes to close bugzilla and other reports: 394- Remove duplicate code for _PLD processing. ACPICA BZ 1176. 395- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185. 396- iASL: Support POSIX yacc again in makefile. Jung-uk Kim. 397- ACPI table support: general cleanup and simplification. Lv Zheng, Bob 398Moore. 399- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable. 400ACPICA BZ 1184. 401- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML 402operators. 403- Debugger: Split debugger initialization/termination interfaces. Lv 404Zheng. 405- AcpiExec: Emit OemTableId for SSDTs during the load phase for table 406identification. 407- AcpiExec: Add debug message during _REG method phase during table 408load/init. 409- AcpiNames: Fix a regression where some output was missing and no longer 410emitted. 411- Debugger: General cleanup and simplification. Lv Zheng. 412- Disassembler: Cleanup use of several global option variables. Lv Zheng. 413 414Example Code and Data Size: These are the sizes for the OS-independent 415acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 416debug version of the code includes the debug output trace mechanism and 417has a much larger code and data size. 418 419 Current Release: 420 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 421 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 422 Previous Release: 423 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 424 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 425 426 4272) iASL Compiler/Disassembler and Tools: 428 429AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT 430were not handled properly and caused load errors. Now, properly invoke 431and use the ACPICA auto-reallocate mechanism for ACPI table data 432structures. ACPICA BZ 1188 433 434AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA 435BZ 1190. 436 437AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For 438AcpiExec, this means that no control methods (like _REG/_INI/_STA) are 439executed during initialization. ACPICA BZ 1187, 1189. 440 441iASL/Disassembler: Implemented a prototype "listing" mode that emits AML 442that corresponds to each disassembled ASL statement, to simplify 443debugging. ACPICA BZ 1191. 444 445Debugger: Add option to the "objects" command to display a summary of the 446current namespace objects (Object type and count). This is displayed if 447the command is entered with no arguments. 448 449AcpiNames: Add -x option to specify debug level, similar to AcpiExec. 450 451 452---------------------------------------- 45317 July 2015. Summary of changes for version 20150717: 454 4551) ACPICA kernel-resident subsystem: 456 457Improved the partitioning between the Debugger and Disassembler 458components. This allows the Debugger to be used standalone within kernel 459code without the Disassembler (which is used for single stepping also). 460This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng. 461 462Debugger: Implemented a new command to trace the execution of control 463methods (Trace). This is especially useful for the in-kernel version of 464the debugger when file I/O may not be available for method trace output. 465See the ACPICA reference for more information. Lv Zheng. 466 467Moved all C library prototypes (used for the local versions of these 468functions when requested) to a new header, acclib.h 469Cleaned up the use of non-ANSI C library functions. These functions are 470implemented locally in ACPICA. Moved all such functions to a common 471source file, utnonansi.c 472 473Debugger: Fixed a problem with the "!!" command (get last command 474executed) where the debugger could enter an infinite loop and eventually 475crash. 476 477Removed the use of local macros that were used for some of the standard C 478library functions to automatically cast input parameters. This mostly 479affected the is* functions where the input parameter is defined to be an 480int. This required a few modifications to the main ACPICA source code to 481provide casting for these functions and eliminate possible compiler 482warnings for these parameters. 483 484Across the source code, added additional status/error checking to resolve 485issues discovered by static source code analysis tools such as Coverity. 486 487Example Code and Data Size: These are the sizes for the OS-independent 488acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 489debug version of the code includes the debug output trace mechanism and 490has a much larger code and data size. 491 492 Current Release: 493 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 494 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 495 Previous Release: 496 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 497 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 498 499 5002) iASL Compiler/Disassembler and Tools: 501 502iASL: Fixed a regression where the device map file feature no longer 503worked properly when used in conjunction with the disassembler. It only 504worked properly with the compiler itself. 505 506iASL: Implemented a new warning for method LocalX variables that are set 507but never used (similar to a C compiler such as gcc). This also applies 508to ArgX variables that are not defined by the parent method, and are 509instead (legally) used as local variables. 510 511iASL/Preprocessor: Finished the pass-through of line numbers from the 512preprocessor to the compiler. This ensures that compiler errors/warnings 513have the correct original line numbers and filenames, regardless of any 514#include files. 515 516iASL/Preprocessor: Fixed a couple of issues with comment handling and the 517pass-through of comments to the preprocessor output file (which becomes 518the compiler input file). Also fixed a problem with // comments that 519appear after a math expression. 520 521iASL: Added support for the TCPA server table to the table compiler and 522template generator. (The client table was already previously supported) 523 524iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to 525identify the iASL compiler. 526 527Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined 528multiple times. The new names are ACPI_SIGN_NEGATIVE and 529ACPI_SIGN_POSITIVE. 530 531AcpiHelp: Update to expand help messages for the iASL preprocessor 532directives. 533 534 535---------------------------------------- 53619 June 2015. Summary of changes for version 20150619: 537 538Two regressions in version 20150616 have been addressed: 539 540Fixes some problems/issues with the C library macro removal (ACPI_STRLEN, 541etc.) This update changes ACPICA to only use the standard headers for 542functions, or the prototypes for the local versions of the C library 543functions. Across the source code, this required some additional casts 544for some Clib invocations for portability. Moved all local prototypes to 545a new file, acclib.h 546 547Fixes several problems with recent changes to the handling of the FACS 548table that could cause some systems not to boot. 549 550 551---------------------------------------- 55216 June 2015. Summary of changes for version 20150616: 553 554 5551) ACPICA kernel-resident subsystem: 556 557Across the entire ACPICA source code base, the various macros for the C 558library functions (such as ACPI_STRLEN, etc.) have been removed and 559replaced by the standard C library names (strlen, etc.) The original 560purpose for these macros is no longer applicable. This simplification 561reduces the number of macros used in the ACPICA source code 562significantly, improving readability and maintainability. 563 564Implemented support for a new ACPI table, the OSDT. This table, the 565"override" SDT, can be loaded directly by the host OS at boot time. It 566enables the replacement of existing namespace objects that were installed 567via the DSDT and/or SSDTs. The primary purpose for this is to replace 568buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated 569for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob 570Moore. 571 572Added support for systems with (improperly) two FACS tables -- a "32-bit" 573table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit 574X field). This change will support both automatically. There continues to 575be systems found with this issue. This support requires a change to the 576AcpiSetFirmwareWakingVector interface. Also, a public global variable has 577been added to allow the host to select which FACS is desired 578(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more 579details Lv Zheng. 580 581Added a new feature to allow for systems that do not contain an FACS. 582Although this is already supported on hardware-reduced platforms, the 583feature has been extended for all platforms. The reasoning is that we do 584not want to abort the entire ACPICA initialization just because the 585system is seriously buggy and has no FACS. 586 587Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were 588not correctly transcribed from the ACPI specification in ACPICA version 58920150515. 590 591Implemented support for the _CLS object in the AcpiGetObjectInfo external 592interface. 593 594Updated the definitions of the TCPA and TPM2 ACPI tables to the more 595recent TCG ACPI Specification, December 14, 2014. Table disassembler and 596compiler also updated. Note: The TCPA "server" table is not supported by 597the disassembler/table-compiler at this time. 598 599ACPI 6.0: Added definitions for the new GIC version field in the MADT. 600 601Example Code and Data Size: These are the sizes for the OS-independent 602acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 603debug version of the code includes the debug output trace mechanism and 604has a much larger code and data size. 605 606 Current Release: 607 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 608 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 609 Previous Release: 610 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 611 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 612 613 6142) iASL Compiler/Disassembler and Tools: 615 616Disassembler: Fixed a problem with the new symbolic operator disassembler 617where incorrect ASL code could be emitted in some cases for the "non- 618commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and 619ShiftRight. The actual problem cases seem to be rather unusual in common 620ASL code, however. David Box. 621 622Modified the linux version of acpidump to obtain ACPI tables from not 623just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv 624Zheng. 625 626iASL: Fixed a problem where the user preprocessor output file (.i) 627contained extra data that was not expected. The compiler was using this 628file as a temporary file and passed through #line directives in order to 629keep compiler error messages in sync with the input file and line number 630across multiple include files. The (.i) is no longer a temporary file as 631the compiler uses a new, different file for the original purpose. 632 633iASL: Fixed a problem where comments within the original ASL source code 634file were not passed through to the preprocessor output file, nor any 635listing files. 636 637iASL: Fixed some issues for the handling of the "#include" preprocessor 638directive and the similar (but not the same) "Include" ASL operator. 639 640iASL: Add support for the new OSDT in both the disassembler and compiler. 641 642iASL: Fixed a problem with the constant folding support where a Buffer 643object could be incorrectly generated (incorrectly formed) during a 644conversion to a Store() operator. 645 646AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new 647description text for the _REV predefined name. _REV now permanently 648returns 2, as per the ACPI 6.0 specification. 649 650Debugger: Enhanced the output of the Debug ASL object for references 651produced by the Index operator. For Buffers and strings, only output the 652actual byte pointed to by the index. For packages, only print the single 653package element decoded by the index. Previously, the entire 654buffer/string/package was emitted. 655 656iASL/Table-compiler: Fixed a regression where the "generic" data types 657were no longer recognized, causing errors. 658 659 660---------------------------------------- 66115 May 2015. Summary of changes for version 20150515: 662 663This release implements most of ACPI 6.0 as described below. 664 6651) ACPICA kernel-resident subsystem: 666 667Implemented runtime argument checking and return value checking for all 668new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI, 669_MTL, _PRR, _RDI, _RST, _TFP, _TSN. 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 673debug version of the code includes the debug output trace mechanism and 674has a much larger code and data size. 675 676 Current Release: 677 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 678 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 679 Previous Release: 680 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 681 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 682 683 6842) iASL Compiler/Disassembler and Tools: 685 686iASL compiler: Added compile-time support for all new ACPI 6.0 predefined 687names (argument count validation and return value typechecking.) 688 689iASL disassembler and table compiler: implemented support for all new 690ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV. 691 692iASL disassembler and table compiler: Added ACPI 6.0 changes to existing 693tables: FADT, MADT. 694 695iASL preprocessor: Added a new directive to enable inclusion of binary 696blobs into ASL code. The new directive is #includebuffer. It takes a 697binary file as input and emits a named ascii buffer object into the ASL 698code. 699 700AcpiHelp: Added support for all new ACPI 6.0 predefined names. 701 702AcpiHelp: Added a new option, -d, to display all iASL preprocessor 703directives. 704 705AcpiHelp: Added a new option, -t, to display all known/supported ACPI 706tables. 707 708 709---------------------------------------- 71010 April 2015. Summary of changes for version 20150410: 711 712Reverted a change introduced in version 20150408 that caused 713a regression in the disassembler where incorrect operator 714symbols could be emitted. 715 716 717---------------------------------------- 71808 April 2015. Summary of changes for version 20150408: 719 720 7211) ACPICA kernel-resident subsystem: 722 723Permanently set the return value for the _REV predefined name. It now 724returns 2 (was 5). This matches other ACPI implementations. _REV will be 725deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2 726for ACPI 2.0 and later. It should never be used to differentiate or 727identify operating systems. 728 729Added the "Windows 2015" string to the _OSI support. ACPICA will now 730return TRUE to a query with this string. 731 732Fixed several issues with the local version of the printf function. 733 734Added the C99 compiler option (-std=c99) to the Unix makefiles. 735 736 Current Release: 737 Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total 738 Debug Version: 195.2K Code, 80.7K Data, 275.9K Total 739 Previous Release: 740 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 741 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 742 743 7442) iASL Compiler/Disassembler and Tools: 745 746iASL: Implemented an enhancement to the constant folding feature to 747transform the parse tree to a simple Store operation whenever possible: 748 Add (2, 3, X) ==> is converted to: Store (5, X) 749 X = 2 + 3 ==> is converted to: Store (5, X) 750 751Updated support for the SLIC table (Software Licensing Description Table) 752in both the Data Table compiler and the disassembler. The SLIC table 753support now conforms to "Microsoft Software Licensing Tables (SLIC and 754MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data 755following the ACPI header is now defined to be "Proprietary Data", and as 756such, can only be entered or displayed as a hex data block. 757 758Implemented full support for the MSDM table as described in the document 759above. Note: The format of MSDM is similar to SLIC. Any MSDM data 760following the ACPI header is defined to be "Proprietary Data", and can 761only be entered or displayed as a hex data block. 762 763Implemented the -Pn option for the iASL Table Compiler (was only 764implemented for the ASL compiler). This option disables the iASL 765preprocessor. 766 767Disassembler: For disassembly of Data Tables, added a comment field 768around the Ascii equivalent data that is emitted as part of the "Raw 769Table Data" block. This prevents the iASL Preprocessor from possible 770confusion if/when the table is compiled. 771 772Disassembler: Added an option (-df) to force the disassembler to assume 773that the table being disassembled contains valid AML. This feature is 774useful for disassembling AML files that contain ACPI signatures other 775than DSDT or SSDT (such as OEMx or other signatures). 776 777Changes for the EFI version of the tools: 7781) Fixed a build error/issue 7792) Fixed a cast warning 780 781iASL: Fixed a path issue with the __FILE__ operator by making the 782directory prefix optional within the internal SplitInputFilename 783function. 784 785Debugger: Removed some unused global variables. 786 787Tests: Updated the makefile for proper generation of the AAPITS suite. 788 789 790---------------------------------------- 79104 February 2015. Summary of changes for version 20150204: 792 793ACPICA kernel-resident subsystem: 794 795Updated all ACPICA copyrights and signons to 2014. Added the 2014 796copyright to all module headers and signons, including the standard Linux 797header. This affects virtually every file in the ACPICA core subsystem, 798iASL compiler, all ACPICA utilities, and the test suites. 799 800Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues. 801A raw gpe handling mechanism was created to allow better handling of GPE 802storms that aren't easily managed by the normal handler. The raw handler 803allows disabling/renabling of the the GPE so that interrupt storms can be 804avoided in cases where events cannot be timely serviced. In this 805scenario, handlers should use the AcpiSetGpe() API to disable/enable the 806GPE. This API will leave the reference counts undisturbed, thereby 807preventing unintentional clearing of the GPE when the intent in only to 808temporarily disable it. Raw handlers allow enabling and disabling of a 809GPE by removing GPE register locking. As such, raw handlers much provide 810their own locks while using GPE API's to protect access to GPE data 811structures. 812Lv Zheng 813 814Events: Always modify GPE registers under the GPE lock. 815Applies GPE lock around AcpiFinishGpe() to protect access to GPE register 816values. Reported as bug by joe.liu@apple.com. 817 818Unix makefiles: Separate option to disable optimizations and 819_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the 820NOOPT disable option and creates a separate flag (NOFORTIFY) for this 821purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined 822errors when building ACPICA. This allows disabling the option without 823also having to disable optimazations. 824David Box 825 826 Current Release: 827 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 828 Debug Version: 199.2K Code, 82.4K Data, 281.6K Total 829 830-- 831-------------------------------------- 83207 November 2014. Summary of changes for version 20141107: 833 834This release is available at https://acpica.org/downloads 835 836This release introduces and implements language extensions to ASL that 837provide support for symbolic ("C-style") operators and expressions. These 838language extensions are known collectively as ASL+. 839 840 8411) iASL Compiler/Disassembler and Tools: 842 843Disassembler: Fixed a problem with disassembly of the UartSerialBus 844macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E. 845Box. 846 847Disassembler: Fixed the Unicode macro support to add escape sequences. 848All non-printable ASCII values are emitted as escape sequences, as well 849as the standard escapes for quote and backslash. Ensures that the 850disassembled macro can be correctly recompiled. 851 852iASL: Added Printf/Fprintf macros for formatted output. These macros are 853translated to existing AML Concatenate and Store operations. Printf 854writes to the ASL Debug object. Fprintf allows the specification of an 855ASL name as the target. Only a single format specifier is required, %o, 856since the AML interpreter dynamically converts objects to the required 857type. David E. Box. 858 859 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 860 (Concatenate (Concatenate (Concatenate ("", Arg0), 861 ": Unexpected value for "), Arg1), ", "), Arg2), 862 " at line "), Arg3), Debug) 863 864 (new) Printf ("%o: Unexpected value for %o, %o at line %o", 865 Arg0, Arg1, Arg2, Arg3) 866 867 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 868 ("", Arg1), ": "), Arg0), " Successful"), STR1) 869 870 (new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0) 871 872iASL: Added debug options (-bp, -bt) to dynamically prune levels of the 873ASL parse tree before the AML code is generated. This allows blocks of 874ASL code to be removed in order to help locate and identify problem 875devices and/or code. David E. Box. 876 877AcpiExec: Added support (-fi) for an optional namespace object 878initialization file. This file specifies initial values for namespace 879objects as necessary for debugging and testing different ASL code paths 880that may be taken as a result of BIOS options. 881 882 8832) Overview of symbolic operator support for ASL (ASL+) 884------------------------------------------------------- 885 886As an extension to the ASL language, iASL implements support for symbolic 887(C-style) operators for math and logical expressions. This can greatly 888simplify ASL code as well as improve both readability and 889maintainability. These language extensions can exist concurrently with 890all legacy ASL code and expressions. 891 892The symbolic extensions are 100% compatible with existing AML 893interpreters, since no new AML opcodes are created. To implement the 894extensions, the iASL compiler transforms the symbolic expressions into 895the legacy ASL/AML equivalents at compile time. 896 897Full symbolic expressions are supported, along with the standard C 898precedence and associativity rules. 899 900Full disassembler support for the symbolic expressions is provided, and 901creates an automatic migration path for existing ASL code to ASL+ code 902via the disassembly process. By default, the disassembler now emits ASL+ 903code with symbolic expressions. An option (-dl) is provided to force the 904disassembler to emit legacy ASL code if desired. 905 906Below is the complete list of the currently supported symbolic operators 907with examples. See the iASL User Guide for additional information. 908 909 910ASL+ Syntax Legacy ASL Equivalent 911----------- --------------------- 912 913 // Math operators 914 915Z = X + Y Add (X, Y, Z) 916Z = X - Y Subtract (X, Y, Z) 917Z = X * Y Multiply (X, Y, Z) 918Z = X / Y Divide (X, Y, , Z) 919Z = X % Y Mod (X, Y, Z) 920Z = X << Y ShiftLeft (X, Y, Z) 921Z = X >> Y ShiftRight (X, Y, Z) 922Z = X & Y And (X, Y, Z) 923Z = X | Y Or (X, Y, Z) 924Z = X ^ Y Xor (X, Y, Z) 925Z = ~X Not (X, Z) 926X++ Increment (X) 927X-- Decrement (X) 928 929 // Logical operators 930 931(X == Y) LEqual (X, Y) 932(X != Y) LNotEqual (X, Y) 933(X < Y) LLess (X, Y) 934(X > Y) LGreater (X, Y) 935(X <= Y) LLessEqual (X, Y) 936(X >= Y) LGreaterEqual (X, Y) 937(X && Y) LAnd (X, Y) 938(X || Y) LOr (X, Y) 939(!X) LNot (X) 940 941 // Assignment and compound assignment operations 942 943X = Y Store (Y, X) 944X += Y Add (X, Y, X) 945X -= Y Subtract (X, Y, X) 946X *= Y Multiply (X, Y, X) 947X /= Y Divide (X, Y, , X) 948X %= Y Mod (X, Y, X) 949X <<= Y ShiftLeft (X, Y, X) 950X >>= Y ShiftRight (X, Y, X) 951X &= Y And (X, Y, X) 952X |= Y Or (X, Y, X) 953X ^= Y Xor (X, Y, X) 954 955 9563) ASL+ Examples: 957----------------- 958 959Legacy ASL: 960 If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual ( 961 And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 9620x03FB), 963 0x02E0), LEqual (And (R540, 0x03FB), 0x02E0)))) 964 { 965 And (MEMB, 0xFFFFFFF0, SRMB) 966 Store (MEMB, Local2) 967 Store (PDBM, Local1) 968 And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) 969 Store (SRMB, MEMB) 970 Or (PDBM, 0x02, PDBM) 971 } 972 973ASL+ version: 974 If (((R510 & 0x03FB) == 0x02E0) || 975 ((R520 & 0x03FB) == 0x02E0) || 976 ((R530 & 0x03FB) == 0x02E0) || 977 ((R540 & 0x03FB) == 0x02E0)) 978 { 979 SRMB = (MEMB & 0xFFFFFFF0) 980 Local2 = MEMB 981 Local1 = PDBM 982 PDBM &= 0xFFFFFFFFFFFFFFF9 983 MEMB = SRMB 984 PDBM |= 0x02 985 } 986 987Legacy ASL: 988 Store (0x1234, Local1) 989 Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3) 990 Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3) 991 Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3) 992 Store (Index (PKG1, 0x03), Local6) 993 Store (Add (Local3, Local2), Debug) 994 Add (Local1, 0x0F, Local2) 995 Add (Local1, Multiply (Local2, Local3), Local2) 996 Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3) 997 998ASL+ version: 999 Local1 = 0x1234 1000 Local3 = (((Local1 + TEST) + 0x20) * Local2) 1001 Local3 = (Local2 * ((Local1 + TEST) + 0x20)) 1002 Local3 = (Local1 + (TEST + (0x20 * Local2))) 1003 Local6 = Index (PKG1, 0x03) 1004 Debug = (Local3 + Local2) 1005 Local2 = (Local1 + 0x0F) 1006 Local2 = (Local1 + (Local2 * Local3)) 1007 Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1)) 1008 1009 1010---------------------------------------- 101126 September 2014. Summary of changes for version 20140926: 1012 10131) ACPICA kernel-resident subsystem: 1014 1015Updated the GPIO operation region handler interface (GeneralPurposeIo). 1016In order to support GPIO Connection objects with multiple pins, along 1017with the related Field objects, the following changes to the interface 1018have been made: The Address is now defined to be the offset in bits of 1019the field unit from the previous invocation of a Connection. It can be 1020viewed as a "Pin Number Index" into the connection resource descriptor. 1021The BitWidth is the exact bit width of the field. It is usually one bit, 1022but not always. See the ACPICA reference guide (section 8.8.6.2.1) for 1023additional information and examples. 1024 1025GPE support: During ACPICA/GPE initialization, ensure that all GPEs with 1026corresponding _Lxx/_Exx methods are disabled (they may have been enabled 1027by the firmware), so that they cannot fire until they are enabled via 1028AcpiUpdateAllGpes. Rafael J. Wysocki. 1029 1030Added a new return flag for the Event/GPE status interfaces -- 1031AcpiGetEventStatus and AcpiGetGpeStatus. The new 1032ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or 1033GPE currently has a handler associated with it, and can thus actually 1034affect the system. Lv Zheng. 1035 1036Example Code and Data Size: These are the sizes for the OS-independent 1037acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1038debug version of the code includes the debug output trace mechanism and 1039has a much larger code and data size. 1040 1041 Current Release: 1042 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 1043 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 1044 Previous Release: 1045 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 1046 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 1047 10482) iASL Compiler/Disassembler and Tools: 1049 1050iASL: Fixed a memory allocation/free regression introduced in 20140828 1051that could cause the compiler to crash. This was introduced inadvertently 1052during the effort to eliminate compiler memory leaks. ACPICA BZ 1111, 10531113. 1054 1055iASL: Removed two error messages that have been found to create false 1056positives, until they can be fixed and fully validated (ACPICA BZ 1112): 10571) Illegal forward reference within a method 10582) Illegal reference across two methods 1059 1060iASL: Implemented a new option (-lm) to create a hardware mapping file 1061that summarizes all GPIO, I2C, SPI, and UART connections. This option 1062works for both the compiler and disassembler. See the iASL compiler user 1063guide for additional information and examples (section 6.4.6). 1064 1065AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to 1066version 2. This corrects the AE_BAD_HEADER exception seen on systems with 1067a version 1 RSDP. Lv Zheng ACPICA BZ 1097. 1068 1069AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode 1070unless STDIN is actually a terminal. Assists with batch-mode processing. 1071ACPICA BZ 1114. 1072 1073Disassembler/AcpiHelp: Added another large group of recognized _HID 1074values. 1075 1076 1077---------------------------------------- 107828 August 2014. Summary of changes for version 20140828: 1079 10801) ACPICA kernel-resident subsystem: 1081 1082Fixed a problem related to the internal use of the Timer() operator where 1083a 64-bit divide could cause an attempted link to a double-precision math 1084library. This divide is not actually necessary, so the code was 1085restructured to eliminate it. Lv Zheng. 1086 1087ACPI 5.1: Added support for the runtime validation of the _DSD package 1088(similar to the iASL support). 1089 1090ACPI 5.1/Headers: Added support for the GICC affinity subtable to the 1091SRAT table. Hanjun Guo <hanjun.guo@linaro.org>. 1092 1093Example Code and Data Size: These are the sizes for the OS-independent 1094acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1095debug version of the code includes the debug output trace mechanism and 1096has a much larger code and data size. 1097 1098 Current Release: 1099 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 1100 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 1101 Previous Release: 1102 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total1 1103 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 1104 11052) iASL Compiler/Disassembler and Tools: 1106 1107AcpiExec: Fixed a problem on unix systems where the original terminal 1108state was not always properly restored upon exit. Seen when using the -v 1109option. ACPICA BZ 1104. 1110 1111iASL: Fixed a problem with the validation of the ranges/length within the 1112Memory24 resource descriptor. There was a boundary condition when the 1113range was equal to the (length -1) caused by the fact that these values 1114are defined in 256-byte blocks, not bytes. ACPICA BZ 1098 1115 1116Disassembler: Fixed a problem with the GpioInt descriptor interrupt 1117polarity 1118flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword 1119is 1120now supported properly. 1121 1122ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported 1123in the disassembler, data table compiler, and table template generator. 1124 1125iASL: Added a requirement for Device() objects that one of either a _HID 1126or _ADR must exist within the scope of a Device, as per the ACPI 1127specification. Remove a similar requirement that was incorrectly in place 1128for the _DSD object. 1129 1130iASL: Added error detection for illegal named references within control 1131methods that would cause runtime failures. Now trapped as errors are: 1) 1132References to objects within a non-parent control method. 2) Forward 1133references (within a method) -- for control methods, AML interpreters use 1134a one-pass parse of control methods. ACPICA BZ 1008. 1135 1136iASL: Added error checking for dependencies related to the _PSx power 1137methods. ACPICA BZ 1029. 11381) For _PS0, one of these must exist within the same scope: _PS1, _PS2, 1139_PS3. 11402) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same 1141scope. 1142 1143iASL and table compiler: Cleanup miscellaneous memory leaks by fully 1144deploying the existing object and string caches and adding new caches for 1145the table compiler. 1146 1147iASL: Split the huge parser source file into multiple subfiles to improve 1148manageability. Generation now requires the M4 macro preprocessor, which 1149is part of the Bison distribution on both unix and windows platforms. 1150 1151AcpiSrc: Fixed and removed all extraneous warnings generated during 1152entire ACPICA source code scan and/or conversion. 1153 1154 1155---------------------------------------- 1156 115724 July 2014. Summary of changes for version 20140724: 1158 1159The ACPI 5.1 specification has been released and is available at: 1160http://uefi.org/specs/access 1161 1162 11630) ACPI 5.1 support in ACPICA: 1164 1165ACPI 5.1 is fully supported in ACPICA as of this release. 1166 1167New predefined names. Support includes iASL and runtime ACPICA 1168validation. 1169 _CCA (Cache Coherency Attribute). 1170 _DSD (Device-Specific Data). David Box. 1171 1172Modifications to existing ACPI tables. Support includes headers, iASL 1173Data Table compiler, disassembler, and the template generator. 1174 FADT - New fields and flags. Graeme Gregory. 1175 GTDT - One new subtable and new fields. Tomasz Nowicki. 1176 MADT - Two new subtables. Tomasz Nowicki. 1177 PCCT - One new subtable. 1178 1179Miscellaneous. 1180 New notification type for System Resource Affinity change events. 1181 1182 11831) ACPICA kernel-resident subsystem: 1184 1185Fixed a regression introduced in 20140627 where a fault can happen during 1186the deletion of Alias AML namespace objects. The problem affected both 1187the core ACPICA and the ACPICA tools including iASL and AcpiExec. 1188 1189Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a 1190simple mechanism to enable wake GPEs that have no associated handler or 1191control method. Rafael Wysocki. 1192 1193Updated the AcpiEnableGpe interface to disallow the enable if there is no 1194handler or control method associated with the particular GPE. This will 1195help avoid meaningless GPEs and even GPE floods. Rafael Wysocki. 1196 1197Updated GPE handling and dispatch by disabling the GPE before clearing 1198the status bit for edge-triggered GPEs. Lv Zheng. 1199 1200Added Timer() support to the AML Debug object. The current timer value is 1201now displayed with each invocation of (Store to) the debug object to 1202enable simple generation of execution times for AML code (method 1203execution for example.) ACPICA BZ 1093. 1204 1205Example Code and Data Size: These are the sizes for the OS-independent 1206acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1207debug version of the code includes the debug output trace mechanism and 1208has a much larger code and data size. 1209 1210 Current Release: 1211 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total 1212 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 1213 Previous Release: 1214 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 1215 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 1216 1217 12182) iASL Compiler/Disassembler and Tools: 1219 1220Fixed an issue with the recently added local printf implementation, 1221concerning width/precision specifiers that could cause incorrect output. 1222Lv Zheng. ACPICA BZ 1094. 1223 1224Disassembler: Added support to detect buffers that contain UUIDs and 1225disassemble them to an invocation of the ToUUID operator. Also emit 1226commented descriptions of known ACPI-related UUIDs. 1227 1228AcpiHelp: Added support to display known ACPI-related UUIDs. New option, 1229-u. Adds three new files. 1230 1231iASL: Update table compiler and disassembler for DMAR table changes that 1232were introduced in September 2013. With assistance by David Woodhouse. 1233 1234---------------------------------------- 123527 June 2014. Summary of changes for version 20140627: 1236 12371) ACPICA kernel-resident subsystem: 1238 1239Formatted Output: Implemented local versions of standard formatted output 1240utilities such as printf, etc. Over time, it has been discovered that 1241there are in fact many portability issues with printf, and the addition 1242of this feature will fix/prevent these issues once and for all. Some 1243known issues are summarized below: 1244 12451) Output of 64-bit values is not portable. For example, UINT64 is %ull 1246for the Linux kernel and is %uI64 for some MSVC versions. 12472) Invoking printf consistently in a manner that is portable across both 124832-bit and 64-bit platforms is difficult at best in many situations. 12493) The output format for pointers varies from system to system (leading 1250zeros especially), and leads to inconsistent output from ACPICA across 1251platforms. 12524) Certain platform-specific printf formats may conflict with ACPICA use. 12535) If there is no local C library available, ACPICA now has local support 1254for printf. 1255 1256-- To address these printf issues in a complete manner, ACPICA now 1257directly implements a small subset of printf format specifiers, only 1258those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng. 1259 1260Implemented support for ACPICA generation within the EFI environment. 1261Initially, the AcpiDump utility is supported in the UEFI shell 1262environment. Lv Zheng. 1263 1264Added a new external interface, AcpiLogError, to improve ACPICA 1265portability. This allows the host to redirect error messages from the 1266ACPICA utilities. Lv Zheng. 1267 1268Added and deployed new OSL file I/O interfaces to improve ACPICA 1269portability: 1270 AcpiOsOpenFile 1271 AcpiOsCloseFile 1272 AcpiOsReadFile 1273 AcpiOsWriteFile 1274 AcpiOsGetFileOffset 1275 AcpiOsSetFileOffset 1276There are C library implementations of these functions in the new file 1277service_layers/oslibcfs.c -- however, the functions can be implemented by 1278the local host in any way necessary. Lv Zheng. 1279 1280Implemented a mechanism to disable/enable ACPI table checksum validation 1281at runtime. This can be useful when loading tables very early during OS 1282initialization when it may not be possible to map the entire table in 1283order to compute the checksum. Lv Zheng. 1284 1285Fixed a buffer allocation issue for the Generic Serial Bus support. 1286Originally, a fixed buffer length was used. This change allows for 1287variable-length buffers based upon the protocol indicated by the field 1288access attributes. Reported by Lan Tianyu. Lv Zheng. 1289 1290Fixed a problem where an object detached from a namespace node was not 1291properly terminated/cleared and could cause a circular list problem if 1292reattached. ACPICA BZ 1063. David Box. 1293 1294Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick. 1295 1296Fixed a possible memory leak in an error return path within the function 1297AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King. 1298 1299Example Code and Data Size: These are the sizes for the OS-independent 1300acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1301debug version of the code includes the debug output trace mechanism and 1302has a much larger code and data size. 1303 1304 Current Release: 1305 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 1306 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 1307 Previous Release: 1308 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 1309 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 1310 1311 13122) iASL Compiler/Disassembler and Tools: 1313 1314Disassembler: Add dump of ASCII equivalent text within a comment at the 1315end of each line of the output for the Buffer() ASL operator. 1316 1317AcpiDump: Miscellaneous changes: 1318 Fixed repetitive table dump in -n mode. 1319 For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if 1320the ACPI 2.0 GUID fails. 1321 1322iASL: Fixed a problem where the compiler could fault if incorrectly given 1323an acpidump output file as input. ACPICA BZ 1088. David Box. 1324 1325AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if 1326they are invoked without any arguments. 1327 1328Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ 13291086. Colin Ian King. 1330 1331Disassembler: Cleaned up a block of code that extracts a parent Op 1332object. Added a comment that explains that the parent is guaranteed to be 1333valid in this case. ACPICA BZ 1069. 1334 1335 1336---------------------------------------- 133724 April 2014. Summary of changes for version 20140424: 1338 13391) ACPICA kernel-resident subsystem: 1340 1341Implemented support to skip/ignore NULL address entries in the RSDT/XSDT. 1342Some of these tables are known to contain a trailing NULL entry. Lv 1343Zheng. 1344 1345Removed an extraneous error message for the case where there are a large 1346number of system GPEs (> 124). This was the "32-bit FADT register is too 1347long to convert to GAS struct" message, which is irrelevant for GPEs 1348since the GPEx_BLK_LEN fields of the FADT are always used instead of the 1349(limited capacity) GAS bit length. Also, several changes to ensure proper 1350support for GPE numbers > 255, where some "GPE number" fields were 8-bits 1351internally. 1352 1353Implemented and deployed additional configuration support for the public 1354ACPICA external interfaces. Entire classes of interfaces can now be 1355easily modified or configured out, replaced by stubbed inline functions 1356by default. Lv Zheng. 1357 1358Moved all public ACPICA runtime configuration globals to the public 1359ACPICA external interface file for convenience. Also, removed some 1360obsolete/unused globals. See the file acpixf.h. Lv Zheng. 1361 1362Documentation: Added a new section to the ACPICA reference describing the 1363maximum number of GPEs that can be supported by the FADT-defined GPEs in 1364block zero and one. About 1200 total. See section 4.4.1 of the ACPICA 1365reference. 1366 1367Example Code and Data Size: These are the sizes for the OS-independent 1368acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1369debug version of the code includes the debug output trace mechanism and 1370has a much larger code and data size. 1371 1372 Current Release: 1373 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 1374 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 1375 Previous Release: 1376 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 1377 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 1378 1379 13802) iASL Compiler/Disassembler and Tools: 1381 1382iASL and disassembler: Add full support for the LPIT table (Low Power 1383Idle Table). Includes support in the disassembler, data table compiler, 1384and template generator. 1385 1386AcpiDump utility: 13871) Add option to force the use of the RSDT (over the XSDT). 13882) Improve validation of the RSDP signature (use 8 chars instead of 4). 1389 1390iASL: Add check for predefined packages that are too large. For 1391predefined names that contain subpackages, check if each subpackage is 1392too large. (Check for too small already exists.) 1393 1394Debugger: Updated the GPE command (which simulates a GPE by executing the 1395GPE code paths in ACPICA). The GPE device is now optional, and defaults 1396to the GPE 0/1 FADT-defined blocks. 1397 1398Unix application OSL: Update line-editing support. Add additional error 1399checking and take care not to reset terminal attributes on exit if they 1400were never set. This should help guarantee that the terminal is always 1401left in the previous state on program exit. 1402 1403 1404---------------------------------------- 140525 March 2014. Summary of changes for version 20140325: 1406 14071) ACPICA kernel-resident subsystem: 1408 1409Updated the auto-serialize feature for control methods. This feature 1410automatically serializes all methods that create named objects in order 1411to prevent runtime errors. The update adds support to ignore the 1412currently executing AML SyncLevel when invoking such a method, in order 1413to prevent disruption of any existing SyncLevel priorities that may exist 1414in the AML code. Although the use of SyncLevels is relatively rare, this 1415change fixes a regression where an AE_AML_MUTEX_ORDER exception can 1416appear on some machines starting with the 20140214 release. 1417 1418Added a new external interface to allow the host to install ACPI tables 1419very early, before the namespace is even created. AcpiInstallTable gives 1420the host additional flexibility for ACPI table management. Tables can be 1421installed directly by the host as if they had originally appeared in the 1422XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables 1423(anything except the DSDT and FACS). Adds a new file, tbdata.c, along 1424with additional internal restructuring and cleanup. See the ACPICA 1425Reference for interface details. Lv Zheng. 1426 1427Added validation of the checksum for all incoming dynamically loaded 1428tables (via external interfaces or via AML Load/LoadTable operators). Lv 1429Zheng. 1430 1431Updated the use of the AcpiOsWaitEventsComplete interface during Notify 1432and GPE handler removal. Restructured calls to eliminate possible race 1433conditions. Lv Zheng. 1434 1435Added a warning for the use/execution of the ASL/AML Unload (table) 1436operator. This will help detect and identify machines that use this 1437operator if and when it is ever used. This operator has never been seen 1438in the field and the usage model and possible side-effects of the drastic 1439runtime action of a full table removal are unknown. 1440 1441Reverted the use of #pragma push/pop which was introduced in the 20140214 1442release. It appears that push and pop are not implemented by enough 1443compilers to make the use of this feature feasible for ACPICA at this 1444time. However, these operators may be deployed in a future ACPICA 1445release. 1446 1447Added the missing EXPORT_SYMBOL macros for the install and remove SCI 1448handler interfaces. 1449 1450Source code generation: 14511) Disabled the use of the "strchr" macro for the gcc-specific 1452generation. For some versions of gcc, this macro can periodically expose 1453a compiler bug which in turn causes compile-time error(s). 14542) Added support for PPC64 compilation. Colin Ian King. 1455 1456Example Code and Data Size: These are the sizes for the OS-independent 1457acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1458debug version of the code includes the debug output trace mechanism and 1459has a much larger code and data size. 1460 1461 Current Release: 1462 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 1463 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 1464 Previous Release: 1465 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 1466 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 1467 1468 14692) iASL Compiler/Disassembler and Tools: 1470 1471Disassembler: Added several new features to improve the readability of 1472the resulting ASL code. Extra information is emitted within comment 1473fields in the ASL code: 14741) Known _HID/_CID values are decoded to descriptive text. 14752) Standard values for the Notify() operator are decoded to descriptive 1476text. 14773) Target operands are expanded to full pathnames (in a comment) when 1478possible. 1479 1480Disassembler: Miscellaneous updates for extern() handling: 14811) Abort compiler if file specified by -fe option does not exist. 14822) Silence unnecessary warnings about argument count mismatches. 14833) Update warning messages concerning unresolved method externals. 14844) Emit "UnknownObj" keyword for externals whose type cannot be 1485determined. 1486 1487AcpiHelp utility: 14881) Added the -a option to display both the ASL syntax and the AML 1489encoding for an input ASL operator. This effectively displays all known 1490information about an ASL operator with one AcpiHelp invocation. 14912) Added substring match support (similar to a wildcard) for the -i 1492(_HID/PNP IDs) option. 1493 1494iASL/Disassembler: Since this tool does not yet support execution on big- 1495endian machines, added detection of endianness and an error message if 1496execution is attempted on big-endian. Support for big-endian within iASL 1497is a feature that is on the ACPICA to-be-done list. 1498 1499AcpiBin utility: 15001) Remove option to extract binary files from an acpidump; this function 1501is made obsolete by the AcpiXtract utility. 15022) General cleanup of open files and allocated buffers. 1503 1504 1505---------------------------------------- 150614 February 2014. Summary of changes for version 20140214: 1507 15081) ACPICA kernel-resident subsystem: 1509 1510Implemented a new mechanism to proactively prevent problems with ill- 1511behaved reentrant control methods that create named ACPI objects. This 1512behavior is illegal as per the ACPI specification, but is nonetheless 1513frequently seen in the field. Previously, this could lead to an 1514AE_ALREADY_EXISTS exception if the method was actually entered by more 1515than one thread. This new mechanism detects such methods at table load 1516time and marks them "serialized" to prevent reentrancy. A new global 1517option, AcpiGbl_AutoSerializeMethods, has been added to disable this 1518feature if desired. This mechanism and global option obsoletes and 1519supersedes the previous AcpiGbl_SerializeAllMethods option. 1520 1521Added the "Windows 2013" string to the _OSI support. ACPICA will now 1522respond TRUE to _OSI queries with this string. It is the stated policy of 1523ACPICA to add new strings to the _OSI support as soon as possible after 1524they are defined. See the full ACPICA _OSI policy which has been added to 1525the utilities/utosi.c file. 1526 1527Hardened/updated the _PRT return value auto-repair code: 15281) Do not abort the repair on a single subpackage failure, continue to 1529check all subpackages. 15302) Add check for the minimum subpackage length (4). 15313) Properly handle extraneous NULL package elements. 1532 1533Added support to avoid the possibility of infinite loops when traversing 1534object linked lists. Never allow an infinite loop, even in the face of 1535corrupted object lists. 1536 1537ACPICA headers: Deployed the use of #pragma pack(push) and #pragma 1538pack(pop) directives to ensure that the ACPICA headers are independent of 1539compiler settings or other host headers. 1540 1541Example Code and Data Size: These are the sizes for the OS-independent 1542acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1543debug version of the code includes the debug output trace mechanism and 1544has a much larger code and data size. 1545 1546 Current Release: 1547 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 1548 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 1549 Previous Release: 1550 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 1551 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 1552 1553 15542) iASL Compiler/Disassembler and Tools: 1555 1556iASL/Table-compiler: Fixed a problem with support for the SPMI table. The 1557first reserved field was incorrectly forced to have a value of zero. This 1558change correctly forces the field to have a value of one. ACPICA BZ 1081. 1559 1560Debugger: Added missing support for the "Extra" and "Data" subobjects 1561when displaying object data. 1562 1563Debugger: Added support to display entire object linked lists when 1564displaying object data. 1565 1566iASL: Removed the obsolete -g option to obtain ACPI tables from the 1567Windows registry. This feature has been superseded by the acpidump 1568utility. 1569 1570 1571---------------------------------------- 157214 January 2014. Summary of changes for version 20140114: 1573 15741) ACPICA kernel-resident subsystem: 1575 1576Updated all ACPICA copyrights and signons to 2014. Added the 2014 1577copyright to all module headers and signons, including the standard Linux 1578header. This affects virtually every file in the ACPICA core subsystem, 1579iASL compiler, all ACPICA utilities, and the test suites. 1580 1581Improved parameter validation for AcpiInstallGpeBlock. Added the 1582following checks: 15831) The incoming device handle refers to type ACPI_TYPE_DEVICE. 15842) There is not already a GPE block attached to the device. 1585Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a 1586device. 1587 1588Correctly support "references" in the ACPI_OBJECT. This change fixes the 1589support to allow references (namespace nodes) to be passed as arguments 1590to control methods via the evaluate object interface. This is probably 1591most useful for testing purposes, however. 1592 1593Improved support for 32/64 bit physical addresses in printf()-like 1594output. This change improves the support for physical addresses in printf 1595debug statements and other output on both 32-bit and 64-bit hosts. It 1596consistently outputs the appropriate number of bytes for each host. The 1597%p specifier is unsatisfactory since it does not emit uniform output on 1598all hosts/clib implementations (on some, leading zeros are not supported, 1599leading to difficult-to-read output). 1600 1601Example Code and Data Size: These are the sizes for the OS-independent 1602acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1603debug version of the code includes the debug output trace mechanism and 1604has a much larger code and data size. 1605 1606 Current Release: 1607 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 1608 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 1609 Previous Release: 1610 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 1611 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 1612 1613 16142) iASL Compiler/Disassembler and Tools: 1615 1616iASL: Fix a possible fault when using the Connection() operator. Fixes a 1617problem if the parent Field definition for the Connection operator refers 1618to an operation region that does not exist. ACPICA BZ 1064. 1619 1620AcpiExec: Load of local test tables is now optional. The utility has the 1621capability to load some various tables to test features of ACPICA. 1622However, there are enough of them that the output of the utility became 1623confusing. With this change, only the required local tables are displayed 1624(RSDP, XSDT, etc.) along with the actual tables loaded via the command 1625line specification. This makes the default output simler and easier to 1626understand. The -el command line option restores the original behavior 1627for testing purposes. 1628 1629AcpiExec: Added support for overlapping operation regions. This change 1630expands the simulation of operation regions by supporting regions that 1631overlap within the given address space. Supports SystemMemory and 1632SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031. 1633 1634AcpiExec: Added region handler support for PCI_Config and EC spaces. This 1635allows AcpiExec to simulate these address spaces, similar to the current 1636support for SystemMemory and SystemIO. 1637 1638Debugger: Added new command to read/write/compare all namespace objects. 1639The command "test objects" will exercise the entire namespace by writing 1640new values to each data object, and ensuring that the write was 1641successful. The original value is then restored and verified. 1642 1643Debugger: Added the "test predefined" command. This change makes this 1644test public and puts it under the new "test" command. The test executes 1645each and every predefined name within the current namespace. 1646 1647 1648---------------------------------------- 164918 December 2013. Summary of changes for version 20131218: 1650 1651Global note: The ACPI 5.0A specification was released this month. There 1652are no changes needed for ACPICA since this release of ACPI is an 1653errata/clarification release. The specification is available at 1654acpi.info. 1655 1656 16571) ACPICA kernel-resident subsystem: 1658 1659Added validation of the XSDT root table if it is present. Some older 1660platforms contain an XSDT that is ill-formed or otherwise invalid (such 1661as containing some or all entries that are NULL pointers). This change 1662adds a new function to validate the XSDT before actually using it. If the 1663XSDT is found to be invalid, ACPICA will now automatically fall back to 1664using the RSDT instead. Original implementation by Zhao Yakui. Ported to 1665ACPICA and enhanced by Lv Zheng and Bob Moore. 1666 1667Added a runtime option to ignore the XSDT and force the use of the RSDT. 1668This change adds a runtime option that will force ACPICA to use the RSDT 1669instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec 1670requires that an XSDT be used instead of the RSDT, the XSDT has been 1671found to be corrupt or ill-formed on some machines. Lv Zheng. 1672 1673Added a runtime option to favor 32-bit FADT register addresses over the 167464-bit addresses. This change adds an option to favor 32-bit FADT 1675addresses when there is a conflict between the 32-bit and 64-bit versions 1676of the same register. The default behavior is to use the 64-bit version 1677in accordance with the ACPI specification. This can now be overridden via 1678the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng. 1679 1680During the change above, the internal "Convert FADT" and "Verify FADT" 1681functions have been merged to simplify the code, making it easier to 1682understand and maintain. ACPICA BZ 933. 1683 1684Improve exception reporting and handling for GPE block installation. 1685Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the 1686status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019. 1687 1688Added helper macros to extract bus/segment numbers from the HEST table. 1689This change adds two macros to extract the encoded bus and segment 1690numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT. 1691Betty Dall <betty.dall@hp.com> 1692 1693Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used 1694by ACPICA. It is not a public macro, so it should have no effect on 1695existing OSV code. Lv Zheng. 1696 1697Example Code and Data Size: These are the sizes for the OS-independent 1698acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1699debug version of the code includes the debug output trace mechanism and 1700has a much larger code and data size. 1701 1702 Current Release: 1703 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 1704 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 1705 Previous Release: 1706 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 1707 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 1708 1709 17102) iASL Compiler/Disassembler and Tools: 1711 1712Disassembler: Improved pathname support for emitted External() 1713statements. This change adds full pathname support for external names 1714that have been resolved internally by the inclusion of additional ACPI 1715tables (via the iASL -e option). Without this change, the disassembler 1716can emit multiple externals for the same object, or it become confused 1717when the Scope() operator is used on an external object. Overall, greatly 1718improves the ability to actually recompile the emitted ASL code when 1719objects a referenced across multiple ACPI tables. Reported by Michael 1720Tsirkin (mst@redhat.com). 1721 1722Tests/ASLTS: Updated functional control suite to execute with no errors. 1723David Box. Fixed several errors related to the testing of the interpreter 1724slack mode. Lv Zheng. 1725 1726iASL: Added support to detect names that are declared within a control 1727method, but are unused (these are temporary names that are only valid 1728during the time the method is executing). A remark is issued for these 1729cases. ACPICA BZ 1022. 1730 1731iASL: Added full support for the DBG2 table. Adds full disassembler, 1732table compiler, and template generator support for the DBG2 table (Debug 1733Port 2 table). 1734 1735iASL: Added full support for the PCCT table, update the table definition. 1736Updates the PCCT table definition in the actbl3.h header and adds table 1737compiler and template generator support. 1738 1739iASL: Added an option to emit only error messages (no warnings/remarks). 1740The -ve option will enable only error messages, warnings and remarks are 1741suppressed. This can simplify debugging when only the errors are 1742important, such as when an ACPI table is disassembled and there are many 1743warnings and remarks -- but only the actual errors are of real interest. 1744 1745Example ACPICA code (source/tools/examples): Updated the example code so 1746that it builds to an actual working program, not just example code. Added 1747ACPI tables and execution of an example control method in the DSDT. Added 1748makefile support for Unix generation. 1749 1750 1751---------------------------------------- 175215 November 2013. Summary of changes for version 20131115: 1753 1754This release is available at https://acpica.org/downloads 1755 1756 17571) ACPICA kernel-resident subsystem: 1758 1759Resource Manager: Fixed loop termination for the "get AML length" 1760function. The loop previously had an error termination on a NULL resource 1761pointer, which can never happen since the loop simply increments a valid 1762resource pointer. This fix changes the loop to terminate with an error on 1763an invalid end-of-buffer condition. The problem can be seen as an 1764infinite loop by callers to AcpiSetCurrentResources with an invalid or 1765corrupted resource descriptor, or a resource descriptor that is missing 1766an END_TAG descriptor. Reported by Dan Carpenter 1767<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore. 1768 1769Table unload and ACPICA termination: Delete all attached data objects 1770during namespace node deletion. This fix updates namespace node deletion 1771to delete the entire list of attached objects (attached via 1772AcpiAttachObject) instead of just one of the attached items. ACPICA BZ 17731024. Tomasz Nowicki (tomasz.nowicki@linaro.org). 1774 1775ACPICA termination: Added support to delete all objects attached to the 1776root namespace node. This fix deletes any and all objects that have been 1777attached to the root node via AcpiAttachData. Previously, none of these 1778objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026. 1779 1780Debug output: Do not emit the function nesting level for the in-kernel 1781build. The nesting level is really only useful during a single-thread 1782execution. Therefore, only enable this output for the AcpiExec utility. 1783Also, only emit the thread ID when executing under AcpiExec (Context 1784switches are still always detected and a message is emitted). ACPICA BZ 1785972. 1786 1787Example Code and Data Size: These are the sizes for the OS-independent 1788acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1789debug version of the code includes the debug output trace mechanism and 1790has a much larger code and data size. 1791 1792 Current Release: 1793 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 1794 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 1795 Previous Release: 1796 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 1797 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 1798 1799 18002) iASL Compiler/Disassembler and Tools: 1801 1802AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the 1803correct portable POSIX header for terminal control functions. 1804 1805Disassembler: Fixed control method invocation issues related to the use 1806of the CondRefOf() operator. The problem is seen in the disassembly where 1807control method invocations may not be disassembled properly if the 1808control method name has been used previously as an argument to CondRefOf. 1809The solution is to not attempt to emit an external declaration for the 1810CondRefOf target (it is not necessary in the first place). This prevents 1811disassembler object type confusion. ACPICA BZ 988. 1812 1813Unix Makefiles: Added an option to disable compiler optimizations and the 1814_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA 1815with optimizations (reportedly, gcc 4.4 for example). This change adds a 1816command line option for make (NOOPT) that disables all compiler 1817optimizations and the _FORTIFY_SOURCE compiler flag. The default 1818optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ 18191034. Lv Zheng, Bob Moore. 1820 1821Tests/ASLTS: Added options to specify individual test cases and modes. 1822This allows testers running aslts.sh to optionally specify individual 1823test modes and test cases. Also added an option to disable the forced 1824generation of the ACPICA tools from source if desired. Lv Zheng. 1825 1826---------------------------------------- 182727 September 2013. Summary of changes for version 20130927: 1828 1829This release is available at https://acpica.org/downloads 1830 1831 18321) ACPICA kernel-resident subsystem: 1833 1834Fixed a problem with store operations to reference objects. This change 1835fixes a problem where a Store operation to an ArgX object that contained 1836a 1837reference to a field object did not complete the automatic dereference 1838and 1839then write to the actual field object. Instead, the object type of the 1840field object was inadvertently changed to match the type of the source 1841operand. The new behavior will actually write to the field object (buffer 1842field or field unit), thus matching the correct ACPI-defined behavior. 1843 1844Implemented support to allow the host to redefine individual OSL 1845prototypes. This change enables the host to redefine OSL prototypes found 1846in the acpiosxf.h file. This allows the host to implement OSL interfaces 1847with a macro or inlined function. Further, it allows the host to add any 1848additional required modifiers such as __iomem, __init, __exit, etc., as 1849necessary on a per-interface basis. Enables maximum flexibility for the 1850OSL interfaces. Lv Zheng. 1851 1852Hardcoded the access width for the FADT-defined reset register. The ACPI 1853specification requires the reset register width to be 8 bits. ACPICA now 1854hardcodes the width to 8 and ignores the FADT width value. This provides 1855compatibility with other ACPI implementations that have allowed BIOS code 1856with bad register width values to go unnoticed. Matthew Garett, Bob 1857Moore, 1858Lv Zheng. 1859 1860Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is 1861used 1862in the OSL header (acpiosxf). The change modifies the position of this 1863macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid 1864build issues if the OSL defines the implementation of the interface to be 1865an inline stub function. Lv Zheng. 1866 1867Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA 1868initialization interfaces. This change adds a new macro for the main init 1869and terminate external interfaces in order to support hosts that require 1870additional or different processing for these functions. Changed from 1871ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv 1872Zheng, Bob Moore. 1873 1874Cleaned up the memory allocation macros for configurability. In the 1875common 1876case, the ACPI_ALLOCATE and related macros now resolve directly to their 1877respective AcpiOs* OSL interfaces. Two options: 18781) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by 1879default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define. 18802) For AcpiExec (and for debugging), the macros can optionally be 1881resolved 1882to the local ACPICA interfaces that track each allocation (local tracking 1883is used to immediately detect memory leaks). 1884Lv Zheng. 1885 1886Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel 1887to predefine this macro to either TRUE or FALSE during the system build. 1888 1889Replaced __FUNCTION_ with __func__ in the gcc-specific header. 1890 1891Example Code and Data Size: These are the sizes for the OS-independent 1892acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1893debug version of the code includes the debug output trace mechanism and 1894has a much larger code and data size. 1895 1896 Current Release: 1897 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 1898 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 1899 Previous Release: 1900 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 1901 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 1902 1903 19042) iASL Compiler/Disassembler and Tools: 1905 1906iASL: Implemented wildcard support for the -e option. This simplifies use 1907when there are many SSDTs that must be included to resolve external 1908method 1909declarations. ACPICA BZ 1041. Example: 1910 iasl -e ssdt*.dat -d dsdt.dat 1911 1912AcpiExec: Add history/line-editing for Unix/Linux systems. This change 1913adds a portable module that implements full history and limited line 1914editing for Unix and Linux systems. It does not use readline() due to 1915portability issues. Instead it uses the POSIX termio interface to put the 1916terminal in raw input mode so that the various special keys can be 1917trapped 1918(such as up/down-arrow for history support and left/right-arrow for line 1919editing). Uses the existing debugger history mechanism. ACPICA BZ 1036. 1920 1921AcpiXtract: Add support to handle (ignore) "empty" lines containing only 1922one or more spaces. This provides compatible with early or different 1923versions of the AcpiDump utility. ACPICA BZ 1044. 1924 1925AcpiDump: Do not ignore tables that contain only an ACPI table header. 1926Apparently, some BIOSs create SSDTs that contain an ACPI table header but 1927no other data. This change adds support to dump these tables. Any tables 1928shorter than the length of an ACPI table header remain in error (an error 1929message is emitted). Reported by Yi Li. 1930 1931Debugger: Echo actual command along with the "unknown command" message. 1932 1933---------------------------------------- 193423 August 2013. Summary of changes for version 20130823: 1935 19361) ACPICA kernel-resident subsystem: 1937 1938Implemented support for host-installed System Control Interrupt (SCI) 1939handlers. Certain ACPI functionality requires the host to handle raw 1940SCIs. For example, the "SCI Doorbell" that is defined for memory power 1941state support requires the host device driver to handle SCIs to examine 1942if the doorbell has been activated. Multiple SCI handlers can be 1943installed to allow for future expansion. New external interfaces are 1944AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for 1945details. Lv Zheng, Bob Moore. ACPICA BZ 1032. 1946 1947Operation region support: Never locally free the handler "context" 1948pointer. This change removes some dangerous code that attempts to free 1949the handler context pointer in some (rare) circumstances. The owner of 1950the handler owns this pointer and the ACPICA code should never touch it. 1951Although not seen to be an issue in any kernel, it did show up as a 1952problem (fault) under AcpiExec. Also, set the internal storage field for 1953the context pointer to zero when the region is deactivated, simply for 1954sanity. David Box. ACPICA BZ 1039. 1955 1956AcpiRead: On error, do not modify the return value target location. If an 1957error happens in the middle of a split 32/32 64-bit I/O operation, do not 1958modify the target of the return value pointer. Makes the code consistent 1959with the rest of ACPICA. Bjorn Helgaas. 1960 1961Example Code and Data Size: These are the sizes for the OS-independent 1962acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1963debug version of the code includes the debug output trace mechanism and 1964has a much larger code and data size. 1965 1966 Current Release: 1967 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 1968 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 1969 Previous Release: 1970 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 1971 Debug Version: 185.4K Code, 77.1K Data, 262.5K Total 1972 1973 19742) iASL Compiler/Disassembler and Tools: 1975 1976AcpiDump: Implemented several new features and fixed some problems: 19771) Added support to dump the RSDP, RSDT, and XSDT tables. 19782) Added support for multiple table instances (SSDT, UEFI). 19793) Added option to dump "customized" (overridden) tables (-c). 19804) Fixed a problem where some table filenames were improperly 1981constructed. 19825) Improved some error messages, removed some unnecessary messages. 1983 1984iASL: Implemented additional support for disassembly of ACPI tables that 1985contain invocations of external control methods. The -fe<file> option 1986allows the import of a file that specifies the external methods along 1987with the required number of arguments for each -- allowing for the 1988correct disassembly of the table. This is a workaround for a limitation 1989of AML code where the disassembler often cannot determine the number of 1990arguments required for an external control method and generates incorrect 1991ASL code. See the iASL reference for details. ACPICA BZ 1030. 1992 1993Debugger: Implemented a new command (paths) that displays the full 1994pathnames (namepaths) and object types of all objects in the namespace. 1995This is an alternative to the namespace command. 1996 1997Debugger: Implemented a new command (sci) that invokes the SCI dispatch 1998mechanism and any installed handlers. 1999 2000iASL: Fixed a possible segfault for "too many parent prefixes" condition. 2001This can occur if there are too many parent prefixes in a namepath (for 2002example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035. 2003 2004Application OSLs: Set the return value for the PCI read functions. These 2005functions simply return AE_OK, but should set the return value to zero 2006also. This change implements this. ACPICA BZ 1038. 2007 2008Debugger: Prevent possible command line buffer overflow. Increase the 2009size of a couple of the debugger line buffers, and ensure that overflow 2010cannot happen. ACPICA BZ 1037. 2011 2012iASL: Changed to abort immediately on serious errors during the parsing 2013phase. Due to the nature of ASL, there is no point in attempting to 2014compile these types of errors, and they typically end up causing a 2015cascade of hundreds of errors which obscure the original problem. 2016 2017---------------------------------------- 201825 July 2013. Summary of changes for version 20130725: 2019 20201) ACPICA kernel-resident subsystem: 2021 2022Fixed a problem with the DerefOf operator where references to FieldUnits 2023and BufferFields incorrectly returned the parent object, not the actual 2024value of the object. After this change, a dereference of a FieldUnit 2025reference results in a read operation on the field to get the value, and 2026likewise, the appropriate BufferField value is extracted from the target 2027buffer. 2028 2029Fixed a problem where the _WAK method could cause a fault under these 2030circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK 2031method returned no value. The problem is rarely seen because most kernels 2032run ACPICA in slack mode. 2033 2034For the DerefOf operator, a fatal error now results if an attempt is made 2035to dereference a reference (created by the Index operator) to a NULL 2036package element. Provides compatibility with other ACPI implementations, 2037and this behavior will be added to a future version of the ACPI 2038specification. 2039 2040The ACPI Power Management Timer (defined in the FADT) is now optional. 2041This provides compatibility with other ACPI implementations and will 2042appear in the next version of the ACPI specification. If there is no PM 2043Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of 2044zero in the FADT indicates no PM timer. 2045 2046Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This 2047allows the host to globally enable/disable all vendor strings, all 2048feature strings, or both. Intended to be primarily used for debugging 2049purposes only. Lv Zheng. 2050 2051Expose the collected _OSI data to the host via a global variable. This 2052data tracks the highest level vendor ID that has been invoked by the BIOS 2053so that the host (and potentially ACPICA itself) can change behaviors 2054based upon the age of the BIOS. 2055 2056Example Code and Data Size: These are the sizes for the OS-independent 2057acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2058debug version of the code includes the debug output trace mechanism and 2059has a much larger code and data size. 2060 2061 Current Release: 2062 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 2063 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 2064 Previous Release: 2065 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 2066 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 2067 2068 20692) iASL Compiler/Disassembler and Tools: 2070 2071iASL: Created the following enhancements for the -so option (create 2072offset table): 20731)Add offsets for the last nameseg in each namepath for every supported 2074object type 20752)Add support for Processor, Device, Thermal Zone, and Scope objects 20763)Add the actual AML opcode for the parent object of every supported 2077object type 20784)Add support for the ZERO/ONE/ONES AML opcodes for integer objects 2079 2080Disassembler: Emit all unresolved external symbols in a single block. 2081These are external references to control methods that could not be 2082resolved, and thus, the disassembler had to make a guess at the number of 2083arguments to parse. 2084 2085iASL: The argument to the -T option (create table template) is now 2086optional. If not specified, the default table is a DSDT, typically the 2087most common case. 2088 2089---------------------------------------- 209026 June 2013. Summary of changes for version 20130626: 2091 20921) ACPICA kernel-resident subsystem: 2093 2094Fixed an issue with runtime repair of the _CST object. Null or invalid 2095elements were not always removed properly. Lv Zheng. 2096 2097Removed an arbitrary restriction of 256 GPEs per GPE block (such as the 2098FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, 2099the maximum number of GPEs is 1016. Use of multiple GPE block devices 2100makes the system-wide number of GPEs essentially unlimited. 2101 2102Example Code and Data Size: These are the sizes for the OS-independent 2103acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2104debug version of the code includes the debug output trace mechanism and 2105has a much larger code and data size. 2106 2107 Current Release: 2108 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 2109 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 2110 Previous Release: 2111 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 2112 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 2113 2114 21152) iASL Compiler/Disassembler and Tools: 2116 2117Portable AcpiDump: Implemented full support for the Linux and FreeBSD 2118hosts. Now supports Linux, FreeBSD, and Windows. 2119 2120Disassembler: Added some missing types for the HEST and EINJ tables: "Set 2121Error Type With Address", "CMCI", "MCE", and "Flush Cacheline". 2122 2123iASL/Preprocessor: Implemented full support for nested 2124#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. 2125 2126Disassembler: Expanded maximum output string length to 64K. Was 256 bytes 2127max. The original purpose of this constraint was to limit the amount of 2128debug output. However, the string function in question (UtPrintString) is 2129now used for the disassembler also, where 256 bytes is insufficient. 2130Reported by RehabMan@GitHub. 2131 2132iASL/DataTables: Fixed some problems and issues with compilation of DMAR 2133tables. ACPICA BZ 999. Lv Zheng. 2134 2135iASL: Fixed a couple of error exit issues that could result in a "Could 2136not delete <file>" message during ASL compilation. 2137 2138AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though 2139the actual signatures for these tables are "FACP" and "APIC", 2140respectively. 2141 2142AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI 2143tables are allowed to have multiple instances. 2144 2145---------------------------------------- 214617 May 2013. Summary of changes for version 20130517: 2147 21481) ACPICA kernel-resident subsystem: 2149 2150Fixed a regression introduced in version 20130328 for _INI methods. This 2151change fixes a problem introduced in 20130328 where _INI methods are no 2152longer executed properly because of a memory block that was not 2153initialized correctly. ACPICA BZ 1016. Tomasz Nowicki 2154<tomasz.nowicki@linaro.org>. 2155 2156Fixed a possible problem with the new extended sleep registers in the 2157ACPI 21585.0 FADT. Do not use these registers (even if populated) unless the HW- 2159reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 21601020. Lv Zheng. 2161 2162Implemented return value repair code for _CST predefined objects: Sort 2163the 2164list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. 2165 2166Implemented a debug-only option to disable loading of SSDTs from the 2167RSDT/XSDT during ACPICA initialization. This can be useful for debugging 2168ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in 2169acglobal.h - ACPICA BZ 1005. Lv Zheng. 2170 2171Fixed some issues in the ACPICA initialization and termination code: 2172Tomasz Nowicki <tomasz.nowicki@linaro.org> 21731) Clear events initialized flag upon event component termination. ACPICA 2174BZ 1013. 21752) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 21763) Delete global lock pending lock during termination. ACPICA BZ 1012. 21774) Clear debug buffer global on termination to prevent possible multiple 2178delete. ACPICA BZ 1010. 2179 2180Standardized all switch() blocks across the entire source base. After 2181many 2182years, different formatting for switch() had crept in. This change makes 2183the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. 2184 2185Split some files to enhance ACPICA modularity and configurability: 21861) Split buffer dump routines into utilities/utbuffer.c 21872) Split internal error message routines into utilities/uterror.c 21883) Split table print utilities into tables/tbprint.c 21894) Split iASL command-line option processing into asloptions.c 2190 2191Makefile enhancements: 21921) Support for all new files above. 21932) Abort make on errors from any subcomponent. Chao Guan. 21943) Add build support for Apple Mac OS X. Liang Qi. 2195 2196Example Code and Data Size: These are the sizes for the OS-independent 2197acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2198debug version of the code includes the debug output trace mechanism and 2199has a much larger code and data size. 2200 2201 Current Release: 2202 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 2203 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 2204 Previous Release: 2205 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 2206 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 2207 2208 22092) iASL Compiler/Disassembler and Tools: 2210 2211New utility: Implemented an easily portable version of the acpidump 2212utility to extract ACPI tables from the system (or a file) in an ASCII 2213hex 2214dump format. The top-level code implements the various command line 2215options, file I/O, and table dump routines. To port to a new host, only 2216three functions need to be implemented to get tables -- since this 2217functionality is OS-dependent. See the tools/acpidump/apmain.c module and 2218the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 22191) The Windows version obtains the ACPI tables from the Registry. 22202) The Linux version is under development. 22213) Other hosts - If an OS-dependent module is submitted, it will be 2222distributed with ACPICA. 2223 2224iASL: Fixed a regression for -D preprocessor option (define symbol). A 2225restructuring/change to the initialization sequence caused this option to 2226no longer work properly. 2227 2228iASL: Implemented a mechanism to disable specific warnings and remarks. 2229Adds a new command line option, "-vw <messageid> as well as "#pragma 2230disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore. 2231 2232iASL: Fix for too-strict package object validation. The package object 2233validation for return values from the predefined names is a bit too 2234strict, it does not allow names references within the package (which will 2235be resolved at runtime.) These types of references cannot be validated at 2236compile time. This change ignores named references within package objects 2237for names that return or define static packages. 2238 2239Debugger: Fixed the 80-character command line limitation for the History 2240command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. 2241 2242iASL: Added control method and package support for the -so option 2243(generates AML offset table for BIOS support.) 2244 2245iASL: issue a remark if a non-serialized method creates named objects. If 2246a thread blocks within the method for any reason, and another thread 2247enters the method, the method will fail because an attempt will be made 2248to 2249create the same (named) object twice. In this case, issue a remark that 2250the method should be marked serialized. NOTE: may become a warning later. 2251ACPICA BZ 909. 2252 2253---------------------------------------- 225418 April 2013. Summary of changes for version 20130418: 2255 22561) ACPICA kernel-resident subsystem: 2257 2258Fixed a possible buffer overrun during some rare but specific field unit 2259read operations. This overrun can only happen if the DSDT version is 1 -- 2260meaning that all AML integers are 32 bits -- and the field length is 2261between 33 and 55 bits long. During the read, an internal buffer object 2262is 2263created for the field unit because the field is larger than an integer 2264(32 2265bits). However, in this case, the buffer will be incorrectly written 2266beyond the end because the buffer length is less than the internal 2267minimum 2268of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes 2269long, but a full 8 bytes will be written. 2270 2271Updated the Embedded Controller "orphan" _REG method support. This refers 2272to _REG methods under the EC device that have no corresponding operation 2273region. This is allowed by the ACPI specification. This update removes a 2274dependency on the existence an ECDT table. It will execute an orphan _REG 2275method as long as the operation region handler for the EC is installed at 2276the EC device node and not the namespace root. Rui Zhang (original 2277update), Bob Moore (update/integrate). 2278 2279Implemented run-time argument typechecking for all predefined ACPI names 2280(_STA, _BIF, etc.) This change performs object typechecking on all 2281incoming arguments for all predefined names executed via 2282AcpiEvaluateObject. This ensures that ACPI-related device drivers are 2283passing correct object types as well as the correct number of arguments 2284(therefore identifying any issues immediately). Also, the ASL/namespace 2285definition of the predefined name is checked against the ACPI 2286specification for the proper argument count. Adds one new file, 2287nsarguments.c 2288 2289Changed an exception code for the ASL UnLoad() operator. Changed the 2290exception code for the case where the input DdbHandle is invalid, from 2291AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. 2292 2293Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the 2294global makefile. The use of this flag causes compiler errors on earlier 2295versions of GCC, so it has been removed for compatibility. 2296 2297Miscellaneous cleanup: 22981) Removed some unused/obsolete macros 22992) Fixed a possible memory leak in the _OSI support 23003) Removed an unused variable in the predefined name support 23014) Windows OSL: remove obsolete reference to a memory list field 2302 2303Example Code and Data Size: These are the sizes for the OS-independent 2304acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2305debug version of the code includes the debug output trace mechanism and 2306has a much larger code and data size. 2307 2308 Current Release: 2309 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 2310 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 2311 Previous Release: 2312 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 2313 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 2314 2315 23162) iASL Compiler/Disassembler and Tools: 2317 2318AcpiExec: Added installation of a handler for the SystemCMOS address 2319space. This prevents control method abort if a method accesses this 2320space. 2321 2322AcpiExec: Added support for multiple EC devices, and now install EC 2323operation region handler(s) at the actual EC device instead of the 2324namespace root. This reflects the typical behavior of host operating 2325systems. 2326 2327AcpiExec: Updated to ensure that all operation region handlers are 2328installed before the _REG methods are executed. This prevents a _REG 2329method from aborting if it accesses an address space has no handler. 2330AcpiExec installs a handler for every possible address space. 2331 2332Debugger: Enhanced the "handlers" command to display non-root handlers. 2333This change enhances the handlers command to display handlers associated 2334with individual devices throughout the namespace, in addition to the 2335currently supported display of handlers associated with the root 2336namespace 2337node. 2338 2339ASL Test Suite: Several test suite errors have been identified and 2340resolved, reducing the total error count during execution. Chao Guan. 2341 2342---------------------------------------- 234328 March 2013. Summary of changes for version 20130328: 2344 23451) ACPICA kernel-resident subsystem: 2346 2347Fixed several possible race conditions with the internal object reference 2348counting mechanism. Some of the external ACPICA interfaces update object 2349reference counts without holding the interpreter or namespace lock. This 2350change adds a spinlock to protect reference count updates on the internal 2351ACPICA objects. Reported by and with assistance from Andriy Gapon 2352(avg@FreeBSD.org). 2353 2354FADT support: Removed an extraneous warning for very large GPE register 2355sets. This change removes a size mismatch warning if the legacy length 2356field for a GPE register set is larger than the 64-bit GAS structure can 2357accommodate. GPE register sets can be larger than the 255-bit width 2358limitation of the GAS structure. Linn Crosetto (linn@hp.com). 2359 2360_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error 2361return from this interface. Handles a possible timeout case if 2362ACPI_WAIT_FOREVER is modified by the host to be a value less than 2363"forever". Jung-uk Kim. 2364 2365Predefined name support: Add allowed/required argument type information 2366to 2367the master predefined info table. This change adds the infrastructure to 2368enable typechecking on incoming arguments for all predefined 2369methods/objects. It does not actually contain the code that will fully 2370utilize this information, this is still under development. Also condenses 2371some duplicate code for the predefined names into a new module, 2372utilities/utpredef.c 2373 2374Example Code and Data Size: These are the sizes for the OS-independent 2375acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2376debug version of the code includes the debug output trace mechanism and 2377has a much larger code and data size. 2378 2379 Previous Release: 2380 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 2381 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 2382 Current Release: 2383 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 2384 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 2385 2386 23872) iASL Compiler/Disassembler and Tools: 2388 2389iASL: Implemented a new option to simplify the development of ACPI- 2390related 2391BIOS code. Adds support for a new "offset table" output file. The -so 2392option will create a C table containing the AML table offsets of various 2393named objects in the namespace so that BIOS code can modify them easily 2394at 2395boot time. This can simplify BIOS runtime code by eliminating expensive 2396searches for "magic values", enhancing boot times and adding greater 2397reliability. With assistance from Lee Hamel. 2398 2399iASL: Allow additional predefined names to return zero-length packages. 2400Now, all predefined names that are defined by the ACPI specification to 2401return a "variable-length package of packages" are allowed to return a 2402zero length top-level package. This allows the BIOS to tell the host that 2403the requested feature is not supported, and supports existing BIOS/ASL 2404code and practices. 2405 2406iASL: Changed the "result not used" warning to an error. This is the case 2407where an ASL operator is effectively a NOOP because the result of the 2408operation is not stored anywhere. For example: 2409 Add (4, Local0) 2410There is no target (missing 3rd argument), nor is the function return 2411value used. This is potentially a very serious problem -- since the code 2412was probably intended to do something, but for whatever reason, the value 2413was not stored. Therefore, this issue has been upgraded from a warning to 2414an error. 2415 2416AcpiHelp: Added allowable/required argument types to the predefined names 2417info display. This feature utilizes the recent update to the predefined 2418names table (above). 2419 2420---------------------------------------- 242114 February 2013. Summary of changes for version 20130214: 2422 24231) ACPICA Kernel-resident Subsystem: 2424 2425Fixed a possible regression on some hosts: Reinstated the safe return 2426macros (return_ACPI_STATUS, etc.) that ensure that the argument is 2427evaluated only once. Although these macros are not needed for the ACPICA 2428code itself, they are often used by ACPI-related host device drivers 2429where 2430the safe feature may be necessary. 2431 2432Fixed several issues related to the ACPI 5.0 reduced hardware support 2433(SOC): Now ensure that if the platform declares itself as hardware- 2434reduced 2435via the FADT, the following functions become NOOPs (and always return 2436AE_OK) because ACPI is always enabled by definition on these machines: 2437 AcpiEnable 2438 AcpiDisable 2439 AcpiHwGetMode 2440 AcpiHwSetMode 2441 2442Dynamic Object Repair: Implemented additional runtime repairs for 2443predefined name return values. Both of these repairs can simplify code in 2444the related device drivers that invoke these methods: 24451) For the _STR and _MLS names, automatically repair/convert an ASCII 2446string to a Unicode buffer. 24472) For the _CRS, _PRS, and _DMA names, return a resource descriptor with 2448a 2449lone end tag descriptor in the following cases: A Return(0) was executed, 2450a null buffer was returned, or no object at all was returned (non-slack 2451mode only). Adds a new file, nsconvert.c 2452ACPICA BZ 998. Bob Moore, Lv Zheng. 2453 2454Resource Manager: Added additional code to prevent possible infinite 2455loops 2456while traversing corrupted or ill-formed resource template buffers. Check 2457for zero-length resource descriptors in all code that loops through 2458resource templates (the length field is used to index through the 2459template). This change also hardens the external AcpiWalkResources and 2460AcpiWalkResourceBuffer interfaces. 2461 2462Local Cache Manager: Enhanced the main data structure to eliminate an 2463unnecessary mechanism to access the next object in the list. Actually 2464provides a small performance enhancement for hosts that use the local 2465ACPICA cache manager. Jung-uk Kim. 2466 2467Example Code and Data Size: These are the sizes for the OS-independent 2468acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2469debug version of the code includes the debug output trace mechanism and 2470has a much larger code and data size. 2471 2472 Previous Release: 2473 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 2474 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 2475 Current Release: 2476 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 2477 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 2478 2479 24802) iASL Compiler/Disassembler and Tools: 2481 2482iASL/Disassembler: Fixed several issues with the definition of the ACPI 24835.0 RASF table (RAS Feature Table). This change incorporates late changes 2484that were made to the ACPI 5.0 specification. 2485 2486iASL/Disassembler: Added full support for the following new ACPI tables: 2487 1) The MTMR table (MID Timer Table) 2488 2) The VRTC table (Virtual Real Time Clock Table). 2489Includes header file, disassembler, table compiler, and template support 2490for both tables. 2491 2492iASL: Implemented compile-time validation of package objects returned by 2493predefined names. This new feature validates static package objects 2494returned by the various predefined names defined to return packages. Both 2495object types and package lengths are validated, for both parent packages 2496and sub-packages, if any. The code is similar in structure and behavior 2497to 2498the runtime repair mechanism within the AML interpreter and uses the 2499existing predefined name information table. Adds a new file, aslprepkg.c. 2500ACPICA BZ 938. 2501 2502iASL: Implemented auto-detection of binary ACPI tables for disassembly. 2503This feature detects a binary file with a valid ACPI table header and 2504invokes the disassembler automatically. Eliminates the need to 2505specifically invoke the disassembler with the -d option. ACPICA BZ 862. 2506 2507iASL/Disassembler: Added several warnings for the case where there are 2508unresolved control methods during the disassembly. This can potentially 2509cause errors when the output file is compiled, because the disassembler 2510assumes zero method arguments in these cases (it cannot determine the 2511actual number of arguments without resolution/definition of the method). 2512 2513Debugger: Added support to display all resources with a single command. 2514Invocation of the resources command with no arguments will now display 2515all 2516resources within the current namespace. 2517 2518AcpiHelp: Added descriptive text for each ACPICA exception code displayed 2519via the -e option. 2520 2521---------------------------------------- 252217 January 2013. Summary of changes for version 20130117: 2523 25241) ACPICA Kernel-resident Subsystem: 2525 2526Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 2527return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 2528objects to return a package containing one integer, most BIOS code 2529returns 2530two integers and the previous code reflects that. However, we also need 2531to 2532support BIOS code that actually implements to the ACPI spec, and this 2533change reflects this. 2534 2535Fixed two issues with the ACPI_DEBUG_PRINT macros: 25361) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 2537C compilers that require this support. 25382) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 2539ACPI_DEBUG is already used by many of the various hosts. 2540 2541Updated all ACPICA copyrights and signons to 2013. Added the 2013 2542copyright to all module headers and signons, including the standard Linux 2543header. This affects virtually every file in the ACPICA core subsystem, 2544iASL compiler, all ACPICA utilities, and the test suites. 2545 2546Example Code and Data Size: These are the sizes for the OS-independent 2547acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2548debug version of the code includes the debug output trace mechanism and 2549has a much larger code and data size. 2550 2551 Previous Release: 2552 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 2553 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 2554 Current Release: 2555 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 2556 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 2557 2558 25592) iASL Compiler/Disassembler and Tools: 2560 2561Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 2562prevent a possible fault on some hosts. Some C libraries modify the arg 2563pointer parameter to vfprintf making it difficult to call it twice in the 2564AcpiOsVprintf function. Use a local buffer to workaround this issue. This 2565does not affect the Windows OSL since the Win C library does not modify 2566the arg pointer. Chao Guan, Bob Moore. 2567 2568iASL: Fixed a possible infinite loop when the maximum error count is 2569reached. If an output file other than the .AML file is specified (such as 2570a listing file), and the maximum number of errors is reached, do not 2571attempt to flush data to the output file(s) as the compiler is aborting. 2572This can cause an infinite loop as the max error count code essentially 2573keeps calling itself. 2574 2575iASL/Disassembler: Added an option (-in) to ignore NOOP 2576opcodes/operators. 2577Implemented for both the compiler and the disassembler. Often, the NOOP 2578opcode is used as padding for packages that are changed dynamically by 2579the 2580BIOS. When disassembled and recompiled, these NOOPs will cause syntax 2581errors. This option causes the disassembler to ignore all NOOP opcodes 2582(0xA3), and it also causes the compiler to ignore all ASL source code 2583NOOP 2584statements as well. 2585 2586Debugger: Enhanced the Sleep command to execute all sleep states. This 2587change allows Sleep to be invoked with no arguments and causes the 2588debugger to execute all of the sleep states, 0-5, automatically. 2589 2590---------------------------------------- 259120 December 2012. Summary of changes for version 20121220: 2592 25931) ACPICA Kernel-resident Subsystem: 2594 2595Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 2596alternate entry point for AcpiWalkResources and improves the usability of 2597the resource manager by accepting as input a buffer containing the output 2598of either a _CRS, _PRS, or _AEI method. The key functionality is that the 2599input buffer is not deleted by this interface so that it can be used by 2600the host later. See the ACPICA reference for details. 2601 2602Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 2603(DSDT version < 2). The constant will be truncated and this warning 2604reflects that behavior. 2605 2606Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 2607ExtendedInterrupt, and GpioInt descriptors. This change adds support to 2608both get and set the new wake bit in these descriptors, separately from 2609the existing share bit. Reported by Aaron Lu. 2610 2611Interpreter: Fix Store() when an implicit conversion is not possible. For 2612example, in the cases such as a store of a string to an existing package 2613object, implement the store as a CopyObject(). This is a small departure 2614from the ACPI specification which states that the control method should 2615be 2616aborted in this case. However, the ASLTS suite depends on this behavior. 2617 2618Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 2619macros: check if debug output is currently enabled as soon as possible to 2620minimize performance impact if debug is in fact not enabled. 2621 2622Source code restructuring: Cleanup to improve modularity. The following 2623new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 2624psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 2625Associated makefiles and project files have been updated. 2626 2627Changed an exception code for LoadTable operator. For the case where one 2628of the input strings is too long, change the returned exception code from 2629AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 2630 2631Fixed a possible memory leak in dispatcher error path. On error, delete 2632the mutex object created during method mutex creation. Reported by 2633tim.gardner@canonical.com. 2634 2635Example Code and Data Size: These are the sizes for the OS-independent 2636acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2637debug version of the code includes the debug output trace mechanism and 2638has a much larger code and data size. 2639 2640 Previous Release: 2641 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 2642 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2643 Current Release: 2644 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 2645 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 2646 2647 26482) iASL Compiler/Disassembler and Tools: 2649 2650iASL: Disallow a method call as argument to the ObjectType ASL operator. 2651This change tracks an errata to the ACPI 5.0 document. The AML grammar 2652will not allow the interpreter to differentiate between a method and a 2653method invocation when these are used as an argument to the ObjectType 2654operator. The ACPI specification change is to disallow a method 2655invocation 2656(UserTerm) for the ObjectType operator. 2657 2658Finish support for the TPM2 and CSRT tables in the headers, table 2659compiler, and disassembler. 2660 2661Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 2662always expires immediately if the semaphore is not available. The 2663original 2664code was using a relative-time timeout, but sem_timedwait requires the 2665use 2666of an absolute time. 2667 2668iASL: Added a remark if the Timer() operator is used within a 32-bit 2669table. This operator returns a 64-bit time value that will be truncated 2670within a 32-bit table. 2671 2672iASL Source code restructuring: Cleanup to improve modularity. The 2673following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 2674aslmethod.c, and aslfileio.c. Associated makefiles and project files have 2675been updated. 2676 2677 2678---------------------------------------- 267914 November 2012. Summary of changes for version 20121114: 2680 26811) ACPICA Kernel-resident Subsystem: 2682 2683Implemented a performance enhancement for ACPI/AML Package objects. This 2684change greatly increases the performance of Package objects within the 2685interpreter. It changes the processing of reference counts for packages 2686by 2687optimizing for the most common case where the package sub-objects are 2688either Integers, Strings, or Buffers. Increases the overall performance 2689of 2690the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 26912X.) 2692Chao Guan. ACPICA BZ 943. 2693 2694Implemented and deployed common macros to extract flag bits from resource 2695descriptors. Improves readability and maintainability of the code. Fixes 2696a 2697problem with the UART serial bus descriptor for the number of data bits 2698flags (was incorrectly 2 bits, should be 3). 2699 2700Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 2701of the macros and changed the SETx macros to the style of (destination, 2702source). Also added ACPI_CASTx companion macros. Lv Zheng. 2703 2704Example Code and Data Size: These are the sizes for the OS-independent 2705acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2706debug version of the code includes the debug output trace mechanism and 2707has a much larger code and data size. 2708 2709 Previous Release: 2710 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 2711 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2712 Current Release: 2713 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 2714 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2715 2716 27172) iASL Compiler/Disassembler and Tools: 2718 2719Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 2720adds the ShareAndWake and ExclusiveAndWake flags which were added to the 2721Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 2722 2723Disassembler: Fixed a problem with external declaration generation. Fixes 2724a problem where an incorrect pathname could be generated for an external 2725declaration if the original reference to the object includes leading 2726carats (^). ACPICA BZ 984. 2727 2728Debugger: Completed a major update for the Disassemble<method> command. 2729This command was out-of-date and did not properly disassemble control 2730methods that had any reasonable complexity. This fix brings the command 2731up 2732to the same level as the rest of the disassembler. Adds one new file, 2733dmdeferred.c, which is existing code that is now common with the main 2734disassembler and the debugger disassemble command. ACPICA MZ 978. 2735 2736iASL: Moved the parser entry prototype to avoid a duplicate declaration. 2737Newer versions of Bison emit this prototype, so moved the prototype out 2738of 2739the iASL header to where it is actually used in order to avoid a 2740duplicate 2741declaration. 2742 2743iASL/Tools: Standardized use of the stream I/O functions: 2744 1) Ensure check for I/O error after every fopen/fread/fwrite 2745 2) Ensure proper order of size/count arguments for fread/fwrite 2746 3) Use test of (Actual != Requested) after all fwrite, and most fread 2747 4) Standardize I/O error messages 2748Improves reliability and maintainability of the code. Bob Moore, Lv 2749Zheng. 2750ACPICA BZ 981. 2751 2752Disassembler: Prevent duplicate External() statements. During generation 2753of external statements, detect similar pathnames that are actually 2754duplicates such as these: 2755 External (\ABCD) 2756 External (ABCD) 2757Remove all leading '\' characters from pathnames during the external 2758statement generation so that duplicates will be detected and tossed. 2759ACPICA BZ 985. 2760 2761Tools: Replace low-level I/O with stream I/O functions. Replace 2762open/read/write/close with the stream I/O equivalents 2763fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 2764Moore. 2765 2766AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 2767name header so that AcpiXtract recognizes the output file/table. 2768 2769iASL: Remove obsolete -2 option flag. Originally intended to force the 2770compiler/disassembler into an ACPI 2.0 mode, this was never implemented 2771and the entire concept is now obsolete. 2772 2773---------------------------------------- 277418 October 2012. Summary of changes for version 20121018: 2775 2776 27771) ACPICA Kernel-resident Subsystem: 2778 2779Updated support for the ACPI 5.0 MPST table. Fixes some problems 2780introduced by late changes to the table as it was added to the ACPI 5.0 2781specification. Includes header, disassembler, and data table compiler 2782support as well as a new version of the MPST template. 2783 2784AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 27855.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 2786methods: _HID, _CID, and _UID. 2787 2788Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 2789ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 2790name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 2791names for their various drivers. Affects the AcpiGetObjectInfo external 2792interface, and other internal interfaces as well. 2793 2794Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 2795This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 2796on machines that support non-aligned transfers. Optimizes for this case 2797rather than using a strncpy. With assistance from Zheng Lv. 2798 2799Resource Manager: Small fix for buffer size calculation. Fixed a one byte 2800error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 2801 2802Added a new debug print message for AML mutex objects that are force- 2803released. At control method termination, any currently acquired mutex 2804objects are force-released. Adds a new debug-only message for each one 2805that is released. 2806 2807Audited/updated all ACPICA return macros and the function debug depth 2808counter: 1) Ensure that all functions that use the various TRACE macros 2809also use the appropriate ACPICA return macros. 2) Ensure that all normal 2810return statements surround the return expression (value) with parens to 2811ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 2812Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 2813 2814Global source code changes/maintenance: All extra lines at the start and 2815end of each source file have been removed for consistency. Also, within 2816comments, all new sentences start with a single space instead of a double 2817space, again for consistency across the code base. 2818 2819Example Code and Data Size: These are the sizes for the OS-independent 2820acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2821debug version of the code includes the debug output trace mechanism and 2822has a much larger code and data size. 2823 2824 Previous Release: 2825 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 2826 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 2827 Current Release: 2828 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 2829 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2830 2831 28322) iASL Compiler/Disassembler and Tools: 2833 2834AcpiExec: Improved the algorithm used for memory leak/corruption 2835detection. Added some intelligence to the code that maintains the global 2836list of allocated memory. The list is now ordered by allocated memory 2837address, significantly improving performance. When running AcpiExec on 2838the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 2839on the platform and/or the environment. Note, this performance 2840enhancement affects the AcpiExec utility only, not the kernel-resident 2841ACPICA code. 2842 2843Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 2844the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 2845incorrect table offset reported for invalid opcodes. Report the original 284632-bit value for bad ACPI_NAMEs (as well as the repaired name.) 2847 2848Disassembler: Enhanced the -vt option to emit the binary table data in 2849hex format to assist with debugging. 2850 2851Fixed a potential filename buffer overflow in osunixdir.c. Increased the 2852size of file structure. Colin Ian King. 2853 2854---------------------------------------- 285513 September 2012. Summary of changes for version 20120913: 2856 2857 28581) ACPICA Kernel-resident Subsystem: 2859 2860ACPI 5.0: Added two new notify types for the Hardware Error Notification 2861Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 2862and 2863MCE(6). 2864 2865Table Manager: Merged/removed duplicate code in the root table resize 2866functions. One function is external, the other is internal. Lv Zheng, 2867ACPICA 2868BZ 846. 2869 2870Makefiles: Completely removed the obsolete "Linux" makefiles under 2871acpica/generate/linux. These makefiles are obsolete and have been 2872replaced 2873by 2874the generic unix makefiles under acpica/generate/unix. 2875 2876Makefiles: Ensure that binary files always copied properly. Minor rule 2877change 2878to ensure that the final binary output files are always copied up to the 2879appropriate binary directory (bin32 or bin64.) 2880 2881Example Code and Data Size: These are the sizes for the OS-independent 2882acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2883debug 2884version of the code includes the debug output trace mechanism and has a 2885much 2886larger code and data size. 2887 2888 Previous Release: 2889 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 2890 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 2891 Current Release: 2892 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 2893 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 2894 2895 28962) iASL Compiler/Disassembler and Tools: 2897 2898Disassembler: Fixed a possible fault during the disassembly of resource 2899descriptors when a second parse is required because of the invocation of 2900external control methods within the table. With assistance from 2901adq@lidskialf.net. ACPICA BZ 976. 2902 2903iASL: Fixed a namepath optimization problem. An error can occur if the 2904parse 2905node that contains the namepath to be optimized does not have a parent 2906node 2907that is a named object. This change fixes the problem. 2908 2909iASL: Fixed a regression where the AML file is not deleted on errors. The 2910AML 2911output file should be deleted if there are any errors during the 2912compiler. 2913The 2914only exception is if the -f (force output) option is used. ACPICA BZ 974. 2915 2916iASL: Added a feature to automatically increase internal line buffer 2917sizes. 2918Via realloc(), automatically increase the internal line buffer sizes as 2919necessary to support very long source code lines. The current version of 2920the 2921preprocessor requires a buffer long enough to contain full source code 2922lines. 2923This change increases the line buffer(s) if the input lines go beyond the 2924current buffer size. This eliminates errors that occurred when a source 2925code 2926line was longer than the buffer. 2927 2928iASL: Fixed a problem with constant folding in method declarations. The 2929SyncLevel term is a ByteConstExpr, and incorrect code would be generated 2930if a 2931Type3 opcode was used. 2932 2933Debugger: Improved command help support. For incorrect argument count, 2934display 2935full help for the command. For help command itself, allow an argument to 2936specify a command. 2937 2938Test Suites: Several bug fixes for the ASLTS suite reduces the number of 2939errors during execution of the suite. Guan Chao. 2940 2941---------------------------------------- 294216 August 2012. Summary of changes for version 20120816: 2943 2944 29451) ACPICA Kernel-resident Subsystem: 2946 2947Removed all use of the deprecated _GTS and _BFS predefined methods. The 2948_GTS 2949(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 2950deprecated and will probably be removed from the ACPI specification. 2951Windows 2952does not invoke them, and reportedly never will. The final nail in the 2953coffin 2954is that the ACPI specification states that these methods must be run with 2955interrupts off, which is not going to happen in a kernel interpreter. 2956Note: 2957Linux has removed all use of the methods also. It was discovered that 2958invoking these functions caused failures on some machines, probably 2959because 2960they were never tested since Windows does not call them. Affects two 2961external 2962interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 2963ACPICA BZ 969. 2964 2965Implemented support for complex bit-packed buffers returned from the _PLD 2966(Physical Location of Device) predefined method. Adds a new external 2967interface, AcpiDecodePldBuffer that parses the buffer into a more usable 2968C 2969structure. Note: C Bitfields cannot be used for this type of predefined 2970structure since the memory layout of individual bitfields is not defined 2971by 2972the C language. In addition, there are endian concerns where a compiler 2973will 2974change the bitfield ordering based on the machine type. The new ACPICA 2975interface eliminates these issues, and should be called after _PLD is 2976executed. ACPICA BZ 954. 2977 2978Implemented a change to allow a scope change to root (via "Scope (\)") 2979during 2980execution of module-level ASL code (code that is executed at table load 2981time.) Lin Ming. 2982 2983Added the Windows8/Server2012 string for the _OSI method. This change 2984adds 2985a 2986new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 29872012. 2988 2989Added header support for the new ACPI tables DBG2 (Debug Port Table Type 29902) 2991and CSRT (Core System Resource Table). 2992 2993Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 2994names. This simplifies access to the buffers returned by these predefined 2995names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 2996 2997GPE support: Removed an extraneous parameter from the various low-level 2998internal GPE functions. Tang Feng. 2999 3000Removed the linux makefiles from the unix packages. The generate/linux 3001makefiles are obsolete and have been removed from the unix tarball 3002release 3003packages. The replacement makefiles are under generate/unix, and there is 3004a 3005top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 3006 3007Updates for Unix makefiles: 30081) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 30092) Update linker flags (move to end of command line) for AcpiExec 3010utility. 3011Guan Chao. 3012 3013Split ACPICA initialization functions to new file, utxfinit.c. Split from 3014utxface.c to improve modularity and reduce file size. 3015 3016Example Code and Data Size: These are the sizes for the OS-independent 3017acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3018debug version of the code includes the debug output trace mechanism and 3019has a 3020much larger code and data size. 3021 3022 Previous Release: 3023 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 3024 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 3025 Current Release: 3026 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 3027 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 3028 3029 30302) iASL Compiler/Disassembler and Tools: 3031 3032iASL: Fixed a problem with constant folding for fixed-length constant 3033expressions. The constant-folding code was not being invoked for constant 3034expressions that allow the use of type 3/4/5 opcodes to generate 3035constants 3036for expressions such as ByteConstExpr, WordConstExpr, etc. This could 3037result 3038in the generation of invalid AML bytecode. ACPICA BZ 970. 3039 3040iASL: Fixed a generation issue on newer versions of Bison. Newer versions 3041apparently automatically emit some of the necessary externals. This 3042change 3043handles these versions in order to eliminate generation warnings. 3044 3045Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 3046 3047Disassembler: Add support to decode _PLD buffers. The decoded buffer 3048appears 3049within comments in the output file. 3050 3051Debugger: Fixed a regression with the "Threads" command where 3052AE_BAD_PARAMETER was always returned. 3053 3054---------------------------------------- 305511 July 2012. Summary of changes for version 20120711: 3056 30571) ACPICA Kernel-resident Subsystem: 3058 3059Fixed a possible fault in the return package object repair code. Fixes a 3060problem that can occur when a lone package object is wrapped with an 3061outer 3062package object in order to force conformance to the ACPI specification. 3063Can 3064affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 3065_DLM, 3066_CSD, _PSD, _TSD. 3067 3068Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 3069PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 3070ARB_DIS bit must be implemented in the host-dependent C3 processor power 3071state 3072support. Note, ARB_DIS is obsolete and only applies to older chipsets, 3073both 3074Intel and other vendors. (for Intel: ICH4-M and earlier) 3075 3076This change removes the code to disable/enable bus master arbitration 3077during 3078suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 3079causes 3080resume problems on some machines. The change has been in use for over 3081seven 3082years within Linux. 3083 3084Implemented two new external interfaces to support host-directed dynamic 3085ACPI 3086table load and unload. They are intended to simplify the host 3087implementation 3088of hot-plug support: 3089 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 3090 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 3091table. 3092See the ACPICA reference for additional details. Adds one new file, 3093components/tables/tbxfload.c 3094 3095Implemented and deployed two new interfaces for errors and warnings that 3096are 3097known to be caused by BIOS/firmware issues: 3098 AcpiBiosError: Prints "ACPI Firmware Error" message. 3099 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 3100Deployed these new interfaces in the ACPICA Table Manager code for ACPI 3101table 3102and FADT errors. Additional deployment to be completed as appropriate in 3103the 3104future. The associated conditional macros are ACPI_BIOS_ERROR and 3105ACPI_BIOS_WARNING. See the ACPICA reference for additional details. 3106ACPICA 3107BZ 3108843. 3109 3110Implicit notify support: ensure that no memory allocation occurs within a 3111critical region. This fix moves a memory allocation outside of the time 3112that a 3113spinlock is held. Fixes issues on systems that do not allow this 3114behavior. 3115Jung-uk Kim. 3116 3117Split exception code utilities and tables into a new file, 3118utilities/utexcep.c 3119 3120Example Code and Data Size: These are the sizes for the OS-independent 3121acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3122debug 3123version of the code includes the debug output trace mechanism and has a 3124much 3125larger code and data size. 3126 3127 Previous Release: 3128 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 3129 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 3130 Current Release: 3131 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 3132 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 3133 3134 31352) iASL Compiler/Disassembler and Tools: 3136 3137iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 3138of 31390. Jung-uk Kim. 3140 3141Debugger: Enhanced the "tables" command to emit additional information 3142about 3143the current set of ACPI tables, including the owner ID and flags decode. 3144 3145Debugger: Reimplemented the "unload" command to use the new 3146AcpiUnloadParentTable external interface. This command was disable 3147previously 3148due to need for an unload interface. 3149 3150AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 3151option 3152will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 3153 3154---------------------------------------- 315520 June 2012. Summary of changes for version 20120620: 3156 3157 31581) ACPICA Kernel-resident Subsystem: 3159 3160Implemented support to expand the "implicit notify" feature to allow 3161multiple 3162devices to be notified by a single GPE. This feature automatically 3163generates a 3164runtime device notification in the absence of a BIOS-provided GPE control 3165method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 3166notify is 3167provided by ACPICA for Windows compatibility, and is a workaround for 3168BIOS 3169AML 3170code errors. See the description of the AcpiSetupGpeForWake interface in 3171the 3172APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 3173 3174Changed some comments and internal function names to simplify and ensure 3175correctness of the Linux code translation. No functional changes. 3176 3177Example Code and Data Size: These are the sizes for the OS-independent 3178acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3179debug 3180version of the code includes the debug output trace mechanism and has a 3181much 3182larger code and data size. 3183 3184 Previous Release: 3185 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 3186 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 3187 Current Release: 3188 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 3189 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 3190 3191 31922) iASL Compiler/Disassembler and Tools: 3193 3194Disassembler: Added support to emit short, commented descriptions for the 3195ACPI 3196predefined names in order to improve the readability of the disassembled 3197output. ACPICA BZ 959. Changes include: 3198 1) Emit descriptions for all standard predefined names (_INI, _STA, 3199_PRW, 3200etc.) 3201 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 3202 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 3203etc.) 3204 3205AcpiSrc: Fixed several long-standing Linux code translation issues. 3206Argument 3207descriptions in function headers are now translated properly to lower 3208case 3209and 3210underscores. ACPICA BZ 961. Also fixes translation problems such as 3211these: 3212(old -> new) 3213 i_aSL -> iASL 3214 00-7_f -> 00-7F 3215 16_k -> 16K 3216 local_fADT -> local_FADT 3217 execute_oSI -> execute_OSI 3218 3219iASL: Fixed a problem where null bytes were inadvertently emitted into 3220some 3221listing files. 3222 3223iASL: Added the existing debug options to the standard help screen. There 3224are 3225no longer two different help screens. ACPICA BZ 957. 3226 3227AcpiHelp: Fixed some typos in the various predefined name descriptions. 3228Also 3229expand some of the descriptions where appropriate. 3230 3231iASL: Fixed the -ot option (display compile times/statistics). Was not 3232working 3233properly for standard output; only worked for the debug file case. 3234 3235---------------------------------------- 323618 May 2012. Summary of changes for version 20120518: 3237 3238 32391) ACPICA Core Subsystem: 3240 3241Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 3242defined 3243to block until asynchronous events such as notifies and GPEs have 3244completed. 3245Within ACPICA, it is only called before a notify or GPE handler is 3246removed/uninstalled. It also may be useful for the host OS within related 3247drivers such as the Embedded Controller driver. See the ACPICA reference 3248for 3249additional information. ACPICA BZ 868. 3250 3251ACPI Tables: Added a new error message for a possible overflow failure 3252during 3253the conversion of FADT 32-bit legacy register addresses to internal 3254common 325564- 3256bit GAS structure representation. The GAS has a one-byte "bit length" 3257field, 3258thus limiting the register length to 255 bits. ACPICA BZ 953. 3259 3260Example Code and Data Size: These are the sizes for the OS-independent 3261acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3262debug 3263version of the code includes the debug output trace mechanism and has a 3264much 3265larger code and data size. 3266 3267 Previous Release: 3268 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3269 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 3270 Current Release: 3271 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 3272 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 3273 3274 32752) iASL Compiler/Disassembler and Tools: 3276 3277iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 3278macro. 3279This keyword was added late in the ACPI 5.0 release cycle and was not 3280implemented until now. 3281 3282Disassembler: Added support for Operation Region externals. Adds missing 3283support for operation regions that are defined in another table, and 3284referenced locally via a Field or BankField ASL operator. Now generates 3285the 3286correct External statement. 3287 3288Disassembler: Several additional fixes for the External() statement 3289generation 3290related to some ASL operators. Also, order the External() statements 3291alphabetically in the disassembler output. Fixes the External() 3292generation 3293for 3294the Create* field, Alias, and Scope operators: 3295 1) Create* buffer field operators - fix type mismatch warning on 3296disassembly 3297 2) Alias - implement missing External support 3298 3) Scope - fix to make sure all necessary externals are emitted. 3299 3300iASL: Improved pathname support. For include files, merge the prefix 3301pathname 3302with the file pathname and eliminate unnecessary components. Convert 3303backslashes in all pathnames to forward slashes, for readability. Include 3304file 3305pathname changes affect both #include and Include() type operators. 3306 3307iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 3308end 3309of a valid line by inserting a newline and then returning the EOF during 3310the 3311next call to GetNextLine. Prevents the line from being ignored due to EOF 3312condition. 3313 3314iASL: Implemented some changes to enhance the IDE support (-vi option.) 3315Error 3316and Warning messages are now correctly recognized for both the source 3317code 3318browser and the global error and warning counts. 3319 3320---------------------------------------- 332120 April 2012. Summary of changes for version 20120420: 3322 3323 33241) ACPICA Core Subsystem: 3325 3326Implemented support for multiple notify handlers. This change adds 3327support 3328to 3329allow multiple system and device notify handlers on Device, Thermal Zone, 3330and 3331Processor objects. This can simplify the host OS notification 3332implementation. 3333Also re-worked and restructured the entire notify support code to 3334simplify 3335handler installation, handler removal, notify event queuing, and notify 3336dispatch to handler(s). Note: there can still only be two global notify 3337handlers - one for system notifies and one for device notifies. There are 3338no 3339changes to the existing handler install/remove interfaces. Lin Ming, Bob 3340Moore, Rafael Wysocki. 3341 3342Fixed a regression in the package repair code where the object reference 3343count was calculated incorrectly. Regression was introduced in the commit 3344"Support to add Package wrappers". 3345 3346Fixed a couple possible memory leaks in the AML parser, in the error 3347recovery 3348path. Jesper Juhl, Lin Ming. 3349 3350Example Code and Data Size: These are the sizes for the OS-independent 3351acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3352debug version of the code includes the debug output trace mechanism and 3353has a 3354much larger code and data size. 3355 3356 Previous Release: 3357 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3358 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3359 Current Release: 3360 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3361 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 3362 3363 33642) iASL Compiler/Disassembler and Tools: 3365 3366iASL: Fixed a problem with the resource descriptor support where the 3367length 3368of the StartDependentFn and StartDependentFnNoPrio descriptors were not 3369included in cumulative descriptor offset, resulting in incorrect values 3370for 3371resource tags within resource descriptors appearing after a 3372StartDependent* 3373descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 3374 3375iASL and Preprocessor: Implemented full support for the #line directive 3376to 3377correctly track original source file line numbers through the .i 3378preprocessor 3379output file - for error and warning messages. 3380 3381iASL: Expand the allowable byte constants for address space IDs. 3382Previously, 3383the allowable range was 0x80-0xFF (user-defined spaces), now the range is 33840x0A-0xFF to allow for custom and new IDs without changing the compiler. 3385 3386iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 3387 3388iASL: Add option to completely disable the preprocessor (-Pn). 3389 3390iASL: Now emit all error/warning messages to standard error (stderr) by 3391default (instead of the previous stdout). 3392 3393ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 3394Update 3395for resource descriptor offset fix above. Update/cleanup error output 3396routines. Enable and send iASL errors/warnings to an error logfile 3397(error.txt). Send all other iASL output to a logfile (compiler.txt). 3398Fixed 3399several extraneous "unrecognized operator" messages. 3400 3401---------------------------------------- 340220 March 2012. Summary of changes for version 20120320: 3403 3404 34051) ACPICA Core Subsystem: 3406 3407Enhanced the sleep/wake interfaces to optionally execute the _GTS method 3408(Going To Sleep) and the _BFS method (Back From Sleep). Windows 3409apparently 3410does not execute these methods, and therefore these methods are often 3411untested. It has been seen on some systems where the execution of these 3412methods causes errors and also prevents the machine from entering S5. It 3413is 3414therefore suggested that host operating systems do not execute these 3415methods 3416by default. In the future, perhaps these methods can be optionally 3417executed 3418based on the age of the system and/or what is the newest version of 3419Windows 3420that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 3421and 3422AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 3423Ming. 3424 3425Fixed a problem where the length of the local/common FADT was set too 3426early. 3427The local FADT table length cannot be set to the common length until the 3428original length has been examined. There is code that checks the table 3429length 3430and sets various fields appropriately. This can affect older machines 3431with 3432early FADT versions. For example, this can cause inadvertent writes to 3433the 3434CST_CNT register. Julian Anastasov. 3435 3436Fixed a mapping issue related to a physical table override. Use the 3437deferred 3438mapping mechanism for tables loaded via the physical override OSL 3439interface. 3440This allows for early mapping before the virtual memory manager is 3441available. 3442Thomas Renninger, Bob Moore. 3443 3444Enhanced the automatic return-object repair code: Repair a common problem 3445with 3446predefined methods that are defined to return a variable-length Package 3447of 3448sub-objects. If there is only one sub-object, some BIOS ASL code 3449mistakenly 3450simply returns the single object instead of a Package with one sub- 3451object. 3452This new support will repair this error by wrapping a Package object 3453around 3454the original object, creating the correct and expected Package with one 3455sub- 3456object. Names that can be repaired in this manner include: _ALR, _CSD, 3457_HPX, 3458_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 3459939. 3460 3461Changed the exception code returned for invalid ACPI paths passed as 3462parameters to external interfaces such as AcpiEvaluateObject. Was 3463AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 3464 3465Example Code and Data Size: These are the sizes for the OS-independent 3466acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3467debug 3468version of the code includes the debug output trace mechanism and has a 3469much 3470larger code and data size. 3471 3472 Previous Release: 3473 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 3474 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3475 Current Release: 3476 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3477 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3478 3479 34802) iASL Compiler/Disassembler and Tools: 3481 3482iASL: Added the infrastructure and initial implementation of a integrated 3483C- 3484like preprocessor. This will simplify BIOS development process by 3485eliminating 3486the need for a separate preprocessing step during builds. On Windows, it 3487also 3488eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 3489features including full #define() macro support are still under 3490development. 3491These preprocessor directives are supported: 3492 #define 3493 #elif 3494 #else 3495 #endif 3496 #error 3497 #if 3498 #ifdef 3499 #ifndef 3500 #include 3501 #pragma message 3502 #undef 3503 #warning 3504In addition, these new command line options are supported: 3505 -D <symbol> Define symbol for preprocessor use 3506 -li Create preprocessed output file (*.i) 3507 -P Preprocess only and create preprocessor output file (*.i) 3508 3509Table Compiler: Fixed a problem where the equals operator within an 3510expression 3511did not work properly. 3512 3513Updated iASL to use the current versions of Bison/Flex. Updated the 3514Windows 3515project file to invoke these tools from the standard location. ACPICA BZ 3516904. 3517Versions supported: 3518 Flex for Windows: V2.5.4 3519 Bison for Windows: V2.4.1 3520 3521---------------------------------------- 352215 February 2012. Summary of changes for version 20120215: 3523 3524 35251) ACPICA Core Subsystem: 3526 3527There have been some major changes to the sleep/wake support code, as 3528described below (a - e). 3529 3530a) The AcpiLeaveSleepState has been split into two interfaces, similar to 3531AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 3532AcpiLeaveSleepStatePrep. This allows the host to perform actions between 3533the 3534time the _BFS method is called and the _WAK method is called. NOTE: all 3535hosts 3536must update their wake/resume code or else sleep/wake will not work 3537properly. 3538Rafael Wysocki. 3539 3540b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 3541_WAK 3542method. Some machines require that the GPEs are enabled before the _WAK 3543method 3544is executed. Thomas Renninger. 3545 3546c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) 3547bit. 3548Some BIOS code assumes that WAK_STS will be cleared on resume and use it 3549to 3550determine whether the system is rebooting or resuming. Matthew Garrett. 3551 3552d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 3553Sleep) to 3554match the ACPI specification requirement. Rafael Wysocki. 3555 3556e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 3557registers within the V5 FADT. This support adds two new files: 3558hardware/hwesleep.c implements the support for the new registers. Moved 3559all 3560sleep/wake external interfaces to hardware/hwxfsleep.c. 3561 3562 3563Added a new OSL interface for ACPI table overrides, 3564AcpiOsPhysicalTableOverride. This interface allows the host to override a 3565table via a physical address, instead of the logical address required by 3566AcpiOsTableOverride. This simplifies the host implementation. Initial 3567implementation by Thomas Renninger. The ACPICA implementation creates a 3568single 3569shared function for table overrides that attempts both a logical and a 3570physical override. 3571 3572Expanded the OSL memory read/write interfaces to 64-bit data 3573(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 3574transfer support for GAS register structures passed to AcpiRead and 3575AcpiWrite. 3576 3577Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 3578custom 3579build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 3580model. 3581See the ACPICA reference for details. ACPICA BZ 942. This option removes 3582about 358310% of the code and 5% of the static data, and the following hardware 3584ACPI 3585features become unavailable: 3586 PM Event and Control registers 3587 SCI interrupt (and handler) 3588 Fixed Events 3589 General Purpose Events (GPEs) 3590 Global Lock 3591 ACPI PM timer 3592 FACS table (Waking vectors and Global Lock) 3593 3594Updated the unix tarball directory structure to match the ACPICA git 3595source 3596tree. This ensures that the generic unix makefiles work properly (in 3597generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 3598867. 3599 3600Updated the return value of the _REV predefined method to integer value 5 3601to 3602reflect ACPI 5.0 support. 3603 3604Moved the external ACPI PM timer interface prototypes to the public 3605acpixf.h 3606file where they belong. 3607 3608Example Code and Data Size: These are the sizes for the OS-independent 3609acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3610debug 3611version of the code includes the debug output trace mechanism and has a 3612much 3613larger code and data size. 3614 3615 Previous Release: 3616 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 3617 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 3618 Current Release: 3619 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 3620 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3621 3622 36232) iASL Compiler/Disassembler and Tools: 3624 3625Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 3626descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 3627incorrectly displayed. 3628 3629AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 3630specification. 3631 3632---------------------------------------- 363311 January 2012. Summary of changes for version 20120111: 3634 3635 36361) ACPICA Core Subsystem: 3637 3638Implemented a new mechanism to allow host device drivers to check for 3639address 3640range conflicts with ACPI Operation Regions. Both SystemMemory and 3641SystemIO 3642address spaces are supported. A new external interface, 3643AcpiCheckAddressRange, 3644allows drivers to check an address range against the ACPI namespace. See 3645the 3646ACPICA reference for additional details. Adds one new file, 3647utilities/utaddress.c. Lin Ming, Bob Moore. 3648 3649Fixed several issues with the ACPI 5.0 FADT support: Add the sleep 3650Control 3651and 3652Status registers, update the ACPI 5.0 flags, and update internal data 3653structures to handle an FADT larger than 256 bytes. The size of the ACPI 36545.0 3655FADT is 268 bytes. 3656 3657Updated all ACPICA copyrights and signons to 2012. Added the 2012 3658copyright to 3659all module headers and signons, including the standard Linux header. This 3660affects virtually every file in the ACPICA core subsystem, iASL compiler, 3661and 3662all ACPICA utilities. 3663 3664Example Code and Data Size: These are the sizes for the OS-independent 3665acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3666debug 3667version of the code includes the debug output trace mechanism and has a 3668much 3669larger code and data size. 3670 3671 Previous Release: 3672 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 3673 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 3674 Current Release: 3675 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 3676 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 3677 3678 36792) iASL Compiler/Disassembler and Tools: 3680 3681Disassembler: fixed a problem with the automatic resource tag generation 3682support. Fixes a problem where the resource tags are inadvertently not 3683constructed if the table being disassembled contains external references 3684to 3685control methods. Moved the actual construction of the tags to after the 3686final 3687namespace is constructed (after 2nd parse is invoked due to external 3688control 3689method references.) ACPICA BZ 941. 3690 3691Table Compiler: Make all "generic" operators caseless. These are the 3692operators 3693like UINT8, String, etc. Making these caseless improves ease-of-use. 3694ACPICA BZ 3695934. 3696 3697---------------------------------------- 369823 November 2011. Summary of changes for version 20111123: 3699 37000) ACPI 5.0 Support: 3701 3702This release contains full support for the ACPI 5.0 specification, as 3703summarized below. 3704 3705Reduced Hardware Support: 3706------------------------- 3707 3708This support allows for ACPI systems without the usual ACPI hardware. 3709This 3710support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 3711will 3712not attempt to initialize or use any of the usual ACPI hardware. Note, 3713when 3714this flag is set, all of the following ACPI hardware is assumed to be not 3715present and is not initialized or accessed: 3716 3717 General Purpose Events (GPEs) 3718 Fixed Events (PM1a/PM1b and PM Control) 3719 Power Management Timer and Console Buttons (power/sleep) 3720 Real-time Clock Alarm 3721 Global Lock 3722 System Control Interrupt (SCI) 3723 The FACS is assumed to be non-existent 3724 3725ACPI Tables: 3726------------ 3727 3728All new tables and updates to existing tables are fully supported in the 3729ACPICA headers (for use by device drivers), the disassembler, and the 3730iASL 3731Data Table Compiler. ACPI 5.0 defines these new tables: 3732 3733 BGRT /* Boot Graphics Resource Table */ 3734 DRTM /* Dynamic Root of Trust for Measurement table */ 3735 FPDT /* Firmware Performance Data Table */ 3736 GTDT /* Generic Timer Description Table */ 3737 MPST /* Memory Power State Table */ 3738 PCCT /* Platform Communications Channel Table */ 3739 PMTT /* Platform Memory Topology Table */ 3740 RASF /* RAS Feature table */ 3741 3742Operation Regions/SpaceIDs: 3743--------------------------- 3744 3745All new operation regions are fully supported by the iASL compiler, the 3746disassembler, and the ACPICA runtime code (for dispatch to region 3747handlers.) 3748The new operation region Space IDs are: 3749 3750 GeneralPurposeIo 3751 GenericSerialBus 3752 3753Resource Descriptors: 3754--------------------- 3755 3756All new ASL resource descriptors are fully supported by the iASL 3757compiler, 3758the 3759ASL/AML disassembler, and the ACPICA runtime Resource Manager code 3760(including 3761all new predefined resource tags). New descriptors are: 3762 3763 FixedDma 3764 GpioIo 3765 GpioInt 3766 I2cSerialBus 3767 SpiSerialBus 3768 UartSerialBus 3769 3770ASL/AML Operators, New and Modified: 3771------------------------------------ 3772 3773One new operator is added, the Connection operator, which is used to 3774associate 3775a GeneralPurposeIo or GenericSerialBus resource descriptor with 3776individual 3777field objects within an operation region. Several new protocols are 3778associated 3779with the AccessAs operator. All are fully supported by the iASL compiler, 3780disassembler, and runtime ACPICA AML interpreter: 3781 3782 Connection // Declare Field Connection 3783attributes 3784 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 3785 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes 3786Protocol 3787 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 3788 RawDataBuffer // Data type for Vendor Data 3789fields 3790 3791Predefined ASL/AML Objects: 3792--------------------------- 3793 3794All new predefined objects/control-methods are supported by the iASL 3795compiler 3796and the ACPICA runtime validation/repair (arguments and return values.) 3797New 3798predefined names include the following: 3799 3800Standard Predefined Names (Objects or Control Methods): 3801 _AEI, _CLS, _CPC, _CWS, _DEP, 3802 _DLM, _EVT, _GCP, _CRT, _GWS, 3803 _HRV, _PRE, _PSE, _SRT, _SUB. 3804 3805Resource Tags (Names used to access individual fields within resource 3806descriptors): 3807 _DBT, _DPL, _DRS, _END, _FLC, 3808 _IOR, _LIN, _MOD, _PAR, _PHA, 3809 _PIN, _PPI, _POL, _RXL, _SLV, 3810 _SPE, _STB, _TXL, _VEN. 3811 3812ACPICA External Interfaces: 3813--------------------------- 3814 3815Several new interfaces have been defined for use by ACPI-related device 3816drivers and other host OS services: 3817 3818AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 3819to 3820acquire and release AML mutexes that are defined in the DSDT/SSDT tables 3821provided by the BIOS. They are intended to be used in conjunction with 3822the 3823ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 3824mutual exclusion with the AML code/interpreter. 3825 3826AcpiGetEventResources: Returns the (formatted) resource descriptors as 3827defined 3828by the ACPI 5.0 _AEI object (ACPI Event Information). This object 3829provides 3830resource descriptors associated with hardware-reduced platform events, 3831similar 3832to the AcpiGetCurrentResources interface. 3833 3834Operation Region Handlers: For General Purpose IO and Generic Serial Bus 3835operation regions, information about the Connection() object and any 3836optional 3837length information is passed to the region handler within the Context 3838parameter. 3839 3840AcpiBufferToResource: This interface converts a raw AML buffer containing 3841a 3842resource template or resource descriptor to the ACPI_RESOURCE internal 3843format 3844suitable for use by device drivers. Can be used by an operation region 3845handler 3846to convert the Connection() buffer object into a ACPI_RESOURCE. 3847 3848Miscellaneous/Tools/TestSuites: 3849------------------------------- 3850 3851Support for extended _HID names (Four alpha characters instead of three). 3852Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 3853Support for ACPI 5.0 features in the ASLTS test suite. 3854Fully updated documentation (ACPICA and iASL reference documents.) 3855 3856ACPI Table Definition Language: 3857------------------------------- 3858 3859Support for this language was implemented and released as a subsystem of 3860the 3861iASL compiler in 2010. (See the iASL compiler User Guide.) 3862 3863 3864Non-ACPI 5.0 changes for this release: 3865-------------------------------------- 3866 38671) ACPICA Core Subsystem: 3868 3869Fix a problem with operation region declarations where a failure can 3870occur 3871if 3872the region name and an argument that evaluates to an object (such as the 3873region address) are in different namespace scopes. Lin Ming, ACPICA BZ 3874937. 3875 3876Do not abort an ACPI table load if an invalid space ID is found within. 3877This 3878will be caught later if the offending method is executed. ACPICA BZ 925. 3879 3880Fixed an issue with the FFixedHW space ID where the ID was not always 3881recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 3882 3883Fixed a problem with the 32-bit generation of the unix-specific OSL 3884(osunixxf.c). Lin Ming, ACPICA BZ 936. 3885 3886Several changes made to enable generation with the GCC 4.6 compiler. 3887ACPICA BZ 3888935. 3889 3890New error messages: Unsupported I/O requests (not 8/16/32 bit), and 3891Index/Bank 3892field registers out-of-range. 3893 38942) iASL Compiler/Disassembler and Tools: 3895 3896iASL: Implemented the __PATH__ operator, which returns the full pathname 3897of 3898the current source file. 3899 3900AcpiHelp: Automatically display expanded keyword information for all ASL 3901operators. 3902 3903Debugger: Add "Template" command to disassemble/dump resource template 3904buffers. 3905 3906Added a new master script to generate and execute the ASLTS test suite. 3907Automatically handles 32- and 64-bit generation. See tests/aslts.sh 3908 3909iASL: Fix problem with listing generation during processing of the 3910Switch() 3911operator where AML listing was disabled until the entire Switch block was 3912completed. 3913 3914iASL: Improve support for semicolon statement terminators. Fix "invalid 3915character" message for some cases when the semicolon is used. Semicolons 3916are 3917now allowed after every <Term> grammar element. ACPICA BZ 927. 3918 3919iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 3920923. 3921 3922Disassembler: Fix problem with disassembly of the DataTableRegion 3923operator 3924where an inadvertent "Unhandled deferred opcode" message could be 3925generated. 3926 39273) Example Code and Data Size 3928 3929These are the sizes for the OS-independent acpica.lib produced by the 3930Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 3931includes the debug output trace mechanism and has a much larger code and 3932data 3933size. 3934 3935 Previous Release: 3936 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 3937 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 3938 Current Release: 3939 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 3940 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 3941 3942---------------------------------------- 394322 September 2011. Summary of changes for version 20110922: 3944 39450) ACPI 5.0 News: 3946 3947Support for ACPI 5.0 in ACPICA has been underway for several months and 3948will 3949be released at the same time that ACPI 5.0 is officially released. 3950 3951The ACPI 5.0 specification is on track for release in the next few 3952months. 3953 39541) ACPICA Core Subsystem: 3955 3956Fixed a problem where the maximum sleep time for the Sleep() operator was 3957intended to be limited to two seconds, but was inadvertently limited to 395820 3959seconds instead. 3960 3961Linux and Unix makefiles: Added header file dependencies to ensure 3962correct 3963generation of ACPICA core code and utilities. Also simplified the 3964makefiles 3965considerably through the use of the vpath variable to specify search 3966paths. 3967ACPICA BZ 924. 3968 39692) iASL Compiler/Disassembler and Tools: 3970 3971iASL: Implemented support to check the access length for all fields 3972created to 3973access named Resource Descriptor fields. For example, if a resource field 3974is 3975defined to be two bits, a warning is issued if a CreateXxxxField() is 3976used 3977with an incorrect bit length. This is implemented for all current 3978resource 3979descriptor names. ACPICA BZ 930. 3980 3981Disassembler: Fixed a byte ordering problem with the output of 24-bit and 398256- 3983bit integers. 3984 3985iASL: Fixed a couple of issues associated with variable-length package 3986objects. 1) properly handle constants like One, Ones, Zero -- do not make 3987a 3988VAR_PACKAGE when these are used as a package length. 2) Allow the 3989VAR_PACKAGE 3990opcode (in addition to PACKAGE) when validating object types for 3991predefined 3992names. 3993 3994iASL: Emit statistics for all output files (instead of just the ASL input 3995and 3996AML output). Includes listings, hex files, etc. 3997 3998iASL: Added -G option to the table compiler to allow the compilation of 3999custom 4000ACPI tables. The only part of a table that is required is the standard 400136- 4002byte 4003ACPI header. 4004 4005AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 4006headers), 4007which also adds correct 64-bit support. Also, now all output filenames 4008are 4009completely lower case. 4010 4011AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 4012loading table files. A warning is issued for any such tables. The only 4013exception is an FADT. This also fixes a possible fault when attempting to 4014load 4015non-AML tables. ACPICA BZ 932. 4016 4017AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where 4018a 4019missing table terminator could cause a fault when using the -p option. 4020 4021AcpiSrc: Fixed a possible divide-by-zero fault when generating file 4022statistics. 4023 40243) Example Code and Data Size 4025 4026These are the sizes for the OS-independent acpica.lib produced by the 4027Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 4028includes the debug output trace mechanism and has a much larger code and 4029data 4030size. 4031 4032 Previous Release (VC 9.0): 4033 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4034 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4035 Current Release (VC 9.0): 4036 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4037 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4038 4039 4040---------------------------------------- 404123 June 2011. Summary of changes for version 20110623: 4042 40431) ACPI CA Core Subsystem: 4044 4045Updated the predefined name repair mechanism to not attempt repair of a 4046_TSS 4047return object if a _PSS object is present. We can only sort the _TSS 4048return 4049package if there is no _PSS within the same scope. This is because if 4050_PSS 4051is 4052present, the ACPI specification dictates that the _TSS Power Dissipation 4053field 4054is to be ignored, and therefore some BIOSs leave garbage values in the 4055_TSS 4056Power field(s). In this case, it is best to just return the _TSS package 4057as- 4058is. Reported by, and fixed with assistance from Fenghua Yu. 4059 4060Added an option to globally disable the control method return value 4061validation 4062and repair. This runtime option can be used to disable return value 4063repair 4064if 4065this is causing a problem on a particular machine. Also added an option 4066to 4067AcpiExec (-dr) to set this disable flag. 4068 4069All makefiles and project files: Major changes to improve generation of 4070ACPICA 4071tools. ACPICA BZ 912: 4072 Reduce default optimization levels to improve compatibility 4073 For Linux, add strict-aliasing=0 for gcc 4 4074 Cleanup and simplify use of command line defines 4075 Cleanup multithread library support 4076 Improve usage messages 4077 4078Linux-specific header: update handling of THREAD_ID and pthread. For the 407932- 4080bit case, improve casting to eliminate possible warnings, especially with 4081the 4082acpica tools. 4083 4084Example Code and Data Size: These are the sizes for the OS-independent 4085acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4086debug 4087version of the code includes the debug output trace mechanism and has a 4088much 4089larger code and data size. 4090 4091 Previous Release (VC 9.0): 4092 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 4093 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4094 Current Release (VC 9.0): 4095 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4096 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4097 40982) iASL Compiler/Disassembler and Tools: 4099 4100With this release, a new utility named "acpihelp" has been added to the 4101ACPICA 4102package. This utility summarizes the ACPI specification chapters for the 4103ASL 4104and AML languages. It generates under Linux/Unix as well as Windows, and 4105provides the following functionality: 4106 Find/display ASL operator(s) -- with description and syntax. 4107 Find/display ASL keyword(s) -- with exact spelling and descriptions. 4108 Find/display ACPI predefined name(s) -- with description, number 4109 of arguments, and the return value data type. 4110 Find/display AML opcode name(s) -- with opcode, arguments, and 4111grammar. 4112 Decode/display AML opcode -- with opcode name, arguments, and 4113grammar. 4114 4115Service Layers: Make multi-thread support configurable. Conditionally 4116compile 4117the multi-thread support so that threading libraries will not be linked 4118if 4119not 4120necessary. The only tool that requires multi-thread support is AcpiExec. 4121 4122iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 4123of 4124Bison appear to want the interface to yyerror to be a const char * (or at 4125least this is a problem when generating iASL on some systems.) ACPICA BZ 4126923 4127Pierre Lejeune. 4128 4129Tools: Fix for systems where O_BINARY is not defined. Only used for 4130Windows 4131versions of the tools. 4132 4133---------------------------------------- 413427 May 2011. Summary of changes for version 20110527: 4135 41361) ACPI CA Core Subsystem: 4137 4138ASL Load() operator: Reinstate most restrictions on the incoming ACPI 4139table 4140signature. Now, only allow SSDT, OEMx, and a null signature. History: 4141 1) Originally, we checked the table signature for "SSDT" or "PSDT". 4142 (PSDT is now obsolete.) 4143 2) We added support for OEMx tables, signature "OEM" plus a fourth 4144 "don't care" character. 4145 3) Valid tables were encountered with a null signature, so we just 4146 gave up on validating the signature, (05/2008). 4147 4) We encountered non-AML tables such as the MADT, which caused 4148 interpreter errors and kernel faults. So now, we once again allow 4149 only SSDT, OEMx, and now, also a null signature. (05/2011). 4150 4151Added the missing _TDL predefined name to the global name list in order 4152to 4153enable validation. Affects both the core ACPICA code and the iASL 4154compiler. 4155 4156Example Code and Data Size: These are the sizes for the OS-independent 4157acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4158debug 4159version of the code includes the debug output trace mechanism and has a 4160much 4161larger code and data size. 4162 4163 Previous Release (VC 9.0): 4164 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 4165 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 4166 Current Release (VC 9.0): 4167 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 4168 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4169 41702) iASL Compiler/Disassembler and Tools: 4171 4172Debugger/AcpiExec: Implemented support for "complex" method arguments on 4173the 4174debugger command line. This adds support beyond simple integers -- 4175including 4176Strings, Buffers, and Packages. Includes support for nested packages. 4177Increased the default command line buffer size to accommodate these 4178arguments. 4179See the ACPICA reference for details and syntax. ACPICA BZ 917. 4180 4181Debugger/AcpiExec: Implemented support for "default" method arguments for 4182the 4183Execute/Debug command. Now, the debugger will always invoke a control 4184method 4185with the required number of arguments -- even if the command line 4186specifies 4187none or insufficient arguments. It uses default integer values for any 4188missing 4189arguments. Also fixes a bug where only six method arguments maximum were 4190supported instead of the required seven. 4191 4192Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 4193and 4194also return status in order to prevent buffer overruns. See the ACPICA 4195reference for details and syntax. ACPICA BZ 921 4196 4197iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 4198makefiles to simplify support for the two different but similar parser 4199generators, bison and yacc. 4200 4201Updated the generic unix makefile for gcc 4. The default gcc version is 4202now 4203expected to be 4 or greater, since options specific to gcc 4 are used. 4204 4205---------------------------------------- 420613 April 2011. Summary of changes for version 20110413: 4207 42081) ACPI CA Core Subsystem: 4209 4210Implemented support to execute a so-called "orphan" _REG method under the 4211EC 4212device. This change will force the execution of a _REG method underneath 4213the 4214EC 4215device even if there is no corresponding operation region of type 4216EmbeddedControl. Fixes a problem seen on some machines and apparently is 4217compatible with Windows behavior. ACPICA BZ 875. 4218 4219Added more predefined methods that are eligible for automatic NULL 4220package 4221element removal. This change adds another group of predefined names to 4222the 4223list 4224of names that can be repaired by having NULL package elements dynamically 4225removed. This group are those methods that return a single variable- 4226length 4227package containing simple data types such as integers, buffers, strings. 4228This 4229includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 4230_PSL, 4231_Sx, 4232and _TZD. ACPICA BZ 914. 4233 4234Split and segregated all internal global lock functions to a new file, 4235evglock.c. 4236 4237Updated internal address SpaceID for DataTable regions. Moved this 4238internal 4239space 4240id in preparation for ACPI 5.0 changes that will include some new space 4241IDs. 4242This 4243change should not affect user/host code. 4244 4245Example Code and Data Size: These are the sizes for the OS-independent 4246acpica.lib 4247produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 4248version of 4249the code includes the debug output trace mechanism and has a much larger 4250code 4251and 4252data size. 4253 4254 Previous Release (VC 9.0): 4255 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 4256 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 4257 Current Release (VC 9.0): 4258 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 4259 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 4260 42612) iASL Compiler/Disassembler and Tools: 4262 4263iASL/DTC: Major update for new grammar features. Allow generic data types 4264in 4265custom ACPI tables. Field names are now optional. Any line can be split 4266to 4267multiple lines using the continuation char (\). Large buffers now use 4268line- 4269continuation character(s) and no colon on the continuation lines. See the 4270grammar 4271update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 4272Moore. 4273 4274iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 4275statements. 4276Since the parser stuffs a "zero" as the return value for these statements 4277(due 4278to 4279the underlying AML grammar), they were seen as "return with value" by the 4280iASL 4281semantic checking. They are now seen correctly as "null" return 4282statements. 4283 4284iASL: Check if a_REG declaration has a corresponding Operation Region. 4285Adds a 4286check for each _REG to ensure that there is in fact a corresponding 4287operation 4288region declaration in the same scope. If not, the _REG method is not very 4289useful 4290since it probably won't be executed. ACPICA BZ 915. 4291 4292iASL/DTC: Finish support for expression evaluation. Added a new 4293expression 4294parser 4295that implements c-style operator precedence and parenthesization. ACPICA 4296bugzilla 4297908. 4298 4299Disassembler/DTC: Remove support for () and <> style comments in data 4300tables. 4301Now 4302that DTC has full expression support, we don't want to have comment 4303strings 4304that 4305start with a parentheses or a less-than symbol. Now, only the standard /* 4306and 4307// 4308comments are supported, as well as the bracket [] comments. 4309 4310AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 4311"unusual" 4312headers in the acpidump file. Update the header validation to support 4313these 4314tables. Problem introduced in previous AcpiXtract version in the change 4315to 4316support "wrong checksum" error messages emitted by acpidump utility. 4317 4318iASL: Add a * option to generate all template files (as a synonym for 4319ALL) 4320as 4321in 4322"iasl -T *" or "iasl -T ALL". 4323 4324iASL/DTC: Do not abort compiler on fatal errors. We do not want to 4325completely 4326abort the compiler on "fatal" errors, simply should abort the current 4327compile. 4328This allows multiple compiles with a single (possibly wildcard) compiler 4329invocation. 4330 4331---------------------------------------- 433216 March 2011. Summary of changes for version 20110316: 4333 43341) ACPI CA Core Subsystem: 4335 4336Fixed a problem caused by a _PRW method appearing at the namespace root 4337scope 4338during the setup of wake GPEs. A fault could occur if a _PRW directly 4339under 4340the 4341root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 4342 4343Implemented support for "spurious" Global Lock interrupts. On some 4344systems, a 4345global lock interrupt can occur without the pending flag being set. Upon 4346a 4347GL 4348interrupt, we now ensure that a thread is actually waiting for the lock 4349before 4350signaling GL availability. Rafael Wysocki, Bob Moore. 4351 4352Example Code and Data Size: These are the sizes for the OS-independent 4353acpica.lib 4354produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 4355version of 4356the code includes the debug output trace mechanism and has a much larger 4357code 4358and 4359data size. 4360 4361 Previous Release (VC 9.0): 4362 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4363 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4364 Current Release (VC 9.0): 4365 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 4366 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 4367 43682) iASL Compiler/Disassembler and Tools: 4369 4370Implemented full support for the "SLIC" ACPI table. Includes support in 4371the 4372header files, disassembler, table compiler, and template generator. Bob 4373Moore, 4374Lin Ming. 4375 4376AcpiXtract: Correctly handle embedded comments and messages from 4377AcpiDump. 4378Apparently some or all versions of acpidump will occasionally emit a 4379comment 4380like 4381"Wrong checksum", etc., into the dump file. This was causing problems for 4382AcpiXtract. ACPICA BZ 905. 4383 4384iASL: Fix the Linux makefile by removing an inadvertent double file 4385inclusion. 4386ACPICA BZ 913. 4387 4388AcpiExec: Update installation of operation region handlers. Install one 4389handler 4390for a user-defined address space. This is used by the ASL test suite 4391(ASLTS). 4392 4393---------------------------------------- 439411 February 2011. Summary of changes for version 20110211: 4395 43961) ACPI CA Core Subsystem: 4397 4398Added a mechanism to defer _REG methods for some early-installed 4399handlers. 4400Most user handlers should be installed before call to 4401AcpiEnableSubsystem. 4402However, Event handlers and region handlers should be installed after 4403AcpiInitializeObjects. Override handlers for the "default" regions should 4404be 4405installed early, however. This change executes all _REG methods for the 4406default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 4407chicken/egg issues between them. ACPICA BZ 848. 4408 4409Implemented an optimization for GPE detection. This optimization will 4410simply 4411ignore GPE registers that contain no enabled GPEs -- there is no need to 4412read the register since this information is available internally. This 4413becomes more important on machines with a large GPE space. ACPICA 4414bugzilla 4415884. Lin Ming. Suggestion from Joe Liu. 4416 4417Removed all use of the highly unreliable FADT revision field. The 4418revision 4419number in the FADT has been found to be completely unreliable and cannot 4420be 4421trusted. Only the actual table length can be used to infer the version. 4422This 4423change updates the ACPICA core and the disassembler so that both no 4424longer 4425even look at the FADT version and instead depend solely upon the FADT 4426length. 4427 4428Fix an unresolved name issue for the no-debug and no-error-message source 4429generation cases. The _AcpiModuleName was left undefined in these cases, 4430but 4431it is actually needed as a parameter to some interfaces. Define 4432_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 4433 4434Split several large files (makefiles and project files updated) 4435 utglobal.c -> utdecode.c 4436 dbcomds.c -> dbmethod.c dbnames.c 4437 dsopcode.c -> dsargs.c dscontrol.c 4438 dsload.c -> dsload2.c 4439 aslanalyze.c -> aslbtypes.c aslwalks.c 4440 4441Example Code and Data Size: These are the sizes for the OS-independent 4442acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4443debug version of the code includes the debug output trace mechanism and 4444has 4445a much larger code and data size. 4446 4447 Previous Release (VC 9.0): 4448 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4449 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4450 Current Release (VC 9.0): 4451 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4452 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4453 44542) iASL Compiler/Disassembler and Tools: 4455 4456iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 4457These are useful C-style macros with the standard definitions. ACPICA 4458bugzilla 898. 4459 4460iASL/DTC: Added support for integer expressions and labels. Support for 4461full 4462expressions for all integer fields in all ACPI tables. Support for labels 4463in 4464"generic" portions of tables such as UEFI. See the iASL reference manual. 4465 4466Debugger: Added a command to display the status of global handlers. The 4467"handlers" command will display op region, fixed event, and miscellaneous 4468global handlers. installation status -- and for op regions, whether 4469default 4470or user-installed handler will be used. 4471 4472iASL: Warn if reserved method incorrectly returns a value. Many 4473predefined 4474names are defined such that they do not return a value. If implemented as 4475a 4476method, issue a warning if such a name explicitly returns a value. ACPICA 4477Bugzilla 855. 4478 4479iASL: Added detection of GPE method name conflicts. Detects a conflict 4480where 4481there are two GPE methods of the form _Lxy and _Exy in the same scope. 4482(For 4483example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 4484 4485iASL/DTC: Fixed a couple input scanner issues with comments and line 4486numbers. Comment remover could get confused and miss a comment ending. 4487Fixed 4488a problem with line counter maintenance. 4489 4490iASL/DTC: Reduced the severity of some errors from fatal to error. There 4491is 4492no need to abort on simple errors within a field definition. 4493 4494Debugger: Simplified the output of the help command. All help output now 4495in 4496a single screen, instead of help subcommands. ACPICA Bugzilla 897. 4497 4498---------------------------------------- 449912 January 2011. Summary of changes for version 20110112: 4500 45011) ACPI CA Core Subsystem: 4502 4503Fixed a race condition between method execution and namespace walks that 4504can 4505possibly cause a fault. The problem was apparently introduced in version 450620100528 as a result of a performance optimization that reduces the 4507number 4508of 4509namespace walks upon method exit by using the delete_namespace_subtree 4510function instead of the delete_namespace_by_owner function used 4511previously. 4512Bug is a missing namespace lock in the delete_namespace_subtree function. 4513dana.myers@oracle.com 4514 4515Fixed several issues and a possible fault with the automatic "serialized" 4516method support. History: This support changes a method to "serialized" on 4517the 4518fly if the method generates an AE_ALREADY_EXISTS error, indicating the 4519possibility that it cannot handle reentrancy. This fix repairs a couple 4520of 4521issues seen in the field, especially on machines with many cores: 4522 4523 1) Delete method children only upon the exit of the last thread, 4524 so as to not delete objects out from under other running threads 4525 (and possibly causing a fault.) 4526 2) Set the "serialized" bit for the method only upon the exit of the 4527 Last thread, so as to not cause deadlock when running threads 4528 attempt to exit. 4529 3) Cleanup the use of the AML "MethodFlags" and internal method flags 4530 so that there is no longer any confusion between the two. 4531 4532 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 4533 4534Debugger: Now lock the namespace for duration of a namespace dump. 4535Prevents 4536issues if the namespace is changing dynamically underneath the debugger. 4537Especially affects temporary namespace nodes, since the debugger displays 4538these also. 4539 4540Updated the ordering of include files. The ACPICA headers should appear 4541before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 4542set 4543any necessary compiler-specific defines, etc. Affects the ACPI-related 4544tools 4545and utilities. 4546 4547Updated all ACPICA copyrights and signons to 2011. Added the 2011 4548copyright 4549to all module headers and signons, including the Linux header. This 4550affects 4551virtually every file in the ACPICA core subsystem, iASL compiler, and all 4552utilities. 4553 4554Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 4555project files for VC++ 6.0 are now obsolete. New project files can be 4556found 4557under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 4558details. 4559 4560Example Code and Data Size: These are the sizes for the OS-independent 4561acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4562debug version of the code includes the debug output trace mechanism and 4563has a 4564much larger code and data size. 4565 4566 Previous Release (VC 6.0): 4567 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 4568 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 4569 Current Release (VC 9.0): 4570 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4571 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4572 45732) iASL Compiler/Disassembler and Tools: 4574 4575iASL: Added generic data types to the Data Table compiler. Add "generic" 4576data 4577types such as UINT32, String, Unicode, etc., to simplify the generation 4578of 4579platform-defined tables such as UEFI. Lin Ming. 4580 4581iASL: Added listing support for the Data Table Compiler. Adds listing 4582support 4583(-l) to display actual binary output for each line of input code. 4584 4585---------------------------------------- 458609 December 2010. Summary of changes for version 20101209: 4587 45881) ACPI CA Core Subsystem: 4589 4590Completed the major overhaul of the GPE support code that was begun in 4591July 45922010. Major features include: removal of _PRW execution in ACPICA (host 4593executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 4594changes to existing interfaces, simplification of GPE handler operation, 4595and 4596a handful of new interfaces: 4597 4598 AcpiUpdateAllGpes 4599 AcpiFinishGpe 4600 AcpiSetupGpeForWake 4601 AcpiSetGpeWakeMask 4602 One new file, evxfgpe.c to consolidate all external GPE interfaces. 4603 4604See the ACPICA Programmer Reference for full details and programming 4605information. See the new section 4.4 "General Purpose Event (GPE) 4606Support" 4607for a full overview, and section 8.7 "ACPI General Purpose Event 4608Management" 4609for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin 4610Ming, 4611Bob Moore, Rafael Wysocki. 4612 4613Implemented a new GPE feature for Windows compatibility, the "Implicit 4614Wake 4615GPE Notify". This feature will automatically issue a Notify(2) on a 4616device 4617when a Wake GPE is received if there is no corresponding GPE method or 4618handler. ACPICA BZ 870. 4619 4620Fixed a problem with the Scope() operator during table parse and load 4621phase. 4622During load phase (table load or method execution), the scope operator 4623should 4624not enter the target into the namespace. Instead, it should open a new 4625scope 4626at the target location. Linux BZ 19462, ACPICA BZ 882. 4627 4628Example Code and Data Size: These are the sizes for the OS-independent 4629acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4630debug version of the code includes the debug output trace mechanism and 4631has a 4632much larger code and data size. 4633 4634 Previous Release: 4635 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 4636 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 4637 Current Release: 4638 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 4639 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 4640 46412) iASL Compiler/Disassembler and Tools: 4642 4643iASL: Relax the alphanumeric restriction on _CID strings. These strings 4644are 4645"bus-specific" per the ACPI specification, and therefore any characters 4646are 4647acceptable. The only checks that can be performed are for a null string 4648and 4649perhaps for a leading asterisk. ACPICA BZ 886. 4650 4651iASL: Fixed a problem where a syntax error that caused a premature EOF 4652condition on the source file emitted a very confusing error message. The 4653premature EOF is now detected correctly. ACPICA BZ 891. 4654 4655Disassembler: Decode the AccessSize within a Generic Address Structure 4656(byte 4657access, word access, etc.) Note, this field does not allow arbitrary bit 4658access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 4659 4660New: AcpiNames utility - Example namespace dump utility. Shows an example 4661of 4662ACPICA configuration for a minimal namespace dump utility. Uses table and 4663namespace managers, but no AML interpreter. Does not add any 4664functionality 4665over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 4666partition and configure ACPICA. ACPICA BZ 883. 4667 4668AML Debugger: Increased the debugger buffer size for method return 4669objects. 4670Was 4K, increased to 16K. Also enhanced error messages for debugger 4671method 4672execution, including the buffer overflow case. 4673 4674---------------------------------------- 467513 October 2010. Summary of changes for version 20101013: 4676 46771) ACPI CA Core Subsystem: 4678 4679Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 4680now 4681clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 4682HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 4683 4684Changed the type of the predefined namespace object _TZ from ThermalZone 4685to 4686Device. This was found to be confusing to the host software that 4687processes 4688the various thermal zones, since _TZ is not really a ThermalZone. 4689However, 4690a 4691Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 4692Zhang. 4693 4694Added Windows Vista SP2 to the list of supported _OSI strings. The actual 4695string is "Windows 2006 SP2". 4696 4697Eliminated duplicate code in AcpiUtExecute* functions. Now that the 4698nsrepair 4699code automatically repairs _HID-related strings, this type of code is no 4700longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 4701878. 4702 4703Example Code and Data Size: These are the sizes for the OS-independent 4704acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4705debug version of the code includes the debug output trace mechanism and 4706has a 4707much larger code and data size. 4708 4709 Previous Release: 4710 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 4711 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 4712 Current Release: 4713 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 4714 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 4715 47162) iASL Compiler/Disassembler and Tools: 4717 4718iASL: Implemented additional compile-time validation for _HID strings. 4719The 4720non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the 4721length 4722of 4723the string must be exactly seven or eight characters. For both _HID and 4724_CID 4725strings, all characters must be alphanumeric. ACPICA BZ 874. 4726 4727iASL: Allow certain "null" resource descriptors. Some BIOS code creates 4728descriptors that are mostly or all zeros, with the expectation that they 4729will 4730be filled in at runtime. iASL now allows this as long as there is a 4731"resource 4732tag" (name) associated with the descriptor, which gives the ASL a handle 4733needed to modify the descriptor. ACPICA BZ 873. 4734 4735Added single-thread support to the generic Unix application OSL. 4736Primarily 4737for iASL support, this change removes the use of semaphores in the 4738single- 4739threaded ACPICA tools/applications - increasing performance. The 4740_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 4741option. ACPICA BZ 879. 4742 4743AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 4744support 4745for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 4746 4747iASL: Moved all compiler messages to a new file, aslmessages.h. 4748 4749---------------------------------------- 475015 September 2010. Summary of changes for version 20100915: 4751 47521) ACPI CA Core Subsystem: 4753 4754Removed the AcpiOsDerivePciId OSL interface. The various host 4755implementations 4756of this function were not OS-dependent and are now obsolete and can be 4757removed from all host OSLs. This function has been replaced by 4758AcpiHwDerivePciId, which is now part of the ACPICA core code. 4759AcpiHwDerivePciId has been implemented without recursion. Adds one new 4760module, hwpci.c. ACPICA BZ 857. 4761 4762Implemented a dynamic repair for _HID and _CID strings. The following 4763problems are now repaired at runtime: 1) Remove a leading asterisk in the 4764string, and 2) the entire string is uppercased. Both repairs are in 4765accordance with the ACPI specification and will simplify host driver 4766code. 4767ACPICA BZ 871. 4768 4769The ACPI_THREAD_ID type is no longer configurable, internally it is now 4770always UINT64. This simplifies the ACPICA code, especially any printf 4771output. 4772UINT64 is the only common data type for all thread_id types across all 4773operating systems. It is now up to the host OSL to cast the native 4774thread_id 4775type to UINT64 before returning the value to ACPICA (via 4776AcpiOsGetThreadId). 4777Lin Ming, Bob Moore. 4778 4779Added the ACPI_INLINE type to enhance the ACPICA configuration. The 4780"inline" 4781keyword is not standard across compilers, and this type allows inline to 4782be 4783configured on a per-compiler basis. Lin Ming. 4784 4785Made the system global AcpiGbl_SystemAwakeAndRunning publically 4786available. 4787Added an extern for this boolean in acpixf.h. Some hosts utilize this 4788value 4789during suspend/restore operations. ACPICA BZ 869. 4790 4791All code that implements error/warning messages with the "ACPI:" prefix 4792has 4793been moved to a new module, utxferror.c. 4794 4795The UINT64_OVERLAY was moved to utmath.c, which is the only module where 4796it 4797is used. ACPICA BZ 829. Lin Ming, Bob Moore. 4798 4799Example Code and Data Size: These are the sizes for the OS-independent 4800acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4801debug version of the code includes the debug output trace mechanism and 4802has a 4803much larger code and data size. 4804 4805 Previous Release: 4806 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 4807 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 4808 Current Release: 4809 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 4810 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 4811 48122) iASL Compiler/Disassembler and Tools: 4813 4814iASL/Disassembler: Write ACPI errors to stderr instead of the output 4815file. 4816This keeps the output files free of random error messages that may 4817originate 4818from within the namespace/interpreter code. Used this opportunity to 4819merge 4820all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 4821866. Lin Ming, Bob Moore. 4822 4823Tools: update some printfs for ansi warnings on size_t. Handle width 4824change 4825of size_t on 32-bit versus 64-bit generations. Lin Ming. 4826 4827---------------------------------------- 482806 August 2010. Summary of changes for version 20100806: 4829 48301) ACPI CA Core Subsystem: 4831 4832Designed and implemented a new host interface to the _OSI support code. 4833This 4834will allow the host to dynamically add or remove multiple _OSI strings, 4835as 4836well as install an optional handler that is called for each _OSI 4837invocation. 4838Also added a new AML debugger command, 'osi' to display and modify the 4839global 4840_OSI string table, and test support in the AcpiExec utility. See the 4841ACPICA 4842reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 4843New Functions: 4844 AcpiInstallInterface - Add an _OSI string. 4845 AcpiRemoveInterface - Delete an _OSI string. 4846 AcpiInstallInterfaceHandler - Install optional _OSI handler. 4847Obsolete Functions: 4848 AcpiOsValidateInterface - no longer used. 4849New Files: 4850 source/components/utilities/utosi.c 4851 4852Re-introduced the support to enable multi-byte transfers for Embedded 4853Controller (EC) operation regions. A reported problem was found to be a 4854bug 4855in the host OS, not in the multi-byte support. Previously, the maximum 4856data 4857size passed to the EC operation region handler was a single byte. There 4858are 4859often EC Fields larger than one byte that need to be transferred, and it 4860is 4861useful for the EC driver to lock these as a single transaction. This 4862change 4863enables single transfers larger than 8 bits. This effectively changes the 4864access to the EC space from ByteAcc to AnyAcc, and will probably require 4865changes to the host OS Embedded Controller driver to enable 16/32/64/256- 4866bit 4867transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 4868 4869Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 4870prototype in acpiosxf.h had the output value pointer as a (void *). 4871It should be a (UINT64 *). This may affect some host OSL code. 4872 4873Fixed a couple problems with the recently modified Linux makefiles for 4874iASL 4875and AcpiExec. These new makefiles place the generated object files in the 4876local directory so that there can be no collisions between the files that 4877are 4878shared between them that are compiled with different options. 4879 4880Example Code and Data Size: These are the sizes for the OS-independent 4881acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4882debug version of the code includes the debug output trace mechanism and 4883has a 4884much larger code and data size. 4885 4886 Previous Release: 4887 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 4888 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 4889 Current Release: 4890 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 4891 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 4892 48932) iASL Compiler/Disassembler and Tools: 4894 4895iASL/Disassembler: Added a new option (-da, "disassemble all") to load 4896the 4897namespace from and disassemble an entire group of AML files. Useful for 4898loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 4899and 4900disassembling with one simple command. ACPICA BZ 865. Lin Ming. 4901 4902iASL: Allow multiple invocations of -e option. This change allows 4903multiple 4904uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 4905834. 4906Lin Ming. 4907 4908---------------------------------------- 490902 July 2010. Summary of changes for version 20100702: 4910 49111) ACPI CA Core Subsystem: 4912 4913Implemented several updates to the recently added GPE reference count 4914support. The model for "wake" GPEs is changing to give the host OS 4915complete 4916control of these GPEs. Eventually, the ACPICA core will not execute any 4917_PRW 4918methods, since the host already must execute them. Also, additional 4919changes 4920were made to help ensure that the reference counts are kept in proper 4921synchronization with reality. Rafael J. Wysocki. 4922 49231) Ensure that GPEs are not enabled twice during initialization. 49242) Ensure that GPE enable masks stay in sync with the reference count. 49253) Do not inadvertently enable GPEs when writing GPE registers. 49264) Remove the internal wake reference counter and add new AcpiGpeWakeup 4927interface. This interface will set or clear individual GPEs for wakeup. 49285) Remove GpeType argument from AcpiEnable and AcpiDisable. These 4929interfaces 4930are now used for "runtime" GPEs only. 4931 4932Changed the behavior of the GPE install/remove handler interfaces. The 4933GPE 4934is 4935no longer disabled during this process, as it was found to cause problems 4936on 4937some machines. Rafael J. Wysocki. 4938 4939Reverted a change introduced in version 20100528 to enable Embedded 4940Controller multi-byte transfers. This change was found to cause problems 4941with 4942Index Fields and possibly Bank Fields. It will be reintroduced when these 4943problems have been resolved. 4944 4945Fixed a problem with references to Alias objects within Package Objects. 4946A 4947reference to an Alias within the definition of a Package was not always 4948resolved properly. Aliases to objects like Processors, Thermal zones, 4949etc. 4950were resolved to the actual object instead of a reference to the object 4951as 4952it 4953should be. Package objects are only allowed to contain integer, string, 4954buffer, package, and reference objects. Redhat bugzilla 608648. 4955 4956Example Code and Data Size: These are the sizes for the OS-independent 4957acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4958debug version of the code includes the debug output trace mechanism and 4959has a 4960much larger code and data size. 4961 4962 Previous Release: 4963 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 4964 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 4965 Current Release: 4966 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 4967 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 4968 49692) iASL Compiler/Disassembler and Tools: 4970 4971iASL: Implemented a new compiler subsystem to allow definition and 4972compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 4973These 4974are called "ACPI Data Tables", and the new compiler is the "Data Table 4975Compiler". This compiler is intended to simplify the existing error-prone 4976process of creating these tables for the BIOS, as well as allowing the 4977disassembly, modification, recompilation, and override of existing ACPI 4978data 4979tables. See the iASL User Guide for detailed information. 4980 4981iASL: Implemented a new Template Generator option in support of the new 4982Data 4983Table Compiler. This option will create examples of all known ACPI tables 4984that can be used as the basis for table development. See the iASL 4985documentation and the -T option. 4986 4987Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 4988Descriptor Table). 4989 4990Updated the Linux makefiles for iASL and AcpiExec to place the generated 4991object files in the local directory so that there can be no collisions 4992between the shared files between them that are generated with different 4993options. 4994 4995Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. 4996Use 4997the #define __APPLE__ to enable this support. 4998 4999---------------------------------------- 500028 May 2010. Summary of changes for version 20100528: 5001 5002Note: The ACPI 4.0a specification was released on April 5, 2010 and is 5003available at www.acpi.info. This is primarily an errata release. 5004 50051) ACPI CA Core Subsystem: 5006 5007Undefined ACPI tables: We are looking for the definitions for the 5008following 5009ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 5010 5011Implemented support to enable multi-byte transfers for Embedded 5012Controller 5013(EC) operation regions. Previously, the maximum data size passed to the 5014EC 5015operation region handler was a single byte. There are often EC Fields 5016larger 5017than one byte that need to be transferred, and it is useful for the EC 5018driver 5019to lock these as a single transaction. This change enables single 5020transfers 5021larger than 8 bits. This effectively changes the access to the EC space 5022from 5023ByteAcc to AnyAcc, and will probably require changes to the host OS 5024Embedded 5025Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 5026bit 5027transfers. Alexey Starikovskiy, Lin Ming 5028 5029Implemented a performance enhancement for namespace search and access. 5030This 5031change enhances the performance of namespace searches and walks by adding 5032a 5033backpointer to the parent in each namespace node. On large namespaces, 5034this 5035change can improve overall ACPI performance by up to 9X. Adding a pointer 5036to 5037each namespace node increases the overall size of the internal namespace 5038by 5039about 5%, since each namespace entry usually consists of both a namespace 5040node and an ACPI operand object. However, this is the first growth of the 5041namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 5042 5043Implemented a performance optimization that reduces the number of 5044namespace 5045walks. On control method exit, only walk the namespace if the method is 5046known 5047to have created namespace objects outside of its local scope. Previously, 5048the 5049entire namespace was traversed on each control method exit. This change 5050can 5051improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 5052Moore. 5053 5054Added support to truncate I/O addresses to 16 bits for Windows 5055compatibility. 5056Some ASL code has been seen in the field that inadvertently has bits set 5057above bit 15. This feature is optional and is enabled if the BIOS 5058requests 5059any Windows OSI strings. It can also be enabled by the host OS. Matthew 5060Garrett, Bob Moore. 5061 5062Added support to limit the maximum time for the ASL Sleep() operator. To 5063prevent accidental deep sleeps, limit the maximum time that Sleep() will 5064actually sleep. Configurable, the default maximum is two seconds. ACPICA 5065bugzilla 854. 5066 5067Added run-time validation support for the _WDG and_WED Microsoft 5068predefined 5069methods. These objects are defined by "Windows Instrumentation", and are 5070not 5071part of the ACPI spec. ACPICA BZ 860. 5072 5073Expanded all statistic counters used during namespace and device 5074initialization from 16 to 32 bits in order to support very large 5075namespaces. 5076 5077Replaced all instances of %d in printf format specifiers with %u since 5078nearly 5079all integers in ACPICA are unsigned. 5080 5081Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 5082returned 5083as AE_NO_HANDLER. 5084 5085Example Code and Data Size: These are the sizes for the OS-independent 5086acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5087debug version of the code includes the debug output trace mechanism and 5088has a 5089much larger code and data size. 5090 5091 Previous Release: 5092 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 5093 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 5094 Current Release: 5095 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5096 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 5097 50982) iASL Compiler/Disassembler and Tools: 5099 5100iASL: Added compiler support for the _WDG and_WED Microsoft predefined 5101methods. These objects are defined by "Windows Instrumentation", and are 5102not 5103part of the ACPI spec. ACPICA BZ 860. 5104 5105AcpiExec: added option to disable the memory tracking mechanism. The -dt 5106option will disable the tracking mechanism, which improves performance 5107considerably. 5108 5109AcpiExec: Restructured the command line options into -d (disable) and -e 5110(enable) options. 5111 5112---------------------------------------- 511328 April 2010. Summary of changes for version 20100428: 5114 51151) ACPI CA Core Subsystem: 5116 5117Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 5118including FADT-based and GPE Block Devices, execute any _PRW methods in 5119the 5120new table, and process any _Lxx/_Exx GPE methods in the new table. Any 5121runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 5122immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 5123Devices. Provides compatibility with other ACPI implementations. Two new 5124files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 5125Moore. 5126 5127Fixed a regression introduced in version 20100331 within the table 5128manager 5129where initial table loading could fail. This was introduced in the fix 5130for 5131AcpiReallocateRootTable. Also, renamed some of fields in the table 5132manager 5133data structures to clarify their meaning and use. 5134 5135Fixed a possible allocation overrun during internal object copy in 5136AcpiUtCopySimpleObject. The original code did not correctly handle the 5137case 5138where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 5139847. 5140 5141Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 5142possible access beyond end-of-allocation. Also, now fully validate 5143descriptor 5144(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 5145 5146Example Code and Data Size: These are the sizes for the OS-independent 5147acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5148debug version of the code includes the debug output trace mechanism and 5149has a 5150much larger code and data size. 5151 5152 Previous Release: 5153 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 5154 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 5155 Current Release: 5156 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 5157 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 5158 51592) iASL Compiler/Disassembler and Tools: 5160 5161iASL: Implemented Min/Max/Len/Gran validation for address resource 5162descriptors. This change implements validation for the address fields 5163that 5164are common to all address-type resource descriptors. These checks are 5165implemented: Checks for valid Min/Max, length within the Min/Max window, 5166valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as 5167per 5168table 6-40 in the ACPI 4.0a specification. Also split the large 5169aslrestype1.c 5170and aslrestype2.c files into five new files. ACPICA BZ 840. 5171 5172iASL: Added support for the _Wxx predefined names. This support was 5173missing 5174and these names were not recognized by the compiler as valid predefined 5175names. ACPICA BZ 851. 5176 5177iASL: Added an error for all predefined names that are defined to return 5178no 5179value and thus must be implemented as Control Methods. These include all 5180of 5181the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 5182names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 5183 5184iASL: Implemented the -ts option to emit hex AML data in ASL format, as 5185an 5186ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 5187be 5188dynamically loaded via the Load() operator. Also cleaned up output for 5189the 5190- 5191ta and -tc options. ACPICA BZ 853. 5192 5193Tests: Added a new file with examples of extended iASL error checking. 5194Demonstrates the advanced error checking ability of the iASL compiler. 5195Available at tests/misc/badcode.asl. 5196 5197---------------------------------------- 519831 March 2010. Summary of changes for version 20100331: 5199 52001) ACPI CA Core Subsystem: 5201 5202Completed a major update for the GPE support in order to improve support 5203for 5204shared GPEs and to simplify both host OS and ACPICA code. Added a 5205reference 5206count mechanism to support shared GPEs that require multiple device 5207drivers. 5208Several external interfaces have changed. One external interface has been 5209removed. One new external interface was added. Most of the GPE external 5210interfaces now use the GPE spinlock instead of the events mutex (and the 5211Flags parameter for many GPE interfaces has been removed.) See the 5212updated 5213ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 5214Rafael 5215Wysocki. ACPICA BZ 831. 5216 5217Changed: 5218 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 5219Removed: 5220 AcpiSetGpeType 5221New: 5222 AcpiSetGpe 5223 5224Implemented write support for DataTable operation regions. These regions 5225are 5226defined via the DataTableRegion() operator. Previously, only read support 5227was 5228implemented. The ACPI specification allows DataTableRegions to be 5229read/write, 5230however. 5231 5232Implemented a new subsystem option to force a copy of the DSDT to local 5233memory. Optionally copy the entire DSDT to local memory (instead of 5234simply 5235mapping it.) There are some (albeit very rare) BIOSs that corrupt or 5236replace 5237the original DSDT, creating the need for this option. Default is FALSE, 5238do 5239not copy the DSDT. 5240 5241Implemented detection of a corrupted or replaced DSDT. This change adds 5242support to detect a DSDT that has been corrupted and/or replaced from 5243outside 5244the OS (by firmware). This is typically catastrophic for the system, but 5245has 5246been seen on some machines. Once this problem has been detected, the DSDT 5247copy option can be enabled via system configuration. Lin Ming, Bob Moore. 5248 5249Fixed two problems with AcpiReallocateRootTable during the root table 5250copy. 5251When copying the root table to the new allocation, the length used was 5252incorrect. The new size was used instead of the current table size, 5253meaning 5254too much data was copied. Also, the count of available slots for ACPI 5255tables 5256was not set correctly. Alexey Starikovskiy, Bob Moore. 5257 5258Example Code and Data Size: These are the sizes for the OS-independent 5259acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5260debug version of the code includes the debug output trace mechanism and 5261has a 5262much larger code and data size. 5263 5264 Previous Release: 5265 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 5266 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 5267 Current Release: 5268 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 5269 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 5270 52712) iASL Compiler/Disassembler and Tools: 5272 5273iASL: Implement limited typechecking for values returned from predefined 5274control methods. The type of any returned static (unnamed) object is now 5275validated. For example, Return(1). ACPICA BZ 786. 5276 5277iASL: Fixed a predefined name object verification regression. Fixes a 5278problem 5279introduced in version 20100304. An error is incorrectly generated if a 5280predefined name is declared as a static named object with a value defined 5281using the keywords "Zero", "One", or "Ones". Lin Ming. 5282 5283iASL: Added Windows 7 support for the -g option (get local ACPI tables) 5284by 5285reducing the requested registry access rights. ACPICA BZ 842. 5286 5287Disassembler: fixed a possible fault when generating External() 5288statements. 5289Introduced in commit ae7d6fd: Properly handle externals with parent- 5290prefix 5291(carat). Fixes a string length allocation calculation. Lin Ming. 5292 5293---------------------------------------- 529404 March 2010. Summary of changes for version 20100304: 5295 52961) ACPI CA Core Subsystem: 5297 5298Fixed a possible problem with the AML Mutex handling function 5299AcpiExReleaseMutex where the function could fault under the very rare 5300condition when the interpreter has blocked, the interpreter lock is 5301released, 5302the interpreter is then reentered via the same thread, and attempts to 5303acquire an AML mutex that was previously acquired. FreeBSD report 140979. 5304Lin 5305Ming. 5306 5307Implemented additional configuration support for the AML "Debug Object". 5308Output from the debug object can now be enabled via a global variable, 5309AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 5310debugging. 5311This debug output is now available in the release version of ACPICA 5312instead 5313of just the debug version. Also, the entire debug output module can now 5314be 5315configured out of the ACPICA build if desired. One new file added, 5316executer/exdebug.c. Lin Ming, Bob Moore. 5317 5318Added header support for the ACPI MCHI table (Management Controller Host 5319Interface Table). This table was added in ACPI 4.0, but the defining 5320document 5321has only recently become available. 5322 5323Standardized output of integer values for ACPICA warnings/errors. Always 5324use 53250x prefix for hex output, always use %u for unsigned integer decimal 5326output. 5327Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 5328400 5329invocations.) These invocations were converted from the original 5330ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 5331 5332Example Code and Data Size: These are the sizes for the OS-independent 5333acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5334debug version of the code includes the debug output trace mechanism and 5335has a 5336much larger code and data size. 5337 5338 Previous Release: 5339 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 5340 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 5341 Current Release: 5342 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 5343 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 5344 53452) iASL Compiler/Disassembler and Tools: 5346 5347iASL: Implemented typechecking support for static (non-control method) 5348predefined named objects that are declared with the Name() operator. For 5349example, the type of this object is now validated to be of type Integer: 5350Name(_BBN, 1). This change migrates the compiler to using the core 5351predefined 5352name table instead of maintaining a local version. Added a new file, 5353aslpredef.c. ACPICA BZ 832. 5354 5355Disassembler: Added support for the ACPI 4.0 MCHI table. 5356 5357---------------------------------------- 535821 January 2010. Summary of changes for version 20100121: 5359 53601) ACPI CA Core Subsystem: 5361 5362Added the 2010 copyright to all module headers and signons. This affects 5363virtually every file in the ACPICA core subsystem, the iASL compiler, the 5364tools/utilities, and the test suites. 5365 5366Implemented a change to the AcpiGetDevices interface to eliminate 5367unnecessary 5368invocations of the _STA method. In the case where a specific _HID is 5369requested, do not run _STA until a _HID match is found. This eliminates 5370potentially dozens of _STA calls during a search for a particular 5371device/HID, 5372which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 5373 5374Implemented an additional repair for predefined method return values. 5375Attempt 5376to repair unexpected NULL elements within returned Package objects. 5377Create 5378an 5379Integer of value zero, a NULL String, or a zero-length Buffer as 5380appropriate. 5381ACPICA BZ 818. Lin Ming, Bob Moore. 5382 5383Removed the obsolete ACPI_INTEGER data type. This type was introduced as 5384the 5385code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 5386(with 538764-bit AML integers). It is now obsolete and this change removes it from 5388the 5389ACPICA code base, replaced by UINT64. The original typedef has been 5390retained 5391for now for compatibility with existing device driver code. ACPICA BZ 5392824. 5393 5394Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field 5395in 5396the parse tree object. 5397 5398Added additional warning options for the gcc-4 generation. Updated the 5399source 5400accordingly. This includes some code restructuring to eliminate 5401unreachable 5402code, elimination of some gotos, elimination of unused return values, 5403some 5404additional casting, and removal of redundant declarations. 5405 5406Example Code and Data Size: These are the sizes for the OS-independent 5407acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5408debug version of the code includes the debug output trace mechanism and 5409has a 5410much larger code and data size. 5411 5412 Previous Release: 5413 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 5414 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 5415 Current Release: 5416 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 5417 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 5418 54192) iASL Compiler/Disassembler and Tools: 5420 5421No functional changes for this release. 5422 5423---------------------------------------- 542414 December 2009. Summary of changes for version 20091214: 5425 54261) ACPI CA Core Subsystem: 5427 5428Enhanced automatic data type conversions for predefined name repairs. 5429This 5430change expands the automatic repairs/conversions for predefined name 5431return 5432values to make Integers, Strings, and Buffers fully interchangeable. 5433Also, 5434a 5435Buffer can be converted to a Package of Integers if necessary. The 5436nsrepair.c 5437module was completely restructured. Lin Ming, Bob Moore. 5438 5439Implemented automatic removal of null package elements during predefined 5440name 5441repairs. This change will automatically remove embedded and trailing NULL 5442package elements from returned package objects that are defined to 5443contain 5444a 5445variable number of sub-packages. The driver is then presented with a 5446package 5447with no null elements to deal with. ACPICA BZ 819. 5448 5449Implemented a repair for the predefined _FDE and _GTM names. The expected 5450return value for both names is a Buffer of 5 DWORDs. This repair fixes 5451two 5452possible problems (both seen in the field), where a package of integers 5453is 5454returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 5455Kim. 5456 5457Implemented additional module-level code support. This change will 5458properly 5459execute module-level code that is not at the root of the namespace (under 5460a 5461Device object, etc.). Now executes the code within the current scope 5462instead 5463of the root. ACPICA BZ 762. Lin Ming. 5464 5465Fixed possible mutex acquisition errors when running _REG methods. Fixes 5466a 5467problem where mutex errors can occur when running a _REG method that is 5468in 5469the same scope as a method-defined operation region or an operation 5470region 5471under a module-level IF block. This type of code is rare, so the problem 5472has 5473not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 5474 5475Fixed a possible memory leak during module-level code execution. An 5476object 5477could be leaked for each block of executed module-level code if the 5478interpreter slack mode is enabled This change deletes any implicitly 5479returned 5480object from the module-level code block. Lin Ming. 5481 5482Removed messages for successful predefined repair(s). The repair 5483mechanism 5484was considered too wordy. Now, messages are only unconditionally emitted 5485if 5486the return object cannot be repaired. Existing messages for successful 5487repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 5488827. 5489 5490Example Code and Data Size: These are the sizes for the OS-independent 5491acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5492debug version of the code includes the debug output trace mechanism and 5493has a 5494much larger code and data size. 5495 5496 Previous Release: 5497 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 5498 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 5499 Current Release: 5500 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 5501 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 5502 55032) iASL Compiler/Disassembler and Tools: 5504 5505iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 5506files 5507were no longer automatically removed at the termination of the compile. 5508 5509acpiexec: Implemented the -f option to specify default region fill value. 5510This option specifies the value used to initialize buffers that simulate 5511operation regions. Default value is zero. Useful for debugging problems 5512that 5513depend on a specific initial value for a region or field. 5514 5515---------------------------------------- 551612 November 2009. Summary of changes for version 20091112: 5517 55181) ACPI CA Core Subsystem: 5519 5520Implemented a post-order callback to AcpiWalkNamespace. The existing 5521interface only has a pre-order callback. This change adds an additional 5522parameter for a post-order callback which will be more useful for bus 5523scans. 5524ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 5525 5526Modified the behavior of the operation region memory mapping cache for 5527SystemMemory. Ensure that the memory mappings created for operation 5528regions 5529do not cross 4K page boundaries. Crossing a page boundary while mapping 5530regions can cause kernel warnings on some hosts if the pages have 5531different 5532attributes. Such regions are probably BIOS bugs, and this is the 5533workaround. 5534Linux BZ 14445. Lin Ming. 5535 5536Implemented an automatic repair for predefined methods that must return 5537sorted lists. This change will repair (by sorting) packages returned by 5538_ALR, 5539_PSS, and _TSS. Drivers can now assume that the packages are correctly 5540sorted 5541and do not contain NULL package elements. Adds one new file, 5542namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 5543 5544Fixed a possible fault during predefined name validation if a return 5545Package 5546object contains NULL elements. Also adds a warning if a NULL element is 5547followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 5548may 5549include repair or removal of all such NULL elements where possible. 5550 5551Implemented additional module-level executable AML code support. This 5552change 5553will execute module-level code that is not at the root of the namespace 5554(under a Device object, etc.) at table load time. Module-level executable 5555AML 5556code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 5557 5558Implemented a new internal function to create Integer objects. This 5559function 5560simplifies miscellaneous object creation code. ACPICA BZ 823. 5561 5562Reduced the severity of predefined repair messages, Warning to Info. 5563Since 5564the object was successfully repaired, a warning is too severe. Reduced to 5565an 5566info message for now. These messages may eventually be changed to debug- 5567only. 5568ACPICA BZ 812. 5569 5570Example Code and Data Size: These are the sizes for the OS-independent 5571acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5572debug version of the code includes the debug output trace mechanism and 5573has a 5574much larger code and data size. 5575 5576 Previous Release: 5577 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 5578 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 5579 Current Release: 5580 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 5581 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 5582 55832) iASL Compiler/Disassembler and Tools: 5584 5585iASL: Implemented Switch() with While(1) so that Break works correctly. 5586This 5587change correctly implements the Switch operator with a surrounding 5588While(1) 5589so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 5590 5591iASL: Added a message if a package initializer list is shorter than 5592package 5593length. Adds a new remark for a Package() declaration if an initializer 5594list 5595exists, but is shorter than the declared length of the package. Although 5596technically legal, this is probably a coding error and it is seen in the 5597field. ACPICA BZ 815. Lin Ming, Bob Moore. 5598 5599iASL: Fixed a problem where the compiler could fault after the maximum 5600number 5601of errors was reached (200). 5602 5603acpixtract: Fixed a possible warning for pointer cast if the compiler 5604warning 5605level set very high. 5606 5607---------------------------------------- 560813 October 2009. Summary of changes for version 20091013: 5609 56101) ACPI CA Core Subsystem: 5611 5612Fixed a problem where an Operation Region _REG method could be executed 5613more 5614than once. If a custom address space handler is installed by the host 5615before 5616the "initialize operation regions" phase of the ACPICA initialization, 5617any 5618_REG methods for that address space could be executed twice. This change 5619fixes the problem. ACPICA BZ 427. Lin Ming. 5620 5621Fixed a possible memory leak for the Scope() ASL operator. When the exact 5622invocation of "Scope(\)" is executed (change scope to root), one internal 5623operand object was leaked. Lin Ming. 5624 5625Implemented a run-time repair for the _MAT predefined method. If the _MAT 5626return value is defined as a Field object in the AML, and the field 5627size is less than or equal to the default width of an integer (32 or 562864),_MAT 5629can incorrectly return an Integer instead of a Buffer. ACPICA now 5630automatically repairs this problem. ACPICA BZ 810. 5631 5632Implemented a run-time repair for the _BIF and _BIX predefined methods. 5633The 5634"OEM Information" field is often incorrectly returned as an Integer with 5635value zero if the field is not supported by the platform. This is due to 5636an 5637ambiguity in the ACPI specification. The field should always be a string. 5638ACPICA now automatically repairs this problem by returning a NULL string 5639within the returned Package. ACPICA BZ 807. 5640 5641Example Code and Data Size: These are the sizes for the OS-independent 5642acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5643debug version of the code includes the debug output trace mechanism and 5644has a 5645much larger code and data size. 5646 5647 Previous Release: 5648 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 5649 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 5650 Current Release: 5651 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 5652 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 5653 56542) iASL Compiler/Disassembler and Tools: 5655 5656Disassembler: Fixed a problem where references to external symbols that 5657contained one or more parent-prefixes (carats) were not handled 5658correctly, 5659possibly causing a fault. ACPICA BZ 806. Lin Ming. 5660 5661Disassembler: Restructured the code so that all functions that handle 5662external symbols are in a single module. One new file is added, 5663common/dmextern.c. 5664 5665AML Debugger: Added a max count argument for the Batch command (which 5666executes multiple predefined methods within the namespace.) 5667 5668iASL: Updated the compiler documentation (User Reference.) Available at 5669http://www.acpica.org/documentation/. ACPICA BZ 750. 5670 5671AcpiXtract: Updated for Lint and other formatting changes. Close all open 5672files. 5673 5674---------------------------------------- 567503 September 2009. Summary of changes for version 20090903: 5676 56771) ACPI CA Core Subsystem: 5678 5679For Windows Vista compatibility, added the automatic execution of an _INI 5680method located at the namespace root (\_INI). This method is executed at 5681table load time. This support is in addition to the automatic execution 5682of 5683\_SB._INI. Lin Ming. 5684 5685Fixed a possible memory leak in the interpreter for AML package objects 5686if 5687the package initializer list is longer than the defined size of the 5688package. 5689This apparently can only happen if the BIOS changes the package size on 5690the 5691fly (seen in a _PSS object), as ASL compilers do not allow this. The 5692interpreter will truncate the package to the defined size (and issue an 5693error 5694message), but previously could leave the extra objects undeleted if they 5695were 5696pre-created during the argument processing (such is the case if the 5697package 5698consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 5699 5700Fixed a problem seen when a Buffer or String is stored to itself via ASL. 5701This has been reported in the field. Previously, ACPICA would zero out 5702the 5703buffer/string. Now, the operation is treated as a noop. Provides Windows 5704compatibility. ACPICA BZ 803. Lin Ming. 5705 5706Removed an extraneous error message for ASL constructs of the form 5707Store(LocalX,LocalX) when LocalX is uninitialized. These curious 5708statements 5709are seen in many BIOSs and are once again treated as NOOPs and no error 5710is 5711emitted when they are encountered. ACPICA BZ 785. 5712 5713Fixed an extraneous warning message if a _DSM reserved method returns a 5714Package object. _DSM can return any type of object, so validation on the 5715return type cannot be performed. ACPICA BZ 802. 5716 5717Example Code and Data Size: These are the sizes for the OS-independent 5718acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5719debug version of the code includes the debug output trace mechanism and 5720has a 5721much larger code and data size. 5722 5723 Previous Release: 5724 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 5725 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 5726 Current Release: 5727 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 5728 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 5729 57302) iASL Compiler/Disassembler and Tools: 5731 5732iASL: Fixed a problem with the use of the Alias operator and Resource 5733Templates. The correct alias is now constructed and no error is emitted. 5734ACPICA BZ 738. 5735 5736iASL: Implemented the -I option to specify additional search directories 5737for 5738include files. Allows multiple additional search paths for include files. 5739Directories are searched in the order specified on the command line 5740(after 5741the local directory is searched.) ACPICA BZ 800. 5742 5743iASL: Fixed a problem where the full pathname for include files was not 5744emitted for warnings/errors. This caused the IDE support to not work 5745properly. ACPICA BZ 765. 5746 5747iASL: Implemented the -@ option to specify a Windows-style response file 5748containing additional command line options. ACPICA BZ 801. 5749 5750AcpiExec: Added support to load multiple AML files simultaneously (such 5751as 5752a 5753DSDT and multiple SSDTs). Also added support for wildcards within the AML 5754pathname. These features allow all machine tables to be easily loaded and 5755debugged together. ACPICA BZ 804. 5756 5757Disassembler: Added missing support for disassembly of HEST table Error 5758Bank 5759subtables. 5760 5761---------------------------------------- 576230 July 2009. Summary of changes for version 20090730: 5763 5764The ACPI 4.0 implementation for ACPICA is complete with this release. 5765 57661) ACPI CA Core Subsystem: 5767 5768ACPI 4.0: Added header file support for all new and changed ACPI tables. 5769Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are 5770new 5771for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 5772BERT, 5773EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 5774There 5775have been some ACPI 4.0 changes to other existing tables. Split the large 5776actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 5777 5778ACPI 4.0: Implemented predefined name validation for all new names. There 5779are 578031 new names in ACPI 4.0. The predefined validation module was split into 5781two 5782files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 5783 5784Implemented support for so-called "module-level executable code". This is 5785executable AML code that exists outside of any control method and is 5786intended 5787to be executed at table load time. Although illegal since ACPI 2.0, this 5788type 5789of code still exists and is apparently still being created. Blocks of 5790this 5791code are now detected and executed as intended. Currently, the code 5792blocks 5793must exist under either an If, Else, or While construct; these are the 5794typical cases seen in the field. ACPICA BZ 762. Lin Ming. 5795 5796Implemented an automatic dynamic repair for predefined names that return 5797nested Package objects. This applies to predefined names that are defined 5798to 5799return a variable-length Package of sub-packages. If the number of sub- 5800packages is one, BIOS code is occasionally seen that creates a simple 5801single 5802package with no sub-packages. This code attempts to fix the problem by 5803wrapping a new package object around the existing package. These methods 5804can 5805be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA 5806BZ 5807790. 5808 5809Fixed a regression introduced in 20090625 for the AcpiGetDevices 5810interface. 5811The _HID/_CID matching was broken and no longer matched IDs correctly. 5812ACPICA 5813BZ 793. 5814 5815Fixed a problem with AcpiReset where the reset would silently fail if the 5816register was one of the protected I/O ports. AcpiReset now bypasses the 5817port 5818validation mechanism. This may eventually be driven into the 5819AcpiRead/Write 5820interfaces. 5821 5822Fixed a regression related to the recent update of the AcpiRead/Write 5823interfaces. A sleep/suspend could fail if the optional PM2 Control 5824register 5825does not exist during an attempt to write the Bus Master Arbitration bit. 5826(However, some hosts already delete the code that writes this bit, and 5827the 5828code may in fact be obsolete at this date.) ACPICA BZ 799. 5829 5830Fixed a problem where AcpiTerminate could fault if inadvertently called 5831twice 5832in succession. ACPICA BZ 795. 5833 5834Example Code and Data Size: These are the sizes for the OS-independent 5835acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5836debug version of the code includes the debug output trace mechanism and 5837has a 5838much larger code and data size. 5839 5840 Previous Release: 5841 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 5842 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 5843 Current Release: 5844 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 5845 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 5846 58472) iASL Compiler/Disassembler and Tools: 5848 5849ACPI 4.0: Implemented disassembler support for all new ACPI tables and 5850changes to existing tables. ACPICA BZ 775. 5851 5852---------------------------------------- 585325 June 2009. Summary of changes for version 20090625: 5854 5855The ACPI 4.0 Specification was released on June 16 and is available at 5856www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 5857continue for the next few releases. 5858 58591) ACPI CA Core Subsystem: 5860 5861ACPI 4.0: Implemented interpreter support for the IPMI operation region 5862address space. Includes support for bi-directional data buffers and an 5863IPMI 5864address space handler (to be installed by an IPMI device driver.) ACPICA 5865BZ 5866773. Lin Ming. 5867 5868ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. 5869Includes 5870support in both the header files and the disassembler. 5871 5872Completed a major update for the AcpiGetObjectInfo external interface. 5873Changes include: 5874 - Support for variable, unlimited length HID, UID, and CID strings. 5875 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 5876etc.) 5877 - Call the _SxW power methods on behalf of a device object. 5878 - Determine if a device is a PCI root bridge. 5879 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 5880These changes will require an update to all callers of this interface. 5881See 5882the updated ACPICA Programmer Reference for details. One new source file 5883has 5884been added - utilities/utids.c. ACPICA BZ 368, 780. 5885 5886Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 5887transfers. The Value parameter has been extended from 32 bits to 64 bits 5888in 5889order to support new ACPI 4.0 tables. These changes will require an 5890update 5891to 5892all callers of these interfaces. See the ACPICA Programmer Reference for 5893details. ACPICA BZ 768. 5894 5895Fixed several problems with AcpiAttachData. The handler was not invoked 5896when 5897the host node was deleted. The data sub-object was not automatically 5898deleted 5899when the host node was deleted. The interface to the handler had an 5900unused 5901parameter, this was removed. ACPICA BZ 778. 5902 5903Enhanced the function that dumps ACPI table headers. All non-printable 5904characters in the string fields are now replaced with '?' (Signature, 5905OemId, 5906OemTableId, and CompilerId.) ACPI tables with non-printable characters in 5907these fields are occasionally seen in the field. ACPICA BZ 788. 5908 5909Fixed a problem with predefined method repair code where the code that 5910attempts to repair/convert an object of incorrect type is only executed 5911on 5912the first time the predefined method is called. The mechanism that 5913disables 5914warnings on subsequent calls was interfering with the repair mechanism. 5915ACPICA BZ 781. 5916 5917Fixed a possible memory leak in the predefined validation/repair code 5918when 5919a 5920buffer is automatically converted to an expected string object. 5921 5922Removed obsolete 16-bit files from the distribution and from the current 5923git 5924tree head. ACPICA BZ 776. 5925 5926Example Code and Data Size: These are the sizes for the OS-independent 5927acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5928debug version of the code includes the debug output trace mechanism and 5929has a 5930much larger code and data size. 5931 5932 Previous Release: 5933 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 5934 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 5935 Current Release: 5936 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 5937 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 5938 59392) iASL Compiler/Disassembler and Tools: 5940 5941ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 5942operation region keyword. ACPICA BZ 771, 772. Lin Ming. 5943 5944ACPI 4.0: iASL - implemented compile-time validation support for all new 5945predefined names and control methods (31 total). ACPICA BZ 769. 5946 5947---------------------------------------- 594821 May 2009. Summary of changes for version 20090521: 5949 59501) ACPI CA Core Subsystem: 5951 5952Disabled the preservation of the SCI enable bit in the PM1 control 5953register. 5954The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification 5955to 5956be 5957a "preserved" bit - "OSPM always preserves this bit position", section 59584.7.3.2.1. However, some machines fail if this bit is in fact preserved 5959because the bit needs to be explicitly set by the OS as a workaround. No 5960machines fail if the bit is not preserved. Therefore, ACPICA no longer 5961attempts to preserve this bit. 5962 5963Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 5964incorrectly formed _PRT package could cause a fault. Added validation to 5965ensure that each package element is actually a sub-package. 5966 5967Implemented a new interface to install or override a single control 5968method, 5969AcpiInstallMethod. This interface is useful when debugging in order to 5970repair 5971an existing method or to install a missing method without having to 5972override 5973the entire ACPI table. See the ACPICA Programmer Reference for use and 5974examples. Lin Ming, Bob Moore. 5975 5976Fixed several reference count issues with the DdbHandle object that is 5977created from a Load or LoadTable operator. Prevent premature deletion of 5978the 5979object. Also, mark the object as invalid once the table has been 5980unloaded. 5981This is needed because the handle itself may not be deleted after the 5982table 5983unload, depending on whether it has been stored in a named object by the 5984caller. Lin Ming. 5985 5986Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 5987mutexes of the same sync level are acquired but then not released in 5988strict 5989opposite order, the internally maintained Current Sync Level becomes 5990confused 5991and can cause subsequent execution errors. ACPICA BZ 471. 5992 5993Changed the allowable release order for ASL mutex objects. The ACPI 4.0 5994specification has been changed to make the SyncLevel for mutex objects 5995more 5996useful. When releasing a mutex, the SyncLevel of the mutex must now be 5997the 5998same as the current sync level. This makes more sense than the previous 5999rule 6000(SyncLevel less than or equal). This change updates the code to match the 6001specification. 6002 6003Fixed a problem with the local version of the AcpiOsPurgeCache function. 6004The 6005(local) cache must be locked during all cache object deletions. Andrew 6006Baumann. 6007 6008Updated the Load operator to use operation region interfaces. This 6009replaces 6010direct memory mapping with region access calls. Now, all region accesses 6011go 6012through the installed region handler as they should. 6013 6014Simplified and optimized the NsGetNextNode function. Reduced parameter 6015count 6016and reduced code for this frequently used function. 6017 6018Example Code and Data Size: These are the sizes for the OS-independent 6019acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6020debug version of the code includes the debug output trace mechanism and 6021has a 6022much larger code and data size. 6023 6024 Previous Release: 6025 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 6026 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 6027 Current Release: 6028 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 6029 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 6030 60312) iASL Compiler/Disassembler and Tools: 6032 6033Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 6034problems 6035with sub-table disassembly and handling invalid sub-tables. Attempt 6036recovery 6037after an invalid sub-table ID. 6038 6039---------------------------------------- 604022 April 2009. Summary of changes for version 20090422: 6041 60421) ACPI CA Core Subsystem: 6043 6044Fixed a compatibility issue with the recently released I/O port 6045protection 6046mechanism. For windows compatibility, 1) On a port protection violation, 6047simply ignore the request and do not return an exception (allow the 6048control 6049method to continue execution.) 2) If only part of the request overlaps a 6050protected port, read/write the individual ports that are not protected. 6051Linux 6052BZ 13036. Lin Ming 6053 6054Enhanced the execution of the ASL/AML BreakPoint operator so that it 6055actually 6056breaks into the AML debugger if the debugger is present. This matches the 6057ACPI-defined behavior. 6058 6059Fixed several possible warnings related to the use of the configurable 6060ACPI_THREAD_ID. This type can now be configured as either an integer or a 6061pointer with no warnings. Also fixes several warnings in printf-like 6062statements for the 64-bit build when the type is configured as a pointer. 6063ACPICA BZ 766, 767. 6064 6065Fixed a number of possible warnings when compiling with gcc 4+ (depending 6066on 6067warning options.) Examples include printf formats, aliasing, unused 6068globals, 6069missing prototypes, missing switch default statements, use of non-ANSI 6070library functions, use of non-ANSI constructs. See generate/unix/Makefile 6071for 6072a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 6073 6074Example Code and Data Size: These are the sizes for the OS-independent 6075acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6076debug version of the code includes the debug output trace mechanism and 6077has a 6078much larger code and data size. 6079 6080 Previous Release: 6081 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 6082 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 6083 Current Release: 6084 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 6085 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 6086 60872) iASL Compiler/Disassembler and Tools: 6088 6089iASL: Fixed a generation warning from Bison 2.3 and fixed several 6090warnings 6091on 6092the 64-bit build. 6093 6094iASL: Fixed a problem where the Unix/Linux versions of the compiler could 6095not 6096correctly digest Windows/DOS formatted files (with CR/LF). 6097 6098iASL: Added a new option for "quiet mode" (-va) that produces only the 6099compilation summary, not individual errors and warnings. Useful for large 6100batch compilations. 6101 6102AcpiExec: Implemented a new option (-z) to enable a forced 6103semaphore/mutex 6104timeout that can be used to detect hang conditions during execution of 6105AML 6106code (includes both internal semaphores and AML-defined mutexes and 6107events.) 6108 6109Added new makefiles for the generation of acpica in a generic unix-like 6110environment. These makefiles are intended to generate the acpica tools 6111and 6112utilities from the original acpica git source tree structure. 6113 6114Test Suites: Updated and cleaned up the documentation files. Updated the 6115copyrights to 2009, affecting all source files. Use the new version of 6116iASL 6117with quiet mode. Increased the number of available semaphores in the 6118Windows 6119OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 6120added 6121an alternate implementation of the semaphore timeout to allow aslts to 6122execute fully on Cygwin. 6123 6124---------------------------------------- 612520 March 2009. Summary of changes for version 20090320: 6126 61271) ACPI CA Core Subsystem: 6128 6129Fixed a possible race condition between AcpiWalkNamespace and dynamic 6130table 6131unloads. Added a reader/writer locking mechanism to allow multiple 6132concurrent 6133namespace walks (readers), but block a dynamic table unload until it can 6134gain 6135exclusive write access to the namespace. This fixes a problem where a 6136table 6137unload could (possibly catastrophically) delete the portion of the 6138namespace 6139that is currently being examined by a walk. Adds a new file, utlock.c, 6140that 6141implements the reader/writer lock mechanism. ACPICA BZ 749. 6142 6143Fixed a regression introduced in version 20090220 where a change to the 6144FADT 6145handling could cause the ACPICA subsystem to access non-existent I/O 6146ports. 6147 6148Modified the handling of FADT register and table (FACS/DSDT) addresses. 6149The 6150FADT can contain both 32-bit and 64-bit versions of these addresses. 6151Previously, the 64-bit versions were favored, meaning that if both 32 and 615264 6153versions were valid, but not equal, the 64-bit version was used. This was 6154found to cause some machines to fail. Now, in this case, the 32-bit 6155version 6156is used instead. This now matches the Windows behavior. 6157 6158Implemented a new mechanism to protect certain I/O ports. Provides 6159Microsoft 6160compatibility and protects the standard PC I/O ports from access via AML 6161code. Adds a new file, hwvalid.c 6162 6163Fixed a possible extraneous warning message from the FADT support. The 6164message warns of a 32/64 length mismatch between the legacy and GAS 6165definitions for a register. 6166 6167Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 6168is 6169made obsolete by the port protection mechanism above. It was previously 6170used 6171to validate the entire address range of an operation region, which could 6172be 6173incorrect if the range included illegal ports, but fields within the 6174operation region did not actually access those ports. Validation is now 6175performed on a per-field basis instead of the entire region. 6176 6177Modified the handling of the PM1 Status Register ignored bit (bit 11.) 6178Ignored bits must be "preserved" according to the ACPI spec. Usually, 6179this 6180means a read/modify/write when writing to the register. However, for 6181status 6182registers, writing a one means clear the event. Writing a zero means 6183preserve 6184the event (do not clear.) This behavior is clarified in the ACPI 4.0 6185spec, 6186and the ACPICA code now simply always writes a zero to the ignored bit. 6187 6188Modified the handling of ignored bits for the PM1 A/B Control Registers. 6189As 6190per the ACPI specification, for the control registers, preserve 6191(read/modify/write) all bits that are defined as either reserved or 6192ignored. 6193 6194Updated the handling of write-only bits in the PM1 A/B Control Registers. 6195When reading the register, zero the write-only bits as per the ACPI spec. 6196ACPICA BZ 443. Lin Ming. 6197 6198Removed "Linux" from the list of supported _OSI strings. Linux no longer 6199wants to reply true to this request. The Windows strings are the only 6200paths 6201through the AML that are tested and known to work properly. 6202 6203 Previous Release: 6204 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 6205 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 6206 Current Release: 6207 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 6208 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 6209 62102) iASL Compiler/Disassembler and Tools: 6211 6212Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 6213and 6214aetables.c 6215 6216---------------------------------------- 621720 February 2009. Summary of changes for version 20090220: 6218 62191) ACPI CA Core Subsystem: 6220 6221Optimized the ACPI register locking. Removed locking for reads from the 6222ACPI 6223bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock 6224is 6225not required when reading the single-bit registers. The 6226AcpiGetRegisterUnlocked function is no longer needed and has been 6227removed. 6228This will improve performance for reads on these registers. ACPICA BZ 6229760. 6230 6231Fixed the parameter validation for AcpiRead/Write. Now return 6232AE_BAD_PARAMETER if the input register pointer is null, and 6233AE_BAD_ADDRESS 6234if 6235the register has an address of zero. Previously, these cases simply 6236returned 6237AE_OK. For optional registers such as PM1B status/enable/control, the 6238caller 6239should check for a valid register address before calling. ACPICA BZ 748. 6240 6241Renamed the external ACPI bit register access functions. Renamed 6242AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 6243functions. The new names are AcpiReadBitRegister and 6244AcpiWriteBitRegister. 6245Also, restructured the code for these functions by simplifying the code 6246path 6247and condensing duplicate code to reduce code size. 6248 6249Added new functions to transparently handle the possibly split PM1 A/B 6250registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two 6251functions 6252now handle the split registers for PM1 Status, Enable, and Control. 6253ACPICA 6254BZ 6255746. 6256 6257Added a function to handle the PM1 control registers, 6258AcpiHwWritePm1Control. 6259This function writes both of the PM1 control registers (A/B). These 6260registers 6261are different than the PM1 A/B status and enable registers in that 6262different 6263values can be written to the A/B registers. Most notably, the SLP_TYP 6264bits 6265can be different, as per the values returned from the _Sx predefined 6266methods. 6267 6268Removed an extra register write within AcpiHwClearAcpiStatus. This 6269function 6270was writing an optional PM1B status register twice. The existing call to 6271the 6272low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 6273A/B 6274register. ACPICA BZ 751. 6275 6276Split out the PM1 Status registers from the FADT. Added new globals for 6277these 6278registers (A/B), similar to the way the PM1 Enable registers are handled. 6279Instead of overloading the FADT Event Register blocks. This makes the 6280code 6281clearer and less prone to error. 6282 6283Fixed the warning message for when the platform contains too many ACPI 6284tables 6285for the default size of the global root table data structure. The 6286calculation 6287for the truncation value was incorrect. 6288 6289Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 6290obsolete macro, since it is now a simple reference to ->common.type. 6291There 6292were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 6293 6294Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 6295TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 6296simply SLEEP_TYPE. ACPICA BZ 754. 6297 6298Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 6299function is only needed on 64-bit host operating systems and is thus not 6300included for 32-bit hosts. 6301 6302Debug output: print the input and result for invocations of the _OSI 6303reserved 6304control method via the ACPI_LV_INFO debug level. Also, reduced some of 6305the 6306verbosity of this debug level. Len Brown. 6307 6308Example Code and Data Size: These are the sizes for the OS-independent 6309acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6310debug version of the code includes the debug output trace mechanism and 6311has a 6312much larger code and data size. 6313 6314 Previous Release: 6315 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 6316 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 6317 Current Release: 6318 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 6319 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 6320 63212) iASL Compiler/Disassembler and Tools: 6322 6323Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 6324various legal performance profiles. 6325 6326---------------------------------------- 632723 January 2009. Summary of changes for version 20090123: 6328 63291) ACPI CA Core Subsystem: 6330 6331Added the 2009 copyright to all module headers and signons. This affects 6332virtually every file in the ACPICA core subsystem, the iASL compiler, and 6333the tools/utilities. 6334 6335Implemented a change to allow the host to override any ACPI table, 6336including 6337dynamically loaded tables. Previously, only the DSDT could be replaced by 6338the 6339host. With this change, the AcpiOsTableOverride interface is called for 6340each 6341table found in the RSDT/XSDT during ACPICA initialization, and also 6342whenever 6343a table is dynamically loaded via the AML Load operator. 6344 6345Updated FADT flag definitions, especially the Boot Architecture flags. 6346 6347Debugger: For the Find command, automatically pad the input ACPI name 6348with 6349underscores if the name is shorter than 4 characters. This enables a 6350match 6351with the actual namespace entry which is itself padded with underscores. 6352 6353Example Code and Data Size: These are the sizes for the OS-independent 6354acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6355debug version of the code includes the debug output trace mechanism and 6356has a 6357much larger code and data size. 6358 6359 Previous Release: 6360 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 6361 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 6362 Current Release: 6363 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 6364 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 6365 63662) iASL Compiler/Disassembler and Tools: 6367 6368Fix build error under Bison-2.4. 6369 6370Dissasembler: Enhanced FADT support. Added decoding of the Boot 6371Architecture 6372flags. Now decode all flags, regardless of the FADT version. Flag output 6373includes the FADT version which first defined each flag. 6374 6375The iASL -g option now dumps the RSDT to a file (in addition to the FADT 6376and 6377DSDT). Windows only. 6378 6379---------------------------------------- 638004 December 2008. Summary of changes for version 20081204: 6381 63821) ACPI CA Core Subsystem: 6383 6384The ACPICA Programmer Reference has been completely updated and revamped 6385for 6386this release. This includes updates to the external interfaces, OSL 6387interfaces, the overview sections, and the debugger reference. 6388 6389Several new ACPICA interfaces have been implemented and documented in the 6390programmer reference: 6391AcpiReset - Writes the reset value to the FADT-defined reset register. 6392AcpiDisableAllGpes - Disable all available GPEs. 6393AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 6394AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 6395AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 6396AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 6397AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 6398 6399Most of the public ACPI hardware-related interfaces have been moved to a 6400new 6401file, components/hardware/hwxface.c 6402 6403Enhanced the FADT parsing and low-level ACPI register access: The ACPI 6404register lengths within the FADT are now used, and the low level ACPI 6405register access no longer hardcodes the ACPI register lengths. Given that 6406there may be some risk in actually trusting the FADT register lengths, a 6407run- 6408time option was added to fall back to the default hardcoded lengths if 6409the 6410FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 6411option is set to true for now, and a warning is issued if a suspicious 6412FADT 6413register length is overridden with the default value. 6414 6415Fixed a reference count issue in NsRepairObject. This problem was 6416introduced 6417in version 20081031 as part of a fix to repair Buffer objects within 6418Packages. Lin Ming. 6419 6420Added semaphore support to the Linux/Unix application OS-services layer 6421(OSL). ACPICA BZ 448. Lin Ming. 6422 6423Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 6424will 6425be implemented in the OSL, or will binary semaphores be used instead. 6426 6427Example Code and Data Size: These are the sizes for the OS-independent 6428acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6429debug version of the code includes the debug output trace mechanism and 6430has a 6431much larger code and data size. 6432 6433 Previous Release: 6434 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 6435 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 6436 Current Release: 6437 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 6438 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 6439 64402) iASL Compiler/Disassembler and Tools: 6441 6442iASL: Completed the '-e' option to include additional ACPI tables in 6443order 6444to 6445aid with disassembly and External statement generation. ACPICA BZ 742. 6446Lin 6447Ming. 6448 6449iASL: Removed the "named object in while loop" error. The compiler cannot 6450determine how many times a loop will execute. ACPICA BZ 730. 6451 6452Disassembler: Implemented support for FADT revision 2 (MS extension). 6453ACPICA 6454BZ 743. 6455 6456Disassembler: Updates for several ACPI data tables (HEST, EINJ, and 6457MCFG). 6458 6459---------------------------------------- 646031 October 2008. Summary of changes for version 20081031: 6461 64621) ACPI CA Core Subsystem: 6463 6464Restructured the ACPICA header files into public/private. acpi.h now 6465includes 6466only the "public" acpica headers. All other acpica headers are "private" 6467and 6468should not be included by acpica users. One new file, accommon.h is used 6469to 6470include the commonly used private headers for acpica code generation. 6471Future 6472plans include moving all private headers to a new subdirectory. 6473 6474Implemented an automatic Buffer->String return value conversion for 6475predefined ACPI methods. For these methods (such as _BIF), added 6476automatic 6477conversion for return objects that are required to be a String, but a 6478Buffer 6479was found instead. This can happen when reading string battery data from 6480an 6481operation region, because it used to be difficult to convert the data 6482from 6483buffer to string from within the ASL. Ensures that the host OS is 6484provided 6485with a valid null-terminated string. Linux BZ 11822. 6486 6487Updated the FACS waking vector interfaces. Split 6488AcpiSetFirmwareWakingVector 6489into two: one for the 32-bit vector, another for the 64-bit vector. This 6490is 6491required because the host OS must setup the wake much differently for 6492each 6493vector (real vs. protected mode, etc.) and the interface itself should 6494not 6495be 6496deciding which vector to use. Also, eliminated the 6497GetFirmwareWakingVector 6498interface, as it served no purpose (only the firmware reads the vector, 6499OS 6500only writes the vector.) ACPICA BZ 731. 6501 6502Implemented a mechanism to escape infinite AML While() loops. Added a 6503loop 6504counter to force exit from AML While loops if the count becomes too 6505large. 6506This can occur in poorly written AML when the hardware does not respond 6507within a while loop and the loop does not implement a timeout. The 6508maximum 6509loop count is configurable. A new exception code is returned when a loop 6510is 6511broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 6512 6513Optimized the execution of AML While loops. Previously, a control state 6514object was allocated and freed for each execution of the loop. The 6515optimization is to simply reuse the control state for each iteration. 6516This 6517speeds up the raw loop execution time by about 5%. 6518 6519Enhanced the implicit return mechanism. For Windows compatibility, return 6520an 6521implicit integer of value zero for methods that contain no executable 6522code. 6523Such methods are seen in the field as stubs (presumably), and can cause 6524drivers to fail if they expect a return value. Lin Ming. 6525 6526Allow multiple backslashes as root prefixes in namepaths. In a fully 6527qualified namepath, allow multiple backslash prefixes. This can happen 6528(and 6529is seen in the field) because of the use of a double-backslash in strings 6530(since backslash is the escape character) causing confusion. ACPICA BZ 6531739 6532Lin Ming. 6533 6534Emit a warning if two different FACS or DSDT tables are discovered in the 6535FADT. Checks if there are two valid but different addresses for the FACS 6536and 6537DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 6538 6539Consolidated the method argument count validation code. Merged the code 6540that 6541validates control method argument counts into the predefined validation 6542module. Eliminates possible multiple warnings for incorrect argument 6543counts. 6544 6545Implemented ACPICA example code. Includes code for ACPICA initialization, 6546handler installation, and calling a control method. Available at 6547source/tools/examples. 6548 6549Added a global pointer for FACS table to simplify internal FACS access. 6550Use 6551the global pointer instead of using AcpiGetTableByIndex for each FACS 6552access. 6553This simplifies the code for the Global Lock and the Firmware Waking 6554Vector(s). 6555 6556Example Code and Data Size: These are the sizes for the OS-independent 6557acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6558debug version of the code includes the debug output trace mechanism and 6559has a 6560much larger code and data size. 6561 6562 Previous Release: 6563 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 6564 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 6565 Current Release: 6566 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 6567 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 6568 65692) iASL Compiler/Disassembler and Tools: 6570 6571iASL: Improved disassembly of external method calls. Added the -e option 6572to 6573allow the inclusion of additional ACPI tables to help with the 6574disassembly 6575of 6576method invocations and the generation of external declarations during the 6577disassembly. Certain external method invocations cannot be disassembled 6578properly without the actual declaration of the method. Use the -e option 6579to 6580include the table where the external method(s) are actually declared. 6581Most 6582useful for disassembling SSDTs that make method calls back to the master 6583DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 6584-d 6585-e dsdt.aml ssdt1.aml 6586 6587iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 6588problem where the use of an alias within a namepath would result in a not 6589found error or cause the compiler to fault. Also now allows forward 6590references from the Alias operator itself. ACPICA BZ 738. 6591 6592---------------------------------------- 659326 September 2008. Summary of changes for version 20080926: 6594 65951) ACPI CA Core Subsystem: 6596 6597Designed and implemented a mechanism to validate predefined ACPI methods 6598and 6599objects. This code validates the predefined ACPI objects (objects whose 6600names 6601start with underscore) that appear in the namespace, at the time they are 6602evaluated. The argument count and the type of the returned object are 6603validated against the ACPI specification. The purpose of this validation 6604is 6605to detect problems with the BIOS-implemented predefined ACPI objects 6606before 6607the results are returned to the ACPI-related drivers. Future enhancements 6608may 6609include actual repair of incorrect return objects where possible. Two new 6610files are nspredef.c and acpredef.h. 6611 6612Fixed a fault in the AML parser if a memory allocation fails during the 6613Op 6614completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 6615 6616Fixed an issue with implicit return compatibility. This change improves 6617the 6618implicit return mechanism to be more compatible with the MS interpreter. 6619Lin 6620Ming, ACPICA BZ 349. 6621 6622Implemented support for zero-length buffer-to-string conversions. Allow 6623zero 6624length strings during interpreter buffer-to-string conversions. For 6625example, 6626during the ToDecimalString and ToHexString operators, as well as implicit 6627conversions. Fiodor Suietov, ACPICA BZ 585. 6628 6629Fixed two possible memory leaks in the error exit paths of 6630AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions 6631are 6632similar in that they use a stack of state objects in order to eliminate 6633recursion. The stack must be fully unwound and deallocated if an error 6634occurs. Lin Ming. ACPICA BZ 383. 6635 6636Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 6637global 6638ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 6639Moore ACPICA BZ 442. 6640 6641Removed the obsolete version number in module headers. Removed the 6642"$Revision" number that appeared in each module header. This version 6643number 6644was useful under SourceSafe and CVS, but has no meaning under git. It is 6645not 6646only incorrect, it could also be misleading. 6647 6648Example Code and Data Size: These are the sizes for the OS-independent 6649acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6650debug version of the code includes the debug output trace mechanism and 6651has a 6652much larger code and data size. 6653 6654 Previous Release: 6655 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 6656 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 6657 Current Release: 6658 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 6659 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 6660 6661---------------------------------------- 666229 August 2008. Summary of changes for version 20080829: 6663 66641) ACPI CA Core Subsystem: 6665 6666Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 6667Reference. Changes include the elimination of cheating on the Object 6668field 6669for the DdbHandle subtype, addition of a reference class field to 6670differentiate the various reference types (instead of an AML opcode), and 6671the 6672cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 6673 6674Reduce an error to a warning for an incorrect method argument count. 6675Previously aborted with an error if too few arguments were passed to a 6676control method via the external ACPICA interface. Now issue a warning 6677instead 6678and continue. Handles the case where the method inadvertently declares 6679too 6680many arguments, but does not actually use the extra ones. Applies mainly 6681to 6682the predefined methods. Lin Ming. Linux BZ 11032. 6683 6684Disallow the evaluation of named object types with no intrinsic value. 6685Return 6686AE_TYPE for objects that have no value and therefore evaluation is 6687undefined: 6688Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 6689of 6690these types were allowed, but an exception would be generated at some 6691point 6692during the evaluation. Now, the error is generated up front. 6693 6694Fixed a possible memory leak in the AcpiNsGetExternalPathname function 6695(nsnames.c). Fixes a leak in the error exit path. 6696 6697Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 6698debug 6699levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 6700ACPI_EXCEPTION 6701interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 6702ACPI_LV_EVENTS. 6703 6704Removed obsolete and/or unused exception codes from the acexcep.h header. 6705There is the possibility that certain device drivers may be affected if 6706they 6707use any of these exceptions. 6708 6709The ACPICA documentation has been added to the public git source tree, 6710under 6711acpica/documents. Included are the ACPICA programmer reference, the iASL 6712compiler reference, and the changes.txt release logfile. 6713 6714Example Code and Data Size: These are the sizes for the OS-independent 6715acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6716debug version of the code includes the debug output trace mechanism and 6717has a 6718much larger code and data size. 6719 6720 Previous Release: 6721 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 6722 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 6723 Current Release: 6724 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 6725 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 6726 67272) iASL Compiler/Disassembler and Tools: 6728 6729Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 6730defines _SCP with 3 arguments. Previous versions defined it with only 1 6731argument. iASL now allows both definitions. 6732 6733iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for 6734zero- 6735length subtables when disassembling ACPI tables. Also fixed a couple of 6736errors where a full 16-bit table type field was not extracted from the 6737input 6738properly. 6739 6740acpisrc: Improve comment counting mechanism for generating source code 6741statistics. Count first and last lines of multi-line comments as 6742whitespace, 6743not comment lines. Handle Linux legal header in addition to standard 6744acpica 6745header. 6746 6747---------------------------------------- 6748 674929 July 2008. Summary of changes for version 20080729: 6750 67511) ACPI CA Core Subsystem: 6752 6753Fix a possible deadlock in the GPE dispatch. Remove call to 6754AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 6755attempt 6756to acquire the GPE lock but can deadlock since the GPE lock is already 6757held 6758at dispatch time. This code was introduced in version 20060831 as a 6759response 6760to Linux BZ 6881 and has since been removed from Linux. 6761 6762Add a function to dereference returned reference objects. Examines the 6763return 6764object from a call to AcpiEvaluateObject. Any Index or RefOf references 6765are 6766automatically dereferenced in an attempt to return something useful 6767(these 6768reference types cannot be converted into an external ACPI_OBJECT.) 6769Provides 6770MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 6771 6772x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 6773subtables for the MADT and one new subtable for the SRAT. Includes 6774disassembler and AcpiSrc support. Data from the Intel 64 Architecture 6775x2APIC 6776Specification, June 2008. 6777 6778Additional error checking for pathname utilities. Add error check after 6779all 6780calls to AcpiNsGetPathnameLength. Add status return from 6781AcpiNsBuildExternalPath and check after all calls. Add parameter 6782validation 6783to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 6784 6785Return status from the global init function AcpiUtGlobalInitialize. This 6786is 6787used by both the kernel subsystem and the utilities such as iASL 6788compiler. 6789The function could possibly fail when the caches are initialized. Yang 6790Yi. 6791 6792Add a function to decode reference object types to strings. Created for 6793improved error messages. 6794 6795Improve object conversion error messages. Better error messages during 6796object 6797conversion from internal to the external ACPI_OBJECT. Used for external 6798calls 6799to AcpiEvaluateObject. 6800 6801Example Code and Data Size: These are the sizes for the OS-independent 6802acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6803debug version of the code includes the debug output trace mechanism and 6804has a 6805much larger code and data size. 6806 6807 Previous Release: 6808 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 6809 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 6810 Current Release: 6811 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 6812 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 6813 68142) iASL Compiler/Disassembler and Tools: 6815 6816Debugger: fix a possible hang when evaluating non-methods. Fixes a 6817problem 6818introduced in version 20080701. If the object being evaluated (via 6819execute 6820command) is not a method, the debugger can hang while trying to obtain 6821non- 6822existent parameters. 6823 6824iASL: relax error for using reserved "_T_x" identifiers. These names can 6825appear in a disassembled ASL file if they were emitted by the original 6826compiler. Instead of issuing an error or warning and forcing the user to 6827manually change these names, issue a remark instead. 6828 6829iASL: error if named object created in while loop. Emit an error if any 6830named 6831object is created within a While loop. If allowed, this code will 6832generate 6833a 6834run-time error on the second iteration of the loop when an attempt is 6835made 6836to 6837create the same named object twice. ACPICA bugzilla 730. 6838 6839iASL: Support absolute pathnames for include files. Add support for 6840absolute 6841pathnames within the Include operator. previously, only relative 6842pathnames 6843were supported. 6844 6845iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 6846Descriptor. 6847The ACPI spec requires one interrupt minimum. BZ 423 6848 6849iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 6850Handles the case for the Interrupt Resource Descriptor where 6851the ResourceSource argument is omitted but ResourceSourceIndex 6852is present. Now leave room for the Index. BZ 426 6853 6854iASL: Prevent error message if CondRefOf target does not exist. Fixes 6855cases 6856where an error message is emitted if the target does not exist. BZ 516 6857 6858iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 6859(get ACPI tables on Windows). This was apparently broken in version 686020070919. 6861 6862AcpiXtract: Handle EOF while extracting data. Correctly handle the case 6863where 6864the EOF happens immediately after the last table in the input file. Print 6865completion message. Previously, no message was displayed in this case. 6866 6867---------------------------------------- 686801 July 2008. Summary of changes for version 20080701: 6869 68700) Git source tree / acpica.org 6871 6872Fixed a problem where a git-clone from http would not transfer the entire 6873source tree. 6874 68751) ACPI CA Core Subsystem: 6876 6877Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 6878enable bit. Now performs a read-change-write of the enable register 6879instead 6880of simply writing out the cached enable mask. This will prevent 6881inadvertent 6882enabling of GPEs if a rogue GPE is received during initialization (before 6883GPE 6884handlers are installed.) 6885 6886Implemented a copy for dynamically loaded tables. Previously, dynamically 6887loaded tables were simply mapped - but on some machines this memory is 6888corrupted after suspend. Now copy the table to a local buffer. For the 6889OpRegion case, added checksum verify. Use the table length from the table 6890header, not the region length. For the Buffer case, use the table length 6891also. Dennis Noordsij, Bob Moore. BZ 10734 6892 6893Fixed a problem where the same ACPI table could not be dynamically loaded 6894and 6895unloaded more than once. Without this change, a table cannot be loaded 6896again 6897once it has been loaded/unloaded one time. The current mechanism does not 6898unregister a table upon an unload. During a load, if the same table is 6899found, 6900this no longer returns an exception. BZ 722 6901 6902Fixed a problem where the wrong descriptor length was calculated for the 6903EndTag descriptor in 64-bit mode. The "minimal" descriptors such as 6904EndTag 6905are calculated as 12 bytes long, but the actual length in the internal 6906descriptor is 16 because of the round-up to 8 on the 64-bit build. 6907Reported 6908by Linn Crosetto. BZ 728 6909 6910Fixed a possible memory leak in the Unload operator. The DdbHandle 6911returned 6912by Load() did not have its reference count decremented during unload, 6913leading 6914to a memory leak. Lin Ming. BZ 727 6915 6916Fixed a possible memory leak when deleting thermal/processor objects. Any 6917associated notify handlers (and objects) were not being deleted. Fiodor 6918Suietov. BZ 506 6919 6920Fixed the ordering of the ASCII names in the global mutex table to match 6921the 6922actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 6923only. 6924Vegard Nossum. BZ 726 6925 6926Enhanced the AcpiGetObjectInfo interface to return the number of required 6927arguments if the object is a control method. Added this call to the 6928debugger 6929so the proper number of default arguments are passed to a method. This 6930prevents a warning when executing methods from AcpiExec. 6931 6932Added a check for an invalid handle in AcpiGetObjectInfo. Return 6933AE_BAD_PARAMETER if input handle is invalid. BZ 474 6934 6935Fixed an extraneous warning from exconfig.c on the 64-bit build. 6936 6937Example Code and Data Size: These are the sizes for the OS-independent 6938acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6939debug version of the code includes the debug output trace mechanism and 6940has a 6941much larger code and data size. 6942 6943 Previous Release: 6944 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 6945 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 6946 Current Release: 6947 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 6948 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 6949 69502) iASL Compiler/Disassembler and Tools: 6951 6952iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 6953resource descriptor names. 6954 6955iASL: Detect invalid ASCII characters in input (windows version). Removed 6956the 6957"-CF" flag from the flex compile, enables correct detection of non-ASCII 6958characters in the input. BZ 441 6959 6960iASL: Eliminate warning when result of LoadTable is not used. Eliminate 6961the 6962"result of operation not used" warning when the DDB handle returned from 6963LoadTable is not used. The warning is not needed. BZ 590 6964 6965AcpiExec: Add support for dynamic table load/unload. Now calls _CFG 6966method 6967to 6968pass address of table to the AML. Added option to disable OpRegion 6969simulation 6970to allow creation of an OpRegion with a real address that was passed to 6971_CFG. 6972All of this allows testing of the Load and Unload operators from 6973AcpiExec. 6974 6975Debugger: update tables command for unloaded tables. Handle unloaded 6976tables 6977and use the standard table header output routine. 6978 6979---------------------------------------- 698009 June 2008. Summary of changes for version 20080609: 6981 69821) ACPI CA Core Subsystem: 6983 6984Implemented a workaround for reversed _PRT entries. A significant number 6985of 6986BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 6987change dynamically detects and repairs this problem. Provides 6988compatibility 6989with MS ACPI. BZ 6859 6990 6991Simplified the internal ACPI hardware interfaces to eliminate the locking 6992flag parameter from Register Read/Write. Added a new external interface, 6993AcpiGetRegisterUnlocked. 6994 6995Fixed a problem where the invocation of a GPE control method could hang. 6996This 6997was a regression introduced in 20080514. The new method argument count 6998validation mechanism can enter an infinite loop when a GPE method is 6999dispatched. Problem fixed by removing the obsolete code that passed GPE 7000block 7001information to the notify handler via the control method parameter 7002pointer. 7003 7004Fixed a problem where the _SST execution status was incorrectly returned 7005to 7006the caller of AcpiEnterSleepStatePrep. This was a regression introduced 7007in 700820080514. _SST is optional and a NOT_FOUND exception should never be 7009returned. BZ 716 7010 7011Fixed a problem where a deleted object could be accessed from within the 7012AML 7013parser. This was a regression introduced in version 20080123 as a fix for 7014the 7015Unload operator. Lin Ming. BZ 10669 7016 7017Cleaned up the debug operand dump mechanism. Eliminated unnecessary 7018operands 7019and eliminated the use of a negative index in a loop. Operands are now 7020displayed in the correct order, not backwards. This also fixes a 7021regression 7022introduced in 20080514 on 64-bit systems where the elimination of 7023ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 7024715 7025 7026Fixed a possible memory leak in EvPciConfigRegionSetup where the error 7027exit 7028path did not delete a locally allocated structure. 7029 7030Updated definitions for the DMAR and SRAT tables to synchronize with the 7031current specifications. Includes disassembler support. 7032 7033Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 7034loop termination value was used. Loop terminated on iteration early, 7035missing 7036one mutex. Linn Crosetto 7037 7038Example Code and Data Size: These are the sizes for the OS-independent 7039acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7040debug version of the code includes the debug output trace mechanism and 7041has a 7042much larger code and data size. 7043 7044 Previous Release: 7045 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 7046 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 7047 Current Release: 7048 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 7049 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 7050 70512) iASL Compiler/Disassembler and Tools: 7052 7053Disassembler: Implemented support for EisaId() within _CID objects. Now 7054disassemble integer _CID objects back to EisaId invocations, including 7055multiple integers within _CID packages. Includes single-step support for 7056debugger also. 7057 7058Disassembler: Added support for DMAR and SRAT table definition changes. 7059 7060---------------------------------------- 706114 May 2008. Summary of changes for version 20080514: 7062 70631) ACPI CA Core Subsystem: 7064 7065Fixed a problem where GPEs were enabled too early during the ACPICA 7066initialization. This could lead to "handler not installed" errors on some 7067machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 7068This 7069ensures that all operation regions and devices throughout the namespace 7070have 7071been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 7072 7073Implemented a change to the enter sleep code. Moved execution of the _GTS 7074method to just before setting sleep enable bit. The execution was moved 7075from 7076AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 7077immediately before the SLP_EN bit is set, as per the ACPI specification. 7078Luming Yu, BZ 1653. 7079 7080Implemented a fix to disable unknown GPEs (2nd version). Now always 7081disable 7082the GPE, even if ACPICA thinks that that it is already disabled. It is 7083possible that the AML or some other code has enabled the GPE unbeknownst 7084to 7085the ACPICA code. 7086 7087Fixed a problem with the Field operator where zero-length fields would 7088return 7089an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 7090ASL 7091field declarations in Field(), BankField(), and IndexField(). BZ 10606. 7092 7093Implemented a fix for the Load operator, now load the table at the 7094namespace 7095root. This reverts a change introduced in version 20071019. The table is 7096now 7097loaded at the namespace root even though this goes against the ACPI 7098specification. This provides compatibility with other ACPI 7099implementations. 7100The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 7101Ming. 7102 7103Fixed a problem where ACPICA would not Load() tables with unusual 7104signatures. 7105Now ignore ACPI table signature for Load() operator. Only "SSDT" is 7106acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 7107Therefore, signature validation is worthless. Apparently MS ACPI accepts 7108such 7109signatures, ACPICA must be compatible. BZ 10454. 7110 7111Fixed a possible negative array index in AcpiUtValidateException. Added 7112NULL 7113fields to the exception string arrays to eliminate a -1 subtraction on 7114the 7115SubStatus field. 7116 7117Updated the debug tracking macros to reduce overall code and data size. 7118Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 7119instead of pointers to static strings. Jan Beulich and Bob Moore. 7120 7121Implemented argument count checking in control method invocation via 7122AcpiEvaluateObject. Now emit an error if too few arguments, warning if 7123too 7124many. This applies only to extern programmatic control method execution, 7125not 7126method-to-method calls within the AML. Lin Ming. 7127 7128Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 7129no 7130longer needed, especially with the removal of 16-bit support. It was 7131replaced 7132mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 7133bit 7134on 713532/64-bit platforms is required. 7136 7137Added the C const qualifier for appropriate string constants -- mostly 7138MODULE_NAME and printf format strings. Jan Beulich. 7139 7140Example Code and Data Size: These are the sizes for the OS-independent 7141acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7142debug version of the code includes the debug output trace mechanism and 7143has a 7144much larger code and data size. 7145 7146 Previous Release: 7147 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 7148 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 7149 Current Release: 7150 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 7151 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 7152 71532) iASL Compiler/Disassembler and Tools: 7154 7155Implemented ACPI table revision ID validation in the disassembler. Zero 7156is 7157always invalid. For DSDTs, the ID controls the interpreter integer width. 71581 7159means 32-bit and this is unusual. 2 or greater is 64-bit. 7160 7161---------------------------------------- 716221 March 2008. Summary of changes for version 20080321: 7163 71641) ACPI CA Core Subsystem: 7165 7166Implemented an additional change to the GPE support in order to suppress 7167spurious or stray GPEs. The AcpiEvDisableGpe function will now 7168permanently 7169disable incoming GPEs that are neither enabled nor disabled -- meaning 7170that 7171the GPE is unknown to the system. This should prevent future interrupt 7172floods 7173from that GPE. BZ 6217 (Zhang Rui) 7174 7175Fixed a problem where NULL package elements were not returned to the 7176AcpiEvaluateObject interface correctly. The element was simply ignored 7177instead of returning a NULL ACPI_OBJECT package element, potentially 7178causing 7179a buffer overflow and/or confusing the caller who expected a fixed number 7180of 7181elements. BZ 10132 (Lin Ming, Bob Moore) 7182 7183Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 7184Dword, 7185Qword), Field, BankField, and IndexField operators when invoked from 7186inside 7187an executing control method. In this case, these operators created 7188namespace 7189nodes that were incorrectly left marked as permanent nodes instead of 7190temporary nodes. This could cause a problem if there is race condition 7191between an exiting control method and a running namespace walk. (Reported 7192by 7193Linn Crosetto) 7194 7195Fixed a problem where the CreateField and CreateXXXField operators would 7196incorrectly allow duplicate names (the name of the field) with no 7197exception 7198generated. 7199 7200Implemented several changes for Notify handling. Added support for new 7201Notify 7202values (ACPI 2.0+) and improved the Notify debug output. Notify on 7203PowerResource objects is no longer allowed, as per the ACPI 7204specification. 7205(Bob Moore, Zhang Rui) 7206 7207All Reference Objects returned via the AcpiEvaluateObject interface are 7208now 7209marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 7210for 7211NULL objects - either NULL package elements or unresolved named 7212references. 7213 7214Fixed a problem where an extraneous debug message was produced for 7215package 7216objects (when debugging enabled). The message "Package List length larger 7217than NumElements count" is now produced in the correct case, and is now 7218an 7219error message rather than a debug message. Added a debug message for the 7220opposite case, where NumElements is larger than the Package List (the 7221package 7222will be padded out with NULL elements as per the ACPI spec.) 7223 7224Implemented several improvements for the output of the ASL "Debug" object 7225to 7226clarify and keep all data for a given object on one output line. 7227 7228Fixed two size calculation issues with the variable-length Start 7229Dependent 7230resource descriptor. 7231 7232Example Code and Data Size: These are the sizes for the OS-independent 7233acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7234debug version of the code includes the debug output trace mechanism and 7235has 7236a much larger code and data size. 7237 7238 Previous Release: 7239 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 7240 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 7241 Current Release: 7242 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 7243 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 7244 72452) iASL Compiler/Disassembler and Tools: 7246 7247Fixed a problem with the use of the Switch operator where execution of 7248the 7249containing method by multiple concurrent threads could cause an 7250AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 7251actual Switch opcode, it must be simulated with local named temporary 7252variables and if/else pairs. The solution chosen was to mark any method 7253that 7254uses Switch as Serialized, thus preventing multiple thread entries. BZ 7255469. 7256 7257---------------------------------------- 725813 February 2008. Summary of changes for version 20080213: 7259 72601) ACPI CA Core Subsystem: 7261 7262Implemented another MS compatibility design change for GPE/Notify 7263handling. 7264GPEs are now cleared/enabled asynchronously to allow all pending notifies 7265to 7266complete first. It is expected that the OSL will queue the enable request 7267behind all pending notify requests (may require changes to the local host 7268OSL 7269in AcpiOsExecute). Alexey Starikovskiy. 7270 7271Fixed a problem where buffer and package objects passed as arguments to a 7272control method via the external AcpiEvaluateObject interface could cause 7273an 7274AE_AML_INTERNAL exception depending on the order and type of operators 7275executed by the target control method. 7276 7277Fixed a problem where resource descriptor size optimization could cause a 7278problem when a _CRS resource template is passed to a _SRS method. The 7279_SRS 7280resource template must use the same descriptors (with the same size) as 7281returned from _CRS. This change affects the following resource 7282descriptors: 7283IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 72849487) 7285 7286Fixed a problem where a CopyObject to RegionField, BankField, and 7287IndexField 7288objects did not perform an implicit conversion as it should. These types 7289must 7290retain their initial type permanently as per the ACPI specification. 7291However, 7292a CopyObject to all other object types should not perform an implicit 7293conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 7294 7295Fixed a problem with the AcpiGetDevices interface where the mechanism to 7296match device CIDs did not examine the entire list of available CIDs, but 7297instead aborted on the first non-matching CID. Andrew Patterson. 7298 7299Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 7300was 7301inadvertently changed to return a 16-bit value instead of a 32-bit value, 7302truncating the upper dword of a 64-bit value. This macro is only used to 7303display debug output, so no incorrect calculations were made. Also, 7304reimplemented the macro so that a 64-bit shift is not performed by 7305inefficient compilers. 7306 7307Added missing va_end statements that should correspond with each va_start 7308statement. 7309 7310Example Code and Data Size: These are the sizes for the OS-independent 7311acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7312debug version of the code includes the debug output trace mechanism and 7313has 7314a much larger code and data size. 7315 7316 Previous Release: 7317 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 7318 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 7319 Current Release: 7320 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 7321 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 7322 73232) iASL Compiler/Disassembler and Tools: 7324 7325Implemented full disassembler support for the following new ACPI tables: 7326BERT, EINJ, and ERST. Implemented partial disassembler support for the 7327complicated HEST table. These tables support the Windows Hardware Error 7328Architecture (WHEA). 7329 7330---------------------------------------- 733123 January 2008. Summary of changes for version 20080123: 7332 73331) ACPI CA Core Subsystem: 7334 7335Added the 2008 copyright to all module headers and signons. This affects 7336virtually every file in the ACPICA core subsystem, the iASL compiler, and 7337the tools/utilities. 7338 7339Fixed a problem with the SizeOf operator when used with Package and 7340Buffer 7341objects. These objects have deferred execution for some arguments, and 7342the 7343execution is now completed before the SizeOf is executed. This problem 7344caused 7345unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 7346BZ 73479558 7348 7349Implemented an enhancement to the interpreter "slack mode". In the 7350absence 7351of 7352an explicit return or an implicitly returned object from the last 7353executed 7354opcode, a control method will now implicitly return an integer of value 0 7355for 7356Microsoft compatibility. (Lin Ming) BZ 392 7357 7358Fixed a problem with the Load operator where an exception was not 7359returned 7360in 7361the case where the table is already loaded. (Lin Ming) BZ 463 7362 7363Implemented support for the use of DDBHandles as an Indexed Reference, as 7364per 7365the ACPI spec. (Lin Ming) BZ 486 7366 7367Implemented support for UserTerm (Method invocation) for the Unload 7368operator 7369as per the ACPI spec. (Lin Ming) BZ 580 7370 7371Fixed a problem with the LoadTable operator where the OemId and 7372OemTableId 7373input strings could cause unexpected failures if they were shorter than 7374the 7375maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 7376 7377Implemented support for UserTerm (Method invocation) for the Unload 7378operator 7379as per the ACPI spec. (Lin Ming) BZ 580 7380 7381Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 7382HEST, 7383IBFT, UEFI, WDAT. Disassembler support is forthcoming. 7384 7385Example Code and Data Size: These are the sizes for the OS-independent 7386acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7387debug version of the code includes the debug output trace mechanism and 7388has 7389a much larger code and data size. 7390 7391 Previous Release: 7392 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 7393 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 7394 Current Release: 7395 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 7396 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 7397 73982) iASL Compiler/Disassembler and Tools: 7399 7400Implemented support in the disassembler for checksum validation on 7401incoming 7402binary DSDTs and SSDTs. If incorrect, a message is displayed within the 7403table 7404header dump at the start of the disassembly. 7405 7406Implemented additional debugging information in the namespace listing 7407file 7408created during compilation. In addition to the namespace hierarchy, the 7409full 7410pathname to each namespace object is displayed. 7411 7412Fixed a problem with the disassembler where invalid ACPI tables could 7413cause 7414faults or infinite loops. 7415 7416Fixed an unexpected parse error when using the optional "parameter types" 7417list in a control method declaration. (Lin Ming) BZ 397 7418 7419Fixed a problem where two External declarations with the same name did 7420not 7421cause an error (Lin Ming) BZ 509 7422 7423Implemented support for full TermArgs (adding Argx, Localx and method 7424invocation) for the ParameterData parameter to the LoadTable operator. 7425(Lin 7426Ming) BZ 583,587 7427 7428---------------------------------------- 742919 December 2007. Summary of changes for version 20071219: 7430 74311) ACPI CA Core Subsystem: 7432 7433Implemented full support for deferred execution for the TermArg string 7434arguments for DataTableRegion. This enables forward references and full 7435operand resolution for the three string arguments. Similar to 7436OperationRegion 7437deferred argument execution.) Lin Ming. BZ 430 7438 7439Implemented full argument resolution support for the BankValue argument 7440to 7441BankField. Previously, only constants were supported, now any TermArg may 7442be 7443used. Lin Ming BZ 387, 393 7444 7445Fixed a problem with AcpiGetDevices where the search of a branch of the 7446device tree could be terminated prematurely. In accordance with the ACPI 7447specification, the search down the current branch is terminated if a 7448device 7449is both not present and not functional (instead of just not present.) 7450Yakui 7451Zhao. 7452 7453Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 7454if 7455the underlying AML code changed the GPE enable registers. Now, any 7456unknown 7457incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 7458disabled 7459instead of simply ignored. Rui Zhang. 7460 7461Fixed a problem with Index Fields where the Index register was 7462incorrectly 7463limited to a maximum of 32 bits. Now any size may be used. 7464 7465Fixed a couple memory leaks associated with "implicit return" objects 7466when 7467the AML Interpreter slack mode is enabled. Lin Ming BZ 349 7468 7469Example Code and Data Size: These are the sizes for the OS-independent 7470acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7471debug version of the code includes the debug output trace mechanism and 7472has 7473a much larger code and data size. 7474 7475 Previous Release: 7476 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 7477 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 7478 Current Release: 7479 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 7480 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 7481 7482---------------------------------------- 748314 November 2007. Summary of changes for version 20071114: 7484 74851) ACPI CA Core Subsystem: 7486 7487Implemented event counters for each of the Fixed Events, the ACPI SCI 7488(interrupt) itself, and control methods executed. Named 7489AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 7490These 7491should be useful for debugging and statistics. 7492 7493Implemented a new external interface, AcpiGetStatistics, to retrieve the 7494contents of the various event counters. Returns the current values for 7495AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 7496AcpiMethodCount. The interface can be expanded in the future if new 7497counters 7498are added. Device drivers should use this interface rather than access 7499the 7500counters directly. 7501 7502Fixed a problem with the FromBCD and ToBCD operators. With some 7503compilers, 7504the ShortDivide function worked incorrectly, causing problems with the 7505BCD 7506functions with large input values. A truncation from 64-bit to 32-bit 7507inadvertently occurred. Internal BZ 435. Lin Ming 7508 7509Fixed a problem with Index references passed as method arguments. 7510References 7511passed as arguments to control methods were dereferenced immediately 7512(before 7513control was passed to the called method). The references are now 7514correctly 7515passed directly to the called method. BZ 5389. Lin Ming 7516 7517Fixed a problem with CopyObject used in conjunction with the Index 7518operator. 7519The reference was incorrectly dereferenced before the copy. The reference 7520is 7521now correctly copied. BZ 5391. Lin Ming 7522 7523Fixed a problem with Control Method references within Package objects. 7524These 7525references are now correctly generated. This completes the package 7526construction overhaul that began in version 20071019. 7527 7528Example Code and Data Size: These are the sizes for the OS-independent 7529acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7530debug version of the code includes the debug output trace mechanism and 7531has 7532a much larger code and data size. 7533 7534 Previous Release: 7535 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 7536 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 7537 Current Release: 7538 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 7539 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 7540 7541 75422) iASL Compiler/Disassembler and Tools: 7543 7544The AcpiExec utility now installs handlers for all of the predefined 7545Operation Region types. New types supported are: PCI_Config, CMOS, and 7546PCIBARTarget. 7547 7548Fixed a problem with the 64-bit version of AcpiExec where the extended 7549(64- 7550bit) address fields for the DSDT and FACS within the FADT were not being 7551used, causing truncation of the upper 32-bits of these addresses. Lin 7552Ming 7553and Bob Moore 7554 7555---------------------------------------- 755619 October 2007. Summary of changes for version 20071019: 7557 75581) ACPI CA Core Subsystem: 7559 7560Fixed a problem with the Alias operator when the target of the alias is a 7561named ASL operator that opens a new scope -- Scope, Device, 7562PowerResource, 7563Processor, and ThermalZone. In these cases, any children of the original 7564operator could not be accessed via the alias, potentially causing 7565unexpected 7566AE_NOT_FOUND exceptions. (BZ 9067) 7567 7568Fixed a problem with the Package operator where all named references were 7569created as object references and left otherwise unresolved. According to 7570the 7571ACPI specification, a Package can only contain Data Objects or references 7572to 7573control methods. The implication is that named references to Data Objects 7574(Integer, Buffer, String, Package, BufferField, Field) should be resolved 7575immediately upon package creation. This is the approach taken with this 7576change. References to all other named objects (Methods, Devices, Scopes, 7577etc.) are all now properly created as reference objects. (BZ 5328) 7578 7579Reverted a change to Notify handling that was introduced in version 758020070508. This version changed the Notify handling from asynchronous to 7581fully synchronous (Device driver Notify handling with respect to the 7582Notify 7583ASL operator). It was found that this change caused more problems than it 7584solved and was removed by most users. 7585 7586Fixed a problem with the Increment and Decrement operators where the type 7587of 7588the target object could be unexpectedly and incorrectly changed. (BZ 353) 7589Lin Ming. 7590 7591Fixed a problem with the Load and LoadTable operators where the table 7592location within the namespace was ignored. Instead, the table was always 7593loaded into the root or current scope. Lin Ming. 7594 7595Fixed a problem with the Load operator when loading a table from a buffer 7596object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 7597 7598Fixed a problem with the Debug object where a store of a DdbHandle 7599reference 7600object to the Debug object could cause a fault. 7601 7602Added a table checksum verification for the Load operator, in the case 7603where 7604the load is from a buffer. (BZ 578). 7605 7606Implemented additional parameter validation for the LoadTable operator. 7607The 7608length of the input strings SignatureString, OemIdString, and OemTableId 7609are 7610now checked for maximum lengths. (BZ 582) Lin Ming. 7611 7612Example Code and Data Size: These are the sizes for the OS-independent 7613acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7614debug version of the code includes the debug output trace mechanism and 7615has 7616a much larger code and data size. 7617 7618 Previous Release: 7619 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 7620 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 7621 Current Release: 7622 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 7623 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 7624 7625 76262) iASL Compiler/Disassembler: 7627 7628Fixed a problem where if a single file was specified and the file did not 7629exist, no error message was emitted. (Introduced with wildcard support in 7630version 20070917.) 7631 7632---------------------------------------- 763319 September 2007. Summary of changes for version 20070919: 7634 76351) ACPI CA Core Subsystem: 7636 7637Designed and implemented new external interfaces to install and remove 7638handlers for ACPI table-related events. Current events that are defined 7639are 7640LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 7641they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 7642AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 7643 7644Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 7645(acpi_serialized option on Linux) could cause some systems to hang during 7646initialization. (Bob Moore) BZ 8171 7647 7648Fixed a problem where objects of certain types (Device, ThermalZone, 7649Processor, PowerResource) can be not found if they are declared and 7650referenced from within the same control method (Lin Ming) BZ 341 7651 7652Example Code and Data Size: These are the sizes for the OS-independent 7653acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7654debug version of the code includes the debug output trace mechanism and 7655has 7656a much larger code and data size. 7657 7658 Previous Release: 7659 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 7660 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 7661 Current Release: 7662 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 7663 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 7664 7665 76662) iASL Compiler/Disassembler: 7667 7668Implemented support to allow multiple files to be compiled/disassembled 7669in 7670a 7671single invocation. This includes command line wildcard support for both 7672the 7673Windows and Unix versions of the compiler. This feature simplifies the 7674disassembly and compilation of multiple ACPI tables in a single 7675directory. 7676 7677---------------------------------------- 767808 May 2007. Summary of changes for version 20070508: 7679 76801) ACPI CA Core Subsystem: 7681 7682Implemented a Microsoft compatibility design change for the handling of 7683the 7684Notify AML operator. Previously, notify handlers were dispatched and 7685executed completely asynchronously in a deferred thread. The new design 7686still executes the notify handlers in a different thread, but the 7687original 7688thread that executed the Notify() now waits at a synchronization point 7689for 7690the notify handler to complete. Some machines depend on a synchronous 7691Notify 7692operator in order to operate correctly. 7693 7694Implemented support to allow Package objects to be passed as method 7695arguments to the external AcpiEvaluateObject interface. Previously, this 7696would return the AE_NOT_IMPLEMENTED exception. This feature had not been 7697implemented since there were no reserved control methods that required it 7698until recently. 7699 7700Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 7701that 7702contained invalid non-zero values in reserved fields could cause later 7703failures because these fields have meaning in later revisions of the 7704FADT. 7705For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 7706fields 7707are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 7708 7709Fixed a problem where the Global Lock handle was not properly updated if 7710a 7711thread that acquired the Global Lock via executing AML code then 7712attempted 7713to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 7714Joe 7715Liu. 7716 7717Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 7718could be corrupted if the interrupt being removed was at the head of the 7719list. Reported by Linn Crosetto. 7720 7721Example Code and Data Size: These are the sizes for the OS-independent 7722acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7723debug version of the code includes the debug output trace mechanism and 7724has 7725a much larger code and data size. 7726 7727 Previous Release: 7728 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7729 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 7730 Current Release: 7731 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 7732 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 7733 7734---------------------------------------- 773520 March 2007. Summary of changes for version 20070320: 7736 77371) ACPI CA Core Subsystem: 7738 7739Implemented a change to the order of interpretation and evaluation of AML 7740operand objects within the AML interpreter. The interpreter now evaluates 7741operands in the order that they appear in the AML stream (and the 7742corresponding ASL code), instead of in the reverse order (after the 7743entire 7744operand list has been parsed). The previous behavior caused several 7745subtle 7746incompatibilities with the Microsoft AML interpreter as well as being 7747somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 7748 7749Implemented a change to the ACPI Global Lock support. All interfaces to 7750the 7751global lock now allow the same thread to acquire the lock multiple times. 7752This affects the AcpiAcquireGlobalLock external interface to the global 7753lock 7754as well as the internal use of the global lock to support AML fields -- a 7755control method that is holding the global lock can now simultaneously 7756access 7757AML fields that require global lock protection. Previously, in both 7758cases, 7759this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 7760to 7761AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 7762Controller. There is no change to the behavior of the AML Acquire 7763operator, 7764as this can already be used to acquire a mutex multiple times by the same 7765thread. BZ 8066. With assistance from Alexey Starikovskiy. 7766 7767Fixed a problem where invalid objects could be referenced in the AML 7768Interpreter after error conditions. During operand evaluation, ensure 7769that 7770the internal "Return Object" field is cleared on error and only valid 7771pointers are stored there. Caused occasional access to deleted objects 7772that 7773resulted in "large reference count" warning messages. Valery Podrezov. 7774 7775Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 7776on 7777deeply nested control method invocations. BZ 7873, local BZ 487. Valery 7778Podrezov. 7779 7780Fixed an internal problem with the handling of result objects on the 7781interpreter result stack. BZ 7872. Valery Podrezov. 7782 7783Removed obsolete code that handled the case where AML_NAME_OP is the 7784target 7785of a reference (Reference.Opcode). This code was no longer necessary. BZ 77867874. Valery Podrezov. 7787 7788Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This 7789was 7790a 7791remnant from the previously discontinued 16-bit support. 7792 7793Example Code and Data Size: These are the sizes for the OS-independent 7794acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7795debug version of the code includes the debug output trace mechanism and 7796has 7797a much larger code and data size. 7798 7799 Previous Release: 7800 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7801 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 7802 Current Release: 7803 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7804 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 7805 7806---------------------------------------- 780726 January 2007. Summary of changes for version 20070126: 7808 78091) ACPI CA Core Subsystem: 7810 7811Added the 2007 copyright to all module headers and signons. This affects 7812virtually every file in the ACPICA core subsystem, the iASL compiler, and 7813the utilities. 7814 7815Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 7816during a table load. A bad pointer was passed in the case where the DSDT 7817is 7818overridden, causing a fault in this case. 7819 7820Example Code and Data Size: These are the sizes for the OS-independent 7821acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7822debug version of the code includes the debug output trace mechanism and 7823has 7824a much larger code and data size. 7825 7826 Previous Release: 7827 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7828 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 7829 Current Release: 7830 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7831 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 7832 7833---------------------------------------- 783415 December 2006. Summary of changes for version 20061215: 7835 78361) ACPI CA Core Subsystem: 7837 7838Support for 16-bit ACPICA has been completely removed since it is no 7839longer 7840necessary and it clutters the code. All 16-bit macros, types, and 7841conditional compiles have been removed, cleaning up and simplifying the 7842code 7843across the entire subsystem. DOS support is no longer needed since the 7844bootable Linux firmware kit is now available. 7845 7846The handler for the Global Lock is now removed during AcpiTerminate to 7847enable a clean subsystem restart, via the implementation of the 7848AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 7849HP) 7850 7851Implemented enhancements to the multithreading support within the 7852debugger 7853to enable improved multithreading debugging and evaluation of the 7854subsystem. 7855(Valery Podrezov) 7856 7857Debugger: Enhanced the Statistics/Memory command to emit the total 7858(maximum) 7859memory used during the execution, as well as the maximum memory consumed 7860by 7861each of the various object types. (Valery Podrezov) 7862 7863Example Code and Data Size: These are the sizes for the OS-independent 7864acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7865debug version of the code includes the debug output trace mechanism and 7866has 7867a much larger code and data size. 7868 7869 Previous Release: 7870 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 7871 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 7872 Current Release: 7873 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7874 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 7875 7876 78772) iASL Compiler/Disassembler and Tools: 7878 7879AcpiExec: Implemented a new option (-m) to display full memory use 7880statistics upon subsystem/program termination. (Valery Podrezov) 7881 7882---------------------------------------- 788309 November 2006. Summary of changes for version 20061109: 7884 78851) ACPI CA Core Subsystem: 7886 7887Optimized the Load ASL operator in the case where the source operand is 7888an 7889operation region. Simply map the operation region memory, instead of 7890performing a bytewise read. (Region must be of type SystemMemory, see 7891below.) 7892 7893Fixed the Load ASL operator for the case where the source operand is a 7894region field. A buffer object is also allowed as the source operand. BZ 7895480 7896 7897Fixed a problem where the Load ASL operator allowed the source operand to 7898be 7899an operation region of any type. It is now restricted to regions of type 7900SystemMemory, as per the ACPI specification. BZ 481 7901 7902Additional cleanup and optimizations for the new Table Manager code. 7903 7904AcpiEnable will now fail if all of the required ACPI tables are not 7905loaded 7906(FADT, FACS, DSDT). BZ 477 7907 7908Added #pragma pack(8/4) to acobject.h to ensure that the structures in 7909this 7910header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 7911manually optimized to be aligned and will not work if it is byte-packed. 7912 7913Example Code and Data Size: These are the sizes for the OS-independent 7914acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7915debug version of the code includes the debug output trace mechanism and 7916has 7917a much larger code and data size. 7918 7919 Previous Release: 7920 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 7921 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 7922 Current Release: 7923 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 7924 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 7925 7926 79272) iASL Compiler/Disassembler and Tools: 7928 7929Fixed a problem where the presence of the _OSI predefined control method 7930within complex expressions could cause an internal compiler error. 7931 7932AcpiExec: Implemented full region support for multiple address spaces. 7933SpaceId is now part of the REGION object. BZ 429 7934 7935---------------------------------------- 793611 October 2006. Summary of changes for version 20061011: 7937 79381) ACPI CA Core Subsystem: 7939 7940Completed an AML interpreter performance enhancement for control method 7941execution. Previously a 2-pass parse/execution, control methods are now 7942completely parsed and executed in a single pass. This improves overall 7943interpreter performance by ~25%, reduces code size, and reduces CPU stack 7944use. (Valery Podrezov + interpreter changes in version 20051202 that 7945eliminated namespace loading during the pass one parse.) 7946 7947Implemented _CID support for PCI Root Bridge detection. If the _HID does 7948not 7949match the predefined PCI Root Bridge IDs, the _CID list (if present) is 7950now 7951obtained and also checked for an ID match. 7952 7953Implemented additional support for the PCI _ADR execution: upsearch until 7954a 7955device scope is found before executing _ADR. This allows PCI_Config 7956operation regions to be declared locally within control methods 7957underneath 7958PCI device objects. 7959 7960Fixed a problem with a possible race condition between threads executing 7961AcpiWalkNamespace and the AML interpreter. This condition was removed by 7962modifying AcpiWalkNamespace to (by default) ignore all temporary 7963namespace 7964entries created during any concurrent control method execution. An 7965additional namespace race condition is known to exist between 7966AcpiWalkNamespace and the Load/Unload ASL operators and is still under 7967investigation. 7968 7969Restructured the AML ParseLoop function, breaking it into several 7970subfunctions in order to reduce CPU stack use and improve 7971maintainability. 7972(Mikhail Kouzmich) 7973 7974AcpiGetHandle: Fix for parameter validation to detect invalid 7975combinations 7976of prefix handle and pathname. BZ 478 7977 7978Example Code and Data Size: These are the sizes for the OS-independent 7979acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7980debug version of the code includes the debug output trace mechanism and 7981has 7982a much larger code and data size. 7983 7984 Previous Release: 7985 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 7986 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 7987 Current Release: 7988 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 7989 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 7990 79912) iASL Compiler/Disassembler and Tools: 7992 7993Ported the -g option (get local ACPI tables) to the new ACPICA Table 7994Manager 7995to restore original behavior. 7996 7997---------------------------------------- 799827 September 2006. Summary of changes for version 20060927: 7999 80001) ACPI CA Core Subsystem: 8001 8002Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 8003These functions now use a spinlock for mutual exclusion and the interrupt 8004level indication flag is not needed. 8005 8006Fixed a problem with the Global Lock where the lock could appear to be 8007obtained before it is actually obtained. The global lock semaphore was 8008inadvertently created with one unit instead of zero units. (BZ 464) 8009Fiodor 8010Suietov. 8011 8012Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 8013during 8014a read from a buffer or region field. (BZ 458) Fiodor Suietov. 8015 8016Example Code and Data Size: These are the sizes for the OS-independent 8017acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8018debug version of the code includes the debug output trace mechanism and 8019has 8020a much larger code and data size. 8021 8022 Previous Release: 8023 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8024 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 8025 Current Release: 8026 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8027 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 8028 8029 80302) iASL Compiler/Disassembler and Tools: 8031 8032Fixed a compilation problem with the pre-defined Resource Descriptor 8033field 8034names where an "object does not exist" error could be incorrectly 8035generated 8036if the parent ResourceTemplate pathname places the template within a 8037different namespace scope than the current scope. (BZ 7212) 8038 8039Fixed a problem where the compiler could hang after syntax errors 8040detected 8041in an ElseIf construct. (BZ 453) 8042 8043Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 8044operator. An incorrect output filename was produced when this parameter 8045was 8046a null string (""). Now, the original input filename is used as the AML 8047output filename, with an ".aml" extension. 8048 8049Implemented a generic batch command mode for the AcpiExec utility 8050(execute 8051any AML debugger command) (Valery Podrezov). 8052 8053---------------------------------------- 805412 September 2006. Summary of changes for version 20060912: 8055 80561) ACPI CA Core Subsystem: 8057 8058Enhanced the implementation of the "serialized mode" of the interpreter 8059(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 8060specified, instead of creating a serialization semaphore per control 8061method, 8062the interpreter lock is simply no longer released before a blocking 8063operation during control method execution. This effectively makes the AML 8064Interpreter single-threaded. The overhead of a semaphore per-method is 8065eliminated. 8066 8067Fixed a regression where an error was no longer emitted if a control 8068method 8069attempts to create 2 objects of the same name. This once again returns 8070AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 8071that 8072will dynamically serialize the control method to possible prevent future 8073errors. (BZ 440) 8074 8075Integrated a fix for a problem with PCI Express HID detection in the PCI 8076Config Space setup procedure. (BZ 7145) 8077 8078Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 8079AcpiHwInitialize function - the FADT registers are now validated when the 8080table is loaded. 8081 8082Added two new warnings during FADT verification - 1) if the FADT is 8083larger 8084than the largest known FADT version, and 2) if there is a mismatch 8085between 8086a 808732-bit block address and the 64-bit X counterpart (when both are non- 8088zero.) 8089 8090Example Code and Data Size: These are the sizes for the OS-independent 8091acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8092debug version of the code includes the debug output trace mechanism and 8093has 8094a much larger code and data size. 8095 8096 Previous Release: 8097 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 8098 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 8099 Current Release: 8100 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8101 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 8102 8103 81042) iASL Compiler/Disassembler and Tools: 8105 8106Fixed a problem with the implementation of the Switch() operator where 8107the 8108temporary variable was declared too close to the actual Switch, instead 8109of 8110at method level. This could cause a problem if the Switch() operator is 8111within a while loop, causing an error on the second iteration. (BZ 460) 8112 8113Disassembler - fix for error emitted for unknown type for target of scope 8114operator. Now, ignore it and continue. 8115 8116Disassembly of an FADT now verifies the input FADT and reports any errors 8117found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 8118 8119Disassembly of raw data buffers with byte initialization data now 8120prefixes 8121each output line with the current buffer offset. 8122 8123Disassembly of ASF! table now includes all variable-length data fields at 8124the end of some of the subtables. 8125 8126The disassembler now emits a comment if a buffer appears to be a 8127ResourceTemplate, but cannot be disassembled as such because the EndTag 8128does 8129not appear at the very end of the buffer. 8130 8131AcpiExec - Added the "-t" command line option to enable the serialized 8132mode 8133of the AML interpreter. 8134 8135---------------------------------------- 813631 August 2006. Summary of changes for version 20060831: 8137 81381) ACPI CA Core Subsystem: 8139 8140Miscellaneous fixes for the Table Manager: 8141- Correctly initialize internal common FADT for all 64-bit "X" fields 8142- Fixed a couple table mapping issues during table load 8143- Fixed a couple alignment issues for IA64 8144- Initialize input array to zero in AcpiInitializeTables 8145- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 8146AcpiGetTableByIndex 8147 8148Change for GPE support: when a "wake" GPE is received, all wake GPEs are 8149now 8150immediately disabled to prevent the waking GPE from firing again and to 8151prevent other wake GPEs from interrupting the wake process. 8152 8153Added the AcpiGpeCount global that tracks the number of processed GPEs, 8154to 8155be used for debugging systems with a large number of ACPI interrupts. 8156 8157Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 8158both the ACPICA headers and the disassembler. 8159 8160Example Code and Data Size: These are the sizes for the OS-independent 8161acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8162debug version of the code includes the debug output trace mechanism and 8163has 8164a much larger code and data size. 8165 8166 Previous Release: 8167 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 8168 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 8169 Current Release: 8170 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 8171 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 8172 8173 81742) iASL Compiler/Disassembler and Tools: 8175 8176Disassembler support for the DMAR ACPI table. 8177 8178---------------------------------------- 817923 August 2006. Summary of changes for version 20060823: 8180 81811) ACPI CA Core Subsystem: 8182 8183The Table Manager component has been completely redesigned and 8184reimplemented. The new design is much simpler, and reduces the overall 8185code 8186and data size of the kernel-resident ACPICA by approximately 5%. Also, it 8187is 8188now possible to obtain the ACPI tables very early during kernel 8189initialization, even before dynamic memory management is initialized. 8190(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 8191 8192Obsolete ACPICA interfaces: 8193 8194- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 8195init 8196time). 8197- AcpiLoadTable: Not needed. 8198- AcpiUnloadTable: Not needed. 8199 8200New ACPICA interfaces: 8201 8202- AcpiInitializeTables: Must be called before the table manager can be 8203used. 8204- AcpiReallocateRootTable: Used to transfer the root table to dynamically 8205allocated memory after it becomes available. 8206- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI 8207tables 8208in the RSDT/XSDT. 8209 8210Other ACPICA changes: 8211 8212- AcpiGetTableHeader returns the actual mapped table header, not a copy. 8213Use 8214AcpiOsUnmapMemory to free this mapping. 8215- AcpiGetTable returns the actual mapped table. The mapping is managed 8216internally and must not be deleted by the caller. Use of this interface 8217causes no additional dynamic memory allocation. 8218- AcpiFindRootPointer: Support for physical addressing has been 8219eliminated, 8220it appeared to be unused. 8221- The interface to AcpiOsMapMemory has changed to be consistent with the 8222other allocation interfaces. 8223- The interface to AcpiOsGetRootPointer has changed to eliminate 8224unnecessary 8225parameters. 8226- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 822764- 8228bit platforms. Was previously 64 bits on all platforms. 8229- The interface to the ACPI Global Lock acquire/release macros have 8230changed 8231slightly since ACPICA no longer keeps a local copy of the FACS with a 8232constructed pointer to the actual global lock. 8233 8234Porting to the new table manager: 8235 8236- AcpiInitializeTables: Must be called once, and can be called anytime 8237during the OS initialization process. It allows the host to specify an 8238area 8239of memory to be used to store the internal version of the RSDT/XSDT (root 8240table). This allows the host to access ACPI tables before memory 8241management 8242is initialized and running. 8243- AcpiReallocateRootTable: Can be called after memory management is 8244running 8245to copy the root table to a dynamically allocated array, freeing up the 8246scratch memory specified in the call to AcpiInitializeTables. 8247- AcpiSubsystemInitialize: This existing interface is independent of the 8248Table Manager, and does not have to be called before the Table Manager 8249can 8250be used, it only must be called before the rest of ACPICA can be used. 8251- ACPI Tables: Some changes have been made to the names and structure of 8252the 8253actbl.h and actbl1.h header files and may require changes to existing 8254code. 8255For example, bitfields have been completely removed because of their lack 8256of 8257portability across C compilers. 8258- Update interfaces to the Global Lock acquire/release macros if local 8259versions are used. (see acwin.h) 8260 8261Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 8262 8263New files: tbfind.c 8264 8265Example Code and Data Size: These are the sizes for the OS-independent 8266acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8267debug version of the code includes the debug output trace mechanism and 8268has 8269a much larger code and data size. 8270 8271 Previous Release: 8272 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8273 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8274 Current Release: 8275 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 8276 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 8277 8278 82792) iASL Compiler/Disassembler and Tools: 8280 8281No changes for this release. 8282 8283---------------------------------------- 828421 July 2006. Summary of changes for version 20060721: 8285 82861) ACPI CA Core Subsystem: 8287 8288The full source code for the ASL test suite used to validate the iASL 8289compiler and the ACPICA core subsystem is being released with the ACPICA 8290source for the first time. The source is contained in a separate package 8291and 8292consists of over 1100 files that exercise all ASL/AML operators. The 8293package 8294should appear on the Intel/ACPI web site shortly. (Valery Podrezov, 8295Fiodor 8296Suietov) 8297 8298Completed a new design and implementation for support of the ACPI Global 8299Lock. On the OS side, the global lock is now treated as a standard AML 8300mutex. Previously, multiple OS threads could "acquire" the global lock 8301simultaneously. However, this could cause the BIOS to be starved out of 8302the 8303lock - especially in cases such as the Embedded Controller driver where 8304there is a tight coupling between the OS and the BIOS. 8305 8306Implemented an optimization for the ACPI Global Lock interrupt mechanism. 8307The Global Lock interrupt handler no longer queues the execution of a 8308separate thread to signal the global lock semaphore. Instead, the 8309semaphore 8310is signaled directly from the interrupt handler. 8311 8312Implemented support within the AML interpreter for package objects that 8313contain a larger AML length (package list length) than the package 8314element 8315count. In this case, the length of the package is truncated to match the 8316package element count. Some BIOS code apparently modifies the package 8317length 8318on the fly, and this change supports this behavior. Provides 8319compatibility 8320with the MS AML interpreter. (With assistance from Fiodor Suietov) 8321 8322Implemented a temporary fix for the BankValue parameter of a Bank Field 8323to 8324support all constant values, now including the Zero and One opcodes. 8325Evaluation of this parameter must eventually be converted to a full 8326TermArg 8327evaluation. A not-implemented error is now returned (temporarily) for 8328non- 8329constant values for this parameter. 8330 8331Fixed problem reports (Fiodor Suietov) integrated: 8332- Fix for premature object deletion after CopyObject on Operation Region 8333(BZ 8334350) 8335 8336Example Code and Data Size: These are the sizes for the OS-independent 8337acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8338debug version of the code includes the debug output trace mechanism and 8339has 8340a much larger code and data size. 8341 8342 Previous Release: 8343 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 8344 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 8345 Current Release: 8346 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8347 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8348 8349 83502) iASL Compiler/Disassembler and Tools: 8351 8352No changes for this release. 8353 8354---------------------------------------- 835507 July 2006. Summary of changes for version 20060707: 8356 83571) ACPI CA Core Subsystem: 8358 8359Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 8360that do not allow the initialization of address pointers within packed 8361structures - even though the hardware itself may support misaligned 8362transfers. Some of the debug data structures are packed by default to 8363minimize size. 8364 8365Added an error message for the case where AcpiOsGetThreadId() returns 8366zero. 8367A non-zero value is required by the core ACPICA code to ensure the proper 8368operation of AML mutexes and recursive control methods. 8369 8370The DSDT is now the only ACPI table that determines whether the AML 8371interpreter is in 32-bit or 64-bit mode. Not really a functional change, 8372but 8373the hooks for per-table 32/64 switching have been removed from the code. 8374A 8375clarification to the ACPI specification is forthcoming in ACPI 3.0B. 8376 8377Fixed a possible leak of an OwnerID in the error path of 8378AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 8379deletion to a single place in AcpiTbUninstallTable to correct possible 8380leaks 8381when using the AcpiTbDeleteTablesByType interface (with assistance from 8382Lance Ortiz.) 8383 8384Fixed a problem with Serialized control methods where the semaphore 8385associated with the method could be over-signaled after multiple method 8386invocations. 8387 8388Fixed two issues with the locking of the internal namespace data 8389structure. 8390Both the Unload() operator and AcpiUnloadTable interface now lock the 8391namespace during the namespace deletion associated with the table unload 8392(with assistance from Linn Crosetto.) 8393 8394Fixed problem reports (Valery Podrezov) integrated: 8395- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 8396 8397Fixed problem reports (Fiodor Suietov) integrated: 8398- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 8399- On Address Space handler deletion, needless deactivation call (BZ 374) 8400- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 8401375) 8402- Possible memory leak, Notify sub-objects of Processor, Power, 8403ThermalZone 8404(BZ 376) 8405- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 8406- Minimum Length of RSDT should be validated (BZ 379) 8407- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 8408Handler (BZ (380) 8409- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 8410loaded 8411(BZ 381) 8412 8413Example Code and Data Size: These are the sizes for the OS-independent 8414acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8415debug version of the code includes the debug output trace mechanism and 8416has 8417a much larger code and data size. 8418 8419 Previous Release: 8420 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 8421 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 8422 Current Release: 8423 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8424 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8425 8426 84272) iASL Compiler/Disassembler and Tools: 8428 8429Fixed problem reports: 8430Compiler segfault when ASL contains a long (>1024) String declaration (BZ 8431436) 8432 8433---------------------------------------- 843423 June 2006. Summary of changes for version 20060623: 8435 84361) ACPI CA Core Subsystem: 8437 8438Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 8439allows the type to be customized to the host OS for improved efficiency 8440(since a spinlock is usually a very small object.) 8441 8442Implemented support for "ignored" bits in the ACPI registers. According 8443to 8444the ACPI specification, these bits should be preserved when writing the 8445registers via a read/modify/write cycle. There are 3 bits preserved in 8446this 8447manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 8448 8449Implemented the initial deployment of new OSL mutex interfaces. Since 8450some 8451host operating systems have separate mutex and semaphore objects, this 8452feature was requested. The base code now uses mutexes (and the new mutex 8453interfaces) wherever a binary semaphore was used previously. However, for 8454the current release, the mutex interfaces are defined as macros to map 8455them 8456to the existing semaphore interfaces. Therefore, no OSL changes are 8457required 8458at this time. (See acpiosxf.h) 8459 8460Fixed several problems with the support for the control method SyncLevel 8461parameter. The SyncLevel now works according to the ACPI specification 8462and 8463in concert with the Mutex SyncLevel parameter, since the current 8464SyncLevel 8465is a property of the executing thread. Mutual exclusion for control 8466methods 8467is now implemented with a mutex instead of a semaphore. 8468 8469Fixed three instances of the use of the C shift operator in the bitfield 8470support code (exfldio.c) to avoid the use of a shift value larger than 8471the 8472target data width. The behavior of C compilers is undefined in this case 8473and 8474can cause unpredictable results, and therefore the case must be detected 8475and 8476avoided. (Fiodor Suietov) 8477 8478Added an info message whenever an SSDT or OEM table is loaded dynamically 8479via the Load() or LoadTable() ASL operators. This should improve 8480debugging 8481capability since it will show exactly what tables have been loaded 8482(beyond 8483the tables present in the RSDT/XSDT.) 8484 8485Example Code and Data Size: These are the sizes for the OS-independent 8486acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8487debug version of the code includes the debug output trace mechanism and 8488has 8489a much larger code and data size. 8490 8491 Previous Release: 8492 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 8493 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 8494 Current Release: 8495 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 8496 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 8497 8498 84992) iASL Compiler/Disassembler and Tools: 8500 8501No changes for this release. 8502 8503---------------------------------------- 850408 June 2006. Summary of changes for version 20060608: 8505 85061) ACPI CA Core Subsystem: 8507 8508Converted the locking mutex used for the ACPI hardware to a spinlock. 8509This 8510change should eliminate all problems caused by attempting to acquire a 8511semaphore at interrupt level, and it means that all ACPICA external 8512interfaces that directly access the ACPI hardware can be safely called 8513from 8514interrupt level. OSL code that implements the semaphore interfaces should 8515be 8516able to eliminate any workarounds for being called at interrupt level. 8517 8518Fixed a regression introduced in 20060526 where the ACPI device 8519initialization could be prematurely aborted with an AE_NOT_FOUND if a 8520device 8521did not have an optional _INI method. 8522 8523Fixed an IndexField issue where a write to the Data Register should be 8524limited in size to the AccessSize (width) of the IndexField itself. (BZ 8525433, 8526Fiodor Suietov) 8527 8528Fixed problem reports (Valery Podrezov) integrated: 8529- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 8530 8531Fixed problem reports (Fiodor Suietov) integrated: 8532- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 8533 8534Removed four global mutexes that were obsolete and were no longer being 8535used. 8536 8537Example Code and Data Size: These are the sizes for the OS-independent 8538acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8539debug version of the code includes the debug output trace mechanism and 8540has 8541a much larger code and data size. 8542 8543 Previous Release: 8544 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 8545 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 8546 Current Release: 8547 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 8548 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 8549 8550 85512) iASL Compiler/Disassembler and Tools: 8552 8553Fixed a fault when using -g option (get tables from registry) on Windows 8554machines. 8555 8556Fixed problem reports integrated: 8557- Generate error if CreateField NumBits parameter is zero. (BZ 405) 8558- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 8559Suietov) 8560- Global table revision override (-r) is ignored (BZ 413) 8561 8562---------------------------------------- 856326 May 2006. Summary of changes for version 20060526: 8564 85651) ACPI CA Core Subsystem: 8566 8567Restructured, flattened, and simplified the internal interfaces for 8568namespace object evaluation - resulting in smaller code, less CPU stack 8569use, 8570and fewer interfaces. (With assistance from Mikhail Kouzmich) 8571 8572Fixed a problem with the CopyObject operator where the first parameter 8573was 8574not typed correctly for the parser, interpreter, compiler, and 8575disassembler. 8576Caused various errors and unexpected behavior. 8577 8578Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 8579produced incorrect results with some C compilers. Since the behavior of C 8580compilers when the shift value is larger than the datatype width is 8581apparently not well defined, the interpreter now detects this condition 8582and 8583simply returns zero as expected in all such cases. (BZ 395) 8584 8585Fixed problem reports (Valery Podrezov) integrated: 8586- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 8587- Allow interpreter to handle nested method declarations (BZ 5361) 8588 8589Fixed problem reports (Fiodor Suietov) integrated: 8590- AcpiTerminate doesn't free debug memory allocation list objects (BZ 8591355) 8592- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 8593356) 8594- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 8595- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 8596- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 8597- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 8598- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 8599- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 8600- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 8601365) 8602- Status of the Global Initialization Handler call not used (BZ 366) 8603- Incorrect object parameter to Global Initialization Handler (BZ 367) 8604 8605Example Code and Data Size: These are the sizes for the OS-independent 8606acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8607debug version of the code includes the debug output trace mechanism and 8608has 8609a much larger code and data size. 8610 8611 Previous Release: 8612 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 8613 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 8614 Current Release: 8615 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 8616 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 8617 8618 86192) iASL Compiler/Disassembler and Tools: 8620 8621Modified the parser to allow the names IO, DMA, and IRQ to be used as 8622namespace identifiers with no collision with existing resource descriptor 8623macro names. This provides compatibility with other ASL compilers and is 8624most useful for disassembly/recompilation of existing tables without 8625parse 8626errors. (With assistance from Thomas Renninger) 8627 8628Disassembler: fixed an incorrect disassembly problem with the 8629DataTableRegion and CopyObject operators. Fixed a possible fault during 8630disassembly of some Alias operators. 8631 8632---------------------------------------- 863312 May 2006. Summary of changes for version 20060512: 8634 86351) ACPI CA Core Subsystem: 8636 8637Replaced the AcpiOsQueueForExecution interface with a new interface named 8638AcpiOsExecute. The major difference is that the new interface does not 8639have 8640a Priority parameter, this appeared to be useless and has been replaced 8641by 8642a 8643Type parameter. The Type tells the host what type of execution is being 8644requested, such as global lock handler, notify handler, GPE handler, etc. 8645This allows the host to queue and execute the request as appropriate for 8646the 8647request type, possibly using different work queues and different 8648priorities 8649for the various request types. This enables fixes for multithreading 8650deadlock problems such as BZ #5534, and will require changes to all 8651existing 8652OS interface layers. (Alexey Starikovskiy and Bob Moore) 8653 8654Fixed a possible memory leak associated with the support for the so- 8655called 8656"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 8657Suietov) 8658 8659Fixed a problem with the Load() operator where a table load from an 8660operation region could overwrite an internal table buffer by up to 7 8661bytes 8662and cause alignment faults on IPF systems. (With assistance from Luming 8663Yu) 8664 8665Example Code and Data Size: These are the sizes for the OS-independent 8666acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8667debug version of the code includes the debug output trace mechanism and 8668has 8669a much larger code and data size. 8670 8671 Previous Release: 8672 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 8673 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 8674 Current Release: 8675 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 8676 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 8677 8678 8679 86802) iASL Compiler/Disassembler and Tools: 8681 8682Disassembler: Implemented support to cross reference the internal 8683namespace 8684and automatically generate ASL External() statements for symbols not 8685defined 8686within the current table being disassembled. This will simplify the 8687disassembly and recompilation of interdependent tables such as SSDTs 8688since 8689these statements will no longer have to be added manually. 8690 8691Disassembler: Implemented experimental support to automatically detect 8692invocations of external control methods and generate appropriate 8693External() 8694statements. This is problematic because the AML cannot be correctly 8695parsed 8696until the number of arguments for each control method is known. 8697Currently, 8698standalone method invocations and invocations as the source operand of a 8699Store() statement are supported. 8700 8701Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 8702LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 8703LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 8704more readable and likely closer to the original ASL source. 8705 8706---------------------------------------- 870721 April 2006. Summary of changes for version 20060421: 8708 87091) ACPI CA Core Subsystem: 8710 8711Removed a device initialization optimization introduced in 20051216 where 8712the _STA method was not run unless an _INI was also present for the same 8713device. This optimization could cause problems because it could allow 8714_INI 8715methods to be run within a not-present device subtree. (If a not-present 8716device had no _INI, _STA would not be run, the not-present status would 8717not 8718be discovered, and the children of the device would be incorrectly 8719traversed.) 8720 8721Implemented a new _STA optimization where namespace subtrees that do not 8722contain _INI are identified and ignored during device initialization. 8723Selectively running _STA can significantly improve boot time on large 8724machines (with assistance from Len Brown.) 8725 8726Implemented support for the device initialization case where the returned 8727_STA flags indicate a device not-present but functioning. In this case, 8728_INI 8729is not run, but the device children are examined for presence, as per the 8730ACPI specification. 8731 8732Implemented an additional change to the IndexField support in order to 8733conform to MS behavior. The value written to the Index Register is not 8734simply a byte offset, it is a byte offset in units of the access width of 8735the parent Index Field. (Fiodor Suietov) 8736 8737Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 8738interface is called during the creation of all AML operation regions, and 8739allows the host OS to exert control over what addresses it will allow the 8740AML code to access. Operation Regions whose addresses are disallowed will 8741cause a runtime exception when they are actually accessed (will not 8742affect 8743or abort table loading.) See oswinxf or osunixxf for an example 8744implementation. 8745 8746Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 8747interface allows the host OS to match the various "optional" 8748interface/behavior strings for the _OSI predefined control method as 8749appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 8750for an example implementation. 8751 8752Restructured and corrected various problems in the exception handling 8753code 8754paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 8755(with assistance from Takayoshi Kochi.) 8756 8757Modified the Linux source converter to ignore quoted string literals 8758while 8759converting identifiers from mixed to lower case. This will correct 8760problems 8761with the disassembler and other areas where such strings must not be 8762modified. 8763 8764The ACPI_FUNCTION_* macros no longer require quotes around the function 8765name. This allows the Linux source converter to convert the names, now 8766that 8767the converter ignores quoted strings. 8768 8769Example Code and Data Size: These are the sizes for the OS-independent 8770acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8771debug version of the code includes the debug output trace mechanism and 8772has 8773a much larger code and data size. 8774 8775 Previous Release: 8776 8777 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 8778 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 8779 Current Release: 8780 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 8781 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 8782 8783 87842) iASL Compiler/Disassembler and Tools: 8785 8786Implemented 3 new warnings for iASL, and implemented multiple warning 8787levels 8788(w2 flag). 8789 87901) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 8791not 8792WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 8793check for the possible timeout, a warning is issued. 8794 87952) Useless operators: If an ASL operator does not specify an optional 8796target 8797operand and it also does not use the function return value from the 8798operator, a warning is issued since the operator effectively does 8799nothing. 8800 88013) Unreferenced objects: If a namespace object is created, but never 8802referenced, a warning is issued. This is a warning level 2 since there 8803are 8804cases where this is ok, such as when a secondary table is loaded that 8805uses 8806the unreferenced objects. Even so, care is taken to only flag objects 8807that 8808don't look like they will ever be used. For example, the reserved methods 8809(starting with an underscore) are usually not referenced because it is 8810expected that the OS will invoke them. 8811 8812---------------------------------------- 881331 March 2006. Summary of changes for version 20060331: 8814 88151) ACPI CA Core Subsystem: 8816 8817Implemented header file support for the following additional ACPI tables: 8818ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 8819support, 8820all current and known ACPI tables are now defined in the ACPICA headers 8821and 8822are available for use by device drivers and other software. 8823 8824Implemented support to allow tables that contain ACPI names with invalid 8825characters to be loaded. Previously, this would cause the table load to 8826fail, but since there are several known cases of such tables on existing 8827machines, this change was made to enable ACPI support for them. Also, 8828this 8829matches the behavior of the Microsoft ACPI implementation. 8830 8831Fixed a couple regressions introduced during the memory optimization in 8832the 883320060317 release. The namespace node definition required additional 8834reorganization and an internal datatype that had been changed to 8-bit 8835was 8836restored to 32-bit. (Valery Podrezov) 8837 8838Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 8839could be passed through to AcpiOsReleaseObject which is unexpected. Such 8840null pointers are now trapped and ignored, matching the behavior of the 8841previous implementation before the deployment of AcpiOsReleaseObject. 8842(Valery Podrezov, Fiodor Suietov) 8843 8844Fixed a memory mapping leak during the deletion of a SystemMemory 8845operation 8846region where a cached memory mapping was not deleted. This became a 8847noticeable problem for operation regions that are defined within 8848frequently 8849used control methods. (Dana Meyers) 8850 8851Reorganized the ACPI table header files into two main files: one for the 8852ACPI tables consumed by the ACPICA core, and another for the 8853miscellaneous 8854ACPI tables that are consumed by the drivers and other software. The 8855various 8856FADT definitions were merged into one common section and three different 8857tables (ACPI 1.0, 1.0+, and 2.0) 8858 8859Example Code and Data Size: These are the sizes for the OS-independent 8860acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8861debug version of the code includes the debug output trace mechanism and 8862has 8863a much larger code and data size. 8864 8865 Previous Release: 8866 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 8867 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 8868 Current Release: 8869 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 8870 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 8871 8872 88732) iASL Compiler/Disassembler and Tools: 8874 8875Disassembler: Implemented support to decode and format all non-AML ACPI 8876tables (tables other than DSDTs and SSDTs.) This includes the new tables 8877added to the ACPICA headers, therefore all current and known ACPI tables 8878are 8879supported. 8880 8881Disassembler: The change to allow ACPI names with invalid characters also 8882enables the disassembly of such tables. Invalid characters within names 8883are 8884changed to '*' to make the name printable; the iASL compiler will still 8885generate an error for such names, however, since this is an invalid ACPI 8886character. 8887 8888Implemented an option for AcpiXtract (-a) to extract all tables found in 8889the 8890input file. The default invocation extracts only the DSDTs and SSDTs. 8891 8892Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 8893makefile for the AcpiXtract utility. 8894 8895---------------------------------------- 889617 March 2006. Summary of changes for version 20060317: 8897 88981) ACPI CA Core Subsystem: 8899 8900Implemented the use of a cache object for all internal namespace nodes. 8901Since there are about 1000 static nodes in a typical system, this will 8902decrease memory use for cache implementations that minimize per- 8903allocation 8904overhead (such as a slab allocator.) 8905 8906Removed the reference count mechanism for internal namespace nodes, since 8907it 8908was deemed unnecessary. This reduces the size of each namespace node by 8909about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit 8910case, 8911and 32 bytes for the 64-bit case. 8912 8913Optimized several internal data structures to reduce object size on 64- 8914bit 8915platforms by packing data within the 64-bit alignment. This includes the 8916frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 8917instances corresponding to the namespace objects. 8918 8919Added two new strings for the predefined _OSI method: "Windows 2001.1 8920SP1" 8921and "Windows 2006". 8922 8923Split the allocation tracking mechanism out to a separate file, from 8924utalloc.c to uttrack.c. This mechanism appears to be only useful for 8925application-level code. Kernels may wish to not include uttrack.c in 8926distributions. 8927 8928Removed all remnants of the obsolete ACPI_REPORT_* macros and the 8929associated 8930code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 8931macros.) 8932 8933Code and Data Size: These are the sizes for the acpica.lib produced by 8934the 8935Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 8936ACPI 8937driver or OSPM code. The debug version of the code includes the debug 8938output 8939trace mechanism and has a much larger code and data size. Note that these 8940values will vary depending on the efficiency of the compiler and the 8941compiler options used during generation. 8942 8943 Previous Release: 8944 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 8945 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 8946 Current Release: 8947 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 8948 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 8949 8950 89512) iASL Compiler/Disassembler and Tools: 8952 8953Implemented an ANSI C version of the acpixtract utility. This version 8954will 8955automatically extract the DSDT and all SSDTs from the input acpidump text 8956file and dump the binary output to separate files. It can also display a 8957summary of the input file including the headers for each table found and 8958will extract any single ACPI table, with any signature. (See 8959source/tools/acpixtract) 8960 8961---------------------------------------- 896210 March 2006. Summary of changes for version 20060310: 8963 89641) ACPI CA Core Subsystem: 8965 8966Tagged all external interfaces to the subsystem with the new 8967ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to 8968assist 8969kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 8970macro. The default definition is NULL. 8971 8972Added the ACPI_THREAD_ID type for the return value from 8973AcpiOsGetThreadId. 8974This allows the host to define this as necessary to simplify kernel 8975integration. The default definition is ACPI_NATIVE_UINT. 8976 8977Fixed two interpreter problems related to error processing, the deletion 8978of 8979objects, and placing invalid pointers onto the internal operator result 8980stack. BZ 6028, 6151 (Valery Podrezov) 8981 8982Increased the reference count threshold where a warning is emitted for 8983large 8984reference counts in order to eliminate unnecessary warnings on systems 8985with 8986large namespaces (especially 64-bit.) Increased the value from 0x400 to 89870x800. 8988 8989Due to universal disagreement as to the meaning of the 'c' in the 8990calloc() 8991function, the ACPI_MEM_CALLOCATE macro has been renamed to 8992ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 8993ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 8994ACPI_FREE. 8995 8996Code and Data Size: These are the sizes for the acpica.lib produced by 8997the 8998Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 8999ACPI 9000driver or OSPM code. The debug version of the code includes the debug 9001output 9002trace mechanism and has a much larger code and data size. Note that these 9003values will vary depending on the efficiency of the compiler and the 9004compiler options used during generation. 9005 9006 Previous Release: 9007 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 9008 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 9009 Current Release: 9010 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9011 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 9012 9013 90142) iASL Compiler/Disassembler: 9015 9016Disassembler: implemented support for symbolic resource descriptor 9017references. If a CreateXxxxField operator references a fixed offset 9018within 9019a 9020resource descriptor, a name is assigned to the descriptor and the offset 9021is 9022translated to the appropriate resource tag and pathname. The addition of 9023this support brings the disassembled code very close to the original ASL 9024source code and helps eliminate run-time errors when the disassembled 9025code 9026is modified (and recompiled) in such a way as to invalidate the original 9027fixed offsets. 9028 9029Implemented support for a Descriptor Name as the last parameter to the 9030ASL 9031Register() macro. This parameter was inadvertently left out of the ACPI 9032specification, and will be added for ACPI 3.0b. 9033 9034Fixed a problem where the use of the "_OSI" string (versus the full path 9035"\_OSI") caused an internal compiler error. ("No back ptr to op") 9036 9037Fixed a problem with the error message that occurs when an invalid string 9038is 9039used for a _HID object (such as one with an embedded asterisk: 9040"*PNP010A".) 9041The correct message is now displayed. 9042 9043---------------------------------------- 904417 February 2006. Summary of changes for version 20060217: 9045 90461) ACPI CA Core Subsystem: 9047 9048Implemented a change to the IndexField support to match the behavior of 9049the 9050Microsoft AML interpreter. The value written to the Index register is now 9051a 9052byte offset, no longer an index based upon the width of the Data 9053register. 9054This should fix IndexField problems seen on some machines where the Data 9055register is not exactly one byte wide. The ACPI specification will be 9056clarified on this point. 9057 9058Fixed a problem where several resource descriptor types could overrun the 9059internal descriptor buffer due to size miscalculation: VendorShort, 9060VendorLong, and Interrupt. This was noticed on IA64 machines, but could 9061affect all platforms. 9062 9063Fixed a problem where individual resource descriptors were misaligned 9064within 9065the internal buffer, causing alignment faults on IA64 platforms. 9066 9067Code and Data Size: These are the sizes for the acpica.lib produced by 9068the 9069Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 9070ACPI 9071driver or OSPM code. The debug version of the code includes the debug 9072output 9073trace mechanism and has a much larger code and data size. Note that these 9074values will vary depending on the efficiency of the compiler and the 9075compiler options used during generation. 9076 9077 Previous Release: 9078 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9079 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 9080 Current Release: 9081 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 9082 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 9083 9084 90852) iASL Compiler/Disassembler: 9086 9087Implemented support for new reserved names: _WDG and _WED are Microsoft 9088extensions for Windows Instrumentation Management, _TDL is a new ACPI- 9089defined method (Throttling Depth Limit.) 9090 9091Fixed a problem where a zero-length VendorShort or VendorLong resource 9092descriptor was incorrectly emitted as a descriptor of length one. 9093 9094---------------------------------------- 909510 February 2006. Summary of changes for version 20060210: 9096 90971) ACPI CA Core Subsystem: 9098 9099Removed a couple of extraneous ACPI_ERROR messages that appeared during 9100normal execution. These became apparent after the conversion from 9101ACPI_DEBUG_PRINT. 9102 9103Fixed a problem where the CreateField operator could hang if the BitIndex 9104or 9105NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 9106 9107Fixed a problem where a DeRefOf operation on a buffer object incorrectly 9108failed with an exception. This also fixes a couple of related RefOf and 9109DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 9110 9111Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 9112of 9113AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 9114BZ 91155480) 9116 9117Implemented a memory cleanup at the end of the execution of each 9118iteration 9119of an AML While() loop, preventing the accumulation of outstanding 9120objects. 9121(Valery Podrezov, BZ 5427) 9122 9123Eliminated a chunk of duplicate code in the object resolution code. 9124(Valery 9125Podrezov, BZ 5336) 9126 9127Fixed several warnings during the 64-bit code generation. 9128 9129The AcpiSrc source code conversion tool now inserts one line of 9130whitespace 9131after an if() statement that is followed immediately by a comment, 9132improving 9133readability of the Linux code. 9134 9135Code and Data Size: The current and previous library sizes for the core 9136subsystem are shown below. These are the code and data sizes for the 9137acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9138These 9139values do not include any ACPI driver or OSPM code. The debug version of 9140the 9141code includes the debug output trace mechanism and has a much larger code 9142and data size. Note that these values will vary depending on the 9143efficiency 9144of the compiler and the compiler options used during generation. 9145 9146 Previous Release: 9147 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 9148 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 9149 Current Release: 9150 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9151 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 9152 9153 91542) iASL Compiler/Disassembler: 9155 9156Fixed a problem with the disassembly of a BankField operator with a 9157complex 9158expression for the BankValue parameter. 9159 9160---------------------------------------- 916127 January 2006. Summary of changes for version 20060127: 9162 91631) ACPI CA Core Subsystem: 9164 9165Implemented support in the Resource Manager to allow unresolved 9166namestring 9167references within resource package objects for the _PRT method. This 9168support 9169is in addition to the previously implemented unresolved reference support 9170within the AML parser. If the interpreter slack mode is enabled, these 9171unresolved references will be passed through to the caller as a NULL 9172package 9173entry. 9174 9175Implemented and deployed new macros and functions for error and warning 9176messages across the subsystem. These macros are simpler and generate less 9177code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 9178ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 9179macros remain defined to allow ACPI drivers time to migrate to the new 9180macros. 9181 9182Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of 9183the 9184Acquire/Release Lock OSL interfaces. 9185 9186Fixed a problem where Alias ASL operators are sometimes not correctly 9187resolved, in both the interpreter and the iASL compiler. 9188 9189Fixed several problems with the implementation of the 9190ConcatenateResTemplate 9191ASL operator. As per the ACPI specification, zero length buffers are now 9192treated as a single EndTag. One-length buffers always cause a fatal 9193exception. Non-zero length buffers that do not end with a full 2-byte 9194EndTag 9195cause a fatal exception. 9196 9197Fixed a possible structure overwrite in the AcpiGetObjectInfo external 9198interface. (With assistance from Thomas Renninger) 9199 9200Code and Data Size: The current and previous library sizes for the core 9201subsystem are shown below. These are the code and data sizes for the 9202acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9203These 9204values do not include any ACPI driver or OSPM code. The debug version of 9205the 9206code includes the debug output trace mechanism and has a much larger code 9207and data size. Note that these values will vary depending on the 9208efficiency 9209of the compiler and the compiler options used during generation. 9210 9211 Previous Release: 9212 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 9213 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 9214 Current Release: 9215 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 9216 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 9217 9218 92192) iASL Compiler/Disassembler: 9220 9221Fixed an internal error that was generated for any forward references to 9222ASL 9223Alias objects. 9224 9225---------------------------------------- 922613 January 2006. Summary of changes for version 20060113: 9227 92281) ACPI CA Core Subsystem: 9229 9230Added 2006 copyright to all module headers and signons. This affects 9231virtually every file in the ACPICA core subsystem, iASL compiler, and the 9232utilities. 9233 9234Enhanced the ACPICA error reporting in order to simplify user migration 9235to 9236the non-debug version of ACPICA. Replaced all instances of the 9237ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN 9238debug 9239levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 9240respectively. This preserves all error and warning messages in the non- 9241debug 9242version of the ACPICA code (this has been referred to as the "debug lite" 9243option.) Over 200 cases were converted to create a total of over 380 9244error/warning messages across the ACPICA code. This increases the code 9245and 9246data size of the default non-debug version of the code somewhat (about 924713K), 9248but all error/warning reporting may be disabled if desired (and code 9249eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 9250configuration option. The size of the debug version of ACPICA remains 9251about 9252the same. 9253 9254Fixed a memory leak within the AML Debugger "Set" command. One object was 9255not properly deleted for every successful invocation of the command. 9256 9257Code and Data Size: The current and previous library sizes for the core 9258subsystem are shown below. These are the code and data sizes for the 9259acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9260These 9261values do not include any ACPI driver or OSPM code. The debug version of 9262the 9263code includes the debug output trace mechanism and has a much larger code 9264and data size. Note that these values will vary depending on the 9265efficiency 9266of the compiler and the compiler options used during generation. 9267 9268 Previous Release: 9269 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 9270 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 9271 Current Release: 9272 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 9273 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 9274 9275 92762) iASL Compiler/Disassembler: 9277 9278The compiler now officially supports the ACPI 3.0a specification that was 9279released on December 30, 2005. (Specification is available at 9280www.acpi.info) 9281 9282---------------------------------------- 928316 December 2005. Summary of changes for version 20051216: 9284 92851) ACPI CA Core Subsystem: 9286 9287Implemented optional support to allow unresolved names within ASL Package 9288objects. A null object is inserted in the package when a named reference 9289cannot be located in the current namespace. Enabled via the interpreter 9290slack flag, this should eliminate AE_NOT_FOUND exceptions seen on 9291machines 9292that contain such code. 9293 9294Implemented an optimization to the initialization sequence that can 9295improve 9296boot time. During ACPI device initialization, the _STA method is now run 9297if 9298and only if the _INI method exists. The _STA method is used to determine 9299if 9300the device is present; An _INI can only be run if _STA returns present, 9301but 9302it is a waste of time to run the _STA method if the _INI does not exist. 9303(Prototype and assistance from Dong Wei) 9304 9305Implemented use of the C99 uintptr_t for the pointer casting macros if it 9306is 9307available in the current compiler. Otherwise, the default (void *) cast 9308is 9309used as before. 9310 9311Fixed some possible memory leaks found within the execution path of the 9312Break, Continue, If, and CreateField operators. (Valery Podrezov) 9313 9314Fixed a problem introduced in the 20051202 release where an exception is 9315generated during method execution if a control method attempts to declare 9316another method. 9317 9318Moved resource descriptor string constants that are used by both the AML 9319disassembler and AML debugger to the common utilities directory so that 9320these components are independent. 9321 9322Implemented support in the AcpiExec utility (-e switch) to globally 9323ignore 9324exceptions during control method execution (method is not aborted.) 9325 9326Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 9327generation. 9328 9329Code and Data Size: The current and previous library sizes for the core 9330subsystem are shown below. These are the code and data sizes for the 9331acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9332These 9333values do not include any ACPI driver or OSPM code. The debug version of 9334the 9335code includes the debug output trace mechanism and has a much larger code 9336and data size. Note that these values will vary depending on the 9337efficiency 9338of the compiler and the compiler options used during generation. 9339 9340 Previous Release: 9341 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9342 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 9343 Current Release: 9344 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 9345 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 9346 9347 93482) iASL Compiler/Disassembler: 9349 9350Fixed a problem where a CPU stack overflow fault could occur if a 9351recursive 9352method call was made from within a Return statement. 9353 9354---------------------------------------- 935502 December 2005. Summary of changes for version 20051202: 9356 93571) ACPI CA Core Subsystem: 9358 9359Modified the parsing of control methods to no longer create namespace 9360objects during the first pass of the parse. Objects are now created only 9361during the execute phase, at the moment the namespace creation operator 9362is 9363encountered in the AML (Name, OperationRegion, CreateByteField, etc.) 9364This 9365should eliminate ALREADY_EXISTS exceptions seen on some machines where 9366reentrant control methods are protected by an AML mutex. The mutex will 9367now 9368correctly block multiple threads from attempting to create the same 9369object 9370more than once. 9371 9372Increased the number of available Owner Ids for namespace object tracking 9373from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 9374on 9375some machines with a large number of ACPI tables (either static or 9376dynamic). 9377 9378Fixed a problem with the AcpiExec utility where a fault could occur when 9379the 9380-b switch (batch mode) is used. 9381 9382Enhanced the namespace dump routine to output the owner ID for each 9383namespace object. 9384 9385Code and Data Size: The current and previous library sizes for the core 9386subsystem are shown below. These are the code and data sizes for the 9387acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9388These 9389values do not include any ACPI driver or OSPM code. The debug version of 9390the 9391code includes the debug output trace mechanism and has a much larger code 9392and data size. Note that these values will vary depending on the 9393efficiency 9394of the compiler and the compiler options used during generation. 9395 9396 Previous Release: 9397 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9398 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9399 Current Release: 9400 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9401 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 9402 9403 94042) iASL Compiler/Disassembler: 9405 9406Fixed a parse error during compilation of certain Switch/Case constructs. 9407To 9408simplify the parse, the grammar now allows for multiple Default 9409statements 9410and this error is now detected and flagged during the analysis phase. 9411 9412Disassembler: The disassembly now includes the contents of the original 9413table header within a comment at the start of the file. This includes the 9414name and version of the original ASL compiler. 9415 9416---------------------------------------- 941717 November 2005. Summary of changes for version 20051117: 9418 94191) ACPI CA Core Subsystem: 9420 9421Fixed a problem in the AML parser where the method thread count could be 9422decremented below zero if any errors occurred during the method parse 9423phase. 9424This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 9425machines. 9426This also fixed a related regression with the mechanism that detects and 9427corrects methods that cannot properly handle reentrancy (related to the 9428deployment of the new OwnerId mechanism.) 9429 9430Eliminated the pre-parsing of control methods (to detect errors) during 9431table load. Related to the problem above, this was causing unwind issues 9432if 9433any errors occurred during the parse, and it seemed to be overkill. A 9434table 9435load should not be aborted if there are problems with any single control 9436method, thus rendering this feature rather pointless. 9437 9438Fixed a problem with the new table-driven resource manager where an 9439internal 9440buffer overflow could occur for small resource templates. 9441 9442Implemented a new external interface, AcpiGetVendorResource. This 9443interface 9444will find and return a vendor-defined resource descriptor within a _CRS 9445or 9446_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 9447Helgaas. 9448 9449Removed the length limit (200) on string objects as per the upcoming ACPI 94503.0A specification. This affects the following areas of the interpreter: 94511) 9452any implicit conversion of a Buffer to a String, 2) a String object 9453result 9454of the ASL Concatentate operator, 3) the String object result of the ASL 9455ToString operator. 9456 9457Fixed a problem in the Windows OS interface layer (OSL) where a 9458WAIT_FOREVER 9459on a semaphore object would incorrectly timeout. This allows the 9460multithreading features of the AcpiExec utility to work properly under 9461Windows. 9462 9463Updated the Linux makefiles for the iASL compiler and AcpiExec to include 9464the recently added file named "utresrc.c". 9465 9466Code and Data Size: The current and previous library sizes for the core 9467subsystem are shown below. These are the code and data sizes for the 9468acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9469These 9470values do not include any ACPI driver or OSPM code. The debug version of 9471the 9472code includes the debug output trace mechanism and has a much larger code 9473and data size. Note that these values will vary depending on the 9474efficiency 9475of the compiler and the compiler options used during generation. 9476 9477 Previous Release: 9478 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 9479 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9480 Current Release: 9481 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9482 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9483 9484 94852) iASL Compiler/Disassembler: 9486 9487Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 9488specification. For the iASL compiler, this means that string literals 9489within 9490the source ASL can be of any length. 9491 9492Enhanced the listing output to dump the AML code for resource descriptors 9493immediately after the ASL code for each descriptor, instead of in a block 9494at 9495the end of the entire resource template. 9496 9497Enhanced the compiler debug output to dump the entire original parse tree 9498constructed during the parse phase, before any transforms are applied to 9499the 9500tree. The transformed tree is dumped also. 9501 9502---------------------------------------- 950302 November 2005. Summary of changes for version 20051102: 9504 95051) ACPI CA Core Subsystem: 9506 9507Modified the subsystem initialization sequence to improve GPE support. 9508The 9509GPE initialization has been split into two parts in order to defer 9510execution 9511of the _PRW methods (Power Resources for Wake) until after the hardware 9512is 9513fully initialized and the SCI handler is installed. This allows the _PRW 9514methods to access fields protected by the Global Lock. This will fix 9515systems 9516where a NO_GLOBAL_LOCK exception has been seen during initialization. 9517 9518Converted the ACPI internal object disassemble and display code within 9519the 9520AML debugger to fully table-driven operation, reducing code size and 9521increasing maintainability. 9522 9523Fixed a regression with the ConcatenateResTemplate() ASL operator 9524introduced 9525in the 20051021 release. 9526 9527Implemented support for "local" internal ACPI object types within the 9528debugger "Object" command and the AcpiWalkNamespace external interfaces. 9529These local types include RegionFields, BankFields, IndexFields, Alias, 9530and 9531reference objects. 9532 9533Moved common AML resource handling code into a new file, "utresrc.c". 9534This 9535code is shared by both the Resource Manager and the AML Debugger. 9536 9537Code and Data Size: The current and previous library sizes for the core 9538subsystem are shown below. These are the code and data sizes for the 9539acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9540These 9541values do not include any ACPI driver or OSPM code. The debug version of 9542the 9543code includes the debug output trace mechanism and has a much larger code 9544and data size. Note that these values will vary depending on the 9545efficiency 9546of the compiler and the compiler options used during generation. 9547 9548 Previous Release: 9549 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 9550 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 9551 Current Release: 9552 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 9553 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9554 9555 95562) iASL Compiler/Disassembler: 9557 9558Fixed a problem with very large initializer lists (more than 4000 9559elements) 9560for both Buffer and Package objects where the parse stack could overflow. 9561 9562Enhanced the pre-compile source code scan for non-ASCII characters to 9563ignore 9564characters within comment fields. The scan is now always performed and is 9565no 9566longer optional, detecting invalid characters within a source file 9567immediately rather than during the parse phase or later. 9568 9569Enhanced the ASL grammar definition to force early reductions on all 9570list- 9571style grammar elements so that the overall parse stack usage is greatly 9572reduced. This should improve performance and reduce the possibility of 9573parse 9574stack overflow. 9575 9576Eliminated all reduce/reduce conflicts in the iASL parser generation. 9577Also, 9578with the addition of a %expected statement, the compiler generates from 9579source with no warnings. 9580 9581Fixed a possible segment fault in the disassembler if the input filename 9582does not contain a "dot" extension (Thomas Renninger). 9583 9584---------------------------------------- 958521 October 2005. Summary of changes for version 20051021: 9586 95871) ACPI CA Core Subsystem: 9588 9589Implemented support for the EM64T and other x86-64 processors. This 9590essentially entails recognizing that these processors support non-aligned 9591memory transfers. Previously, all 64-bit processors were assumed to lack 9592hardware support for non-aligned transfers. 9593 9594Completed conversion of the Resource Manager to nearly full table-driven 9595operation. Specifically, the resource conversion code (convert AML to 9596internal format and the reverse) and the debug code to dump internal 9597resource descriptors are fully table-driven, reducing code and data size 9598and 9599improving maintainability. 9600 9601The OSL interfaces for Acquire and Release Lock now use a 64-bit flag 9602word 9603on 64-bit processors instead of a fixed 32-bit word. (With assistance 9604from 9605Alexey Starikovskiy) 9606 9607Implemented support within the resource conversion code for the Type- 9608Specific byte within the various ACPI 3.0 *WordSpace macros. 9609 9610Fixed some issues within the resource conversion code for the type- 9611specific 9612flags for both Memory and I/O address resource descriptors. For Memory, 9613implemented support for the MTP and TTP flags. For I/O, split the TRS and 9614TTP flags into two separate fields. 9615 9616Code and Data Size: The current and previous library sizes for the core 9617subsystem are shown below. These are the code and data sizes for the 9618acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9619These 9620values do not include any ACPI driver or OSPM code. The debug version of 9621the 9622code includes the debug output trace mechanism and has a much larger code 9623and data size. Note that these values will vary depending on the 9624efficiency 9625of the compiler and the compiler options used during generation. 9626 9627 Previous Release: 9628 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 9629 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 9630 Current Release: 9631 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 9632 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 9633 9634 9635 96362) iASL Compiler/Disassembler: 9637 9638Relaxed a compiler restriction that disallowed a ResourceIndex byte if 9639the 9640corresponding ResourceSource string was not also present in a resource 9641descriptor declaration. This restriction caused problems with existing 9642AML/ASL code that includes the Index byte without the string. When such 9643AML 9644was disassembled, it could not be compiled without modification. Further, 9645the modified code created a resource template with a different size than 9646the 9647original, breaking code that used fixed offsets into the resource 9648template 9649buffer. 9650 9651Removed a recent feature of the disassembler to ignore a lone 9652ResourceIndex 9653byte. This byte is now emitted if present so that the exact AML can be 9654reproduced when the disassembled code is recompiled. 9655 9656Improved comments and text alignment for the resource descriptor code 9657emitted by the disassembler. 9658 9659Implemented disassembler support for the ACPI 3.0 AccessSize field within 9660a 9661Register() resource descriptor. 9662 9663---------------------------------------- 966430 September 2005. Summary of changes for version 20050930: 9665 96661) ACPI CA Core Subsystem: 9667 9668Completed a major overhaul of the Resource Manager code - specifically, 9669optimizations in the area of the AML/internal resource conversion code. 9670The 9671code has been optimized to simplify and eliminate duplicated code, CPU 9672stack 9673use has been decreased by optimizing function parameters and local 9674variables, and naming conventions across the manager have been 9675standardized 9676for clarity and ease of maintenance (this includes function, parameter, 9677variable, and struct/typedef names.) The update may force changes in some 9678driver code, depending on how resources are handled by the host OS. 9679 9680All Resource Manager dispatch and information tables have been moved to a 9681single location for clarity and ease of maintenance. One new file was 9682created, named "rsinfo.c". 9683 9684The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 9685guarantee that the argument is not evaluated twice, making them less 9686prone 9687to macro side-effects. However, since there exists the possibility of 9688additional stack use if a particular compiler cannot optimize them (such 9689as 9690in the debug generation case), the original macros are optionally 9691available. 9692Note that some invocations of the return_VALUE macro may now cause size 9693mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 9694to 9695eliminate these. (From Randy Dunlap) 9696 9697Implemented a new mechanism to enable debug tracing for individual 9698control 9699methods. A new external interface, AcpiDebugTrace, is provided to enable 9700this mechanism. The intent is to allow the host OS to easily enable and 9701disable tracing for problematic control methods. This interface can be 9702easily exposed to a user or debugger interface if desired. See the file 9703psxface.c for details. 9704 9705AcpiUtCallocate will now return a valid pointer if a length of zero is 9706specified - a length of one is used and a warning is issued. This matches 9707the behavior of AcpiUtAllocate. 9708 9709Code and Data Size: The current and previous library sizes for the core 9710subsystem are shown below. These are the code and data sizes for the 9711acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9712These 9713values do not include any ACPI driver or OSPM code. The debug version of 9714the 9715code includes the debug output trace mechanism and has a much larger code 9716and data size. Note that these values will vary depending on the 9717efficiency 9718of the compiler and the compiler options used during generation. 9719 9720 Previous Release: 9721 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 9722 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 9723 Current Release: 9724 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 9725 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 9726 9727 97282) iASL Compiler/Disassembler: 9729 9730A remark is issued if the effective compile-time length of a package or 9731buffer is zero. Previously, this was a warning. 9732 9733---------------------------------------- 973416 September 2005. Summary of changes for version 20050916: 9735 97361) ACPI CA Core Subsystem: 9737 9738Fixed a problem within the Resource Manager where support for the Generic 9739Register descriptor was not fully implemented. This descriptor is now 9740fully 9741recognized, parsed, disassembled, and displayed. 9742 9743Completely restructured the Resource Manager code to utilize table-driven 9744dispatch and lookup, eliminating many of the large switch() statements. 9745This 9746reduces overall subsystem code size and code complexity. Affects the 9747resource parsing and construction, disassembly, and debug dump output. 9748 9749Cleaned up and restructured the debug dump output for all resource 9750descriptors. Improved readability of the output and reduced code size. 9751 9752Fixed a problem where changes to internal data structures caused the 9753optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 9754 9755Code and Data Size: The current and previous library sizes for the core 9756subsystem are shown below. These are the code and data sizes for the 9757acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9758These 9759values do not include any ACPI driver or OSPM code. The debug version of 9760the 9761code includes the debug output trace mechanism and has a much larger code 9762and data size. Note that these values will vary depending on the 9763efficiency 9764of the compiler and the compiler options used during generation. 9765 9766 Previous Release: 9767 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 9768 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 9769 Current Release: 9770 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 9771 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 9772 9773 97742) iASL Compiler/Disassembler: 9775 9776Updated the disassembler to automatically insert an EndDependentFn() 9777macro 9778into the ASL stream if this macro is missing in the original AML code, 9779simplifying compilation of the resulting ASL module. 9780 9781Fixed a problem in the disassembler where a disassembled ResourceSource 9782string (within a large resource descriptor) was not surrounded by quotes 9783and 9784not followed by a comma, causing errors when the resulting ASL module was 9785compiled. Also, escape sequences within a ResourceSource string are now 9786handled correctly (especially "\\") 9787 9788---------------------------------------- 978902 September 2005. Summary of changes for version 20050902: 9790 97911) ACPI CA Core Subsystem: 9792 9793Fixed a problem with the internal Owner ID allocation and deallocation 9794mechanisms for control method execution and recursive method invocation. 9795This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 9796messages seen on some systems. Recursive method invocation depth is 9797currently limited to 255. (Alexey Starikovskiy) 9798 9799Completely eliminated all vestiges of support for the "module-level 9800executable code" until this support is fully implemented and debugged. 9801This 9802should eliminate the NO_RETURN_VALUE exceptions seen during table load on 9803some systems that invoke this support. 9804 9805Fixed a problem within the resource manager code where the transaction 9806flags 9807for a 64-bit address descriptor were handled incorrectly in the type- 9808specific flag byte. 9809 9810Consolidated duplicate code within the address descriptor resource 9811manager 9812code, reducing overall subsystem code size. 9813 9814Fixed a fault when using the AML debugger "disassemble" command to 9815disassemble individual control methods. 9816 9817Removed references to the "release_current" directory within the Unix 9818release package. 9819 9820Code and Data Size: The current and previous core subsystem library sizes 9821are shown below. These are the code and data sizes for the acpica.lib 9822produced by the Microsoft Visual C++ 6.0 compiler. These values do not 9823include any ACPI driver or OSPM code. The debug version of the code 9824includes 9825the debug output trace mechanism and has a much larger code and data 9826size. 9827Note that these values will vary depending on the efficiency of the 9828compiler 9829and the compiler options used during generation. 9830 9831 Previous Release: 9832 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 9833 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 9834 Current Release: 9835 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 9836 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 9837 9838 98392) iASL Compiler/Disassembler: 9840 9841Implemented an error check for illegal duplicate values in the interrupt 9842and 9843dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 9844Interrupt(). 9845 9846Implemented error checking for the Irq() and IrqNoFlags() macros to 9847detect 9848too many values in the interrupt list (16 max) and invalid values in the 9849list (range 0 - 15) 9850 9851The maximum length string literal within an ASL file is now restricted to 9852200 characters as per the ACPI specification. 9853 9854Fixed a fault when using the -ln option (generate namespace listing). 9855 9856Implemented an error check to determine if a DescriptorName within a 9857resource descriptor has already been used within the current scope. 9858 9859---------------------------------------- 986015 August 2005. Summary of changes for version 20050815: 9861 98621) ACPI CA Core Subsystem: 9863 9864Implemented a full bytewise compare to determine if a table load request 9865is 9866attempting to load a duplicate table. The compare is performed if the 9867table 9868signatures and table lengths match. This will allow different tables with 9869the same OEM Table ID and revision to be loaded - probably against the 9870ACPI 9871specification, but discovered in the field nonetheless. 9872 9873Added the changes.txt logfile to each of the zipped release packages. 9874 9875Code and Data Size: Current and previous core subsystem library sizes are 9876shown below. These are the code and data sizes for the acpica.lib 9877produced 9878by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9879any ACPI driver or OSPM code. The debug version of the code includes the 9880debug output trace mechanism and has a much larger code and data size. 9881Note 9882that these values will vary depending on the efficiency of the compiler 9883and 9884the compiler options used during generation. 9885 9886 Previous Release: 9887 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 9888 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 9889 Current Release: 9890 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 9891 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 9892 9893 98942) iASL Compiler/Disassembler: 9895 9896Fixed a problem where incorrect AML code could be generated for Package 9897objects if optimization is disabled (via the -oa switch). 9898 9899Fixed a problem with where incorrect AML code is generated for variable- 9900length packages when the package length is not specified and the number 9901of 9902initializer values is greater than 255. 9903 9904 9905---------------------------------------- 990629 July 2005. Summary of changes for version 20050729: 9907 99081) ACPI CA Core Subsystem: 9909 9910Implemented support to ignore an attempt to install/load a particular 9911ACPI 9912table more than once. Apparently there exists BIOS code that repeatedly 9913attempts to load the same SSDT upon certain events. With assistance from 9914Venkatesh Pallipadi. 9915 9916Restructured the main interface to the AML parser in order to correctly 9917handle all exceptional conditions. This will prevent leakage of the 9918OwnerId 9919resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 9920some 9921machines. With assistance from Alexey Starikovskiy. 9922 9923Support for "module level code" has been disabled in this version due to 9924a 9925number of issues that have appeared on various machines. The support can 9926be 9927enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 9928compilation. When the issues are fully resolved, the code will be enabled 9929by 9930default again. 9931 9932Modified the internal functions for debug print support to define the 9933FunctionName parameter as a (const char *) for compatibility with 9934compiler 9935built-in macros such as __FUNCTION__, etc. 9936 9937Linted the entire ACPICA source tree for both 32-bit and 64-bit. 9938 9939Implemented support to display an object count summary for the AML 9940Debugger 9941commands Object and Methods. 9942 9943Code and Data Size: Current and previous core subsystem library sizes are 9944shown below. These are the code and data sizes for the acpica.lib 9945produced 9946by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9947any ACPI driver or OSPM code. The debug version of the code includes the 9948debug output trace mechanism and has a much larger code and data size. 9949Note 9950that these values will vary depending on the efficiency of the compiler 9951and 9952the compiler options used during generation. 9953 9954 Previous Release: 9955 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 9956 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 9957 Current Release: 9958 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 9959 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 9960 9961 99622) iASL Compiler/Disassembler: 9963 9964Fixed a regression that appeared in the 20050708 version of the compiler 9965where an error message was inadvertently emitted for invocations of the 9966_OSI 9967reserved control method. 9968 9969---------------------------------------- 997008 July 2005. Summary of changes for version 20050708: 9971 99721) ACPI CA Core Subsystem: 9973 9974The use of the CPU stack in the debug version of the subsystem has been 9975considerably reduced. Previously, a debug structure was declared in every 9976function that used the debug macros. This structure has been removed in 9977favor of declaring the individual elements as parameters to the debug 9978functions. This reduces the cumulative stack use during nested execution 9979of 9980ACPI function calls at the cost of a small increase in the code size of 9981the 9982debug version of the subsystem. With assistance from Alexey Starikovskiy 9983and 9984Len Brown. 9985 9986Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 9987headers to define a macro that will return the current function name at 9988runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 9989by 9990the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 9991compiler-dependent header, the function name is saved on the CPU stack 9992(one 9993pointer per function.) This mechanism is used because apparently there 9994exists no standard ANSI-C defined macro that that returns the function 9995name. 9996 9997Redesigned and reimplemented the "Owner ID" mechanism used to track 9998namespace objects created/deleted by ACPI tables and control method 9999execution. A bitmap is now used to allocate and free the IDs, thus 10000solving 10001the wraparound problem present in the previous implementation. The size 10002of 10003the namespace node descriptor was reduced by 2 bytes as a result (Alexey 10004Starikovskiy). 10005 10006Removed the UINT32_BIT and UINT16_BIT types that were used for the 10007bitfield 10008flag definitions within the headers for the predefined ACPI tables. These 10009have been replaced by UINT8_BIT in order to increase the code portability 10010of 10011the subsystem. If the use of UINT8 remains a problem, we may be forced to 10012eliminate bitfields entirely because of a lack of portability. 10013 10014Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 10015This 10016is a frequently used function and this improvement increases the 10017performance 10018of the entire subsystem (Alexey Starikovskiy). 10019 10020Fixed several possible memory leaks and the inverse - premature object 10021deletion (Alexey Starikovskiy). 10022 10023Code and Data Size: Current and previous core subsystem library sizes are 10024shown below. These are the code and data sizes for the acpica.lib 10025produced 10026by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10027any ACPI driver or OSPM code. The debug version of the code includes the 10028debug output trace mechanism and has a much larger code and data size. 10029Note 10030that these values will vary depending on the efficiency of the compiler 10031and 10032the compiler options used during generation. 10033 10034 Previous Release: 10035 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 10036 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 10037 Current Release: 10038 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 10039 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 10040 10041---------------------------------------- 1004224 June 2005. Summary of changes for version 20050624: 10043 100441) ACPI CA Core Subsystem: 10045 10046Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 10047the host-defined cache object. This allows the OSL implementation to 10048define 10049and type this object in any manner desired, simplifying the OSL 10050implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 10051Linux, and should be defined in the OS-specific header file for other 10052operating systems as required. 10053 10054Changed the interface to AcpiOsAcquireObject to directly return the 10055requested object as the function return (instead of ACPI_STATUS.) This 10056change was made for performance reasons, since this is the purpose of the 10057interface in the first place. AcpiOsAcquireObject is now similar to the 10058AcpiOsAllocate interface. 10059 10060Implemented a new AML debugger command named Businfo. This command 10061displays 10062information about all devices that have an associate _PRT object. The 10063_ADR, 10064_HID, _UID, and _CID are displayed for these devices. 10065 10066Modified the initialization sequence in AcpiInitializeSubsystem to call 10067the 10068OSL interface AcpiOslInitialize first, before any local initialization. 10069This 10070change was required because the global initialization now calls OSL 10071interfaces. 10072 10073Enhanced the Dump command to display the entire contents of Package 10074objects 10075(including all sub-objects and their values.) 10076 10077Restructured the code base to split some files because of size and/or 10078because the code logically belonged in a separate file. New files are 10079listed 10080below. All makefiles and project files included in the ACPI CA release 10081have 10082been updated. 10083 utilities/utcache.c /* Local cache interfaces */ 10084 utilities/utmutex.c /* Local mutex support */ 10085 utilities/utstate.c /* State object support */ 10086 interpreter/parser/psloop.c /* Main AML parse loop */ 10087 10088Code and Data Size: Current and previous core subsystem library sizes are 10089shown below. These are the code and data sizes for the acpica.lib 10090produced 10091by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10092any ACPI driver or OSPM code. The debug version of the code includes the 10093debug output trace mechanism and has a much larger code and data size. 10094Note 10095that these values will vary depending on the efficiency of the compiler 10096and 10097the compiler options used during generation. 10098 10099 Previous Release: 10100 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 10101 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 10102 Current Release: 10103 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 10104 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 10105 10106 101072) iASL Compiler/Disassembler: 10108 10109Fixed a regression introduced in version 20050513 where the use of a 10110Package 10111object within a Case() statement caused a compile time exception. The 10112original behavior has been restored (a Match() operator is emitted.) 10113 10114---------------------------------------- 1011517 June 2005. Summary of changes for version 20050617: 10116 101171) ACPI CA Core Subsystem: 10118 10119Moved the object cache operations into the OS interface layer (OSL) to 10120allow 10121the host OS to handle these operations if desired (for example, the Linux 10122OSL will invoke the slab allocator). This support is optional; the 10123compile 10124time define ACPI_USE_LOCAL_CACHE may be used to utilize the original 10125cache 10126code in the ACPI CA core. The new OSL interfaces are shown below. See 10127utalloc.c for an example implementation, and acpiosxf.h for the exact 10128interface definitions. With assistance from Alexey Starikovskiy. 10129 AcpiOsCreateCache 10130 AcpiOsDeleteCache 10131 AcpiOsPurgeCache 10132 AcpiOsAcquireObject 10133 AcpiOsReleaseObject 10134 10135Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 10136return 10137and restore a flags parameter. This fits better with many OS lock models. 10138Note: the current execution state (interrupt handler or not) is no longer 10139passed to these interfaces. If necessary, the OSL must determine this 10140state 10141by itself, a simple and fast operation. With assistance from Alexey 10142Starikovskiy. 10143 10144Fixed a problem in the ACPI table handling where a valid XSDT was assumed 10145present if the revision of the RSDP was 2 or greater. According to the 10146ACPI 10147specification, the XSDT is optional in all cases, and the table manager 10148therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 10149Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs 10150contain 10151only the RSDT. 10152 10153Fixed an interpreter problem with the Mid() operator in the case of an 10154input 10155string where the resulting output string is of zero length. It now 10156correctly 10157returns a valid, null terminated string object instead of a string object 10158with a null pointer. 10159 10160Fixed a problem with the control method argument handling to allow a 10161store 10162to an Arg object that already contains an object of type Device. The 10163Device 10164object is now correctly overwritten. Previously, an error was returned. 10165 10166 10167Enhanced the debugger Find command to emit object values in addition to 10168the 10169found object pathnames. The output format is the same as the dump 10170namespace 10171command. 10172 10173Enhanced the debugger Set command. It now has the ability to set the 10174value 10175of any Named integer object in the namespace (Previously, only method 10176locals 10177and args could be set.) 10178 10179Code and Data Size: Current and previous core subsystem library sizes are 10180shown below. These are the code and data sizes for the acpica.lib 10181produced 10182by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10183any ACPI driver or OSPM code. The debug version of the code includes the 10184debug output trace mechanism and has a much larger code and data size. 10185Note 10186that these values will vary depending on the efficiency of the compiler 10187and 10188the compiler options used during generation. 10189 10190 Previous Release: 10191 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 10192 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 10193 Current Release: 10194 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 10195 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 10196 10197 101982) iASL Compiler/Disassembler: 10199 10200Fixed a regression in the disassembler where if/else/while constructs 10201were 10202output incorrectly. This problem was introduced in the previous release 10203(20050526). This problem also affected the single-step disassembly in the 10204debugger. 10205 10206Fixed a problem where compiling the reserved _OSI method would randomly 10207(but 10208rarely) produce compile errors. 10209 10210Enhanced the disassembler to emit compilable code in the face of 10211incorrect 10212AML resource descriptors. If the optional ResourceSourceIndex is present, 10213but the ResourceSource is not, do not emit the ResourceSourceIndex in the 10214disassembly. Otherwise, the resulting code cannot be compiled without 10215errors. 10216 10217---------------------------------------- 1021826 May 2005. Summary of changes for version 20050526: 10219 102201) ACPI CA Core Subsystem: 10221 10222Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 10223the module level (not within a control method.) These opcodes are 10224executed 10225exactly once at the time the table is loaded. This type of code was legal 10226up 10227until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 10228in 10229order to provide backwards compatibility with earlier BIOS 10230implementations. 10231This eliminates the "Encountered executable code at module level" warning 10232that was previously generated upon detection of such code. 10233 10234Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 10235inadvertently be generated during the lookup of namespace objects in the 10236second pass parse of ACPI tables and control methods. It appears that 10237this 10238problem could occur during the resolution of forward references to 10239namespace 10240objects. 10241 10242Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 10243corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 10244allows the deadlock detection debug code to be compiled out in the normal 10245case, improving mutex performance (and overall subsystem performance) 10246considerably. 10247 10248Implemented a handful of miscellaneous fixes for possible memory leaks on 10249error conditions and error handling control paths. These fixes were 10250suggested by FreeBSD and the Coverity Prevent source code analysis tool. 10251 10252Added a check for a null RSDT pointer in AcpiGetFirmwareTable 10253(tbxfroot.c) 10254to prevent a fault in this error case. 10255 10256Code and Data Size: Current and previous core subsystem library sizes are 10257shown below. These are the code and data sizes for the acpica.lib 10258produced 10259by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10260any ACPI driver or OSPM code. The debug version of the code includes the 10261debug output trace mechanism and has a much larger code and data size. 10262Note 10263that these values will vary depending on the efficiency of the compiler 10264and 10265the compiler options used during generation. 10266 10267 Previous Release: 10268 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10269 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10270 Current Release: 10271 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 10272 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 10273 10274 102752) iASL Compiler/Disassembler: 10276 10277Implemented support to allow Type 1 and Type 2 ASL operators to appear at 10278the module level (not within a control method.) These operators will be 10279executed once at the time the table is loaded. This type of code was 10280legal 10281up until the release of ACPI 2.0B (2002) and is now supported by the iASL 10282compiler in order to provide backwards compatibility with earlier BIOS 10283ASL 10284code. 10285 10286The ACPI integer width (specified via the table revision ID or the -r 10287override, 32 or 64 bits) is now used internally during compile-time 10288constant 10289folding to ensure that constants are truncated to 32 bits if necessary. 10290Previously, the revision ID value was only emitted in the AML table 10291header. 10292 10293An error message is now generated for the Mutex and Method operators if 10294the 10295SyncLevel parameter is outside the legal range of 0 through 15. 10296 10297Fixed a problem with the Method operator ParameterTypes list handling 10298(ACPI 102993.0). Previously, more than 2 types or 2 arguments generated a syntax 10300error. 10301The actual underlying implementation of method argument typechecking is 10302still under development, however. 10303 10304---------------------------------------- 1030513 May 2005. Summary of changes for version 20050513: 10306 103071) ACPI CA Core Subsystem: 10308 10309Implemented support for PCI Express root bridges -- added support for 10310device 10311PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 10312 10313The interpreter now automatically truncates incoming 64-bit constants to 1031432 10315bits if currently executing out of a 32-bit ACPI table (Revision < 2). 10316This 10317also affects the iASL compiler constant folding. (Note: as per below, the 10318iASL compiler no longer allows 64-bit constants within 32-bit tables.) 10319 10320Fixed a problem where string and buffer objects with "static" pointers 10321(pointers to initialization data within an ACPI table) were not handled 10322consistently. The internal object copy operation now always copies the 10323data 10324to a newly allocated buffer, regardless of whether the source object is 10325static or not. 10326 10327Fixed a problem with the FromBCD operator where an implicit result 10328conversion was improperly performed while storing the result to the 10329target 10330operand. Since this is an "explicit conversion" operator, the implicit 10331conversion should never be performed on the output. 10332 10333Fixed a problem with the CopyObject operator where a copy to an existing 10334named object did not always completely overwrite the existing object 10335stored 10336at name. Specifically, a buffer-to-buffer copy did not delete the 10337existing 10338buffer. 10339 10340Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces 10341and 10342structs for consistency. 10343 10344Code and Data Size: Current and previous core subsystem library sizes are 10345shown below. These are the code and data sizes for the acpica.lib 10346produced 10347by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10348any ACPI driver or OSPM code. The debug version of the code includes the 10349debug output trace mechanism and has a much larger code and data size. 10350Note 10351that these values will vary depending on the efficiency of the compiler 10352and 10353the compiler options used during generation. 10354 10355 Previous Release: 10356 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10357 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10358 Current Release: (Same sizes) 10359 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10360 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10361 10362 103632) iASL Compiler/Disassembler: 10364 10365The compiler now emits a warning if an attempt is made to generate a 64- 10366bit 10367integer constant from within a 32-bit ACPI table (Revision < 2). The 10368integer 10369is truncated to 32 bits. 10370 10371Fixed a problem with large package objects: if the static length of the 10372package is greater than 255, the "variable length package" opcode is 10373emitted. Previously, this caused an error. This requires an update to the 10374ACPI spec, since it currently (incorrectly) states that packages larger 10375than 10376255 elements are not allowed. 10377 10378The disassembler now correctly handles variable length packages and 10379packages 10380larger than 255 elements. 10381 10382---------------------------------------- 1038308 April 2005. Summary of changes for version 20050408: 10384 103851) ACPI CA Core Subsystem: 10386 10387Fixed three cases in the interpreter where an "index" argument to an ASL 10388function was still (internally) 32 bits instead of the required 64 bits. 10389This was the Index argument to the Index, Mid, and Match operators. 10390 10391The "strupr" function is now permanently local (AcpiUtStrupr), since this 10392is 10393not a POSIX-defined function and not present in most kernel-level C 10394libraries. All references to the C library strupr function have been 10395removed 10396from the headers. 10397 10398Completed the deployment of static functions/prototypes. All prototypes 10399with 10400the static attribute have been moved from the headers to the owning C 10401file. 10402 10403Implemented an extract option (-e) for the AcpiBin utility (AML binary 10404utility). This option allows the utility to extract individual ACPI 10405tables 10406from the output of AcpiDmp. It provides the same functionality of the 10407acpixtract.pl perl script without the worry of setting the correct perl 10408options. AcpiBin runs on Windows and has not yet been generated/validated 10409in 10410the Linux/Unix environment (but should be soon). 10411 10412Updated and fixed the table dump option for AcpiBin (-d). This option 10413converts a single ACPI table to a hex/ascii file, similar to the output 10414of 10415AcpiDmp. 10416 10417Code and Data Size: Current and previous core subsystem library sizes are 10418shown below. These are the code and data sizes for the acpica.lib 10419produced 10420by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10421any ACPI driver or OSPM code. The debug version of the code includes the 10422debug output trace mechanism and has a much larger code and data size. 10423Note 10424that these values will vary depending on the efficiency of the compiler 10425and 10426the compiler options used during generation. 10427 10428 Previous Release: 10429 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 10430 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 10431 Current Release: 10432 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10433 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10434 10435 104362) iASL Compiler/Disassembler: 10437 10438Disassembler fix: Added a check to ensure that the table length found in 10439the 10440ACPI table header within the input file is not longer than the actual 10441input 10442file size. This indicates some kind of file or table corruption. 10443 10444---------------------------------------- 1044529 March 2005. Summary of changes for version 20050329: 10446 104471) ACPI CA Core Subsystem: 10448 10449An error is now generated if an attempt is made to create a Buffer Field 10450of 10451length zero (A CreateField with a length operand of zero.) 10452 10453The interpreter now issues a warning whenever executable code at the 10454module 10455level is detected during ACPI table load. This will give some idea of the 10456prevalence of this type of code. 10457 10458Implemented support for references to named objects (other than control 10459methods) within package objects. 10460 10461Enhanced package object output for the debug object. Package objects are 10462now 10463completely dumped, showing all elements. 10464 10465Enhanced miscellaneous object output for the debug object. Any object can 10466now be written to the debug object (for example, a device object can be 10467written, and the type of the object will be displayed.) 10468 10469The "static" qualifier has been added to all local functions across both 10470the 10471core subsystem and the iASL compiler. 10472 10473The number of "long" lines (> 80 chars) within the source has been 10474significantly reduced, by about 1/3. 10475 10476Cleaned up all header files to ensure that all CA/iASL functions are 10477prototyped (even static functions) and the formatting is consistent. 10478 10479Two new header files have been added, acopcode.h and acnames.h. 10480 10481Removed several obsolete functions that were no longer used. 10482 10483Code and Data Size: Current and previous core subsystem library sizes are 10484shown below. These are the code and data sizes for the acpica.lib 10485produced 10486by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10487any ACPI driver or OSPM code. The debug version of the code includes the 10488debug output trace mechanism and has a much larger code and data size. 10489Note 10490that these values will vary depending on the efficiency of the compiler 10491and 10492the compiler options used during generation. 10493 10494 Previous Release: 10495 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10496 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 10497 Current Release: 10498 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 10499 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 10500 10501 10502 105032) iASL Compiler/Disassembler: 10504 10505Fixed a problem with the resource descriptor generation/support. For the 10506ResourceSourceIndex and the ResourceSource fields, both must be present, 10507or 10508both must be not present - can't have one without the other. 10509 10510The compiler now returns non-zero from the main procedure if any errors 10511have 10512occurred during the compilation. 10513 10514 10515---------------------------------------- 1051609 March 2005. Summary of changes for version 20050309: 10517 105181) ACPI CA Core Subsystem: 10519 10520The string-to-buffer implicit conversion code has been modified again 10521after 10522a change to the ACPI specification. In order to match the behavior of 10523the 10524other major ACPI implementation, the target buffer is no longer truncated 10525if 10526the source string is smaller than an existing target buffer. This change 10527requires an update to the ACPI spec, and should eliminate the recent 10528AE_AML_BUFFER_LIMIT issues. 10529 10530The "implicit return" support was rewritten to a new algorithm that 10531solves 10532the general case. Rather than attempt to determine when a method is about 10533to 10534exit, the result of every ASL operator is saved momentarily until the 10535very 10536next ASL operator is executed. Therefore, no matter how the method exits, 10537there will always be a saved implicit return value. This feature is only 10538enabled with the AcpiGbl_EnableInterpreterSlack flag, and should 10539eliminate 10540AE_AML_NO_RETURN_VALUE errors when enabled. 10541 10542Implemented implicit conversion support for the predicate (operand) of 10543the 10544If, Else, and While operators. String and Buffer arguments are 10545automatically 10546converted to Integers. 10547 10548Changed the string-to-integer conversion behavior to match the new ACPI 10549errata: "If no integer object exists, a new integer is created. The ASCII 10550string is interpreted as a hexadecimal constant. Each string character is 10551interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 10552with the first character as the most significant digit, and ending with 10553the 10554first non-hexadecimal character or end-of-string." This means that the 10555first 10556non-hex character terminates the conversion and this is the code that was 10557changed. 10558 10559Fixed a problem where the ObjectType operator would fail (fault) when 10560used 10561on an Index of a Package which pointed to a null package element. The 10562operator now properly returns zero (Uninitialized) in this case. 10563 10564Fixed a problem where the While operator used excessive memory by not 10565properly popping the result stack during execution. There was no memory 10566leak 10567after execution, however. (Code provided by Valery Podrezov.) 10568 10569Fixed a problem where references to control methods within Package 10570objects 10571caused the method to be invoked, instead of producing a reference object 10572pointing to the method. 10573 10574Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) 10575to 10576improve performance and reduce code size. (Code provided by Alexey 10577Starikovskiy.) 10578 10579Code and Data Size: Current and previous core subsystem library sizes are 10580shown below. These are the code and data sizes for the acpica.lib 10581produced 10582by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10583any ACPI driver or OSPM code. The debug version of the code includes the 10584debug output trace mechanism and has a much larger code and data size. 10585Note 10586that these values will vary depending on the efficiency of the compiler 10587and 10588the compiler options used during generation. 10589 10590 Previous Release: 10591 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10592 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 10593 Current Release: 10594 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10595 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 10596 10597 105982) iASL Compiler/Disassembler: 10599 10600Fixed a problem with the Return operator with no arguments. Since the AML 10601grammar for the byte encoding requires an operand for the Return opcode, 10602the 10603compiler now emits a Return(Zero) for this case. An ACPI specification 10604update has been written for this case. 10605 10606For tables other than the DSDT, namepath optimization is automatically 10607disabled. This is because SSDTs can be loaded anywhere in the namespace, 10608the 10609compiler has no knowledge of where, and thus cannot optimize namepaths. 10610 10611Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 10612inadvertently omitted from the ACPI specification, and will require an 10613update to the spec. 10614 10615The source file scan for ASCII characters is now optional (-a). This 10616change 10617was made because some vendors place non-ascii characters within comments. 10618However, the scan is simply a brute-force byte compare to ensure all 10619characters in the file are in the range 0x00 to 0x7F. 10620 10621Fixed a problem with the CondRefOf operator where the compiler was 10622inappropriately checking for the existence of the target. Since the point 10623of 10624the operator is to check for the existence of the target at run-time, the 10625compiler no longer checks for the target existence. 10626 10627Fixed a problem where errors generated from the internal AML interpreter 10628during constant folding were not handled properly, causing a fault. 10629 10630Fixed a problem with overly aggressive range checking for the Stall 10631operator. The valid range (max 255) is now only checked if the operand is 10632of 10633type Integer. All other operand types cannot be statically checked. 10634 10635Fixed a problem where control method references within the RefOf, 10636DeRefOf, 10637and ObjectType operators were not treated properly. They are now treated 10638as 10639actual references, not method invocations. 10640 10641Fixed and enhanced the "list namespace" option (-ln). This option was 10642broken 10643a number of releases ago. 10644 10645Improved error handling for the Field, IndexField, and BankField 10646operators. 10647The compiler now cleanly reports and recovers from errors in the field 10648component (FieldUnit) list. 10649 10650Fixed a disassembler problem where the optional ResourceDescriptor fields 10651TRS and TTP were not always handled correctly. 10652 10653Disassembler - Comments in output now use "//" instead of "/*" 10654 10655---------------------------------------- 1065628 February 2005. Summary of changes for version 20050228: 10657 106581) ACPI CA Core Subsystem: 10659 10660Fixed a problem where the result of an Index() operator (an object 10661reference) must increment the reference count on the target object for 10662the 10663life of the object reference. 10664 10665Implemented AML Interpreter and Debugger support for the new ACPI 3.0 10666Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 10667WordSpace 10668resource descriptors. 10669 10670Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 10671Space Descriptor" string, indicating interpreter support for the 10672descriptors 10673above. 10674 10675Implemented header support for the new ACPI 3.0 FADT flag bits. 10676 10677Implemented header support for the new ACPI 3.0 PCI Express bits for the 10678PM1 10679status/enable registers. 10680 10681Updated header support for the MADT processor local Apic struct and MADT 10682platform interrupt source struct for new ACPI 3.0 fields. 10683 10684Implemented header support for the SRAT and SLIT ACPI tables. 10685 10686Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 10687flag 10688at runtime. 10689 10690Code and Data Size: Current and previous core subsystem library sizes are 10691shown below. These are the code and data sizes for the acpica.lib 10692produced 10693by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10694any ACPI driver or OSPM code. The debug version of the code includes the 10695debug output trace mechanism and has a much larger code and data size. 10696Note 10697that these values will vary depending on the efficiency of the compiler 10698and 10699the compiler options used during generation. 10700 10701 Previous Release: 10702 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 10703 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 10704 Current Release: 10705 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10706 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 10707 10708 107092) iASL Compiler/Disassembler: 10710 10711Fixed a problem with the internal 64-bit String-to-integer conversion 10712with 10713strings less than two characters long. 10714 10715Fixed a problem with constant folding where the result of the Index() 10716operator can not be considered a constant. This means that Index() cannot 10717be 10718a type3 opcode and this will require an update to the ACPI specification. 10719 10720Disassembler: Implemented support for the TTP, MTP, and TRS resource 10721descriptor fields. These fields were inadvertently ignored and not output 10722in 10723the disassembly of the resource descriptor. 10724 10725 10726 ---------------------------------------- 1072711 February 2005. Summary of changes for version 20050211: 10728 107291) ACPI CA Core Subsystem: 10730 10731Implemented ACPI 3.0 support for implicit conversion within the Match() 10732operator. MatchObjects can now be of type integer, buffer, or string 10733instead 10734of just type integer. Package elements are implicitly converted to the 10735type 10736of the MatchObject. This change aligns the behavior of Match() with the 10737behavior of the other logical operators (LLess(), etc.) It also requires 10738an 10739errata change to the ACPI specification as this support was intended for 10740ACPI 3.0, but was inadvertently omitted. 10741 10742Fixed a problem with the internal implicit "to buffer" conversion. 10743Strings 10744that are converted to buffers will cause buffer truncation if the string 10745is 10746smaller than the target buffer. Integers that are converted to buffers 10747will 10748not cause buffer truncation, only zero extension (both as per the ACPI 10749spec.) The problem was introduced when code was added to truncate the 10750buffer, but this should not be performed in all cases, only the string 10751case. 10752 10753Fixed a problem with the Buffer and Package operators where the 10754interpreter 10755would get confused if two such operators were used as operands to an ASL 10756operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 10757stack was not being popped after the execution of these operators, 10758resulting 10759in an AE_NO_RETURN_VALUE exception. 10760 10761Fixed a problem with constructs of the form Store(Index(...),...). The 10762reference object returned from Index was inadvertently resolved to an 10763actual 10764value. This problem was introduced in version 20050114 when the behavior 10765of 10766Store() was modified to restrict the object types that can be used as the 10767source operand (to match the ACPI specification.) 10768 10769Reduced excessive stack use within the AcpiGetObjectInfo procedure. 10770 10771Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 10772 10773Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 10774 10775Code and Data Size: Current and previous core subsystem library sizes are 10776shown below. These are the code and data sizes for the acpica.lib 10777produced 10778by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10779any ACPI driver or OSPM code. The debug version of the code includes the 10780debug output trace mechanism and has a much larger code and data size. 10781Note 10782that these values will vary depending on the efficiency of the compiler 10783and 10784the compiler options used during generation. 10785 10786 Previous Release: 10787 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 10788 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 10789 Current Release: 10790 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 10791 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 10792 10793 107942) iASL Compiler/Disassembler: 10795 10796Fixed a code generation problem in the constant folding optimization code 10797where incorrect code was generated if a constant was reduced to a buffer 10798object (i.e., a reduced type 5 opcode.) 10799 10800Fixed a typechecking problem for the ToBuffer operator. Caused by an 10801incorrect return type in the internal opcode information table. 10802 10803---------------------------------------- 1080425 January 2005. Summary of changes for version 20050125: 10805 108061) ACPI CA Core Subsystem: 10807 10808Fixed a recently introduced problem with the Global Lock where the 10809underlying semaphore was not created. This problem was introduced in 10810version 20050114, and caused an AE_AML_NO_OPERAND exception during an 10811Acquire() operation on _GL. 10812 10813The local object cache is now optional, and is disabled by default. Both 10814AcpiExec and the iASL compiler enable the cache because they run in user 10815mode and this enhances their performance. #define 10816ACPI_ENABLE_OBJECT_CACHE 10817to enable the local cache. 10818 10819Fixed an issue in the internal function AcpiUtEvaluateObject concerning 10820the 10821optional "implicit return" support where an error was returned if no 10822return 10823object was expected, but one was implicitly returned. AE_OK is now 10824returned 10825in this case and the implicitly returned object is deleted. 10826AcpiUtEvaluateObject is only occasionally used, and only to execute 10827reserved 10828methods such as _STA and _INI where the return type is known up front. 10829 10830Fixed a few issues with the internal convert-to-integer code. It now 10831returns 10832an error if an attempt is made to convert a null string, a string of only 10833blanks/tabs, or a zero-length buffer. This affects both implicit 10834conversion 10835and explicit conversion via the ToInteger() operator. 10836 10837The internal debug code in AcpiUtAcquireMutex has been commented out. It 10838is 10839not needed for normal operation and should increase the performance of 10840the 10841entire subsystem. The code remains in case it is needed for debug 10842purposes 10843again. 10844 10845The AcpiExec source and makefile are included in the Unix/Linux package 10846for 10847the first time. 10848 10849Code and Data Size: Current and previous core subsystem library sizes are 10850shown below. These are the code and data sizes for the acpica.lib 10851produced 10852by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10853any ACPI driver or OSPM code. The debug version of the code includes the 10854debug output trace mechanism and has a much larger code and data size. 10855Note 10856that these values will vary depending on the efficiency of the compiler 10857and 10858the compiler options used during generation. 10859 10860 Previous Release: 10861 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 10862 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 10863 Current Release: 10864 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 10865 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 10866 108672) iASL Compiler/Disassembler: 10868 10869Switch/Case support: A warning is now issued if the type of the Switch 10870value 10871cannot be determined at compile time. For example, Switch(Arg0) will 10872generate the warning, and the type is assumed to be an integer. As per 10873the 10874ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 10875the 10876warning. 10877 10878Switch/Case support: Implemented support for buffer and string objects as 10879the switch value. This is an ACPI 3.0 feature, now that LEqual supports 10880buffers and strings. 10881 10882Switch/Case support: The emitted code for the LEqual() comparisons now 10883uses 10884the switch value as the first operand, not the second. The case value is 10885now 10886the second operand, and this allows the case value to be implicitly 10887converted to the type of the switch value, not the other way around. 10888 10889Switch/Case support: Temporary variables are now emitted immediately 10890within 10891the control method, not at the global level. This means that there are 10892now 1089336 temps available per-method, not 36 temps per-module as was the case 10894with 10895the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 10896 10897---------------------------------------- 1089814 January 2005. Summary of changes for version 20050114: 10899 10900Added 2005 copyright to all module headers. This affects every module in 10901the core subsystem, iASL compiler, and the utilities. 10902 109031) ACPI CA Core Subsystem: 10904 10905Fixed an issue with the String-to-Buffer conversion code where the string 10906null terminator was not included in the buffer after conversion, but 10907there 10908is existing ASL that assumes the string null terminator is included. This 10909is 10910the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 10911introduced in the previous version when the code was updated to correctly 10912set the converted buffer size as per the ACPI specification. The ACPI 10913spec 10914is ambiguous and will be updated to specify that the null terminator must 10915be 10916included in the converted buffer. This also affects the ToBuffer() ASL 10917operator. 10918 10919Fixed a problem with the Mid() ASL/AML operator where it did not work 10920correctly on Buffer objects. Newly created sub-buffers were not being 10921marked 10922as initialized. 10923 10924 10925Fixed a problem in AcpiTbFindTable where incorrect string compares were 10926performed on the OemId and OemTableId table header fields. These fields 10927are 10928not null terminated, so strncmp is now used instead of strcmp. 10929 10930Implemented a restriction on the Store() ASL/AML operator to align the 10931behavior with the ACPI specification. Previously, any object could be 10932used 10933as the source operand. Now, the only objects that may be used are 10934Integers, 10935Buffers, Strings, Packages, Object References, and DDB Handles. If 10936necessary, the original behavior can be restored by enabling the 10937EnableInterpreterSlack flag. 10938 10939Enhanced the optional "implicit return" support to allow an implicit 10940return 10941value from methods that are invoked externally via the AcpiEvaluateObject 10942interface. This enables implicit returns from the _STA and _INI methods, 10943for example. 10944 10945Changed the Revision() ASL/AML operator to return the current version of 10946the 10947AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 10948returned 10949the supported ACPI version (This is the function of the _REV method). 10950 10951Updated the _REV predefined method to return the currently supported 10952version 10953of ACPI, now 3. 10954 10955Implemented batch mode option for the AcpiExec utility (-b). 10956 10957Code and Data Size: Current and previous core subsystem library sizes are 10958shown below. These are the code and data sizes for the acpica.lib 10959produced 10960by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10961any ACPI driver or OSPM code. The debug version of the code includes the 10962debug output trace mechanism and has a much larger code and data size. 10963Note 10964that these values will vary depending on the efficiency of the compiler 10965and 10966the compiler options used during generation. 10967 10968 Previous Release: 10969 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10970 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 10971 Current Release: 10972 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 10973 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 10974 10975---------------------------------------- 1097610 December 2004. Summary of changes for version 20041210: 10977 10978ACPI 3.0 support is nearing completion in both the iASL compiler and the 10979ACPI CA core subsystem. 10980 109811) ACPI CA Core Subsystem: 10982 10983Fixed a problem in the ToDecimalString operator where the resulting 10984string 10985length was incorrectly calculated. The length is now calculated exactly, 10986eliminating incorrect AE_STRING_LIMIT exceptions. 10987 10988Fixed a problem in the ToHexString operator to allow a maximum 200 10989character 10990string to be produced. 10991 10992Fixed a problem in the internal string-to-buffer and buffer-to-buffer 10993copy 10994routine where the length of the resulting buffer was not truncated to the 10995new size (if the target buffer already existed). 10996 10997Code and Data Size: Current and previous core subsystem library sizes are 10998shown below. These are the code and data sizes for the acpica.lib 10999produced 11000by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11001any ACPI driver or OSPM code. The debug version of the code includes the 11002debug output trace mechanism and has a much larger code and data size. 11003Note 11004that these values will vary depending on the efficiency of the compiler 11005and 11006the compiler options used during generation. 11007 11008 Previous Release: 11009 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11010 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 11011 Current Release: 11012 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11013 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 11014 11015 110162) iASL Compiler/Disassembler: 11017 11018Implemented the new ACPI 3.0 resource template macros - DWordSpace, 11019ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 11020Includes support in the disassembler. 11021 11022Implemented support for the new (ACPI 3.0) parameter to the Register 11023macro, 11024AccessSize. 11025 11026Fixed a problem where the _HE resource name for the Interrupt macro was 11027referencing bit 0 instead of bit 1. 11028 11029Implemented check for maximum 255 interrupts in the Interrupt macro. 11030 11031Fixed a problem with the predefined resource descriptor names where 11032incorrect AML code was generated if the offset within the resource buffer 11033was 0 or 1. The optimizer shortened the AML code to a single byte opcode 11034but did not update the surrounding package lengths. 11035 11036Changes to the Dma macro: All channels within the channel list must be 11037in 11038the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 11039optional (default is BusMaster). 11040 11041Implemented check for maximum 7 data bytes for the VendorShort macro. 11042 11043The ReadWrite parameter is now optional for the Memory32 and similar 11044macros. 11045 11046---------------------------------------- 1104703 December 2004. Summary of changes for version 20041203: 11048 110491) ACPI CA Core Subsystem: 11050 11051The low-level field insertion/extraction code (exfldio) has been 11052completely 11053rewritten to eliminate unnecessary complexity, bugs, and boundary 11054conditions. 11055 11056Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 11057ToDecimalString 11058operators where the input operand could be inadvertently deleted if no 11059conversion was necessary (e.g., if the input to ToInteger was an Integer 11060object.) 11061 11062Fixed a problem with the ToDecimalString and ToHexString where an 11063incorrect 11064exception code was returned if the resulting string would be > 200 chars. 11065AE_STRING_LIMIT is now returned. 11066 11067Fixed a problem with the Concatenate operator where AE_OK was always 11068returned, even if the operation failed. 11069 11070Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 11071semaphores to be allocated. 11072 11073Code and Data Size: Current and previous core subsystem library sizes are 11074shown below. These are the code and data sizes for the acpica.lib 11075produced 11076by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11077any ACPI driver or OSPM code. The debug version of the code includes the 11078debug output trace mechanism and has a much larger code and data size. 11079Note 11080that these values will vary depending on the efficiency of the compiler 11081and 11082the compiler options used during generation. 11083 11084 Previous Release: 11085 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11086 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11087 Current Release: 11088 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11089 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 11090 11091 110922) iASL Compiler/Disassembler: 11093 11094Fixed typechecking for the ObjectType and SizeOf operators. Problem was 11095recently introduced in 20041119. 11096 11097Fixed a problem with the ToUUID macro where the upper nybble of each 11098buffer 11099byte was inadvertently set to zero. 11100 11101---------------------------------------- 1110219 November 2004. Summary of changes for version 20041119: 11103 111041) ACPI CA Core Subsystem: 11105 11106Fixed a problem in the internal ConvertToInteger routine where new 11107integers 11108were not truncated to 32 bits for 32-bit ACPI tables. This routine 11109converts 11110buffers and strings to integers. 11111 11112Implemented support to store a value to an Index() on a String object. 11113This 11114is an ACPI 2.0 feature that had not yet been implemented. 11115 11116Implemented new behavior for storing objects to individual package 11117elements 11118(via the Index() operator). The previous behavior was to invoke the 11119implicit 11120conversion rules if an object was already present at the index. The new 11121behavior is to simply delete any existing object and directly store the 11122new 11123object. Although the ACPI specification seems unclear on this subject, 11124other 11125ACPI implementations behave in this manner. (This is the root of the 11126AE_BAD_HEX_CONSTANT issue.) 11127 11128Modified the RSDP memory scan mechanism to support the extended checksum 11129for 11130ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 11131RSDP signature is found with a valid checksum. 11132 11133Code and Data Size: Current and previous core subsystem library sizes are 11134shown below. These are the code and data sizes for the acpica.lib 11135produced 11136by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11137any ACPI driver or OSPM code. The debug version of the code includes the 11138debug output trace mechanism and has a much larger code and data size. 11139Note 11140that these values will vary depending on the efficiency of the compiler 11141and 11142the compiler options used during generation. 11143 11144 Previous Release: 11145 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11146 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11147 Current Release: 11148 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11149 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11150 11151 111522) iASL Compiler/Disassembler: 11153 11154Fixed a missing semicolon in the aslcompiler.y file. 11155 11156---------------------------------------- 1115705 November 2004. Summary of changes for version 20041105: 11158 111591) ACPI CA Core Subsystem: 11160 11161Implemented support for FADT revision 2. This was an interim table 11162(between 11163ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 11164 11165Implemented optional support to allow uninitialized LocalX and ArgX 11166variables in a control method. The variables are initialized to an 11167Integer 11168object with a value of zero. This support is enabled by setting the 11169AcpiGbl_EnableInterpreterSlack flag to TRUE. 11170 11171Implemented support for Integer objects for the SizeOf operator. Either 111724 11173or 8 is returned, depending on the current integer size (32-bit or 64- 11174bit, 11175depending on the parent table revision). 11176 11177Fixed a problem in the implementation of the SizeOf and ObjectType 11178operators 11179where the operand was resolved to a value too early, causing incorrect 11180return values for some objects. 11181 11182Fixed some possible memory leaks during exceptional conditions. 11183 11184Code and Data Size: Current and previous core subsystem library sizes are 11185shown below. These are the code and data sizes for the acpica.lib 11186produced 11187by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11188any ACPI driver or OSPM code. The debug version of the code includes the 11189debug output trace mechanism and has a much larger code and data size. 11190Note 11191that these values will vary depending on the efficiency of the compiler 11192and 11193the compiler options used during generation. 11194 11195 Previous Release: 11196 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11197 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 11198 Current Release: 11199 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11200 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11201 11202 112032) iASL Compiler/Disassembler: 11204 11205Implemented support for all ACPI 3.0 reserved names and methods. 11206 11207Implemented all ACPI 3.0 grammar elements in the front-end, including 11208support for semicolons. 11209 11210Implemented the ACPI 3.0 Function() and ToUUID() macros 11211 11212Fixed a problem in the disassembler where a Scope() operator would not be 11213emitted properly if the target of the scope was in another table. 11214 11215---------------------------------------- 1121615 October 2004. Summary of changes for version 20041015: 11217 11218Note: ACPI CA is currently undergoing an in-depth and complete formal 11219evaluation to test/verify the following areas. Other suggestions are 11220welcome. This will result in an increase in the frequency of releases and 11221the number of bug fixes in the next few months. 11222 - Functional tests for all ASL/AML operators 11223 - All implicit/explicit type conversions 11224 - Bit fields and operation regions 11225 - 64-bit math support and 32-bit-only "truncated" math support 11226 - Exceptional conditions, both compiler and interpreter 11227 - Dynamic object deletion and memory leaks 11228 - ACPI 3.0 support when implemented 11229 - External interfaces to the ACPI subsystem 11230 11231 112321) ACPI CA Core Subsystem: 11233 11234Fixed two alignment issues on 64-bit platforms - within debug statements 11235in 11236AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 11237Address 11238field within the non-aligned ACPI generic address structure. 11239 11240Fixed a problem in the Increment and Decrement operators where incorrect 11241operand resolution could result in the inadvertent modification of the 11242original integer when the integer is passed into another method as an 11243argument and the arg is then incremented/decremented. 11244 11245Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 11246bit 11247BCD number were truncated during conversion. 11248 11249Fixed a problem in the ToDecimal operator where the length of the 11250resulting 11251string could be set incorrectly too long if the input operand was a 11252Buffer 11253object. 11254 11255Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 11256(0) 11257within a buffer would prematurely terminate a compare between buffer 11258objects. 11259 11260Added a check for string overflow (>200 characters as per the ACPI 11261specification) during the Concatenate operator with two string operands. 11262 11263Code and Data Size: Current and previous core subsystem library sizes are 11264shown below. These are the code and data sizes for the acpica.lib 11265produced 11266by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11267any ACPI driver or OSPM code. The debug version of the code includes the 11268debug output trace mechanism and has a much larger code and data size. 11269Note 11270that these values will vary depending on the efficiency of the compiler 11271and 11272the compiler options used during generation. 11273 11274 Previous Release: 11275 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11276 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 11277 Current Release: 11278 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11279 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 11280 11281 11282 112832) iASL Compiler/Disassembler: 11284 11285Allow the use of the ObjectType operator on uninitialized Locals and Args 11286(returns 0 as per the ACPI specification). 11287 11288Fixed a problem where the compiler would fault if there was a syntax 11289error 11290in the FieldName of all of the various CreateXXXField operators. 11291 11292Disallow the use of lower case letters within the EISAID macro, as per 11293the 11294ACPI specification. All EISAID strings must be of the form "UUUNNNN" 11295Where 11296U is an uppercase letter and N is a hex digit. 11297 11298 11299---------------------------------------- 1130006 October 2004. Summary of changes for version 20041006: 11301 113021) ACPI CA Core Subsystem: 11303 11304Implemented support for the ACPI 3.0 Timer operator. This ASL function 11305implements a 64-bit timer with 100 nanosecond granularity. 11306 11307Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 11308implement the ACPI 3.0 Timer operator. This allows the host OS to 11309implement 11310the timer with the best clock available. Also, it keeps the core 11311subsystem 11312out of the clock handling business, since the host OS (usually) performs 11313this function. 11314 11315Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 11316functions use a 64-bit address which is part of the packed ACPI Generic 11317Address Structure. Since the structure is non-aligned, the alignment 11318macros 11319are now used to extract the address to a local variable before use. 11320 11321Fixed a problem where the ToInteger operator assumed all input strings 11322were 11323hexadecimal. The operator now handles both decimal strings and hex 11324strings 11325(prefixed with "0x"). 11326 11327Fixed a problem where the string length in the string object created as a 11328result of the internal ConvertToString procedure could be incorrect. This 11329potentially affected all implicit conversions and also the 11330ToDecimalString 11331and ToHexString operators. 11332 11333Fixed two problems in the ToString operator. If the length parameter was 11334zero, an incorrect string object was created and the value of the input 11335length parameter was inadvertently changed from zero to Ones. 11336 11337Fixed a problem where the optional ResourceSource string in the 11338ExtendedIRQ 11339resource macro was ignored. 11340 11341Simplified the interfaces to the internal division functions, reducing 11342code 11343size and complexity. 11344 11345Code and Data Size: Current and previous core subsystem library sizes are 11346shown below. These are the code and data sizes for the acpica.lib 11347produced 11348by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11349any ACPI driver or OSPM code. The debug version of the code includes the 11350debug output trace mechanism and has a much larger code and data size. 11351Note 11352that these values will vary depending on the efficiency of the compiler 11353and 11354the compiler options used during generation. 11355 11356 Previous Release: 11357 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 11358 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 11359 Current Release: 11360 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11361 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 11362 11363 113642) iASL Compiler/Disassembler: 11365 11366Implemented support for the ACPI 3.0 Timer operator. 11367 11368Fixed a problem where the Default() operator was inadvertently ignored in 11369a 11370Switch/Case block. This was a problem in the translation of the Switch 11371statement to If...Else pairs. 11372 11373Added support to allow a standalone Return operator, with no parentheses 11374(or 11375operands). 11376 11377Fixed a problem with code generation for the ElseIf operator where the 11378translated Else...If parse tree was improperly constructed leading to the 11379loss of some code. 11380 11381---------------------------------------- 1138222 September 2004. Summary of changes for version 20040922: 11383 113841) ACPI CA Core Subsystem: 11385 11386Fixed a problem with the implementation of the LNot() operator where 11387"Ones" 11388was not returned for the TRUE case. Changed the code to return Ones 11389instead 11390of (!Arg) which was usually 1. This change affects iASL constant folding 11391for 11392this operator also. 11393 11394Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was 11395not 11396initialized properly -- Now zero the entire buffer in this case where the 11397buffer already exists. 11398 11399Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 11400Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 11401related code considerably. This will require changes/updates to all OS 11402interface layers (OSLs.) 11403 11404Implemented a new external interface, AcpiInstallExceptionHandler, to 11405allow 11406a system exception handler to be installed. This handler is invoked upon 11407any 11408run-time exception that occurs during control method execution. 11409 11410Added support for the DSDT in AcpiTbFindTable. This allows the 11411DataTableRegion() operator to access the local copy of the DSDT. 11412 11413Code and Data Size: Current and previous core subsystem library sizes are 11414shown below. These are the code and data sizes for the acpica.lib 11415produced 11416by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11417any ACPI driver or OSPM code. The debug version of the code includes the 11418debug output trace mechanism and has a much larger code and data size. 11419Note 11420that these values will vary depending on the efficiency of the compiler 11421and 11422the compiler options used during generation. 11423 11424 Previous Release: 11425 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 11426 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 11427 Current Release: 11428 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 11429 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 11430 11431 114322) iASL Compiler/Disassembler: 11433 11434Fixed a problem with constant folding and the LNot operator. LNot was 11435returning 1 in the TRUE case, not Ones as per the ACPI specification. 11436This 11437could result in the generation of an incorrect folded/reduced constant. 11438 11439End-Of-File is now allowed within a "//"-style comment. A parse error no 11440longer occurs if such a comment is at the very end of the input ASL 11441source 11442file. 11443 11444Implemented the "-r" option to override the Revision in the table header. 11445The initial use of this option will be to simplify the evaluation of the 11446AML 11447interpreter by allowing a single ASL source module to be compiled for 11448either 1144932-bit or 64-bit integers. 11450 11451 11452---------------------------------------- 1145327 August 2004. Summary of changes for version 20040827: 11454 114551) ACPI CA Core Subsystem: 11456 11457- Implemented support for implicit object conversion in the non-numeric 11458logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, 11459and 11460LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 11461the second operand is implicitly converted on the fly to match the type 11462of 11463the first operand. For example: 11464 11465 LEqual (Source1, Source2) 11466 11467Source1 and Source2 must each evaluate to an integer, a string, or a 11468buffer. 11469The data type of Source1 dictates the required type of Source2. Source2 11470is 11471implicitly converted if necessary to match the type of Source1. 11472 11473- Updated and corrected the behavior of the string conversion support. 11474The 11475rules concerning conversion of buffers to strings (according to the ACPI 11476specification) are as follows: 11477 11478ToDecimalString - explicit byte-wise conversion of buffer to string of 11479decimal values (0-255) separated by commas. ToHexString - explicit byte- 11480wise 11481conversion of buffer to string of hex values (0-FF) separated by commas. 11482ToString - explicit byte-wise conversion of buffer to string. Byte-by- 11483byte 11484copy with no transform except NULL terminated. Any other implicit buffer- 11485to- 11486string conversion - byte-wise conversion of buffer to string of hex 11487values 11488(0-FF) separated by spaces. 11489 11490- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 11491 11492- Fixed a problem in AcpiNsGetPathnameLength where the returned length 11493was 11494one byte too short in the case of a node in the root scope. This could 11495cause a fault during debug output. 11496 11497- Code and Data Size: Current and previous core subsystem library sizes 11498are 11499shown below. These are the code and data sizes for the acpica.lib 11500produced 11501by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11502any ACPI driver or OSPM code. The debug version of the code includes the 11503debug output trace mechanism and has a much larger code and data size. 11504Note 11505that these values will vary depending on the efficiency of the compiler 11506and 11507the compiler options used during generation. 11508 11509 Previous Release: 11510 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 11511 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 11512 Current Release: 11513 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 11514 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 11515 11516 115172) iASL Compiler/Disassembler: 11518 11519- Fixed a Linux generation error. 11520 11521 11522---------------------------------------- 1152316 August 2004. Summary of changes for version 20040816: 11524 115251) ACPI CA Core Subsystem: 11526 11527Designed and implemented support within the AML interpreter for the so- 11528called "implicit return". This support returns the result of the last 11529ASL 11530operation within a control method, in the absence of an explicit Return() 11531operator. A few machines depend on this behavior, even though it is not 11532explicitly supported by the ASL language. It is optional support that 11533can 11534be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 11535 11536Removed support for the PCI_Config address space from the internal low 11537level 11538hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 11539support was not used internally, and would not work correctly anyway 11540because 11541the PCI bus number and segment number were not supported. There are 11542separate interfaces for PCI configuration space access because of the 11543unique 11544interface. 11545 11546Code and Data Size: Current and previous core subsystem library sizes are 11547shown below. These are the code and data sizes for the acpica.lib 11548produced 11549by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11550any ACPI driver or OSPM code. The debug version of the code includes the 11551debug output trace mechanism and has a much larger code and data size. 11552Note 11553that these values will vary depending on the efficiency of the compiler 11554and 11555the compiler options used during generation. 11556 11557 Previous Release: 11558 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11559 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 11560 Current Release: 11561 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 11562 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 11563 11564 115652) iASL Compiler/Disassembler: 11566 11567Fixed a problem where constants in ASL expressions at the root level (not 11568within a control method) could be inadvertently truncated during code 11569generation. This problem was introduced in the 20040715 release. 11570 11571 11572---------------------------------------- 1157315 July 2004. Summary of changes for version 20040715: 11574 115751) ACPI CA Core Subsystem: 11576 11577Restructured the internal HW GPE interfaces to pass/track the current 11578state 11579of interrupts (enabled/disabled) in order to avoid possible deadlock and 11580increase flexibility of the interfaces. 11581 11582Implemented a "lexicographical compare" for String and Buffer objects 11583within 11584the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual - 11585- 11586as per further clarification to the ACPI specification. Behavior is 11587similar 11588to C library "strcmp". 11589 11590Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 11591external function. In the 32-bit non-debug case, the stack use has been 11592reduced from 168 bytes to 32 bytes. 11593 11594Deployed a new run-time configuration flag, 11595AcpiGbl_EnableInterpreterSlack, 11596whose purpose is to allow the AML interpreter to forgive certain bad AML 11597constructs. Default setting is FALSE. 11598 11599Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 11600IO 11601support code. If enabled, it allows field access to go beyond the end of 11602a 11603region definition if the field is within the region length rounded up to 11604the 11605next access width boundary (a common coding error.) 11606 11607Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 11608ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 11609these 11610symbols are lowercased by the latest version of the AcpiSrc tool. 11611 11612The prototypes for the PCI interfaces in acpiosxf.h have been updated to 11613rename "Register" to simply "Reg" to prevent certain compilers from 11614complaining. 11615 11616Code and Data Size: Current and previous core subsystem library sizes are 11617shown below. These are the code and data sizes for the acpica.lib 11618produced 11619by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11620any ACPI driver or OSPM code. The debug version of the code includes the 11621debug output trace mechanism and has a much larger code and data size. 11622Note 11623that these values will vary depending on the efficiency of the compiler 11624and 11625the compiler options used during generation. 11626 11627 Previous Release: 11628 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11629 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 11630 Current Release: 11631 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11632 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 11633 11634 116352) iASL Compiler/Disassembler: 11636 11637Implemented full support for Package objects within the Case() operator. 11638Note: The Break() operator is currently not supported within Case blocks 11639(TermLists) as there is some question about backward compatibility with 11640ACPI 116411.0 interpreters. 11642 11643 11644Fixed a problem where complex terms were not supported properly within 11645the 11646Switch() operator. 11647 11648Eliminated extraneous warning for compiler-emitted reserved names of the 11649form "_T_x". (Used in Switch/Case operators.) 11650 11651Eliminated optimization messages for "_T_x" objects and small constants 11652within the DefinitionBlock operator. 11653 11654 11655---------------------------------------- 1165615 June 2004. Summary of changes for version 20040615: 11657 116581) ACPI CA Core Subsystem: 11659 11660Implemented support for Buffer and String objects (as per ACPI 2.0) for 11661the 11662following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 11663LLessEqual. 11664 11665All directory names in the entire source package are lower case, as they 11666were in earlier releases. 11667 11668Implemented "Disassemble" command in the AML debugger that will 11669disassemble 11670a single control method. 11671 11672Code and Data Size: Current and previous core subsystem library sizes are 11673shown below. These are the code and data sizes for the acpica.lib 11674produced 11675by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11676any ACPI driver or OSPM code. The debug version of the code includes the 11677debug output trace mechanism and has a much larger code and data size. 11678Note 11679that these values will vary depending on the efficiency of the compiler 11680and 11681the compiler options used during generation. 11682 11683 Previous Release: 11684 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 11685 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 11686 11687 Current Release: 11688 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11689 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 11690 11691 116922) iASL Compiler/Disassembler: 11693 11694Implemented support for Buffer and String objects (as per ACPI 2.0) for 11695the 11696following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 11697LLessEqual. 11698 11699All directory names in the entire source package are lower case, as they 11700were in earlier releases. 11701 11702Fixed a fault when using the -g or -d<nofilename> options if the FADT was 11703not found. 11704 11705Fixed an issue with the Windows version of the compiler where later 11706versions 11707of Windows place the FADT in the registry under the name "FADT" and not 11708"FACP" as earlier versions did. This applies when using the -g or - 11709d<nofilename> options. The compiler now looks for both strings as 11710necessary. 11711 11712Fixed a problem with compiler namepath optimization where a namepath 11713within 11714the Scope() operator could not be optimized if the namepath was a subpath 11715of 11716the current scope path. 11717 11718---------------------------------------- 1171927 May 2004. Summary of changes for version 20040527: 11720 117211) ACPI CA Core Subsystem: 11722 11723Completed a new design and implementation for EBDA (Extended BIOS Data 11724Area) 11725support in the RSDP scan code. The original code improperly scanned for 11726the 11727EBDA by simply scanning from memory location 0 to 0x400. The correct 11728method 11729is to first obtain the EBDA pointer from within the BIOS data area, then 11730scan 1K of memory starting at the EBDA pointer. There appear to be few 11731if 11732any machines that place the RSDP in the EBDA, however. 11733 11734Integrated a fix for a possible fault during evaluation of BufferField 11735arguments. Obsolete code that was causing the problem was removed. 11736 11737Found and fixed a problem in the Field Support Code where data could be 11738corrupted on a bit field read that starts on an aligned boundary but does 11739not end on an aligned boundary. Merged the read/write "datum length" 11740calculation code into a common procedure. 11741 11742Rolled in a couple of changes to the FreeBSD-specific header. 11743 11744 11745Code and Data Size: Current and previous core subsystem library sizes are 11746shown below. These are the code and data sizes for the acpica.lib 11747produced 11748by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11749any ACPI driver or OSPM code. The debug version of the code includes the 11750debug output trace mechanism and has a much larger code and data size. 11751Note 11752that these values will vary depending on the efficiency of the compiler 11753and 11754the compiler options used during generation. 11755 11756 Previous Release: 11757 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 11758 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 11759 Current Release: 11760 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 11761 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 11762 11763 117642) iASL Compiler/Disassembler: 11765 11766Fixed a generation warning produced by some overly-verbose compilers for 11767a 1176864-bit constant. 11769 11770---------------------------------------- 1177114 May 2004. Summary of changes for version 20040514: 11772 117731) ACPI CA Core Subsystem: 11774 11775Fixed a problem where hardware GPE enable bits sometimes not set properly 11776during and after GPE method execution. Result of 04/27 changes. 11777 11778Removed extra "clear all GPEs" when sleeping/waking. 11779 11780Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 11781AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 11782to 11783the new AcpiEv* calls as appropriate. 11784 11785ACPI_OS_NAME was removed from the OS-specific headers. The default name 11786is 11787now "Microsoft Windows NT" for maximum compatibility. However this can 11788be 11789changed by modifying the acconfig.h file. 11790 11791Allow a single invocation of AcpiInstallNotifyHandler for a handler that 11792traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 11793 11794Run _INI methods on ThermalZone objects. This is against the ACPI 11795specification, but there is apparently ASL code in the field that has 11796these 11797_INI methods, and apparently "other" AML interpreters execute them. 11798 11799Performed a full 16/32/64 bit lint that resulted in some small changes. 11800 11801Added a sleep simulation command to the AML debugger to test sleep code. 11802 11803Code and Data Size: Current and previous core subsystem library sizes are 11804shown below. These are the code and data sizes for the acpica.lib 11805produced 11806by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11807any ACPI driver or OSPM code. The debug version of the code includes the 11808debug output trace mechanism and has a much larger code and data size. 11809Note 11810that these values will vary depending on the efficiency of the compiler 11811and 11812the compiler options used during generation. 11813 11814 Previous Release: 11815 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 11816 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 11817 Current Release: 11818 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 11819 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 11820 11821---------------------------------------- 1182227 April 2004. Summary of changes for version 20040427: 11823 118241) ACPI CA Core Subsystem: 11825 11826Completed a major overhaul of the GPE handling within ACPI CA. There are 11827now three types of GPEs: wake-only, runtime-only, and combination 11828wake/run. 11829The only GPEs allowed to be combination wake/run are for button-style 11830devices such as a control-method power button, control-method sleep 11831button, 11832or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 11833not 11834referenced by any _PRW methods are marked for "runtime" and hardware 11835enabled. Any GPE that is referenced by a _PRW method is marked for 11836"wake" 11837(and disabled at runtime). However, at sleep time, only those GPEs that 11838have been specifically enabled for wake via the AcpiEnableGpe interface 11839will 11840actually be hardware enabled. 11841 11842A new external interface has been added, AcpiSetGpeType(), that is meant 11843to 11844be used by device drivers to force a GPE to a particular type. It will 11845be 11846especially useful for the drivers for the button devices mentioned above. 11847 11848Completed restructuring of the ACPI CA initialization sequence so that 11849default operation region handlers are installed before GPEs are 11850initialized 11851and the _PRW methods are executed. This will prevent errors when the 11852_PRW 11853methods attempt to access system memory or I/O space. 11854 11855GPE enable/disable no longer reads the GPE enable register. We now keep 11856the 11857enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 11858thus no longer depend on the hardware to maintain these bits. 11859 11860Always clear the wake status and fixed/GPE status bits before sleep, even 11861for state S5. 11862 11863Improved the AML debugger output for displaying the GPE blocks and their 11864current status. 11865 11866Added new strings for the _OSI method, of the form "Windows 2001 SPx" 11867where 11868x = 0,1,2,3,4. 11869 11870Fixed a problem where the physical address was incorrectly calculated 11871when 11872the Load() operator was used to directly load from an Operation Region 11873(vs. 11874loading from a Field object.) Also added check for minimum table length 11875for 11876this case. 11877 11878Fix for multiple mutex acquisition. Restore original thread SyncLevel on 11879mutex release. 11880 11881Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 11882consistency with the other fields returned. 11883 11884Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 11885structure for each GPE in the system, so the size of this structure is 11886important. 11887 11888CPU stack requirement reduction: Cleaned up the method execution and 11889object 11890evaluation paths so that now a parameter structure is passed, instead of 11891copying the various method parameters over and over again. 11892 11893In evregion.c: Correctly exit and reenter the interpreter region if and 11894only if dispatching an operation region request to a user-installed 11895handler. 11896Do not exit/reenter when dispatching to a default handler (e.g., default 11897system memory or I/O handlers) 11898 11899 11900Notes for updating drivers for the new GPE support. The following 11901changes 11902must be made to ACPI-related device drivers that are attached to one or 11903more 11904GPEs: (This information will be added to the ACPI CA Programmer 11905Reference.) 11906 119071) AcpiInstallGpeHandler no longer automatically enables the GPE, you 11908must 11909explicitly call AcpiEnableGpe. 119102) There is a new interface called AcpiSetGpeType. This should be called 11911before enabling the GPE. Also, this interface will automatically disable 11912the GPE if it is currently enabled. 119133) AcpiEnableGpe no longer supports a GPE type flag. 11914 11915Specific drivers that must be changed: 119161) EC driver: 11917 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 11918AeGpeHandler, NULL); 11919 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 11920 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 11921 119222) Button Drivers (Power, Lid, Sleep): 11923Run _PRW method under parent device 11924If _PRW exists: /* This is a control-method button */ 11925 Extract GPE number and possibly GpeDevice 11926 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 11927 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 11928 11929For all other devices that have _PRWs, we automatically set the GPE type 11930to 11931ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. 11932This 11933must be done on a selective basis, usually requiring some kind of user 11934app 11935to allow the user to pick the wake devices. 11936 11937 11938Code and Data Size: Current and previous core subsystem library sizes are 11939shown below. These are the code and data sizes for the acpica.lib 11940produced 11941by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11942any ACPI driver or OSPM code. The debug version of the code includes the 11943debug output trace mechanism and has a much larger code and data size. 11944Note 11945that these values will vary depending on the efficiency of the compiler 11946and 11947the compiler options used during generation. 11948 11949 Previous Release: 11950 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 11951 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 11952 Current Release: 11953 11954 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 11955 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 11956 11957 11958 11959---------------------------------------- 1196002 April 2004. Summary of changes for version 20040402: 11961 119621) ACPI CA Core Subsystem: 11963 11964Fixed an interpreter problem where an indirect store through an ArgX 11965parameter was incorrectly applying the "implicit conversion rules" during 11966the store. From the ACPI specification: "If the target is a method local 11967or 11968argument (LocalX or ArgX), no conversion is performed and the result is 11969stored directly to the target". The new behavior is to disable implicit 11970conversion during ALL stores to an ArgX. 11971 11972Changed the behavior of the _PRW method scan to ignore any and all errors 11973returned by a given _PRW. This prevents the scan from aborting from the 11974failure of any single _PRW. 11975 11976Moved the runtime configuration parameters from the global init procedure 11977to 11978static variables in acglobal.h. This will allow the host to override the 11979default values easily. 11980 11981Code and Data Size: Current and previous core subsystem library sizes are 11982shown below. These are the code and data sizes for the acpica.lib 11983produced 11984by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11985any ACPI driver or OSPM code. The debug version of the code includes the 11986debug output trace mechanism and has a much larger code and data size. 11987Note 11988that these values will vary depending on the efficiency of the compiler 11989and 11990the compiler options used during generation. 11991 11992 Previous Release: 11993 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 11994 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 11995 Current Release: 11996 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 11997 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 11998 11999 120002) iASL Compiler/Disassembler: 12001 12002iASL now fully disassembles SSDTs. However, External() statements are 12003not 12004generated automatically for unresolved symbols at this time. This is a 12005planned feature for future implementation. 12006 12007Fixed a scoping problem in the disassembler that occurs when the type of 12008the 12009target of a Scope() operator is overridden. This problem caused an 12010incorrectly nested internal namespace to be constructed. 12011 12012Any warnings or errors that are emitted during disassembly are now 12013commented 12014out automatically so that the resulting file can be recompiled without 12015any 12016hand editing. 12017 12018---------------------------------------- 1201926 March 2004. Summary of changes for version 20040326: 12020 120211) ACPI CA Core Subsystem: 12022 12023Implemented support for "wake" GPEs via interaction between GPEs and the 12024_PRW methods. Every GPE that is pointed to by one or more _PRWs is 12025identified as a WAKE GPE and by default will no longer be enabled at 12026runtime. Previously, we were blindly enabling all GPEs with a 12027corresponding 12028_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 12029We 12030believe this has been the cause of thousands of "spurious" GPEs on some 12031systems. 12032 12033This new GPE behavior is can be reverted to the original behavior (enable 12034ALL GPEs at runtime) via a runtime flag. 12035 12036Fixed a problem where aliased control methods could not access objects 12037properly. The proper scope within the namespace was not initialized 12038(transferred to the target of the aliased method) before executing the 12039target method. 12040 12041Fixed a potential race condition on internal object deletion on the 12042return 12043object in AcpiEvaluateObject. 12044 12045Integrated a fix for resource descriptors where both _MEM and _MTP were 12046being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 12047wide, 0x0F instead of 0x03.) 12048 12049Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, 12050preventing 12051a 12052fault in some cases. 12053 12054Updated Notify() values for debug statements in evmisc.c 12055 12056Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 12057 12058Code and Data Size: Current and previous core subsystem library sizes are 12059shown below. These are the code and data sizes for the acpica.lib 12060produced 12061by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12062any ACPI driver or OSPM code. The debug version of the code includes the 12063debug output trace mechanism and has a much larger code and data size. 12064Note 12065that these values will vary depending on the efficiency of the compiler 12066and 12067the compiler options used during generation. 12068 12069 Previous Release: 12070 12071 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 12072 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 12073 Current Release: 12074 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 12075 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 12076 12077---------------------------------------- 1207811 March 2004. Summary of changes for version 20040311: 12079 120801) ACPI CA Core Subsystem: 12081 12082Fixed a problem where errors occurring during the parse phase of control 12083method execution did not abort cleanly. For example, objects created and 12084installed in the namespace were not deleted. This caused all subsequent 12085invocations of the method to return the AE_ALREADY_EXISTS exception. 12086 12087Implemented a mechanism to force a control method to "Serialized" 12088execution 12089if the method attempts to create namespace objects. (The root of the 12090AE_ALREADY_EXISTS problem.) 12091 12092Implemented support for the predefined _OSI "internal" control method. 12093Initial supported strings are "Linux", "Windows 2000", "Windows 2001", 12094and 12095"Windows 2001.1", and can be easily upgraded for new strings as 12096necessary. 12097This feature will allow "other" operating systems to execute the fully 12098tested, "Windows" code path through the ASL code 12099 12100Global Lock Support: Now allows multiple acquires and releases with any 12101internal thread. Removed concept of "owning thread" for this special 12102mutex. 12103 12104Fixed two functions that were inappropriately declaring large objects on 12105the 12106CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 12107during 12108method execution considerably. 12109 12110Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 12111S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 12112 12113Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 12114defined on the machine. 12115 12116Implemented two runtime options: One to force all control method 12117execution 12118to "Serialized" to mimic Windows behavior, another to disable _OSI 12119support 12120if it causes problems on a given machine. 12121 12122Code and Data Size: Current and previous core subsystem library sizes are 12123shown below. These are the code and data sizes for the acpica.lib 12124produced 12125by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12126any ACPI driver or OSPM code. The debug version of the code includes the 12127debug output trace mechanism and has a much larger code and data size. 12128Note 12129that these values will vary depending on the efficiency of the compiler 12130and 12131the compiler options used during generation. 12132 12133 Previous Release: 12134 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 12135 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 12136 Current Release: 12137 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 12138 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 12139 121402) iASL Compiler/Disassembler: 12141 12142Fixed an array size problem for FreeBSD that would cause the compiler to 12143fault. 12144 12145---------------------------------------- 1214620 February 2004. Summary of changes for version 20040220: 12147 12148 121491) ACPI CA Core Subsystem: 12150 12151Implemented execution of _SxD methods for Device objects in the 12152GetObjectInfo interface. 12153 12154Fixed calls to _SST method to pass the correct arguments. 12155 12156Added a call to _SST on wake to restore to "working" state. 12157 12158Check for End-Of-Buffer failure case in the WalkResources interface. 12159 12160Integrated fix for 64-bit alignment issue in acglobal.h by moving two 12161structures to the beginning of the file. 12162 12163After wake, clear GPE status register(s) before enabling GPEs. 12164 12165After wake, clear/enable power button. (Perhaps we should clear/enable 12166all 12167fixed events upon wake.) 12168 12169Fixed a couple of possible memory leaks in the Namespace manager. 12170 12171Integrated latest acnetbsd.h file. 12172 12173---------------------------------------- 1217411 February 2004. Summary of changes for version 20040211: 12175 12176 121771) ACPI CA Core Subsystem: 12178 12179Completed investigation and implementation of the call-by-reference 12180mechanism for control method arguments. 12181 12182Fixed a problem where a store of an object into an indexed package could 12183fail if the store occurs within a different method than the method that 12184created the package. 12185 12186Fixed a problem where the ToDecimal operator could return incorrect 12187results. 12188 12189Fixed a problem where the CopyObject operator could fail on some of the 12190more 12191obscure objects (e.g., Reference objects.) 12192 12193Improved the output of the Debug object to display buffer, package, and 12194index objects. 12195 12196Fixed a problem where constructs of the form "RefOf (ArgX)" did not 12197return 12198the expected result. 12199 12200Added permanent ACPI_REPORT_ERROR macros for all instances of the 12201ACPI_AML_INTERNAL exception. 12202 12203Integrated latest version of acfreebsd.h 12204 12205---------------------------------------- 1220616 January 2004. Summary of changes for version 20040116: 12207 12208The purpose of this release is primarily to update the copyright years in 12209each module, thus causing a huge number of diffs. There are a few small 12210functional changes, however. 12211 122121) ACPI CA Core Subsystem: 12213 12214Improved error messages when there is a problem finding one or more of 12215the 12216required base ACPI tables 12217 12218Reintroduced the definition of APIC_HEADER in actbl.h 12219 12220Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 12221 12222Removed extraneous reference to NewObj in dsmthdat.c 12223 122242) iASL compiler 12225 12226Fixed a problem introduced in December that disabled the correct 12227disassembly 12228of Resource Templates 12229 12230 12231---------------------------------------- 1223203 December 2003. Summary of changes for version 20031203: 12233 122341) ACPI CA Core Subsystem: 12235 12236Changed the initialization of Operation Regions during subsystem 12237init to perform two entire walks of the ACPI namespace; The first 12238to initialize the regions themselves, the second to execute the 12239_REG methods. This fixed some interdependencies across _REG 12240methods found on some machines. 12241 12242Fixed a problem where a Store(Local0, Local1) could simply update 12243the object reference count, and not create a new copy of the 12244object if the Local1 is uninitialized. 12245 12246Implemented support for the _SST reserved method during sleep 12247transitions. 12248 12249Implemented support to clear the SLP_TYP and SLP_EN bits when 12250waking up, this is apparently required by some machines. 12251 12252When sleeping, clear the wake status only if SleepState is not S5. 12253 12254Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 12255pointer arithmetic advanced a string pointer too far. 12256 12257Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 12258could be returned if the requested table has not been loaded. 12259 12260Within the support for IRQ resources, restructured the handling of 12261the active and edge/level bits. 12262 12263Fixed a few problems in AcpiPsxExecute() where memory could be 12264leaked under certain error conditions. 12265 12266Improved error messages for the cases where the ACPI mode could 12267not be entered. 12268 12269Code and Data Size: Current and previous core subsystem library 12270sizes are shown below. These are the code and data sizes for the 12271acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12272these values do not include any ACPI driver or OSPM code. The 12273debug version of the code includes the debug output trace 12274mechanism and has a much larger code and data size. Note that 12275these values will vary depending on the efficiency of the compiler 12276and the compiler options used during generation. 12277 12278 Previous Release (20031029): 12279 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 12280 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 12281 Current Release: 12282 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 12283 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 12284 122852) iASL Compiler/Disassembler: 12286 12287Implemented a fix for the iASL disassembler where a bad index was 12288generated. This was most noticeable on 64-bit platforms 12289 12290 12291---------------------------------------- 1229229 October 2003. Summary of changes for version 20031029: 12293 122941) ACPI CA Core Subsystem: 12295 12296 12297Fixed a problem where a level-triggered GPE with an associated 12298_Lxx control method was incorrectly cleared twice. 12299 12300Fixed a problem with the Field support code where an access can 12301occur beyond the end-of-region if the field is non-aligned but 12302extends to the very end of the parent region (resulted in an 12303AE_AML_REGION_LIMIT exception.) 12304 12305Fixed a problem with ACPI Fixed Events where an RT Clock handler 12306would not get invoked on an RTC event. The RTC event bitmasks for 12307the PM1 registers were not being initialized properly. 12308 12309Implemented support for executing _STA and _INI methods for 12310Processor objects. Although this is currently not part of the 12311ACPI specification, there is existing ASL code that depends on the 12312init-time execution of these methods. 12313 12314Implemented and deployed a GetDescriptorName function to decode 12315the various types of internal descriptors. Guards against null 12316descriptors during debug output also. 12317 12318Implemented and deployed a GetNodeName function to extract the 4- 12319character namespace node name. This function simplifies the debug 12320and error output, as well as guarding against null pointers during 12321output. 12322 12323Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 12324simplify the debug and error output of 64-bit integers. This 12325macro replaces the HIDWORD and LODWORD macros for dumping these 12326integers. 12327 12328Updated the implementation of the Stall() operator to only call 12329AcpiOsStall(), and also return an error if the operand is larger 12330than 255. This preserves the required behavior of not 12331relinquishing the processor, as would happen if AcpiOsSleep() was 12332called for "long stalls". 12333 12334Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 12335initialized are now treated as NOOPs. 12336 12337Cleaned up a handful of warnings during 64-bit generation. 12338 12339Fixed a reported error where and incorrect GPE number was passed 12340to the GPE dispatch handler. This value is only used for error 12341output, however. Used this opportunity to clean up and streamline 12342the GPE dispatch code. 12343 12344Code and Data Size: Current and previous core subsystem library 12345sizes are shown below. These are the code and data sizes for the 12346acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12347these values do not include any ACPI driver or OSPM code. The 12348 12349debug version of the code includes the debug output trace 12350mechanism and has a much larger code and data size. Note that 12351these values will vary depending on the efficiency of the compiler 12352and the compiler options used during generation. 12353 12354 Previous Release (20031002): 12355 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 12356 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 12357 Current Release: 12358 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 12359 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 12360 12361 123622) iASL Compiler/Disassembler: 12363 12364Updated the iASL compiler to return an error if the operand to the 12365Stall() operator is larger than 255. 12366 12367 12368---------------------------------------- 1236902 October 2003. Summary of changes for version 20031002: 12370 12371 123721) ACPI CA Core Subsystem: 12373 12374Fixed a problem with Index Fields where the index was not 12375incremented for fields that require multiple writes to the 12376index/data registers (Fields that are wider than the data 12377register.) 12378 12379Fixed a problem with all Field objects where a write could go 12380beyond the end-of-field if the field was larger than the access 12381granularity and therefore required multiple writes to complete the 12382request. An extra write beyond the end of the field could happen 12383inadvertently. 12384 12385Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 12386would incorrectly be returned if the width of the Data Register 12387was larger than the specified field access width. 12388 12389Completed fixes for LoadTable() and Unload() and verified their 12390operation. Implemented full support for the "DdbHandle" object 12391throughout the ACPI CA subsystem. 12392 12393Implemented full support for the MADT and ECDT tables in the ACPI 12394CA header files. Even though these tables are not directly 12395consumed by ACPI CA, the header definitions are useful for ACPI 12396device drivers. 12397 12398Integrated resource descriptor fixes posted to the Linux ACPI 12399list. This included checks for minimum descriptor length, and 12400support for trailing NULL strings within descriptors that have 12401optional string elements. 12402 12403Code and Data Size: Current and previous core subsystem library 12404sizes are shown below. These are the code and data sizes for the 12405acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12406these values do not include any ACPI driver or OSPM code. The 12407debug version of the code includes the debug output trace 12408mechanism and has a much larger code and data size. Note that 12409these values will vary depending on the efficiency of the compiler 12410and the compiler options used during generation. 12411 12412 Previous Release (20030918): 12413 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 12414 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 12415 Current Release: 12416 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 12417 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 12418 12419 124202) iASL Compiler: 12421 12422Implemented detection of non-ASCII characters within the input 12423source ASL file. This catches attempts to compile binary (AML) 12424files early in the compile, with an informative error message. 12425 12426Fixed a problem where the disassembler would fault if the output 12427filename could not be generated or if the output file could not be 12428opened. 12429 12430---------------------------------------- 1243118 September 2003. Summary of changes for version 20030918: 12432 12433 124341) ACPI CA Core Subsystem: 12435 12436Found and fixed a longstanding problem with the late execution of 12437the various deferred AML opcodes (such as Operation Regions, 12438Buffer Fields, Buffers, and Packages). If the name string 12439specified for the name of the new object placed the object in a 12440scope other than the current scope, the initialization/execution 12441of the opcode failed. The solution to this problem was to 12442implement a mechanism where the late execution of such opcodes 12443does not attempt to lookup/create the name a second time in an 12444incorrect scope. This fixes the "region size computed 12445incorrectly" problem. 12446 12447Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 12448Global Lock AE_BAD_PARAMETER error. 12449 12450Fixed several 64-bit issues with prototypes, casting and data 12451types. 12452 12453Removed duplicate prototype from acdisasm.h 12454 12455Fixed an issue involving EC Operation Region Detach (Shaohua Li) 12456 12457Code and Data Size: Current and previous core subsystem library 12458sizes are shown below. These are the code and data sizes for the 12459acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12460these values do not include any ACPI driver or OSPM code. The 12461debug version of the code includes the debug output trace 12462mechanism and has a much larger code and data size. Note that 12463these values will vary depending on the efficiency of the compiler 12464and the compiler options used during generation. 12465 12466 Previous Release: 12467 12468 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 12469 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 12470 Current Release: 12471 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 12472 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 12473 12474 124752) Linux: 12476 12477Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 12478correct sleep time in seconds. 12479 12480---------------------------------------- 1248114 July 2003. Summary of changes for version 20030619: 12482 124831) ACPI CA Core Subsystem: 12484 12485Parse SSDTs in order discovered, as opposed to reverse order 12486(Hrvoje Habjanic) 12487 12488Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 12489Klausner, 12490 Nate Lawson) 12491 12492 124932) Linux: 12494 12495Dynamically allocate SDT list (suggested by Andi Kleen) 12496 12497proc function return value cleanups (Andi Kleen) 12498 12499Correctly handle NMI watchdog during long stalls (Andrew Morton) 12500 12501Make it so acpismp=force works (reported by Andrew Morton) 12502 12503 12504---------------------------------------- 1250519 June 2003. Summary of changes for version 20030619: 12506 125071) ACPI CA Core Subsystem: 12508 12509Fix To/FromBCD, eliminating the need for an arch-specific #define. 12510 12511Do not acquire a semaphore in the S5 shutdown path. 12512 12513Fix ex_digits_needed for 0. (Takayoshi Kochi) 12514 12515Fix sleep/stall code reversal. (Andi Kleen) 12516 12517Revert a change having to do with control method calling 12518semantics. 12519 125202) Linux: 12521 12522acpiphp update (Takayoshi Kochi) 12523 12524Export acpi_disabled for sonypi (Stelian Pop) 12525 12526Mention acpismp=force in config help 12527 12528Re-add acpitable.c and acpismp=force. This improves backwards 12529 12530compatibility and also cleans up the code to a significant degree. 12531 12532Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 12533 12534---------------------------------------- 1253522 May 2003. Summary of changes for version 20030522: 12536 125371) ACPI CA Core Subsystem: 12538 12539Found and fixed a reported problem where an AE_NOT_FOUND error 12540occurred occasionally during _BST evaluation. This turned out to 12541be an Owner ID allocation issue where a called method did not get 12542a new ID assigned to it. Eventually, (after 64k calls), the Owner 12543ID UINT16 would wraparound so that the ID would be the same as the 12544caller's and the called method would delete the caller's 12545namespace. 12546 12547Implemented extended error reporting for control methods that are 12548aborted due to a run-time exception. Output includes the exact 12549AML instruction that caused the method abort, a dump of the method 12550locals and arguments at the time of the abort, and a trace of all 12551nested control method calls. 12552 12553Modified the interpreter to allow the creation of buffers of zero 12554length from the AML code. Implemented new code to ensure that no 12555attempt is made to actually allocate a memory buffer (of length 12556zero) - instead, a simple buffer object with a NULL buffer pointer 12557and length zero is created. A warning is no longer issued when 12558the AML attempts to create a zero-length buffer. 12559 12560Implemented a workaround for the "leading asterisk issue" in 12561_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 12562asterisk is automatically removed if present in any HID, UID, or 12563CID strings. The iASL compiler will still flag this asterisk as 12564an error, however. 12565 12566Implemented full support for _CID methods that return a package of 12567multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 12568now additionally returns a device _CID list if present. This 12569required a change to the external interface in order to pass an 12570ACPI_BUFFER object as a parameter since the _CID list is of 12571variable length. 12572 12573Fixed a problem with the new AE_SAME_HANDLER exception where 12574handler initialization code did not know about this exception. 12575 12576Code and Data Size: Current and previous core subsystem library 12577sizes are shown below. These are the code and data sizes for the 12578acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12579these values do not include any ACPI driver or OSPM code. The 12580debug version of the code includes the debug output trace 12581mechanism and has a much larger code and data size. Note that 12582these values will vary depending on the efficiency of the compiler 12583and the compiler options used during generation. 12584 12585 Previous Release (20030509): 12586 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 12587 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 12588 Current Release: 12589 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 12590 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 12591 12592 125932) Linux: 12594 12595Fixed a bug in which we would reinitialize the ACPI interrupt 12596after it was already working, thus disabling all ACPI and the IRQs 12597for any other device sharing the interrupt. (Thanks to Stian 12598Jordet) 12599 12600Toshiba driver update (John Belmonte) 12601 12602Return only 0 or 1 for our interrupt handler status (Andrew 12603Morton) 12604 12605 126063) iASL Compiler: 12607 12608Fixed a reported problem where multiple (nested) ElseIf() 12609statements were not handled correctly by the compiler, resulting 12610in incorrect warnings and incorrect AML code. This was a problem 12611in both the ASL parser and the code generator. 12612 12613 126144) Documentation: 12615 12616Added changes to existing interfaces, new exception codes, and new 12617text concerning reference count object management versus garbage 12618collection. 12619 12620---------------------------------------- 1262109 May 2003. Summary of changes for version 20030509. 12622 12623 126241) ACPI CA Core Subsystem: 12625 12626Changed the subsystem initialization sequence to hold off 12627installation of address space handlers until the hardware has been 12628initialized and the system has entered ACPI mode. This is because 12629the installation of space handlers can cause _REG methods to be 12630run. Previously, the _REG methods could potentially be run before 12631ACPI mode was enabled. 12632 12633Fixed some memory leak issues related to address space handler and 12634notify handler installation. There were some problems with the 12635reference count mechanism caused by the fact that the handler 12636objects are shared across several namespace objects. 12637 12638Fixed a reported problem where reference counts within the 12639namespace were not properly updated when named objects created by 12640method execution were deleted. 12641 12642Fixed a reported problem where multiple SSDTs caused a deletion 12643issue during subsystem termination. Restructured the table data 12644structures to simplify the linked lists and the related code. 12645 12646Fixed a problem where the table ID associated with secondary 12647tables (SSDTs) was not being propagated into the namespace objects 12648created by those tables. This would only present a problem for 12649tables that are unloaded at run-time, however. 12650 12651Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 12652type as the length parameter (instead of UINT32). 12653 12654Solved a long-standing problem where an ALREADY_EXISTS error 12655appears on various systems. This problem could happen when there 12656are multiple PCI_Config operation regions under a single PCI root 12657bus. This doesn't happen very frequently, but there are some 12658systems that do this in the ASL. 12659 12660Fixed a reported problem where the internal DeleteNode function 12661was incorrectly handling the case where a namespace node was the 12662first in the parent's child list, and had additional peers (not 12663the only child, but first in the list of children.) 12664 12665Code and Data Size: Current core subsystem library sizes are shown 12666below. These are the code and data sizes for the acpica.lib 12667produced by the Microsoft Visual C++ 6.0 compiler, and these 12668values do not include any ACPI driver or OSPM code. The debug 12669version of the code includes the debug output trace mechanism and 12670has a much larger code and data size. Note that these values will 12671vary depending on the efficiency of the compiler and the compiler 12672options used during generation. 12673 12674 Previous Release 12675 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 12676 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 12677 Current Release: 12678 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 12679 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 12680 12681 126822) Linux: 12683 12684Allow ":" in OS override string (Ducrot Bruno) 12685 12686Kobject fix (Greg KH) 12687 12688 126893 iASL Compiler/Disassembler: 12690 12691Fixed a problem in the generation of the C source code files (AML 12692is emitted in C source statements for BIOS inclusion) where the 12693Ascii dump that appears within a C comment at the end of each line 12694could cause a compile time error if the AML sequence happens to 12695have an open comment or close comment sequence embedded. 12696 12697 12698---------------------------------------- 1269924 April 2003. Summary of changes for version 20030424. 12700 12701 127021) ACPI CA Core Subsystem: 12703 12704Support for big-endian systems has been implemented. Most of the 12705support has been invisibly added behind big-endian versions of the 12706ACPI_MOVE_* macros. 12707 12708Fixed a problem in AcpiHwDisableGpeBlock() and 12709AcpiHwClearGpeBlock() where an incorrect offset was passed to the 12710low level hardware write routine. The offset parameter was 12711actually eliminated from the low level read/write routines because 12712they had become obsolete. 12713 12714Fixed a problem where a handler object was deleted twice during 12715the removal of a fixed event handler. 12716 12717 127182) Linux: 12719 12720A fix for SMP systems with link devices was contributed by 12721 12722Compaq's Dan Zink. 12723 12724(2.5) Return whether we handled the interrupt in our IRQ handler. 12725(Linux ISRs no longer return void, so we can propagate the handler 12726return value from the ACPI CA core back to the OS.) 12727 12728 12729 127303) Documentation: 12731 12732The ACPI CA Programmer Reference has been updated to reflect new 12733interfaces and changes to existing interfaces. 12734 12735---------------------------------------- 1273628 March 2003. Summary of changes for version 20030328. 12737 127381) ACPI CA Core Subsystem: 12739 12740The GPE Block Device support has been completed. New interfaces 12741are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 12742interfaces (enable, disable, clear, getstatus) have been split 12743into separate interfaces for Fixed Events and General Purpose 12744Events (GPEs) in order to support GPE Block Devices properly. 12745 12746Fixed a problem where the error message "Failed to acquire 12747semaphore" would appear during operations on the embedded 12748controller (EC). 12749 12750Code and Data Size: Current core subsystem library sizes are shown 12751below. These are the code and data sizes for the acpica.lib 12752produced by the Microsoft Visual C++ 6.0 compiler, and these 12753values do not include any ACPI driver or OSPM code. The debug 12754version of the code includes the debug output trace mechanism and 12755has a much larger code and data size. Note that these values will 12756vary depending on the efficiency of the compiler and the compiler 12757options used during generation. 12758 12759 Previous Release 12760 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 12761 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 12762 Current Release: 12763 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 12764 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 12765 12766 12767---------------------------------------- 1276828 February 2003. Summary of changes for version 20030228. 12769 12770 127711) ACPI CA Core Subsystem: 12772 12773The GPE handling and dispatch code has been completely overhauled 12774in preparation for support of GPE Block Devices (ID ACPI0006). 12775This affects internal data structures and code only; there should 12776be no differences visible externally. One new file has been 12777added, evgpeblk.c 12778 12779The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 12780fields that are used to determine the GPE block lengths. The 12781REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 12782structures are ignored. This is per the ACPI specification but it 12783isn't very clear. The full 256 Block 0/1 GPEs are now supported 12784(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 12785 12786In the SCI interrupt handler, removed the read of the PM1_CONTROL 12787register to look at the SCI_EN bit. On some machines, this read 12788causes an SMI event and greatly slows down SCI events. (This may 12789in fact be the cause of slow battery status response on some 12790systems.) 12791 12792Fixed a problem where a store of a NULL string to a package object 12793could cause the premature deletion of the object. This was seen 12794during execution of the battery _BIF method on some systems, 12795resulting in no battery data being returned. 12796 12797Added AcpiWalkResources interface to simplify parsing of resource 12798lists. 12799 12800Code and Data Size: Current core subsystem library sizes are shown 12801below. These are the code and data sizes for the acpica.lib 12802produced by the Microsoft Visual C++ 6.0 compiler, and these 12803values do not include any ACPI driver or OSPM code. The debug 12804version of the code includes the debug output trace mechanism and 12805has a much larger code and data size. Note that these values will 12806vary depending on the efficiency of the compiler and the compiler 12807options used during generation. 12808 12809 Previous Release 12810 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 12811 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 12812 Current Release: 12813 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 12814 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 12815 12816 128172) Linux 12818 12819S3 fixes (Ole Rohne) 12820 12821Update ACPI PHP driver with to use new acpi_walk_resource API 12822(Bjorn Helgaas) 12823 12824Add S4BIOS support (Pavel Machek) 12825 12826Map in entire table before performing checksum (John Stultz) 12827 12828Expand the mem= cmdline to allow the specification of reserved and 12829ACPI DATA blocks (Pavel Machek) 12830 12831Never use ACPI on VISWS 12832 12833Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 12834 12835Revert a change that allowed P_BLK lengths to be 4 or 5. This is 12836causing us to think that some systems support C2 when they really 12837don't. 12838 12839Do not count processor objects for non-present CPUs (Thanks to 12840Dominik Brodowski) 12841 12842 128433) iASL Compiler: 12844 12845Fixed a problem where ASL include files could not be found and 12846opened. 12847 12848Added support for the _PDC reserved name. 12849 12850 12851---------------------------------------- 1285222 January 2003. Summary of changes for version 20030122. 12853 12854 128551) ACPI CA Core Subsystem: 12856 12857Added a check for constructs of the form: Store (Local0, Local0) 12858where Local0 is not initialized. Apparently, some BIOS 12859programmers believe that this is a NOOP. Since this store doesn't 12860do anything anyway, the new prototype behavior will ignore this 12861error. This is a case where we can relax the strict checking in 12862the interpreter in the name of compatibility. 12863 12864 128652) Linux 12866 12867The AcpiSrc Source Conversion Utility has been released with the 12868Linux package for the first time. This is the utility that is 12869used to convert the ACPI CA base source code to the Linux version. 12870 12871(Both) Handle P_BLK lengths shorter than 6 more gracefully 12872 12873(Both) Move more headers to include/acpi, and delete an unused 12874header. 12875 12876(Both) Move drivers/acpi/include directory to include/acpi 12877 12878(Both) Boot functions don't use cmdline, so don't pass it around 12879 12880(Both) Remove include of unused header (Adrian Bunk) 12881 12882(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 12883the 12884former now also includes the latter, acpiphp.h only needs the one, 12885now. 12886 12887(2.5) Make it possible to select method of bios restoring after S3 12888resume. [=> no more ugly ifdefs] (Pavel Machek) 12889 12890(2.5) Make proc write interfaces work (Pavel Machek) 12891 12892(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 12893 12894(2.5) Break out ACPI Perf code into its own module, under cpufreq 12895(Dominik Brodowski) 12896 12897(2.4) S4BIOS support (Ducrot Bruno) 12898 12899(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 12900Visinoni) 12901 12902 129033) iASL Compiler: 12904 12905Added support to disassemble SSDT and PSDTs. 12906 12907Implemented support to obtain SSDTs from the Windows registry if 12908available. 12909 12910 12911---------------------------------------- 1291209 January 2003. Summary of changes for version 20030109. 12913 129141) ACPI CA Core Subsystem: 12915 12916Changed the behavior of the internal Buffer-to-String conversion 12917function. The current ACPI specification states that the contents 12918of the buffer are "converted to a string of two-character 12919hexadecimal numbers, each separated by a space". Unfortunately, 12920this definition is not backwards compatible with existing ACPI 1.0 12921implementations (although the behavior was not defined in the ACPI 129221.0 specification). The new behavior simply copies data from the 12923buffer to the string until a null character is found or the end of 12924the buffer is reached. The new String object is always null 12925terminated. This problem was seen during the generation of _BIF 12926battery data where incorrect strings were returned for battery 12927type, etc. This will also require an errata to the ACPI 12928specification. 12929 12930Renamed all instances of NATIVE_UINT and NATIVE_INT to 12931ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 12932 12933Copyright in all module headers (both Linux and non-Linux) has be 12934updated to 2003. 12935 12936Code and Data Size: Current core subsystem library sizes are shown 12937below. These are the code and data sizes for the acpica.lib 12938produced by the Microsoft Visual C++ 6.0 compiler, and these 12939values do not include any ACPI driver or OSPM code. The debug 12940version of the code includes the debug output trace mechanism and 12941has a much larger code and data size. Note that these values will 12942vary depending on the efficiency of the compiler and the compiler 12943options used during generation. 12944 12945 Previous Release 12946 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 12947 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 12948 Current Release: 12949 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 12950 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 12951 12952 129532) Linux 12954 12955Fixed an oops on module insertion/removal (Matthew Tippett) 12956 12957(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 12958 12959(2.5) Replace pr_debug (Randy Dunlap) 12960 12961(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 12962 12963(Both) Eliminate spawning of thread from timer callback, in favor 12964of schedule_work() 12965 12966(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 12967 12968(Both) Added define for Fixed Function HW region (Matthew Wilcox) 12969 12970(Both) Add missing statics to button.c (Pavel Machek) 12971 12972Several changes have been made to the source code translation 12973utility that generates the Linux Code in order to make the code 12974more "Linux-like": 12975 12976All typedefs on structs and unions have been removed in keeping 12977with the Linux coding style. 12978 12979Removed the non-Linux SourceSafe module revision number from each 12980module header. 12981 12982Completed major overhaul of symbols to be lowercased for linux. 12983Doubled the number of symbols that are lowercased. 12984 12985Fixed a problem where identifiers within procedure headers and 12986within quotes were not fully lower cased (they were left with a 12987starting capital.) 12988 12989Some C macros whose only purpose is to allow the generation of 16- 12990bit code are now completely removed in the Linux code, increasing 12991readability and maintainability. 12992 12993---------------------------------------- 12994 1299512 December 2002. Summary of changes for version 20021212. 12996 12997 129981) ACPI CA Core Subsystem: 12999 13000Fixed a problem where the creation of a zero-length AML Buffer 13001would cause a fault. 13002 13003Fixed a problem where a Buffer object that pointed to a static AML 13004buffer (in an ACPI table) could inadvertently be deleted, causing 13005memory corruption. 13006 13007Fixed a problem where a user buffer (passed in to the external 13008ACPI CA interfaces) could be overwritten if the buffer was too 13009small to complete the operation, causing memory corruption. 13010 13011Fixed a problem in the Buffer-to-String conversion code where a 13012string of length one was always returned, regardless of the size 13013of the input Buffer object. 13014 13015Removed the NATIVE_CHAR data type across the entire source due to 13016lack of need and lack of consistent use. 13017 13018Code and Data Size: Current core subsystem library sizes are shown 13019below. These are the code and data sizes for the acpica.lib 13020produced by the Microsoft Visual C++ 6.0 compiler, and these 13021values do not include any ACPI driver or OSPM code. The debug 13022version of the code includes the debug output trace mechanism and 13023has a much larger code and data size. Note that these values will 13024vary depending on the efficiency of the compiler and the compiler 13025options used during generation. 13026 13027 Previous Release 13028 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 13029 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 13030 Current Release: 13031 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13032 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13033 13034 13035---------------------------------------- 1303605 December 2002. Summary of changes for version 20021205. 13037 130381) ACPI CA Core Subsystem: 13039 13040Fixed a problem where a store to a String or Buffer object could 13041cause corruption of the DSDT if the object type being stored was 13042the same as the target object type and the length of the object 13043being stored was equal to or smaller than the original (existing) 13044target object. This was seen to cause corruption of battery _BIF 13045buffers if the _BIF method modified the buffer on the fly. 13046 13047Fixed a problem where an internal error was generated if a control 13048method invocation was used in an OperationRegion, Buffer, or 13049Package declaration. This was caused by the deferred parsing of 13050the control method and thus the deferred creation of the internal 13051method object. The solution to this problem was to create the 13052internal method object at the moment the method is encountered in 13053the first pass - so that subsequent references to the method will 13054able to obtain the required parameter count and thus properly 13055parse the method invocation. This problem presented itself as an 13056AE_AML_INTERNAL during the pass 1 parse phase during table load. 13057 13058Fixed a problem where the internal String object copy routine did 13059not always allocate sufficient memory for the target String object 13060and caused memory corruption. This problem was seen to cause 13061"Allocation already present in list!" errors as memory allocation 13062became corrupted. 13063 13064Implemented a new function for the evaluation of namespace objects 13065that allows the specification of the allowable return object 13066types. This simplifies a lot of code that checks for a return 13067object of one or more specific objects returned from the 13068evaluation (such as _STA, etc.) This may become and external 13069function if it would be useful to ACPI-related drivers. 13070 13071Completed another round of prefixing #defines with "ACPI_" for 13072clarity. 13073 13074Completed additional code restructuring to allow more modular 13075linking for iASL compiler and AcpiExec. Several files were split 13076creating new files. New files: nsparse.c dsinit.c evgpe.c 13077 13078Implemented an abort mechanism to terminate an executing control 13079method via the AML debugger. This feature is useful for debugging 13080control methods that depend (wait) for specific hardware 13081responses. 13082 13083Code and Data Size: Current core subsystem library sizes are shown 13084below. These are the code and data sizes for the acpica.lib 13085produced by the Microsoft Visual C++ 6.0 compiler, and these 13086values do not include any ACPI driver or OSPM code. The debug 13087version of the code includes the debug output trace mechanism and 13088has a much larger code and data size. Note that these values will 13089vary depending on the efficiency of the compiler and the compiler 13090options used during generation. 13091 13092 Previous Release 13093 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13094 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 13095 Current Release: 13096 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 13097 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 13098 13099 131002) iASL Compiler/Disassembler 13101 13102Fixed a compiler code generation problem for "Interrupt" Resource 13103Descriptors. If specified in the ASL, the optional "Resource 13104Source Index" and "Resource Source" fields were not inserted into 13105the correct location within the AML resource descriptor, creating 13106an invalid descriptor. 13107 13108Fixed a disassembler problem for "Interrupt" resource descriptors. 13109The optional "Resource Source Index" and "Resource Source" fields 13110were ignored. 13111 13112 13113---------------------------------------- 1311422 November 2002. Summary of changes for version 20021122. 13115 13116 131171) ACPI CA Core Subsystem: 13118 13119Fixed a reported problem where an object stored to a Method Local 13120or Arg was not copied to a new object during the store - the 13121object pointer was simply copied to the Local/Arg. This caused 13122all subsequent operations on the Local/Arg to also affect the 13123original source of the store operation. 13124 13125Fixed a problem where a store operation to a Method Local or Arg 13126was not completed properly if the Local/Arg contained a reference 13127(from RefOf) to a named field. The general-purpose store-to- 13128namespace-node code is now used so that this case is handled 13129automatically. 13130 13131Fixed a problem where the internal object copy routine would cause 13132a protection fault if the object being copied was a Package and 13133contained either 1) a NULL package element or 2) a nested sub- 13134package. 13135 13136Fixed a problem with the GPE initialization that resulted from an 13137ambiguity in the ACPI specification. One section of the 13138specification states that both the address and length of the GPE 13139block must be zero if the block is not supported. Another section 13140implies that only the address need be zero if the block is not 13141supported. The code has been changed so that both the address and 13142the length must be non-zero to indicate a valid GPE block (i.e., 13143if either the address or the length is zero, the GPE block is 13144invalid.) 13145 13146Code and Data Size: Current core subsystem library sizes are shown 13147below. These are the code and data sizes for the acpica.lib 13148produced by the Microsoft Visual C++ 6.0 compiler, and these 13149values do not include any ACPI driver or OSPM code. The debug 13150version of the code includes the debug output trace mechanism and 13151has a much larger code and data size. Note that these values will 13152vary depending on the efficiency of the compiler and the compiler 13153options used during generation. 13154 13155 Previous Release 13156 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 13157 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 13158 Current Release: 13159 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13160 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 13161 13162 131632) Linux 13164 13165Cleaned up EC driver. Exported an external EC read/write 13166interface. By going through this, other drivers (most notably 13167sonypi) will be able to serialize access to the EC. 13168 13169 131703) iASL Compiler/Disassembler 13171 13172Implemented support to optionally generate include files for both 13173ASM and C (the -i switch). This simplifies BIOS development by 13174automatically creating include files that contain external 13175declarations for the symbols that are created within the 13176 13177(optionally generated) ASM and C AML source files. 13178 13179 13180---------------------------------------- 1318115 November 2002. Summary of changes for version 20021115. 13182 131831) ACPI CA Core Subsystem: 13184 13185Fixed a memory leak problem where an error during resolution of 13186 13187method arguments during a method invocation from another method 13188failed to cleanup properly by deleting all successfully resolved 13189argument objects. 13190 13191Fixed a problem where the target of the Index() operator was not 13192correctly constructed if the source object was a package. This 13193problem has not been detected because the use of a target operand 13194with Index() is very rare. 13195 13196Fixed a problem with the Index() operator where an attempt was 13197made to delete the operand objects twice. 13198 13199Fixed a problem where an attempt was made to delete an operand 13200twice during execution of the CondRefOf() operator if the target 13201did not exist. 13202 13203Implemented the first of perhaps several internal create object 13204functions that create and initialize a specific object type. This 13205consolidates duplicated code wherever the object is created, thus 13206shrinking the size of the subsystem. 13207 13208Implemented improved debug/error messages for errors that occur 13209during nested method invocations. All executing method pathnames 13210are displayed (with the error) as the call stack is unwound - thus 13211simplifying debug. 13212 13213Fixed a problem introduced in the 10/02 release that caused 13214premature deletion of a buffer object if a buffer was used as an 13215ASL operand where an integer operand is required (Thus causing an 13216implicit object conversion from Buffer to Integer.) The change in 13217the 10/02 release was attempting to fix a memory leak (albeit 13218incorrectly.) 13219 13220Code and Data Size: Current core subsystem library sizes are shown 13221below. These are the code and data sizes for the acpica.lib 13222produced by the Microsoft Visual C++ 6.0 compiler, and these 13223values do not include any ACPI driver or OSPM code. The debug 13224version of the code includes the debug output trace mechanism and 13225has a much larger code and data size. Note that these values will 13226vary depending on the efficiency of the compiler and the compiler 13227options used during generation. 13228 13229 Previous Release 13230 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 13231 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 13232 Current Release: 13233 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 13234 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 13235 13236 132372) Linux 13238 13239Changed the implementation of the ACPI semaphores to use down() 13240instead of down_interruptable(). It is important that the 13241execution of ACPI control methods not be interrupted by signals. 13242Methods must run to completion, or the system may be left in an 13243unknown/unstable state. 13244 13245Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 13246(Shawn Starr) 13247 13248 132493) iASL Compiler/Disassembler 13250 13251 13252Changed the default location of output files. All output files 13253are now placed in the current directory by default instead of in 13254the directory of the source file. This change may affect some 13255existing makefiles, but it brings the behavior of the compiler in 13256line with other similar tools. The location of the output files 13257can be overridden with the -p command line switch. 13258 13259 13260---------------------------------------- 1326111 November 2002. Summary of changes for version 20021111. 13262 13263 132640) ACPI Specification 2.0B is released and is now available at: 13265http://www.acpi.info/index.html 13266 13267 132681) ACPI CA Core Subsystem: 13269 13270Implemented support for the ACPI 2.0 SMBus Operation Regions. 13271This includes the early detection and handoff of the request to 13272the SMBus region handler (avoiding all of the complex field 13273support code), and support for the bidirectional return packet 13274from an SMBus write operation. This paves the way for the 13275development of SMBus drivers in each host operating system. 13276 13277Fixed a problem where the semaphore WAIT_FOREVER constant was 13278defined as 32 bits, but must be 16 bits according to the ACPI 13279specification. This had the side effect of causing ASL 13280Mutex/Event timeouts even though the ASL code requested a wait 13281forever. Changed all internal references to the ACPI timeout 13282parameter to 16 bits to prevent future problems. Changed the name 13283of WAIT_FOREVER to ACPI_WAIT_FOREVER. 13284 13285Code and Data Size: Current core subsystem library sizes are shown 13286below. These are the code and data sizes for the acpica.lib 13287produced by the Microsoft Visual C++ 6.0 compiler, and these 13288values do not include any ACPI driver or OSPM code. The debug 13289version of the code includes the debug output trace mechanism and 13290has a much larger code and data size. Note that these values will 13291vary depending on the efficiency of the compiler and the compiler 13292options used during generation. 13293 13294 Previous Release 13295 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13296 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 13297 Current Release: 13298 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 13299 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 13300 13301 133022) Linux 13303 13304Module loading/unloading fixes (John Cagle) 13305 13306 133073) iASL Compiler/Disassembler 13308 13309Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 13310 13311Implemented support for the disassembly of all SMBus protocol 13312keywords (SMBQuick, SMBWord, etc.) 13313 13314---------------------------------------- 1331501 November 2002. Summary of changes for version 20021101. 13316 13317 133181) ACPI CA Core Subsystem: 13319 13320Fixed a problem where platforms that have a GPE1 block but no GPE0 13321block were not handled correctly. This resulted in a "GPE 13322overlap" error message. GPE0 is no longer required. 13323 13324Removed code added in the previous release that inserted nodes 13325into the namespace in alphabetical order. This caused some side- 13326effects on various machines. The root cause of the problem is 13327still under investigation since in theory, the internal ordering 13328of the namespace nodes should not matter. 13329 13330 13331Enhanced error reporting for the case where a named object is not 13332found during control method execution. The full ACPI namepath 13333(name reference) of the object that was not found is displayed in 13334this case. 13335 13336Note: as a result of the overhaul of the namespace object types in 13337the previous release, the namespace nodes for the predefined 13338scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 13339instead of ACPI_TYPE_ANY. This simplifies the namespace 13340management code but may affect code that walks the namespace tree 13341looking for specific object types. 13342 13343Code and Data Size: Current core subsystem library sizes are shown 13344below. These are the code and data sizes for the acpica.lib 13345produced by the Microsoft Visual C++ 6.0 compiler, and these 13346values do not include any ACPI driver or OSPM code. The debug 13347version of the code includes the debug output trace mechanism and 13348has a much larger code and data size. Note that these values will 13349vary depending on the efficiency of the compiler and the compiler 13350options used during generation. 13351 13352 Previous Release 13353 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 13354 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 13355 Current Release: 13356 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13357 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 13358 13359 133602) Linux 13361 13362Fixed a problem introduced in the previous release where the 13363Processor and Thermal objects were not recognized and installed in 13364/proc. This was related to the scope type change described above. 13365 13366 133673) iASL Compiler/Disassembler 13368 13369Implemented the -g option to get all of the required ACPI tables 13370from the registry and save them to files (Windows version of the 13371compiler only.) The required tables are the FADT, FACS, and DSDT. 13372 13373Added ACPI table checksum validation during table disassembly in 13374order to catch corrupted tables. 13375 13376 13377---------------------------------------- 1337822 October 2002. Summary of changes for version 20021022. 13379 133801) ACPI CA Core Subsystem: 13381 13382Implemented a restriction on the Scope operator that the target 13383must already exist in the namespace at the time the operator is 13384encountered (during table load or method execution). In other 13385words, forward references are not allowed and Scope() cannot 13386create a new object. This changes the previous behavior where the 13387interpreter would create the name if not found. This new behavior 13388correctly enables the search-to-root algorithm during namespace 13389lookup of the target name. Because of this upsearch, this fixes 13390the known Compaq _SB_.OKEC problem and makes both the AML 13391interpreter and iASL compiler compatible with other ACPI 13392implementations. 13393 13394Completed a major overhaul of the internal ACPI object types for 13395the ACPI Namespace and the associated operand objects. Many of 13396these types had become obsolete with the introduction of the two- 13397pass namespace load. This cleanup simplifies the code and makes 13398the entire namespace load mechanism much clearer and easier to 13399understand. 13400 13401Improved debug output for tracking scope opening/closing to help 13402diagnose scoping issues. The old scope name as well as the new 13403scope name are displayed. Also improved error messages for 13404problems with ASL Mutex objects and error messages for GPE 13405problems. 13406 13407Cleaned up the namespace dump code, removed obsolete code. 13408 13409All string output (for all namespace/object dumps) now uses the 13410common ACPI string output procedure which handles escapes properly 13411and does not emit non-printable characters. 13412 13413Fixed some issues with constants in the 64-bit version of the 13414local C library (utclib.c) 13415 13416 134172) Linux 13418 13419EC Driver: No longer attempts to acquire the Global Lock at 13420interrupt level. 13421 13422 134233) iASL Compiler/Disassembler 13424 13425Implemented ACPI 2.0B grammar change that disallows all Type 1 and 134262 opcodes outside of a control method. This means that the 13427"executable" operators (versus the "namespace" operators) cannot 13428be used at the table level; they can only be used within a control 13429method. 13430 13431Implemented the restriction on the Scope() operator where the 13432target must already exist in the namespace at the time the 13433operator is encountered (during ASL compilation). In other words, 13434forward references are not allowed and Scope() cannot create a new 13435object. This makes the iASL compiler compatible with other ACPI 13436implementations and makes the Scope() implementation adhere to the 13437ACPI specification. 13438 13439Fixed a problem where namepath optimization for the Alias operator 13440was optimizing the wrong path (of the two namepaths.) This caused 13441a "Missing alias link" error message. 13442 13443Fixed a problem where an "unknown reserved name" warning could be 13444incorrectly generated for names like "_SB" when the trailing 13445underscore is not used in the original ASL. 13446 13447Fixed a problem where the reserved name check did not handle 13448NamePaths with multiple NameSegs correctly. The first nameseg of 13449the NamePath was examined instead of the last NameSeg. 13450 13451 13452---------------------------------------- 13453 1345402 October 2002. Summary of changes for this release. 13455 13456 134571) ACPI CA Core Subsystem version 20021002: 13458 13459Fixed a problem where a store/copy of a string to an existing 13460string did not always set the string length properly in the String 13461object. 13462 13463Fixed a reported problem with the ToString operator where the 13464behavior was identical to the ToHexString operator instead of just 13465simply converting a raw buffer to a string data type. 13466 13467Fixed a problem where CopyObject and the other "explicit" 13468conversion operators were not updating the internal namespace node 13469type as part of the store operation. 13470 13471Fixed a memory leak during implicit source operand conversion 13472where the original object was not deleted if it was converted to a 13473new object of a different type. 13474 13475Enhanced error messages for all problems associated with namespace 13476lookups. Common procedure generates and prints the lookup name as 13477well as the formatted status. 13478 13479Completed implementation of a new design for the Alias support 13480within the namespace. The existing design did not handle the case 13481where a new object was assigned to one of the two names due to the 13482use of an explicit conversion operator, resulting in the two names 13483pointing to two different objects. The new design simply points 13484the Alias name to the original name node - not to the object. 13485This results in a level of indirection that must be handled in the 13486name resolution mechanism. 13487 13488Code and Data Size: Current core subsystem library sizes are shown 13489below. These are the code and data sizes for the acpica.lib 13490produced by the Microsoft Visual C++ 6.0 compiler, and these 13491values do not include any ACPI driver or OSPM code. The debug 13492version of the code includes the debug output trace mechanism and 13493has a larger code and data size. Note that these values will vary 13494depending on the efficiency of the compiler and the compiler 13495options used during generation. 13496 13497 Previous Release 13498 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 13499 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 13500 Current Release: 13501 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 13502 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 13503 13504 135052) Linux 13506 13507Initialize thermal driver's timer before it is used. (Knut 13508Neumann) 13509 13510Allow handling negative celsius values. (Kochi Takayoshi) 13511 13512Fix thermal management and make trip points. R/W (Pavel Machek) 13513 13514Fix /proc/acpi/sleep. (P. Christeas) 13515 13516IA64 fixes. (David Mosberger) 13517 13518Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 13519 13520Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 13521Brodowski) 13522 13523 135243) iASL Compiler/Disassembler 13525 13526Clarified some warning/error messages. 13527 13528 13529---------------------------------------- 1353018 September 2002. Summary of changes for this release. 13531 13532 135331) ACPI CA Core Subsystem version 20020918: 13534 13535Fixed a reported problem with reference chaining (via the Index() 13536and RefOf() operators) in the ObjectType() and SizeOf() operators. 13537The definition of these operators includes the dereferencing of 13538all chained references to return information on the base object. 13539 13540Fixed a problem with stores to indexed package elements - the 13541existing code would not complete the store if an "implicit 13542conversion" was not performed. In other words, if the existing 13543object (package element) was to be replaced completely, the code 13544didn't handle this case. 13545 13546Relaxed typechecking on the ASL "Scope" operator to allow the 13547target name to refer to an object of type Integer, String, or 13548Buffer, in addition to the scoping object types (Device, 13549predefined Scopes, Processor, PowerResource, and ThermalZone.) 13550This allows existing AML code that has workarounds for a bug in 13551Windows to function properly. A warning is issued, however. This 13552affects both the AML interpreter and the iASL compiler. Below is 13553an example of this type of ASL code: 13554 13555 Name(DEB,0x00) 13556 Scope(DEB) 13557 { 13558 13559Fixed some reported problems with 64-bit integer support in the 13560local implementation of C library functions (clib.c) 13561 13562 135632) Linux 13564 13565Use ACPI fix map region instead of IOAPIC region, since it is 13566undefined in non-SMP. 13567 13568Ensure that the SCI has the proper polarity and trigger, even on 13569systems that do not have an interrupt override entry in the MADT. 13570 135712.5 big driver reorganization (Pat Mochel) 13572 13573Use early table mapping code from acpitable.c (Andi Kleen) 13574 13575New blacklist entries (Andi Kleen) 13576 13577Blacklist improvements. Split blacklist code out into a separate 13578file. Move checking the blacklist to very early. Previously, we 13579would use ACPI tables, and then halfway through init, check the 13580blacklist -- too late. Now, it's early enough to completely fall- 13581back to non-ACPI. 13582 13583 135843) iASL Compiler/Disassembler version 20020918: 13585 13586Fixed a problem where the typechecking code didn't know that an 13587alias could point to a method. In other words, aliases were not 13588being dereferenced during typechecking. 13589 13590 13591---------------------------------------- 1359229 August 2002. Summary of changes for this release. 13593 135941) ACPI CA Core Subsystem Version 20020829: 13595 13596If the target of a Scope() operator already exists, it must be an 13597object type that actually opens a scope -- such as a Device, 13598Method, Scope, etc. This is a fatal runtime error. Similar error 13599check has been added to the iASL compiler also. 13600 13601Tightened up the namespace load to disallow multiple names in the 13602same scope. This previously was allowed if both objects were of 13603the same type. (i.e., a lookup was the same as entering a new 13604name). 13605 13606 136072) Linux 13608 13609Ensure that the ACPI interrupt has the proper trigger and 13610polarity. 13611 13612local_irq_disable is extraneous. (Matthew Wilcox) 13613 13614Make "acpi=off" actually do what it says, and not use the ACPI 13615interpreter *or* the tables. 13616 13617Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 13618Takayoshi) 13619 13620 136213) iASL Compiler/Disassembler Version 20020829: 13622 13623Implemented namepath optimization for name declarations. For 13624example, a declaration like "Method (\_SB_.ABCD)" would get 13625optimized to "Method (ABCD)" if the declaration is within the 13626\_SB_ scope. This optimization is in addition to the named 13627reference path optimization first released in the previous 13628version. This would seem to complete all possible optimizations 13629for namepaths within the ASL/AML. 13630 13631If the target of a Scope() operator already exists, it must be an 13632object type that actually opens a scope -- such as a Device, 13633Method, Scope, etc. 13634 13635Implemented a check and warning for unreachable code in the same 13636block below a Return() statement. 13637 13638Fixed a problem where the listing file was not generated if the 13639compiler aborted if the maximum error count was exceeded (200). 13640 13641Fixed a problem where the typechecking of method return values was 13642broken. This includes the check for a return value when the 13643method is invoked as a TermArg (a return value is expected.) 13644 13645Fixed a reported problem where EOF conditions during a quoted 13646string or comment caused a fault. 13647 13648 13649---------------------------------------- 1365015 August 2002. Summary of changes for this release. 13651 136521) ACPI CA Core Subsystem Version 20020815: 13653 13654Fixed a reported problem where a Store to a method argument that 13655contains a reference did not perform the indirect store correctly. 13656This problem was created during the conversion to the new 13657reference object model - the indirect store to a method argument 13658code was not updated to reflect the new model. 13659 13660Reworked the ACPI mode change code to better conform to ACPI 2.0, 13661handle corner cases, and improve code legibility (Kochi Takayoshi) 13662 13663Fixed a problem with the pathname parsing for the carat (^) 13664prefix. The heavy use of the carat operator by the new namepath 13665optimization in the iASL compiler uncovered a problem with the AML 13666interpreter handling of this prefix. In the case where one or 13667more carats precede a single nameseg, the nameseg was treated as 13668standalone and the search rule (to root) was inadvertently 13669applied. This could cause both the iASL compiler and the 13670interpreter to find the wrong object or to miss the error that 13671should occur if the object does not exist at that exact pathname. 13672 13673Found and fixed the problem where the HP Pavilion DSDT would not 13674load. This was a relatively minor tweak to the table loading code 13675(a problem caused by the unexpected encounter with a method 13676invocation not within a control method), but it does not solve the 13677overall issue of the execution of AML code at the table level. 13678This investigation is still ongoing. 13679 13680Code and Data Size: Current core subsystem library sizes are shown 13681below. These are the code and data sizes for the acpica.lib 13682produced by the Microsoft Visual C++ 6.0 compiler, and these 13683values do not include any ACPI driver or OSPM code. The debug 13684version of the code includes the debug output trace mechanism and 13685has a larger code and data size. Note that these values will vary 13686depending on the efficiency of the compiler and the compiler 13687options used during generation. 13688 13689 Previous Release 13690 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 13691 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 13692 Current Release: 13693 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 13694 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 13695 13696 136972) Linux 13698 13699Remove redundant slab.h include (Brad Hards) 13700 13701Fix several bugs in thermal.c (Herbert Nachtnebel) 13702 13703Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 13704 13705Change acpi_system_suspend to use updated irq functions (Pavel 13706Machek) 13707 13708Export acpi_get_firmware_table (Matthew Wilcox) 13709 13710Use proper root proc entry for ACPI (Kochi Takayoshi) 13711 13712Fix early-boot table parsing (Bjorn Helgaas) 13713 13714 137153) iASL Compiler/Disassembler 13716 13717Reworked the compiler options to make them more consistent and to 13718use two-letter options where appropriate. We were running out of 13719sensible letters. This may break some makefiles, so check the 13720current options list by invoking the compiler with no parameters. 13721 13722Completed the design and implementation of the ASL namepath 13723optimization option for the compiler. This option optimizes all 13724references to named objects to the shortest possible path. The 13725first attempt tries to utilize a single nameseg (4 characters) and 13726the "search-to-root" algorithm used by the interpreter. If that 13727cannot be used (because either the name is not in the search path 13728or there is a conflict with another object with the same name), 13729the pathname is optimized using the carat prefix (usually a 13730shorter string than specifying the entire path from the root.) 13731 13732Implemented support to obtain the DSDT from the Windows registry 13733(when the disassembly option is specified with no input file). 13734Added this code as the implementation for AcpiOsTableOverride in 13735the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 13736utility) to scan memory for the DSDT to the AcpiOsTableOverride 13737function in the DOS OSL to make the disassembler truly OS 13738independent. 13739 13740Implemented a new option to disassemble and compile in one step. 13741When used without an input filename, this option will grab the 13742DSDT from the local machine, disassemble it, and compile it in one 13743step. 13744 13745Added a warning message for invalid escapes (a backslash followed 13746by any character other than the allowable escapes). This catches 13747the quoted string error "\_SB_" (which should be "\\_SB_" ). 13748 13749Also, there are numerous instances in the ACPI specification where 13750this error occurs. 13751 13752Added a compiler option to disable all optimizations. This is 13753basically the "compatibility mode" because by using this option, 13754the AML code will come out exactly the same as other ASL 13755compilers. 13756 13757Added error messages for incorrectly ordered dependent resource 13758functions. This includes: missing EndDependentFn macro at end of 13759dependent resource list, nested dependent function macros (both 13760start and end), and missing StartDependentFn macro. These are 13761common errors that should be caught at compile time. 13762 13763Implemented _OSI support for the disassembler and compiler. _OSI 13764must be included in the namespace for proper disassembly (because 13765the disassembler must know the number of arguments.) 13766 13767Added an "optimization" message type that is optional (off by 13768default). This message is used for all optimizations - including 13769constant folding, integer optimization, and namepath optimization. 13770 13771---------------------------------------- 1377225 July 2002. Summary of changes for this release. 13773 13774 137751) ACPI CA Core Subsystem Version 20020725: 13776 13777The AML Disassembler has been enhanced to produce compilable ASL 13778code and has been integrated into the iASL compiler (see below) as 13779well as the single-step disassembly for the AML debugger and the 13780disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 13781resource templates and macros are fully supported. The 13782disassembler has been tested on over 30 different AML files, 13783producing identical AML when the resulting disassembled ASL file 13784is recompiled with the same ASL compiler. 13785 13786Modified the Resource Manager to allow zero interrupts and zero 13787dma channels during the GetCurrentResources call. This was 13788causing problems on some platforms. 13789 13790Added the AcpiOsRedirectOutput interface to the OSL to simplify 13791output redirection for the AcpiOsPrintf and AcpiOsVprintf 13792interfaces. 13793 13794Code and Data Size: Current core subsystem library sizes are shown 13795below. These are the code and data sizes for the acpica.lib 13796produced by the Microsoft Visual C++ 6.0 compiler, and these 13797values do not include any ACPI driver or OSPM code. The debug 13798version of the code includes the debug output trace mechanism and 13799has a larger code and data size. Note that these values will vary 13800depending on the efficiency of the compiler and the compiler 13801options used during generation. 13802 13803 Previous Release 13804 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 13805 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 13806 Current Release: 13807 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 13808 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 13809 13810 138112) Linux 13812 13813Fixed a panic in the EC driver (Dominik Brodowski) 13814 13815Implemented checksum of the R/XSDT itself during Linux table scan 13816(Richard Schaal) 13817 13818 138193) iASL compiler 13820 13821The AML disassembler is integrated into the compiler. The "-d" 13822option invokes the disassembler to completely disassemble an 13823input AML file, producing as output a text ASL file with the 13824extension ".dsl" (to avoid name collisions with existing .asl 13825source files.) A future enhancement will allow the disassembler 13826to obtain the BIOS DSDT from the registry under Windows. 13827 13828Fixed a problem with the VendorShort and VendorLong resource 13829descriptors where an invalid AML sequence was created. 13830 13831Implemented a fix for BufferData term in the ASL parser. It was 13832inadvertently defined twice, allowing invalid syntax to pass and 13833causing reduction conflicts. 13834 13835Fixed a problem where the Ones opcode could get converted to a 13836value of zero if "Ones" was used where a byte, word or dword value 13837was expected. The 64-bit value is now truncated to the correct 13838size with the correct value. 13839 13840 13841 13842---------------------------------------- 1384302 July 2002. Summary of changes for this release. 13844 13845 138461) ACPI CA Core Subsystem Version 20020702: 13847 13848The Table Manager code has been restructured to add several new 13849features. Tables that are not required by the core subsystem 13850(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 13851validated in any way and are returned from AcpiGetFirmwareTable if 13852requested. The AcpiOsTableOverride interface is now called for 13853each table that is loaded by the subsystem in order to allow the 13854host to override any table it chooses. Previously, only the DSDT 13855could be overridden. Added one new files, tbrsdt.c and 13856tbgetall.c. 13857 13858Fixed a problem with the conversion of internal package objects to 13859external objects (when a package is returned from a control 13860method.) The return buffer length was set to zero instead of the 13861proper length of the package object. 13862 13863Fixed a reported problem with the use of the RefOf and DeRefOf 13864operators when passing reference arguments to control methods. A 13865new type of Reference object is used internally for references 13866produced by the RefOf operator. 13867 13868Added additional error messages in the Resource Manager to explain 13869AE_BAD_DATA errors when they occur during resource parsing. 13870 13871Split the AcpiEnableSubsystem into two primitives to enable a 13872finer granularity initialization sequence. These two calls should 13873be called in this order: AcpiEnableSubsystem (flags), 13874AcpiInitializeObjects (flags). The flags parameter remains the 13875same. 13876 13877 138782) Linux 13879 13880Updated the ACPI utilities module to understand the new style of 13881fully resolved package objects that are now returned from the core 13882subsystem. This eliminates errors of the form: 13883 13884 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 13885 acpi_utils-0430 [145] acpi_evaluate_reference: 13886 Invalid element in package (not a device reference) 13887 13888The method evaluation utility uses the new buffer allocation 13889scheme instead of calling AcpiEvaluate Object twice. 13890 13891Added support for ECDT. This allows the use of the Embedded 13892 13893Controller before the namespace has been fully initialized, which 13894is necessary for ACPI 2.0 support, and for some laptops to 13895initialize properly. (Laptops using ECDT are still rare, so only 13896limited testing was performed of the added functionality.) 13897 13898Fixed memory leaks in the EC driver. 13899 13900Eliminated a brittle code structure in acpi_bus_init(). 13901 13902Eliminated the acpi_evaluate() helper function in utils.c. It is 13903no longer needed since acpi_evaluate_object can optionally 13904allocate memory for the return object. 13905 13906Implemented fix for keyboard hang when getting battery readings on 13907some systems (Stephen White) 13908 13909PCI IRQ routing update (Dominik Brodowski) 13910 13911Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 13912support 13913 13914---------------------------------------- 1391511 June 2002. Summary of changes for this release. 13916 13917 139181) ACPI CA Core Subsystem Version 20020611: 13919 13920Fixed a reported problem where constants such as Zero and One 13921appearing within _PRT packages were not handled correctly within 13922the resource manager code. Originally reported against the ASL 13923compiler because the code generator now optimizes integers to 13924their minimal AML representation (i.e. AML constants if possible.) 13925The _PRT code now handles all AML constant opcodes correctly 13926(Zero, One, Ones, Revision). 13927 13928Fixed a problem with the Concatenate operator in the AML 13929interpreter where a buffer result object was incorrectly marked as 13930not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 13931 13932All package sub-objects are now fully resolved before they are 13933returned from the external ACPI interfaces. This means that name 13934strings are resolved to object handles, and constant operators 13935(Zero, One, Ones, Revision) are resolved to Integers. 13936 13937Implemented immediate resolution of the AML Constant opcodes 13938(Zero, One, Ones, Revision) to Integer objects upon detection 13939within the AML stream. This has simplified and reduced the 13940generated code size of the subsystem by eliminating about 10 13941switch statements for these constants (which previously were 13942contained in Reference objects.) The complicating issues are that 13943the Zero opcode is used as a "placeholder" for unspecified 13944optional target operands and stores to constants are defined to be 13945no-ops. 13946 13947Code and Data Size: Current core subsystem library sizes are shown 13948below. These are the code and data sizes for the acpica.lib 13949produced by the Microsoft Visual C++ 6.0 compiler, and these 13950values do not include any ACPI driver or OSPM code. The debug 13951version of the code includes the debug output trace mechanism and 13952has a larger code and data size. Note that these values will vary 13953depending on the efficiency of the compiler and the compiler 13954options used during generation. 13955 13956 Previous Release 13957 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 13958 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 13959 Current Release: 13960 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 13961 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 13962 13963 139642) Linux 13965 13966 13967Added preliminary support for obtaining _TRA data for PCI root 13968bridges (Bjorn Helgaas). 13969 13970 139713) iASL Compiler Version X2046: 13972 13973Fixed a problem where the "_DDN" reserved name was defined to be a 13974control method with one argument. There are no arguments, and 13975_DDN does not have to be a control method. 13976 13977Fixed a problem with the Linux version of the compiler where the 13978source lines printed with error messages were the wrong lines. 13979This turned out to be the "LF versus CR/LF" difference between 13980Windows and Unix. This appears to be the longstanding issue 13981concerning listing output and error messages. 13982 13983Fixed a problem with the Linux version of compiler where opcode 13984names within error messages were wrong. This was caused by a 13985slight difference in the output of the Flex tool on Linux versus 13986Windows. 13987 13988Fixed a problem with the Linux compiler where the hex output files 13989contained some garbage data caused by an internal buffer overrun. 13990 13991 13992---------------------------------------- 1399317 May 2002. Summary of changes for this release. 13994 13995 139961) ACPI CA Core Subsystem Version 20020517: 13997 13998Implemented a workaround to an BIOS bug discovered on the HP 13999OmniBook where the FADT revision number and the table size are 14000inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 14001behavior is to fallback to using only the ACPI 1.0 fields of the 14002FADT if the table is too small to be a ACPI 2.0 table as claimed 14003by the revision number. Although this is a BIOS bug, this is a 14004case where the workaround is simple enough and with no side 14005effects, so it seemed prudent to add it. A warning message is 14006issued, however. 14007 14008Implemented minimum size checks for the fixed-length ACPI tables - 14009- the FADT and FACS, as well as consistency checks between the 14010revision number and the table size. 14011 14012Fixed a reported problem in the table override support where the 14013new table pointer was incorrectly treated as a physical address 14014instead of a logical address. 14015 14016Eliminated the use of the AE_AML_ERROR exception and replaced it 14017with more descriptive codes. 14018 14019Fixed a problem where an exception would occur if an ASL Field was 14020defined with no named Field Units underneath it (used by some 14021index fields). 14022 14023Code and Data Size: Current core subsystem library sizes are shown 14024below. These are the code and data sizes for the acpica.lib 14025produced by the Microsoft Visual C++ 6.0 compiler, and these 14026values do not include any ACPI driver or OSPM code. The debug 14027version of the code includes the debug output trace mechanism and 14028has a larger code and data size. Note that these values will vary 14029depending on the efficiency of the compiler and the compiler 14030options used during generation. 14031 14032 Previous Release 14033 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 14034 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 14035 Current Release: 14036 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 14037 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 14038 14039 14040 140412) Linux 14042 14043Much work done on ACPI init (MADT and PCI IRQ routing support). 14044(Paul D. and Dominik Brodowski) 14045 14046Fix PCI IRQ-related panic on boot (Sam Revitch) 14047 14048Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 14049 14050Fix "MHz" typo (Dominik Brodowski) 14051 14052Fix RTC year 2000 issue (Dominik Brodowski) 14053 14054Preclude multiple button proc entries (Eric Brunet) 14055 14056Moved arch-specific code out of include/platform/aclinux.h 14057 140583) iASL Compiler Version X2044: 14059 14060Implemented error checking for the string used in the EISAID macro 14061(Usually used in the definition of the _HID object.) The code now 14062strictly enforces the PnP format - exactly 7 characters, 3 14063uppercase letters and 4 hex digits. 14064 14065If a raw string is used in the definition of the _HID object 14066(instead of the EISAID macro), the string must contain all 14067alphanumeric characters (e.g., "*PNP0011" is not allowed because 14068of the asterisk.) 14069 14070Implemented checking for invalid use of ACPI reserved names for 14071most of the name creation operators (Name, Device, Event, Mutex, 14072OperationRegion, PowerResource, Processor, and ThermalZone.) 14073Previously, this check was only performed for control methods. 14074 14075Implemented an additional check on the Name operator to emit an 14076error if a reserved name that must be implemented in ASL as a 14077control method is used. We know that a reserved name must be a 14078method if it is defined with input arguments. 14079 14080The warning emitted when a namespace object reference is not found 14081during the cross reference phase has been changed into an error. 14082The "External" directive should be used for names defined in other 14083modules. 14084 14085 140864) Tools and Utilities 14087 14088The 16-bit tools (adump16 and aexec16) have been regenerated and 14089tested. 14090 14091Fixed a problem with the output of both acpidump and adump16 where 14092the indentation of closing parentheses and brackets was not 14093 14094aligned properly with the parent block. 14095 14096 14097---------------------------------------- 1409803 May 2002. Summary of changes for this release. 14099 14100 141011) ACPI CA Core Subsystem Version 20020503: 14102 14103Added support a new OSL interface that allows the host operating 14104 14105system software to override the DSDT found in the firmware - 14106AcpiOsTableOverride. With this interface, the OSL can examine the 14107version of the firmware DSDT and replace it with a different one 14108if desired. 14109 14110Added new external interfaces for accessing ACPI registers from 14111device drivers and other system software - AcpiGetRegister and 14112AcpiSetRegister. This was simply an externalization of the 14113existing AcpiHwBitRegister interfaces. 14114 14115Fixed a regression introduced in the previous build where the 14116ASL/AML CreateField operator always returned an error, 14117"destination must be a NS Node". 14118 14119Extended the maximum time (before failure) to successfully enable 14120ACPI mode to 3 seconds. 14121 14122Code and Data Size: Current core subsystem library sizes are shown 14123below. These are the code and data sizes for the acpica.lib 14124produced by the Microsoft Visual C++ 6.0 compiler, and these 14125values do not include any ACPI driver or OSPM code. The debug 14126version of the code includes the debug output trace mechanism and 14127has a larger code and data size. Note that these values will vary 14128depending on the efficiency of the compiler and the compiler 14129options used during generation. 14130 14131 Previous Release 14132 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 14133 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 14134 Current Release: 14135 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 14136 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 14137 14138 141392) Linux 14140 14141Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 14142free. While 3 out of 4 of our in-house systems work fine, the last 14143one still hangs when testing the LAPIC timer. 14144 14145Renamed many files in 2.5 kernel release to omit "acpi_" from the 14146name. 14147 14148Added warning on boot for Presario 711FR. 14149 14150Sleep improvements (Pavel Machek) 14151 14152ACPI can now be built without CONFIG_PCI enabled. 14153 14154IA64: Fixed memory map functions (JI Lee) 14155 14156 141573) iASL Compiler Version X2043: 14158 14159Added support to allow the compiler to be integrated into the MS 14160VC++ development environment for one-button compilation of single 14161files or entire projects -- with error-to-source-line mapping. 14162 14163Implemented support for compile-time constant folding for the 14164Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 14165specification. This allows the ASL writer to use expressions 14166instead of Integer/Buffer/String constants in terms that must 14167evaluate to constants at compile time and will also simplify the 14168emitted AML in any such sub-expressions that can be folded 14169(evaluated at compile-time.) This increases the size of the 14170compiler significantly because a portion of the ACPI CA AML 14171interpreter is included within the compiler in order to pre- 14172evaluate constant expressions. 14173 14174 14175Fixed a problem with the "Unicode" ASL macro that caused the 14176compiler to fault. (This macro is used in conjunction with the 14177_STR reserved name.) 14178 14179Implemented an AML opcode optimization to use the Zero, One, and 14180Ones opcodes where possible to further reduce the size of integer 14181constants and thus reduce the overall size of the generated AML 14182code. 14183 14184Implemented error checking for new reserved terms for ACPI version 141852.0A. 14186 14187Implemented the -qr option to display the current list of ACPI 14188reserved names known to the compiler. 14189 14190Implemented the -qc option to display the current list of ASL 14191operators that are allowed within constant expressions and can 14192therefore be folded at compile time if the operands are constants. 14193 14194 141954) Documentation 14196 14197Updated the Programmer's Reference for new interfaces, data types, 14198and memory allocation model options. 14199 14200Updated the iASL Compiler User Reference to apply new format and 14201add information about new features and options. 14202 14203---------------------------------------- 1420419 April 2002. Summary of changes for this release. 14205 142061) ACPI CA Core Subsystem Version 20020419: 14207 14208The source code base for the Core Subsystem has been completely 14209cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 14210versions. The Lint option files used are included in the 14211/acpi/generate/lint directory. 14212 14213Implemented enhanced status/error checking across the entire 14214Hardware manager subsystem. Any hardware errors (reported from 14215the OSL) are now bubbled up and will abort a running control 14216method. 14217 14218 14219Fixed a problem where the per-ACPI-table integer width (32 or 64) 14220was stored only with control method nodes, causing a fault when 14221non-control method code was executed during table loading. The 14222solution implemented uses a global variable to indicate table 14223width across the entire ACPI subsystem. Therefore, ACPI CA does 14224not support mixed integer widths across different ACPI tables 14225(DSDT, SSDT). 14226 14227Fixed a problem where NULL extended fields (X fields) in an ACPI 142282.0 ACPI FADT caused the table load to fail. Although the 14229existing ACPI specification is a bit fuzzy on this topic, the new 14230behavior is to fall back on a ACPI 1.0 field if the corresponding 14231ACPI 2.0 X field is zero (even though the table revision indicates 14232a full ACPI 2.0 table.) The ACPI specification will be updated to 14233clarify this issue. 14234 14235Fixed a problem with the SystemMemory operation region handler 14236where memory was always accessed byte-wise even if the AML- 14237specified access width was larger than a byte. This caused 14238problems on systems with memory-mapped I/O. Memory is now 14239accessed with the width specified. On systems that do not support 14240non-aligned transfers, a check is made to guarantee proper address 14241alignment before proceeding in order to avoid an AML-caused 14242alignment fault within the kernel. 14243 14244 14245Fixed a problem with the ExtendedIrq resource where only one byte 14246of the 4-byte Irq field was extracted. 14247 14248Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 14249function was out of date and required a rewrite. 14250 14251Code and Data Size: Current core subsystem library sizes are shown 14252below. These are the code and data sizes for the acpica.lib 14253produced by the Microsoft Visual C++ 6.0 compiler, and these 14254values do not include any ACPI driver or OSPM code. The debug 14255version of the code includes the debug output trace mechanism and 14256has a larger code and data size. Note that these values will vary 14257depending on the efficiency of the compiler and the compiler 14258options used during generation. 14259 14260 Previous Release 14261 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 14262 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 14263 Current Release: 14264 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 14265 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 14266 14267 142682) Linux 14269 14270PCI IRQ routing fixes (Dominik Brodowski) 14271 14272 142733) iASL Compiler Version X2042: 14274 14275Implemented an additional compile-time error check for a field 14276unit whose size + minimum access width would cause a run-time 14277access beyond the end-of-region. Previously, only the field size 14278itself was checked. 14279 14280The Core subsystem and iASL compiler now share a common parse 14281object in preparation for compile-time evaluation of the type 142823/4/5 ASL operators. 14283 14284 14285---------------------------------------- 14286Summary of changes for this release: 03_29_02 14287 142881) ACPI CA Core Subsystem Version 20020329: 14289 14290Implemented support for late evaluation of TermArg operands to 14291Buffer and Package objects. This allows complex expressions to be 14292used in the declarations of these object types. 14293 14294Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 142951.0, if the field was larger than 32 bits, it was returned as a 14296buffer - otherwise it was returned as an integer. In ACPI 2.0, 14297the field is returned as a buffer only if the field is larger than 1429864 bits. The TableRevision is now considered when making this 14299conversion to avoid incompatibility with existing ASL code. 14300 14301Implemented logical addressing for AcpiOsGetRootPointer. This 14302allows an RSDP with either a logical or physical address. With 14303this support, the host OS can now override all ACPI tables with 14304one logical RSDP. Includes implementation of "typed" pointer 14305support to allow a common data type for both physical and logical 14306pointers internally. This required a change to the 14307AcpiOsGetRootPointer interface. 14308 14309Implemented the use of ACPI 2.0 Generic Address Structures for all 14310GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 14311mapped I/O for these ACPI features. 14312 14313Initialization now ignores not only non-required tables (All 14314tables other than the FADT, FACS, DSDT, and SSDTs), but also does 14315not validate the table headers of unrecognized tables. 14316 14317Fixed a problem where a notify handler could only be 14318installed/removed on an object of type Device. All "notify" 14319 14320objects are now supported -- Devices, Processor, Power, and 14321Thermal. 14322 14323Removed most verbosity from the ACPI_DB_INFO debug level. Only 14324critical information is returned when this debug level is enabled. 14325 14326Code and Data Size: Current core subsystem library sizes are shown 14327below. These are the code and data sizes for the acpica.lib 14328produced by the Microsoft Visual C++ 6.0 compiler, and these 14329values do not include any ACPI driver or OSPM code. The debug 14330version of the code includes the debug output trace mechanism and 14331has a larger code and data size. Note that these values will vary 14332depending on the efficiency of the compiler and the compiler 14333options used during generation. 14334 14335 Previous Release 14336 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 14337 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 14338 Current Release: 14339 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 14340 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 14341 14342 143432) Linux: 14344 14345The processor driver (acpi_processor.c) now fully supports ACPI 143462.0-based processor performance control (e.g. Intel(R) 14347SpeedStep(TM) technology) Note that older laptops that only have 14348the Intel "applet" interface are not supported through this. The 14349'limit' and 'performance' interface (/proc) are fully functional. 14350[Note that basic policy for controlling performance state 14351transitions will be included in the next version of ospmd.] The 14352idle handler was modified to more aggressively use C2, and PIIX4 14353errata handling underwent a complete overhaul (big thanks to 14354Dominik Brodowski). 14355 14356Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 14357based devices in the ACPI namespace are now dynamically bound 14358(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 14359This allows, among other things, ACPI to resolve bus numbers for 14360subordinate PCI bridges. 14361 14362Enhanced PCI IRQ routing to get the proper bus number for _PRT 14363entries defined underneath PCI bridges. 14364 14365Added IBM 600E to bad bios list due to invalid _ADR value for 14366PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 14367 14368In the process of adding full MADT support (e.g. IOAPIC) for IA32 14369(acpi.c, mpparse.c) -- stay tuned. 14370 14371Added back visual differentiation between fixed-feature and 14372control-method buttons in dmesg. Buttons are also subtyped (e.g. 14373button/power/PWRF) to simplify button identification. 14374 14375We no longer use -Wno-unused when compiling debug. Please ignore 14376any "_THIS_MODULE defined but not used" messages. 14377 14378Can now shut down the system using "magic sysrq" key. 14379 14380 143813) iASL Compiler version 2041: 14382 14383Fixed a problem where conversion errors for hex/octal/decimal 14384constants were not reported. 14385 14386Implemented a fix for the General Register template Address field. 14387This field was 8 bits when it should be 64. 14388 14389Fixed a problem where errors/warnings were no longer being emitted 14390within the listing output file. 14391 14392Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 14393exactly 4 characters, alphanumeric only. 14394 14395 14396 14397 14398---------------------------------------- 14399Summary of changes for this release: 03_08_02 14400 14401 144021) ACPI CA Core Subsystem Version 20020308: 14403 14404Fixed a problem with AML Fields where the use of the "AccessAny" 14405keyword could cause an interpreter error due to attempting to read 14406or write beyond the end of the parent Operation Region. 14407 14408Fixed a problem in the SystemMemory Operation Region handler where 14409an attempt was made to map memory beyond the end of the region. 14410This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 14411errors on some Linux systems. 14412 14413Fixed a problem where the interpreter/namespace "search to root" 14414algorithm was not functioning for some object types. Relaxed the 14415internal restriction on the search to allow upsearches for all 14416external object types as well as most internal types. 14417 14418 144192) Linux: 14420 14421We now use safe_halt() macro versus individual calls to sti | hlt. 14422 14423Writing to the processor limit interface should now work. "echo 1" 14424will increase the limit, 2 will decrease, and 0 will reset to the 14425 14426default. 14427 14428 144293) ASL compiler: 14430 14431Fixed segfault on Linux version. 14432 14433 14434---------------------------------------- 14435Summary of changes for this release: 02_25_02 14436 144371) ACPI CA Core Subsystem: 14438 14439 14440Fixed a problem where the GPE bit masks were not initialized 14441properly, causing erratic GPE behavior. 14442 14443Implemented limited support for multiple calling conventions. The 14444code can be generated with either the VPL (variable parameter 14445list, or "C") convention, or the FPL (fixed parameter list, or 14446"Pascal") convention. The core subsystem is about 3.4% smaller 14447when generated with FPL. 14448 14449 144502) Linux 14451 14452Re-add some /proc/acpi/event functionality that was lost during 14453the rewrite 14454 14455Resolved issue with /proc events for fixed-feature buttons showing 14456up as the system device. 14457 14458Fixed checks on C2/C3 latencies to be inclusive of maximum values. 14459 14460Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 14461 14462Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 14463 14464Fixed limit interface & usage to fix bugs with passive cooling 14465hysterisis. 14466 14467Restructured PRT support. 14468 14469 14470---------------------------------------- 14471Summary of changes for this label: 02_14_02 14472 14473 144741) ACPI CA Core Subsystem: 14475 14476Implemented support in AcpiLoadTable to allow loading of FACS and 14477FADT tables. 14478 14479Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 14480been removed. All 64-bit platforms should be migrated to the ACPI 144812.0 tables. The actbl71.h header has been removed from the source 14482tree. 14483 14484All C macros defined within the subsystem have been prefixed with 14485"ACPI_" to avoid collision with other system include files. 14486 14487Removed the return value for the two AcpiOsPrint interfaces, since 14488it is never used and causes lint warnings for ignoring the return 14489value. 14490 14491Added error checking to all internal mutex acquire and release 14492calls. Although a failure from one of these interfaces is 14493probably a fatal system error, these checks will cause the 14494immediate abort of the currently executing method or interface. 14495 14496Fixed a problem where the AcpiSetCurrentResources interface could 14497fault. This was a side effect of the deployment of the new memory 14498allocation model. 14499 14500Fixed a couple of problems with the Global Lock support introduced 14501in the last major build. The "common" (1.0/2.0) internal FACS was 14502being overwritten with the FACS signature and clobbering the 14503Global Lock pointer. Also, the actual firmware FACS was being 14504unmapped after construction of the "common" FACS, preventing 14505access to the actual Global Lock field within it. The "common" 14506internal FACS is no longer installed as an actual ACPI table; it 14507is used simply as a global. 14508 14509Code and Data Size: Current core subsystem library sizes are shown 14510below. These are the code and data sizes for the acpica.lib 14511produced by the Microsoft Visual C++ 6.0 compiler, and these 14512values do not include any ACPI driver or OSPM code. The debug 14513version of the code includes the debug output trace mechanism and 14514has a larger code and data size. Note that these values will vary 14515depending on the efficiency of the compiler and the compiler 14516options used during generation. 14517 14518 Previous Release (02_07_01) 14519 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 14520 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 14521 Current Release: 14522 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 14523 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 14524 14525 145262) Linux 14527 14528Updated Linux-specific code for core macro and OSL interface 14529changes described above. 14530 14531Improved /proc/acpi/event. It now can be opened only once and has 14532proper poll functionality. 14533 14534Fixed and restructured power management (acpi_bus). 14535 14536Only create /proc "view by type" when devices of that class exist. 14537 14538Fixed "charging/discharging" bug (and others) in acpi_battery. 14539 14540Improved thermal zone code. 14541 14542 145433) ASL Compiler, version X2039: 14544 14545 14546Implemented the new compiler restriction on ASL String hex/octal 14547escapes to non-null, ASCII values. An error results if an invalid 14548value is used. (This will require an ACPI 2.0 specification 14549change.) 14550 14551AML object labels that are output to the optional C and ASM source 14552are now prefixed with both the ACPI table signature and table ID 14553to help guarantee uniqueness within a large BIOS project. 14554 14555 14556---------------------------------------- 14557Summary of changes for this label: 02_01_02 14558 145591) ACPI CA Core Subsystem: 14560 14561ACPI 2.0 support is complete in the entire Core Subsystem and the 14562ASL compiler. All new ACPI 2.0 operators are implemented and all 14563other changes for ACPI 2.0 support are complete. With 14564simultaneous code and data optimizations throughout the subsystem, 14565ACPI 2.0 support has been implemented with almost no additional 14566cost in terms of code and data size. 14567 14568Implemented a new mechanism for allocation of return buffers. If 14569the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 14570be allocated on behalf of the caller. Consolidated all return 14571buffer validation and allocation to a common procedure. Return 14572buffers will be allocated via the primary OSL allocation interface 14573since it appears that a separate pool is not needed by most users. 14574If a separate pool is required for these buffers, the caller can 14575still use the original mechanism and pre-allocate the buffer(s). 14576 14577Implemented support for string operands within the DerefOf 14578operator. 14579 14580Restructured the Hardware and Event managers to be table driven, 14581simplifying the source code and reducing the amount of generated 14582code. 14583 14584Split the common read/write low-level ACPI register bitfield 14585procedure into a separate read and write, simplifying the code 14586considerably. 14587 14588Obsoleted the AcpiOsCallocate OSL interface. This interface was 14589used only a handful of times and didn't have enough critical mass 14590for a separate interface. Replaced with a common calloc procedure 14591in the core. 14592 14593Fixed a reported problem with the GPE number mapping mechanism 14594that allows GPE1 numbers to be non-contiguous with GPE0. 14595Reorganized the GPE information and shrunk a large array that was 14596originally large enough to hold info for all possible GPEs (256) 14597to simply large enough to hold all GPEs up to the largest GPE 14598number on the machine. 14599 14600Fixed a reported problem with resource structure alignment on 64- 14601bit platforms. 14602 14603Changed the AcpiEnableEvent and AcpiDisableEvent external 14604interfaces to not require any flags for the common case of 14605enabling/disabling a GPE. 14606 14607Implemented support to allow a "Notify" on a Processor object. 14608 14609Most TBDs in comments within the source code have been resolved 14610and eliminated. 14611 14612 14613Fixed a problem in the interpreter where a standalone parent 14614prefix (^) was not handled correctly in the interpreter and 14615debugger. 14616 14617Removed obsolete and unnecessary GPE save/restore code. 14618 14619Implemented Field support in the ASL Load operator. This allows a 14620table to be loaded from a named field, in addition to loading a 14621table directly from an Operation Region. 14622 14623Implemented timeout and handle support in the external Global Lock 14624interfaces. 14625 14626Fixed a problem in the AcpiDump utility where pathnames were no 14627longer being generated correctly during the dump of named objects. 14628 14629Modified the AML debugger to give a full display of if/while 14630predicates instead of just one AML opcode at a time. (The 14631predicate can have several nested ASL statements.) The old method 14632was confusing during single stepping. 14633 14634Code and Data Size: Current core subsystem library sizes are shown 14635below. These are the code and data sizes for the acpica.lib 14636produced by the Microsoft Visual C++ 6.0 compiler, and these 14637values do not include any ACPI driver or OSPM code. The debug 14638version of the code includes the debug output trace mechanism and 14639has a larger code and data size. Note that these values will vary 14640depending on the efficiency of the compiler and the compiler 14641options used during generation. 14642 14643 Previous Release (12_18_01) 14644 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 14645 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 14646 Current Release: 14647 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 14648 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 14649 146502) Linux 14651 14652 Implemented fix for PIIX reverse throttling errata (Processor 14653driver) 14654 14655Added new Limit interface (Processor and Thermal drivers) 14656 14657New thermal policy (Thermal driver) 14658 14659Many updates to /proc 14660 14661Battery "low" event support (Battery driver) 14662 14663Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 14664 14665IA32 - IA64 initialization unification, no longer experimental 14666 14667Menuconfig options redesigned 14668 146693) ASL Compiler, version X2037: 14670 14671Implemented several new output features to simplify integration of 14672AML code into firmware: 1) Output the AML in C source code with 14673labels for each named ASL object. The original ASL source code 14674is interleaved as C comments. 2) Output the AML in ASM source code 14675with labels and interleaved ASL source. 3) Output the AML in 14676raw hex table form, in either C or ASM. 14677 14678Implemented support for optional string parameters to the 14679LoadTable operator. 14680 14681Completed support for embedded escape sequences within string 14682literals. The compiler now supports all single character escapes 14683as well as the Octal and Hex escapes. Note: the insertion of a 14684null byte into a string literal (via the hex/octal escape) causes 14685the string to be immediately terminated. A warning is issued. 14686 14687Fixed a problem where incorrect AML was generated for the case 14688where an ASL namepath consists of a single parent prefix ( 14689 14690) with no trailing name segments. 14691 14692The compiler has been successfully generated with a 64-bit C 14693compiler. 14694 14695 14696 14697 14698---------------------------------------- 14699Summary of changes for this label: 12_18_01 14700 147011) Linux 14702 14703Enhanced blacklist with reason and severity fields. Any table's 14704signature may now be used to identify a blacklisted system. 14705 14706Call _PIC control method to inform the firmware which interrupt 14707model the OS is using. Turn on any disabled link devices. 14708 14709Cleaned up busmgr /proc error handling (Andreas Dilger) 14710 14711 2) ACPI CA Core Subsystem: 14712 14713Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 14714while loop) 14715 14716Completed implementation of the ACPI 2.0 "Continue", 14717"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 14718operators. All new ACPI 2.0 operators are now implemented in both 14719the ASL compiler and the AML interpreter. The only remaining ACPI 147202.0 task is support for the String data type in the DerefOf 14721operator. Fixed a problem with AcquireMutex where the status code 14722was lost if the caller had to actually wait for the mutex. 14723 14724Increased the maximum ASL Field size from 64K bits to 4G bits. 14725 14726Completed implementation of the external Global Lock interfaces -- 14727AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 14728Handler parameters were added. 14729 14730Completed another pass at removing warnings and issues when 14731compiling with 64-bit compilers. The code now compiles cleanly 14732with the Intel 64-bit C/C++ compiler. Most notably, the pointer 14733add and subtract (diff) macros have changed considerably. 14734 14735 14736Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1473764-bit platforms, 32-bits on all others. This type is used 14738wherever memory allocation and/or the C sizeof() operator is used, 14739and affects the OSL memory allocation interfaces AcpiOsAllocate 14740and AcpiOsCallocate. 14741 14742Implemented sticky user breakpoints in the AML debugger. 14743 14744Code and Data Size: Current core subsystem library sizes are shown 14745below. These are the code and data sizes for the acpica.lib 14746produced by the Microsoft Visual C++ 6.0 compiler, and these 14747values do not include any ACPI driver or OSPM code. The debug 14748version of the code includes the debug output trace mechanism and 14749has a larger code and data size. Note that these values will vary 14750depending on the efficiency of the compiler and the compiler 14751options used during generation. 14752 14753 Previous Release (12_05_01) 14754 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 14755 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 14756 Current Release: 14757 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 14758 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 14759 14760 3) ASL Compiler, version X2034: 14761 14762Now checks for (and generates an error if detected) the use of a 14763Break or Continue statement without an enclosing While statement. 14764 14765 14766Successfully generated the compiler with the Intel 64-bit C 14767compiler. 14768 14769 ---------------------------------------- 14770Summary of changes for this label: 12_05_01 14771 14772 1) ACPI CA Core Subsystem: 14773 14774The ACPI 2.0 CopyObject operator is fully implemented. This 14775operator creates a new copy of an object (and is also used to 14776bypass the "implicit conversion" mechanism of the Store operator.) 14777 14778The ACPI 2.0 semantics for the SizeOf operator are fully 14779implemented. The change is that performing a SizeOf on a 14780reference object causes an automatic dereference of the object to 14781tha actual value before the size is evaluated. This behavior was 14782undefined in ACPI 1.0. 14783 14784The ACPI 2.0 semantics for the Extended IRQ resource descriptor 14785have been implemented. The interrupt polarity and mode are now 14786independently set. 14787 14788Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 14789appearing in Package objects were not properly converted to 14790integers when the internal Package was converted to an external 14791object (via the AcpiEvaluateObject interface.) 14792 14793Fixed a problem with the namespace object deletion mechanism for 14794objects created by control methods. There were two parts to this 14795problem: 1) Objects created during the initialization phase method 14796parse were not being deleted, and 2) The object owner ID mechanism 14797to track objects was broken. 14798 14799Fixed a problem where the use of the ASL Scope operator within a 14800control method would result in an invalid opcode exception. 14801 14802Fixed a problem introduced in the previous label where the buffer 14803length required for the _PRT structure was not being returned 14804correctly. 14805 14806Code and Data Size: Current core subsystem library sizes are shown 14807below. These are the code and data sizes for the acpica.lib 14808produced by the Microsoft Visual C++ 6.0 compiler, and these 14809values do not include any ACPI driver or OSPM code. The debug 14810version of the code includes the debug output trace mechanism and 14811has a larger code and data size. Note that these values will vary 14812depending on the efficiency of the compiler and the compiler 14813options used during generation. 14814 14815 Previous Release (11_20_01) 14816 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 14817 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 14818 14819 Current Release: 14820 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 14821 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 14822 14823 2) Linux: 14824 14825Updated all files to apply cleanly against 2.4.16. 14826 14827Added basic PCI Interrupt Routing Table (PRT) support for IA32 14828(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 14829version supports both static and dyanmic PRT entries, but dynamic 14830entries are treated as if they were static (not yet 14831reconfigurable). Architecture- specific code to use this data is 14832absent on IA32 but should be available shortly. 14833 14834Changed the initialization sequence to start the ACPI interpreter 14835(acpi_init) prior to initialization of the PCI driver (pci_init) 14836in init/main.c. This ordering is required to support PRT and 14837facilitate other (future) enhancement. A side effect is that the 14838ACPI bus driver and certain device drivers can no longer be loaded 14839as modules. 14840 14841Modified the 'make menuconfig' options to allow PCI Interrupt 14842Routing support to be included without the ACPI Bus and other 14843device drivers. 14844 14845 3) ASL Compiler, version X2033: 14846 14847Fixed some issues with the use of the new CopyObject and 14848DataTableRegion operators. Both are fully functional. 14849 14850 ---------------------------------------- 14851Summary of changes for this label: 11_20_01 14852 14853 20 November 2001. Summary of changes for this release. 14854 14855 1) ACPI CA Core Subsystem: 14856 14857Updated Index support to match ACPI 2.0 semantics. Storing a 14858Integer, String, or Buffer to an Index of a Buffer will store only 14859the least-significant byte of the source to the Indexed buffer 14860byte. Multiple writes are not performed. 14861 14862Fixed a problem where the access type used in an AccessAs ASL 14863operator was not recorded correctly into the field object. 14864 14865Fixed a problem where ASL Event objects were created in a 14866signalled state. Events are now created in an unsignalled state. 14867 14868The internal object cache is now purged after table loading and 14869initialization to reduce the use of dynamic kernel memory -- on 14870the assumption that object use is greatest during the parse phase 14871of the entire table (versus the run-time use of individual control 14872methods.) 14873 14874ACPI 2.0 variable-length packages are now fully operational. 14875 14876Code and Data Size: Code and Data optimizations have permitted new 14877feature development with an actual reduction in the library size. 14878Current core subsystem library sizes are shown below. These are 14879the code and data sizes for the acpica.lib produced by the 14880Microsoft Visual C++ 6.0 compiler, and these values do not include 14881any ACPI driver or OSPM code. The debug version of the code 14882includes the debug output trace mechanism and has a larger code 14883and data size. Note that these values will vary depending on the 14884efficiency of the compiler and the compiler options used during 14885generation. 14886 14887 Previous Release (11_09_01): 14888 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 14889 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 14890 14891 Current Release: 14892 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 14893 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 14894 14895 2) Linux: 14896 14897Enhanced the ACPI boot-time initialization code to allow the use 14898of Local APIC tables for processor enumeration on IA-32, and to 14899pave the way for a fully MPS-free boot (on SMP systems) in the 14900near future. This functionality replaces 14901arch/i386/kernel/acpitables.c, which was introduced in an earlier 149022.4.15-preX release. To enable this feature you must add 14903"acpi_boot=on" to the kernel command line -- see the help entry 14904for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 14905the works... 14906 14907Restructured the configuration options to allow boot-time table 14908parsing support without inclusion of the ACPI Interpreter (and 14909other) code. 14910 14911NOTE: This release does not include fixes for the reported events, 14912power-down, and thermal passive cooling issues (coming soon). 14913 14914 3) ASL Compiler: 14915 14916Added additional typechecking for Fields within restricted access 14917Operation Regions. All fields within EC and CMOS regions must be 14918declared with ByteAcc. All fields withing SMBus regions must be 14919declared with the BufferAcc access type. 14920 14921Fixed a problem where the listing file output of control methods 14922no longer interleaved the actual AML code with the ASL source 14923code. 14924 14925 14926 14927 14928---------------------------------------- 14929Summary of changes for this label: 11_09_01 14930 149311) ACPI CA Core Subsystem: 14932 14933Implemented ACPI 2.0-defined support for writes to fields with a 14934Buffer, String, or Integer source operand that is smaller than the 14935target field. In these cases, the source operand is zero-extended 14936to fill the target field. 14937 14938Fixed a problem where a Field starting bit offset (within the 14939parent operation region) was calculated incorrectly if the 14940 14941alignment of the field differed from the access width. This 14942affected CreateWordField, CreateDwordField, CreateQwordField, and 14943possibly other fields that use the "AccessAny" keyword. 14944 14945Fixed a problem introduced in the 11_02_01 release where indirect 14946stores through method arguments did not operate correctly. 14947 149482) Linux: 14949 14950Implemented boot-time ACPI table parsing support 14951(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 14952facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 14953legacy BIOS interfaces (e.g. MPS) for the configuration of system 14954processors, memory, and interrupts during setup_arch(). Note that 14955this patch does not include the required architecture-specific 14956changes required to apply this information -- subsequent patches 14957will be posted for both IA32 and IA64 to achieve this. 14958 14959Added low-level sleep support for IA32 platforms, courtesy of Pat 14960Mochel. This allows IA32 systems to transition to/from various 14961sleeping states (e.g. S1, S3), although the lack of a centralized 14962driver model and power-manageable drivers will prevent its 14963(successful) use on most systems. 14964 14965Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 14966submenu, unified IA32 and IA64 options, added new "Boot using ACPI 14967tables" option, etc. 14968 14969Increased the default timeout for the EC driver from 1ms to 10ms 14970(1000 cycles of 10us) to try to address AE_TIME errors during EC 14971transactions. 14972 14973 ---------------------------------------- 14974Summary of changes for this label: 11_02_01 14975 149761) ACPI CA Core Subsystem: 14977 14978ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 14979(QWordAcc keyword). All ACPI 2.0 64-bit support is now 14980implemented. 14981 14982OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 14983changes to support ACPI 2.0 Qword field access. Read/Write 14984PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 14985accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 14986the value parameter for the address space handler interface is now 14987an ACPI_INTEGER. OSL implementations of these interfaces must now 14988handle the case where the Width parameter is 64. 14989 14990Index Fields: Fixed a problem where unaligned bit assembly and 14991disassembly for IndexFields was not supported correctly. 14992 14993Index and Bank Fields: Nested Index and Bank Fields are now 14994supported. During field access, a check is performed to ensure 14995that the value written to an Index or Bank register is not out of 14996the range of the register. The Index (or Bank) register is 14997written before each access to the field data. Future support will 14998include allowing individual IndexFields to be wider than the 14999DataRegister width. 15000 15001Fields: Fixed a problem where the AML interpreter was incorrectly 15002attempting to write beyond the end of a Field/OpRegion. This was 15003a boundary case that occurred when a DWORD field was written to a 15004BYTE access OpRegion, forcing multiple writes and causing the 15005interpreter to write one datum too many. 15006 15007Fields: Fixed a problem with Field/OpRegion access where the 15008starting bit address of a field was incorrectly calculated if the 15009current access type was wider than a byte (WordAcc, DwordAcc, or 15010QwordAcc). 15011 15012Fields: Fixed a problem where forward references to individual 15013FieldUnits (individual Field names within a Field definition) were 15014not resolved during the AML table load. 15015 15016Fields: Fixed a problem where forward references from a Field 15017definition to the parent Operation Region definition were not 15018resolved during the AML table load. 15019 15020Fields: Duplicate FieldUnit names within a scope are now detected 15021during AML table load. 15022 15023Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 15024returned an incorrect name for the root node. 15025 15026Code and Data Size: Code and Data optimizations have permitted new 15027feature development with an actual reduction in the library size. 15028Current core subsystem library sizes are shown below. These are 15029the code and data sizes for the acpica.lib produced by the 15030Microsoft Visual C++ 6.0 compiler, and these values do not include 15031any ACPI driver or OSPM code. The debug version of the code 15032includes the debug output trace mechanism and has a larger code 15033and data size. Note that these values will vary depending on the 15034efficiency of the compiler and the compiler options used during 15035generation. 15036 15037 Previous Release (10_18_01): 15038 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 15039 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 15040 15041 Current Release: 15042 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 15043 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 15044 15045 2) Linux: 15046 15047Improved /proc processor output (Pavel Machek) Re-added 15048MODULE_LICENSE("GPL") to all modules. 15049 15050 3) ASL Compiler version X2030: 15051 15052Duplicate FieldUnit names within a scope are now detected and 15053flagged as errors. 15054 15055 4) Documentation: 15056 15057Programmer Reference updated to reflect OSL and address space 15058handler interface changes described above. 15059 15060---------------------------------------- 15061Summary of changes for this label: 10_18_01 15062 15063ACPI CA Core Subsystem: 15064 15065Fixed a problem with the internal object reference count mechanism 15066that occasionally caused premature object deletion. This resolves 15067all of the outstanding problem reports where an object is deleted 15068in the middle of an interpreter evaluation. Although this problem 15069only showed up in rather obscure cases, the solution to the 15070problem involved an adjustment of all reference counts involving 15071objects attached to namespace nodes. 15072 15073Fixed a problem with Field support in the interpreter where 15074writing to an aligned field whose length is an exact multiple (2 15075or greater) of the field access granularity would cause an attempt 15076to write beyond the end of the field. 15077 15078The top level AML opcode execution functions within the 15079interpreter have been renamed with a more meaningful and 15080consistent naming convention. The modules exmonad.c and 15081exdyadic.c were eliminated. New modules are exoparg1.c, 15082exoparg2.c, exoparg3.c, and exoparg6.c. 15083 15084Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 15085 15086Fixed a problem where the AML debugger was causing some internal 15087objects to not be deleted during subsystem termination. 15088 15089Fixed a problem with the external AcpiEvaluateObject interface 15090where the subsystem would fault if the named object to be 15091evaluated refered to a constant such as Zero, Ones, etc. 15092 15093Fixed a problem with IndexFields and BankFields where the 15094subsystem would fault if the index, data, or bank registers were 15095not defined in the same scope as the field itself. 15096 15097Added printf format string checking for compilers that support 15098this feature. Corrected more than 50 instances of issues with 15099format specifiers within invocations of ACPI_DEBUG_PRINT 15100throughout the core subsystem code. 15101 15102The ASL "Revision" operator now returns the ACPI support level 15103implemented in the core - the value "2" since the ACPI 2.0 support 15104is more than 50% implemented. 15105 15106Enhanced the output of the AML debugger "dump namespace" command 15107to output in a more human-readable form. 15108 15109Current core subsystem library code sizes are shown below. These 15110 15111are the code and data sizes for the acpica.lib produced by the 15112Microsoft Visual C++ 6.0 compiler, and these values do not include 15113any ACPI driver or OSPM code. The debug version of the code 15114includes the full debug trace mechanism -- leading to a much 15115 15116larger code and data size. Note that these values will vary 15117depending on the efficiency of the compiler and the compiler 15118options used during generation. 15119 15120 Previous Label (09_20_01): 15121 Non-Debug Version: 65K Code, 5K Data, 70K Total 15122 Debug Version: 138K Code, 58K Data, 196K Total 15123 15124 This Label: 15125 15126 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 15127 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 15128 15129Linux: 15130 15131Implemented a "Bad BIOS Blacklist" to track machines that have 15132known ASL/AML problems. 15133 15134Enhanced the /proc interface for the thermal zone driver and added 15135support for _HOT (the critical suspend trip point). The 'info' 15136file now includes threshold/policy information, and allows setting 15137of _SCP (cooling preference) and _TZP (polling frequency) values 15138to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 15139frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 15140preference to the passive/quiet mode (if supported by the ASL). 15141 15142Implemented a workaround for a gcc bug that resuted in an OOPs 15143when loading the control method battery driver. 15144 15145 ---------------------------------------- 15146Summary of changes for this label: 09_20_01 15147 15148 ACPI CA Core Subsystem: 15149 15150The AcpiEnableEvent and AcpiDisableEvent interfaces have been 15151modified to allow individual GPE levels to be flagged as wake- 15152enabled (i.e., these GPEs are to remain enabled when the platform 15153sleeps.) 15154 15155The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 15156support wake-enabled GPEs. This means that upon entering the 15157sleep state, all GPEs that are not wake-enabled are disabled. 15158When leaving the sleep state, these GPEs are reenabled. 15159 15160A local double-precision divide/modulo module has been added to 15161enhance portability to OS kernels where a 64-bit math library is 15162not available. The new module is "utmath.c". 15163 15164Several optimizations have been made to reduce the use of CPU 15165stack. Originally over 2K, the maximum stack usage is now below 151662K at 1860 bytes (1.82k) 15167 15168Fixed a problem with the AcpiGetFirmwareTable interface where the 15169root table pointer was not mapped into a logical address properly. 15170 15171Fixed a problem where a NULL pointer was being dereferenced in the 15172interpreter code for the ASL Notify operator. 15173 15174Fixed a problem where the use of the ASL Revision operator 15175returned an error. This operator now returns the current version 15176of the ACPI CA core subsystem. 15177 15178Fixed a problem where objects passed as control method parameters 15179to AcpiEvaluateObject were always deleted at method termination. 15180However, these objects may end up being stored into the namespace 15181by the called method. The object reference count mechanism was 15182applied to these objects instead of a force delete. 15183 15184Fixed a problem where static strings or buffers (contained in the 15185AML code) that are declared as package elements within the ASL 15186code could cause a fault because the interpreter would attempt to 15187delete them. These objects are now marked with the "static 15188object" flag to prevent any attempt to delete them. 15189 15190Implemented an interpreter optimization to use operands directly 15191from the state object instead of extracting the operands to local 15192variables. This reduces stack use and code size, and improves 15193performance. 15194 15195The module exxface.c was eliminated as it was an unnecessary extra 15196layer of code. 15197 15198Current core subsystem library code sizes are shown below. These 15199are the code and data sizes for the acpica.lib produced by the 15200Microsoft Visual C++ 6.0 compiler, and these values do not include 15201any ACPI driver or OSPM code. The debug version of the code 15202includes the full debug trace mechanism -- leading to a much 15203larger code and data size. Note that these values will vary 15204depending on the efficiency of the compiler and the compiler 15205options used during generation. 15206 15207 Non-Debug Version: 65K Code, 5K Data, 70K Total 15208(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 15209Total (Previously 195K) 15210 15211Linux: 15212 15213Support for ACPI 2.0 64-bit integers has been added. All ACPI 15214Integer objects are now 64 bits wide 15215 15216All Acpi data types and structures are now in lower case. Only 15217Acpi macros are upper case for differentiation. 15218 15219 Documentation: 15220 15221Changes to the external interfaces as described above. 15222 15223 ---------------------------------------- 15224Summary of changes for this label: 08_31_01 15225 15226 ACPI CA Core Subsystem: 15227 15228A bug with interpreter implementation of the ASL Divide operator 15229was found and fixed. The implicit function return value (not the 15230explicit store operands) was returning the remainder instead of 15231the quotient. This was a longstanding bug and it fixes several 15232known outstanding issues on various platforms. 15233 15234The ACPI_DEBUG_PRINT and function trace entry/exit macros have 15235been further optimized for size. There are 700 invocations of the 15236DEBUG_PRINT macro alone, so each optimization reduces the size of 15237the debug version of the subsystem significantly. 15238 15239A stack trace mechanism has been implemented. The maximum stack 15240usage is about 2K on 32-bit platforms. The debugger command "stat 15241stack" will display the current maximum stack usage. 15242 15243All public symbols and global variables within the subsystem are 15244now prefixed with the string "Acpi". This keeps all of the 15245symbols grouped together in a kernel map, and avoids conflicts 15246with other kernel subsystems. 15247 15248Most of the internal fixed lookup tables have been moved into the 15249code segment via the const operator. 15250 15251Several enhancements have been made to the interpreter to both 15252reduce the code size and improve performance. 15253 15254Current core subsystem library code sizes are shown below. These 15255are the code and data sizes for the acpica.lib produced by the 15256Microsoft Visual C++ 6.0 compiler, and these values do not include 15257any ACPI driver or OSPM code. The debug version of the code 15258includes the full debug trace mechanism which contains over 700 15259invocations of the DEBUG_PRINT macro, 500 function entry macro 15260invocations, and over 900 function exit macro invocations -- 15261leading to a much larger code and data size. Note that these 15262values will vary depending on the efficiency of the compiler and 15263the compiler options used during generation. 15264 15265 Non-Debug Version: 64K Code, 5K Data, 69K Total 15266Debug Version: 137K Code, 58K Data, 195K Total 15267 15268 Linux: 15269 15270Implemented wbinvd() macro, pending a kernel-wide definition. 15271 15272Fixed /proc/acpi/event to handle poll() and short reads. 15273 15274 ASL Compiler, version X2026: 15275 15276Fixed a problem introduced in the previous label where the AML 15277 15278code emitted for package objects produced packages with zero 15279length. 15280 15281 ---------------------------------------- 15282Summary of changes for this label: 08_16_01 15283 15284ACPI CA Core Subsystem: 15285 15286The following ACPI 2.0 ASL operators have been implemented in the 15287AML interpreter (These are already supported by the Intel ASL 15288compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 15289ToBuffer. Support for 64-bit AML constants is implemented in the 15290AML parser, debugger, and disassembler. 15291 15292The internal memory tracking mechanism (leak detection code) has 15293been upgraded to reduce the memory overhead (a separate tracking 15294block is no longer allocated for each memory allocation), and now 15295supports all of the internal object caches. 15296 15297The data structures and code for the internal object caches have 15298been coelesced and optimized so that there is a single cache and 15299memory list data structure and a single group of functions that 15300implement generic cache management. This has reduced the code 15301size in both the debug and release versions of the subsystem. 15302 15303The DEBUG_PRINT macro(s) have been optimized for size and replaced 15304by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 15305different, because it generates a single call to an internal 15306function. This results in a savings of about 90 bytes per 15307invocation, resulting in an overall code and data savings of about 1530816% in the debug version of the subsystem. 15309 15310 Linux: 15311 15312Fixed C3 disk corruption problems and re-enabled C3 on supporting 15313machines. 15314 15315Integrated low-level sleep code by Patrick Mochel. 15316 15317Further tweaked source code Linuxization. 15318 15319Other minor fixes. 15320 15321 ASL Compiler: 15322 15323Support for ACPI 2.0 variable length packages is fixed/completed. 15324 15325Fixed a problem where the optional length parameter for the ACPI 153262.0 ToString operator. 15327 15328Fixed multiple extraneous error messages when a syntax error is 15329detected within the declaration line of a control method. 15330 15331 ---------------------------------------- 15332Summary of changes for this label: 07_17_01 15333 15334ACPI CA Core Subsystem: 15335 15336Added a new interface named AcpiGetFirmwareTable to obtain any 15337ACPI table via the ACPI signature. The interface can be called at 15338any time during kernel initialization, even before the kernel 15339virtual memory manager is initialized and paging is enabled. This 15340allows kernel subsystems to obtain ACPI tables very early, even 15341before the ACPI CA subsystem is initialized. 15342 15343Fixed a problem where Fields defined with the AnyAcc attribute 15344could be resolved to the incorrect address under the following 15345conditions: 1) the field width is larger than 8 bits and 2) the 15346parent operation region is not defined on a DWORD boundary. 15347 15348Fixed a problem where the interpreter is not being locked during 15349namespace initialization (during execution of the _INI control 15350methods), causing an error when an attempt is made to release it 15351later. 15352 15353ACPI 2.0 support in the AML Interpreter has begun and will be 15354ongoing throughout the rest of this year. In this label, The Mod 15355operator is implemented. 15356 15357Added a new data type to contain full PCI addresses named 15358ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 15359and Function values. 15360 15361 Linux: 15362 15363Enhanced the Linux version of the source code to change most 15364capitalized ACPI type names to lowercase. For example, all 15365instances of ACPI_STATUS are changed to acpi_status. This will 15366result in a large diff, but the change is strictly cosmetic and 15367aligns the CA code closer to the Linux coding standard. 15368 15369OSL Interfaces: 15370 15371The interfaces to the PCI configuration space have been changed to 15372add the PCI Segment number and to split the single 32-bit combined 15373DeviceFunction field into two 16-bit fields. This was 15374accomplished by moving the four values that define an address in 15375PCI configuration space (segment, bus, device, and function) to 15376the new ACPI_PCI_ID structure. 15377 15378The changes to the PCI configuration space interfaces led to a 15379reexamination of the complete set of address space access 15380interfaces for PCI, I/O, and Memory. The previously existing 18 15381interfaces have proven difficult to maintain (any small change 15382must be propagated across at least 6 interfaces) and do not easily 15383allow for future expansion to 64 bits if necessary. Also, on some 15384systems, it would not be appropriate to demultiplex the access 15385width (8, 16, 32,or 64) before calling the OSL if the 15386corresponding native OS interfaces contain a similar access width 15387parameter. For these reasons, the 18 address space interfaces 15388have been replaced by these 6 new ones: 15389 15390AcpiOsReadPciConfiguration 15391AcpiOsWritePciConfiguration 15392AcpiOsReadMemory 15393AcpiOsWriteMemory 15394AcpiOsReadPort 15395AcpiOsWritePort 15396 15397Added a new interface named AcpiOsGetRootPointer to allow the OSL 15398to perform the platform and/or OS-specific actions necessary to 15399obtain the ACPI RSDP table pointer. On IA-32 platforms, this 15400interface will simply call down to the CA core to perform the low- 15401memory search for the table. On IA-64, the RSDP is obtained from 15402EFI. Migrating this interface to the OSL allows the CA core to 15403 15404remain OS and platform independent. 15405 15406Added a new interface named AcpiOsSignal to provide a generic 15407"function code and pointer" interface for various miscellaneous 15408signals and notifications that must be made to the host OS. The 15409first such signals are intended to support the ASL Fatal and 15410Breakpoint operators. In the latter case, the AcpiOsBreakpoint 15411interface has been obsoleted. 15412 15413The definition of the AcpiFormatException interface has been 15414changed to simplify its use. The caller no longer must supply a 15415buffer to the call; A pointer to a const string is now returned 15416directly. This allows the call to be easily used in printf 15417statements, etc. since the caller does not have to manage a local 15418buffer. 15419 15420 15421 ASL Compiler, Version X2025: 15422 15423The ACPI 2.0 Switch/Case/Default operators have been implemented 15424and are fully functional. They will work with all ACPI 1.0 15425interpreters, since the operators are simply translated to If/Else 15426pairs. 15427 15428The ACPI 2.0 ElseIf operator is implemented and will also work 15429with 1.0 interpreters, for the same reason. 15430 15431Implemented support for ACPI 2.0 variable-length packages. These 15432packages have a separate opcode, and their size is determined by 15433the interpreter at run-time. 15434 15435Documentation The ACPI CA Programmer Reference has been updated to 15436reflect the new interfaces and changes to existing interfaces. 15437 15438 ------------------------------------------ 15439Summary of changes for this label: 06_15_01 15440 15441 ACPI CA Core Subsystem: 15442 15443Fixed a problem where a DWORD-accessed field within a Buffer 15444object would get its byte address inadvertently rounded down to 15445the nearest DWORD. Buffers are always Byte-accessible. 15446 15447 ASL Compiler, version X2024: 15448 15449Fixed a problem where the Switch() operator would either fault or 15450hang the compiler. Note however, that the AML code for this ACPI 154512.0 operator is not yet implemented. 15452 15453Compiler uses the new AcpiOsGetTimer interface to obtain compile 15454timings. 15455 15456Implementation of the CreateField operator automatically converts 15457a reference to a named field within a resource descriptor from a 15458byte offset to a bit offset if required. 15459 15460Added some missing named fields from the resource descriptor 15461support. These are the names that are automatically created by the 15462compiler to reference fields within a descriptor. They are only 15463valid at compile time and are not passed through to the AML 15464interpreter. 15465 15466Resource descriptor named fields are now typed as Integers and 15467subject to compile-time typechecking when used in expressions. 15468 15469 ------------------------------------------ 15470Summary of changes for this label: 05_18_01 15471 15472 ACPI CA Core Subsystem: 15473 15474Fixed a couple of problems in the Field support code where bits 15475from adjacent fields could be returned along with the proper field 15476bits. Restructured the field support code to improve performance, 15477readability and maintainability. 15478 15479New DEBUG_PRINTP macro automatically inserts the procedure name 15480into the output, saving hundreds of copies of procedure name 15481strings within the source, shrinking the memory footprint of the 15482debug version of the core subsystem. 15483 15484 Source Code Structure: 15485 15486The source code directory tree was restructured to reflect the 15487current organization of the component architecture. Some files 15488and directories have been moved and/or renamed. 15489 15490 Linux: 15491 15492Fixed leaking kacpidpc processes. 15493 15494Fixed queueing event data even when /proc/acpi/event is not 15495opened. 15496 15497 ASL Compiler, version X2020: 15498 15499Memory allocation performance enhancement - over 24X compile time 15500improvement on large ASL files. Parse nodes and namestring 15501buffers are now allocated from a large internal compiler buffer. 15502 15503The temporary .SRC file is deleted unless the "-s" option is 15504specified 15505 15506The "-d" debug output option now sends all output to the .DBG file 15507instead of the console. 15508 15509"External" second parameter is now optional 15510 15511"ElseIf" syntax now properly allows the predicate 15512 15513Last operand to "Load" now recognized as a Target operand 15514 15515Debug object can now be used anywhere as a normal object. 15516 15517ResourceTemplate now returns an object of type BUFFER 15518 15519EISAID now returns an object of type INTEGER 15520 15521"Index" now works with a STRING operand 15522 15523"LoadTable" now accepts optional parameters 15524 15525"ToString" length parameter is now optional 15526 15527"Interrupt (ResourceType," parse error fixed. 15528 15529"Register" with a user-defined region space parse error fixed 15530 15531Escaped backslash at the end of a string ("\\") scan/parse error 15532fixed 15533 15534"Revision" is now an object of type INTEGER. 15535 15536 15537 15538------------------------------------------ 15539Summary of changes for this label: 05_02_01 15540 15541Linux: 15542 15543/proc/acpi/event now blocks properly. 15544 15545Removed /proc/sys/acpi. You can still dump your DSDT from 15546/proc/acpi/dsdt. 15547 15548 ACPI CA Core Subsystem: 15549 15550Fixed a problem introduced in the previous label where some of the 15551"small" resource descriptor types were not recognized. 15552 15553Improved error messages for the case where an ASL Field is outside 15554the range of the parent operation region. 15555 15556 ASL Compiler, version X2018: 15557 15558 15559Added error detection for ASL Fields that extend beyond the length 15560of the parent operation region (only if the length of the region 15561is known at compile time.) This includes fields that have a 15562minimum access width that is smaller than the parent region, and 15563individual field units that are partially or entirely beyond the 15564extent of the parent. 15565 15566 15567 15568------------------------------------------ 15569Summary of changes for this label: 04_27_01 15570 15571 ACPI CA Core Subsystem: 15572 15573Fixed a problem where the namespace mutex could be released at the 15574wrong time during execution of AcpiRemoveAddressSpaceHandler. 15575 15576Added optional thread ID output for debug traces, to simplify 15577debugging of multiple threads. Added context switch notification 15578when the debug code realizes that a different thread is now 15579executing ACPI code. 15580 15581Some additional external data types have been prefixed with the 15582string "ACPI_" for consistency. This may effect existing code. 15583The data types affected are the external callback typedefs - e.g., 15584 15585WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 15586 15587 Linux: 15588 15589Fixed an issue with the OSL semaphore implementation where a 15590thread was waking up with an error from receiving a SIGCHLD 15591signal. 15592 15593Linux version of ACPI CA now uses the system C library for string 15594manipulation routines instead of a local implementation. 15595 15596Cleaned up comments and removed TBDs. 15597 15598 ASL Compiler, version X2017: 15599 15600Enhanced error detection and reporting for all file I/O 15601operations. 15602 15603 Documentation: 15604 15605Programmer Reference updated to version 1.06. 15606 15607 15608 15609------------------------------------------ 15610Summary of changes for this label: 04_13_01 15611 15612 ACPI CA Core Subsystem: 15613 15614Restructured support for BufferFields and RegionFields. 15615BankFields support is now fully operational. All known 32-bit 15616limitations on field sizes have been removed. Both BufferFields 15617and (Operation) RegionFields are now supported by the same field 15618management code. 15619 15620Resource support now supports QWORD address and IO resources. The 1562116/32/64 bit address structures and the Extended IRQ structure 15622have been changed to properly handle Source Resource strings. 15623 15624A ThreadId of -1 is now used to indicate a "mutex not acquired" 15625condition internally and must never be returned by AcpiOsThreadId. 15626This reserved value was changed from 0 since Unix systems allow a 15627thread ID of 0. 15628 15629Linux: 15630 15631Driver code reorganized to enhance portability 15632 15633Added a kernel configuration option to control ACPI_DEBUG 15634 15635Fixed the EC driver to honor _GLK. 15636 15637ASL Compiler, version X2016: 15638 15639Fixed support for the "FixedHw" keyword. Previously, the FixedHw 15640address space was set to 0, not 0x7f as it should be. 15641 15642 ------------------------------------------ 15643Summary of changes for this label: 03_13_01 15644 15645 ACPI CA Core Subsystem: 15646 15647During ACPI initialization, the _SB_._INI method is now run if 15648present. 15649 15650Notify handler fix - notifies are deferred until the parent method 15651completes execution. This fixes the "mutex already acquired" 15652issue seen occasionally. 15653 15654Part of the "implicit conversion" rules in ACPI 2.0 have been 15655found to cause compatibility problems with existing ASL/AML. The 15656convert "result-to-target-type" implementation has been removed 15657for stores to method Args and Locals. Source operand conversion 15658is still fully implemented. Possible changes to ACPI 2.0 15659specification pending. 15660 15661Fix to AcpiRsCalculatePciRoutingTableLength to return correct 15662length. 15663 15664Fix for compiler warnings for 64-bit compiles. 15665 15666 Linux: 15667 15668/proc output aligned for easier parsing. 15669 15670Release-version compile problem fixed. 15671 15672New kernel configuration options documented in Configure.help. 15673 15674IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 15675context" message. 15676 15677 OSPM: 15678 15679Power resource driver integrated with bus manager. 15680 15681Fixed kernel fault during active cooling for thermal zones. 15682 15683Source Code: 15684 15685The source code tree has been restructured. 15686 15687 15688 15689------------------------------------------ 15690Summary of changes for this label: 03_02_01 15691 15692 Linux OS Services Layer (OSL): 15693 15694Major revision of all Linux-specific code. 15695 15696Modularized all ACPI-specific drivers. 15697 15698Added new thermal zone and power resource drivers. 15699 15700Revamped /proc interface (new functionality is under /proc/acpi). 15701 15702New kernel configuration options. 15703 15704 Linux known issues: 15705 15706New kernel configuration options not documented in Configure.help 15707yet. 15708 15709 15710Module dependencies not currently implemented. If used, they 15711should be loaded in this order: busmgr, power, ec, system, 15712processor, battery, ac_adapter, button, thermal. 15713 15714Modules will not load if CONFIG_MODVERSION is set. 15715 15716IBM 600E - entering S5 may reboot instead of shutting down. 15717 15718IBM 600E - Sleep button may generate "Invalid <NULL> context" 15719message. 15720 15721Some systems may fail with "execution mutex already acquired" 15722message. 15723 15724 ACPI CA Core Subsystem: 15725 15726Added a new OSL Interface, AcpiOsGetThreadId. This was required 15727for the deadlock detection code. Defined to return a non-zero, 32- 15728bit thread ID for the currently executing thread. May be a non- 15729zero constant integer on single-thread systems. 15730 15731Implemented deadlock detection for internal subsystem mutexes. We 15732may add conditional compilation for this code (debug only) later. 15733 15734ASL/AML Mutex object semantics are now fully supported. This 15735includes multiple acquires/releases by owner and support for the 15736 15737Mutex SyncLevel parameter. 15738 15739A new "Force Release" mechanism automatically frees all ASL 15740Mutexes that have been acquired but not released when a thread 15741exits the interpreter. This forces conformance to the ACPI spec 15742("All mutexes must be released when an invocation exits") and 15743prevents deadlocked ASL threads. This mechanism can be expanded 15744(later) to monitor other resource acquisitions if OEM ASL code 15745continues to misbehave (which it will). 15746 15747Several new ACPI exception codes have been added for the Mutex 15748support. 15749 15750Recursive method calls are now allowed and supported (the ACPI 15751spec does in fact allow recursive method calls.) The number of 15752recursive calls is subject to the restrictions imposed by the 15753SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 15754parameter. 15755 15756Implemented support for the SyncLevel parameter for control 15757methods (ACPI 2.0 feature) 15758 15759Fixed a deadlock problem when multiple threads attempted to use 15760the interpreter. 15761 15762Fixed a problem where the string length of a String package 15763element was not always set in a package returned from 15764AcpiEvaluateObject. 15765 15766Fixed a problem where the length of a String package element was 15767not always included in the length of the overall package returned 15768from AcpiEvaluateObject. 15769 15770Added external interfaces (Acpi*) to the ACPI debug memory 15771manager. This manager keeps a list of all outstanding 15772allocations, and can therefore detect memory leaks and attempts to 15773free memory blocks more than once. Useful for code such as the 15774power manager, etc. May not be appropriate for device drivers. 15775Performance with the debug code enabled is slow. 15776 15777The ACPI Global Lock is now an optional hardware element. 15778 15779 ASL Compiler Version X2015: 15780 15781Integrated changes to allow the compiler to be generated on 15782multiple platforms. 15783 15784Linux makefile added to generate the compiler on Linux 15785 15786 Source Code: 15787 15788All platform-specific headers have been moved to their own 15789subdirectory, Include/Platform. 15790 15791New source file added, Interpreter/ammutex.c 15792 15793New header file, Include/acstruct.h 15794 15795 Documentation: 15796 15797The programmer reference has been updated for the following new 15798interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 15799 15800 ------------------------------------------ 15801Summary of changes for this label: 02_08_01 15802 15803Core ACPI CA Subsystem: Fixed a problem where an error was 15804incorrectly returned if the return resource buffer was larger than 15805the actual data (in the resource interfaces). 15806 15807References to named objects within packages are resolved to the 15808 15809full pathname string before packages are returned directly (via 15810the AcpiEvaluateObject interface) or indirectly via the resource 15811interfaces. 15812 15813Linux OS Services Layer (OSL): 15814 15815Improved /proc battery interface. 15816 15817 15818Added C-state debugging output and other miscellaneous fixes. 15819 15820ASL Compiler Version X2014: 15821 15822All defined method arguments can now be used as local variables, 15823including the ones that are not actually passed in as parameters. 15824The compiler tracks initialization of the arguments and issues an 15825exception if they are used without prior assignment (just like 15826locals). 15827 15828The -o option now specifies a filename prefix that is used for all 15829output files, including the AML output file. Otherwise, the 15830default behavior is as follows: 1) the AML goes to the file 15831specified in the DSDT. 2) all other output files use the input 15832source filename as the base. 15833 15834 ------------------------------------------ 15835Summary of changes for this label: 01_25_01 15836 15837Core ACPI CA Subsystem: Restructured the implementation of object 15838store support within the interpreter. This includes support for 15839the Store operator as well as any ASL operators that include a 15840target operand. 15841 15842Partially implemented support for Implicit Result-to-Target 15843conversion. This is when a result object is converted on the fly 15844to the type of an existing target object. Completion of this 15845support is pending further analysis of the ACPI specification 15846concerning this matter. 15847 15848CPU-specific code has been removed from the subsystem (hardware 15849directory). 15850 15851New Power Management Timer functions added 15852 15853Linux OS Services Layer (OSL): Moved system state transition code 15854to the core, fixed it, and modified Linux OSL accordingly. 15855 15856Fixed C2 and C3 latency calculations. 15857 15858 15859We no longer use the compilation date for the version message on 15860initialization, but retrieve the version from AcpiGetSystemInfo(). 15861 15862Incorporated for fix Sony VAIO machines. 15863 15864Documentation: The Programmer Reference has been updated and 15865reformatted. 15866 15867 15868ASL Compiler: Version X2013: Fixed a problem where the line 15869numbering and error reporting could get out of sync in the 15870presence of multiple include files. 15871 15872 ------------------------------------------ 15873Summary of changes for this label: 01_15_01 15874 15875Core ACPI CA Subsystem: 15876 15877Implemented support for type conversions in the execution of the 15878ASL Concatenate operator (The second operand is converted to 15879match the type of the first operand before concatenation.) 15880 15881Support for implicit source operand conversion is partially 15882implemented. The ASL source operand types Integer, Buffer, and 15883String are freely interchangeable for most ASL operators and are 15884converted by the interpreter on the fly as required. Implicit 15885Target operand conversion (where the result is converted to the 15886target type before storing) is not yet implemented. 15887 15888Support for 32-bit and 64-bit BCD integers is implemented. 15889 15890Problem fixed where a field read on an aligned field could cause a 15891read past the end of the field. 15892 15893New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 15894does not return a value, but the caller expects one. (The ASL 15895compiler flags this as a warning.) 15896 15897ASL Compiler: 15898 15899Version X2011: 159001. Static typechecking of all operands is implemented. This 15901prevents the use of invalid objects (such as using a Package where 15902an Integer is required) at compile time instead of at interpreter 15903run-time. 159042. The ASL source line is printed with ALL errors and warnings. 159053. Bug fix for source EOF without final linefeed. 159064. Debug option is split into a parse trace and a namespace trace. 159075. Namespace output option (-n) includes initial values for 15908integers and strings. 159096. Parse-only option added for quick syntax checking. 159107. Compiler checks for duplicate ACPI name declarations 15911 15912Version X2012: 159131. Relaxed typechecking to allow interchangeability between 15914strings, integers, and buffers. These types are now converted by 15915the interpreter at runtime. 159162. Compiler reports time taken by each internal subsystem in the 15917debug output file. 15918 15919 15920 ------------------------------------------ 15921Summary of changes for this label: 12_14_00 15922 15923ASL Compiler: 15924 15925This is the first official release of the compiler. Since the 15926compiler requires elements of the Core Subsystem, this label 15927synchronizes everything. 15928 15929------------------------------------------ 15930Summary of changes for this label: 12_08_00 15931 15932 15933Fixed a problem where named references within the ASL definition 15934of both OperationRegions and CreateXXXFields did not work 15935properly. The symptom was an AE_AML_OPERAND_TYPE during 15936initialization of the region/field. This is similar (but not 15937related internally) to the problem that was fixed in the last 15938label. 15939 15940Implemented both 32-bit and 64-bit support for the BCD ASL 15941functions ToBCD and FromBCD. 15942 15943Updated all legal headers to include "2000" in the copyright 15944years. 15945 15946 ------------------------------------------ 15947Summary of changes for this label: 12_01_00 15948 15949Fixed a problem where method invocations within the ASL definition 15950of both OperationRegions and CreateXXXFields did not work 15951properly. The symptom was an AE_AML_OPERAND_TYPE during 15952initialization of the region/field: 15953 15954 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 15955[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 15956(0x3005) 15957 15958Fixed a problem where operators with more than one nested 15959subexpression would fail. The symptoms were varied, by mostly 15960AE_AML_OPERAND_TYPE errors. This was actually a rather serious 15961problem that has gone unnoticed until now. 15962 15963 Subtract (Add (1,2), Multiply (3,4)) 15964 15965Fixed a problem where AcpiGetHandle didn't quite get fixed in the 15966previous build (The prefix part of a relative path was handled 15967incorrectly). 15968 15969Fixed a problem where Operation Region initialization failed if 15970the operation region name was a "namepath" instead of a simple 15971"nameseg". Symptom was an AE_NO_OPERAND error. 15972 15973Fixed a problem where an assignment to a local variable via the 15974indirect RefOf mechanism only worked for the first such 15975assignment. Subsequent assignments were ignored. 15976 15977 ------------------------------------------ 15978Summary of changes for this label: 11_15_00 15979 15980ACPI 2.0 table support with backwards support for ACPI 1.0 and the 159810.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 15982the AML interpreter does NOT have support for the new 2.0 ASL 15983grammar terms at this time. 15984 15985All ACPI hardware access is via the GAS structures in the ACPI 2.0 15986FADT. 15987 15988All physical memory addresses across all platforms are now 64 bits 15989wide. Logical address width remains dependent on the platform 15990(i.e., "void *"). 15991 15992AcpiOsMapMemory interface changed to a 64-bit physical address. 15993 15994The AML interpreter integer size is now 64 bits, as per the ACPI 159952.0 specification. 15996 15997For backwards compatibility with ACPI 1.0, ACPI tables with a 15998revision number less than 2 use 32-bit integers only. 15999 16000Fixed a problem where the evaluation of OpRegion operands did not 16001always resolve them to numbers properly. 16002 16003------------------------------------------ 16004Summary of changes for this label: 10_20_00 16005 16006Fix for CBN_._STA issue. This fix will allow correct access to 16007CBN_ OpRegions when the _STA returns 0x8. 16008 16009Support to convert ACPI constants (Ones, Zeros, One) to actual 16010values before a package object is returned 16011 16012Fix for method call as predicate to if/while construct causing 16013incorrect if/while behavior 16014 16015Fix for Else block package lengths sometimes calculated wrong (if 16016block > 63 bytes) 16017 16018Fix for Processor object length field, was always zero 16019 16020Table load abort if FACP sanity check fails 16021 16022Fix for problem with Scope(name) if name already exists 16023 16024Warning emitted if a named object referenced cannot be found 16025(resolved) during method execution. 16026 16027 16028 16029 16030 16031------------------------------------------ 16032Summary of changes for this label: 9_29_00 16033 16034New table initialization interfaces: AcpiInitializeSubsystem no 16035longer has any parameters AcpiFindRootPointer - Find the RSDP (if 16036necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 16037>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 16038AcpiLoadTables 16039 16040Note: These interface changes require changes to all existing OSDs 16041 16042The PCI_Config default address space handler is always installed 16043at the root namespace object. 16044 16045------------------------------------------- 16046Summary of changes for this label: 09_15_00 16047 16048The new initialization architecture is implemented. New 16049interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 16050AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 16051 16052(Namespace is automatically loaded when a table is loaded) 16053 16054The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1605552 bytes to 32 bytes. There is usually one of these for every 16056namespace object, so the memory savings is significant. 16057 16058Implemented just-in-time evaluation of the CreateField operators. 16059 16060Bug fixes for IA-64 support have been integrated. 16061 16062Additional code review comments have been implemented 16063 16064The so-called "third pass parse" has been replaced by a final walk 16065through the namespace to initialize all operation regions (address 16066spaces) and fields that have not yet been initialized during the 16067execution of the various _INI and REG methods. 16068 16069New file - namespace/nsinit.c 16070 16071------------------------------------------- 16072Summary of changes for this label: 09_01_00 16073 16074Namespace manager data structures have been reworked to change the 16075primary object from a table to a single object. This has 16076resulted in dynamic memory savings of 3X within the namespace and 160772X overall in the ACPI CA subsystem. 16078 16079Fixed problem where the call to AcpiEvFindPciRootBuses was 16080inadvertently left commented out. 16081 16082Reduced the warning count when generating the source with the GCC 16083compiler. 16084 16085Revision numbers added to each module header showing the 16086SourceSafe version of the file. Please refer to this version 16087number when giving us feedback or comments on individual modules. 16088 16089The main object types within the subsystem have been renamed to 16090clarify their purpose: 16091 16092ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 16093ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 16094ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 16095 16096NOTE: no changes to the initialization sequence are included in 16097this label. 16098 16099------------------------------------------- 16100Summary of changes for this label: 08_23_00 16101 16102Fixed problem where TerminateControlMethod was being called 16103multiple times per method 16104 16105Fixed debugger problem where single stepping caused a semaphore to 16106be oversignalled 16107 16108Improved performance through additional parse object caching - 16109added ACPI_EXTENDED_OP type 16110 16111------------------------------------------- 16112Summary of changes for this label: 08_10_00 16113 16114Parser/Interpreter integration: Eliminated the creation of 16115complete parse trees for ACPI tables and control methods. 16116Instead, parse subtrees are created and then deleted as soon as 16117they are processed (Either entered into the namespace or executed 16118by the interpreter). This reduces the use of dynamic kernel 16119memory significantly. (about 10X) 16120 16121Exception codes broken into classes and renumbered. Be sure to 16122recompile all code that includes acexcep.h. Hopefully we won't 16123have to renumber the codes again now that they are split into 16124classes (environment, programmer, AML code, ACPI table, and 16125internal). 16126 16127Fixed some additional alignment issues in the Resource Manager 16128subcomponent 16129 16130Implemented semaphore tracking in the AcpiExec utility, and fixed 16131several places where mutexes/semaphores were being unlocked 16132without a corresponding lock operation. There are no known 16133semaphore or mutex "leaks" at this time. 16134 16135Fixed the case where an ASL Return operator is used to return an 16136unnamed package. 16137 16138------------------------------------------- 16139Summary of changes for this label: 07_28_00 16140 16141Fixed a problem with the way addresses were calculated in 16142AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 16143manifested itself when a Field was created with WordAccess or 16144DwordAccess, but the field unit defined within the Field was less 16145 16146than a Word or Dword. 16147 16148Fixed a problem in AmlDumpOperands() module's loop to pull 16149operands off of the operand stack to display information. The 16150problem manifested itself as a TLB error on 64-bit systems when 16151accessing an operand stack with two or more operands. 16152 16153Fixed a problem with the PCI configuration space handlers where 16154context was getting confused between accesses. This required a 16155change to the generic address space handler and address space 16156setup definitions. Handlers now get both a global handler context 16157(this is the one passed in by the user when executing 16158AcpiInstallAddressSpaceHandler() and a specific region context 16159that is unique to each region (For example, the _ADR, _SEG and 16160_BBN values associated with a specific region). The generic 16161function definitions have changed to the following: 16162 16163typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 16164UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 16165*HandlerContext, // This used to be void *Context void 16166*RegionContext); // This is an additional parameter 16167 16168typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 16169RegionHandle, UINT32 Function, void *HandlerContext, void 16170**RegionContext); // This used to be **ReturnContext 16171 16172------------------------------------------- 16173Summary of changes for this label: 07_21_00 16174 16175Major file consolidation and rename. All files within the 16176interpreter have been renamed as well as most header files. This 16177was done to prevent collisions with existing files in the host 16178OSs -- filenames such as "config.h" and "global.h" seem to be 16179quite common. The VC project files have been updated. All 16180makefiles will require modification. 16181 16182The parser/interpreter integration continues in Phase 5 with the 16183implementation of a complete 2-pass parse (the AML is parsed 16184twice) for each table; This avoids the construction of a huge 16185parse tree and therefore reduces the amount of dynamic memory 16186required by the subsystem. Greater use of the parse object cache 16187means that performance is unaffected. 16188 16189Many comments from the two code reviews have been rolled in. 16190 16191The 64-bit alignment support is complete. 16192 16193------------------------------------------- 16194Summary of changes for this label: 06_30_00 16195 16196With a nod and a tip of the hat to the technology of yesteryear, 16197we've added support in the source code for 80 column output 16198devices. The code is now mostly constrained to 80 columns or 16199less to support environments and editors that 1) cannot display 16200or print more than 80 characters on a single line, and 2) cannot 16201disable line wrapping. 16202 16203A major restructuring of the namespace data structure has been 16204completed. The result is 1) cleaner and more 16205understandable/maintainable code, and 2) a significant reduction 16206in the dynamic memory requirement for each named ACPI object 16207(almost half). 16208 16209------------------------------------------- 16210Summary of changes for this label: 06_23_00 16211 16212Linux support has been added. In order to obtain approval to get 16213the ACPI CA subsystem into the Linux kernel, we've had to make 16214quite a few changes to the base subsystem that will affect all 16215users (all the changes are generic and OS- independent). The 16216effects of these global changes have been somewhat far reaching. 16217Files have been merged and/or renamed and interfaces have been 16218renamed. The major changes are described below. 16219 16220Osd* interfaces renamed to AcpiOs* to eliminate namespace 16221pollution/confusion within our target kernels. All OSD 16222interfaces must be modified to match the new naming convention. 16223 16224Files merged across the subsystem. A number of the smaller source 16225and header files have been merged to reduce the file count and 16226increase the density of the existing files. There are too many 16227to list here. In general, makefiles that call out individual 16228files will require rebuilding. 16229 16230Interpreter files renamed. All interpreter files now have the 16231prefix am* instead of ie* and is*. 16232 16233Header files renamed: The acapi.h file is now acpixf.h. The 16234acpiosd.h file is now acpiosxf.h. We are removing references to 16235the acronym "API" since it is somewhat windowsy. The new name is 16236"external interface" or xface or xf in the filenames.j 16237 16238 16239All manifest constants have been forced to upper case (some were 16240mixed case.) Also, the string "ACPI_" has been prepended to many 16241(not all) of the constants, typedefs, and structs. 16242 16243The globals "DebugLevel" and "DebugLayer" have been renamed 16244"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 16245 16246All other globals within the subsystem are now prefixed with 16247"AcpiGbl_" Internal procedures within the subsystem are now 16248prefixed with "Acpi" (with only a few exceptions). The original 16249two-letter abbreviation for the subcomponent remains after "Acpi" 16250- for example, CmCallocate became AcpiCmCallocate. 16251 16252Added a source code translation/conversion utility. Used to 16253generate the Linux source code, it can be modified to generate 16254other types of source as well. Can also be used to cleanup 16255existing source by removing extraneous spaces and blank lines. 16256Found in tools/acpisrc/* 16257 16258OsdUnMapMemory was renamed to OsdUnmapMemory and then 16259AcpiOsUnmapMemory. (UnMap became Unmap). 16260 16261A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 16262When set to one, this indicates that the caller wants to use the 16263 16264semaphore as a mutex, not a counting semaphore. ACPI CA uses 16265both types. However, implementers of this call may want to use 16266different OS primitives depending on the type of semaphore 16267requested. For example, some operating systems provide separate 16268 16269"mutex" and "semaphore" interfaces - where the mutex interface is 16270much faster because it doesn't have all the overhead of a full 16271semaphore implementation. 16272 16273Fixed a deadlock problem where a method that accesses the PCI 16274address space can block forever if it is the first access to the 16275space. 16276 16277------------------------------------------- 16278Summary of changes for this label: 06_02_00 16279 16280Support for environments that cannot handle unaligned data 16281accesses (e.g. firmware and OS environments devoid of alignment 16282handler technology namely SAL/EFI and the IA-64 Linux kernel) has 16283been added (via configurable macros) in these three areas: - 16284Transfer of data from the raw AML byte stream is done via byte 16285moves instead of word/dword/qword moves. - External objects are 16286aligned within the user buffer, including package elements (sub- 16287objects). - Conversion of name strings to UINT32 Acpi Names is now 16288done byte-wise. 16289 16290The Store operator was modified to mimic Microsoft's 16291implementation when storing to a Buffer Field. 16292 16293Added a check of the BM_STS bit before entering C3. 16294 16295The methods subdirectory has been obsoleted and removed. A new 16296file, cmeval.c subsumes the functionality. 16297 16298A 16-bit (DOS) version of AcpiExec has been developed. The 16299makefile is under the acpiexec directory. 16300