1---------------------------------------- 218 March 2016. Summary of changes for version 20160318: 3 41) ACPICA kernel-resident subsystem: 5 6Added support for arbitrary bit lengths and bit offsets for registers 7defined by the Generic Address Structure. Previously, only aligned bit 8lengths of 8/16/32/64 were supported. This was sufficient for many years, 9but recently some machines have been seen that require arbitrary bit- 10level support. ACPICA BZ 1240. Lv Zheng. 11 12Fixed an issue where the \_SB._INI method sometimes must be evaluated 13before any _REG methods are evaluated. Lv Zheng. 14 15Implemented several changes related to ACPI table support 16(Headers/Disassembler/TableCompiler): 17NFIT: For ACPI 6.1, updated to add some additional new fields and 18constants. 19FADT: Updated a warning message and set compliance to ACPI 6.1 (Version 206). 21DMAR: Added new constants per the 10/2014 DMAR spec. 22IORT: Added new subtable per the 10/2015 IORT spec. 23HEST: For ACPI 6.1, added new constants and new subtable. 24DBG2: Added new constants per the 12/2015 DBG2 spec. 25FPDT: Fixed several incorrect fields, add the FPDT boot record structure. 26ACPICA BZ 1249. 27ERST/EINJ: Updated disassembler with new "Execute Timings" actions. 28 29Updated header support for the DMAR table to match the current version of 30the related spec. 31 32Added extensions to the ASL Concatenate operator to allow any ACPI object 33to be passed as an operand. Any object other than Integer/String/Buffer 34simply returns a string containing the object type. This extends the 35usefulness of the Printf macros. Previously, Concatenate would abort the 36control method if a non-data object was encountered. 37 38ACPICA source code: Deployed the C "const" keyword across the source code 39where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD). 40 41Example Code and Data Size: These are the sizes for the OS-independent 42acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 43debug version of the code includes the debug output trace mechanism and 44has a much larger code and data size. 45 46 Current Release: 47 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 48 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 49 Previous Release: 50 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 51 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 52 53 542) iASL Compiler/Disassembler and Tools: 55 56iASL/Disassembler: Improved the heuristic used to determine the number of 57arguments for an externally defined control method (a method in another 58table). Although this is an improvement, there is no deterministic way to 59"guess" the number of method arguments. Only the ACPI 6.0 External opcode 60will completely solve this problem as it is deployed (automatically) in 61newer BIOS code. 62 63iASL/Disassembler: Fixed an ordering issue for emitted External() ASL 64statements that could cause errors when the disassembled file is 65compiled. ACPICA BZ 1243. David Box. 66 67iASL: Fixed a regression caused by the merger of the two versions of the 68local strtoul64. Because of a dependency on a global variable, strtoul64 69could return an error for integers greater than a 32-bit value. ACPICA BZ 701260. 71 72iASL: Fixed a regression where a fault could occur for an ASL Return 73statement if it invokes a control method that is not resolved. ACPICA BZ 741264. 75 76AcpiXtract: Improved input file validation: detection of binary files and 77non-acpidump text files. 78 79---------------------------------------- 8012 February 2016. Summary of changes for version 20160212: 81 821) ACPICA kernel-resident subsystem: 83 84Implemented full support for the ACPI 6.1 specification (released in 85January). This version of the specification is available at: 86http://www.uefi.org/specifications 87 88Only a relatively small number of changes were required in ACPICA to 89support ACPI 6.1, in these areas: 90- New predefined names 91- New _HID values 92- A new subtable for HEST 93- A few other header changes for new values 94 95Ensure \_SB_._INI is executed before any _REG methods are executed. There 96appears to be existing BIOS code that relies on this behavior. Lv Zheng. 97 98Reverted a change made in version 20151218 which enabled method 99invocations to be targets of various ASL operators (SuperName and Target 100grammar elements). While the new behavior is supported by the ACPI 101specification, other AML interpreters do not support this behavior and 102never will. The ACPI specification will be updated for ACPI 6.2 to remove 103this support. Therefore, the change was reverted to the original ACPICA 104behavior. 105 106ACPICA now supports the GCC 6 compiler. 107 108Current Release: (Note: build changes increased sizes) 109 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 110 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 111Previous Release: 112 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 113 Debug Version: 200.4K Code, 81.9K Data, 282.3K Total 114 115 1162) iASL Compiler/Disassembler and Tools: 117 118Completed full support for the ACPI 6.0 External() AML opcode. The 119compiler emits an external AML opcode for each ASL External statement. 120This opcode is used by the disassembler to assist with the disassembly of 121external control methods by specifying the required number of arguments 122for the method. AML interpreters do not use this opcode. To ensure that 123interpreters do not even see the opcode, a block of one or more external 124opcodes is surrounded by an "If(0)" construct. As this feature becomes 125commonly deployed in BIOS code, the ability of disassemblers to correctly 126disassemble AML code will be greatly improved. David Box. 127 128iASL: Implemented support for an optional cross-reference output file. 129The -lx option will create a the cross-reference file with the suffix 130"xrf". Three different types of cross-reference are created in this file: 131- List of object references made from within each control method 132- Invocation (caller) list for each user-defined control method 133- List of references to each non-method object in the namespace 134 135iASL: Method invocations as ASL Target operands are now disallowed and 136flagged as errors in preparation for ACPI 6.2 (see the description of the 137problem above). 138 139---------------------------------------- 1408 January 2016. Summary of changes for version 20160108: 141 1421) ACPICA kernel-resident subsystem: 143 144Updated all ACPICA copyrights and signons to 2016: Added the 2016 145copyright to all source code module headers and utility/tool signons. 146This includes the standard Linux dual-license header. This affects 147virtually every file in the ACPICA core subsystem, iASL compiler, all 148ACPICA utilities, and the ACPICA test suite. 149 150Fixed a regression introduced in version 20151218 concerning the 151execution of so-called module-level ASL/AML code. Namespace objects 152created under a module-level If() construct were not properly/fully 153entered into the namespace and could cause an interpreter fault when 154accessed. 155 156Example Code and Data Size: These are the sizes for the OS-independent 157acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 158debug version of the code includes the debug output trace mechanism and 159has a much larger code and data size. 160 161Current Release: 162 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 163 Debug Version: 200.4K Code, 81.9K Data, 282.4K Total 164 Previous Release: 165 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 166 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 167 168 1692) iASL Compiler/Disassembler and Tools: 170 171Fixed a problem with the compilation of the GpioIo and GpioInt resource 172descriptors. The _PIN field name was incorrectly defined to be an array 173of 32-bit values, but the _PIN values are in fact 16 bits each. This 174would cause incorrect bit width warnings when using Word (16-bit) fields 175to access the descriptors. 176 177 178---------------------------------------- 17918 December 2015. Summary of changes for version 20151218: 180 1811) ACPICA kernel-resident subsystem: 182 183Implemented per-AML-table execution of "module-level code" as individual 184ACPI tables are loaded into the namespace during ACPICA initialization. 185In other words, any module-level code within an AML table is executed 186immediately after the table is loaded, instead of batched and executed 187after all of the tables have been loaded. This provides compatibility 188with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng, 189David Box. 190 191To fully support the feature above, the default operation region handlers 192for the SystemMemory, SystemIO, and PCI_Config address spaces are now 193installed before any ACPI tables are loaded. This enables module-level 194code to access these address spaces during the table load and module- 195level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David 196Box. 197 198Implemented several changes to the internal _REG support in conjunction 199with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples 200utilities for the changes above. Although these tools were changed, host 201operating systems that simply use the default handlers for SystemMemory, 202SystemIO, and PCI_Config spaces should not require any update. Lv Zheng. 203 204For example, in the code below, DEV1 is conditionally added to the 205namespace by the DSDT via module-level code that accesses an operation 206region. The SSDT references DEV1 via the Scope operator. DEV1 must be 207created immediately after the DSDT is loaded in order for the SSDT to 208successfully reference DEV1. Previously, this code would cause an 209AE_NOT_EXIST exception during the load of the SSDT. Now, this code is 210fully supported by ACPICA. 211 212 DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1) 213 { 214 OperationRegion (OPR1, SystemMemory, 0x400, 32) 215 Field (OPR1, AnyAcc, NoLock, Preserve) 216 { 217 FLD1, 1 218 } 219 If (FLD1) 220 { 221 Device (\DEV1) 222 { 223 } 224 } 225 } 226 DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1) 227 { 228 External (\DEV1, DeviceObj) 229 Scope (\DEV1) 230 { 231 } 232 } 233 234Fixed an AML interpreter problem where control method invocations were 235not handled correctly when the invocation was itself a SuperName argument 236to another ASL operator. In these cases, the method was not invoked. 237ACPICA BZ 1002. Affects the following ASL operators that have a SuperName 238argument: 239 Store 240 Acquire, Wait 241 CondRefOf, RefOf 242 Decrement, Increment 243 Load, Unload 244 Notify 245 Signal, Release, Reset 246 SizeOf 247 248Implemented automatic String-to-ObjectReference conversion support for 249packages returned by predefined names (such as _DEP). A common BIOS error 250is to add double quotes around an ObjectReference namepath, which turns 251the reference into an unexpected string object. This support detects the 252problem and corrects it before the package is returned to the caller that 253invoked the method. Lv Zheng. 254 255Implemented extensions to the Concatenate operator. Concatenate now 256accepts any type of object, it is not restricted to simply 257Integer/String/Buffer. For objects other than these 3 basic data types, 258the argument is treated as a string containing the name of the object 259type. This expands the utility of Concatenate and the Printf/Fprintf 260macros. ACPICA BZ 1222. 261 262Cleaned up the output of the ASL Debug object. The timer() value is now 263optional and no longer emitted by default. Also, the basic data types of 264Integer/String/Buffer are simply emitted as their values, without a data 265type string -- since the data type is obvious from the output. ACPICA BZ 2661221. 267 268Example Code and Data Size: These are the sizes for the OS-independent 269acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 270debug version of the code includes the debug output trace mechanism and 271has a much larger code and data size. 272 273 Current Release: 274 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 275 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 276 Previous Release: 277 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 278 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 279 280 2812) iASL Compiler/Disassembler and Tools: 282 283iASL: Fixed some issues with the ASL Include() operator. This operator 284was incorrectly defined in the iASL parser rules, causing a new scope to 285be opened for the code within the include file. This could lead to 286several issues, including allowing ASL code that is technically illegal 287and not supported by AML interpreters. Note, this does not affect the 288related #include preprocessor operator. ACPICA BZ 1212. 289 290iASL/Disassembler: Implemented support for the ASL ElseIf operator. This 291operator is essentially an ASL macro since there is no AML opcode 292associated with it. The code emitted by the iASL compiler for ElseIf is 293an Else opcode followed immediately by an If opcode. The disassembler 294will now emit an ElseIf if it finds an Else immediately followed by an 295If. This simplifies the decoded ASL, especially for deeply nested 296If..Else and large Switch constructs. Thus, the disassembled code more 297closely follows the original source ASL. ACPICA BZ 1211. Example: 298 299 Old disassembly: 300 Else 301 { 302 If (Arg0 == 0x02) 303 { 304 Local0 = 0x05 305 } 306 } 307 308 New disassembly: 309 ElseIf (Arg0 == 0x02) 310 { 311 Local0 = 0x05 312 } 313 314AcpiExec: Added support for the new module level code behavior and the 315early region installation. This required a small change to the 316initialization, since AcpiExec must install its own operation region 317handlers. 318 319AcpiExec: Added support to make the debug object timer optional. Default 320is timer disabled. This cleans up the debug object output -- the timer 321data is rarely used. 322 323AcpiExec: Multiple ACPI tables are now loaded in the order that they 324appear on the command line. This can be important when there are 325interdependencies/references between the tables. 326 327iASL/Templates. Add support to generate template files with multiple 328SSDTs within a single output file. Also added ommand line support to 329specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ 3301223, 1225. 331 332 333---------------------------------------- 33424 November 2015. Summary of changes for version 20151124: 335 3361) ACPICA kernel-resident subsystem: 337 338Fixed a possible regression for a previous update to FADT handling. The 339FADT no longer has a fixed table ID, causing some issues with code that 340was hardwired to a specific ID. Lv Zheng. 341 342Fixed a problem where the method auto-serialization could interfere with 343the current SyncLevel. This change makes the auto-serialization support 344transparent to the SyncLevel support and management. 345 346Removed support for the _SUB predefined name in AcpiGetObjectInfo. This 347interface is intended for early access to the namespace during the 348initial namespace device discovery walk. The _SUB method has been seen to 349access operation regions in some cases, causing errors because the 350operation regions are not fully initialized. 351 352AML Debugger: Fixed some issues with the terminate/quit/exit commands 353that can cause faults. Lv Zheng. 354 355AML Debugger: Add thread ID support so that single-step mode only applies 356to the AML Debugger thread. This prevents runtime errors within some 357kernels. Lv Zheng. 358 359Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx 360methods that are invoked by this interface are optional, removed warnings 361emitted for the case where one or more of these methods do not exist. 362ACPICA BZ 1208, original change by Prarit Bhargava. 363 364Made a major pass through the entire ACPICA source code base to 365standardize formatting that has diverged a bit over time. There are no 366functional changes, but this will of course cause quite a few code 367differences from the previous ACPICA release. 368 369Example Code and Data Size: These are the sizes for the OS-independent 370acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 371debug version of the code includes the debug output trace mechanism and 372has a much larger code and data size. 373 374 Current Release: 375 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 376 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 377 Previous Release: 378 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 379 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 380 381 3822) iASL Compiler/Disassembler and Tools: 383 384iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple 385definition blocks within a single ASL file and the resulting AML file. 386Support for this type of file was also added to the various tools that 387use binary AML files: acpiexec, acpixtract, and the AML disassembler. The 388example code below shows two definition blocks within the same file: 389 390 DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template", 3910x12345678) 392 { 393 } 394 DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01) 395 { 396 } 397 398iASL: Enhanced typechecking for the Name() operator. All expressions for 399the value of the named object must be reduced/folded to a single constant 400at compile time, as per the ACPI specification (the AML definition of 401Name()). 402 403iASL: Fixed some code indentation issues for the -ic and -ia options (C 404and assembly headers). Now all emitted code correctly begins in column 1. 405 406iASL: Added an error message for an attempt to open a Scope() on an 407object defined in an SSDT. The DSDT is always loaded into the namespace 408first, so any attempt to open a Scope on an SSDT object will fail at 409runtime. 410 411 412---------------------------------------- 41330 September 2015. Summary of changes for version 20150930: 414 4151) ACPICA kernel-resident subsystem: 416 417Debugger: Implemented several changes and bug fixes to assist support for 418the in-kernel version of the AML debugger. Lv Zheng. 419- Fix the "predefined" command for in-kernel debugger. 420- Do not enter debug command loop for the help and version commands. 421- Disallow "execute" command during execution/single-step of a method. 422 423Interpreter: Updated runtime typechecking for all operators that have 424target operands. The operand is resolved and validated that it is legal. 425For example, the target cannot be a non-data object such as a Device, 426Mutex, ThermalZone, etc., as per the ACPI specification. 427 428Debugger: Fixed the double-mutex user I/O handshake to work when local 429deadlock detection is enabled. 430 431Debugger: limited display of method locals and arguments (LocalX and 432ArgX) to only those that have actually been initialized. This prevents 433lines of extraneous output. 434 435Updated the definition of the NFIT table to correct the bit polarity of 436one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED 437 438Example Code and Data Size: These are the sizes for the OS-independent 439acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 440debug version of the code includes the debug output trace mechanism and 441has a much larger code and data size. 442 443 Current Release: 444 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 445 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 446 Previous Release: 447 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 448 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 449 450 4512) iASL Compiler/Disassembler and Tools: 452 453iASL: Improved the compile-time typechecking for operands of many of the 454ASL operators: 455 456-- Added an option to disable compiler operand/operator typechecking (- 457ot). 458 459-- For the following operators, the TermArg operands are now validated 460when possible to be Integer data objects: BankField, OperationRegion, 461DataTableRegion, Buffer, and Package. 462 463-- Store (Source, Target): Both the source and target operands are 464resolved and checked that the operands are both legal. For example, 465neither operand can be a non-data object such as a Device, Mutex, 466ThermalZone, etc. Note, as per the ACPI specification, the CopyObject 467operator can be used to store an object to any type of target object. 468 469-- Store (Source, Target): If the source is a Package object, the target 470must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target 471is a Package, the source must also be a Package. 472 473-- Store (Source, Target): A warning is issued if the source and target 474resolve to the identical named object. 475 476-- Store (Source, <method invocation>): An error is generated for the 477target method invocation, as this construct is not supported by the AML 478interpreter. 479 480-- For all ASL math and logic operators, the target operand must be a 481data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This 482includes the function return value also. 483 484-- External declarations are also included in the typechecking where 485possible. External objects defined using the UnknownObj keyword cannot be 486typechecked, however. 487 488iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index 489operator: 490- Legacy code: Index(PKG1, 3) 491- New ASL+ code: PKG1[3] 492This completes the ACPI 6.0 ASL+ support as it was the only operator not 493supported. 494 495iASL: Fixed the file suffix for the preprocessor output file (.i). Two 496spaces were inadvertently appended to the filename, causing file access 497and deletion problems on some systems. 498 499ASL Test Suite (ASLTS): Updated the master makefile to generate all 500possible compiler output files when building the test suite -- thus 501exercising these features of the compiler. These files are automatically 502deleted when the test suite exits. 503 504 505---------------------------------------- 50618 August 2015. Summary of changes for version 20150818: 507 5081) ACPICA kernel-resident subsystem: 509 510Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv 511Zheng. ACPICA BZ 1186. 512 513Completed development to ensure that the ACPICA Disassembler and Debugger 514are fully standalone components of ACPICA. Removed cross-component 515dependences. Lv Zheng. 516 517The max-number-of-AML-loops is now runtime configurable (previously was 518compile-time only). This is essentially a loop timeout to force-abort 519infinite AML loops. ACPCIA BZ 1192. 520 521Debugger: Cleanup output to dump ACPI names and namepaths without any 522trailing underscores. Lv Zheng. ACPICA BZ 1135. 523 524Removed unnecessary conditional compilations across the Debugger and 525Disassembler components where entire modules could be left uncompiled. 526 527The aapits test is deprecated and has been removed from the ACPICA git 528tree. The test has never been completed and has not been maintained, thus 529becoming rather useless. ACPICA BZ 1015, 794. 530 531A batch of small changes to close bugzilla and other reports: 532- Remove duplicate code for _PLD processing. ACPICA BZ 1176. 533- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185. 534- iASL: Support POSIX yacc again in makefile. Jung-uk Kim. 535- ACPI table support: general cleanup and simplification. Lv Zheng, Bob 536Moore. 537- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable. 538ACPICA BZ 1184. 539- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML 540operators. 541- Debugger: Split debugger initialization/termination interfaces. Lv 542Zheng. 543- AcpiExec: Emit OemTableId for SSDTs during the load phase for table 544identification. 545- AcpiExec: Add debug message during _REG method phase during table 546load/init. 547- AcpiNames: Fix a regression where some output was missing and no longer 548emitted. 549- Debugger: General cleanup and simplification. Lv Zheng. 550- Disassembler: Cleanup use of several global option variables. Lv Zheng. 551 552Example Code and Data Size: These are the sizes for the OS-independent 553acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 554debug version of the code includes the debug output trace mechanism and 555has a much larger code and data size. 556 557 Current Release: 558 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 559 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 560 Previous Release: 561 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 562 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 563 564 5652) iASL Compiler/Disassembler and Tools: 566 567AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT 568were not handled properly and caused load errors. Now, properly invoke 569and use the ACPICA auto-reallocate mechanism for ACPI table data 570structures. ACPICA BZ 1188 571 572AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA 573BZ 1190. 574 575AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For 576AcpiExec, this means that no control methods (like _REG/_INI/_STA) are 577executed during initialization. ACPICA BZ 1187, 1189. 578 579iASL/Disassembler: Implemented a prototype "listing" mode that emits AML 580that corresponds to each disassembled ASL statement, to simplify 581debugging. ACPICA BZ 1191. 582 583Debugger: Add option to the "objects" command to display a summary of the 584current namespace objects (Object type and count). This is displayed if 585the command is entered with no arguments. 586 587AcpiNames: Add -x option to specify debug level, similar to AcpiExec. 588 589 590---------------------------------------- 59117 July 2015. Summary of changes for version 20150717: 592 5931) ACPICA kernel-resident subsystem: 594 595Improved the partitioning between the Debugger and Disassembler 596components. This allows the Debugger to be used standalone within kernel 597code without the Disassembler (which is used for single stepping also). 598This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng. 599 600Debugger: Implemented a new command to trace the execution of control 601methods (Trace). This is especially useful for the in-kernel version of 602the debugger when file I/O may not be available for method trace output. 603See the ACPICA reference for more information. Lv Zheng. 604 605Moved all C library prototypes (used for the local versions of these 606functions when requested) to a new header, acclib.h 607Cleaned up the use of non-ANSI C library functions. These functions are 608implemented locally in ACPICA. Moved all such functions to a common 609source file, utnonansi.c 610 611Debugger: Fixed a problem with the "!!" command (get last command 612executed) where the debugger could enter an infinite loop and eventually 613crash. 614 615Removed the use of local macros that were used for some of the standard C 616library functions to automatically cast input parameters. This mostly 617affected the is* functions where the input parameter is defined to be an 618int. This required a few modifications to the main ACPICA source code to 619provide casting for these functions and eliminate possible compiler 620warnings for these parameters. 621 622Across the source code, added additional status/error checking to resolve 623issues discovered by static source code analysis tools such as Coverity. 624 625Example Code and Data Size: These are the sizes for the OS-independent 626acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 627debug version of the code includes the debug output trace mechanism and 628has a much larger code and data size. 629 630 Current Release: 631 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 632 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 633 Previous Release: 634 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 635 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 636 637 6382) iASL Compiler/Disassembler and Tools: 639 640iASL: Fixed a regression where the device map file feature no longer 641worked properly when used in conjunction with the disassembler. It only 642worked properly with the compiler itself. 643 644iASL: Implemented a new warning for method LocalX variables that are set 645but never used (similar to a C compiler such as gcc). This also applies 646to ArgX variables that are not defined by the parent method, and are 647instead (legally) used as local variables. 648 649iASL/Preprocessor: Finished the pass-through of line numbers from the 650preprocessor to the compiler. This ensures that compiler errors/warnings 651have the correct original line numbers and filenames, regardless of any 652#include files. 653 654iASL/Preprocessor: Fixed a couple of issues with comment handling and the 655pass-through of comments to the preprocessor output file (which becomes 656the compiler input file). Also fixed a problem with // comments that 657appear after a math expression. 658 659iASL: Added support for the TCPA server table to the table compiler and 660template generator. (The client table was already previously supported) 661 662iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to 663identify the iASL compiler. 664 665Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined 666multiple times. The new names are ACPI_SIGN_NEGATIVE and 667ACPI_SIGN_POSITIVE. 668 669AcpiHelp: Update to expand help messages for the iASL preprocessor 670directives. 671 672 673---------------------------------------- 67419 June 2015. Summary of changes for version 20150619: 675 676Two regressions in version 20150616 have been addressed: 677 678Fixes some problems/issues with the C library macro removal (ACPI_STRLEN, 679etc.) This update changes ACPICA to only use the standard headers for 680functions, or the prototypes for the local versions of the C library 681functions. Across the source code, this required some additional casts 682for some Clib invocations for portability. Moved all local prototypes to 683a new file, acclib.h 684 685Fixes several problems with recent changes to the handling of the FACS 686table that could cause some systems not to boot. 687 688 689---------------------------------------- 69016 June 2015. Summary of changes for version 20150616: 691 692 6931) ACPICA kernel-resident subsystem: 694 695Across the entire ACPICA source code base, the various macros for the C 696library functions (such as ACPI_STRLEN, etc.) have been removed and 697replaced by the standard C library names (strlen, etc.) The original 698purpose for these macros is no longer applicable. This simplification 699reduces the number of macros used in the ACPICA source code 700significantly, improving readability and maintainability. 701 702Implemented support for a new ACPI table, the OSDT. This table, the 703"override" SDT, can be loaded directly by the host OS at boot time. It 704enables the replacement of existing namespace objects that were installed 705via the DSDT and/or SSDTs. The primary purpose for this is to replace 706buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated 707for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob 708Moore. 709 710Added support for systems with (improperly) two FACS tables -- a "32-bit" 711table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit 712X field). This change will support both automatically. There continues to 713be systems found with this issue. This support requires a change to the 714AcpiSetFirmwareWakingVector interface. Also, a public global variable has 715been added to allow the host to select which FACS is desired 716(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more 717details Lv Zheng. 718 719Added a new feature to allow for systems that do not contain an FACS. 720Although this is already supported on hardware-reduced platforms, the 721feature has been extended for all platforms. The reasoning is that we do 722not want to abort the entire ACPICA initialization just because the 723system is seriously buggy and has no FACS. 724 725Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were 726not correctly transcribed from the ACPI specification in ACPICA version 72720150515. 728 729Implemented support for the _CLS object in the AcpiGetObjectInfo external 730interface. 731 732Updated the definitions of the TCPA and TPM2 ACPI tables to the more 733recent TCG ACPI Specification, December 14, 2014. Table disassembler and 734compiler also updated. Note: The TCPA "server" table is not supported by 735the disassembler/table-compiler at this time. 736 737ACPI 6.0: Added definitions for the new GIC version field in the MADT. 738 739Example Code and Data Size: These are the sizes for the OS-independent 740acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 741debug version of the code includes the debug output trace mechanism and 742has a much larger code and data size. 743 744 Current Release: 745 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 746 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 747 Previous Release: 748 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 749 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 750 751 7522) iASL Compiler/Disassembler and Tools: 753 754Disassembler: Fixed a problem with the new symbolic operator disassembler 755where incorrect ASL code could be emitted in some cases for the "non- 756commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and 757ShiftRight. The actual problem cases seem to be rather unusual in common 758ASL code, however. David Box. 759 760Modified the linux version of acpidump to obtain ACPI tables from not 761just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv 762Zheng. 763 764iASL: Fixed a problem where the user preprocessor output file (.i) 765contained extra data that was not expected. The compiler was using this 766file as a temporary file and passed through #line directives in order to 767keep compiler error messages in sync with the input file and line number 768across multiple include files. The (.i) is no longer a temporary file as 769the compiler uses a new, different file for the original purpose. 770 771iASL: Fixed a problem where comments within the original ASL source code 772file were not passed through to the preprocessor output file, nor any 773listing files. 774 775iASL: Fixed some issues for the handling of the "#include" preprocessor 776directive and the similar (but not the same) "Include" ASL operator. 777 778iASL: Add support for the new OSDT in both the disassembler and compiler. 779 780iASL: Fixed a problem with the constant folding support where a Buffer 781object could be incorrectly generated (incorrectly formed) during a 782conversion to a Store() operator. 783 784AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new 785description text for the _REV predefined name. _REV now permanently 786returns 2, as per the ACPI 6.0 specification. 787 788Debugger: Enhanced the output of the Debug ASL object for references 789produced by the Index operator. For Buffers and strings, only output the 790actual byte pointed to by the index. For packages, only print the single 791package element decoded by the index. Previously, the entire 792buffer/string/package was emitted. 793 794iASL/Table-compiler: Fixed a regression where the "generic" data types 795were no longer recognized, causing errors. 796 797 798---------------------------------------- 79915 May 2015. Summary of changes for version 20150515: 800 801This release implements most of ACPI 6.0 as described below. 802 8031) ACPICA kernel-resident subsystem: 804 805Implemented runtime argument checking and return value checking for all 806new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI, 807_MTL, _PRR, _RDI, _RST, _TFP, _TSN. 808 809Example Code and Data Size: These are the sizes for the OS-independent 810acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 811debug version of the code includes the debug output trace mechanism and 812has a much larger code and data size. 813 814 Current Release: 815 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 816 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 817 Previous Release: 818 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 819 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 820 821 8222) iASL Compiler/Disassembler and Tools: 823 824iASL compiler: Added compile-time support for all new ACPI 6.0 predefined 825names (argument count validation and return value typechecking.) 826 827iASL disassembler and table compiler: implemented support for all new 828ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV. 829 830iASL disassembler and table compiler: Added ACPI 6.0 changes to existing 831tables: FADT, MADT. 832 833iASL preprocessor: Added a new directive to enable inclusion of binary 834blobs into ASL code. The new directive is #includebuffer. It takes a 835binary file as input and emits a named ascii buffer object into the ASL 836code. 837 838AcpiHelp: Added support for all new ACPI 6.0 predefined names. 839 840AcpiHelp: Added a new option, -d, to display all iASL preprocessor 841directives. 842 843AcpiHelp: Added a new option, -t, to display all known/supported ACPI 844tables. 845 846 847---------------------------------------- 84810 April 2015. Summary of changes for version 20150410: 849 850Reverted a change introduced in version 20150408 that caused 851a regression in the disassembler where incorrect operator 852symbols could be emitted. 853 854 855---------------------------------------- 85608 April 2015. Summary of changes for version 20150408: 857 858 8591) ACPICA kernel-resident subsystem: 860 861Permanently set the return value for the _REV predefined name. It now 862returns 2 (was 5). This matches other ACPI implementations. _REV will be 863deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2 864for ACPI 2.0 and later. It should never be used to differentiate or 865identify operating systems. 866 867Added the "Windows 2015" string to the _OSI support. ACPICA will now 868return TRUE to a query with this string. 869 870Fixed several issues with the local version of the printf function. 871 872Added the C99 compiler option (-std=c99) to the Unix makefiles. 873 874 Current Release: 875 Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total 876 Debug Version: 195.2K Code, 80.7K Data, 275.9K Total 877 Previous Release: 878 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 879 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 880 881 8822) iASL Compiler/Disassembler and Tools: 883 884iASL: Implemented an enhancement to the constant folding feature to 885transform the parse tree to a simple Store operation whenever possible: 886 Add (2, 3, X) ==> is converted to: Store (5, X) 887 X = 2 + 3 ==> is converted to: Store (5, X) 888 889Updated support for the SLIC table (Software Licensing Description Table) 890in both the Data Table compiler and the disassembler. The SLIC table 891support now conforms to "Microsoft Software Licensing Tables (SLIC and 892MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data 893following the ACPI header is now defined to be "Proprietary Data", and as 894such, can only be entered or displayed as a hex data block. 895 896Implemented full support for the MSDM table as described in the document 897above. Note: The format of MSDM is similar to SLIC. Any MSDM data 898following the ACPI header is defined to be "Proprietary Data", and can 899only be entered or displayed as a hex data block. 900 901Implemented the -Pn option for the iASL Table Compiler (was only 902implemented for the ASL compiler). This option disables the iASL 903preprocessor. 904 905Disassembler: For disassembly of Data Tables, added a comment field 906around the Ascii equivalent data that is emitted as part of the "Raw 907Table Data" block. This prevents the iASL Preprocessor from possible 908confusion if/when the table is compiled. 909 910Disassembler: Added an option (-df) to force the disassembler to assume 911that the table being disassembled contains valid AML. This feature is 912useful for disassembling AML files that contain ACPI signatures other 913than DSDT or SSDT (such as OEMx or other signatures). 914 915Changes for the EFI version of the tools: 9161) Fixed a build error/issue 9172) Fixed a cast warning 918 919iASL: Fixed a path issue with the __FILE__ operator by making the 920directory prefix optional within the internal SplitInputFilename 921function. 922 923Debugger: Removed some unused global variables. 924 925Tests: Updated the makefile for proper generation of the AAPITS suite. 926 927 928---------------------------------------- 92904 February 2015. Summary of changes for version 20150204: 930 931ACPICA kernel-resident subsystem: 932 933Updated all ACPICA copyrights and signons to 2014. Added the 2014 934copyright to all module headers and signons, including the standard Linux 935header. This affects virtually every file in the ACPICA core subsystem, 936iASL compiler, all ACPICA utilities, and the test suites. 937 938Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues. 939A raw gpe handling mechanism was created to allow better handling of GPE 940storms that aren't easily managed by the normal handler. The raw handler 941allows disabling/renabling of the the GPE so that interrupt storms can be 942avoided in cases where events cannot be timely serviced. In this 943scenario, handlers should use the AcpiSetGpe() API to disable/enable the 944GPE. This API will leave the reference counts undisturbed, thereby 945preventing unintentional clearing of the GPE when the intent in only to 946temporarily disable it. Raw handlers allow enabling and disabling of a 947GPE by removing GPE register locking. As such, raw handlers much provide 948their own locks while using GPE API's to protect access to GPE data 949structures. 950Lv Zheng 951 952Events: Always modify GPE registers under the GPE lock. 953Applies GPE lock around AcpiFinishGpe() to protect access to GPE register 954values. Reported as bug by joe.liu@apple.com. 955 956Unix makefiles: Separate option to disable optimizations and 957_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the 958NOOPT disable option and creates a separate flag (NOFORTIFY) for this 959purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined 960errors when building ACPICA. This allows disabling the option without 961also having to disable optimazations. 962David Box 963 964 Current Release: 965 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 966 Debug Version: 199.2K Code, 82.4K Data, 281.6K Total 967 968-- 969-------------------------------------- 97007 November 2014. Summary of changes for version 20141107: 971 972This release is available at https://acpica.org/downloads 973 974This release introduces and implements language extensions to ASL that 975provide support for symbolic ("C-style") operators and expressions. These 976language extensions are known collectively as ASL+. 977 978 9791) iASL Compiler/Disassembler and Tools: 980 981Disassembler: Fixed a problem with disassembly of the UartSerialBus 982macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E. 983Box. 984 985Disassembler: Fixed the Unicode macro support to add escape sequences. 986All non-printable ASCII values are emitted as escape sequences, as well 987as the standard escapes for quote and backslash. Ensures that the 988disassembled macro can be correctly recompiled. 989 990iASL: Added Printf/Fprintf macros for formatted output. These macros are 991translated to existing AML Concatenate and Store operations. Printf 992writes to the ASL Debug object. Fprintf allows the specification of an 993ASL name as the target. Only a single format specifier is required, %o, 994since the AML interpreter dynamically converts objects to the required 995type. David E. Box. 996 997 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 998 (Concatenate (Concatenate (Concatenate ("", Arg0), 999 ": Unexpected value for "), Arg1), ", "), Arg2), 1000 " at line "), Arg3), Debug) 1001 1002 (new) Printf ("%o: Unexpected value for %o, %o at line %o", 1003 Arg0, Arg1, Arg2, Arg3) 1004 1005 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 1006 ("", Arg1), ": "), Arg0), " Successful"), STR1) 1007 1008 (new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0) 1009 1010iASL: Added debug options (-bp, -bt) to dynamically prune levels of the 1011ASL parse tree before the AML code is generated. This allows blocks of 1012ASL code to be removed in order to help locate and identify problem 1013devices and/or code. David E. Box. 1014 1015AcpiExec: Added support (-fi) for an optional namespace object 1016initialization file. This file specifies initial values for namespace 1017objects as necessary for debugging and testing different ASL code paths 1018that may be taken as a result of BIOS options. 1019 1020 10212) Overview of symbolic operator support for ASL (ASL+) 1022------------------------------------------------------- 1023 1024As an extension to the ASL language, iASL implements support for symbolic 1025(C-style) operators for math and logical expressions. This can greatly 1026simplify ASL code as well as improve both readability and 1027maintainability. These language extensions can exist concurrently with 1028all legacy ASL code and expressions. 1029 1030The symbolic extensions are 100% compatible with existing AML 1031interpreters, since no new AML opcodes are created. To implement the 1032extensions, the iASL compiler transforms the symbolic expressions into 1033the legacy ASL/AML equivalents at compile time. 1034 1035Full symbolic expressions are supported, along with the standard C 1036precedence and associativity rules. 1037 1038Full disassembler support for the symbolic expressions is provided, and 1039creates an automatic migration path for existing ASL code to ASL+ code 1040via the disassembly process. By default, the disassembler now emits ASL+ 1041code with symbolic expressions. An option (-dl) is provided to force the 1042disassembler to emit legacy ASL code if desired. 1043 1044Below is the complete list of the currently supported symbolic operators 1045with examples. See the iASL User Guide for additional information. 1046 1047 1048ASL+ Syntax Legacy ASL Equivalent 1049----------- --------------------- 1050 1051 // Math operators 1052 1053Z = X + Y Add (X, Y, Z) 1054Z = X - Y Subtract (X, Y, Z) 1055Z = X * Y Multiply (X, Y, Z) 1056Z = X / Y Divide (X, Y, , Z) 1057Z = X % Y Mod (X, Y, Z) 1058Z = X << Y ShiftLeft (X, Y, Z) 1059Z = X >> Y ShiftRight (X, Y, Z) 1060Z = X & Y And (X, Y, Z) 1061Z = X | Y Or (X, Y, Z) 1062Z = X ^ Y Xor (X, Y, Z) 1063Z = ~X Not (X, Z) 1064X++ Increment (X) 1065X-- Decrement (X) 1066 1067 // Logical operators 1068 1069(X == Y) LEqual (X, Y) 1070(X != Y) LNotEqual (X, Y) 1071(X < Y) LLess (X, Y) 1072(X > Y) LGreater (X, Y) 1073(X <= Y) LLessEqual (X, Y) 1074(X >= Y) LGreaterEqual (X, Y) 1075(X && Y) LAnd (X, Y) 1076(X || Y) LOr (X, Y) 1077(!X) LNot (X) 1078 1079 // Assignment and compound assignment operations 1080 1081X = Y Store (Y, X) 1082X += Y Add (X, Y, X) 1083X -= Y Subtract (X, Y, X) 1084X *= Y Multiply (X, Y, X) 1085X /= Y Divide (X, Y, , X) 1086X %= Y Mod (X, Y, X) 1087X <<= Y ShiftLeft (X, Y, X) 1088X >>= Y ShiftRight (X, Y, X) 1089X &= Y And (X, Y, X) 1090X |= Y Or (X, Y, X) 1091X ^= Y Xor (X, Y, X) 1092 1093 10943) ASL+ Examples: 1095----------------- 1096 1097Legacy ASL: 1098 If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual ( 1099 And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 11000x03FB), 1101 0x02E0), LEqual (And (R540, 0x03FB), 0x02E0)))) 1102 { 1103 And (MEMB, 0xFFFFFFF0, SRMB) 1104 Store (MEMB, Local2) 1105 Store (PDBM, Local1) 1106 And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) 1107 Store (SRMB, MEMB) 1108 Or (PDBM, 0x02, PDBM) 1109 } 1110 1111ASL+ version: 1112 If (((R510 & 0x03FB) == 0x02E0) || 1113 ((R520 & 0x03FB) == 0x02E0) || 1114 ((R530 & 0x03FB) == 0x02E0) || 1115 ((R540 & 0x03FB) == 0x02E0)) 1116 { 1117 SRMB = (MEMB & 0xFFFFFFF0) 1118 Local2 = MEMB 1119 Local1 = PDBM 1120 PDBM &= 0xFFFFFFFFFFFFFFF9 1121 MEMB = SRMB 1122 PDBM |= 0x02 1123 } 1124 1125Legacy ASL: 1126 Store (0x1234, Local1) 1127 Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3) 1128 Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3) 1129 Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3) 1130 Store (Index (PKG1, 0x03), Local6) 1131 Store (Add (Local3, Local2), Debug) 1132 Add (Local1, 0x0F, Local2) 1133 Add (Local1, Multiply (Local2, Local3), Local2) 1134 Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3) 1135 1136ASL+ version: 1137 Local1 = 0x1234 1138 Local3 = (((Local1 + TEST) + 0x20) * Local2) 1139 Local3 = (Local2 * ((Local1 + TEST) + 0x20)) 1140 Local3 = (Local1 + (TEST + (0x20 * Local2))) 1141 Local6 = Index (PKG1, 0x03) 1142 Debug = (Local3 + Local2) 1143 Local2 = (Local1 + 0x0F) 1144 Local2 = (Local1 + (Local2 * Local3)) 1145 Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1)) 1146 1147 1148---------------------------------------- 114926 September 2014. Summary of changes for version 20140926: 1150 11511) ACPICA kernel-resident subsystem: 1152 1153Updated the GPIO operation region handler interface (GeneralPurposeIo). 1154In order to support GPIO Connection objects with multiple pins, along 1155with the related Field objects, the following changes to the interface 1156have been made: The Address is now defined to be the offset in bits of 1157the field unit from the previous invocation of a Connection. It can be 1158viewed as a "Pin Number Index" into the connection resource descriptor. 1159The BitWidth is the exact bit width of the field. It is usually one bit, 1160but not always. See the ACPICA reference guide (section 8.8.6.2.1) for 1161additional information and examples. 1162 1163GPE support: During ACPICA/GPE initialization, ensure that all GPEs with 1164corresponding _Lxx/_Exx methods are disabled (they may have been enabled 1165by the firmware), so that they cannot fire until they are enabled via 1166AcpiUpdateAllGpes. Rafael J. Wysocki. 1167 1168Added a new return flag for the Event/GPE status interfaces -- 1169AcpiGetEventStatus and AcpiGetGpeStatus. The new 1170ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or 1171GPE currently has a handler associated with it, and can thus actually 1172affect the system. Lv Zheng. 1173 1174Example Code and Data Size: These are the sizes for the OS-independent 1175acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1176debug version of the code includes the debug output trace mechanism and 1177has a much larger code and data size. 1178 1179 Current Release: 1180 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 1181 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 1182 Previous Release: 1183 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 1184 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 1185 11862) iASL Compiler/Disassembler and Tools: 1187 1188iASL: Fixed a memory allocation/free regression introduced in 20140828 1189that could cause the compiler to crash. This was introduced inadvertently 1190during the effort to eliminate compiler memory leaks. ACPICA BZ 1111, 11911113. 1192 1193iASL: Removed two error messages that have been found to create false 1194positives, until they can be fixed and fully validated (ACPICA BZ 1112): 11951) Illegal forward reference within a method 11962) Illegal reference across two methods 1197 1198iASL: Implemented a new option (-lm) to create a hardware mapping file 1199that summarizes all GPIO, I2C, SPI, and UART connections. This option 1200works for both the compiler and disassembler. See the iASL compiler user 1201guide for additional information and examples (section 6.4.6). 1202 1203AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to 1204version 2. This corrects the AE_BAD_HEADER exception seen on systems with 1205a version 1 RSDP. Lv Zheng ACPICA BZ 1097. 1206 1207AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode 1208unless STDIN is actually a terminal. Assists with batch-mode processing. 1209ACPICA BZ 1114. 1210 1211Disassembler/AcpiHelp: Added another large group of recognized _HID 1212values. 1213 1214 1215---------------------------------------- 121628 August 2014. Summary of changes for version 20140828: 1217 12181) ACPICA kernel-resident subsystem: 1219 1220Fixed a problem related to the internal use of the Timer() operator where 1221a 64-bit divide could cause an attempted link to a double-precision math 1222library. This divide is not actually necessary, so the code was 1223restructured to eliminate it. Lv Zheng. 1224 1225ACPI 5.1: Added support for the runtime validation of the _DSD package 1226(similar to the iASL support). 1227 1228ACPI 5.1/Headers: Added support for the GICC affinity subtable to the 1229SRAT table. Hanjun Guo <hanjun.guo@linaro.org>. 1230 1231Example Code and Data Size: These are the sizes for the OS-independent 1232acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1233debug version of the code includes the debug output trace mechanism and 1234has a much larger code and data size. 1235 1236 Current Release: 1237 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 1238 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 1239 Previous Release: 1240 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total1 1241 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 1242 12432) iASL Compiler/Disassembler and Tools: 1244 1245AcpiExec: Fixed a problem on unix systems where the original terminal 1246state was not always properly restored upon exit. Seen when using the -v 1247option. ACPICA BZ 1104. 1248 1249iASL: Fixed a problem with the validation of the ranges/length within the 1250Memory24 resource descriptor. There was a boundary condition when the 1251range was equal to the (length -1) caused by the fact that these values 1252are defined in 256-byte blocks, not bytes. ACPICA BZ 1098 1253 1254Disassembler: Fixed a problem with the GpioInt descriptor interrupt 1255polarity 1256flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword 1257is 1258now supported properly. 1259 1260ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported 1261in the disassembler, data table compiler, and table template generator. 1262 1263iASL: Added a requirement for Device() objects that one of either a _HID 1264or _ADR must exist within the scope of a Device, as per the ACPI 1265specification. Remove a similar requirement that was incorrectly in place 1266for the _DSD object. 1267 1268iASL: Added error detection for illegal named references within control 1269methods that would cause runtime failures. Now trapped as errors are: 1) 1270References to objects within a non-parent control method. 2) Forward 1271references (within a method) -- for control methods, AML interpreters use 1272a one-pass parse of control methods. ACPICA BZ 1008. 1273 1274iASL: Added error checking for dependencies related to the _PSx power 1275methods. ACPICA BZ 1029. 12761) For _PS0, one of these must exist within the same scope: _PS1, _PS2, 1277_PS3. 12782) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same 1279scope. 1280 1281iASL and table compiler: Cleanup miscellaneous memory leaks by fully 1282deploying the existing object and string caches and adding new caches for 1283the table compiler. 1284 1285iASL: Split the huge parser source file into multiple subfiles to improve 1286manageability. Generation now requires the M4 macro preprocessor, which 1287is part of the Bison distribution on both unix and windows platforms. 1288 1289AcpiSrc: Fixed and removed all extraneous warnings generated during 1290entire ACPICA source code scan and/or conversion. 1291 1292 1293---------------------------------------- 1294 129524 July 2014. Summary of changes for version 20140724: 1296 1297The ACPI 5.1 specification has been released and is available at: 1298http://uefi.org/specs/access 1299 1300 13010) ACPI 5.1 support in ACPICA: 1302 1303ACPI 5.1 is fully supported in ACPICA as of this release. 1304 1305New predefined names. Support includes iASL and runtime ACPICA 1306validation. 1307 _CCA (Cache Coherency Attribute). 1308 _DSD (Device-Specific Data). David Box. 1309 1310Modifications to existing ACPI tables. Support includes headers, iASL 1311Data Table compiler, disassembler, and the template generator. 1312 FADT - New fields and flags. Graeme Gregory. 1313 GTDT - One new subtable and new fields. Tomasz Nowicki. 1314 MADT - Two new subtables. Tomasz Nowicki. 1315 PCCT - One new subtable. 1316 1317Miscellaneous. 1318 New notification type for System Resource Affinity change events. 1319 1320 13211) ACPICA kernel-resident subsystem: 1322 1323Fixed a regression introduced in 20140627 where a fault can happen during 1324the deletion of Alias AML namespace objects. The problem affected both 1325the core ACPICA and the ACPICA tools including iASL and AcpiExec. 1326 1327Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a 1328simple mechanism to enable wake GPEs that have no associated handler or 1329control method. Rafael Wysocki. 1330 1331Updated the AcpiEnableGpe interface to disallow the enable if there is no 1332handler or control method associated with the particular GPE. This will 1333help avoid meaningless GPEs and even GPE floods. Rafael Wysocki. 1334 1335Updated GPE handling and dispatch by disabling the GPE before clearing 1336the status bit for edge-triggered GPEs. Lv Zheng. 1337 1338Added Timer() support to the AML Debug object. The current timer value is 1339now displayed with each invocation of (Store to) the debug object to 1340enable simple generation of execution times for AML code (method 1341execution for example.) ACPICA BZ 1093. 1342 1343Example Code and Data Size: These are the sizes for the OS-independent 1344acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1345debug version of the code includes the debug output trace mechanism and 1346has a much larger code and data size. 1347 1348 Current Release: 1349 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total 1350 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 1351 Previous Release: 1352 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 1353 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 1354 1355 13562) iASL Compiler/Disassembler and Tools: 1357 1358Fixed an issue with the recently added local printf implementation, 1359concerning width/precision specifiers that could cause incorrect output. 1360Lv Zheng. ACPICA BZ 1094. 1361 1362Disassembler: Added support to detect buffers that contain UUIDs and 1363disassemble them to an invocation of the ToUUID operator. Also emit 1364commented descriptions of known ACPI-related UUIDs. 1365 1366AcpiHelp: Added support to display known ACPI-related UUIDs. New option, 1367-u. Adds three new files. 1368 1369iASL: Update table compiler and disassembler for DMAR table changes that 1370were introduced in September 2013. With assistance by David Woodhouse. 1371 1372---------------------------------------- 137327 June 2014. Summary of changes for version 20140627: 1374 13751) ACPICA kernel-resident subsystem: 1376 1377Formatted Output: Implemented local versions of standard formatted output 1378utilities such as printf, etc. Over time, it has been discovered that 1379there are in fact many portability issues with printf, and the addition 1380of this feature will fix/prevent these issues once and for all. Some 1381known issues are summarized below: 1382 13831) Output of 64-bit values is not portable. For example, UINT64 is %ull 1384for the Linux kernel and is %uI64 for some MSVC versions. 13852) Invoking printf consistently in a manner that is portable across both 138632-bit and 64-bit platforms is difficult at best in many situations. 13873) The output format for pointers varies from system to system (leading 1388zeros especially), and leads to inconsistent output from ACPICA across 1389platforms. 13904) Certain platform-specific printf formats may conflict with ACPICA use. 13915) If there is no local C library available, ACPICA now has local support 1392for printf. 1393 1394-- To address these printf issues in a complete manner, ACPICA now 1395directly implements a small subset of printf format specifiers, only 1396those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng. 1397 1398Implemented support for ACPICA generation within the EFI environment. 1399Initially, the AcpiDump utility is supported in the UEFI shell 1400environment. Lv Zheng. 1401 1402Added a new external interface, AcpiLogError, to improve ACPICA 1403portability. This allows the host to redirect error messages from the 1404ACPICA utilities. Lv Zheng. 1405 1406Added and deployed new OSL file I/O interfaces to improve ACPICA 1407portability: 1408 AcpiOsOpenFile 1409 AcpiOsCloseFile 1410 AcpiOsReadFile 1411 AcpiOsWriteFile 1412 AcpiOsGetFileOffset 1413 AcpiOsSetFileOffset 1414There are C library implementations of these functions in the new file 1415service_layers/oslibcfs.c -- however, the functions can be implemented by 1416the local host in any way necessary. Lv Zheng. 1417 1418Implemented a mechanism to disable/enable ACPI table checksum validation 1419at runtime. This can be useful when loading tables very early during OS 1420initialization when it may not be possible to map the entire table in 1421order to compute the checksum. Lv Zheng. 1422 1423Fixed a buffer allocation issue for the Generic Serial Bus support. 1424Originally, a fixed buffer length was used. This change allows for 1425variable-length buffers based upon the protocol indicated by the field 1426access attributes. Reported by Lan Tianyu. Lv Zheng. 1427 1428Fixed a problem where an object detached from a namespace node was not 1429properly terminated/cleared and could cause a circular list problem if 1430reattached. ACPICA BZ 1063. David Box. 1431 1432Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick. 1433 1434Fixed a possible memory leak in an error return path within the function 1435AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King. 1436 1437Example Code and Data Size: These are the sizes for the OS-independent 1438acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1439debug version of the code includes the debug output trace mechanism and 1440has a much larger code and data size. 1441 1442 Current Release: 1443 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 1444 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 1445 Previous Release: 1446 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 1447 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 1448 1449 14502) iASL Compiler/Disassembler and Tools: 1451 1452Disassembler: Add dump of ASCII equivalent text within a comment at the 1453end of each line of the output for the Buffer() ASL operator. 1454 1455AcpiDump: Miscellaneous changes: 1456 Fixed repetitive table dump in -n mode. 1457 For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if 1458the ACPI 2.0 GUID fails. 1459 1460iASL: Fixed a problem where the compiler could fault if incorrectly given 1461an acpidump output file as input. ACPICA BZ 1088. David Box. 1462 1463AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if 1464they are invoked without any arguments. 1465 1466Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ 14671086. Colin Ian King. 1468 1469Disassembler: Cleaned up a block of code that extracts a parent Op 1470object. Added a comment that explains that the parent is guaranteed to be 1471valid in this case. ACPICA BZ 1069. 1472 1473 1474---------------------------------------- 147524 April 2014. Summary of changes for version 20140424: 1476 14771) ACPICA kernel-resident subsystem: 1478 1479Implemented support to skip/ignore NULL address entries in the RSDT/XSDT. 1480Some of these tables are known to contain a trailing NULL entry. Lv 1481Zheng. 1482 1483Removed an extraneous error message for the case where there are a large 1484number of system GPEs (> 124). This was the "32-bit FADT register is too 1485long to convert to GAS struct" message, which is irrelevant for GPEs 1486since the GPEx_BLK_LEN fields of the FADT are always used instead of the 1487(limited capacity) GAS bit length. Also, several changes to ensure proper 1488support for GPE numbers > 255, where some "GPE number" fields were 8-bits 1489internally. 1490 1491Implemented and deployed additional configuration support for the public 1492ACPICA external interfaces. Entire classes of interfaces can now be 1493easily modified or configured out, replaced by stubbed inline functions 1494by default. Lv Zheng. 1495 1496Moved all public ACPICA runtime configuration globals to the public 1497ACPICA external interface file for convenience. Also, removed some 1498obsolete/unused globals. See the file acpixf.h. Lv Zheng. 1499 1500Documentation: Added a new section to the ACPICA reference describing the 1501maximum number of GPEs that can be supported by the FADT-defined GPEs in 1502block zero and one. About 1200 total. See section 4.4.1 of the ACPICA 1503reference. 1504 1505Example Code and Data Size: These are the sizes for the OS-independent 1506acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1507debug version of the code includes the debug output trace mechanism and 1508has a much larger code and data size. 1509 1510 Current Release: 1511 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 1512 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 1513 Previous Release: 1514 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 1515 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 1516 1517 15182) iASL Compiler/Disassembler and Tools: 1519 1520iASL and disassembler: Add full support for the LPIT table (Low Power 1521Idle Table). Includes support in the disassembler, data table compiler, 1522and template generator. 1523 1524AcpiDump utility: 15251) Add option to force the use of the RSDT (over the XSDT). 15262) Improve validation of the RSDP signature (use 8 chars instead of 4). 1527 1528iASL: Add check for predefined packages that are too large. For 1529predefined names that contain subpackages, check if each subpackage is 1530too large. (Check for too small already exists.) 1531 1532Debugger: Updated the GPE command (which simulates a GPE by executing the 1533GPE code paths in ACPICA). The GPE device is now optional, and defaults 1534to the GPE 0/1 FADT-defined blocks. 1535 1536Unix application OSL: Update line-editing support. Add additional error 1537checking and take care not to reset terminal attributes on exit if they 1538were never set. This should help guarantee that the terminal is always 1539left in the previous state on program exit. 1540 1541 1542---------------------------------------- 154325 March 2014. Summary of changes for version 20140325: 1544 15451) ACPICA kernel-resident subsystem: 1546 1547Updated the auto-serialize feature for control methods. This feature 1548automatically serializes all methods that create named objects in order 1549to prevent runtime errors. The update adds support to ignore the 1550currently executing AML SyncLevel when invoking such a method, in order 1551to prevent disruption of any existing SyncLevel priorities that may exist 1552in the AML code. Although the use of SyncLevels is relatively rare, this 1553change fixes a regression where an AE_AML_MUTEX_ORDER exception can 1554appear on some machines starting with the 20140214 release. 1555 1556Added a new external interface to allow the host to install ACPI tables 1557very early, before the namespace is even created. AcpiInstallTable gives 1558the host additional flexibility for ACPI table management. Tables can be 1559installed directly by the host as if they had originally appeared in the 1560XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables 1561(anything except the DSDT and FACS). Adds a new file, tbdata.c, along 1562with additional internal restructuring and cleanup. See the ACPICA 1563Reference for interface details. Lv Zheng. 1564 1565Added validation of the checksum for all incoming dynamically loaded 1566tables (via external interfaces or via AML Load/LoadTable operators). Lv 1567Zheng. 1568 1569Updated the use of the AcpiOsWaitEventsComplete interface during Notify 1570and GPE handler removal. Restructured calls to eliminate possible race 1571conditions. Lv Zheng. 1572 1573Added a warning for the use/execution of the ASL/AML Unload (table) 1574operator. This will help detect and identify machines that use this 1575operator if and when it is ever used. This operator has never been seen 1576in the field and the usage model and possible side-effects of the drastic 1577runtime action of a full table removal are unknown. 1578 1579Reverted the use of #pragma push/pop which was introduced in the 20140214 1580release. It appears that push and pop are not implemented by enough 1581compilers to make the use of this feature feasible for ACPICA at this 1582time. However, these operators may be deployed in a future ACPICA 1583release. 1584 1585Added the missing EXPORT_SYMBOL macros for the install and remove SCI 1586handler interfaces. 1587 1588Source code generation: 15891) Disabled the use of the "strchr" macro for the gcc-specific 1590generation. For some versions of gcc, this macro can periodically expose 1591a compiler bug which in turn causes compile-time error(s). 15922) Added support for PPC64 compilation. Colin Ian King. 1593 1594Example Code and Data Size: These are the sizes for the OS-independent 1595acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1596debug version of the code includes the debug output trace mechanism and 1597has a much larger code and data size. 1598 1599 Current Release: 1600 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 1601 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 1602 Previous Release: 1603 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 1604 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 1605 1606 16072) iASL Compiler/Disassembler and Tools: 1608 1609Disassembler: Added several new features to improve the readability of 1610the resulting ASL code. Extra information is emitted within comment 1611fields in the ASL code: 16121) Known _HID/_CID values are decoded to descriptive text. 16132) Standard values for the Notify() operator are decoded to descriptive 1614text. 16153) Target operands are expanded to full pathnames (in a comment) when 1616possible. 1617 1618Disassembler: Miscellaneous updates for extern() handling: 16191) Abort compiler if file specified by -fe option does not exist. 16202) Silence unnecessary warnings about argument count mismatches. 16213) Update warning messages concerning unresolved method externals. 16224) Emit "UnknownObj" keyword for externals whose type cannot be 1623determined. 1624 1625AcpiHelp utility: 16261) Added the -a option to display both the ASL syntax and the AML 1627encoding for an input ASL operator. This effectively displays all known 1628information about an ASL operator with one AcpiHelp invocation. 16292) Added substring match support (similar to a wildcard) for the -i 1630(_HID/PNP IDs) option. 1631 1632iASL/Disassembler: Since this tool does not yet support execution on big- 1633endian machines, added detection of endianness and an error message if 1634execution is attempted on big-endian. Support for big-endian within iASL 1635is a feature that is on the ACPICA to-be-done list. 1636 1637AcpiBin utility: 16381) Remove option to extract binary files from an acpidump; this function 1639is made obsolete by the AcpiXtract utility. 16402) General cleanup of open files and allocated buffers. 1641 1642 1643---------------------------------------- 164414 February 2014. Summary of changes for version 20140214: 1645 16461) ACPICA kernel-resident subsystem: 1647 1648Implemented a new mechanism to proactively prevent problems with ill- 1649behaved reentrant control methods that create named ACPI objects. This 1650behavior is illegal as per the ACPI specification, but is nonetheless 1651frequently seen in the field. Previously, this could lead to an 1652AE_ALREADY_EXISTS exception if the method was actually entered by more 1653than one thread. This new mechanism detects such methods at table load 1654time and marks them "serialized" to prevent reentrancy. A new global 1655option, AcpiGbl_AutoSerializeMethods, has been added to disable this 1656feature if desired. This mechanism and global option obsoletes and 1657supersedes the previous AcpiGbl_SerializeAllMethods option. 1658 1659Added the "Windows 2013" string to the _OSI support. ACPICA will now 1660respond TRUE to _OSI queries with this string. It is the stated policy of 1661ACPICA to add new strings to the _OSI support as soon as possible after 1662they are defined. See the full ACPICA _OSI policy which has been added to 1663the utilities/utosi.c file. 1664 1665Hardened/updated the _PRT return value auto-repair code: 16661) Do not abort the repair on a single subpackage failure, continue to 1667check all subpackages. 16682) Add check for the minimum subpackage length (4). 16693) Properly handle extraneous NULL package elements. 1670 1671Added support to avoid the possibility of infinite loops when traversing 1672object linked lists. Never allow an infinite loop, even in the face of 1673corrupted object lists. 1674 1675ACPICA headers: Deployed the use of #pragma pack(push) and #pragma 1676pack(pop) directives to ensure that the ACPICA headers are independent of 1677compiler settings or other host headers. 1678 1679Example Code and Data Size: These are the sizes for the OS-independent 1680acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1681debug version of the code includes the debug output trace mechanism and 1682has a much larger code and data size. 1683 1684 Current Release: 1685 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 1686 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 1687 Previous Release: 1688 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 1689 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 1690 1691 16922) iASL Compiler/Disassembler and Tools: 1693 1694iASL/Table-compiler: Fixed a problem with support for the SPMI table. The 1695first reserved field was incorrectly forced to have a value of zero. This 1696change correctly forces the field to have a value of one. ACPICA BZ 1081. 1697 1698Debugger: Added missing support for the "Extra" and "Data" subobjects 1699when displaying object data. 1700 1701Debugger: Added support to display entire object linked lists when 1702displaying object data. 1703 1704iASL: Removed the obsolete -g option to obtain ACPI tables from the 1705Windows registry. This feature has been superseded by the acpidump 1706utility. 1707 1708 1709---------------------------------------- 171014 January 2014. Summary of changes for version 20140114: 1711 17121) ACPICA kernel-resident subsystem: 1713 1714Updated all ACPICA copyrights and signons to 2014. Added the 2014 1715copyright to all module headers and signons, including the standard Linux 1716header. This affects virtually every file in the ACPICA core subsystem, 1717iASL compiler, all ACPICA utilities, and the test suites. 1718 1719Improved parameter validation for AcpiInstallGpeBlock. Added the 1720following checks: 17211) The incoming device handle refers to type ACPI_TYPE_DEVICE. 17222) There is not already a GPE block attached to the device. 1723Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a 1724device. 1725 1726Correctly support "references" in the ACPI_OBJECT. This change fixes the 1727support to allow references (namespace nodes) to be passed as arguments 1728to control methods via the evaluate object interface. This is probably 1729most useful for testing purposes, however. 1730 1731Improved support for 32/64 bit physical addresses in printf()-like 1732output. This change improves the support for physical addresses in printf 1733debug statements and other output on both 32-bit and 64-bit hosts. It 1734consistently outputs the appropriate number of bytes for each host. The 1735%p specifier is unsatisfactory since it does not emit uniform output on 1736all hosts/clib implementations (on some, leading zeros are not supported, 1737leading to difficult-to-read output). 1738 1739Example Code and Data Size: These are the sizes for the OS-independent 1740acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1741debug version of the code includes the debug output trace mechanism and 1742has a much larger code and data size. 1743 1744 Current Release: 1745 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 1746 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 1747 Previous Release: 1748 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 1749 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 1750 1751 17522) iASL Compiler/Disassembler and Tools: 1753 1754iASL: Fix a possible fault when using the Connection() operator. Fixes a 1755problem if the parent Field definition for the Connection operator refers 1756to an operation region that does not exist. ACPICA BZ 1064. 1757 1758AcpiExec: Load of local test tables is now optional. The utility has the 1759capability to load some various tables to test features of ACPICA. 1760However, there are enough of them that the output of the utility became 1761confusing. With this change, only the required local tables are displayed 1762(RSDP, XSDT, etc.) along with the actual tables loaded via the command 1763line specification. This makes the default output simler and easier to 1764understand. The -el command line option restores the original behavior 1765for testing purposes. 1766 1767AcpiExec: Added support for overlapping operation regions. This change 1768expands the simulation of operation regions by supporting regions that 1769overlap within the given address space. Supports SystemMemory and 1770SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031. 1771 1772AcpiExec: Added region handler support for PCI_Config and EC spaces. This 1773allows AcpiExec to simulate these address spaces, similar to the current 1774support for SystemMemory and SystemIO. 1775 1776Debugger: Added new command to read/write/compare all namespace objects. 1777The command "test objects" will exercise the entire namespace by writing 1778new values to each data object, and ensuring that the write was 1779successful. The original value is then restored and verified. 1780 1781Debugger: Added the "test predefined" command. This change makes this 1782test public and puts it under the new "test" command. The test executes 1783each and every predefined name within the current namespace. 1784 1785 1786---------------------------------------- 178718 December 2013. Summary of changes for version 20131218: 1788 1789Global note: The ACPI 5.0A specification was released this month. There 1790are no changes needed for ACPICA since this release of ACPI is an 1791errata/clarification release. The specification is available at 1792acpi.info. 1793 1794 17951) ACPICA kernel-resident subsystem: 1796 1797Added validation of the XSDT root table if it is present. Some older 1798platforms contain an XSDT that is ill-formed or otherwise invalid (such 1799as containing some or all entries that are NULL pointers). This change 1800adds a new function to validate the XSDT before actually using it. If the 1801XSDT is found to be invalid, ACPICA will now automatically fall back to 1802using the RSDT instead. Original implementation by Zhao Yakui. Ported to 1803ACPICA and enhanced by Lv Zheng and Bob Moore. 1804 1805Added a runtime option to ignore the XSDT and force the use of the RSDT. 1806This change adds a runtime option that will force ACPICA to use the RSDT 1807instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec 1808requires that an XSDT be used instead of the RSDT, the XSDT has been 1809found to be corrupt or ill-formed on some machines. Lv Zheng. 1810 1811Added a runtime option to favor 32-bit FADT register addresses over the 181264-bit addresses. This change adds an option to favor 32-bit FADT 1813addresses when there is a conflict between the 32-bit and 64-bit versions 1814of the same register. The default behavior is to use the 64-bit version 1815in accordance with the ACPI specification. This can now be overridden via 1816the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng. 1817 1818During the change above, the internal "Convert FADT" and "Verify FADT" 1819functions have been merged to simplify the code, making it easier to 1820understand and maintain. ACPICA BZ 933. 1821 1822Improve exception reporting and handling for GPE block installation. 1823Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the 1824status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019. 1825 1826Added helper macros to extract bus/segment numbers from the HEST table. 1827This change adds two macros to extract the encoded bus and segment 1828numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT. 1829Betty Dall <betty.dall@hp.com> 1830 1831Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used 1832by ACPICA. It is not a public macro, so it should have no effect on 1833existing OSV code. Lv Zheng. 1834 1835Example Code and Data Size: These are the sizes for the OS-independent 1836acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1837debug version of the code includes the debug output trace mechanism and 1838has a much larger code and data size. 1839 1840 Current Release: 1841 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 1842 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 1843 Previous Release: 1844 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 1845 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 1846 1847 18482) iASL Compiler/Disassembler and Tools: 1849 1850Disassembler: Improved pathname support for emitted External() 1851statements. This change adds full pathname support for external names 1852that have been resolved internally by the inclusion of additional ACPI 1853tables (via the iASL -e option). Without this change, the disassembler 1854can emit multiple externals for the same object, or it become confused 1855when the Scope() operator is used on an external object. Overall, greatly 1856improves the ability to actually recompile the emitted ASL code when 1857objects a referenced across multiple ACPI tables. Reported by Michael 1858Tsirkin (mst@redhat.com). 1859 1860Tests/ASLTS: Updated functional control suite to execute with no errors. 1861David Box. Fixed several errors related to the testing of the interpreter 1862slack mode. Lv Zheng. 1863 1864iASL: Added support to detect names that are declared within a control 1865method, but are unused (these are temporary names that are only valid 1866during the time the method is executing). A remark is issued for these 1867cases. ACPICA BZ 1022. 1868 1869iASL: Added full support for the DBG2 table. Adds full disassembler, 1870table compiler, and template generator support for the DBG2 table (Debug 1871Port 2 table). 1872 1873iASL: Added full support for the PCCT table, update the table definition. 1874Updates the PCCT table definition in the actbl3.h header and adds table 1875compiler and template generator support. 1876 1877iASL: Added an option to emit only error messages (no warnings/remarks). 1878The -ve option will enable only error messages, warnings and remarks are 1879suppressed. This can simplify debugging when only the errors are 1880important, such as when an ACPI table is disassembled and there are many 1881warnings and remarks -- but only the actual errors are of real interest. 1882 1883Example ACPICA code (source/tools/examples): Updated the example code so 1884that it builds to an actual working program, not just example code. Added 1885ACPI tables and execution of an example control method in the DSDT. Added 1886makefile support for Unix generation. 1887 1888 1889---------------------------------------- 189015 November 2013. Summary of changes for version 20131115: 1891 1892This release is available at https://acpica.org/downloads 1893 1894 18951) ACPICA kernel-resident subsystem: 1896 1897Resource Manager: Fixed loop termination for the "get AML length" 1898function. The loop previously had an error termination on a NULL resource 1899pointer, which can never happen since the loop simply increments a valid 1900resource pointer. This fix changes the loop to terminate with an error on 1901an invalid end-of-buffer condition. The problem can be seen as an 1902infinite loop by callers to AcpiSetCurrentResources with an invalid or 1903corrupted resource descriptor, or a resource descriptor that is missing 1904an END_TAG descriptor. Reported by Dan Carpenter 1905<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore. 1906 1907Table unload and ACPICA termination: Delete all attached data objects 1908during namespace node deletion. This fix updates namespace node deletion 1909to delete the entire list of attached objects (attached via 1910AcpiAttachObject) instead of just one of the attached items. ACPICA BZ 19111024. Tomasz Nowicki (tomasz.nowicki@linaro.org). 1912 1913ACPICA termination: Added support to delete all objects attached to the 1914root namespace node. This fix deletes any and all objects that have been 1915attached to the root node via AcpiAttachData. Previously, none of these 1916objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026. 1917 1918Debug output: Do not emit the function nesting level for the in-kernel 1919build. The nesting level is really only useful during a single-thread 1920execution. Therefore, only enable this output for the AcpiExec utility. 1921Also, only emit the thread ID when executing under AcpiExec (Context 1922switches are still always detected and a message is emitted). ACPICA BZ 1923972. 1924 1925Example Code and Data Size: These are the sizes for the OS-independent 1926acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1927debug version of the code includes the debug output trace mechanism and 1928has a much larger code and data size. 1929 1930 Current Release: 1931 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 1932 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 1933 Previous Release: 1934 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 1935 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 1936 1937 19382) iASL Compiler/Disassembler and Tools: 1939 1940AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the 1941correct portable POSIX header for terminal control functions. 1942 1943Disassembler: Fixed control method invocation issues related to the use 1944of the CondRefOf() operator. The problem is seen in the disassembly where 1945control method invocations may not be disassembled properly if the 1946control method name has been used previously as an argument to CondRefOf. 1947The solution is to not attempt to emit an external declaration for the 1948CondRefOf target (it is not necessary in the first place). This prevents 1949disassembler object type confusion. ACPICA BZ 988. 1950 1951Unix Makefiles: Added an option to disable compiler optimizations and the 1952_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA 1953with optimizations (reportedly, gcc 4.4 for example). This change adds a 1954command line option for make (NOOPT) that disables all compiler 1955optimizations and the _FORTIFY_SOURCE compiler flag. The default 1956optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ 19571034. Lv Zheng, Bob Moore. 1958 1959Tests/ASLTS: Added options to specify individual test cases and modes. 1960This allows testers running aslts.sh to optionally specify individual 1961test modes and test cases. Also added an option to disable the forced 1962generation of the ACPICA tools from source if desired. Lv Zheng. 1963 1964---------------------------------------- 196527 September 2013. Summary of changes for version 20130927: 1966 1967This release is available at https://acpica.org/downloads 1968 1969 19701) ACPICA kernel-resident subsystem: 1971 1972Fixed a problem with store operations to reference objects. This change 1973fixes a problem where a Store operation to an ArgX object that contained 1974a 1975reference to a field object did not complete the automatic dereference 1976and 1977then write to the actual field object. Instead, the object type of the 1978field object was inadvertently changed to match the type of the source 1979operand. The new behavior will actually write to the field object (buffer 1980field or field unit), thus matching the correct ACPI-defined behavior. 1981 1982Implemented support to allow the host to redefine individual OSL 1983prototypes. This change enables the host to redefine OSL prototypes found 1984in the acpiosxf.h file. This allows the host to implement OSL interfaces 1985with a macro or inlined function. Further, it allows the host to add any 1986additional required modifiers such as __iomem, __init, __exit, etc., as 1987necessary on a per-interface basis. Enables maximum flexibility for the 1988OSL interfaces. Lv Zheng. 1989 1990Hardcoded the access width for the FADT-defined reset register. The ACPI 1991specification requires the reset register width to be 8 bits. ACPICA now 1992hardcodes the width to 8 and ignores the FADT width value. This provides 1993compatibility with other ACPI implementations that have allowed BIOS code 1994with bad register width values to go unnoticed. Matthew Garett, Bob 1995Moore, 1996Lv Zheng. 1997 1998Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is 1999used 2000in the OSL header (acpiosxf). The change modifies the position of this 2001macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid 2002build issues if the OSL defines the implementation of the interface to be 2003an inline stub function. Lv Zheng. 2004 2005Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA 2006initialization interfaces. This change adds a new macro for the main init 2007and terminate external interfaces in order to support hosts that require 2008additional or different processing for these functions. Changed from 2009ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv 2010Zheng, Bob Moore. 2011 2012Cleaned up the memory allocation macros for configurability. In the 2013common 2014case, the ACPI_ALLOCATE and related macros now resolve directly to their 2015respective AcpiOs* OSL interfaces. Two options: 20161) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by 2017default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define. 20182) For AcpiExec (and for debugging), the macros can optionally be 2019resolved 2020to the local ACPICA interfaces that track each allocation (local tracking 2021is used to immediately detect memory leaks). 2022Lv Zheng. 2023 2024Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel 2025to predefine this macro to either TRUE or FALSE during the system build. 2026 2027Replaced __FUNCTION_ with __func__ in the gcc-specific header. 2028 2029Example Code and Data Size: These are the sizes for the OS-independent 2030acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2031debug version of the code includes the debug output trace mechanism and 2032has a much larger code and data size. 2033 2034 Current Release: 2035 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 2036 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 2037 Previous Release: 2038 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 2039 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 2040 2041 20422) iASL Compiler/Disassembler and Tools: 2043 2044iASL: Implemented wildcard support for the -e option. This simplifies use 2045when there are many SSDTs that must be included to resolve external 2046method 2047declarations. ACPICA BZ 1041. Example: 2048 iasl -e ssdt*.dat -d dsdt.dat 2049 2050AcpiExec: Add history/line-editing for Unix/Linux systems. This change 2051adds a portable module that implements full history and limited line 2052editing for Unix and Linux systems. It does not use readline() due to 2053portability issues. Instead it uses the POSIX termio interface to put the 2054terminal in raw input mode so that the various special keys can be 2055trapped 2056(such as up/down-arrow for history support and left/right-arrow for line 2057editing). Uses the existing debugger history mechanism. ACPICA BZ 1036. 2058 2059AcpiXtract: Add support to handle (ignore) "empty" lines containing only 2060one or more spaces. This provides compatible with early or different 2061versions of the AcpiDump utility. ACPICA BZ 1044. 2062 2063AcpiDump: Do not ignore tables that contain only an ACPI table header. 2064Apparently, some BIOSs create SSDTs that contain an ACPI table header but 2065no other data. This change adds support to dump these tables. Any tables 2066shorter than the length of an ACPI table header remain in error (an error 2067message is emitted). Reported by Yi Li. 2068 2069Debugger: Echo actual command along with the "unknown command" message. 2070 2071---------------------------------------- 207223 August 2013. Summary of changes for version 20130823: 2073 20741) ACPICA kernel-resident subsystem: 2075 2076Implemented support for host-installed System Control Interrupt (SCI) 2077handlers. Certain ACPI functionality requires the host to handle raw 2078SCIs. For example, the "SCI Doorbell" that is defined for memory power 2079state support requires the host device driver to handle SCIs to examine 2080if the doorbell has been activated. Multiple SCI handlers can be 2081installed to allow for future expansion. New external interfaces are 2082AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for 2083details. Lv Zheng, Bob Moore. ACPICA BZ 1032. 2084 2085Operation region support: Never locally free the handler "context" 2086pointer. This change removes some dangerous code that attempts to free 2087the handler context pointer in some (rare) circumstances. The owner of 2088the handler owns this pointer and the ACPICA code should never touch it. 2089Although not seen to be an issue in any kernel, it did show up as a 2090problem (fault) under AcpiExec. Also, set the internal storage field for 2091the context pointer to zero when the region is deactivated, simply for 2092sanity. David Box. ACPICA BZ 1039. 2093 2094AcpiRead: On error, do not modify the return value target location. If an 2095error happens in the middle of a split 32/32 64-bit I/O operation, do not 2096modify the target of the return value pointer. Makes the code consistent 2097with the rest of ACPICA. Bjorn Helgaas. 2098 2099Example Code and Data Size: These are the sizes for the OS-independent 2100acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2101debug version of the code includes the debug output trace mechanism and 2102has a much larger code and data size. 2103 2104 Current Release: 2105 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 2106 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 2107 Previous Release: 2108 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 2109 Debug Version: 185.4K Code, 77.1K Data, 262.5K Total 2110 2111 21122) iASL Compiler/Disassembler and Tools: 2113 2114AcpiDump: Implemented several new features and fixed some problems: 21151) Added support to dump the RSDP, RSDT, and XSDT tables. 21162) Added support for multiple table instances (SSDT, UEFI). 21173) Added option to dump "customized" (overridden) tables (-c). 21184) Fixed a problem where some table filenames were improperly 2119constructed. 21205) Improved some error messages, removed some unnecessary messages. 2121 2122iASL: Implemented additional support for disassembly of ACPI tables that 2123contain invocations of external control methods. The -fe<file> option 2124allows the import of a file that specifies the external methods along 2125with the required number of arguments for each -- allowing for the 2126correct disassembly of the table. This is a workaround for a limitation 2127of AML code where the disassembler often cannot determine the number of 2128arguments required for an external control method and generates incorrect 2129ASL code. See the iASL reference for details. ACPICA BZ 1030. 2130 2131Debugger: Implemented a new command (paths) that displays the full 2132pathnames (namepaths) and object types of all objects in the namespace. 2133This is an alternative to the namespace command. 2134 2135Debugger: Implemented a new command (sci) that invokes the SCI dispatch 2136mechanism and any installed handlers. 2137 2138iASL: Fixed a possible segfault for "too many parent prefixes" condition. 2139This can occur if there are too many parent prefixes in a namepath (for 2140example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035. 2141 2142Application OSLs: Set the return value for the PCI read functions. These 2143functions simply return AE_OK, but should set the return value to zero 2144also. This change implements this. ACPICA BZ 1038. 2145 2146Debugger: Prevent possible command line buffer overflow. Increase the 2147size of a couple of the debugger line buffers, and ensure that overflow 2148cannot happen. ACPICA BZ 1037. 2149 2150iASL: Changed to abort immediately on serious errors during the parsing 2151phase. Due to the nature of ASL, there is no point in attempting to 2152compile these types of errors, and they typically end up causing a 2153cascade of hundreds of errors which obscure the original problem. 2154 2155---------------------------------------- 215625 July 2013. Summary of changes for version 20130725: 2157 21581) ACPICA kernel-resident subsystem: 2159 2160Fixed a problem with the DerefOf operator where references to FieldUnits 2161and BufferFields incorrectly returned the parent object, not the actual 2162value of the object. After this change, a dereference of a FieldUnit 2163reference results in a read operation on the field to get the value, and 2164likewise, the appropriate BufferField value is extracted from the target 2165buffer. 2166 2167Fixed a problem where the _WAK method could cause a fault under these 2168circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK 2169method returned no value. The problem is rarely seen because most kernels 2170run ACPICA in slack mode. 2171 2172For the DerefOf operator, a fatal error now results if an attempt is made 2173to dereference a reference (created by the Index operator) to a NULL 2174package element. Provides compatibility with other ACPI implementations, 2175and this behavior will be added to a future version of the ACPI 2176specification. 2177 2178The ACPI Power Management Timer (defined in the FADT) is now optional. 2179This provides compatibility with other ACPI implementations and will 2180appear in the next version of the ACPI specification. If there is no PM 2181Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of 2182zero in the FADT indicates no PM timer. 2183 2184Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This 2185allows the host to globally enable/disable all vendor strings, all 2186feature strings, or both. Intended to be primarily used for debugging 2187purposes only. Lv Zheng. 2188 2189Expose the collected _OSI data to the host via a global variable. This 2190data tracks the highest level vendor ID that has been invoked by the BIOS 2191so that the host (and potentially ACPICA itself) can change behaviors 2192based upon the age of the BIOS. 2193 2194Example Code and Data Size: These are the sizes for the OS-independent 2195acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2196debug version of the code includes the debug output trace mechanism and 2197has a much larger code and data size. 2198 2199 Current Release: 2200 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 2201 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 2202 Previous Release: 2203 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 2204 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 2205 2206 22072) iASL Compiler/Disassembler and Tools: 2208 2209iASL: Created the following enhancements for the -so option (create 2210offset table): 22111)Add offsets for the last nameseg in each namepath for every supported 2212object type 22132)Add support for Processor, Device, Thermal Zone, and Scope objects 22143)Add the actual AML opcode for the parent object of every supported 2215object type 22164)Add support for the ZERO/ONE/ONES AML opcodes for integer objects 2217 2218Disassembler: Emit all unresolved external symbols in a single block. 2219These are external references to control methods that could not be 2220resolved, and thus, the disassembler had to make a guess at the number of 2221arguments to parse. 2222 2223iASL: The argument to the -T option (create table template) is now 2224optional. If not specified, the default table is a DSDT, typically the 2225most common case. 2226 2227---------------------------------------- 222826 June 2013. Summary of changes for version 20130626: 2229 22301) ACPICA kernel-resident subsystem: 2231 2232Fixed an issue with runtime repair of the _CST object. Null or invalid 2233elements were not always removed properly. Lv Zheng. 2234 2235Removed an arbitrary restriction of 256 GPEs per GPE block (such as the 2236FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, 2237the maximum number of GPEs is 1016. Use of multiple GPE block devices 2238makes the system-wide number of GPEs essentially unlimited. 2239 2240Example Code and Data Size: These are the sizes for the OS-independent 2241acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2242debug version of the code includes the debug output trace mechanism and 2243has a much larger code and data size. 2244 2245 Current Release: 2246 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 2247 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 2248 Previous Release: 2249 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 2250 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 2251 2252 22532) iASL Compiler/Disassembler and Tools: 2254 2255Portable AcpiDump: Implemented full support for the Linux and FreeBSD 2256hosts. Now supports Linux, FreeBSD, and Windows. 2257 2258Disassembler: Added some missing types for the HEST and EINJ tables: "Set 2259Error Type With Address", "CMCI", "MCE", and "Flush Cacheline". 2260 2261iASL/Preprocessor: Implemented full support for nested 2262#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. 2263 2264Disassembler: Expanded maximum output string length to 64K. Was 256 bytes 2265max. The original purpose of this constraint was to limit the amount of 2266debug output. However, the string function in question (UtPrintString) is 2267now used for the disassembler also, where 256 bytes is insufficient. 2268Reported by RehabMan@GitHub. 2269 2270iASL/DataTables: Fixed some problems and issues with compilation of DMAR 2271tables. ACPICA BZ 999. Lv Zheng. 2272 2273iASL: Fixed a couple of error exit issues that could result in a "Could 2274not delete <file>" message during ASL compilation. 2275 2276AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though 2277the actual signatures for these tables are "FACP" and "APIC", 2278respectively. 2279 2280AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI 2281tables are allowed to have multiple instances. 2282 2283---------------------------------------- 228417 May 2013. Summary of changes for version 20130517: 2285 22861) ACPICA kernel-resident subsystem: 2287 2288Fixed a regression introduced in version 20130328 for _INI methods. This 2289change fixes a problem introduced in 20130328 where _INI methods are no 2290longer executed properly because of a memory block that was not 2291initialized correctly. ACPICA BZ 1016. Tomasz Nowicki 2292<tomasz.nowicki@linaro.org>. 2293 2294Fixed a possible problem with the new extended sleep registers in the 2295ACPI 22965.0 FADT. Do not use these registers (even if populated) unless the HW- 2297reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 22981020. Lv Zheng. 2299 2300Implemented return value repair code for _CST predefined objects: Sort 2301the 2302list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. 2303 2304Implemented a debug-only option to disable loading of SSDTs from the 2305RSDT/XSDT during ACPICA initialization. This can be useful for debugging 2306ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in 2307acglobal.h - ACPICA BZ 1005. Lv Zheng. 2308 2309Fixed some issues in the ACPICA initialization and termination code: 2310Tomasz Nowicki <tomasz.nowicki@linaro.org> 23111) Clear events initialized flag upon event component termination. ACPICA 2312BZ 1013. 23132) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 23143) Delete global lock pending lock during termination. ACPICA BZ 1012. 23154) Clear debug buffer global on termination to prevent possible multiple 2316delete. ACPICA BZ 1010. 2317 2318Standardized all switch() blocks across the entire source base. After 2319many 2320years, different formatting for switch() had crept in. This change makes 2321the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. 2322 2323Split some files to enhance ACPICA modularity and configurability: 23241) Split buffer dump routines into utilities/utbuffer.c 23252) Split internal error message routines into utilities/uterror.c 23263) Split table print utilities into tables/tbprint.c 23274) Split iASL command-line option processing into asloptions.c 2328 2329Makefile enhancements: 23301) Support for all new files above. 23312) Abort make on errors from any subcomponent. Chao Guan. 23323) Add build support for Apple Mac OS X. Liang Qi. 2333 2334Example Code and Data Size: These are the sizes for the OS-independent 2335acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2336debug version of the code includes the debug output trace mechanism and 2337has a much larger code and data size. 2338 2339 Current Release: 2340 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 2341 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 2342 Previous Release: 2343 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 2344 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 2345 2346 23472) iASL Compiler/Disassembler and Tools: 2348 2349New utility: Implemented an easily portable version of the acpidump 2350utility to extract ACPI tables from the system (or a file) in an ASCII 2351hex 2352dump format. The top-level code implements the various command line 2353options, file I/O, and table dump routines. To port to a new host, only 2354three functions need to be implemented to get tables -- since this 2355functionality is OS-dependent. See the tools/acpidump/apmain.c module and 2356the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 23571) The Windows version obtains the ACPI tables from the Registry. 23582) The Linux version is under development. 23593) Other hosts - If an OS-dependent module is submitted, it will be 2360distributed with ACPICA. 2361 2362iASL: Fixed a regression for -D preprocessor option (define symbol). A 2363restructuring/change to the initialization sequence caused this option to 2364no longer work properly. 2365 2366iASL: Implemented a mechanism to disable specific warnings and remarks. 2367Adds a new command line option, "-vw <messageid> as well as "#pragma 2368disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore. 2369 2370iASL: Fix for too-strict package object validation. The package object 2371validation for return values from the predefined names is a bit too 2372strict, it does not allow names references within the package (which will 2373be resolved at runtime.) These types of references cannot be validated at 2374compile time. This change ignores named references within package objects 2375for names that return or define static packages. 2376 2377Debugger: Fixed the 80-character command line limitation for the History 2378command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. 2379 2380iASL: Added control method and package support for the -so option 2381(generates AML offset table for BIOS support.) 2382 2383iASL: issue a remark if a non-serialized method creates named objects. If 2384a thread blocks within the method for any reason, and another thread 2385enters the method, the method will fail because an attempt will be made 2386to 2387create the same (named) object twice. In this case, issue a remark that 2388the method should be marked serialized. NOTE: may become a warning later. 2389ACPICA BZ 909. 2390 2391---------------------------------------- 239218 April 2013. Summary of changes for version 20130418: 2393 23941) ACPICA kernel-resident subsystem: 2395 2396Fixed a possible buffer overrun during some rare but specific field unit 2397read operations. This overrun can only happen if the DSDT version is 1 -- 2398meaning that all AML integers are 32 bits -- and the field length is 2399between 33 and 55 bits long. During the read, an internal buffer object 2400is 2401created for the field unit because the field is larger than an integer 2402(32 2403bits). However, in this case, the buffer will be incorrectly written 2404beyond the end because the buffer length is less than the internal 2405minimum 2406of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes 2407long, but a full 8 bytes will be written. 2408 2409Updated the Embedded Controller "orphan" _REG method support. This refers 2410to _REG methods under the EC device that have no corresponding operation 2411region. This is allowed by the ACPI specification. This update removes a 2412dependency on the existence an ECDT table. It will execute an orphan _REG 2413method as long as the operation region handler for the EC is installed at 2414the EC device node and not the namespace root. Rui Zhang (original 2415update), Bob Moore (update/integrate). 2416 2417Implemented run-time argument typechecking for all predefined ACPI names 2418(_STA, _BIF, etc.) This change performs object typechecking on all 2419incoming arguments for all predefined names executed via 2420AcpiEvaluateObject. This ensures that ACPI-related device drivers are 2421passing correct object types as well as the correct number of arguments 2422(therefore identifying any issues immediately). Also, the ASL/namespace 2423definition of the predefined name is checked against the ACPI 2424specification for the proper argument count. Adds one new file, 2425nsarguments.c 2426 2427Changed an exception code for the ASL UnLoad() operator. Changed the 2428exception code for the case where the input DdbHandle is invalid, from 2429AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. 2430 2431Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the 2432global makefile. The use of this flag causes compiler errors on earlier 2433versions of GCC, so it has been removed for compatibility. 2434 2435Miscellaneous cleanup: 24361) Removed some unused/obsolete macros 24372) Fixed a possible memory leak in the _OSI support 24383) Removed an unused variable in the predefined name support 24394) Windows OSL: remove obsolete reference to a memory list field 2440 2441Example Code and Data Size: These are the sizes for the OS-independent 2442acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2443debug version of the code includes the debug output trace mechanism and 2444has a much larger code and data size. 2445 2446 Current Release: 2447 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 2448 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 2449 Previous Release: 2450 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 2451 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 2452 2453 24542) iASL Compiler/Disassembler and Tools: 2455 2456AcpiExec: Added installation of a handler for the SystemCMOS address 2457space. This prevents control method abort if a method accesses this 2458space. 2459 2460AcpiExec: Added support for multiple EC devices, and now install EC 2461operation region handler(s) at the actual EC device instead of the 2462namespace root. This reflects the typical behavior of host operating 2463systems. 2464 2465AcpiExec: Updated to ensure that all operation region handlers are 2466installed before the _REG methods are executed. This prevents a _REG 2467method from aborting if it accesses an address space has no handler. 2468AcpiExec installs a handler for every possible address space. 2469 2470Debugger: Enhanced the "handlers" command to display non-root handlers. 2471This change enhances the handlers command to display handlers associated 2472with individual devices throughout the namespace, in addition to the 2473currently supported display of handlers associated with the root 2474namespace 2475node. 2476 2477ASL Test Suite: Several test suite errors have been identified and 2478resolved, reducing the total error count during execution. Chao Guan. 2479 2480---------------------------------------- 248128 March 2013. Summary of changes for version 20130328: 2482 24831) ACPICA kernel-resident subsystem: 2484 2485Fixed several possible race conditions with the internal object reference 2486counting mechanism. Some of the external ACPICA interfaces update object 2487reference counts without holding the interpreter or namespace lock. This 2488change adds a spinlock to protect reference count updates on the internal 2489ACPICA objects. Reported by and with assistance from Andriy Gapon 2490(avg@FreeBSD.org). 2491 2492FADT support: Removed an extraneous warning for very large GPE register 2493sets. This change removes a size mismatch warning if the legacy length 2494field for a GPE register set is larger than the 64-bit GAS structure can 2495accommodate. GPE register sets can be larger than the 255-bit width 2496limitation of the GAS structure. Linn Crosetto (linn@hp.com). 2497 2498_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error 2499return from this interface. Handles a possible timeout case if 2500ACPI_WAIT_FOREVER is modified by the host to be a value less than 2501"forever". Jung-uk Kim. 2502 2503Predefined name support: Add allowed/required argument type information 2504to 2505the master predefined info table. This change adds the infrastructure to 2506enable typechecking on incoming arguments for all predefined 2507methods/objects. It does not actually contain the code that will fully 2508utilize this information, this is still under development. Also condenses 2509some duplicate code for the predefined names into a new module, 2510utilities/utpredef.c 2511 2512Example Code and Data Size: These are the sizes for the OS-independent 2513acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2514debug version of the code includes the debug output trace mechanism and 2515has a much larger code and data size. 2516 2517 Previous Release: 2518 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 2519 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 2520 Current Release: 2521 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 2522 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 2523 2524 25252) iASL Compiler/Disassembler and Tools: 2526 2527iASL: Implemented a new option to simplify the development of ACPI- 2528related 2529BIOS code. Adds support for a new "offset table" output file. The -so 2530option will create a C table containing the AML table offsets of various 2531named objects in the namespace so that BIOS code can modify them easily 2532at 2533boot time. This can simplify BIOS runtime code by eliminating expensive 2534searches for "magic values", enhancing boot times and adding greater 2535reliability. With assistance from Lee Hamel. 2536 2537iASL: Allow additional predefined names to return zero-length packages. 2538Now, all predefined names that are defined by the ACPI specification to 2539return a "variable-length package of packages" are allowed to return a 2540zero length top-level package. This allows the BIOS to tell the host that 2541the requested feature is not supported, and supports existing BIOS/ASL 2542code and practices. 2543 2544iASL: Changed the "result not used" warning to an error. This is the case 2545where an ASL operator is effectively a NOOP because the result of the 2546operation is not stored anywhere. For example: 2547 Add (4, Local0) 2548There is no target (missing 3rd argument), nor is the function return 2549value used. This is potentially a very serious problem -- since the code 2550was probably intended to do something, but for whatever reason, the value 2551was not stored. Therefore, this issue has been upgraded from a warning to 2552an error. 2553 2554AcpiHelp: Added allowable/required argument types to the predefined names 2555info display. This feature utilizes the recent update to the predefined 2556names table (above). 2557 2558---------------------------------------- 255914 February 2013. Summary of changes for version 20130214: 2560 25611) ACPICA Kernel-resident Subsystem: 2562 2563Fixed a possible regression on some hosts: Reinstated the safe return 2564macros (return_ACPI_STATUS, etc.) that ensure that the argument is 2565evaluated only once. Although these macros are not needed for the ACPICA 2566code itself, they are often used by ACPI-related host device drivers 2567where 2568the safe feature may be necessary. 2569 2570Fixed several issues related to the ACPI 5.0 reduced hardware support 2571(SOC): Now ensure that if the platform declares itself as hardware- 2572reduced 2573via the FADT, the following functions become NOOPs (and always return 2574AE_OK) because ACPI is always enabled by definition on these machines: 2575 AcpiEnable 2576 AcpiDisable 2577 AcpiHwGetMode 2578 AcpiHwSetMode 2579 2580Dynamic Object Repair: Implemented additional runtime repairs for 2581predefined name return values. Both of these repairs can simplify code in 2582the related device drivers that invoke these methods: 25831) For the _STR and _MLS names, automatically repair/convert an ASCII 2584string to a Unicode buffer. 25852) For the _CRS, _PRS, and _DMA names, return a resource descriptor with 2586a 2587lone end tag descriptor in the following cases: A Return(0) was executed, 2588a null buffer was returned, or no object at all was returned (non-slack 2589mode only). Adds a new file, nsconvert.c 2590ACPICA BZ 998. Bob Moore, Lv Zheng. 2591 2592Resource Manager: Added additional code to prevent possible infinite 2593loops 2594while traversing corrupted or ill-formed resource template buffers. Check 2595for zero-length resource descriptors in all code that loops through 2596resource templates (the length field is used to index through the 2597template). This change also hardens the external AcpiWalkResources and 2598AcpiWalkResourceBuffer interfaces. 2599 2600Local Cache Manager: Enhanced the main data structure to eliminate an 2601unnecessary mechanism to access the next object in the list. Actually 2602provides a small performance enhancement for hosts that use the local 2603ACPICA cache manager. Jung-uk Kim. 2604 2605Example Code and Data Size: These are the sizes for the OS-independent 2606acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2607debug version of the code includes the debug output trace mechanism and 2608has a much larger code and data size. 2609 2610 Previous Release: 2611 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 2612 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 2613 Current Release: 2614 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 2615 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 2616 2617 26182) iASL Compiler/Disassembler and Tools: 2619 2620iASL/Disassembler: Fixed several issues with the definition of the ACPI 26215.0 RASF table (RAS Feature Table). This change incorporates late changes 2622that were made to the ACPI 5.0 specification. 2623 2624iASL/Disassembler: Added full support for the following new ACPI tables: 2625 1) The MTMR table (MID Timer Table) 2626 2) The VRTC table (Virtual Real Time Clock Table). 2627Includes header file, disassembler, table compiler, and template support 2628for both tables. 2629 2630iASL: Implemented compile-time validation of package objects returned by 2631predefined names. This new feature validates static package objects 2632returned by the various predefined names defined to return packages. Both 2633object types and package lengths are validated, for both parent packages 2634and sub-packages, if any. The code is similar in structure and behavior 2635to 2636the runtime repair mechanism within the AML interpreter and uses the 2637existing predefined name information table. Adds a new file, aslprepkg.c. 2638ACPICA BZ 938. 2639 2640iASL: Implemented auto-detection of binary ACPI tables for disassembly. 2641This feature detects a binary file with a valid ACPI table header and 2642invokes the disassembler automatically. Eliminates the need to 2643specifically invoke the disassembler with the -d option. ACPICA BZ 862. 2644 2645iASL/Disassembler: Added several warnings for the case where there are 2646unresolved control methods during the disassembly. This can potentially 2647cause errors when the output file is compiled, because the disassembler 2648assumes zero method arguments in these cases (it cannot determine the 2649actual number of arguments without resolution/definition of the method). 2650 2651Debugger: Added support to display all resources with a single command. 2652Invocation of the resources command with no arguments will now display 2653all 2654resources within the current namespace. 2655 2656AcpiHelp: Added descriptive text for each ACPICA exception code displayed 2657via the -e option. 2658 2659---------------------------------------- 266017 January 2013. Summary of changes for version 20130117: 2661 26621) ACPICA Kernel-resident Subsystem: 2663 2664Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 2665return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 2666objects to return a package containing one integer, most BIOS code 2667returns 2668two integers and the previous code reflects that. However, we also need 2669to 2670support BIOS code that actually implements to the ACPI spec, and this 2671change reflects this. 2672 2673Fixed two issues with the ACPI_DEBUG_PRINT macros: 26741) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 2675C compilers that require this support. 26762) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 2677ACPI_DEBUG is already used by many of the various hosts. 2678 2679Updated all ACPICA copyrights and signons to 2013. Added the 2013 2680copyright to all module headers and signons, including the standard Linux 2681header. This affects virtually every file in the ACPICA core subsystem, 2682iASL compiler, all ACPICA utilities, and the test suites. 2683 2684Example Code and Data Size: These are the sizes for the OS-independent 2685acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2686debug version of the code includes the debug output trace mechanism and 2687has a much larger code and data size. 2688 2689 Previous Release: 2690 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 2691 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 2692 Current Release: 2693 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 2694 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 2695 2696 26972) iASL Compiler/Disassembler and Tools: 2698 2699Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 2700prevent a possible fault on some hosts. Some C libraries modify the arg 2701pointer parameter to vfprintf making it difficult to call it twice in the 2702AcpiOsVprintf function. Use a local buffer to workaround this issue. This 2703does not affect the Windows OSL since the Win C library does not modify 2704the arg pointer. Chao Guan, Bob Moore. 2705 2706iASL: Fixed a possible infinite loop when the maximum error count is 2707reached. If an output file other than the .AML file is specified (such as 2708a listing file), and the maximum number of errors is reached, do not 2709attempt to flush data to the output file(s) as the compiler is aborting. 2710This can cause an infinite loop as the max error count code essentially 2711keeps calling itself. 2712 2713iASL/Disassembler: Added an option (-in) to ignore NOOP 2714opcodes/operators. 2715Implemented for both the compiler and the disassembler. Often, the NOOP 2716opcode is used as padding for packages that are changed dynamically by 2717the 2718BIOS. When disassembled and recompiled, these NOOPs will cause syntax 2719errors. This option causes the disassembler to ignore all NOOP opcodes 2720(0xA3), and it also causes the compiler to ignore all ASL source code 2721NOOP 2722statements as well. 2723 2724Debugger: Enhanced the Sleep command to execute all sleep states. This 2725change allows Sleep to be invoked with no arguments and causes the 2726debugger to execute all of the sleep states, 0-5, automatically. 2727 2728---------------------------------------- 272920 December 2012. Summary of changes for version 20121220: 2730 27311) ACPICA Kernel-resident Subsystem: 2732 2733Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 2734alternate entry point for AcpiWalkResources and improves the usability of 2735the resource manager by accepting as input a buffer containing the output 2736of either a _CRS, _PRS, or _AEI method. The key functionality is that the 2737input buffer is not deleted by this interface so that it can be used by 2738the host later. See the ACPICA reference for details. 2739 2740Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 2741(DSDT version < 2). The constant will be truncated and this warning 2742reflects that behavior. 2743 2744Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 2745ExtendedInterrupt, and GpioInt descriptors. This change adds support to 2746both get and set the new wake bit in these descriptors, separately from 2747the existing share bit. Reported by Aaron Lu. 2748 2749Interpreter: Fix Store() when an implicit conversion is not possible. For 2750example, in the cases such as a store of a string to an existing package 2751object, implement the store as a CopyObject(). This is a small departure 2752from the ACPI specification which states that the control method should 2753be 2754aborted in this case. However, the ASLTS suite depends on this behavior. 2755 2756Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 2757macros: check if debug output is currently enabled as soon as possible to 2758minimize performance impact if debug is in fact not enabled. 2759 2760Source code restructuring: Cleanup to improve modularity. The following 2761new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 2762psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 2763Associated makefiles and project files have been updated. 2764 2765Changed an exception code for LoadTable operator. For the case where one 2766of the input strings is too long, change the returned exception code from 2767AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 2768 2769Fixed a possible memory leak in dispatcher error path. On error, delete 2770the mutex object created during method mutex creation. Reported by 2771tim.gardner@canonical.com. 2772 2773Example Code and Data Size: These are the sizes for the OS-independent 2774acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2775debug version of the code includes the debug output trace mechanism and 2776has a much larger code and data size. 2777 2778 Previous Release: 2779 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 2780 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2781 Current Release: 2782 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 2783 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 2784 2785 27862) iASL Compiler/Disassembler and Tools: 2787 2788iASL: Disallow a method call as argument to the ObjectType ASL operator. 2789This change tracks an errata to the ACPI 5.0 document. The AML grammar 2790will not allow the interpreter to differentiate between a method and a 2791method invocation when these are used as an argument to the ObjectType 2792operator. The ACPI specification change is to disallow a method 2793invocation 2794(UserTerm) for the ObjectType operator. 2795 2796Finish support for the TPM2 and CSRT tables in the headers, table 2797compiler, and disassembler. 2798 2799Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 2800always expires immediately if the semaphore is not available. The 2801original 2802code was using a relative-time timeout, but sem_timedwait requires the 2803use 2804of an absolute time. 2805 2806iASL: Added a remark if the Timer() operator is used within a 32-bit 2807table. This operator returns a 64-bit time value that will be truncated 2808within a 32-bit table. 2809 2810iASL Source code restructuring: Cleanup to improve modularity. The 2811following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 2812aslmethod.c, and aslfileio.c. Associated makefiles and project files have 2813been updated. 2814 2815 2816---------------------------------------- 281714 November 2012. Summary of changes for version 20121114: 2818 28191) ACPICA Kernel-resident Subsystem: 2820 2821Implemented a performance enhancement for ACPI/AML Package objects. This 2822change greatly increases the performance of Package objects within the 2823interpreter. It changes the processing of reference counts for packages 2824by 2825optimizing for the most common case where the package sub-objects are 2826either Integers, Strings, or Buffers. Increases the overall performance 2827of 2828the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 28292X.) 2830Chao Guan. ACPICA BZ 943. 2831 2832Implemented and deployed common macros to extract flag bits from resource 2833descriptors. Improves readability and maintainability of the code. Fixes 2834a 2835problem with the UART serial bus descriptor for the number of data bits 2836flags (was incorrectly 2 bits, should be 3). 2837 2838Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 2839of the macros and changed the SETx macros to the style of (destination, 2840source). Also added ACPI_CASTx companion macros. Lv Zheng. 2841 2842Example Code and Data Size: These are the sizes for the OS-independent 2843acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2844debug version of the code includes the debug output trace mechanism and 2845has a much larger code and data size. 2846 2847 Previous Release: 2848 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 2849 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2850 Current Release: 2851 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 2852 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2853 2854 28552) iASL Compiler/Disassembler and Tools: 2856 2857Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 2858adds the ShareAndWake and ExclusiveAndWake flags which were added to the 2859Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 2860 2861Disassembler: Fixed a problem with external declaration generation. Fixes 2862a problem where an incorrect pathname could be generated for an external 2863declaration if the original reference to the object includes leading 2864carats (^). ACPICA BZ 984. 2865 2866Debugger: Completed a major update for the Disassemble<method> command. 2867This command was out-of-date and did not properly disassemble control 2868methods that had any reasonable complexity. This fix brings the command 2869up 2870to the same level as the rest of the disassembler. Adds one new file, 2871dmdeferred.c, which is existing code that is now common with the main 2872disassembler and the debugger disassemble command. ACPICA MZ 978. 2873 2874iASL: Moved the parser entry prototype to avoid a duplicate declaration. 2875Newer versions of Bison emit this prototype, so moved the prototype out 2876of 2877the iASL header to where it is actually used in order to avoid a 2878duplicate 2879declaration. 2880 2881iASL/Tools: Standardized use of the stream I/O functions: 2882 1) Ensure check for I/O error after every fopen/fread/fwrite 2883 2) Ensure proper order of size/count arguments for fread/fwrite 2884 3) Use test of (Actual != Requested) after all fwrite, and most fread 2885 4) Standardize I/O error messages 2886Improves reliability and maintainability of the code. Bob Moore, Lv 2887Zheng. 2888ACPICA BZ 981. 2889 2890Disassembler: Prevent duplicate External() statements. During generation 2891of external statements, detect similar pathnames that are actually 2892duplicates such as these: 2893 External (\ABCD) 2894 External (ABCD) 2895Remove all leading '\' characters from pathnames during the external 2896statement generation so that duplicates will be detected and tossed. 2897ACPICA BZ 985. 2898 2899Tools: Replace low-level I/O with stream I/O functions. Replace 2900open/read/write/close with the stream I/O equivalents 2901fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 2902Moore. 2903 2904AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 2905name header so that AcpiXtract recognizes the output file/table. 2906 2907iASL: Remove obsolete -2 option flag. Originally intended to force the 2908compiler/disassembler into an ACPI 2.0 mode, this was never implemented 2909and the entire concept is now obsolete. 2910 2911---------------------------------------- 291218 October 2012. Summary of changes for version 20121018: 2913 2914 29151) ACPICA Kernel-resident Subsystem: 2916 2917Updated support for the ACPI 5.0 MPST table. Fixes some problems 2918introduced by late changes to the table as it was added to the ACPI 5.0 2919specification. Includes header, disassembler, and data table compiler 2920support as well as a new version of the MPST template. 2921 2922AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 29235.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 2924methods: _HID, _CID, and _UID. 2925 2926Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 2927ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 2928name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 2929names for their various drivers. Affects the AcpiGetObjectInfo external 2930interface, and other internal interfaces as well. 2931 2932Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 2933This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 2934on machines that support non-aligned transfers. Optimizes for this case 2935rather than using a strncpy. With assistance from Zheng Lv. 2936 2937Resource Manager: Small fix for buffer size calculation. Fixed a one byte 2938error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 2939 2940Added a new debug print message for AML mutex objects that are force- 2941released. At control method termination, any currently acquired mutex 2942objects are force-released. Adds a new debug-only message for each one 2943that is released. 2944 2945Audited/updated all ACPICA return macros and the function debug depth 2946counter: 1) Ensure that all functions that use the various TRACE macros 2947also use the appropriate ACPICA return macros. 2) Ensure that all normal 2948return statements surround the return expression (value) with parens to 2949ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 2950Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 2951 2952Global source code changes/maintenance: All extra lines at the start and 2953end of each source file have been removed for consistency. Also, within 2954comments, all new sentences start with a single space instead of a double 2955space, again for consistency across the code base. 2956 2957Example Code and Data Size: These are the sizes for the OS-independent 2958acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2959debug version of the code includes the debug output trace mechanism and 2960has a much larger code and data size. 2961 2962 Previous Release: 2963 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 2964 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 2965 Current Release: 2966 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 2967 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2968 2969 29702) iASL Compiler/Disassembler and Tools: 2971 2972AcpiExec: Improved the algorithm used for memory leak/corruption 2973detection. Added some intelligence to the code that maintains the global 2974list of allocated memory. The list is now ordered by allocated memory 2975address, significantly improving performance. When running AcpiExec on 2976the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 2977on the platform and/or the environment. Note, this performance 2978enhancement affects the AcpiExec utility only, not the kernel-resident 2979ACPICA code. 2980 2981Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 2982the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 2983incorrect table offset reported for invalid opcodes. Report the original 298432-bit value for bad ACPI_NAMEs (as well as the repaired name.) 2985 2986Disassembler: Enhanced the -vt option to emit the binary table data in 2987hex format to assist with debugging. 2988 2989Fixed a potential filename buffer overflow in osunixdir.c. Increased the 2990size of file structure. Colin Ian King. 2991 2992---------------------------------------- 299313 September 2012. Summary of changes for version 20120913: 2994 2995 29961) ACPICA Kernel-resident Subsystem: 2997 2998ACPI 5.0: Added two new notify types for the Hardware Error Notification 2999Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 3000and 3001MCE(6). 3002 3003Table Manager: Merged/removed duplicate code in the root table resize 3004functions. One function is external, the other is internal. Lv Zheng, 3005ACPICA 3006BZ 846. 3007 3008Makefiles: Completely removed the obsolete "Linux" makefiles under 3009acpica/generate/linux. These makefiles are obsolete and have been 3010replaced 3011by 3012the generic unix makefiles under acpica/generate/unix. 3013 3014Makefiles: Ensure that binary files always copied properly. Minor rule 3015change 3016to ensure that the final binary output files are always copied up to the 3017appropriate binary directory (bin32 or bin64.) 3018 3019Example Code and Data Size: These are the sizes for the OS-independent 3020acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3021debug 3022version of the code includes the debug output trace mechanism and has a 3023much 3024larger code and data size. 3025 3026 Previous Release: 3027 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 3028 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 3029 Current Release: 3030 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 3031 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 3032 3033 30342) iASL Compiler/Disassembler and Tools: 3035 3036Disassembler: Fixed a possible fault during the disassembly of resource 3037descriptors when a second parse is required because of the invocation of 3038external control methods within the table. With assistance from 3039adq@lidskialf.net. ACPICA BZ 976. 3040 3041iASL: Fixed a namepath optimization problem. An error can occur if the 3042parse 3043node that contains the namepath to be optimized does not have a parent 3044node 3045that is a named object. This change fixes the problem. 3046 3047iASL: Fixed a regression where the AML file is not deleted on errors. The 3048AML 3049output file should be deleted if there are any errors during the 3050compiler. 3051The 3052only exception is if the -f (force output) option is used. ACPICA BZ 974. 3053 3054iASL: Added a feature to automatically increase internal line buffer 3055sizes. 3056Via realloc(), automatically increase the internal line buffer sizes as 3057necessary to support very long source code lines. The current version of 3058the 3059preprocessor requires a buffer long enough to contain full source code 3060lines. 3061This change increases the line buffer(s) if the input lines go beyond the 3062current buffer size. This eliminates errors that occurred when a source 3063code 3064line was longer than the buffer. 3065 3066iASL: Fixed a problem with constant folding in method declarations. The 3067SyncLevel term is a ByteConstExpr, and incorrect code would be generated 3068if a 3069Type3 opcode was used. 3070 3071Debugger: Improved command help support. For incorrect argument count, 3072display 3073full help for the command. For help command itself, allow an argument to 3074specify a command. 3075 3076Test Suites: Several bug fixes for the ASLTS suite reduces the number of 3077errors during execution of the suite. Guan Chao. 3078 3079---------------------------------------- 308016 August 2012. Summary of changes for version 20120816: 3081 3082 30831) ACPICA Kernel-resident Subsystem: 3084 3085Removed all use of the deprecated _GTS and _BFS predefined methods. The 3086_GTS 3087(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 3088deprecated and will probably be removed from the ACPI specification. 3089Windows 3090does not invoke them, and reportedly never will. The final nail in the 3091coffin 3092is that the ACPI specification states that these methods must be run with 3093interrupts off, which is not going to happen in a kernel interpreter. 3094Note: 3095Linux has removed all use of the methods also. It was discovered that 3096invoking these functions caused failures on some machines, probably 3097because 3098they were never tested since Windows does not call them. Affects two 3099external 3100interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 3101ACPICA BZ 969. 3102 3103Implemented support for complex bit-packed buffers returned from the _PLD 3104(Physical Location of Device) predefined method. Adds a new external 3105interface, AcpiDecodePldBuffer that parses the buffer into a more usable 3106C 3107structure. Note: C Bitfields cannot be used for this type of predefined 3108structure since the memory layout of individual bitfields is not defined 3109by 3110the C language. In addition, there are endian concerns where a compiler 3111will 3112change the bitfield ordering based on the machine type. The new ACPICA 3113interface eliminates these issues, and should be called after _PLD is 3114executed. ACPICA BZ 954. 3115 3116Implemented a change to allow a scope change to root (via "Scope (\)") 3117during 3118execution of module-level ASL code (code that is executed at table load 3119time.) Lin Ming. 3120 3121Added the Windows8/Server2012 string for the _OSI method. This change 3122adds 3123a 3124new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 31252012. 3126 3127Added header support for the new ACPI tables DBG2 (Debug Port Table Type 31282) 3129and CSRT (Core System Resource Table). 3130 3131Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 3132names. This simplifies access to the buffers returned by these predefined 3133names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 3134 3135GPE support: Removed an extraneous parameter from the various low-level 3136internal GPE functions. Tang Feng. 3137 3138Removed the linux makefiles from the unix packages. The generate/linux 3139makefiles are obsolete and have been removed from the unix tarball 3140release 3141packages. The replacement makefiles are under generate/unix, and there is 3142a 3143top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 3144 3145Updates for Unix makefiles: 31461) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 31472) Update linker flags (move to end of command line) for AcpiExec 3148utility. 3149Guan Chao. 3150 3151Split ACPICA initialization functions to new file, utxfinit.c. Split from 3152utxface.c to improve modularity and reduce file size. 3153 3154Example Code and Data Size: These are the sizes for the OS-independent 3155acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3156debug version of the code includes the debug output trace mechanism and 3157has a 3158much larger code and data size. 3159 3160 Previous Release: 3161 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 3162 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 3163 Current Release: 3164 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 3165 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 3166 3167 31682) iASL Compiler/Disassembler and Tools: 3169 3170iASL: Fixed a problem with constant folding for fixed-length constant 3171expressions. The constant-folding code was not being invoked for constant 3172expressions that allow the use of type 3/4/5 opcodes to generate 3173constants 3174for expressions such as ByteConstExpr, WordConstExpr, etc. This could 3175result 3176in the generation of invalid AML bytecode. ACPICA BZ 970. 3177 3178iASL: Fixed a generation issue on newer versions of Bison. Newer versions 3179apparently automatically emit some of the necessary externals. This 3180change 3181handles these versions in order to eliminate generation warnings. 3182 3183Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 3184 3185Disassembler: Add support to decode _PLD buffers. The decoded buffer 3186appears 3187within comments in the output file. 3188 3189Debugger: Fixed a regression with the "Threads" command where 3190AE_BAD_PARAMETER was always returned. 3191 3192---------------------------------------- 319311 July 2012. Summary of changes for version 20120711: 3194 31951) ACPICA Kernel-resident Subsystem: 3196 3197Fixed a possible fault in the return package object repair code. Fixes a 3198problem that can occur when a lone package object is wrapped with an 3199outer 3200package object in order to force conformance to the ACPI specification. 3201Can 3202affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 3203_DLM, 3204_CSD, _PSD, _TSD. 3205 3206Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 3207PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 3208ARB_DIS bit must be implemented in the host-dependent C3 processor power 3209state 3210support. Note, ARB_DIS is obsolete and only applies to older chipsets, 3211both 3212Intel and other vendors. (for Intel: ICH4-M and earlier) 3213 3214This change removes the code to disable/enable bus master arbitration 3215during 3216suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 3217causes 3218resume problems on some machines. The change has been in use for over 3219seven 3220years within Linux. 3221 3222Implemented two new external interfaces to support host-directed dynamic 3223ACPI 3224table load and unload. They are intended to simplify the host 3225implementation 3226of hot-plug support: 3227 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 3228 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 3229table. 3230See the ACPICA reference for additional details. Adds one new file, 3231components/tables/tbxfload.c 3232 3233Implemented and deployed two new interfaces for errors and warnings that 3234are 3235known to be caused by BIOS/firmware issues: 3236 AcpiBiosError: Prints "ACPI Firmware Error" message. 3237 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 3238Deployed these new interfaces in the ACPICA Table Manager code for ACPI 3239table 3240and FADT errors. Additional deployment to be completed as appropriate in 3241the 3242future. The associated conditional macros are ACPI_BIOS_ERROR and 3243ACPI_BIOS_WARNING. See the ACPICA reference for additional details. 3244ACPICA 3245BZ 3246843. 3247 3248Implicit notify support: ensure that no memory allocation occurs within a 3249critical region. This fix moves a memory allocation outside of the time 3250that a 3251spinlock is held. Fixes issues on systems that do not allow this 3252behavior. 3253Jung-uk Kim. 3254 3255Split exception code utilities and tables into a new file, 3256utilities/utexcep.c 3257 3258Example Code and Data Size: These are the sizes for the OS-independent 3259acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3260debug 3261version of the code includes the debug output trace mechanism and has a 3262much 3263larger code and data size. 3264 3265 Previous Release: 3266 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 3267 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 3268 Current Release: 3269 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 3270 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 3271 3272 32732) iASL Compiler/Disassembler and Tools: 3274 3275iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 3276of 32770. Jung-uk Kim. 3278 3279Debugger: Enhanced the "tables" command to emit additional information 3280about 3281the current set of ACPI tables, including the owner ID and flags decode. 3282 3283Debugger: Reimplemented the "unload" command to use the new 3284AcpiUnloadParentTable external interface. This command was disable 3285previously 3286due to need for an unload interface. 3287 3288AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 3289option 3290will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 3291 3292---------------------------------------- 329320 June 2012. Summary of changes for version 20120620: 3294 3295 32961) ACPICA Kernel-resident Subsystem: 3297 3298Implemented support to expand the "implicit notify" feature to allow 3299multiple 3300devices to be notified by a single GPE. This feature automatically 3301generates a 3302runtime device notification in the absence of a BIOS-provided GPE control 3303method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 3304notify is 3305provided by ACPICA for Windows compatibility, and is a workaround for 3306BIOS 3307AML 3308code errors. See the description of the AcpiSetupGpeForWake interface in 3309the 3310APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 3311 3312Changed some comments and internal function names to simplify and ensure 3313correctness of the Linux code translation. No functional changes. 3314 3315Example Code and Data Size: These are the sizes for the OS-independent 3316acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3317debug 3318version of the code includes the debug output trace mechanism and has a 3319much 3320larger code and data size. 3321 3322 Previous Release: 3323 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 3324 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 3325 Current Release: 3326 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 3327 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 3328 3329 33302) iASL Compiler/Disassembler and Tools: 3331 3332Disassembler: Added support to emit short, commented descriptions for the 3333ACPI 3334predefined names in order to improve the readability of the disassembled 3335output. ACPICA BZ 959. Changes include: 3336 1) Emit descriptions for all standard predefined names (_INI, _STA, 3337_PRW, 3338etc.) 3339 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 3340 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 3341etc.) 3342 3343AcpiSrc: Fixed several long-standing Linux code translation issues. 3344Argument 3345descriptions in function headers are now translated properly to lower 3346case 3347and 3348underscores. ACPICA BZ 961. Also fixes translation problems such as 3349these: 3350(old -> new) 3351 i_aSL -> iASL 3352 00-7_f -> 00-7F 3353 16_k -> 16K 3354 local_fADT -> local_FADT 3355 execute_oSI -> execute_OSI 3356 3357iASL: Fixed a problem where null bytes were inadvertently emitted into 3358some 3359listing files. 3360 3361iASL: Added the existing debug options to the standard help screen. There 3362are 3363no longer two different help screens. ACPICA BZ 957. 3364 3365AcpiHelp: Fixed some typos in the various predefined name descriptions. 3366Also 3367expand some of the descriptions where appropriate. 3368 3369iASL: Fixed the -ot option (display compile times/statistics). Was not 3370working 3371properly for standard output; only worked for the debug file case. 3372 3373---------------------------------------- 337418 May 2012. Summary of changes for version 20120518: 3375 3376 33771) ACPICA Core Subsystem: 3378 3379Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 3380defined 3381to block until asynchronous events such as notifies and GPEs have 3382completed. 3383Within ACPICA, it is only called before a notify or GPE handler is 3384removed/uninstalled. It also may be useful for the host OS within related 3385drivers such as the Embedded Controller driver. See the ACPICA reference 3386for 3387additional information. ACPICA BZ 868. 3388 3389ACPI Tables: Added a new error message for a possible overflow failure 3390during 3391the conversion of FADT 32-bit legacy register addresses to internal 3392common 339364- 3394bit GAS structure representation. The GAS has a one-byte "bit length" 3395field, 3396thus limiting the register length to 255 bits. ACPICA BZ 953. 3397 3398Example Code and Data Size: These are the sizes for the OS-independent 3399acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3400debug 3401version of the code includes the debug output trace mechanism and has a 3402much 3403larger code and data size. 3404 3405 Previous Release: 3406 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3407 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 3408 Current Release: 3409 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 3410 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 3411 3412 34132) iASL Compiler/Disassembler and Tools: 3414 3415iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 3416macro. 3417This keyword was added late in the ACPI 5.0 release cycle and was not 3418implemented until now. 3419 3420Disassembler: Added support for Operation Region externals. Adds missing 3421support for operation regions that are defined in another table, and 3422referenced locally via a Field or BankField ASL operator. Now generates 3423the 3424correct External statement. 3425 3426Disassembler: Several additional fixes for the External() statement 3427generation 3428related to some ASL operators. Also, order the External() statements 3429alphabetically in the disassembler output. Fixes the External() 3430generation 3431for 3432the Create* field, Alias, and Scope operators: 3433 1) Create* buffer field operators - fix type mismatch warning on 3434disassembly 3435 2) Alias - implement missing External support 3436 3) Scope - fix to make sure all necessary externals are emitted. 3437 3438iASL: Improved pathname support. For include files, merge the prefix 3439pathname 3440with the file pathname and eliminate unnecessary components. Convert 3441backslashes in all pathnames to forward slashes, for readability. Include 3442file 3443pathname changes affect both #include and Include() type operators. 3444 3445iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 3446end 3447of a valid line by inserting a newline and then returning the EOF during 3448the 3449next call to GetNextLine. Prevents the line from being ignored due to EOF 3450condition. 3451 3452iASL: Implemented some changes to enhance the IDE support (-vi option.) 3453Error 3454and Warning messages are now correctly recognized for both the source 3455code 3456browser and the global error and warning counts. 3457 3458---------------------------------------- 345920 April 2012. Summary of changes for version 20120420: 3460 3461 34621) ACPICA Core Subsystem: 3463 3464Implemented support for multiple notify handlers. This change adds 3465support 3466to 3467allow multiple system and device notify handlers on Device, Thermal Zone, 3468and 3469Processor objects. This can simplify the host OS notification 3470implementation. 3471Also re-worked and restructured the entire notify support code to 3472simplify 3473handler installation, handler removal, notify event queuing, and notify 3474dispatch to handler(s). Note: there can still only be two global notify 3475handlers - one for system notifies and one for device notifies. There are 3476no 3477changes to the existing handler install/remove interfaces. Lin Ming, Bob 3478Moore, Rafael Wysocki. 3479 3480Fixed a regression in the package repair code where the object reference 3481count was calculated incorrectly. Regression was introduced in the commit 3482"Support to add Package wrappers". 3483 3484Fixed a couple possible memory leaks in the AML parser, in the error 3485recovery 3486path. Jesper Juhl, Lin Ming. 3487 3488Example Code and Data Size: These are the sizes for the OS-independent 3489acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3490debug version of the code includes the debug output trace mechanism and 3491has a 3492much larger code and data size. 3493 3494 Previous Release: 3495 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3496 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3497 Current Release: 3498 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3499 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 3500 3501 35022) iASL Compiler/Disassembler and Tools: 3503 3504iASL: Fixed a problem with the resource descriptor support where the 3505length 3506of the StartDependentFn and StartDependentFnNoPrio descriptors were not 3507included in cumulative descriptor offset, resulting in incorrect values 3508for 3509resource tags within resource descriptors appearing after a 3510StartDependent* 3511descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 3512 3513iASL and Preprocessor: Implemented full support for the #line directive 3514to 3515correctly track original source file line numbers through the .i 3516preprocessor 3517output file - for error and warning messages. 3518 3519iASL: Expand the allowable byte constants for address space IDs. 3520Previously, 3521the allowable range was 0x80-0xFF (user-defined spaces), now the range is 35220x0A-0xFF to allow for custom and new IDs without changing the compiler. 3523 3524iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 3525 3526iASL: Add option to completely disable the preprocessor (-Pn). 3527 3528iASL: Now emit all error/warning messages to standard error (stderr) by 3529default (instead of the previous stdout). 3530 3531ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 3532Update 3533for resource descriptor offset fix above. Update/cleanup error output 3534routines. Enable and send iASL errors/warnings to an error logfile 3535(error.txt). Send all other iASL output to a logfile (compiler.txt). 3536Fixed 3537several extraneous "unrecognized operator" messages. 3538 3539---------------------------------------- 354020 March 2012. Summary of changes for version 20120320: 3541 3542 35431) ACPICA Core Subsystem: 3544 3545Enhanced the sleep/wake interfaces to optionally execute the _GTS method 3546(Going To Sleep) and the _BFS method (Back From Sleep). Windows 3547apparently 3548does not execute these methods, and therefore these methods are often 3549untested. It has been seen on some systems where the execution of these 3550methods causes errors and also prevents the machine from entering S5. It 3551is 3552therefore suggested that host operating systems do not execute these 3553methods 3554by default. In the future, perhaps these methods can be optionally 3555executed 3556based on the age of the system and/or what is the newest version of 3557Windows 3558that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 3559and 3560AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 3561Ming. 3562 3563Fixed a problem where the length of the local/common FADT was set too 3564early. 3565The local FADT table length cannot be set to the common length until the 3566original length has been examined. There is code that checks the table 3567length 3568and sets various fields appropriately. This can affect older machines 3569with 3570early FADT versions. For example, this can cause inadvertent writes to 3571the 3572CST_CNT register. Julian Anastasov. 3573 3574Fixed a mapping issue related to a physical table override. Use the 3575deferred 3576mapping mechanism for tables loaded via the physical override OSL 3577interface. 3578This allows for early mapping before the virtual memory manager is 3579available. 3580Thomas Renninger, Bob Moore. 3581 3582Enhanced the automatic return-object repair code: Repair a common problem 3583with 3584predefined methods that are defined to return a variable-length Package 3585of 3586sub-objects. If there is only one sub-object, some BIOS ASL code 3587mistakenly 3588simply returns the single object instead of a Package with one sub- 3589object. 3590This new support will repair this error by wrapping a Package object 3591around 3592the original object, creating the correct and expected Package with one 3593sub- 3594object. Names that can be repaired in this manner include: _ALR, _CSD, 3595_HPX, 3596_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 3597939. 3598 3599Changed the exception code returned for invalid ACPI paths passed as 3600parameters to external interfaces such as AcpiEvaluateObject. Was 3601AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 3602 3603Example Code and Data Size: These are the sizes for the OS-independent 3604acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3605debug 3606version of the code includes the debug output trace mechanism and has a 3607much 3608larger code and data size. 3609 3610 Previous Release: 3611 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 3612 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3613 Current Release: 3614 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3615 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3616 3617 36182) iASL Compiler/Disassembler and Tools: 3619 3620iASL: Added the infrastructure and initial implementation of a integrated 3621C- 3622like preprocessor. This will simplify BIOS development process by 3623eliminating 3624the need for a separate preprocessing step during builds. On Windows, it 3625also 3626eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 3627features including full #define() macro support are still under 3628development. 3629These preprocessor directives are supported: 3630 #define 3631 #elif 3632 #else 3633 #endif 3634 #error 3635 #if 3636 #ifdef 3637 #ifndef 3638 #include 3639 #pragma message 3640 #undef 3641 #warning 3642In addition, these new command line options are supported: 3643 -D <symbol> Define symbol for preprocessor use 3644 -li Create preprocessed output file (*.i) 3645 -P Preprocess only and create preprocessor output file (*.i) 3646 3647Table Compiler: Fixed a problem where the equals operator within an 3648expression 3649did not work properly. 3650 3651Updated iASL to use the current versions of Bison/Flex. Updated the 3652Windows 3653project file to invoke these tools from the standard location. ACPICA BZ 3654904. 3655Versions supported: 3656 Flex for Windows: V2.5.4 3657 Bison for Windows: V2.4.1 3658 3659---------------------------------------- 366015 February 2012. Summary of changes for version 20120215: 3661 3662 36631) ACPICA Core Subsystem: 3664 3665There have been some major changes to the sleep/wake support code, as 3666described below (a - e). 3667 3668a) The AcpiLeaveSleepState has been split into two interfaces, similar to 3669AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 3670AcpiLeaveSleepStatePrep. This allows the host to perform actions between 3671the 3672time the _BFS method is called and the _WAK method is called. NOTE: all 3673hosts 3674must update their wake/resume code or else sleep/wake will not work 3675properly. 3676Rafael Wysocki. 3677 3678b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 3679_WAK 3680method. Some machines require that the GPEs are enabled before the _WAK 3681method 3682is executed. Thomas Renninger. 3683 3684c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) 3685bit. 3686Some BIOS code assumes that WAK_STS will be cleared on resume and use it 3687to 3688determine whether the system is rebooting or resuming. Matthew Garrett. 3689 3690d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 3691Sleep) to 3692match the ACPI specification requirement. Rafael Wysocki. 3693 3694e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 3695registers within the V5 FADT. This support adds two new files: 3696hardware/hwesleep.c implements the support for the new registers. Moved 3697all 3698sleep/wake external interfaces to hardware/hwxfsleep.c. 3699 3700 3701Added a new OSL interface for ACPI table overrides, 3702AcpiOsPhysicalTableOverride. This interface allows the host to override a 3703table via a physical address, instead of the logical address required by 3704AcpiOsTableOverride. This simplifies the host implementation. Initial 3705implementation by Thomas Renninger. The ACPICA implementation creates a 3706single 3707shared function for table overrides that attempts both a logical and a 3708physical override. 3709 3710Expanded the OSL memory read/write interfaces to 64-bit data 3711(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 3712transfer support for GAS register structures passed to AcpiRead and 3713AcpiWrite. 3714 3715Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 3716custom 3717build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 3718model. 3719See the ACPICA reference for details. ACPICA BZ 942. This option removes 3720about 372110% of the code and 5% of the static data, and the following hardware 3722ACPI 3723features become unavailable: 3724 PM Event and Control registers 3725 SCI interrupt (and handler) 3726 Fixed Events 3727 General Purpose Events (GPEs) 3728 Global Lock 3729 ACPI PM timer 3730 FACS table (Waking vectors and Global Lock) 3731 3732Updated the unix tarball directory structure to match the ACPICA git 3733source 3734tree. This ensures that the generic unix makefiles work properly (in 3735generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 3736867. 3737 3738Updated the return value of the _REV predefined method to integer value 5 3739to 3740reflect ACPI 5.0 support. 3741 3742Moved the external ACPI PM timer interface prototypes to the public 3743acpixf.h 3744file where they belong. 3745 3746Example Code and Data Size: These are the sizes for the OS-independent 3747acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3748debug 3749version of the code includes the debug output trace mechanism and has a 3750much 3751larger code and data size. 3752 3753 Previous Release: 3754 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 3755 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 3756 Current Release: 3757 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 3758 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3759 3760 37612) iASL Compiler/Disassembler and Tools: 3762 3763Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 3764descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 3765incorrectly displayed. 3766 3767AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 3768specification. 3769 3770---------------------------------------- 377111 January 2012. Summary of changes for version 20120111: 3772 3773 37741) ACPICA Core Subsystem: 3775 3776Implemented a new mechanism to allow host device drivers to check for 3777address 3778range conflicts with ACPI Operation Regions. Both SystemMemory and 3779SystemIO 3780address spaces are supported. A new external interface, 3781AcpiCheckAddressRange, 3782allows drivers to check an address range against the ACPI namespace. See 3783the 3784ACPICA reference for additional details. Adds one new file, 3785utilities/utaddress.c. Lin Ming, Bob Moore. 3786 3787Fixed several issues with the ACPI 5.0 FADT support: Add the sleep 3788Control 3789and 3790Status registers, update the ACPI 5.0 flags, and update internal data 3791structures to handle an FADT larger than 256 bytes. The size of the ACPI 37925.0 3793FADT is 268 bytes. 3794 3795Updated all ACPICA copyrights and signons to 2012. Added the 2012 3796copyright to 3797all module headers and signons, including the standard Linux header. This 3798affects virtually every file in the ACPICA core subsystem, iASL compiler, 3799and 3800all ACPICA utilities. 3801 3802Example Code and Data Size: These are the sizes for the OS-independent 3803acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3804debug 3805version of the code includes the debug output trace mechanism and has a 3806much 3807larger code and data size. 3808 3809 Previous Release: 3810 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 3811 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 3812 Current Release: 3813 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 3814 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 3815 3816 38172) iASL Compiler/Disassembler and Tools: 3818 3819Disassembler: fixed a problem with the automatic resource tag generation 3820support. Fixes a problem where the resource tags are inadvertently not 3821constructed if the table being disassembled contains external references 3822to 3823control methods. Moved the actual construction of the tags to after the 3824final 3825namespace is constructed (after 2nd parse is invoked due to external 3826control 3827method references.) ACPICA BZ 941. 3828 3829Table Compiler: Make all "generic" operators caseless. These are the 3830operators 3831like UINT8, String, etc. Making these caseless improves ease-of-use. 3832ACPICA BZ 3833934. 3834 3835---------------------------------------- 383623 November 2011. Summary of changes for version 20111123: 3837 38380) ACPI 5.0 Support: 3839 3840This release contains full support for the ACPI 5.0 specification, as 3841summarized below. 3842 3843Reduced Hardware Support: 3844------------------------- 3845 3846This support allows for ACPI systems without the usual ACPI hardware. 3847This 3848support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 3849will 3850not attempt to initialize or use any of the usual ACPI hardware. Note, 3851when 3852this flag is set, all of the following ACPI hardware is assumed to be not 3853present and is not initialized or accessed: 3854 3855 General Purpose Events (GPEs) 3856 Fixed Events (PM1a/PM1b and PM Control) 3857 Power Management Timer and Console Buttons (power/sleep) 3858 Real-time Clock Alarm 3859 Global Lock 3860 System Control Interrupt (SCI) 3861 The FACS is assumed to be non-existent 3862 3863ACPI Tables: 3864------------ 3865 3866All new tables and updates to existing tables are fully supported in the 3867ACPICA headers (for use by device drivers), the disassembler, and the 3868iASL 3869Data Table Compiler. ACPI 5.0 defines these new tables: 3870 3871 BGRT /* Boot Graphics Resource Table */ 3872 DRTM /* Dynamic Root of Trust for Measurement table */ 3873 FPDT /* Firmware Performance Data Table */ 3874 GTDT /* Generic Timer Description Table */ 3875 MPST /* Memory Power State Table */ 3876 PCCT /* Platform Communications Channel Table */ 3877 PMTT /* Platform Memory Topology Table */ 3878 RASF /* RAS Feature table */ 3879 3880Operation Regions/SpaceIDs: 3881--------------------------- 3882 3883All new operation regions are fully supported by the iASL compiler, the 3884disassembler, and the ACPICA runtime code (for dispatch to region 3885handlers.) 3886The new operation region Space IDs are: 3887 3888 GeneralPurposeIo 3889 GenericSerialBus 3890 3891Resource Descriptors: 3892--------------------- 3893 3894All new ASL resource descriptors are fully supported by the iASL 3895compiler, 3896the 3897ASL/AML disassembler, and the ACPICA runtime Resource Manager code 3898(including 3899all new predefined resource tags). New descriptors are: 3900 3901 FixedDma 3902 GpioIo 3903 GpioInt 3904 I2cSerialBus 3905 SpiSerialBus 3906 UartSerialBus 3907 3908ASL/AML Operators, New and Modified: 3909------------------------------------ 3910 3911One new operator is added, the Connection operator, which is used to 3912associate 3913a GeneralPurposeIo or GenericSerialBus resource descriptor with 3914individual 3915field objects within an operation region. Several new protocols are 3916associated 3917with the AccessAs operator. All are fully supported by the iASL compiler, 3918disassembler, and runtime ACPICA AML interpreter: 3919 3920 Connection // Declare Field Connection 3921attributes 3922 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 3923 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes 3924Protocol 3925 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 3926 RawDataBuffer // Data type for Vendor Data 3927fields 3928 3929Predefined ASL/AML Objects: 3930--------------------------- 3931 3932All new predefined objects/control-methods are supported by the iASL 3933compiler 3934and the ACPICA runtime validation/repair (arguments and return values.) 3935New 3936predefined names include the following: 3937 3938Standard Predefined Names (Objects or Control Methods): 3939 _AEI, _CLS, _CPC, _CWS, _DEP, 3940 _DLM, _EVT, _GCP, _CRT, _GWS, 3941 _HRV, _PRE, _PSE, _SRT, _SUB. 3942 3943Resource Tags (Names used to access individual fields within resource 3944descriptors): 3945 _DBT, _DPL, _DRS, _END, _FLC, 3946 _IOR, _LIN, _MOD, _PAR, _PHA, 3947 _PIN, _PPI, _POL, _RXL, _SLV, 3948 _SPE, _STB, _TXL, _VEN. 3949 3950ACPICA External Interfaces: 3951--------------------------- 3952 3953Several new interfaces have been defined for use by ACPI-related device 3954drivers and other host OS services: 3955 3956AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 3957to 3958acquire and release AML mutexes that are defined in the DSDT/SSDT tables 3959provided by the BIOS. They are intended to be used in conjunction with 3960the 3961ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 3962mutual exclusion with the AML code/interpreter. 3963 3964AcpiGetEventResources: Returns the (formatted) resource descriptors as 3965defined 3966by the ACPI 5.0 _AEI object (ACPI Event Information). This object 3967provides 3968resource descriptors associated with hardware-reduced platform events, 3969similar 3970to the AcpiGetCurrentResources interface. 3971 3972Operation Region Handlers: For General Purpose IO and Generic Serial Bus 3973operation regions, information about the Connection() object and any 3974optional 3975length information is passed to the region handler within the Context 3976parameter. 3977 3978AcpiBufferToResource: This interface converts a raw AML buffer containing 3979a 3980resource template or resource descriptor to the ACPI_RESOURCE internal 3981format 3982suitable for use by device drivers. Can be used by an operation region 3983handler 3984to convert the Connection() buffer object into a ACPI_RESOURCE. 3985 3986Miscellaneous/Tools/TestSuites: 3987------------------------------- 3988 3989Support for extended _HID names (Four alpha characters instead of three). 3990Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 3991Support for ACPI 5.0 features in the ASLTS test suite. 3992Fully updated documentation (ACPICA and iASL reference documents.) 3993 3994ACPI Table Definition Language: 3995------------------------------- 3996 3997Support for this language was implemented and released as a subsystem of 3998the 3999iASL compiler in 2010. (See the iASL compiler User Guide.) 4000 4001 4002Non-ACPI 5.0 changes for this release: 4003-------------------------------------- 4004 40051) ACPICA Core Subsystem: 4006 4007Fix a problem with operation region declarations where a failure can 4008occur 4009if 4010the region name and an argument that evaluates to an object (such as the 4011region address) are in different namespace scopes. Lin Ming, ACPICA BZ 4012937. 4013 4014Do not abort an ACPI table load if an invalid space ID is found within. 4015This 4016will be caught later if the offending method is executed. ACPICA BZ 925. 4017 4018Fixed an issue with the FFixedHW space ID where the ID was not always 4019recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 4020 4021Fixed a problem with the 32-bit generation of the unix-specific OSL 4022(osunixxf.c). Lin Ming, ACPICA BZ 936. 4023 4024Several changes made to enable generation with the GCC 4.6 compiler. 4025ACPICA BZ 4026935. 4027 4028New error messages: Unsupported I/O requests (not 8/16/32 bit), and 4029Index/Bank 4030field registers out-of-range. 4031 40322) iASL Compiler/Disassembler and Tools: 4033 4034iASL: Implemented the __PATH__ operator, which returns the full pathname 4035of 4036the current source file. 4037 4038AcpiHelp: Automatically display expanded keyword information for all ASL 4039operators. 4040 4041Debugger: Add "Template" command to disassemble/dump resource template 4042buffers. 4043 4044Added a new master script to generate and execute the ASLTS test suite. 4045Automatically handles 32- and 64-bit generation. See tests/aslts.sh 4046 4047iASL: Fix problem with listing generation during processing of the 4048Switch() 4049operator where AML listing was disabled until the entire Switch block was 4050completed. 4051 4052iASL: Improve support for semicolon statement terminators. Fix "invalid 4053character" message for some cases when the semicolon is used. Semicolons 4054are 4055now allowed after every <Term> grammar element. ACPICA BZ 927. 4056 4057iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 4058923. 4059 4060Disassembler: Fix problem with disassembly of the DataTableRegion 4061operator 4062where an inadvertent "Unhandled deferred opcode" message could be 4063generated. 4064 40653) Example Code and Data Size 4066 4067These are the sizes for the OS-independent acpica.lib produced by the 4068Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 4069includes the debug output trace mechanism and has a much larger code and 4070data 4071size. 4072 4073 Previous Release: 4074 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4075 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4076 Current Release: 4077 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 4078 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 4079 4080---------------------------------------- 408122 September 2011. Summary of changes for version 20110922: 4082 40830) ACPI 5.0 News: 4084 4085Support for ACPI 5.0 in ACPICA has been underway for several months and 4086will 4087be released at the same time that ACPI 5.0 is officially released. 4088 4089The ACPI 5.0 specification is on track for release in the next few 4090months. 4091 40921) ACPICA Core Subsystem: 4093 4094Fixed a problem where the maximum sleep time for the Sleep() operator was 4095intended to be limited to two seconds, but was inadvertently limited to 409620 4097seconds instead. 4098 4099Linux and Unix makefiles: Added header file dependencies to ensure 4100correct 4101generation of ACPICA core code and utilities. Also simplified the 4102makefiles 4103considerably through the use of the vpath variable to specify search 4104paths. 4105ACPICA BZ 924. 4106 41072) iASL Compiler/Disassembler and Tools: 4108 4109iASL: Implemented support to check the access length for all fields 4110created to 4111access named Resource Descriptor fields. For example, if a resource field 4112is 4113defined to be two bits, a warning is issued if a CreateXxxxField() is 4114used 4115with an incorrect bit length. This is implemented for all current 4116resource 4117descriptor names. ACPICA BZ 930. 4118 4119Disassembler: Fixed a byte ordering problem with the output of 24-bit and 412056- 4121bit integers. 4122 4123iASL: Fixed a couple of issues associated with variable-length package 4124objects. 1) properly handle constants like One, Ones, Zero -- do not make 4125a 4126VAR_PACKAGE when these are used as a package length. 2) Allow the 4127VAR_PACKAGE 4128opcode (in addition to PACKAGE) when validating object types for 4129predefined 4130names. 4131 4132iASL: Emit statistics for all output files (instead of just the ASL input 4133and 4134AML output). Includes listings, hex files, etc. 4135 4136iASL: Added -G option to the table compiler to allow the compilation of 4137custom 4138ACPI tables. The only part of a table that is required is the standard 413936- 4140byte 4141ACPI header. 4142 4143AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 4144headers), 4145which also adds correct 64-bit support. Also, now all output filenames 4146are 4147completely lower case. 4148 4149AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 4150loading table files. A warning is issued for any such tables. The only 4151exception is an FADT. This also fixes a possible fault when attempting to 4152load 4153non-AML tables. ACPICA BZ 932. 4154 4155AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where 4156a 4157missing table terminator could cause a fault when using the -p option. 4158 4159AcpiSrc: Fixed a possible divide-by-zero fault when generating file 4160statistics. 4161 41623) Example Code and Data Size 4163 4164These are the sizes for the OS-independent acpica.lib produced by the 4165Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 4166includes the debug output trace mechanism and has a much larger code and 4167data 4168size. 4169 4170 Previous Release (VC 9.0): 4171 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4172 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4173 Current Release (VC 9.0): 4174 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4175 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4176 4177 4178---------------------------------------- 417923 June 2011. Summary of changes for version 20110623: 4180 41811) ACPI CA Core Subsystem: 4182 4183Updated the predefined name repair mechanism to not attempt repair of a 4184_TSS 4185return object if a _PSS object is present. We can only sort the _TSS 4186return 4187package if there is no _PSS within the same scope. This is because if 4188_PSS 4189is 4190present, the ACPI specification dictates that the _TSS Power Dissipation 4191field 4192is to be ignored, and therefore some BIOSs leave garbage values in the 4193_TSS 4194Power field(s). In this case, it is best to just return the _TSS package 4195as- 4196is. Reported by, and fixed with assistance from Fenghua Yu. 4197 4198Added an option to globally disable the control method return value 4199validation 4200and repair. This runtime option can be used to disable return value 4201repair 4202if 4203this is causing a problem on a particular machine. Also added an option 4204to 4205AcpiExec (-dr) to set this disable flag. 4206 4207All makefiles and project files: Major changes to improve generation of 4208ACPICA 4209tools. ACPICA BZ 912: 4210 Reduce default optimization levels to improve compatibility 4211 For Linux, add strict-aliasing=0 for gcc 4 4212 Cleanup and simplify use of command line defines 4213 Cleanup multithread library support 4214 Improve usage messages 4215 4216Linux-specific header: update handling of THREAD_ID and pthread. For the 421732- 4218bit case, improve casting to eliminate possible warnings, especially with 4219the 4220acpica tools. 4221 4222Example Code and Data Size: These are the sizes for the OS-independent 4223acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4224debug 4225version of the code includes the debug output trace mechanism and has a 4226much 4227larger code and data size. 4228 4229 Previous Release (VC 9.0): 4230 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 4231 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4232 Current Release (VC 9.0): 4233 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4234 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4235 42362) iASL Compiler/Disassembler and Tools: 4237 4238With this release, a new utility named "acpihelp" has been added to the 4239ACPICA 4240package. This utility summarizes the ACPI specification chapters for the 4241ASL 4242and AML languages. It generates under Linux/Unix as well as Windows, and 4243provides the following functionality: 4244 Find/display ASL operator(s) -- with description and syntax. 4245 Find/display ASL keyword(s) -- with exact spelling and descriptions. 4246 Find/display ACPI predefined name(s) -- with description, number 4247 of arguments, and the return value data type. 4248 Find/display AML opcode name(s) -- with opcode, arguments, and 4249grammar. 4250 Decode/display AML opcode -- with opcode name, arguments, and 4251grammar. 4252 4253Service Layers: Make multi-thread support configurable. Conditionally 4254compile 4255the multi-thread support so that threading libraries will not be linked 4256if 4257not 4258necessary. The only tool that requires multi-thread support is AcpiExec. 4259 4260iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 4261of 4262Bison appear to want the interface to yyerror to be a const char * (or at 4263least this is a problem when generating iASL on some systems.) ACPICA BZ 4264923 4265Pierre Lejeune. 4266 4267Tools: Fix for systems where O_BINARY is not defined. Only used for 4268Windows 4269versions of the tools. 4270 4271---------------------------------------- 427227 May 2011. Summary of changes for version 20110527: 4273 42741) ACPI CA Core Subsystem: 4275 4276ASL Load() operator: Reinstate most restrictions on the incoming ACPI 4277table 4278signature. Now, only allow SSDT, OEMx, and a null signature. History: 4279 1) Originally, we checked the table signature for "SSDT" or "PSDT". 4280 (PSDT is now obsolete.) 4281 2) We added support for OEMx tables, signature "OEM" plus a fourth 4282 "don't care" character. 4283 3) Valid tables were encountered with a null signature, so we just 4284 gave up on validating the signature, (05/2008). 4285 4) We encountered non-AML tables such as the MADT, which caused 4286 interpreter errors and kernel faults. So now, we once again allow 4287 only SSDT, OEMx, and now, also a null signature. (05/2011). 4288 4289Added the missing _TDL predefined name to the global name list in order 4290to 4291enable validation. Affects both the core ACPICA code and the iASL 4292compiler. 4293 4294Example Code and Data Size: These are the sizes for the OS-independent 4295acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4296debug 4297version of the code includes the debug output trace mechanism and has a 4298much 4299larger code and data size. 4300 4301 Previous Release (VC 9.0): 4302 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 4303 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 4304 Current Release (VC 9.0): 4305 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 4306 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4307 43082) iASL Compiler/Disassembler and Tools: 4309 4310Debugger/AcpiExec: Implemented support for "complex" method arguments on 4311the 4312debugger command line. This adds support beyond simple integers -- 4313including 4314Strings, Buffers, and Packages. Includes support for nested packages. 4315Increased the default command line buffer size to accommodate these 4316arguments. 4317See the ACPICA reference for details and syntax. ACPICA BZ 917. 4318 4319Debugger/AcpiExec: Implemented support for "default" method arguments for 4320the 4321Execute/Debug command. Now, the debugger will always invoke a control 4322method 4323with the required number of arguments -- even if the command line 4324specifies 4325none or insufficient arguments. It uses default integer values for any 4326missing 4327arguments. Also fixes a bug where only six method arguments maximum were 4328supported instead of the required seven. 4329 4330Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 4331and 4332also return status in order to prevent buffer overruns. See the ACPICA 4333reference for details and syntax. ACPICA BZ 921 4334 4335iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 4336makefiles to simplify support for the two different but similar parser 4337generators, bison and yacc. 4338 4339Updated the generic unix makefile for gcc 4. The default gcc version is 4340now 4341expected to be 4 or greater, since options specific to gcc 4 are used. 4342 4343---------------------------------------- 434413 April 2011. Summary of changes for version 20110413: 4345 43461) ACPI CA Core Subsystem: 4347 4348Implemented support to execute a so-called "orphan" _REG method under the 4349EC 4350device. This change will force the execution of a _REG method underneath 4351the 4352EC 4353device even if there is no corresponding operation region of type 4354EmbeddedControl. Fixes a problem seen on some machines and apparently is 4355compatible with Windows behavior. ACPICA BZ 875. 4356 4357Added more predefined methods that are eligible for automatic NULL 4358package 4359element removal. This change adds another group of predefined names to 4360the 4361list 4362of names that can be repaired by having NULL package elements dynamically 4363removed. This group are those methods that return a single variable- 4364length 4365package containing simple data types such as integers, buffers, strings. 4366This 4367includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 4368_PSL, 4369_Sx, 4370and _TZD. ACPICA BZ 914. 4371 4372Split and segregated all internal global lock functions to a new file, 4373evglock.c. 4374 4375Updated internal address SpaceID for DataTable regions. Moved this 4376internal 4377space 4378id in preparation for ACPI 5.0 changes that will include some new space 4379IDs. 4380This 4381change should not affect user/host code. 4382 4383Example Code and Data Size: These are the sizes for the OS-independent 4384acpica.lib 4385produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 4386version of 4387the code includes the debug output trace mechanism and has a much larger 4388code 4389and 4390data size. 4391 4392 Previous Release (VC 9.0): 4393 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 4394 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 4395 Current Release (VC 9.0): 4396 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 4397 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 4398 43992) iASL Compiler/Disassembler and Tools: 4400 4401iASL/DTC: Major update for new grammar features. Allow generic data types 4402in 4403custom ACPI tables. Field names are now optional. Any line can be split 4404to 4405multiple lines using the continuation char (\). Large buffers now use 4406line- 4407continuation character(s) and no colon on the continuation lines. See the 4408grammar 4409update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 4410Moore. 4411 4412iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 4413statements. 4414Since the parser stuffs a "zero" as the return value for these statements 4415(due 4416to 4417the underlying AML grammar), they were seen as "return with value" by the 4418iASL 4419semantic checking. They are now seen correctly as "null" return 4420statements. 4421 4422iASL: Check if a_REG declaration has a corresponding Operation Region. 4423Adds a 4424check for each _REG to ensure that there is in fact a corresponding 4425operation 4426region declaration in the same scope. If not, the _REG method is not very 4427useful 4428since it probably won't be executed. ACPICA BZ 915. 4429 4430iASL/DTC: Finish support for expression evaluation. Added a new 4431expression 4432parser 4433that implements c-style operator precedence and parenthesization. ACPICA 4434bugzilla 4435908. 4436 4437Disassembler/DTC: Remove support for () and <> style comments in data 4438tables. 4439Now 4440that DTC has full expression support, we don't want to have comment 4441strings 4442that 4443start with a parentheses or a less-than symbol. Now, only the standard /* 4444and 4445// 4446comments are supported, as well as the bracket [] comments. 4447 4448AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 4449"unusual" 4450headers in the acpidump file. Update the header validation to support 4451these 4452tables. Problem introduced in previous AcpiXtract version in the change 4453to 4454support "wrong checksum" error messages emitted by acpidump utility. 4455 4456iASL: Add a * option to generate all template files (as a synonym for 4457ALL) 4458as 4459in 4460"iasl -T *" or "iasl -T ALL". 4461 4462iASL/DTC: Do not abort compiler on fatal errors. We do not want to 4463completely 4464abort the compiler on "fatal" errors, simply should abort the current 4465compile. 4466This allows multiple compiles with a single (possibly wildcard) compiler 4467invocation. 4468 4469---------------------------------------- 447016 March 2011. Summary of changes for version 20110316: 4471 44721) ACPI CA Core Subsystem: 4473 4474Fixed a problem caused by a _PRW method appearing at the namespace root 4475scope 4476during the setup of wake GPEs. A fault could occur if a _PRW directly 4477under 4478the 4479root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 4480 4481Implemented support for "spurious" Global Lock interrupts. On some 4482systems, a 4483global lock interrupt can occur without the pending flag being set. Upon 4484a 4485GL 4486interrupt, we now ensure that a thread is actually waiting for the lock 4487before 4488signaling GL availability. Rafael Wysocki, Bob Moore. 4489 4490Example Code and Data Size: These are the sizes for the OS-independent 4491acpica.lib 4492produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 4493version of 4494the code includes the debug output trace mechanism and has a much larger 4495code 4496and 4497data size. 4498 4499 Previous Release (VC 9.0): 4500 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4501 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4502 Current Release (VC 9.0): 4503 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 4504 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 4505 45062) iASL Compiler/Disassembler and Tools: 4507 4508Implemented full support for the "SLIC" ACPI table. Includes support in 4509the 4510header files, disassembler, table compiler, and template generator. Bob 4511Moore, 4512Lin Ming. 4513 4514AcpiXtract: Correctly handle embedded comments and messages from 4515AcpiDump. 4516Apparently some or all versions of acpidump will occasionally emit a 4517comment 4518like 4519"Wrong checksum", etc., into the dump file. This was causing problems for 4520AcpiXtract. ACPICA BZ 905. 4521 4522iASL: Fix the Linux makefile by removing an inadvertent double file 4523inclusion. 4524ACPICA BZ 913. 4525 4526AcpiExec: Update installation of operation region handlers. Install one 4527handler 4528for a user-defined address space. This is used by the ASL test suite 4529(ASLTS). 4530 4531---------------------------------------- 453211 February 2011. Summary of changes for version 20110211: 4533 45341) ACPI CA Core Subsystem: 4535 4536Added a mechanism to defer _REG methods for some early-installed 4537handlers. 4538Most user handlers should be installed before call to 4539AcpiEnableSubsystem. 4540However, Event handlers and region handlers should be installed after 4541AcpiInitializeObjects. Override handlers for the "default" regions should 4542be 4543installed early, however. This change executes all _REG methods for the 4544default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 4545chicken/egg issues between them. ACPICA BZ 848. 4546 4547Implemented an optimization for GPE detection. This optimization will 4548simply 4549ignore GPE registers that contain no enabled GPEs -- there is no need to 4550read the register since this information is available internally. This 4551becomes more important on machines with a large GPE space. ACPICA 4552bugzilla 4553884. Lin Ming. Suggestion from Joe Liu. 4554 4555Removed all use of the highly unreliable FADT revision field. The 4556revision 4557number in the FADT has been found to be completely unreliable and cannot 4558be 4559trusted. Only the actual table length can be used to infer the version. 4560This 4561change updates the ACPICA core and the disassembler so that both no 4562longer 4563even look at the FADT version and instead depend solely upon the FADT 4564length. 4565 4566Fix an unresolved name issue for the no-debug and no-error-message source 4567generation cases. The _AcpiModuleName was left undefined in these cases, 4568but 4569it is actually needed as a parameter to some interfaces. Define 4570_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 4571 4572Split several large files (makefiles and project files updated) 4573 utglobal.c -> utdecode.c 4574 dbcomds.c -> dbmethod.c dbnames.c 4575 dsopcode.c -> dsargs.c dscontrol.c 4576 dsload.c -> dsload2.c 4577 aslanalyze.c -> aslbtypes.c aslwalks.c 4578 4579Example Code and Data Size: These are the sizes for the OS-independent 4580acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4581debug version of the code includes the debug output trace mechanism and 4582has 4583a much larger code and data size. 4584 4585 Previous Release (VC 9.0): 4586 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4587 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4588 Current Release (VC 9.0): 4589 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4590 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4591 45922) iASL Compiler/Disassembler and Tools: 4593 4594iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 4595These are useful C-style macros with the standard definitions. ACPICA 4596bugzilla 898. 4597 4598iASL/DTC: Added support for integer expressions and labels. Support for 4599full 4600expressions for all integer fields in all ACPI tables. Support for labels 4601in 4602"generic" portions of tables such as UEFI. See the iASL reference manual. 4603 4604Debugger: Added a command to display the status of global handlers. The 4605"handlers" command will display op region, fixed event, and miscellaneous 4606global handlers. installation status -- and for op regions, whether 4607default 4608or user-installed handler will be used. 4609 4610iASL: Warn if reserved method incorrectly returns a value. Many 4611predefined 4612names are defined such that they do not return a value. If implemented as 4613a 4614method, issue a warning if such a name explicitly returns a value. ACPICA 4615Bugzilla 855. 4616 4617iASL: Added detection of GPE method name conflicts. Detects a conflict 4618where 4619there are two GPE methods of the form _Lxy and _Exy in the same scope. 4620(For 4621example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 4622 4623iASL/DTC: Fixed a couple input scanner issues with comments and line 4624numbers. Comment remover could get confused and miss a comment ending. 4625Fixed 4626a problem with line counter maintenance. 4627 4628iASL/DTC: Reduced the severity of some errors from fatal to error. There 4629is 4630no need to abort on simple errors within a field definition. 4631 4632Debugger: Simplified the output of the help command. All help output now 4633in 4634a single screen, instead of help subcommands. ACPICA Bugzilla 897. 4635 4636---------------------------------------- 463712 January 2011. Summary of changes for version 20110112: 4638 46391) ACPI CA Core Subsystem: 4640 4641Fixed a race condition between method execution and namespace walks that 4642can 4643possibly cause a fault. The problem was apparently introduced in version 464420100528 as a result of a performance optimization that reduces the 4645number 4646of 4647namespace walks upon method exit by using the delete_namespace_subtree 4648function instead of the delete_namespace_by_owner function used 4649previously. 4650Bug is a missing namespace lock in the delete_namespace_subtree function. 4651dana.myers@oracle.com 4652 4653Fixed several issues and a possible fault with the automatic "serialized" 4654method support. History: This support changes a method to "serialized" on 4655the 4656fly if the method generates an AE_ALREADY_EXISTS error, indicating the 4657possibility that it cannot handle reentrancy. This fix repairs a couple 4658of 4659issues seen in the field, especially on machines with many cores: 4660 4661 1) Delete method children only upon the exit of the last thread, 4662 so as to not delete objects out from under other running threads 4663 (and possibly causing a fault.) 4664 2) Set the "serialized" bit for the method only upon the exit of the 4665 Last thread, so as to not cause deadlock when running threads 4666 attempt to exit. 4667 3) Cleanup the use of the AML "MethodFlags" and internal method flags 4668 so that there is no longer any confusion between the two. 4669 4670 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 4671 4672Debugger: Now lock the namespace for duration of a namespace dump. 4673Prevents 4674issues if the namespace is changing dynamically underneath the debugger. 4675Especially affects temporary namespace nodes, since the debugger displays 4676these also. 4677 4678Updated the ordering of include files. The ACPICA headers should appear 4679before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 4680set 4681any necessary compiler-specific defines, etc. Affects the ACPI-related 4682tools 4683and utilities. 4684 4685Updated all ACPICA copyrights and signons to 2011. Added the 2011 4686copyright 4687to all module headers and signons, including the Linux header. This 4688affects 4689virtually every file in the ACPICA core subsystem, iASL compiler, and all 4690utilities. 4691 4692Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 4693project files for VC++ 6.0 are now obsolete. New project files can be 4694found 4695under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 4696details. 4697 4698Example Code and Data Size: These are the sizes for the OS-independent 4699acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4700debug version of the code includes the debug output trace mechanism and 4701has a 4702much larger code and data size. 4703 4704 Previous Release (VC 6.0): 4705 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 4706 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 4707 Current Release (VC 9.0): 4708 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4709 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4710 47112) iASL Compiler/Disassembler and Tools: 4712 4713iASL: Added generic data types to the Data Table compiler. Add "generic" 4714data 4715types such as UINT32, String, Unicode, etc., to simplify the generation 4716of 4717platform-defined tables such as UEFI. Lin Ming. 4718 4719iASL: Added listing support for the Data Table Compiler. Adds listing 4720support 4721(-l) to display actual binary output for each line of input code. 4722 4723---------------------------------------- 472409 December 2010. Summary of changes for version 20101209: 4725 47261) ACPI CA Core Subsystem: 4727 4728Completed the major overhaul of the GPE support code that was begun in 4729July 47302010. Major features include: removal of _PRW execution in ACPICA (host 4731executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 4732changes to existing interfaces, simplification of GPE handler operation, 4733and 4734a handful of new interfaces: 4735 4736 AcpiUpdateAllGpes 4737 AcpiFinishGpe 4738 AcpiSetupGpeForWake 4739 AcpiSetGpeWakeMask 4740 One new file, evxfgpe.c to consolidate all external GPE interfaces. 4741 4742See the ACPICA Programmer Reference for full details and programming 4743information. See the new section 4.4 "General Purpose Event (GPE) 4744Support" 4745for a full overview, and section 8.7 "ACPI General Purpose Event 4746Management" 4747for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin 4748Ming, 4749Bob Moore, Rafael Wysocki. 4750 4751Implemented a new GPE feature for Windows compatibility, the "Implicit 4752Wake 4753GPE Notify". This feature will automatically issue a Notify(2) on a 4754device 4755when a Wake GPE is received if there is no corresponding GPE method or 4756handler. ACPICA BZ 870. 4757 4758Fixed a problem with the Scope() operator during table parse and load 4759phase. 4760During load phase (table load or method execution), the scope operator 4761should 4762not enter the target into the namespace. Instead, it should open a new 4763scope 4764at the target location. Linux BZ 19462, ACPICA BZ 882. 4765 4766Example Code and Data Size: These are the sizes for the OS-independent 4767acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4768debug version of the code includes the debug output trace mechanism and 4769has a 4770much larger code and data size. 4771 4772 Previous Release: 4773 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 4774 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 4775 Current Release: 4776 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 4777 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 4778 47792) iASL Compiler/Disassembler and Tools: 4780 4781iASL: Relax the alphanumeric restriction on _CID strings. These strings 4782are 4783"bus-specific" per the ACPI specification, and therefore any characters 4784are 4785acceptable. The only checks that can be performed are for a null string 4786and 4787perhaps for a leading asterisk. ACPICA BZ 886. 4788 4789iASL: Fixed a problem where a syntax error that caused a premature EOF 4790condition on the source file emitted a very confusing error message. The 4791premature EOF is now detected correctly. ACPICA BZ 891. 4792 4793Disassembler: Decode the AccessSize within a Generic Address Structure 4794(byte 4795access, word access, etc.) Note, this field does not allow arbitrary bit 4796access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 4797 4798New: AcpiNames utility - Example namespace dump utility. Shows an example 4799of 4800ACPICA configuration for a minimal namespace dump utility. Uses table and 4801namespace managers, but no AML interpreter. Does not add any 4802functionality 4803over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 4804partition and configure ACPICA. ACPICA BZ 883. 4805 4806AML Debugger: Increased the debugger buffer size for method return 4807objects. 4808Was 4K, increased to 16K. Also enhanced error messages for debugger 4809method 4810execution, including the buffer overflow case. 4811 4812---------------------------------------- 481313 October 2010. Summary of changes for version 20101013: 4814 48151) ACPI CA Core Subsystem: 4816 4817Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 4818now 4819clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 4820HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 4821 4822Changed the type of the predefined namespace object _TZ from ThermalZone 4823to 4824Device. This was found to be confusing to the host software that 4825processes 4826the various thermal zones, since _TZ is not really a ThermalZone. 4827However, 4828a 4829Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 4830Zhang. 4831 4832Added Windows Vista SP2 to the list of supported _OSI strings. The actual 4833string is "Windows 2006 SP2". 4834 4835Eliminated duplicate code in AcpiUtExecute* functions. Now that the 4836nsrepair 4837code automatically repairs _HID-related strings, this type of code is no 4838longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 4839878. 4840 4841Example Code and Data Size: These are the sizes for the OS-independent 4842acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4843debug version of the code includes the debug output trace mechanism and 4844has a 4845much larger code and data size. 4846 4847 Previous Release: 4848 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 4849 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 4850 Current Release: 4851 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 4852 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 4853 48542) iASL Compiler/Disassembler and Tools: 4855 4856iASL: Implemented additional compile-time validation for _HID strings. 4857The 4858non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the 4859length 4860of 4861the string must be exactly seven or eight characters. For both _HID and 4862_CID 4863strings, all characters must be alphanumeric. ACPICA BZ 874. 4864 4865iASL: Allow certain "null" resource descriptors. Some BIOS code creates 4866descriptors that are mostly or all zeros, with the expectation that they 4867will 4868be filled in at runtime. iASL now allows this as long as there is a 4869"resource 4870tag" (name) associated with the descriptor, which gives the ASL a handle 4871needed to modify the descriptor. ACPICA BZ 873. 4872 4873Added single-thread support to the generic Unix application OSL. 4874Primarily 4875for iASL support, this change removes the use of semaphores in the 4876single- 4877threaded ACPICA tools/applications - increasing performance. The 4878_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 4879option. ACPICA BZ 879. 4880 4881AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 4882support 4883for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 4884 4885iASL: Moved all compiler messages to a new file, aslmessages.h. 4886 4887---------------------------------------- 488815 September 2010. Summary of changes for version 20100915: 4889 48901) ACPI CA Core Subsystem: 4891 4892Removed the AcpiOsDerivePciId OSL interface. The various host 4893implementations 4894of this function were not OS-dependent and are now obsolete and can be 4895removed from all host OSLs. This function has been replaced by 4896AcpiHwDerivePciId, which is now part of the ACPICA core code. 4897AcpiHwDerivePciId has been implemented without recursion. Adds one new 4898module, hwpci.c. ACPICA BZ 857. 4899 4900Implemented a dynamic repair for _HID and _CID strings. The following 4901problems are now repaired at runtime: 1) Remove a leading asterisk in the 4902string, and 2) the entire string is uppercased. Both repairs are in 4903accordance with the ACPI specification and will simplify host driver 4904code. 4905ACPICA BZ 871. 4906 4907The ACPI_THREAD_ID type is no longer configurable, internally it is now 4908always UINT64. This simplifies the ACPICA code, especially any printf 4909output. 4910UINT64 is the only common data type for all thread_id types across all 4911operating systems. It is now up to the host OSL to cast the native 4912thread_id 4913type to UINT64 before returning the value to ACPICA (via 4914AcpiOsGetThreadId). 4915Lin Ming, Bob Moore. 4916 4917Added the ACPI_INLINE type to enhance the ACPICA configuration. The 4918"inline" 4919keyword is not standard across compilers, and this type allows inline to 4920be 4921configured on a per-compiler basis. Lin Ming. 4922 4923Made the system global AcpiGbl_SystemAwakeAndRunning publically 4924available. 4925Added an extern for this boolean in acpixf.h. Some hosts utilize this 4926value 4927during suspend/restore operations. ACPICA BZ 869. 4928 4929All code that implements error/warning messages with the "ACPI:" prefix 4930has 4931been moved to a new module, utxferror.c. 4932 4933The UINT64_OVERLAY was moved to utmath.c, which is the only module where 4934it 4935is used. ACPICA BZ 829. Lin Ming, Bob Moore. 4936 4937Example Code and Data Size: These are the sizes for the OS-independent 4938acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4939debug version of the code includes the debug output trace mechanism and 4940has a 4941much larger code and data size. 4942 4943 Previous Release: 4944 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 4945 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 4946 Current Release: 4947 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 4948 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 4949 49502) iASL Compiler/Disassembler and Tools: 4951 4952iASL/Disassembler: Write ACPI errors to stderr instead of the output 4953file. 4954This keeps the output files free of random error messages that may 4955originate 4956from within the namespace/interpreter code. Used this opportunity to 4957merge 4958all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 4959866. Lin Ming, Bob Moore. 4960 4961Tools: update some printfs for ansi warnings on size_t. Handle width 4962change 4963of size_t on 32-bit versus 64-bit generations. Lin Ming. 4964 4965---------------------------------------- 496606 August 2010. Summary of changes for version 20100806: 4967 49681) ACPI CA Core Subsystem: 4969 4970Designed and implemented a new host interface to the _OSI support code. 4971This 4972will allow the host to dynamically add or remove multiple _OSI strings, 4973as 4974well as install an optional handler that is called for each _OSI 4975invocation. 4976Also added a new AML debugger command, 'osi' to display and modify the 4977global 4978_OSI string table, and test support in the AcpiExec utility. See the 4979ACPICA 4980reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 4981New Functions: 4982 AcpiInstallInterface - Add an _OSI string. 4983 AcpiRemoveInterface - Delete an _OSI string. 4984 AcpiInstallInterfaceHandler - Install optional _OSI handler. 4985Obsolete Functions: 4986 AcpiOsValidateInterface - no longer used. 4987New Files: 4988 source/components/utilities/utosi.c 4989 4990Re-introduced the support to enable multi-byte transfers for Embedded 4991Controller (EC) operation regions. A reported problem was found to be a 4992bug 4993in the host OS, not in the multi-byte support. Previously, the maximum 4994data 4995size passed to the EC operation region handler was a single byte. There 4996are 4997often EC Fields larger than one byte that need to be transferred, and it 4998is 4999useful for the EC driver to lock these as a single transaction. This 5000change 5001enables single transfers larger than 8 bits. This effectively changes the 5002access to the EC space from ByteAcc to AnyAcc, and will probably require 5003changes to the host OS Embedded Controller driver to enable 16/32/64/256- 5004bit 5005transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 5006 5007Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 5008prototype in acpiosxf.h had the output value pointer as a (void *). 5009It should be a (UINT64 *). This may affect some host OSL code. 5010 5011Fixed a couple problems with the recently modified Linux makefiles for 5012iASL 5013and AcpiExec. These new makefiles place the generated object files in the 5014local directory so that there can be no collisions between the files that 5015are 5016shared between them that are compiled with different options. 5017 5018Example Code and Data Size: These are the sizes for the OS-independent 5019acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5020debug version of the code includes the debug output trace mechanism and 5021has a 5022much larger code and data size. 5023 5024 Previous Release: 5025 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5026 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 5027 Current Release: 5028 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 5029 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 5030 50312) iASL Compiler/Disassembler and Tools: 5032 5033iASL/Disassembler: Added a new option (-da, "disassemble all") to load 5034the 5035namespace from and disassemble an entire group of AML files. Useful for 5036loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 5037and 5038disassembling with one simple command. ACPICA BZ 865. Lin Ming. 5039 5040iASL: Allow multiple invocations of -e option. This change allows 5041multiple 5042uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 5043834. 5044Lin Ming. 5045 5046---------------------------------------- 504702 July 2010. Summary of changes for version 20100702: 5048 50491) ACPI CA Core Subsystem: 5050 5051Implemented several updates to the recently added GPE reference count 5052support. The model for "wake" GPEs is changing to give the host OS 5053complete 5054control of these GPEs. Eventually, the ACPICA core will not execute any 5055_PRW 5056methods, since the host already must execute them. Also, additional 5057changes 5058were made to help ensure that the reference counts are kept in proper 5059synchronization with reality. Rafael J. Wysocki. 5060 50611) Ensure that GPEs are not enabled twice during initialization. 50622) Ensure that GPE enable masks stay in sync with the reference count. 50633) Do not inadvertently enable GPEs when writing GPE registers. 50644) Remove the internal wake reference counter and add new AcpiGpeWakeup 5065interface. This interface will set or clear individual GPEs for wakeup. 50665) Remove GpeType argument from AcpiEnable and AcpiDisable. These 5067interfaces 5068are now used for "runtime" GPEs only. 5069 5070Changed the behavior of the GPE install/remove handler interfaces. The 5071GPE 5072is 5073no longer disabled during this process, as it was found to cause problems 5074on 5075some machines. Rafael J. Wysocki. 5076 5077Reverted a change introduced in version 20100528 to enable Embedded 5078Controller multi-byte transfers. This change was found to cause problems 5079with 5080Index Fields and possibly Bank Fields. It will be reintroduced when these 5081problems have been resolved. 5082 5083Fixed a problem with references to Alias objects within Package Objects. 5084A 5085reference to an Alias within the definition of a Package was not always 5086resolved properly. Aliases to objects like Processors, Thermal zones, 5087etc. 5088were resolved to the actual object instead of a reference to the object 5089as 5090it 5091should be. Package objects are only allowed to contain integer, string, 5092buffer, package, and reference objects. Redhat bugzilla 608648. 5093 5094Example Code and Data Size: These are the sizes for the OS-independent 5095acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5096debug version of the code includes the debug output trace mechanism and 5097has a 5098much larger code and data size. 5099 5100 Previous Release: 5101 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5102 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 5103 Current Release: 5104 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5105 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 5106 51072) iASL Compiler/Disassembler and Tools: 5108 5109iASL: Implemented a new compiler subsystem to allow definition and 5110compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 5111These 5112are called "ACPI Data Tables", and the new compiler is the "Data Table 5113Compiler". This compiler is intended to simplify the existing error-prone 5114process of creating these tables for the BIOS, as well as allowing the 5115disassembly, modification, recompilation, and override of existing ACPI 5116data 5117tables. See the iASL User Guide for detailed information. 5118 5119iASL: Implemented a new Template Generator option in support of the new 5120Data 5121Table Compiler. This option will create examples of all known ACPI tables 5122that can be used as the basis for table development. See the iASL 5123documentation and the -T option. 5124 5125Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 5126Descriptor Table). 5127 5128Updated the Linux makefiles for iASL and AcpiExec to place the generated 5129object files in the local directory so that there can be no collisions 5130between the shared files between them that are generated with different 5131options. 5132 5133Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. 5134Use 5135the #define __APPLE__ to enable this support. 5136 5137---------------------------------------- 513828 May 2010. Summary of changes for version 20100528: 5139 5140Note: The ACPI 4.0a specification was released on April 5, 2010 and is 5141available at www.acpi.info. This is primarily an errata release. 5142 51431) ACPI CA Core Subsystem: 5144 5145Undefined ACPI tables: We are looking for the definitions for the 5146following 5147ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 5148 5149Implemented support to enable multi-byte transfers for Embedded 5150Controller 5151(EC) operation regions. Previously, the maximum data size passed to the 5152EC 5153operation region handler was a single byte. There are often EC Fields 5154larger 5155than one byte that need to be transferred, and it is useful for the EC 5156driver 5157to lock these as a single transaction. This change enables single 5158transfers 5159larger than 8 bits. This effectively changes the access to the EC space 5160from 5161ByteAcc to AnyAcc, and will probably require changes to the host OS 5162Embedded 5163Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 5164bit 5165transfers. Alexey Starikovskiy, Lin Ming 5166 5167Implemented a performance enhancement for namespace search and access. 5168This 5169change enhances the performance of namespace searches and walks by adding 5170a 5171backpointer to the parent in each namespace node. On large namespaces, 5172this 5173change can improve overall ACPI performance by up to 9X. Adding a pointer 5174to 5175each namespace node increases the overall size of the internal namespace 5176by 5177about 5%, since each namespace entry usually consists of both a namespace 5178node and an ACPI operand object. However, this is the first growth of the 5179namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 5180 5181Implemented a performance optimization that reduces the number of 5182namespace 5183walks. On control method exit, only walk the namespace if the method is 5184known 5185to have created namespace objects outside of its local scope. Previously, 5186the 5187entire namespace was traversed on each control method exit. This change 5188can 5189improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 5190Moore. 5191 5192Added support to truncate I/O addresses to 16 bits for Windows 5193compatibility. 5194Some ASL code has been seen in the field that inadvertently has bits set 5195above bit 15. This feature is optional and is enabled if the BIOS 5196requests 5197any Windows OSI strings. It can also be enabled by the host OS. Matthew 5198Garrett, Bob Moore. 5199 5200Added support to limit the maximum time for the ASL Sleep() operator. To 5201prevent accidental deep sleeps, limit the maximum time that Sleep() will 5202actually sleep. Configurable, the default maximum is two seconds. ACPICA 5203bugzilla 854. 5204 5205Added run-time validation support for the _WDG and_WED Microsoft 5206predefined 5207methods. These objects are defined by "Windows Instrumentation", and are 5208not 5209part of the ACPI spec. ACPICA BZ 860. 5210 5211Expanded all statistic counters used during namespace and device 5212initialization from 16 to 32 bits in order to support very large 5213namespaces. 5214 5215Replaced all instances of %d in printf format specifiers with %u since 5216nearly 5217all integers in ACPICA are unsigned. 5218 5219Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 5220returned 5221as AE_NO_HANDLER. 5222 5223Example Code and Data Size: These are the sizes for the OS-independent 5224acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5225debug version of the code includes the debug output trace mechanism and 5226has a 5227much larger code and data size. 5228 5229 Previous Release: 5230 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 5231 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 5232 Current Release: 5233 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5234 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 5235 52362) iASL Compiler/Disassembler and Tools: 5237 5238iASL: Added compiler support for the _WDG and_WED Microsoft predefined 5239methods. These objects are defined by "Windows Instrumentation", and are 5240not 5241part of the ACPI spec. ACPICA BZ 860. 5242 5243AcpiExec: added option to disable the memory tracking mechanism. The -dt 5244option will disable the tracking mechanism, which improves performance 5245considerably. 5246 5247AcpiExec: Restructured the command line options into -d (disable) and -e 5248(enable) options. 5249 5250---------------------------------------- 525128 April 2010. Summary of changes for version 20100428: 5252 52531) ACPI CA Core Subsystem: 5254 5255Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 5256including FADT-based and GPE Block Devices, execute any _PRW methods in 5257the 5258new table, and process any _Lxx/_Exx GPE methods in the new table. Any 5259runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 5260immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 5261Devices. Provides compatibility with other ACPI implementations. Two new 5262files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 5263Moore. 5264 5265Fixed a regression introduced in version 20100331 within the table 5266manager 5267where initial table loading could fail. This was introduced in the fix 5268for 5269AcpiReallocateRootTable. Also, renamed some of fields in the table 5270manager 5271data structures to clarify their meaning and use. 5272 5273Fixed a possible allocation overrun during internal object copy in 5274AcpiUtCopySimpleObject. The original code did not correctly handle the 5275case 5276where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 5277847. 5278 5279Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 5280possible access beyond end-of-allocation. Also, now fully validate 5281descriptor 5282(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 5283 5284Example Code and Data Size: These are the sizes for the OS-independent 5285acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5286debug version of the code includes the debug output trace mechanism and 5287has a 5288much larger code and data size. 5289 5290 Previous Release: 5291 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 5292 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 5293 Current Release: 5294 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 5295 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 5296 52972) iASL Compiler/Disassembler and Tools: 5298 5299iASL: Implemented Min/Max/Len/Gran validation for address resource 5300descriptors. This change implements validation for the address fields 5301that 5302are common to all address-type resource descriptors. These checks are 5303implemented: Checks for valid Min/Max, length within the Min/Max window, 5304valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as 5305per 5306table 6-40 in the ACPI 4.0a specification. Also split the large 5307aslrestype1.c 5308and aslrestype2.c files into five new files. ACPICA BZ 840. 5309 5310iASL: Added support for the _Wxx predefined names. This support was 5311missing 5312and these names were not recognized by the compiler as valid predefined 5313names. ACPICA BZ 851. 5314 5315iASL: Added an error for all predefined names that are defined to return 5316no 5317value and thus must be implemented as Control Methods. These include all 5318of 5319the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 5320names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 5321 5322iASL: Implemented the -ts option to emit hex AML data in ASL format, as 5323an 5324ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 5325be 5326dynamically loaded via the Load() operator. Also cleaned up output for 5327the 5328- 5329ta and -tc options. ACPICA BZ 853. 5330 5331Tests: Added a new file with examples of extended iASL error checking. 5332Demonstrates the advanced error checking ability of the iASL compiler. 5333Available at tests/misc/badcode.asl. 5334 5335---------------------------------------- 533631 March 2010. Summary of changes for version 20100331: 5337 53381) ACPI CA Core Subsystem: 5339 5340Completed a major update for the GPE support in order to improve support 5341for 5342shared GPEs and to simplify both host OS and ACPICA code. Added a 5343reference 5344count mechanism to support shared GPEs that require multiple device 5345drivers. 5346Several external interfaces have changed. One external interface has been 5347removed. One new external interface was added. Most of the GPE external 5348interfaces now use the GPE spinlock instead of the events mutex (and the 5349Flags parameter for many GPE interfaces has been removed.) See the 5350updated 5351ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 5352Rafael 5353Wysocki. ACPICA BZ 831. 5354 5355Changed: 5356 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 5357Removed: 5358 AcpiSetGpeType 5359New: 5360 AcpiSetGpe 5361 5362Implemented write support for DataTable operation regions. These regions 5363are 5364defined via the DataTableRegion() operator. Previously, only read support 5365was 5366implemented. The ACPI specification allows DataTableRegions to be 5367read/write, 5368however. 5369 5370Implemented a new subsystem option to force a copy of the DSDT to local 5371memory. Optionally copy the entire DSDT to local memory (instead of 5372simply 5373mapping it.) There are some (albeit very rare) BIOSs that corrupt or 5374replace 5375the original DSDT, creating the need for this option. Default is FALSE, 5376do 5377not copy the DSDT. 5378 5379Implemented detection of a corrupted or replaced DSDT. This change adds 5380support to detect a DSDT that has been corrupted and/or replaced from 5381outside 5382the OS (by firmware). This is typically catastrophic for the system, but 5383has 5384been seen on some machines. Once this problem has been detected, the DSDT 5385copy option can be enabled via system configuration. Lin Ming, Bob Moore. 5386 5387Fixed two problems with AcpiReallocateRootTable during the root table 5388copy. 5389When copying the root table to the new allocation, the length used was 5390incorrect. The new size was used instead of the current table size, 5391meaning 5392too much data was copied. Also, the count of available slots for ACPI 5393tables 5394was not set correctly. Alexey Starikovskiy, Bob Moore. 5395 5396Example Code and Data Size: These are the sizes for the OS-independent 5397acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5398debug version of the code includes the debug output trace mechanism and 5399has a 5400much larger code and data size. 5401 5402 Previous Release: 5403 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 5404 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 5405 Current Release: 5406 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 5407 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 5408 54092) iASL Compiler/Disassembler and Tools: 5410 5411iASL: Implement limited typechecking for values returned from predefined 5412control methods. The type of any returned static (unnamed) object is now 5413validated. For example, Return(1). ACPICA BZ 786. 5414 5415iASL: Fixed a predefined name object verification regression. Fixes a 5416problem 5417introduced in version 20100304. An error is incorrectly generated if a 5418predefined name is declared as a static named object with a value defined 5419using the keywords "Zero", "One", or "Ones". Lin Ming. 5420 5421iASL: Added Windows 7 support for the -g option (get local ACPI tables) 5422by 5423reducing the requested registry access rights. ACPICA BZ 842. 5424 5425Disassembler: fixed a possible fault when generating External() 5426statements. 5427Introduced in commit ae7d6fd: Properly handle externals with parent- 5428prefix 5429(carat). Fixes a string length allocation calculation. Lin Ming. 5430 5431---------------------------------------- 543204 March 2010. Summary of changes for version 20100304: 5433 54341) ACPI CA Core Subsystem: 5435 5436Fixed a possible problem with the AML Mutex handling function 5437AcpiExReleaseMutex where the function could fault under the very rare 5438condition when the interpreter has blocked, the interpreter lock is 5439released, 5440the interpreter is then reentered via the same thread, and attempts to 5441acquire an AML mutex that was previously acquired. FreeBSD report 140979. 5442Lin 5443Ming. 5444 5445Implemented additional configuration support for the AML "Debug Object". 5446Output from the debug object can now be enabled via a global variable, 5447AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 5448debugging. 5449This debug output is now available in the release version of ACPICA 5450instead 5451of just the debug version. Also, the entire debug output module can now 5452be 5453configured out of the ACPICA build if desired. One new file added, 5454executer/exdebug.c. Lin Ming, Bob Moore. 5455 5456Added header support for the ACPI MCHI table (Management Controller Host 5457Interface Table). This table was added in ACPI 4.0, but the defining 5458document 5459has only recently become available. 5460 5461Standardized output of integer values for ACPICA warnings/errors. Always 5462use 54630x prefix for hex output, always use %u for unsigned integer decimal 5464output. 5465Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 5466400 5467invocations.) These invocations were converted from the original 5468ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 5469 5470Example Code and Data Size: These are the sizes for the OS-independent 5471acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5472debug version of the code includes the debug output trace mechanism and 5473has a 5474much larger code and data size. 5475 5476 Previous Release: 5477 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 5478 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 5479 Current Release: 5480 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 5481 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 5482 54832) iASL Compiler/Disassembler and Tools: 5484 5485iASL: Implemented typechecking support for static (non-control method) 5486predefined named objects that are declared with the Name() operator. For 5487example, the type of this object is now validated to be of type Integer: 5488Name(_BBN, 1). This change migrates the compiler to using the core 5489predefined 5490name table instead of maintaining a local version. Added a new file, 5491aslpredef.c. ACPICA BZ 832. 5492 5493Disassembler: Added support for the ACPI 4.0 MCHI table. 5494 5495---------------------------------------- 549621 January 2010. Summary of changes for version 20100121: 5497 54981) ACPI CA Core Subsystem: 5499 5500Added the 2010 copyright to all module headers and signons. This affects 5501virtually every file in the ACPICA core subsystem, the iASL compiler, the 5502tools/utilities, and the test suites. 5503 5504Implemented a change to the AcpiGetDevices interface to eliminate 5505unnecessary 5506invocations of the _STA method. In the case where a specific _HID is 5507requested, do not run _STA until a _HID match is found. This eliminates 5508potentially dozens of _STA calls during a search for a particular 5509device/HID, 5510which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 5511 5512Implemented an additional repair for predefined method return values. 5513Attempt 5514to repair unexpected NULL elements within returned Package objects. 5515Create 5516an 5517Integer of value zero, a NULL String, or a zero-length Buffer as 5518appropriate. 5519ACPICA BZ 818. Lin Ming, Bob Moore. 5520 5521Removed the obsolete ACPI_INTEGER data type. This type was introduced as 5522the 5523code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 5524(with 552564-bit AML integers). It is now obsolete and this change removes it from 5526the 5527ACPICA code base, replaced by UINT64. The original typedef has been 5528retained 5529for now for compatibility with existing device driver code. ACPICA BZ 5530824. 5531 5532Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field 5533in 5534the parse tree object. 5535 5536Added additional warning options for the gcc-4 generation. Updated the 5537source 5538accordingly. This includes some code restructuring to eliminate 5539unreachable 5540code, elimination of some gotos, elimination of unused return values, 5541some 5542additional casting, and removal of redundant declarations. 5543 5544Example Code and Data Size: These are the sizes for the OS-independent 5545acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5546debug version of the code includes the debug output trace mechanism and 5547has a 5548much larger code and data size. 5549 5550 Previous Release: 5551 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 5552 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 5553 Current Release: 5554 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 5555 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 5556 55572) iASL Compiler/Disassembler and Tools: 5558 5559No functional changes for this release. 5560 5561---------------------------------------- 556214 December 2009. Summary of changes for version 20091214: 5563 55641) ACPI CA Core Subsystem: 5565 5566Enhanced automatic data type conversions for predefined name repairs. 5567This 5568change expands the automatic repairs/conversions for predefined name 5569return 5570values to make Integers, Strings, and Buffers fully interchangeable. 5571Also, 5572a 5573Buffer can be converted to a Package of Integers if necessary. The 5574nsrepair.c 5575module was completely restructured. Lin Ming, Bob Moore. 5576 5577Implemented automatic removal of null package elements during predefined 5578name 5579repairs. This change will automatically remove embedded and trailing NULL 5580package elements from returned package objects that are defined to 5581contain 5582a 5583variable number of sub-packages. The driver is then presented with a 5584package 5585with no null elements to deal with. ACPICA BZ 819. 5586 5587Implemented a repair for the predefined _FDE and _GTM names. The expected 5588return value for both names is a Buffer of 5 DWORDs. This repair fixes 5589two 5590possible problems (both seen in the field), where a package of integers 5591is 5592returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 5593Kim. 5594 5595Implemented additional module-level code support. This change will 5596properly 5597execute module-level code that is not at the root of the namespace (under 5598a 5599Device object, etc.). Now executes the code within the current scope 5600instead 5601of the root. ACPICA BZ 762. Lin Ming. 5602 5603Fixed possible mutex acquisition errors when running _REG methods. Fixes 5604a 5605problem where mutex errors can occur when running a _REG method that is 5606in 5607the same scope as a method-defined operation region or an operation 5608region 5609under a module-level IF block. This type of code is rare, so the problem 5610has 5611not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 5612 5613Fixed a possible memory leak during module-level code execution. An 5614object 5615could be leaked for each block of executed module-level code if the 5616interpreter slack mode is enabled This change deletes any implicitly 5617returned 5618object from the module-level code block. Lin Ming. 5619 5620Removed messages for successful predefined repair(s). The repair 5621mechanism 5622was considered too wordy. Now, messages are only unconditionally emitted 5623if 5624the return object cannot be repaired. Existing messages for successful 5625repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 5626827. 5627 5628Example Code and Data Size: These are the sizes for the OS-independent 5629acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5630debug version of the code includes the debug output trace mechanism and 5631has a 5632much larger code and data size. 5633 5634 Previous Release: 5635 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 5636 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 5637 Current Release: 5638 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 5639 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 5640 56412) iASL Compiler/Disassembler and Tools: 5642 5643iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 5644files 5645were no longer automatically removed at the termination of the compile. 5646 5647acpiexec: Implemented the -f option to specify default region fill value. 5648This option specifies the value used to initialize buffers that simulate 5649operation regions. Default value is zero. Useful for debugging problems 5650that 5651depend on a specific initial value for a region or field. 5652 5653---------------------------------------- 565412 November 2009. Summary of changes for version 20091112: 5655 56561) ACPI CA Core Subsystem: 5657 5658Implemented a post-order callback to AcpiWalkNamespace. The existing 5659interface only has a pre-order callback. This change adds an additional 5660parameter for a post-order callback which will be more useful for bus 5661scans. 5662ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 5663 5664Modified the behavior of the operation region memory mapping cache for 5665SystemMemory. Ensure that the memory mappings created for operation 5666regions 5667do not cross 4K page boundaries. Crossing a page boundary while mapping 5668regions can cause kernel warnings on some hosts if the pages have 5669different 5670attributes. Such regions are probably BIOS bugs, and this is the 5671workaround. 5672Linux BZ 14445. Lin Ming. 5673 5674Implemented an automatic repair for predefined methods that must return 5675sorted lists. This change will repair (by sorting) packages returned by 5676_ALR, 5677_PSS, and _TSS. Drivers can now assume that the packages are correctly 5678sorted 5679and do not contain NULL package elements. Adds one new file, 5680namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 5681 5682Fixed a possible fault during predefined name validation if a return 5683Package 5684object contains NULL elements. Also adds a warning if a NULL element is 5685followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 5686may 5687include repair or removal of all such NULL elements where possible. 5688 5689Implemented additional module-level executable AML code support. This 5690change 5691will execute module-level code that is not at the root of the namespace 5692(under a Device object, etc.) at table load time. Module-level executable 5693AML 5694code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 5695 5696Implemented a new internal function to create Integer objects. This 5697function 5698simplifies miscellaneous object creation code. ACPICA BZ 823. 5699 5700Reduced the severity of predefined repair messages, Warning to Info. 5701Since 5702the object was successfully repaired, a warning is too severe. Reduced to 5703an 5704info message for now. These messages may eventually be changed to debug- 5705only. 5706ACPICA BZ 812. 5707 5708Example Code and Data Size: These are the sizes for the OS-independent 5709acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5710debug version of the code includes the debug output trace mechanism and 5711has a 5712much larger code and data size. 5713 5714 Previous Release: 5715 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 5716 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 5717 Current Release: 5718 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 5719 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 5720 57212) iASL Compiler/Disassembler and Tools: 5722 5723iASL: Implemented Switch() with While(1) so that Break works correctly. 5724This 5725change correctly implements the Switch operator with a surrounding 5726While(1) 5727so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 5728 5729iASL: Added a message if a package initializer list is shorter than 5730package 5731length. Adds a new remark for a Package() declaration if an initializer 5732list 5733exists, but is shorter than the declared length of the package. Although 5734technically legal, this is probably a coding error and it is seen in the 5735field. ACPICA BZ 815. Lin Ming, Bob Moore. 5736 5737iASL: Fixed a problem where the compiler could fault after the maximum 5738number 5739of errors was reached (200). 5740 5741acpixtract: Fixed a possible warning for pointer cast if the compiler 5742warning 5743level set very high. 5744 5745---------------------------------------- 574613 October 2009. Summary of changes for version 20091013: 5747 57481) ACPI CA Core Subsystem: 5749 5750Fixed a problem where an Operation Region _REG method could be executed 5751more 5752than once. If a custom address space handler is installed by the host 5753before 5754the "initialize operation regions" phase of the ACPICA initialization, 5755any 5756_REG methods for that address space could be executed twice. This change 5757fixes the problem. ACPICA BZ 427. Lin Ming. 5758 5759Fixed a possible memory leak for the Scope() ASL operator. When the exact 5760invocation of "Scope(\)" is executed (change scope to root), one internal 5761operand object was leaked. Lin Ming. 5762 5763Implemented a run-time repair for the _MAT predefined method. If the _MAT 5764return value is defined as a Field object in the AML, and the field 5765size is less than or equal to the default width of an integer (32 or 576664),_MAT 5767can incorrectly return an Integer instead of a Buffer. ACPICA now 5768automatically repairs this problem. ACPICA BZ 810. 5769 5770Implemented a run-time repair for the _BIF and _BIX predefined methods. 5771The 5772"OEM Information" field is often incorrectly returned as an Integer with 5773value zero if the field is not supported by the platform. This is due to 5774an 5775ambiguity in the ACPI specification. The field should always be a string. 5776ACPICA now automatically repairs this problem by returning a NULL string 5777within the returned Package. ACPICA BZ 807. 5778 5779Example Code and Data Size: These are the sizes for the OS-independent 5780acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5781debug version of the code includes the debug output trace mechanism and 5782has a 5783much larger code and data size. 5784 5785 Previous Release: 5786 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 5787 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 5788 Current Release: 5789 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 5790 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 5791 57922) iASL Compiler/Disassembler and Tools: 5793 5794Disassembler: Fixed a problem where references to external symbols that 5795contained one or more parent-prefixes (carats) were not handled 5796correctly, 5797possibly causing a fault. ACPICA BZ 806. Lin Ming. 5798 5799Disassembler: Restructured the code so that all functions that handle 5800external symbols are in a single module. One new file is added, 5801common/dmextern.c. 5802 5803AML Debugger: Added a max count argument for the Batch command (which 5804executes multiple predefined methods within the namespace.) 5805 5806iASL: Updated the compiler documentation (User Reference.) Available at 5807http://www.acpica.org/documentation/. ACPICA BZ 750. 5808 5809AcpiXtract: Updated for Lint and other formatting changes. Close all open 5810files. 5811 5812---------------------------------------- 581303 September 2009. Summary of changes for version 20090903: 5814 58151) ACPI CA Core Subsystem: 5816 5817For Windows Vista compatibility, added the automatic execution of an _INI 5818method located at the namespace root (\_INI). This method is executed at 5819table load time. This support is in addition to the automatic execution 5820of 5821\_SB._INI. Lin Ming. 5822 5823Fixed a possible memory leak in the interpreter for AML package objects 5824if 5825the package initializer list is longer than the defined size of the 5826package. 5827This apparently can only happen if the BIOS changes the package size on 5828the 5829fly (seen in a _PSS object), as ASL compilers do not allow this. The 5830interpreter will truncate the package to the defined size (and issue an 5831error 5832message), but previously could leave the extra objects undeleted if they 5833were 5834pre-created during the argument processing (such is the case if the 5835package 5836consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 5837 5838Fixed a problem seen when a Buffer or String is stored to itself via ASL. 5839This has been reported in the field. Previously, ACPICA would zero out 5840the 5841buffer/string. Now, the operation is treated as a noop. Provides Windows 5842compatibility. ACPICA BZ 803. Lin Ming. 5843 5844Removed an extraneous error message for ASL constructs of the form 5845Store(LocalX,LocalX) when LocalX is uninitialized. These curious 5846statements 5847are seen in many BIOSs and are once again treated as NOOPs and no error 5848is 5849emitted when they are encountered. ACPICA BZ 785. 5850 5851Fixed an extraneous warning message if a _DSM reserved method returns a 5852Package object. _DSM can return any type of object, so validation on the 5853return type cannot be performed. ACPICA BZ 802. 5854 5855Example Code and Data Size: These are the sizes for the OS-independent 5856acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5857debug version of the code includes the debug output trace mechanism and 5858has a 5859much larger code and data size. 5860 5861 Previous Release: 5862 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 5863 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 5864 Current Release: 5865 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 5866 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 5867 58682) iASL Compiler/Disassembler and Tools: 5869 5870iASL: Fixed a problem with the use of the Alias operator and Resource 5871Templates. The correct alias is now constructed and no error is emitted. 5872ACPICA BZ 738. 5873 5874iASL: Implemented the -I option to specify additional search directories 5875for 5876include files. Allows multiple additional search paths for include files. 5877Directories are searched in the order specified on the command line 5878(after 5879the local directory is searched.) ACPICA BZ 800. 5880 5881iASL: Fixed a problem where the full pathname for include files was not 5882emitted for warnings/errors. This caused the IDE support to not work 5883properly. ACPICA BZ 765. 5884 5885iASL: Implemented the -@ option to specify a Windows-style response file 5886containing additional command line options. ACPICA BZ 801. 5887 5888AcpiExec: Added support to load multiple AML files simultaneously (such 5889as 5890a 5891DSDT and multiple SSDTs). Also added support for wildcards within the AML 5892pathname. These features allow all machine tables to be easily loaded and 5893debugged together. ACPICA BZ 804. 5894 5895Disassembler: Added missing support for disassembly of HEST table Error 5896Bank 5897subtables. 5898 5899---------------------------------------- 590030 July 2009. Summary of changes for version 20090730: 5901 5902The ACPI 4.0 implementation for ACPICA is complete with this release. 5903 59041) ACPI CA Core Subsystem: 5905 5906ACPI 4.0: Added header file support for all new and changed ACPI tables. 5907Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are 5908new 5909for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 5910BERT, 5911EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 5912There 5913have been some ACPI 4.0 changes to other existing tables. Split the large 5914actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 5915 5916ACPI 4.0: Implemented predefined name validation for all new names. There 5917are 591831 new names in ACPI 4.0. The predefined validation module was split into 5919two 5920files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 5921 5922Implemented support for so-called "module-level executable code". This is 5923executable AML code that exists outside of any control method and is 5924intended 5925to be executed at table load time. Although illegal since ACPI 2.0, this 5926type 5927of code still exists and is apparently still being created. Blocks of 5928this 5929code are now detected and executed as intended. Currently, the code 5930blocks 5931must exist under either an If, Else, or While construct; these are the 5932typical cases seen in the field. ACPICA BZ 762. Lin Ming. 5933 5934Implemented an automatic dynamic repair for predefined names that return 5935nested Package objects. This applies to predefined names that are defined 5936to 5937return a variable-length Package of sub-packages. If the number of sub- 5938packages is one, BIOS code is occasionally seen that creates a simple 5939single 5940package with no sub-packages. This code attempts to fix the problem by 5941wrapping a new package object around the existing package. These methods 5942can 5943be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA 5944BZ 5945790. 5946 5947Fixed a regression introduced in 20090625 for the AcpiGetDevices 5948interface. 5949The _HID/_CID matching was broken and no longer matched IDs correctly. 5950ACPICA 5951BZ 793. 5952 5953Fixed a problem with AcpiReset where the reset would silently fail if the 5954register was one of the protected I/O ports. AcpiReset now bypasses the 5955port 5956validation mechanism. This may eventually be driven into the 5957AcpiRead/Write 5958interfaces. 5959 5960Fixed a regression related to the recent update of the AcpiRead/Write 5961interfaces. A sleep/suspend could fail if the optional PM2 Control 5962register 5963does not exist during an attempt to write the Bus Master Arbitration bit. 5964(However, some hosts already delete the code that writes this bit, and 5965the 5966code may in fact be obsolete at this date.) ACPICA BZ 799. 5967 5968Fixed a problem where AcpiTerminate could fault if inadvertently called 5969twice 5970in succession. ACPICA BZ 795. 5971 5972Example Code and Data Size: These are the sizes for the OS-independent 5973acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5974debug version of the code includes the debug output trace mechanism and 5975has a 5976much larger code and data size. 5977 5978 Previous Release: 5979 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 5980 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 5981 Current Release: 5982 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 5983 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 5984 59852) iASL Compiler/Disassembler and Tools: 5986 5987ACPI 4.0: Implemented disassembler support for all new ACPI tables and 5988changes to existing tables. ACPICA BZ 775. 5989 5990---------------------------------------- 599125 June 2009. Summary of changes for version 20090625: 5992 5993The ACPI 4.0 Specification was released on June 16 and is available at 5994www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 5995continue for the next few releases. 5996 59971) ACPI CA Core Subsystem: 5998 5999ACPI 4.0: Implemented interpreter support for the IPMI operation region 6000address space. Includes support for bi-directional data buffers and an 6001IPMI 6002address space handler (to be installed by an IPMI device driver.) ACPICA 6003BZ 6004773. Lin Ming. 6005 6006ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. 6007Includes 6008support in both the header files and the disassembler. 6009 6010Completed a major update for the AcpiGetObjectInfo external interface. 6011Changes include: 6012 - Support for variable, unlimited length HID, UID, and CID strings. 6013 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 6014etc.) 6015 - Call the _SxW power methods on behalf of a device object. 6016 - Determine if a device is a PCI root bridge. 6017 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 6018These changes will require an update to all callers of this interface. 6019See 6020the updated ACPICA Programmer Reference for details. One new source file 6021has 6022been added - utilities/utids.c. ACPICA BZ 368, 780. 6023 6024Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 6025transfers. The Value parameter has been extended from 32 bits to 64 bits 6026in 6027order to support new ACPI 4.0 tables. These changes will require an 6028update 6029to 6030all callers of these interfaces. See the ACPICA Programmer Reference for 6031details. ACPICA BZ 768. 6032 6033Fixed several problems with AcpiAttachData. The handler was not invoked 6034when 6035the host node was deleted. The data sub-object was not automatically 6036deleted 6037when the host node was deleted. The interface to the handler had an 6038unused 6039parameter, this was removed. ACPICA BZ 778. 6040 6041Enhanced the function that dumps ACPI table headers. All non-printable 6042characters in the string fields are now replaced with '?' (Signature, 6043OemId, 6044OemTableId, and CompilerId.) ACPI tables with non-printable characters in 6045these fields are occasionally seen in the field. ACPICA BZ 788. 6046 6047Fixed a problem with predefined method repair code where the code that 6048attempts to repair/convert an object of incorrect type is only executed 6049on 6050the first time the predefined method is called. The mechanism that 6051disables 6052warnings on subsequent calls was interfering with the repair mechanism. 6053ACPICA BZ 781. 6054 6055Fixed a possible memory leak in the predefined validation/repair code 6056when 6057a 6058buffer is automatically converted to an expected string object. 6059 6060Removed obsolete 16-bit files from the distribution and from the current 6061git 6062tree head. ACPICA BZ 776. 6063 6064Example Code and Data Size: These are the sizes for the OS-independent 6065acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6066debug version of the code includes the debug output trace mechanism and 6067has a 6068much larger code and data size. 6069 6070 Previous Release: 6071 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 6072 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 6073 Current Release: 6074 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 6075 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 6076 60772) iASL Compiler/Disassembler and Tools: 6078 6079ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 6080operation region keyword. ACPICA BZ 771, 772. Lin Ming. 6081 6082ACPI 4.0: iASL - implemented compile-time validation support for all new 6083predefined names and control methods (31 total). ACPICA BZ 769. 6084 6085---------------------------------------- 608621 May 2009. Summary of changes for version 20090521: 6087 60881) ACPI CA Core Subsystem: 6089 6090Disabled the preservation of the SCI enable bit in the PM1 control 6091register. 6092The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification 6093to 6094be 6095a "preserved" bit - "OSPM always preserves this bit position", section 60964.7.3.2.1. However, some machines fail if this bit is in fact preserved 6097because the bit needs to be explicitly set by the OS as a workaround. No 6098machines fail if the bit is not preserved. Therefore, ACPICA no longer 6099attempts to preserve this bit. 6100 6101Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 6102incorrectly formed _PRT package could cause a fault. Added validation to 6103ensure that each package element is actually a sub-package. 6104 6105Implemented a new interface to install or override a single control 6106method, 6107AcpiInstallMethod. This interface is useful when debugging in order to 6108repair 6109an existing method or to install a missing method without having to 6110override 6111the entire ACPI table. See the ACPICA Programmer Reference for use and 6112examples. Lin Ming, Bob Moore. 6113 6114Fixed several reference count issues with the DdbHandle object that is 6115created from a Load or LoadTable operator. Prevent premature deletion of 6116the 6117object. Also, mark the object as invalid once the table has been 6118unloaded. 6119This is needed because the handle itself may not be deleted after the 6120table 6121unload, depending on whether it has been stored in a named object by the 6122caller. Lin Ming. 6123 6124Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 6125mutexes of the same sync level are acquired but then not released in 6126strict 6127opposite order, the internally maintained Current Sync Level becomes 6128confused 6129and can cause subsequent execution errors. ACPICA BZ 471. 6130 6131Changed the allowable release order for ASL mutex objects. The ACPI 4.0 6132specification has been changed to make the SyncLevel for mutex objects 6133more 6134useful. When releasing a mutex, the SyncLevel of the mutex must now be 6135the 6136same as the current sync level. This makes more sense than the previous 6137rule 6138(SyncLevel less than or equal). This change updates the code to match the 6139specification. 6140 6141Fixed a problem with the local version of the AcpiOsPurgeCache function. 6142The 6143(local) cache must be locked during all cache object deletions. Andrew 6144Baumann. 6145 6146Updated the Load operator to use operation region interfaces. This 6147replaces 6148direct memory mapping with region access calls. Now, all region accesses 6149go 6150through the installed region handler as they should. 6151 6152Simplified and optimized the NsGetNextNode function. Reduced parameter 6153count 6154and reduced code for this frequently used function. 6155 6156Example Code and Data Size: These are the sizes for the OS-independent 6157acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6158debug version of the code includes the debug output trace mechanism and 6159has a 6160much larger code and data size. 6161 6162 Previous Release: 6163 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 6164 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 6165 Current Release: 6166 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 6167 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 6168 61692) iASL Compiler/Disassembler and Tools: 6170 6171Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 6172problems 6173with sub-table disassembly and handling invalid sub-tables. Attempt 6174recovery 6175after an invalid sub-table ID. 6176 6177---------------------------------------- 617822 April 2009. Summary of changes for version 20090422: 6179 61801) ACPI CA Core Subsystem: 6181 6182Fixed a compatibility issue with the recently released I/O port 6183protection 6184mechanism. For windows compatibility, 1) On a port protection violation, 6185simply ignore the request and do not return an exception (allow the 6186control 6187method to continue execution.) 2) If only part of the request overlaps a 6188protected port, read/write the individual ports that are not protected. 6189Linux 6190BZ 13036. Lin Ming 6191 6192Enhanced the execution of the ASL/AML BreakPoint operator so that it 6193actually 6194breaks into the AML debugger if the debugger is present. This matches the 6195ACPI-defined behavior. 6196 6197Fixed several possible warnings related to the use of the configurable 6198ACPI_THREAD_ID. This type can now be configured as either an integer or a 6199pointer with no warnings. Also fixes several warnings in printf-like 6200statements for the 64-bit build when the type is configured as a pointer. 6201ACPICA BZ 766, 767. 6202 6203Fixed a number of possible warnings when compiling with gcc 4+ (depending 6204on 6205warning options.) Examples include printf formats, aliasing, unused 6206globals, 6207missing prototypes, missing switch default statements, use of non-ANSI 6208library functions, use of non-ANSI constructs. See generate/unix/Makefile 6209for 6210a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 6211 6212Example Code and Data Size: These are the sizes for the OS-independent 6213acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6214debug version of the code includes the debug output trace mechanism and 6215has a 6216much larger code and data size. 6217 6218 Previous Release: 6219 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 6220 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 6221 Current Release: 6222 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 6223 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 6224 62252) iASL Compiler/Disassembler and Tools: 6226 6227iASL: Fixed a generation warning from Bison 2.3 and fixed several 6228warnings 6229on 6230the 64-bit build. 6231 6232iASL: Fixed a problem where the Unix/Linux versions of the compiler could 6233not 6234correctly digest Windows/DOS formatted files (with CR/LF). 6235 6236iASL: Added a new option for "quiet mode" (-va) that produces only the 6237compilation summary, not individual errors and warnings. Useful for large 6238batch compilations. 6239 6240AcpiExec: Implemented a new option (-z) to enable a forced 6241semaphore/mutex 6242timeout that can be used to detect hang conditions during execution of 6243AML 6244code (includes both internal semaphores and AML-defined mutexes and 6245events.) 6246 6247Added new makefiles for the generation of acpica in a generic unix-like 6248environment. These makefiles are intended to generate the acpica tools 6249and 6250utilities from the original acpica git source tree structure. 6251 6252Test Suites: Updated and cleaned up the documentation files. Updated the 6253copyrights to 2009, affecting all source files. Use the new version of 6254iASL 6255with quiet mode. Increased the number of available semaphores in the 6256Windows 6257OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 6258added 6259an alternate implementation of the semaphore timeout to allow aslts to 6260execute fully on Cygwin. 6261 6262---------------------------------------- 626320 March 2009. Summary of changes for version 20090320: 6264 62651) ACPI CA Core Subsystem: 6266 6267Fixed a possible race condition between AcpiWalkNamespace and dynamic 6268table 6269unloads. Added a reader/writer locking mechanism to allow multiple 6270concurrent 6271namespace walks (readers), but block a dynamic table unload until it can 6272gain 6273exclusive write access to the namespace. This fixes a problem where a 6274table 6275unload could (possibly catastrophically) delete the portion of the 6276namespace 6277that is currently being examined by a walk. Adds a new file, utlock.c, 6278that 6279implements the reader/writer lock mechanism. ACPICA BZ 749. 6280 6281Fixed a regression introduced in version 20090220 where a change to the 6282FADT 6283handling could cause the ACPICA subsystem to access non-existent I/O 6284ports. 6285 6286Modified the handling of FADT register and table (FACS/DSDT) addresses. 6287The 6288FADT can contain both 32-bit and 64-bit versions of these addresses. 6289Previously, the 64-bit versions were favored, meaning that if both 32 and 629064 6291versions were valid, but not equal, the 64-bit version was used. This was 6292found to cause some machines to fail. Now, in this case, the 32-bit 6293version 6294is used instead. This now matches the Windows behavior. 6295 6296Implemented a new mechanism to protect certain I/O ports. Provides 6297Microsoft 6298compatibility and protects the standard PC I/O ports from access via AML 6299code. Adds a new file, hwvalid.c 6300 6301Fixed a possible extraneous warning message from the FADT support. The 6302message warns of a 32/64 length mismatch between the legacy and GAS 6303definitions for a register. 6304 6305Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 6306is 6307made obsolete by the port protection mechanism above. It was previously 6308used 6309to validate the entire address range of an operation region, which could 6310be 6311incorrect if the range included illegal ports, but fields within the 6312operation region did not actually access those ports. Validation is now 6313performed on a per-field basis instead of the entire region. 6314 6315Modified the handling of the PM1 Status Register ignored bit (bit 11.) 6316Ignored bits must be "preserved" according to the ACPI spec. Usually, 6317this 6318means a read/modify/write when writing to the register. However, for 6319status 6320registers, writing a one means clear the event. Writing a zero means 6321preserve 6322the event (do not clear.) This behavior is clarified in the ACPI 4.0 6323spec, 6324and the ACPICA code now simply always writes a zero to the ignored bit. 6325 6326Modified the handling of ignored bits for the PM1 A/B Control Registers. 6327As 6328per the ACPI specification, for the control registers, preserve 6329(read/modify/write) all bits that are defined as either reserved or 6330ignored. 6331 6332Updated the handling of write-only bits in the PM1 A/B Control Registers. 6333When reading the register, zero the write-only bits as per the ACPI spec. 6334ACPICA BZ 443. Lin Ming. 6335 6336Removed "Linux" from the list of supported _OSI strings. Linux no longer 6337wants to reply true to this request. The Windows strings are the only 6338paths 6339through the AML that are tested and known to work properly. 6340 6341 Previous Release: 6342 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 6343 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 6344 Current Release: 6345 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 6346 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 6347 63482) iASL Compiler/Disassembler and Tools: 6349 6350Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 6351and 6352aetables.c 6353 6354---------------------------------------- 635520 February 2009. Summary of changes for version 20090220: 6356 63571) ACPI CA Core Subsystem: 6358 6359Optimized the ACPI register locking. Removed locking for reads from the 6360ACPI 6361bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock 6362is 6363not required when reading the single-bit registers. The 6364AcpiGetRegisterUnlocked function is no longer needed and has been 6365removed. 6366This will improve performance for reads on these registers. ACPICA BZ 6367760. 6368 6369Fixed the parameter validation for AcpiRead/Write. Now return 6370AE_BAD_PARAMETER if the input register pointer is null, and 6371AE_BAD_ADDRESS 6372if 6373the register has an address of zero. Previously, these cases simply 6374returned 6375AE_OK. For optional registers such as PM1B status/enable/control, the 6376caller 6377should check for a valid register address before calling. ACPICA BZ 748. 6378 6379Renamed the external ACPI bit register access functions. Renamed 6380AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 6381functions. The new names are AcpiReadBitRegister and 6382AcpiWriteBitRegister. 6383Also, restructured the code for these functions by simplifying the code 6384path 6385and condensing duplicate code to reduce code size. 6386 6387Added new functions to transparently handle the possibly split PM1 A/B 6388registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two 6389functions 6390now handle the split registers for PM1 Status, Enable, and Control. 6391ACPICA 6392BZ 6393746. 6394 6395Added a function to handle the PM1 control registers, 6396AcpiHwWritePm1Control. 6397This function writes both of the PM1 control registers (A/B). These 6398registers 6399are different than the PM1 A/B status and enable registers in that 6400different 6401values can be written to the A/B registers. Most notably, the SLP_TYP 6402bits 6403can be different, as per the values returned from the _Sx predefined 6404methods. 6405 6406Removed an extra register write within AcpiHwClearAcpiStatus. This 6407function 6408was writing an optional PM1B status register twice. The existing call to 6409the 6410low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 6411A/B 6412register. ACPICA BZ 751. 6413 6414Split out the PM1 Status registers from the FADT. Added new globals for 6415these 6416registers (A/B), similar to the way the PM1 Enable registers are handled. 6417Instead of overloading the FADT Event Register blocks. This makes the 6418code 6419clearer and less prone to error. 6420 6421Fixed the warning message for when the platform contains too many ACPI 6422tables 6423for the default size of the global root table data structure. The 6424calculation 6425for the truncation value was incorrect. 6426 6427Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 6428obsolete macro, since it is now a simple reference to ->common.type. 6429There 6430were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 6431 6432Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 6433TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 6434simply SLEEP_TYPE. ACPICA BZ 754. 6435 6436Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 6437function is only needed on 64-bit host operating systems and is thus not 6438included for 32-bit hosts. 6439 6440Debug output: print the input and result for invocations of the _OSI 6441reserved 6442control method via the ACPI_LV_INFO debug level. Also, reduced some of 6443the 6444verbosity of this debug level. Len Brown. 6445 6446Example Code and Data Size: These are the sizes for the OS-independent 6447acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6448debug version of the code includes the debug output trace mechanism and 6449has a 6450much larger code and data size. 6451 6452 Previous Release: 6453 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 6454 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 6455 Current Release: 6456 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 6457 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 6458 64592) iASL Compiler/Disassembler and Tools: 6460 6461Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 6462various legal performance profiles. 6463 6464---------------------------------------- 646523 January 2009. Summary of changes for version 20090123: 6466 64671) ACPI CA Core Subsystem: 6468 6469Added the 2009 copyright to all module headers and signons. This affects 6470virtually every file in the ACPICA core subsystem, the iASL compiler, and 6471the tools/utilities. 6472 6473Implemented a change to allow the host to override any ACPI table, 6474including 6475dynamically loaded tables. Previously, only the DSDT could be replaced by 6476the 6477host. With this change, the AcpiOsTableOverride interface is called for 6478each 6479table found in the RSDT/XSDT during ACPICA initialization, and also 6480whenever 6481a table is dynamically loaded via the AML Load operator. 6482 6483Updated FADT flag definitions, especially the Boot Architecture flags. 6484 6485Debugger: For the Find command, automatically pad the input ACPI name 6486with 6487underscores if the name is shorter than 4 characters. This enables a 6488match 6489with the actual namespace entry which is itself padded with underscores. 6490 6491Example Code and Data Size: These are the sizes for the OS-independent 6492acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6493debug version of the code includes the debug output trace mechanism and 6494has a 6495much larger code and data size. 6496 6497 Previous Release: 6498 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 6499 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 6500 Current Release: 6501 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 6502 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 6503 65042) iASL Compiler/Disassembler and Tools: 6505 6506Fix build error under Bison-2.4. 6507 6508Dissasembler: Enhanced FADT support. Added decoding of the Boot 6509Architecture 6510flags. Now decode all flags, regardless of the FADT version. Flag output 6511includes the FADT version which first defined each flag. 6512 6513The iASL -g option now dumps the RSDT to a file (in addition to the FADT 6514and 6515DSDT). Windows only. 6516 6517---------------------------------------- 651804 December 2008. Summary of changes for version 20081204: 6519 65201) ACPI CA Core Subsystem: 6521 6522The ACPICA Programmer Reference has been completely updated and revamped 6523for 6524this release. This includes updates to the external interfaces, OSL 6525interfaces, the overview sections, and the debugger reference. 6526 6527Several new ACPICA interfaces have been implemented and documented in the 6528programmer reference: 6529AcpiReset - Writes the reset value to the FADT-defined reset register. 6530AcpiDisableAllGpes - Disable all available GPEs. 6531AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 6532AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 6533AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 6534AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 6535AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 6536 6537Most of the public ACPI hardware-related interfaces have been moved to a 6538new 6539file, components/hardware/hwxface.c 6540 6541Enhanced the FADT parsing and low-level ACPI register access: The ACPI 6542register lengths within the FADT are now used, and the low level ACPI 6543register access no longer hardcodes the ACPI register lengths. Given that 6544there may be some risk in actually trusting the FADT register lengths, a 6545run- 6546time option was added to fall back to the default hardcoded lengths if 6547the 6548FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 6549option is set to true for now, and a warning is issued if a suspicious 6550FADT 6551register length is overridden with the default value. 6552 6553Fixed a reference count issue in NsRepairObject. This problem was 6554introduced 6555in version 20081031 as part of a fix to repair Buffer objects within 6556Packages. Lin Ming. 6557 6558Added semaphore support to the Linux/Unix application OS-services layer 6559(OSL). ACPICA BZ 448. Lin Ming. 6560 6561Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 6562will 6563be implemented in the OSL, or will binary semaphores be used instead. 6564 6565Example Code and Data Size: These are the sizes for the OS-independent 6566acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6567debug version of the code includes the debug output trace mechanism and 6568has a 6569much larger code and data size. 6570 6571 Previous Release: 6572 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 6573 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 6574 Current Release: 6575 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 6576 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 6577 65782) iASL Compiler/Disassembler and Tools: 6579 6580iASL: Completed the '-e' option to include additional ACPI tables in 6581order 6582to 6583aid with disassembly and External statement generation. ACPICA BZ 742. 6584Lin 6585Ming. 6586 6587iASL: Removed the "named object in while loop" error. The compiler cannot 6588determine how many times a loop will execute. ACPICA BZ 730. 6589 6590Disassembler: Implemented support for FADT revision 2 (MS extension). 6591ACPICA 6592BZ 743. 6593 6594Disassembler: Updates for several ACPI data tables (HEST, EINJ, and 6595MCFG). 6596 6597---------------------------------------- 659831 October 2008. Summary of changes for version 20081031: 6599 66001) ACPI CA Core Subsystem: 6601 6602Restructured the ACPICA header files into public/private. acpi.h now 6603includes 6604only the "public" acpica headers. All other acpica headers are "private" 6605and 6606should not be included by acpica users. One new file, accommon.h is used 6607to 6608include the commonly used private headers for acpica code generation. 6609Future 6610plans include moving all private headers to a new subdirectory. 6611 6612Implemented an automatic Buffer->String return value conversion for 6613predefined ACPI methods. For these methods (such as _BIF), added 6614automatic 6615conversion for return objects that are required to be a String, but a 6616Buffer 6617was found instead. This can happen when reading string battery data from 6618an 6619operation region, because it used to be difficult to convert the data 6620from 6621buffer to string from within the ASL. Ensures that the host OS is 6622provided 6623with a valid null-terminated string. Linux BZ 11822. 6624 6625Updated the FACS waking vector interfaces. Split 6626AcpiSetFirmwareWakingVector 6627into two: one for the 32-bit vector, another for the 64-bit vector. This 6628is 6629required because the host OS must setup the wake much differently for 6630each 6631vector (real vs. protected mode, etc.) and the interface itself should 6632not 6633be 6634deciding which vector to use. Also, eliminated the 6635GetFirmwareWakingVector 6636interface, as it served no purpose (only the firmware reads the vector, 6637OS 6638only writes the vector.) ACPICA BZ 731. 6639 6640Implemented a mechanism to escape infinite AML While() loops. Added a 6641loop 6642counter to force exit from AML While loops if the count becomes too 6643large. 6644This can occur in poorly written AML when the hardware does not respond 6645within a while loop and the loop does not implement a timeout. The 6646maximum 6647loop count is configurable. A new exception code is returned when a loop 6648is 6649broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 6650 6651Optimized the execution of AML While loops. Previously, a control state 6652object was allocated and freed for each execution of the loop. The 6653optimization is to simply reuse the control state for each iteration. 6654This 6655speeds up the raw loop execution time by about 5%. 6656 6657Enhanced the implicit return mechanism. For Windows compatibility, return 6658an 6659implicit integer of value zero for methods that contain no executable 6660code. 6661Such methods are seen in the field as stubs (presumably), and can cause 6662drivers to fail if they expect a return value. Lin Ming. 6663 6664Allow multiple backslashes as root prefixes in namepaths. In a fully 6665qualified namepath, allow multiple backslash prefixes. This can happen 6666(and 6667is seen in the field) because of the use of a double-backslash in strings 6668(since backslash is the escape character) causing confusion. ACPICA BZ 6669739 6670Lin Ming. 6671 6672Emit a warning if two different FACS or DSDT tables are discovered in the 6673FADT. Checks if there are two valid but different addresses for the FACS 6674and 6675DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 6676 6677Consolidated the method argument count validation code. Merged the code 6678that 6679validates control method argument counts into the predefined validation 6680module. Eliminates possible multiple warnings for incorrect argument 6681counts. 6682 6683Implemented ACPICA example code. Includes code for ACPICA initialization, 6684handler installation, and calling a control method. Available at 6685source/tools/examples. 6686 6687Added a global pointer for FACS table to simplify internal FACS access. 6688Use 6689the global pointer instead of using AcpiGetTableByIndex for each FACS 6690access. 6691This simplifies the code for the Global Lock and the Firmware Waking 6692Vector(s). 6693 6694Example Code and Data Size: These are the sizes for the OS-independent 6695acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6696debug version of the code includes the debug output trace mechanism and 6697has a 6698much larger code and data size. 6699 6700 Previous Release: 6701 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 6702 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 6703 Current Release: 6704 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 6705 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 6706 67072) iASL Compiler/Disassembler and Tools: 6708 6709iASL: Improved disassembly of external method calls. Added the -e option 6710to 6711allow the inclusion of additional ACPI tables to help with the 6712disassembly 6713of 6714method invocations and the generation of external declarations during the 6715disassembly. Certain external method invocations cannot be disassembled 6716properly without the actual declaration of the method. Use the -e option 6717to 6718include the table where the external method(s) are actually declared. 6719Most 6720useful for disassembling SSDTs that make method calls back to the master 6721DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 6722-d 6723-e dsdt.aml ssdt1.aml 6724 6725iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 6726problem where the use of an alias within a namepath would result in a not 6727found error or cause the compiler to fault. Also now allows forward 6728references from the Alias operator itself. ACPICA BZ 738. 6729 6730---------------------------------------- 673126 September 2008. Summary of changes for version 20080926: 6732 67331) ACPI CA Core Subsystem: 6734 6735Designed and implemented a mechanism to validate predefined ACPI methods 6736and 6737objects. This code validates the predefined ACPI objects (objects whose 6738names 6739start with underscore) that appear in the namespace, at the time they are 6740evaluated. The argument count and the type of the returned object are 6741validated against the ACPI specification. The purpose of this validation 6742is 6743to detect problems with the BIOS-implemented predefined ACPI objects 6744before 6745the results are returned to the ACPI-related drivers. Future enhancements 6746may 6747include actual repair of incorrect return objects where possible. Two new 6748files are nspredef.c and acpredef.h. 6749 6750Fixed a fault in the AML parser if a memory allocation fails during the 6751Op 6752completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 6753 6754Fixed an issue with implicit return compatibility. This change improves 6755the 6756implicit return mechanism to be more compatible with the MS interpreter. 6757Lin 6758Ming, ACPICA BZ 349. 6759 6760Implemented support for zero-length buffer-to-string conversions. Allow 6761zero 6762length strings during interpreter buffer-to-string conversions. For 6763example, 6764during the ToDecimalString and ToHexString operators, as well as implicit 6765conversions. Fiodor Suietov, ACPICA BZ 585. 6766 6767Fixed two possible memory leaks in the error exit paths of 6768AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions 6769are 6770similar in that they use a stack of state objects in order to eliminate 6771recursion. The stack must be fully unwound and deallocated if an error 6772occurs. Lin Ming. ACPICA BZ 383. 6773 6774Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 6775global 6776ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 6777Moore ACPICA BZ 442. 6778 6779Removed the obsolete version number in module headers. Removed the 6780"$Revision" number that appeared in each module header. This version 6781number 6782was useful under SourceSafe and CVS, but has no meaning under git. It is 6783not 6784only incorrect, it could also be misleading. 6785 6786Example Code and Data Size: These are the sizes for the OS-independent 6787acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6788debug version of the code includes the debug output trace mechanism and 6789has a 6790much larger code and data size. 6791 6792 Previous Release: 6793 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 6794 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 6795 Current Release: 6796 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 6797 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 6798 6799---------------------------------------- 680029 August 2008. Summary of changes for version 20080829: 6801 68021) ACPI CA Core Subsystem: 6803 6804Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 6805Reference. Changes include the elimination of cheating on the Object 6806field 6807for the DdbHandle subtype, addition of a reference class field to 6808differentiate the various reference types (instead of an AML opcode), and 6809the 6810cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 6811 6812Reduce an error to a warning for an incorrect method argument count. 6813Previously aborted with an error if too few arguments were passed to a 6814control method via the external ACPICA interface. Now issue a warning 6815instead 6816and continue. Handles the case where the method inadvertently declares 6817too 6818many arguments, but does not actually use the extra ones. Applies mainly 6819to 6820the predefined methods. Lin Ming. Linux BZ 11032. 6821 6822Disallow the evaluation of named object types with no intrinsic value. 6823Return 6824AE_TYPE for objects that have no value and therefore evaluation is 6825undefined: 6826Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 6827of 6828these types were allowed, but an exception would be generated at some 6829point 6830during the evaluation. Now, the error is generated up front. 6831 6832Fixed a possible memory leak in the AcpiNsGetExternalPathname function 6833(nsnames.c). Fixes a leak in the error exit path. 6834 6835Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 6836debug 6837levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 6838ACPI_EXCEPTION 6839interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 6840ACPI_LV_EVENTS. 6841 6842Removed obsolete and/or unused exception codes from the acexcep.h header. 6843There is the possibility that certain device drivers may be affected if 6844they 6845use any of these exceptions. 6846 6847The ACPICA documentation has been added to the public git source tree, 6848under 6849acpica/documents. Included are the ACPICA programmer reference, the iASL 6850compiler reference, and the changes.txt release logfile. 6851 6852Example Code and Data Size: These are the sizes for the OS-independent 6853acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6854debug version of the code includes the debug output trace mechanism and 6855has a 6856much larger code and data size. 6857 6858 Previous Release: 6859 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 6860 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 6861 Current Release: 6862 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 6863 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 6864 68652) iASL Compiler/Disassembler and Tools: 6866 6867Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 6868defines _SCP with 3 arguments. Previous versions defined it with only 1 6869argument. iASL now allows both definitions. 6870 6871iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for 6872zero- 6873length subtables when disassembling ACPI tables. Also fixed a couple of 6874errors where a full 16-bit table type field was not extracted from the 6875input 6876properly. 6877 6878acpisrc: Improve comment counting mechanism for generating source code 6879statistics. Count first and last lines of multi-line comments as 6880whitespace, 6881not comment lines. Handle Linux legal header in addition to standard 6882acpica 6883header. 6884 6885---------------------------------------- 6886 688729 July 2008. Summary of changes for version 20080729: 6888 68891) ACPI CA Core Subsystem: 6890 6891Fix a possible deadlock in the GPE dispatch. Remove call to 6892AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 6893attempt 6894to acquire the GPE lock but can deadlock since the GPE lock is already 6895held 6896at dispatch time. This code was introduced in version 20060831 as a 6897response 6898to Linux BZ 6881 and has since been removed from Linux. 6899 6900Add a function to dereference returned reference objects. Examines the 6901return 6902object from a call to AcpiEvaluateObject. Any Index or RefOf references 6903are 6904automatically dereferenced in an attempt to return something useful 6905(these 6906reference types cannot be converted into an external ACPI_OBJECT.) 6907Provides 6908MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 6909 6910x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 6911subtables for the MADT and one new subtable for the SRAT. Includes 6912disassembler and AcpiSrc support. Data from the Intel 64 Architecture 6913x2APIC 6914Specification, June 2008. 6915 6916Additional error checking for pathname utilities. Add error check after 6917all 6918calls to AcpiNsGetPathnameLength. Add status return from 6919AcpiNsBuildExternalPath and check after all calls. Add parameter 6920validation 6921to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 6922 6923Return status from the global init function AcpiUtGlobalInitialize. This 6924is 6925used by both the kernel subsystem and the utilities such as iASL 6926compiler. 6927The function could possibly fail when the caches are initialized. Yang 6928Yi. 6929 6930Add a function to decode reference object types to strings. Created for 6931improved error messages. 6932 6933Improve object conversion error messages. Better error messages during 6934object 6935conversion from internal to the external ACPI_OBJECT. Used for external 6936calls 6937to AcpiEvaluateObject. 6938 6939Example Code and Data Size: These are the sizes for the OS-independent 6940acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6941debug version of the code includes the debug output trace mechanism and 6942has a 6943much larger code and data size. 6944 6945 Previous Release: 6946 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 6947 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 6948 Current Release: 6949 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 6950 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 6951 69522) iASL Compiler/Disassembler and Tools: 6953 6954Debugger: fix a possible hang when evaluating non-methods. Fixes a 6955problem 6956introduced in version 20080701. If the object being evaluated (via 6957execute 6958command) is not a method, the debugger can hang while trying to obtain 6959non- 6960existent parameters. 6961 6962iASL: relax error for using reserved "_T_x" identifiers. These names can 6963appear in a disassembled ASL file if they were emitted by the original 6964compiler. Instead of issuing an error or warning and forcing the user to 6965manually change these names, issue a remark instead. 6966 6967iASL: error if named object created in while loop. Emit an error if any 6968named 6969object is created within a While loop. If allowed, this code will 6970generate 6971a 6972run-time error on the second iteration of the loop when an attempt is 6973made 6974to 6975create the same named object twice. ACPICA bugzilla 730. 6976 6977iASL: Support absolute pathnames for include files. Add support for 6978absolute 6979pathnames within the Include operator. previously, only relative 6980pathnames 6981were supported. 6982 6983iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 6984Descriptor. 6985The ACPI spec requires one interrupt minimum. BZ 423 6986 6987iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 6988Handles the case for the Interrupt Resource Descriptor where 6989the ResourceSource argument is omitted but ResourceSourceIndex 6990is present. Now leave room for the Index. BZ 426 6991 6992iASL: Prevent error message if CondRefOf target does not exist. Fixes 6993cases 6994where an error message is emitted if the target does not exist. BZ 516 6995 6996iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 6997(get ACPI tables on Windows). This was apparently broken in version 699820070919. 6999 7000AcpiXtract: Handle EOF while extracting data. Correctly handle the case 7001where 7002the EOF happens immediately after the last table in the input file. Print 7003completion message. Previously, no message was displayed in this case. 7004 7005---------------------------------------- 700601 July 2008. Summary of changes for version 20080701: 7007 70080) Git source tree / acpica.org 7009 7010Fixed a problem where a git-clone from http would not transfer the entire 7011source tree. 7012 70131) ACPI CA Core Subsystem: 7014 7015Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 7016enable bit. Now performs a read-change-write of the enable register 7017instead 7018of simply writing out the cached enable mask. This will prevent 7019inadvertent 7020enabling of GPEs if a rogue GPE is received during initialization (before 7021GPE 7022handlers are installed.) 7023 7024Implemented a copy for dynamically loaded tables. Previously, dynamically 7025loaded tables were simply mapped - but on some machines this memory is 7026corrupted after suspend. Now copy the table to a local buffer. For the 7027OpRegion case, added checksum verify. Use the table length from the table 7028header, not the region length. For the Buffer case, use the table length 7029also. Dennis Noordsij, Bob Moore. BZ 10734 7030 7031Fixed a problem where the same ACPI table could not be dynamically loaded 7032and 7033unloaded more than once. Without this change, a table cannot be loaded 7034again 7035once it has been loaded/unloaded one time. The current mechanism does not 7036unregister a table upon an unload. During a load, if the same table is 7037found, 7038this no longer returns an exception. BZ 722 7039 7040Fixed a problem where the wrong descriptor length was calculated for the 7041EndTag descriptor in 64-bit mode. The "minimal" descriptors such as 7042EndTag 7043are calculated as 12 bytes long, but the actual length in the internal 7044descriptor is 16 because of the round-up to 8 on the 64-bit build. 7045Reported 7046by Linn Crosetto. BZ 728 7047 7048Fixed a possible memory leak in the Unload operator. The DdbHandle 7049returned 7050by Load() did not have its reference count decremented during unload, 7051leading 7052to a memory leak. Lin Ming. BZ 727 7053 7054Fixed a possible memory leak when deleting thermal/processor objects. Any 7055associated notify handlers (and objects) were not being deleted. Fiodor 7056Suietov. BZ 506 7057 7058Fixed the ordering of the ASCII names in the global mutex table to match 7059the 7060actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 7061only. 7062Vegard Nossum. BZ 726 7063 7064Enhanced the AcpiGetObjectInfo interface to return the number of required 7065arguments if the object is a control method. Added this call to the 7066debugger 7067so the proper number of default arguments are passed to a method. This 7068prevents a warning when executing methods from AcpiExec. 7069 7070Added a check for an invalid handle in AcpiGetObjectInfo. Return 7071AE_BAD_PARAMETER if input handle is invalid. BZ 474 7072 7073Fixed an extraneous warning from exconfig.c on the 64-bit build. 7074 7075Example Code and Data Size: These are the sizes for the OS-independent 7076acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7077debug version of the code includes the debug output trace mechanism and 7078has a 7079much larger code and data size. 7080 7081 Previous Release: 7082 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 7083 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 7084 Current Release: 7085 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 7086 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 7087 70882) iASL Compiler/Disassembler and Tools: 7089 7090iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 7091resource descriptor names. 7092 7093iASL: Detect invalid ASCII characters in input (windows version). Removed 7094the 7095"-CF" flag from the flex compile, enables correct detection of non-ASCII 7096characters in the input. BZ 441 7097 7098iASL: Eliminate warning when result of LoadTable is not used. Eliminate 7099the 7100"result of operation not used" warning when the DDB handle returned from 7101LoadTable is not used. The warning is not needed. BZ 590 7102 7103AcpiExec: Add support for dynamic table load/unload. Now calls _CFG 7104method 7105to 7106pass address of table to the AML. Added option to disable OpRegion 7107simulation 7108to allow creation of an OpRegion with a real address that was passed to 7109_CFG. 7110All of this allows testing of the Load and Unload operators from 7111AcpiExec. 7112 7113Debugger: update tables command for unloaded tables. Handle unloaded 7114tables 7115and use the standard table header output routine. 7116 7117---------------------------------------- 711809 June 2008. Summary of changes for version 20080609: 7119 71201) ACPI CA Core Subsystem: 7121 7122Implemented a workaround for reversed _PRT entries. A significant number 7123of 7124BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 7125change dynamically detects and repairs this problem. Provides 7126compatibility 7127with MS ACPI. BZ 6859 7128 7129Simplified the internal ACPI hardware interfaces to eliminate the locking 7130flag parameter from Register Read/Write. Added a new external interface, 7131AcpiGetRegisterUnlocked. 7132 7133Fixed a problem where the invocation of a GPE control method could hang. 7134This 7135was a regression introduced in 20080514. The new method argument count 7136validation mechanism can enter an infinite loop when a GPE method is 7137dispatched. Problem fixed by removing the obsolete code that passed GPE 7138block 7139information to the notify handler via the control method parameter 7140pointer. 7141 7142Fixed a problem where the _SST execution status was incorrectly returned 7143to 7144the caller of AcpiEnterSleepStatePrep. This was a regression introduced 7145in 714620080514. _SST is optional and a NOT_FOUND exception should never be 7147returned. BZ 716 7148 7149Fixed a problem where a deleted object could be accessed from within the 7150AML 7151parser. This was a regression introduced in version 20080123 as a fix for 7152the 7153Unload operator. Lin Ming. BZ 10669 7154 7155Cleaned up the debug operand dump mechanism. Eliminated unnecessary 7156operands 7157and eliminated the use of a negative index in a loop. Operands are now 7158displayed in the correct order, not backwards. This also fixes a 7159regression 7160introduced in 20080514 on 64-bit systems where the elimination of 7161ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 7162715 7163 7164Fixed a possible memory leak in EvPciConfigRegionSetup where the error 7165exit 7166path did not delete a locally allocated structure. 7167 7168Updated definitions for the DMAR and SRAT tables to synchronize with the 7169current specifications. Includes disassembler support. 7170 7171Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 7172loop termination value was used. Loop terminated on iteration early, 7173missing 7174one mutex. Linn Crosetto 7175 7176Example Code and Data Size: These are the sizes for the OS-independent 7177acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7178debug version of the code includes the debug output trace mechanism and 7179has a 7180much larger code and data size. 7181 7182 Previous Release: 7183 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 7184 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 7185 Current Release: 7186 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 7187 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 7188 71892) iASL Compiler/Disassembler and Tools: 7190 7191Disassembler: Implemented support for EisaId() within _CID objects. Now 7192disassemble integer _CID objects back to EisaId invocations, including 7193multiple integers within _CID packages. Includes single-step support for 7194debugger also. 7195 7196Disassembler: Added support for DMAR and SRAT table definition changes. 7197 7198---------------------------------------- 719914 May 2008. Summary of changes for version 20080514: 7200 72011) ACPI CA Core Subsystem: 7202 7203Fixed a problem where GPEs were enabled too early during the ACPICA 7204initialization. This could lead to "handler not installed" errors on some 7205machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 7206This 7207ensures that all operation regions and devices throughout the namespace 7208have 7209been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 7210 7211Implemented a change to the enter sleep code. Moved execution of the _GTS 7212method to just before setting sleep enable bit. The execution was moved 7213from 7214AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 7215immediately before the SLP_EN bit is set, as per the ACPI specification. 7216Luming Yu, BZ 1653. 7217 7218Implemented a fix to disable unknown GPEs (2nd version). Now always 7219disable 7220the GPE, even if ACPICA thinks that that it is already disabled. It is 7221possible that the AML or some other code has enabled the GPE unbeknownst 7222to 7223the ACPICA code. 7224 7225Fixed a problem with the Field operator where zero-length fields would 7226return 7227an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 7228ASL 7229field declarations in Field(), BankField(), and IndexField(). BZ 10606. 7230 7231Implemented a fix for the Load operator, now load the table at the 7232namespace 7233root. This reverts a change introduced in version 20071019. The table is 7234now 7235loaded at the namespace root even though this goes against the ACPI 7236specification. This provides compatibility with other ACPI 7237implementations. 7238The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 7239Ming. 7240 7241Fixed a problem where ACPICA would not Load() tables with unusual 7242signatures. 7243Now ignore ACPI table signature for Load() operator. Only "SSDT" is 7244acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 7245Therefore, signature validation is worthless. Apparently MS ACPI accepts 7246such 7247signatures, ACPICA must be compatible. BZ 10454. 7248 7249Fixed a possible negative array index in AcpiUtValidateException. Added 7250NULL 7251fields to the exception string arrays to eliminate a -1 subtraction on 7252the 7253SubStatus field. 7254 7255Updated the debug tracking macros to reduce overall code and data size. 7256Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 7257instead of pointers to static strings. Jan Beulich and Bob Moore. 7258 7259Implemented argument count checking in control method invocation via 7260AcpiEvaluateObject. Now emit an error if too few arguments, warning if 7261too 7262many. This applies only to extern programmatic control method execution, 7263not 7264method-to-method calls within the AML. Lin Ming. 7265 7266Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 7267no 7268longer needed, especially with the removal of 16-bit support. It was 7269replaced 7270mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 7271bit 7272on 727332/64-bit platforms is required. 7274 7275Added the C const qualifier for appropriate string constants -- mostly 7276MODULE_NAME and printf format strings. Jan Beulich. 7277 7278Example Code and Data Size: These are the sizes for the OS-independent 7279acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7280debug version of the code includes the debug output trace mechanism and 7281has a 7282much larger code and data size. 7283 7284 Previous Release: 7285 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 7286 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 7287 Current Release: 7288 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 7289 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 7290 72912) iASL Compiler/Disassembler and Tools: 7292 7293Implemented ACPI table revision ID validation in the disassembler. Zero 7294is 7295always invalid. For DSDTs, the ID controls the interpreter integer width. 72961 7297means 32-bit and this is unusual. 2 or greater is 64-bit. 7298 7299---------------------------------------- 730021 March 2008. Summary of changes for version 20080321: 7301 73021) ACPI CA Core Subsystem: 7303 7304Implemented an additional change to the GPE support in order to suppress 7305spurious or stray GPEs. The AcpiEvDisableGpe function will now 7306permanently 7307disable incoming GPEs that are neither enabled nor disabled -- meaning 7308that 7309the GPE is unknown to the system. This should prevent future interrupt 7310floods 7311from that GPE. BZ 6217 (Zhang Rui) 7312 7313Fixed a problem where NULL package elements were not returned to the 7314AcpiEvaluateObject interface correctly. The element was simply ignored 7315instead of returning a NULL ACPI_OBJECT package element, potentially 7316causing 7317a buffer overflow and/or confusing the caller who expected a fixed number 7318of 7319elements. BZ 10132 (Lin Ming, Bob Moore) 7320 7321Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 7322Dword, 7323Qword), Field, BankField, and IndexField operators when invoked from 7324inside 7325an executing control method. In this case, these operators created 7326namespace 7327nodes that were incorrectly left marked as permanent nodes instead of 7328temporary nodes. This could cause a problem if there is race condition 7329between an exiting control method and a running namespace walk. (Reported 7330by 7331Linn Crosetto) 7332 7333Fixed a problem where the CreateField and CreateXXXField operators would 7334incorrectly allow duplicate names (the name of the field) with no 7335exception 7336generated. 7337 7338Implemented several changes for Notify handling. Added support for new 7339Notify 7340values (ACPI 2.0+) and improved the Notify debug output. Notify on 7341PowerResource objects is no longer allowed, as per the ACPI 7342specification. 7343(Bob Moore, Zhang Rui) 7344 7345All Reference Objects returned via the AcpiEvaluateObject interface are 7346now 7347marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 7348for 7349NULL objects - either NULL package elements or unresolved named 7350references. 7351 7352Fixed a problem where an extraneous debug message was produced for 7353package 7354objects (when debugging enabled). The message "Package List length larger 7355than NumElements count" is now produced in the correct case, and is now 7356an 7357error message rather than a debug message. Added a debug message for the 7358opposite case, where NumElements is larger than the Package List (the 7359package 7360will be padded out with NULL elements as per the ACPI spec.) 7361 7362Implemented several improvements for the output of the ASL "Debug" object 7363to 7364clarify and keep all data for a given object on one output line. 7365 7366Fixed two size calculation issues with the variable-length Start 7367Dependent 7368resource descriptor. 7369 7370Example Code and Data Size: These are the sizes for the OS-independent 7371acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7372debug version of the code includes the debug output trace mechanism and 7373has 7374a much larger code and data size. 7375 7376 Previous Release: 7377 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 7378 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 7379 Current Release: 7380 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 7381 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 7382 73832) iASL Compiler/Disassembler and Tools: 7384 7385Fixed a problem with the use of the Switch operator where execution of 7386the 7387containing method by multiple concurrent threads could cause an 7388AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 7389actual Switch opcode, it must be simulated with local named temporary 7390variables and if/else pairs. The solution chosen was to mark any method 7391that 7392uses Switch as Serialized, thus preventing multiple thread entries. BZ 7393469. 7394 7395---------------------------------------- 739613 February 2008. Summary of changes for version 20080213: 7397 73981) ACPI CA Core Subsystem: 7399 7400Implemented another MS compatibility design change for GPE/Notify 7401handling. 7402GPEs are now cleared/enabled asynchronously to allow all pending notifies 7403to 7404complete first. It is expected that the OSL will queue the enable request 7405behind all pending notify requests (may require changes to the local host 7406OSL 7407in AcpiOsExecute). Alexey Starikovskiy. 7408 7409Fixed a problem where buffer and package objects passed as arguments to a 7410control method via the external AcpiEvaluateObject interface could cause 7411an 7412AE_AML_INTERNAL exception depending on the order and type of operators 7413executed by the target control method. 7414 7415Fixed a problem where resource descriptor size optimization could cause a 7416problem when a _CRS resource template is passed to a _SRS method. The 7417_SRS 7418resource template must use the same descriptors (with the same size) as 7419returned from _CRS. This change affects the following resource 7420descriptors: 7421IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 74229487) 7423 7424Fixed a problem where a CopyObject to RegionField, BankField, and 7425IndexField 7426objects did not perform an implicit conversion as it should. These types 7427must 7428retain their initial type permanently as per the ACPI specification. 7429However, 7430a CopyObject to all other object types should not perform an implicit 7431conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 7432 7433Fixed a problem with the AcpiGetDevices interface where the mechanism to 7434match device CIDs did not examine the entire list of available CIDs, but 7435instead aborted on the first non-matching CID. Andrew Patterson. 7436 7437Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 7438was 7439inadvertently changed to return a 16-bit value instead of a 32-bit value, 7440truncating the upper dword of a 64-bit value. This macro is only used to 7441display debug output, so no incorrect calculations were made. Also, 7442reimplemented the macro so that a 64-bit shift is not performed by 7443inefficient compilers. 7444 7445Added missing va_end statements that should correspond with each va_start 7446statement. 7447 7448Example Code and Data Size: These are the sizes for the OS-independent 7449acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7450debug version of the code includes the debug output trace mechanism and 7451has 7452a much larger code and data size. 7453 7454 Previous Release: 7455 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 7456 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 7457 Current Release: 7458 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 7459 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 7460 74612) iASL Compiler/Disassembler and Tools: 7462 7463Implemented full disassembler support for the following new ACPI tables: 7464BERT, EINJ, and ERST. Implemented partial disassembler support for the 7465complicated HEST table. These tables support the Windows Hardware Error 7466Architecture (WHEA). 7467 7468---------------------------------------- 746923 January 2008. Summary of changes for version 20080123: 7470 74711) ACPI CA Core Subsystem: 7472 7473Added the 2008 copyright to all module headers and signons. This affects 7474virtually every file in the ACPICA core subsystem, the iASL compiler, and 7475the tools/utilities. 7476 7477Fixed a problem with the SizeOf operator when used with Package and 7478Buffer 7479objects. These objects have deferred execution for some arguments, and 7480the 7481execution is now completed before the SizeOf is executed. This problem 7482caused 7483unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 7484BZ 74859558 7486 7487Implemented an enhancement to the interpreter "slack mode". In the 7488absence 7489of 7490an explicit return or an implicitly returned object from the last 7491executed 7492opcode, a control method will now implicitly return an integer of value 0 7493for 7494Microsoft compatibility. (Lin Ming) BZ 392 7495 7496Fixed a problem with the Load operator where an exception was not 7497returned 7498in 7499the case where the table is already loaded. (Lin Ming) BZ 463 7500 7501Implemented support for the use of DDBHandles as an Indexed Reference, as 7502per 7503the ACPI spec. (Lin Ming) BZ 486 7504 7505Implemented support for UserTerm (Method invocation) for the Unload 7506operator 7507as per the ACPI spec. (Lin Ming) BZ 580 7508 7509Fixed a problem with the LoadTable operator where the OemId and 7510OemTableId 7511input strings could cause unexpected failures if they were shorter than 7512the 7513maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 7514 7515Implemented support for UserTerm (Method invocation) for the Unload 7516operator 7517as per the ACPI spec. (Lin Ming) BZ 580 7518 7519Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 7520HEST, 7521IBFT, UEFI, WDAT. Disassembler support is forthcoming. 7522 7523Example Code and Data Size: These are the sizes for the OS-independent 7524acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7525debug version of the code includes the debug output trace mechanism and 7526has 7527a much larger code and data size. 7528 7529 Previous Release: 7530 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 7531 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 7532 Current Release: 7533 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 7534 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 7535 75362) iASL Compiler/Disassembler and Tools: 7537 7538Implemented support in the disassembler for checksum validation on 7539incoming 7540binary DSDTs and SSDTs. If incorrect, a message is displayed within the 7541table 7542header dump at the start of the disassembly. 7543 7544Implemented additional debugging information in the namespace listing 7545file 7546created during compilation. In addition to the namespace hierarchy, the 7547full 7548pathname to each namespace object is displayed. 7549 7550Fixed a problem with the disassembler where invalid ACPI tables could 7551cause 7552faults or infinite loops. 7553 7554Fixed an unexpected parse error when using the optional "parameter types" 7555list in a control method declaration. (Lin Ming) BZ 397 7556 7557Fixed a problem where two External declarations with the same name did 7558not 7559cause an error (Lin Ming) BZ 509 7560 7561Implemented support for full TermArgs (adding Argx, Localx and method 7562invocation) for the ParameterData parameter to the LoadTable operator. 7563(Lin 7564Ming) BZ 583,587 7565 7566---------------------------------------- 756719 December 2007. Summary of changes for version 20071219: 7568 75691) ACPI CA Core Subsystem: 7570 7571Implemented full support for deferred execution for the TermArg string 7572arguments for DataTableRegion. This enables forward references and full 7573operand resolution for the three string arguments. Similar to 7574OperationRegion 7575deferred argument execution.) Lin Ming. BZ 430 7576 7577Implemented full argument resolution support for the BankValue argument 7578to 7579BankField. Previously, only constants were supported, now any TermArg may 7580be 7581used. Lin Ming BZ 387, 393 7582 7583Fixed a problem with AcpiGetDevices where the search of a branch of the 7584device tree could be terminated prematurely. In accordance with the ACPI 7585specification, the search down the current branch is terminated if a 7586device 7587is both not present and not functional (instead of just not present.) 7588Yakui 7589Zhao. 7590 7591Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 7592if 7593the underlying AML code changed the GPE enable registers. Now, any 7594unknown 7595incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 7596disabled 7597instead of simply ignored. Rui Zhang. 7598 7599Fixed a problem with Index Fields where the Index register was 7600incorrectly 7601limited to a maximum of 32 bits. Now any size may be used. 7602 7603Fixed a couple memory leaks associated with "implicit return" objects 7604when 7605the AML Interpreter slack mode is enabled. Lin Ming BZ 349 7606 7607Example Code and Data Size: These are the sizes for the OS-independent 7608acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7609debug version of the code includes the debug output trace mechanism and 7610has 7611a much larger code and data size. 7612 7613 Previous Release: 7614 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 7615 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 7616 Current Release: 7617 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 7618 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 7619 7620---------------------------------------- 762114 November 2007. Summary of changes for version 20071114: 7622 76231) ACPI CA Core Subsystem: 7624 7625Implemented event counters for each of the Fixed Events, the ACPI SCI 7626(interrupt) itself, and control methods executed. Named 7627AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 7628These 7629should be useful for debugging and statistics. 7630 7631Implemented a new external interface, AcpiGetStatistics, to retrieve the 7632contents of the various event counters. Returns the current values for 7633AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 7634AcpiMethodCount. The interface can be expanded in the future if new 7635counters 7636are added. Device drivers should use this interface rather than access 7637the 7638counters directly. 7639 7640Fixed a problem with the FromBCD and ToBCD operators. With some 7641compilers, 7642the ShortDivide function worked incorrectly, causing problems with the 7643BCD 7644functions with large input values. A truncation from 64-bit to 32-bit 7645inadvertently occurred. Internal BZ 435. Lin Ming 7646 7647Fixed a problem with Index references passed as method arguments. 7648References 7649passed as arguments to control methods were dereferenced immediately 7650(before 7651control was passed to the called method). The references are now 7652correctly 7653passed directly to the called method. BZ 5389. Lin Ming 7654 7655Fixed a problem with CopyObject used in conjunction with the Index 7656operator. 7657The reference was incorrectly dereferenced before the copy. The reference 7658is 7659now correctly copied. BZ 5391. Lin Ming 7660 7661Fixed a problem with Control Method references within Package objects. 7662These 7663references are now correctly generated. This completes the package 7664construction overhaul that began in version 20071019. 7665 7666Example Code and Data Size: These are the sizes for the OS-independent 7667acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7668debug version of the code includes the debug output trace mechanism and 7669has 7670a much larger code and data size. 7671 7672 Previous Release: 7673 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 7674 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 7675 Current Release: 7676 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 7677 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 7678 7679 76802) iASL Compiler/Disassembler and Tools: 7681 7682The AcpiExec utility now installs handlers for all of the predefined 7683Operation Region types. New types supported are: PCI_Config, CMOS, and 7684PCIBARTarget. 7685 7686Fixed a problem with the 64-bit version of AcpiExec where the extended 7687(64- 7688bit) address fields for the DSDT and FACS within the FADT were not being 7689used, causing truncation of the upper 32-bits of these addresses. Lin 7690Ming 7691and Bob Moore 7692 7693---------------------------------------- 769419 October 2007. Summary of changes for version 20071019: 7695 76961) ACPI CA Core Subsystem: 7697 7698Fixed a problem with the Alias operator when the target of the alias is a 7699named ASL operator that opens a new scope -- Scope, Device, 7700PowerResource, 7701Processor, and ThermalZone. In these cases, any children of the original 7702operator could not be accessed via the alias, potentially causing 7703unexpected 7704AE_NOT_FOUND exceptions. (BZ 9067) 7705 7706Fixed a problem with the Package operator where all named references were 7707created as object references and left otherwise unresolved. According to 7708the 7709ACPI specification, a Package can only contain Data Objects or references 7710to 7711control methods. The implication is that named references to Data Objects 7712(Integer, Buffer, String, Package, BufferField, Field) should be resolved 7713immediately upon package creation. This is the approach taken with this 7714change. References to all other named objects (Methods, Devices, Scopes, 7715etc.) are all now properly created as reference objects. (BZ 5328) 7716 7717Reverted a change to Notify handling that was introduced in version 771820070508. This version changed the Notify handling from asynchronous to 7719fully synchronous (Device driver Notify handling with respect to the 7720Notify 7721ASL operator). It was found that this change caused more problems than it 7722solved and was removed by most users. 7723 7724Fixed a problem with the Increment and Decrement operators where the type 7725of 7726the target object could be unexpectedly and incorrectly changed. (BZ 353) 7727Lin Ming. 7728 7729Fixed a problem with the Load and LoadTable operators where the table 7730location within the namespace was ignored. Instead, the table was always 7731loaded into the root or current scope. Lin Ming. 7732 7733Fixed a problem with the Load operator when loading a table from a buffer 7734object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 7735 7736Fixed a problem with the Debug object where a store of a DdbHandle 7737reference 7738object to the Debug object could cause a fault. 7739 7740Added a table checksum verification for the Load operator, in the case 7741where 7742the load is from a buffer. (BZ 578). 7743 7744Implemented additional parameter validation for the LoadTable operator. 7745The 7746length of the input strings SignatureString, OemIdString, and OemTableId 7747are 7748now checked for maximum lengths. (BZ 582) Lin Ming. 7749 7750Example Code and Data Size: These are the sizes for the OS-independent 7751acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7752debug version of the code includes the debug output trace mechanism and 7753has 7754a much larger code and data size. 7755 7756 Previous Release: 7757 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 7758 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 7759 Current Release: 7760 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 7761 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 7762 7763 77642) iASL Compiler/Disassembler: 7765 7766Fixed a problem where if a single file was specified and the file did not 7767exist, no error message was emitted. (Introduced with wildcard support in 7768version 20070917.) 7769 7770---------------------------------------- 777119 September 2007. Summary of changes for version 20070919: 7772 77731) ACPI CA Core Subsystem: 7774 7775Designed and implemented new external interfaces to install and remove 7776handlers for ACPI table-related events. Current events that are defined 7777are 7778LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 7779they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 7780AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 7781 7782Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 7783(acpi_serialized option on Linux) could cause some systems to hang during 7784initialization. (Bob Moore) BZ 8171 7785 7786Fixed a problem where objects of certain types (Device, ThermalZone, 7787Processor, PowerResource) can be not found if they are declared and 7788referenced from within the same control method (Lin Ming) BZ 341 7789 7790Example Code and Data Size: These are the sizes for the OS-independent 7791acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7792debug version of the code includes the debug output trace mechanism and 7793has 7794a much larger code and data size. 7795 7796 Previous Release: 7797 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 7798 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 7799 Current Release: 7800 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 7801 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 7802 7803 78042) iASL Compiler/Disassembler: 7805 7806Implemented support to allow multiple files to be compiled/disassembled 7807in 7808a 7809single invocation. This includes command line wildcard support for both 7810the 7811Windows and Unix versions of the compiler. This feature simplifies the 7812disassembly and compilation of multiple ACPI tables in a single 7813directory. 7814 7815---------------------------------------- 781608 May 2007. Summary of changes for version 20070508: 7817 78181) ACPI CA Core Subsystem: 7819 7820Implemented a Microsoft compatibility design change for the handling of 7821the 7822Notify AML operator. Previously, notify handlers were dispatched and 7823executed completely asynchronously in a deferred thread. The new design 7824still executes the notify handlers in a different thread, but the 7825original 7826thread that executed the Notify() now waits at a synchronization point 7827for 7828the notify handler to complete. Some machines depend on a synchronous 7829Notify 7830operator in order to operate correctly. 7831 7832Implemented support to allow Package objects to be passed as method 7833arguments to the external AcpiEvaluateObject interface. Previously, this 7834would return the AE_NOT_IMPLEMENTED exception. This feature had not been 7835implemented since there were no reserved control methods that required it 7836until recently. 7837 7838Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 7839that 7840contained invalid non-zero values in reserved fields could cause later 7841failures because these fields have meaning in later revisions of the 7842FADT. 7843For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 7844fields 7845are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 7846 7847Fixed a problem where the Global Lock handle was not properly updated if 7848a 7849thread that acquired the Global Lock via executing AML code then 7850attempted 7851to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 7852Joe 7853Liu. 7854 7855Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 7856could be corrupted if the interrupt being removed was at the head of the 7857list. Reported by Linn Crosetto. 7858 7859Example Code and Data Size: These are the sizes for the OS-independent 7860acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7861debug version of the code includes the debug output trace mechanism and 7862has 7863a much larger code and data size. 7864 7865 Previous Release: 7866 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7867 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 7868 Current Release: 7869 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 7870 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 7871 7872---------------------------------------- 787320 March 2007. Summary of changes for version 20070320: 7874 78751) ACPI CA Core Subsystem: 7876 7877Implemented a change to the order of interpretation and evaluation of AML 7878operand objects within the AML interpreter. The interpreter now evaluates 7879operands in the order that they appear in the AML stream (and the 7880corresponding ASL code), instead of in the reverse order (after the 7881entire 7882operand list has been parsed). The previous behavior caused several 7883subtle 7884incompatibilities with the Microsoft AML interpreter as well as being 7885somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 7886 7887Implemented a change to the ACPI Global Lock support. All interfaces to 7888the 7889global lock now allow the same thread to acquire the lock multiple times. 7890This affects the AcpiAcquireGlobalLock external interface to the global 7891lock 7892as well as the internal use of the global lock to support AML fields -- a 7893control method that is holding the global lock can now simultaneously 7894access 7895AML fields that require global lock protection. Previously, in both 7896cases, 7897this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 7898to 7899AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 7900Controller. There is no change to the behavior of the AML Acquire 7901operator, 7902as this can already be used to acquire a mutex multiple times by the same 7903thread. BZ 8066. With assistance from Alexey Starikovskiy. 7904 7905Fixed a problem where invalid objects could be referenced in the AML 7906Interpreter after error conditions. During operand evaluation, ensure 7907that 7908the internal "Return Object" field is cleared on error and only valid 7909pointers are stored there. Caused occasional access to deleted objects 7910that 7911resulted in "large reference count" warning messages. Valery Podrezov. 7912 7913Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 7914on 7915deeply nested control method invocations. BZ 7873, local BZ 487. Valery 7916Podrezov. 7917 7918Fixed an internal problem with the handling of result objects on the 7919interpreter result stack. BZ 7872. Valery Podrezov. 7920 7921Removed obsolete code that handled the case where AML_NAME_OP is the 7922target 7923of a reference (Reference.Opcode). This code was no longer necessary. BZ 79247874. Valery Podrezov. 7925 7926Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This 7927was 7928a 7929remnant from the previously discontinued 16-bit support. 7930 7931Example Code and Data Size: These are the sizes for the OS-independent 7932acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7933debug version of the code includes the debug output trace mechanism and 7934has 7935a much larger code and data size. 7936 7937 Previous Release: 7938 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7939 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 7940 Current Release: 7941 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7942 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 7943 7944---------------------------------------- 794526 January 2007. Summary of changes for version 20070126: 7946 79471) ACPI CA Core Subsystem: 7948 7949Added the 2007 copyright to all module headers and signons. This affects 7950virtually every file in the ACPICA core subsystem, the iASL compiler, and 7951the utilities. 7952 7953Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 7954during a table load. A bad pointer was passed in the case where the DSDT 7955is 7956overridden, causing a fault in this case. 7957 7958Example Code and Data Size: These are the sizes for the OS-independent 7959acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7960debug version of the code includes the debug output trace mechanism and 7961has 7962a much larger code and data size. 7963 7964 Previous Release: 7965 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7966 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 7967 Current Release: 7968 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7969 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 7970 7971---------------------------------------- 797215 December 2006. Summary of changes for version 20061215: 7973 79741) ACPI CA Core Subsystem: 7975 7976Support for 16-bit ACPICA has been completely removed since it is no 7977longer 7978necessary and it clutters the code. All 16-bit macros, types, and 7979conditional compiles have been removed, cleaning up and simplifying the 7980code 7981across the entire subsystem. DOS support is no longer needed since the 7982bootable Linux firmware kit is now available. 7983 7984The handler for the Global Lock is now removed during AcpiTerminate to 7985enable a clean subsystem restart, via the implementation of the 7986AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 7987HP) 7988 7989Implemented enhancements to the multithreading support within the 7990debugger 7991to enable improved multithreading debugging and evaluation of the 7992subsystem. 7993(Valery Podrezov) 7994 7995Debugger: Enhanced the Statistics/Memory command to emit the total 7996(maximum) 7997memory used during the execution, as well as the maximum memory consumed 7998by 7999each of the various object types. (Valery Podrezov) 8000 8001Example Code and Data Size: These are the sizes for the OS-independent 8002acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8003debug version of the code includes the debug output trace mechanism and 8004has 8005a much larger code and data size. 8006 8007 Previous Release: 8008 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 8009 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 8010 Current Release: 8011 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8012 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 8013 8014 80152) iASL Compiler/Disassembler and Tools: 8016 8017AcpiExec: Implemented a new option (-m) to display full memory use 8018statistics upon subsystem/program termination. (Valery Podrezov) 8019 8020---------------------------------------- 802109 November 2006. Summary of changes for version 20061109: 8022 80231) ACPI CA Core Subsystem: 8024 8025Optimized the Load ASL operator in the case where the source operand is 8026an 8027operation region. Simply map the operation region memory, instead of 8028performing a bytewise read. (Region must be of type SystemMemory, see 8029below.) 8030 8031Fixed the Load ASL operator for the case where the source operand is a 8032region field. A buffer object is also allowed as the source operand. BZ 8033480 8034 8035Fixed a problem where the Load ASL operator allowed the source operand to 8036be 8037an operation region of any type. It is now restricted to regions of type 8038SystemMemory, as per the ACPI specification. BZ 481 8039 8040Additional cleanup and optimizations for the new Table Manager code. 8041 8042AcpiEnable will now fail if all of the required ACPI tables are not 8043loaded 8044(FADT, FACS, DSDT). BZ 477 8045 8046Added #pragma pack(8/4) to acobject.h to ensure that the structures in 8047this 8048header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 8049manually optimized to be aligned and will not work if it is byte-packed. 8050 8051Example Code and Data Size: These are the sizes for the OS-independent 8052acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8053debug version of the code includes the debug output trace mechanism and 8054has 8055a much larger code and data size. 8056 8057 Previous Release: 8058 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 8059 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 8060 Current Release: 8061 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 8062 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 8063 8064 80652) iASL Compiler/Disassembler and Tools: 8066 8067Fixed a problem where the presence of the _OSI predefined control method 8068within complex expressions could cause an internal compiler error. 8069 8070AcpiExec: Implemented full region support for multiple address spaces. 8071SpaceId is now part of the REGION object. BZ 429 8072 8073---------------------------------------- 807411 October 2006. Summary of changes for version 20061011: 8075 80761) ACPI CA Core Subsystem: 8077 8078Completed an AML interpreter performance enhancement for control method 8079execution. Previously a 2-pass parse/execution, control methods are now 8080completely parsed and executed in a single pass. This improves overall 8081interpreter performance by ~25%, reduces code size, and reduces CPU stack 8082use. (Valery Podrezov + interpreter changes in version 20051202 that 8083eliminated namespace loading during the pass one parse.) 8084 8085Implemented _CID support for PCI Root Bridge detection. If the _HID does 8086not 8087match the predefined PCI Root Bridge IDs, the _CID list (if present) is 8088now 8089obtained and also checked for an ID match. 8090 8091Implemented additional support for the PCI _ADR execution: upsearch until 8092a 8093device scope is found before executing _ADR. This allows PCI_Config 8094operation regions to be declared locally within control methods 8095underneath 8096PCI device objects. 8097 8098Fixed a problem with a possible race condition between threads executing 8099AcpiWalkNamespace and the AML interpreter. This condition was removed by 8100modifying AcpiWalkNamespace to (by default) ignore all temporary 8101namespace 8102entries created during any concurrent control method execution. An 8103additional namespace race condition is known to exist between 8104AcpiWalkNamespace and the Load/Unload ASL operators and is still under 8105investigation. 8106 8107Restructured the AML ParseLoop function, breaking it into several 8108subfunctions in order to reduce CPU stack use and improve 8109maintainability. 8110(Mikhail Kouzmich) 8111 8112AcpiGetHandle: Fix for parameter validation to detect invalid 8113combinations 8114of prefix handle and pathname. BZ 478 8115 8116Example Code and Data Size: These are the sizes for the OS-independent 8117acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8118debug version of the code includes the debug output trace mechanism and 8119has 8120a much larger code and data size. 8121 8122 Previous Release: 8123 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8124 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 8125 Current Release: 8126 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 8127 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 8128 81292) iASL Compiler/Disassembler and Tools: 8130 8131Ported the -g option (get local ACPI tables) to the new ACPICA Table 8132Manager 8133to restore original behavior. 8134 8135---------------------------------------- 813627 September 2006. Summary of changes for version 20060927: 8137 81381) ACPI CA Core Subsystem: 8139 8140Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 8141These functions now use a spinlock for mutual exclusion and the interrupt 8142level indication flag is not needed. 8143 8144Fixed a problem with the Global Lock where the lock could appear to be 8145obtained before it is actually obtained. The global lock semaphore was 8146inadvertently created with one unit instead of zero units. (BZ 464) 8147Fiodor 8148Suietov. 8149 8150Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 8151during 8152a read from a buffer or region field. (BZ 458) Fiodor Suietov. 8153 8154Example Code and Data Size: These are the sizes for the OS-independent 8155acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8156debug version of the code includes the debug output trace mechanism and 8157has 8158a much larger code and data size. 8159 8160 Previous Release: 8161 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8162 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 8163 Current Release: 8164 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8165 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 8166 8167 81682) iASL Compiler/Disassembler and Tools: 8169 8170Fixed a compilation problem with the pre-defined Resource Descriptor 8171field 8172names where an "object does not exist" error could be incorrectly 8173generated 8174if the parent ResourceTemplate pathname places the template within a 8175different namespace scope than the current scope. (BZ 7212) 8176 8177Fixed a problem where the compiler could hang after syntax errors 8178detected 8179in an ElseIf construct. (BZ 453) 8180 8181Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 8182operator. An incorrect output filename was produced when this parameter 8183was 8184a null string (""). Now, the original input filename is used as the AML 8185output filename, with an ".aml" extension. 8186 8187Implemented a generic batch command mode for the AcpiExec utility 8188(execute 8189any AML debugger command) (Valery Podrezov). 8190 8191---------------------------------------- 819212 September 2006. Summary of changes for version 20060912: 8193 81941) ACPI CA Core Subsystem: 8195 8196Enhanced the implementation of the "serialized mode" of the interpreter 8197(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 8198specified, instead of creating a serialization semaphore per control 8199method, 8200the interpreter lock is simply no longer released before a blocking 8201operation during control method execution. This effectively makes the AML 8202Interpreter single-threaded. The overhead of a semaphore per-method is 8203eliminated. 8204 8205Fixed a regression where an error was no longer emitted if a control 8206method 8207attempts to create 2 objects of the same name. This once again returns 8208AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 8209that 8210will dynamically serialize the control method to possible prevent future 8211errors. (BZ 440) 8212 8213Integrated a fix for a problem with PCI Express HID detection in the PCI 8214Config Space setup procedure. (BZ 7145) 8215 8216Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 8217AcpiHwInitialize function - the FADT registers are now validated when the 8218table is loaded. 8219 8220Added two new warnings during FADT verification - 1) if the FADT is 8221larger 8222than the largest known FADT version, and 2) if there is a mismatch 8223between 8224a 822532-bit block address and the 64-bit X counterpart (when both are non- 8226zero.) 8227 8228Example Code and Data Size: These are the sizes for the OS-independent 8229acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8230debug version of the code includes the debug output trace mechanism and 8231has 8232a much larger code and data size. 8233 8234 Previous Release: 8235 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 8236 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 8237 Current Release: 8238 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8239 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 8240 8241 82422) iASL Compiler/Disassembler and Tools: 8243 8244Fixed a problem with the implementation of the Switch() operator where 8245the 8246temporary variable was declared too close to the actual Switch, instead 8247of 8248at method level. This could cause a problem if the Switch() operator is 8249within a while loop, causing an error on the second iteration. (BZ 460) 8250 8251Disassembler - fix for error emitted for unknown type for target of scope 8252operator. Now, ignore it and continue. 8253 8254Disassembly of an FADT now verifies the input FADT and reports any errors 8255found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 8256 8257Disassembly of raw data buffers with byte initialization data now 8258prefixes 8259each output line with the current buffer offset. 8260 8261Disassembly of ASF! table now includes all variable-length data fields at 8262the end of some of the subtables. 8263 8264The disassembler now emits a comment if a buffer appears to be a 8265ResourceTemplate, but cannot be disassembled as such because the EndTag 8266does 8267not appear at the very end of the buffer. 8268 8269AcpiExec - Added the "-t" command line option to enable the serialized 8270mode 8271of the AML interpreter. 8272 8273---------------------------------------- 827431 August 2006. Summary of changes for version 20060831: 8275 82761) ACPI CA Core Subsystem: 8277 8278Miscellaneous fixes for the Table Manager: 8279- Correctly initialize internal common FADT for all 64-bit "X" fields 8280- Fixed a couple table mapping issues during table load 8281- Fixed a couple alignment issues for IA64 8282- Initialize input array to zero in AcpiInitializeTables 8283- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 8284AcpiGetTableByIndex 8285 8286Change for GPE support: when a "wake" GPE is received, all wake GPEs are 8287now 8288immediately disabled to prevent the waking GPE from firing again and to 8289prevent other wake GPEs from interrupting the wake process. 8290 8291Added the AcpiGpeCount global that tracks the number of processed GPEs, 8292to 8293be used for debugging systems with a large number of ACPI interrupts. 8294 8295Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 8296both the ACPICA headers and the disassembler. 8297 8298Example Code and Data Size: These are the sizes for the OS-independent 8299acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8300debug version of the code includes the debug output trace mechanism and 8301has 8302a much larger code and data size. 8303 8304 Previous Release: 8305 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 8306 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 8307 Current Release: 8308 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 8309 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 8310 8311 83122) iASL Compiler/Disassembler and Tools: 8313 8314Disassembler support for the DMAR ACPI table. 8315 8316---------------------------------------- 831723 August 2006. Summary of changes for version 20060823: 8318 83191) ACPI CA Core Subsystem: 8320 8321The Table Manager component has been completely redesigned and 8322reimplemented. The new design is much simpler, and reduces the overall 8323code 8324and data size of the kernel-resident ACPICA by approximately 5%. Also, it 8325is 8326now possible to obtain the ACPI tables very early during kernel 8327initialization, even before dynamic memory management is initialized. 8328(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 8329 8330Obsolete ACPICA interfaces: 8331 8332- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 8333init 8334time). 8335- AcpiLoadTable: Not needed. 8336- AcpiUnloadTable: Not needed. 8337 8338New ACPICA interfaces: 8339 8340- AcpiInitializeTables: Must be called before the table manager can be 8341used. 8342- AcpiReallocateRootTable: Used to transfer the root table to dynamically 8343allocated memory after it becomes available. 8344- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI 8345tables 8346in the RSDT/XSDT. 8347 8348Other ACPICA changes: 8349 8350- AcpiGetTableHeader returns the actual mapped table header, not a copy. 8351Use 8352AcpiOsUnmapMemory to free this mapping. 8353- AcpiGetTable returns the actual mapped table. The mapping is managed 8354internally and must not be deleted by the caller. Use of this interface 8355causes no additional dynamic memory allocation. 8356- AcpiFindRootPointer: Support for physical addressing has been 8357eliminated, 8358it appeared to be unused. 8359- The interface to AcpiOsMapMemory has changed to be consistent with the 8360other allocation interfaces. 8361- The interface to AcpiOsGetRootPointer has changed to eliminate 8362unnecessary 8363parameters. 8364- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 836564- 8366bit platforms. Was previously 64 bits on all platforms. 8367- The interface to the ACPI Global Lock acquire/release macros have 8368changed 8369slightly since ACPICA no longer keeps a local copy of the FACS with a 8370constructed pointer to the actual global lock. 8371 8372Porting to the new table manager: 8373 8374- AcpiInitializeTables: Must be called once, and can be called anytime 8375during the OS initialization process. It allows the host to specify an 8376area 8377of memory to be used to store the internal version of the RSDT/XSDT (root 8378table). This allows the host to access ACPI tables before memory 8379management 8380is initialized and running. 8381- AcpiReallocateRootTable: Can be called after memory management is 8382running 8383to copy the root table to a dynamically allocated array, freeing up the 8384scratch memory specified in the call to AcpiInitializeTables. 8385- AcpiSubsystemInitialize: This existing interface is independent of the 8386Table Manager, and does not have to be called before the Table Manager 8387can 8388be used, it only must be called before the rest of ACPICA can be used. 8389- ACPI Tables: Some changes have been made to the names and structure of 8390the 8391actbl.h and actbl1.h header files and may require changes to existing 8392code. 8393For example, bitfields have been completely removed because of their lack 8394of 8395portability across C compilers. 8396- Update interfaces to the Global Lock acquire/release macros if local 8397versions are used. (see acwin.h) 8398 8399Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 8400 8401New files: tbfind.c 8402 8403Example Code and Data Size: These are the sizes for the OS-independent 8404acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8405debug version of the code includes the debug output trace mechanism and 8406has 8407a much larger code and data size. 8408 8409 Previous Release: 8410 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8411 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8412 Current Release: 8413 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 8414 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 8415 8416 84172) iASL Compiler/Disassembler and Tools: 8418 8419No changes for this release. 8420 8421---------------------------------------- 842221 July 2006. Summary of changes for version 20060721: 8423 84241) ACPI CA Core Subsystem: 8425 8426The full source code for the ASL test suite used to validate the iASL 8427compiler and the ACPICA core subsystem is being released with the ACPICA 8428source for the first time. The source is contained in a separate package 8429and 8430consists of over 1100 files that exercise all ASL/AML operators. The 8431package 8432should appear on the Intel/ACPI web site shortly. (Valery Podrezov, 8433Fiodor 8434Suietov) 8435 8436Completed a new design and implementation for support of the ACPI Global 8437Lock. On the OS side, the global lock is now treated as a standard AML 8438mutex. Previously, multiple OS threads could "acquire" the global lock 8439simultaneously. However, this could cause the BIOS to be starved out of 8440the 8441lock - especially in cases such as the Embedded Controller driver where 8442there is a tight coupling between the OS and the BIOS. 8443 8444Implemented an optimization for the ACPI Global Lock interrupt mechanism. 8445The Global Lock interrupt handler no longer queues the execution of a 8446separate thread to signal the global lock semaphore. Instead, the 8447semaphore 8448is signaled directly from the interrupt handler. 8449 8450Implemented support within the AML interpreter for package objects that 8451contain a larger AML length (package list length) than the package 8452element 8453count. In this case, the length of the package is truncated to match the 8454package element count. Some BIOS code apparently modifies the package 8455length 8456on the fly, and this change supports this behavior. Provides 8457compatibility 8458with the MS AML interpreter. (With assistance from Fiodor Suietov) 8459 8460Implemented a temporary fix for the BankValue parameter of a Bank Field 8461to 8462support all constant values, now including the Zero and One opcodes. 8463Evaluation of this parameter must eventually be converted to a full 8464TermArg 8465evaluation. A not-implemented error is now returned (temporarily) for 8466non- 8467constant values for this parameter. 8468 8469Fixed problem reports (Fiodor Suietov) integrated: 8470- Fix for premature object deletion after CopyObject on Operation Region 8471(BZ 8472350) 8473 8474Example Code and Data Size: These are the sizes for the OS-independent 8475acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8476debug version of the code includes the debug output trace mechanism and 8477has 8478a much larger code and data size. 8479 8480 Previous Release: 8481 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 8482 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 8483 Current Release: 8484 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8485 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8486 8487 84882) iASL Compiler/Disassembler and Tools: 8489 8490No changes for this release. 8491 8492---------------------------------------- 849307 July 2006. Summary of changes for version 20060707: 8494 84951) ACPI CA Core Subsystem: 8496 8497Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 8498that do not allow the initialization of address pointers within packed 8499structures - even though the hardware itself may support misaligned 8500transfers. Some of the debug data structures are packed by default to 8501minimize size. 8502 8503Added an error message for the case where AcpiOsGetThreadId() returns 8504zero. 8505A non-zero value is required by the core ACPICA code to ensure the proper 8506operation of AML mutexes and recursive control methods. 8507 8508The DSDT is now the only ACPI table that determines whether the AML 8509interpreter is in 32-bit or 64-bit mode. Not really a functional change, 8510but 8511the hooks for per-table 32/64 switching have been removed from the code. 8512A 8513clarification to the ACPI specification is forthcoming in ACPI 3.0B. 8514 8515Fixed a possible leak of an OwnerID in the error path of 8516AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 8517deletion to a single place in AcpiTbUninstallTable to correct possible 8518leaks 8519when using the AcpiTbDeleteTablesByType interface (with assistance from 8520Lance Ortiz.) 8521 8522Fixed a problem with Serialized control methods where the semaphore 8523associated with the method could be over-signaled after multiple method 8524invocations. 8525 8526Fixed two issues with the locking of the internal namespace data 8527structure. 8528Both the Unload() operator and AcpiUnloadTable interface now lock the 8529namespace during the namespace deletion associated with the table unload 8530(with assistance from Linn Crosetto.) 8531 8532Fixed problem reports (Valery Podrezov) integrated: 8533- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 8534 8535Fixed problem reports (Fiodor Suietov) integrated: 8536- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 8537- On Address Space handler deletion, needless deactivation call (BZ 374) 8538- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 8539375) 8540- Possible memory leak, Notify sub-objects of Processor, Power, 8541ThermalZone 8542(BZ 376) 8543- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 8544- Minimum Length of RSDT should be validated (BZ 379) 8545- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 8546Handler (BZ (380) 8547- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 8548loaded 8549(BZ 381) 8550 8551Example Code and Data Size: These are the sizes for the OS-independent 8552acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8553debug version of the code includes the debug output trace mechanism and 8554has 8555a much larger code and data size. 8556 8557 Previous Release: 8558 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 8559 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 8560 Current Release: 8561 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8562 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8563 8564 85652) iASL Compiler/Disassembler and Tools: 8566 8567Fixed problem reports: 8568Compiler segfault when ASL contains a long (>1024) String declaration (BZ 8569436) 8570 8571---------------------------------------- 857223 June 2006. Summary of changes for version 20060623: 8573 85741) ACPI CA Core Subsystem: 8575 8576Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 8577allows the type to be customized to the host OS for improved efficiency 8578(since a spinlock is usually a very small object.) 8579 8580Implemented support for "ignored" bits in the ACPI registers. According 8581to 8582the ACPI specification, these bits should be preserved when writing the 8583registers via a read/modify/write cycle. There are 3 bits preserved in 8584this 8585manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 8586 8587Implemented the initial deployment of new OSL mutex interfaces. Since 8588some 8589host operating systems have separate mutex and semaphore objects, this 8590feature was requested. The base code now uses mutexes (and the new mutex 8591interfaces) wherever a binary semaphore was used previously. However, for 8592the current release, the mutex interfaces are defined as macros to map 8593them 8594to the existing semaphore interfaces. Therefore, no OSL changes are 8595required 8596at this time. (See acpiosxf.h) 8597 8598Fixed several problems with the support for the control method SyncLevel 8599parameter. The SyncLevel now works according to the ACPI specification 8600and 8601in concert with the Mutex SyncLevel parameter, since the current 8602SyncLevel 8603is a property of the executing thread. Mutual exclusion for control 8604methods 8605is now implemented with a mutex instead of a semaphore. 8606 8607Fixed three instances of the use of the C shift operator in the bitfield 8608support code (exfldio.c) to avoid the use of a shift value larger than 8609the 8610target data width. The behavior of C compilers is undefined in this case 8611and 8612can cause unpredictable results, and therefore the case must be detected 8613and 8614avoided. (Fiodor Suietov) 8615 8616Added an info message whenever an SSDT or OEM table is loaded dynamically 8617via the Load() or LoadTable() ASL operators. This should improve 8618debugging 8619capability since it will show exactly what tables have been loaded 8620(beyond 8621the tables present in the RSDT/XSDT.) 8622 8623Example Code and Data Size: These are the sizes for the OS-independent 8624acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8625debug version of the code includes the debug output trace mechanism and 8626has 8627a much larger code and data size. 8628 8629 Previous Release: 8630 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 8631 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 8632 Current Release: 8633 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 8634 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 8635 8636 86372) iASL Compiler/Disassembler and Tools: 8638 8639No changes for this release. 8640 8641---------------------------------------- 864208 June 2006. Summary of changes for version 20060608: 8643 86441) ACPI CA Core Subsystem: 8645 8646Converted the locking mutex used for the ACPI hardware to a spinlock. 8647This 8648change should eliminate all problems caused by attempting to acquire a 8649semaphore at interrupt level, and it means that all ACPICA external 8650interfaces that directly access the ACPI hardware can be safely called 8651from 8652interrupt level. OSL code that implements the semaphore interfaces should 8653be 8654able to eliminate any workarounds for being called at interrupt level. 8655 8656Fixed a regression introduced in 20060526 where the ACPI device 8657initialization could be prematurely aborted with an AE_NOT_FOUND if a 8658device 8659did not have an optional _INI method. 8660 8661Fixed an IndexField issue where a write to the Data Register should be 8662limited in size to the AccessSize (width) of the IndexField itself. (BZ 8663433, 8664Fiodor Suietov) 8665 8666Fixed problem reports (Valery Podrezov) integrated: 8667- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 8668 8669Fixed problem reports (Fiodor Suietov) integrated: 8670- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 8671 8672Removed four global mutexes that were obsolete and were no longer being 8673used. 8674 8675Example Code and Data Size: These are the sizes for the OS-independent 8676acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8677debug version of the code includes the debug output trace mechanism and 8678has 8679a much larger code and data size. 8680 8681 Previous Release: 8682 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 8683 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 8684 Current Release: 8685 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 8686 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 8687 8688 86892) iASL Compiler/Disassembler and Tools: 8690 8691Fixed a fault when using -g option (get tables from registry) on Windows 8692machines. 8693 8694Fixed problem reports integrated: 8695- Generate error if CreateField NumBits parameter is zero. (BZ 405) 8696- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 8697Suietov) 8698- Global table revision override (-r) is ignored (BZ 413) 8699 8700---------------------------------------- 870126 May 2006. Summary of changes for version 20060526: 8702 87031) ACPI CA Core Subsystem: 8704 8705Restructured, flattened, and simplified the internal interfaces for 8706namespace object evaluation - resulting in smaller code, less CPU stack 8707use, 8708and fewer interfaces. (With assistance from Mikhail Kouzmich) 8709 8710Fixed a problem with the CopyObject operator where the first parameter 8711was 8712not typed correctly for the parser, interpreter, compiler, and 8713disassembler. 8714Caused various errors and unexpected behavior. 8715 8716Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 8717produced incorrect results with some C compilers. Since the behavior of C 8718compilers when the shift value is larger than the datatype width is 8719apparently not well defined, the interpreter now detects this condition 8720and 8721simply returns zero as expected in all such cases. (BZ 395) 8722 8723Fixed problem reports (Valery Podrezov) integrated: 8724- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 8725- Allow interpreter to handle nested method declarations (BZ 5361) 8726 8727Fixed problem reports (Fiodor Suietov) integrated: 8728- AcpiTerminate doesn't free debug memory allocation list objects (BZ 8729355) 8730- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 8731356) 8732- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 8733- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 8734- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 8735- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 8736- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 8737- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 8738- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 8739365) 8740- Status of the Global Initialization Handler call not used (BZ 366) 8741- Incorrect object parameter to Global Initialization Handler (BZ 367) 8742 8743Example Code and Data Size: These are the sizes for the OS-independent 8744acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8745debug version of the code includes the debug output trace mechanism and 8746has 8747a much larger code and data size. 8748 8749 Previous Release: 8750 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 8751 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 8752 Current Release: 8753 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 8754 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 8755 8756 87572) iASL Compiler/Disassembler and Tools: 8758 8759Modified the parser to allow the names IO, DMA, and IRQ to be used as 8760namespace identifiers with no collision with existing resource descriptor 8761macro names. This provides compatibility with other ASL compilers and is 8762most useful for disassembly/recompilation of existing tables without 8763parse 8764errors. (With assistance from Thomas Renninger) 8765 8766Disassembler: fixed an incorrect disassembly problem with the 8767DataTableRegion and CopyObject operators. Fixed a possible fault during 8768disassembly of some Alias operators. 8769 8770---------------------------------------- 877112 May 2006. Summary of changes for version 20060512: 8772 87731) ACPI CA Core Subsystem: 8774 8775Replaced the AcpiOsQueueForExecution interface with a new interface named 8776AcpiOsExecute. The major difference is that the new interface does not 8777have 8778a Priority parameter, this appeared to be useless and has been replaced 8779by 8780a 8781Type parameter. The Type tells the host what type of execution is being 8782requested, such as global lock handler, notify handler, GPE handler, etc. 8783This allows the host to queue and execute the request as appropriate for 8784the 8785request type, possibly using different work queues and different 8786priorities 8787for the various request types. This enables fixes for multithreading 8788deadlock problems such as BZ #5534, and will require changes to all 8789existing 8790OS interface layers. (Alexey Starikovskiy and Bob Moore) 8791 8792Fixed a possible memory leak associated with the support for the so- 8793called 8794"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 8795Suietov) 8796 8797Fixed a problem with the Load() operator where a table load from an 8798operation region could overwrite an internal table buffer by up to 7 8799bytes 8800and cause alignment faults on IPF systems. (With assistance from Luming 8801Yu) 8802 8803Example Code and Data Size: These are the sizes for the OS-independent 8804acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8805debug version of the code includes the debug output trace mechanism and 8806has 8807a much larger code and data size. 8808 8809 Previous Release: 8810 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 8811 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 8812 Current Release: 8813 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 8814 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 8815 8816 8817 88182) iASL Compiler/Disassembler and Tools: 8819 8820Disassembler: Implemented support to cross reference the internal 8821namespace 8822and automatically generate ASL External() statements for symbols not 8823defined 8824within the current table being disassembled. This will simplify the 8825disassembly and recompilation of interdependent tables such as SSDTs 8826since 8827these statements will no longer have to be added manually. 8828 8829Disassembler: Implemented experimental support to automatically detect 8830invocations of external control methods and generate appropriate 8831External() 8832statements. This is problematic because the AML cannot be correctly 8833parsed 8834until the number of arguments for each control method is known. 8835Currently, 8836standalone method invocations and invocations as the source operand of a 8837Store() statement are supported. 8838 8839Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 8840LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 8841LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 8842more readable and likely closer to the original ASL source. 8843 8844---------------------------------------- 884521 April 2006. Summary of changes for version 20060421: 8846 88471) ACPI CA Core Subsystem: 8848 8849Removed a device initialization optimization introduced in 20051216 where 8850the _STA method was not run unless an _INI was also present for the same 8851device. This optimization could cause problems because it could allow 8852_INI 8853methods to be run within a not-present device subtree. (If a not-present 8854device had no _INI, _STA would not be run, the not-present status would 8855not 8856be discovered, and the children of the device would be incorrectly 8857traversed.) 8858 8859Implemented a new _STA optimization where namespace subtrees that do not 8860contain _INI are identified and ignored during device initialization. 8861Selectively running _STA can significantly improve boot time on large 8862machines (with assistance from Len Brown.) 8863 8864Implemented support for the device initialization case where the returned 8865_STA flags indicate a device not-present but functioning. In this case, 8866_INI 8867is not run, but the device children are examined for presence, as per the 8868ACPI specification. 8869 8870Implemented an additional change to the IndexField support in order to 8871conform to MS behavior. The value written to the Index Register is not 8872simply a byte offset, it is a byte offset in units of the access width of 8873the parent Index Field. (Fiodor Suietov) 8874 8875Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 8876interface is called during the creation of all AML operation regions, and 8877allows the host OS to exert control over what addresses it will allow the 8878AML code to access. Operation Regions whose addresses are disallowed will 8879cause a runtime exception when they are actually accessed (will not 8880affect 8881or abort table loading.) See oswinxf or osunixxf for an example 8882implementation. 8883 8884Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 8885interface allows the host OS to match the various "optional" 8886interface/behavior strings for the _OSI predefined control method as 8887appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 8888for an example implementation. 8889 8890Restructured and corrected various problems in the exception handling 8891code 8892paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 8893(with assistance from Takayoshi Kochi.) 8894 8895Modified the Linux source converter to ignore quoted string literals 8896while 8897converting identifiers from mixed to lower case. This will correct 8898problems 8899with the disassembler and other areas where such strings must not be 8900modified. 8901 8902The ACPI_FUNCTION_* macros no longer require quotes around the function 8903name. This allows the Linux source converter to convert the names, now 8904that 8905the converter ignores quoted strings. 8906 8907Example Code and Data Size: These are the sizes for the OS-independent 8908acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8909debug version of the code includes the debug output trace mechanism and 8910has 8911a much larger code and data size. 8912 8913 Previous Release: 8914 8915 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 8916 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 8917 Current Release: 8918 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 8919 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 8920 8921 89222) iASL Compiler/Disassembler and Tools: 8923 8924Implemented 3 new warnings for iASL, and implemented multiple warning 8925levels 8926(w2 flag). 8927 89281) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 8929not 8930WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 8931check for the possible timeout, a warning is issued. 8932 89332) Useless operators: If an ASL operator does not specify an optional 8934target 8935operand and it also does not use the function return value from the 8936operator, a warning is issued since the operator effectively does 8937nothing. 8938 89393) Unreferenced objects: If a namespace object is created, but never 8940referenced, a warning is issued. This is a warning level 2 since there 8941are 8942cases where this is ok, such as when a secondary table is loaded that 8943uses 8944the unreferenced objects. Even so, care is taken to only flag objects 8945that 8946don't look like they will ever be used. For example, the reserved methods 8947(starting with an underscore) are usually not referenced because it is 8948expected that the OS will invoke them. 8949 8950---------------------------------------- 895131 March 2006. Summary of changes for version 20060331: 8952 89531) ACPI CA Core Subsystem: 8954 8955Implemented header file support for the following additional ACPI tables: 8956ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 8957support, 8958all current and known ACPI tables are now defined in the ACPICA headers 8959and 8960are available for use by device drivers and other software. 8961 8962Implemented support to allow tables that contain ACPI names with invalid 8963characters to be loaded. Previously, this would cause the table load to 8964fail, but since there are several known cases of such tables on existing 8965machines, this change was made to enable ACPI support for them. Also, 8966this 8967matches the behavior of the Microsoft ACPI implementation. 8968 8969Fixed a couple regressions introduced during the memory optimization in 8970the 897120060317 release. The namespace node definition required additional 8972reorganization and an internal datatype that had been changed to 8-bit 8973was 8974restored to 32-bit. (Valery Podrezov) 8975 8976Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 8977could be passed through to AcpiOsReleaseObject which is unexpected. Such 8978null pointers are now trapped and ignored, matching the behavior of the 8979previous implementation before the deployment of AcpiOsReleaseObject. 8980(Valery Podrezov, Fiodor Suietov) 8981 8982Fixed a memory mapping leak during the deletion of a SystemMemory 8983operation 8984region where a cached memory mapping was not deleted. This became a 8985noticeable problem for operation regions that are defined within 8986frequently 8987used control methods. (Dana Meyers) 8988 8989Reorganized the ACPI table header files into two main files: one for the 8990ACPI tables consumed by the ACPICA core, and another for the 8991miscellaneous 8992ACPI tables that are consumed by the drivers and other software. The 8993various 8994FADT definitions were merged into one common section and three different 8995tables (ACPI 1.0, 1.0+, and 2.0) 8996 8997Example Code and Data Size: These are the sizes for the OS-independent 8998acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8999debug version of the code includes the debug output trace mechanism and 9000has 9001a much larger code and data size. 9002 9003 Previous Release: 9004 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 9005 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 9006 Current Release: 9007 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 9008 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 9009 9010 90112) iASL Compiler/Disassembler and Tools: 9012 9013Disassembler: Implemented support to decode and format all non-AML ACPI 9014tables (tables other than DSDTs and SSDTs.) This includes the new tables 9015added to the ACPICA headers, therefore all current and known ACPI tables 9016are 9017supported. 9018 9019Disassembler: The change to allow ACPI names with invalid characters also 9020enables the disassembly of such tables. Invalid characters within names 9021are 9022changed to '*' to make the name printable; the iASL compiler will still 9023generate an error for such names, however, since this is an invalid ACPI 9024character. 9025 9026Implemented an option for AcpiXtract (-a) to extract all tables found in 9027the 9028input file. The default invocation extracts only the DSDTs and SSDTs. 9029 9030Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 9031makefile for the AcpiXtract utility. 9032 9033---------------------------------------- 903417 March 2006. Summary of changes for version 20060317: 9035 90361) ACPI CA Core Subsystem: 9037 9038Implemented the use of a cache object for all internal namespace nodes. 9039Since there are about 1000 static nodes in a typical system, this will 9040decrease memory use for cache implementations that minimize per- 9041allocation 9042overhead (such as a slab allocator.) 9043 9044Removed the reference count mechanism for internal namespace nodes, since 9045it 9046was deemed unnecessary. This reduces the size of each namespace node by 9047about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit 9048case, 9049and 32 bytes for the 64-bit case. 9050 9051Optimized several internal data structures to reduce object size on 64- 9052bit 9053platforms by packing data within the 64-bit alignment. This includes the 9054frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 9055instances corresponding to the namespace objects. 9056 9057Added two new strings for the predefined _OSI method: "Windows 2001.1 9058SP1" 9059and "Windows 2006". 9060 9061Split the allocation tracking mechanism out to a separate file, from 9062utalloc.c to uttrack.c. This mechanism appears to be only useful for 9063application-level code. Kernels may wish to not include uttrack.c in 9064distributions. 9065 9066Removed all remnants of the obsolete ACPI_REPORT_* macros and the 9067associated 9068code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 9069macros.) 9070 9071Code and Data Size: These are the sizes for the acpica.lib produced by 9072the 9073Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 9074ACPI 9075driver or OSPM code. The debug version of the code includes the debug 9076output 9077trace mechanism and has a much larger code and data size. Note that these 9078values will vary depending on the efficiency of the compiler and the 9079compiler options used during generation. 9080 9081 Previous Release: 9082 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9083 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 9084 Current Release: 9085 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 9086 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 9087 9088 90892) iASL Compiler/Disassembler and Tools: 9090 9091Implemented an ANSI C version of the acpixtract utility. This version 9092will 9093automatically extract the DSDT and all SSDTs from the input acpidump text 9094file and dump the binary output to separate files. It can also display a 9095summary of the input file including the headers for each table found and 9096will extract any single ACPI table, with any signature. (See 9097source/tools/acpixtract) 9098 9099---------------------------------------- 910010 March 2006. Summary of changes for version 20060310: 9101 91021) ACPI CA Core Subsystem: 9103 9104Tagged all external interfaces to the subsystem with the new 9105ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to 9106assist 9107kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 9108macro. The default definition is NULL. 9109 9110Added the ACPI_THREAD_ID type for the return value from 9111AcpiOsGetThreadId. 9112This allows the host to define this as necessary to simplify kernel 9113integration. The default definition is ACPI_NATIVE_UINT. 9114 9115Fixed two interpreter problems related to error processing, the deletion 9116of 9117objects, and placing invalid pointers onto the internal operator result 9118stack. BZ 6028, 6151 (Valery Podrezov) 9119 9120Increased the reference count threshold where a warning is emitted for 9121large 9122reference counts in order to eliminate unnecessary warnings on systems 9123with 9124large namespaces (especially 64-bit.) Increased the value from 0x400 to 91250x800. 9126 9127Due to universal disagreement as to the meaning of the 'c' in the 9128calloc() 9129function, the ACPI_MEM_CALLOCATE macro has been renamed to 9130ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 9131ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 9132ACPI_FREE. 9133 9134Code and Data Size: These are the sizes for the acpica.lib produced by 9135the 9136Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 9137ACPI 9138driver or OSPM code. The debug version of the code includes the debug 9139output 9140trace mechanism and has a much larger code and data size. Note that these 9141values will vary depending on the efficiency of the compiler and the 9142compiler options used during generation. 9143 9144 Previous Release: 9145 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 9146 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 9147 Current Release: 9148 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9149 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 9150 9151 91522) iASL Compiler/Disassembler: 9153 9154Disassembler: implemented support for symbolic resource descriptor 9155references. If a CreateXxxxField operator references a fixed offset 9156within 9157a 9158resource descriptor, a name is assigned to the descriptor and the offset 9159is 9160translated to the appropriate resource tag and pathname. The addition of 9161this support brings the disassembled code very close to the original ASL 9162source code and helps eliminate run-time errors when the disassembled 9163code 9164is modified (and recompiled) in such a way as to invalidate the original 9165fixed offsets. 9166 9167Implemented support for a Descriptor Name as the last parameter to the 9168ASL 9169Register() macro. This parameter was inadvertently left out of the ACPI 9170specification, and will be added for ACPI 3.0b. 9171 9172Fixed a problem where the use of the "_OSI" string (versus the full path 9173"\_OSI") caused an internal compiler error. ("No back ptr to op") 9174 9175Fixed a problem with the error message that occurs when an invalid string 9176is 9177used for a _HID object (such as one with an embedded asterisk: 9178"*PNP010A".) 9179The correct message is now displayed. 9180 9181---------------------------------------- 918217 February 2006. Summary of changes for version 20060217: 9183 91841) ACPI CA Core Subsystem: 9185 9186Implemented a change to the IndexField support to match the behavior of 9187the 9188Microsoft AML interpreter. The value written to the Index register is now 9189a 9190byte offset, no longer an index based upon the width of the Data 9191register. 9192This should fix IndexField problems seen on some machines where the Data 9193register is not exactly one byte wide. The ACPI specification will be 9194clarified on this point. 9195 9196Fixed a problem where several resource descriptor types could overrun the 9197internal descriptor buffer due to size miscalculation: VendorShort, 9198VendorLong, and Interrupt. This was noticed on IA64 machines, but could 9199affect all platforms. 9200 9201Fixed a problem where individual resource descriptors were misaligned 9202within 9203the internal buffer, causing alignment faults on IA64 platforms. 9204 9205Code and Data Size: These are the sizes for the acpica.lib produced by 9206the 9207Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 9208ACPI 9209driver or OSPM code. The debug version of the code includes the debug 9210output 9211trace mechanism and has a much larger code and data size. Note that these 9212values will vary depending on the efficiency of the compiler and the 9213compiler options used during generation. 9214 9215 Previous Release: 9216 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9217 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 9218 Current Release: 9219 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 9220 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 9221 9222 92232) iASL Compiler/Disassembler: 9224 9225Implemented support for new reserved names: _WDG and _WED are Microsoft 9226extensions for Windows Instrumentation Management, _TDL is a new ACPI- 9227defined method (Throttling Depth Limit.) 9228 9229Fixed a problem where a zero-length VendorShort or VendorLong resource 9230descriptor was incorrectly emitted as a descriptor of length one. 9231 9232---------------------------------------- 923310 February 2006. Summary of changes for version 20060210: 9234 92351) ACPI CA Core Subsystem: 9236 9237Removed a couple of extraneous ACPI_ERROR messages that appeared during 9238normal execution. These became apparent after the conversion from 9239ACPI_DEBUG_PRINT. 9240 9241Fixed a problem where the CreateField operator could hang if the BitIndex 9242or 9243NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 9244 9245Fixed a problem where a DeRefOf operation on a buffer object incorrectly 9246failed with an exception. This also fixes a couple of related RefOf and 9247DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 9248 9249Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 9250of 9251AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 9252BZ 92535480) 9254 9255Implemented a memory cleanup at the end of the execution of each 9256iteration 9257of an AML While() loop, preventing the accumulation of outstanding 9258objects. 9259(Valery Podrezov, BZ 5427) 9260 9261Eliminated a chunk of duplicate code in the object resolution code. 9262(Valery 9263Podrezov, BZ 5336) 9264 9265Fixed several warnings during the 64-bit code generation. 9266 9267The AcpiSrc source code conversion tool now inserts one line of 9268whitespace 9269after an if() statement that is followed immediately by a comment, 9270improving 9271readability of the Linux code. 9272 9273Code and Data Size: The current and previous library sizes for the core 9274subsystem are shown below. These are the code and data sizes for the 9275acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9276These 9277values do not include any ACPI driver or OSPM code. The debug version of 9278the 9279code includes the debug output trace mechanism and has a much larger code 9280and data size. Note that these values will vary depending on the 9281efficiency 9282of the compiler and the compiler options used during generation. 9283 9284 Previous Release: 9285 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 9286 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 9287 Current Release: 9288 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9289 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 9290 9291 92922) iASL Compiler/Disassembler: 9293 9294Fixed a problem with the disassembly of a BankField operator with a 9295complex 9296expression for the BankValue parameter. 9297 9298---------------------------------------- 929927 January 2006. Summary of changes for version 20060127: 9300 93011) ACPI CA Core Subsystem: 9302 9303Implemented support in the Resource Manager to allow unresolved 9304namestring 9305references within resource package objects for the _PRT method. This 9306support 9307is in addition to the previously implemented unresolved reference support 9308within the AML parser. If the interpreter slack mode is enabled, these 9309unresolved references will be passed through to the caller as a NULL 9310package 9311entry. 9312 9313Implemented and deployed new macros and functions for error and warning 9314messages across the subsystem. These macros are simpler and generate less 9315code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 9316ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 9317macros remain defined to allow ACPI drivers time to migrate to the new 9318macros. 9319 9320Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of 9321the 9322Acquire/Release Lock OSL interfaces. 9323 9324Fixed a problem where Alias ASL operators are sometimes not correctly 9325resolved, in both the interpreter and the iASL compiler. 9326 9327Fixed several problems with the implementation of the 9328ConcatenateResTemplate 9329ASL operator. As per the ACPI specification, zero length buffers are now 9330treated as a single EndTag. One-length buffers always cause a fatal 9331exception. Non-zero length buffers that do not end with a full 2-byte 9332EndTag 9333cause a fatal exception. 9334 9335Fixed a possible structure overwrite in the AcpiGetObjectInfo external 9336interface. (With assistance from Thomas Renninger) 9337 9338Code and Data Size: The current and previous library sizes for the core 9339subsystem are shown below. These are the code and data sizes for the 9340acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9341These 9342values do not include any ACPI driver or OSPM code. The debug version of 9343the 9344code includes the debug output trace mechanism and has a much larger code 9345and data size. Note that these values will vary depending on the 9346efficiency 9347of the compiler and the compiler options used during generation. 9348 9349 Previous Release: 9350 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 9351 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 9352 Current Release: 9353 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 9354 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 9355 9356 93572) iASL Compiler/Disassembler: 9358 9359Fixed an internal error that was generated for any forward references to 9360ASL 9361Alias objects. 9362 9363---------------------------------------- 936413 January 2006. Summary of changes for version 20060113: 9365 93661) ACPI CA Core Subsystem: 9367 9368Added 2006 copyright to all module headers and signons. This affects 9369virtually every file in the ACPICA core subsystem, iASL compiler, and the 9370utilities. 9371 9372Enhanced the ACPICA error reporting in order to simplify user migration 9373to 9374the non-debug version of ACPICA. Replaced all instances of the 9375ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN 9376debug 9377levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 9378respectively. This preserves all error and warning messages in the non- 9379debug 9380version of the ACPICA code (this has been referred to as the "debug lite" 9381option.) Over 200 cases were converted to create a total of over 380 9382error/warning messages across the ACPICA code. This increases the code 9383and 9384data size of the default non-debug version of the code somewhat (about 938513K), 9386but all error/warning reporting may be disabled if desired (and code 9387eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 9388configuration option. The size of the debug version of ACPICA remains 9389about 9390the same. 9391 9392Fixed a memory leak within the AML Debugger "Set" command. One object was 9393not properly deleted for every successful invocation of the command. 9394 9395Code and Data Size: The current and previous library sizes for the core 9396subsystem are shown below. These are the code and data sizes for the 9397acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9398These 9399values do not include any ACPI driver or OSPM code. The debug version of 9400the 9401code includes the debug output trace mechanism and has a much larger code 9402and data size. Note that these values will vary depending on the 9403efficiency 9404of the compiler and the compiler options used during generation. 9405 9406 Previous Release: 9407 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 9408 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 9409 Current Release: 9410 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 9411 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 9412 9413 94142) iASL Compiler/Disassembler: 9415 9416The compiler now officially supports the ACPI 3.0a specification that was 9417released on December 30, 2005. (Specification is available at 9418www.acpi.info) 9419 9420---------------------------------------- 942116 December 2005. Summary of changes for version 20051216: 9422 94231) ACPI CA Core Subsystem: 9424 9425Implemented optional support to allow unresolved names within ASL Package 9426objects. A null object is inserted in the package when a named reference 9427cannot be located in the current namespace. Enabled via the interpreter 9428slack flag, this should eliminate AE_NOT_FOUND exceptions seen on 9429machines 9430that contain such code. 9431 9432Implemented an optimization to the initialization sequence that can 9433improve 9434boot time. During ACPI device initialization, the _STA method is now run 9435if 9436and only if the _INI method exists. The _STA method is used to determine 9437if 9438the device is present; An _INI can only be run if _STA returns present, 9439but 9440it is a waste of time to run the _STA method if the _INI does not exist. 9441(Prototype and assistance from Dong Wei) 9442 9443Implemented use of the C99 uintptr_t for the pointer casting macros if it 9444is 9445available in the current compiler. Otherwise, the default (void *) cast 9446is 9447used as before. 9448 9449Fixed some possible memory leaks found within the execution path of the 9450Break, Continue, If, and CreateField operators. (Valery Podrezov) 9451 9452Fixed a problem introduced in the 20051202 release where an exception is 9453generated during method execution if a control method attempts to declare 9454another method. 9455 9456Moved resource descriptor string constants that are used by both the AML 9457disassembler and AML debugger to the common utilities directory so that 9458these components are independent. 9459 9460Implemented support in the AcpiExec utility (-e switch) to globally 9461ignore 9462exceptions during control method execution (method is not aborted.) 9463 9464Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 9465generation. 9466 9467Code and Data Size: The current and previous library sizes for the core 9468subsystem are shown below. These are the code and data sizes for the 9469acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9470These 9471values do not include any ACPI driver or OSPM code. The debug version of 9472the 9473code includes the debug output trace mechanism and has a much larger code 9474and data size. Note that these values will vary depending on the 9475efficiency 9476of the compiler and the compiler options used during generation. 9477 9478 Previous Release: 9479 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9480 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 9481 Current Release: 9482 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 9483 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 9484 9485 94862) iASL Compiler/Disassembler: 9487 9488Fixed a problem where a CPU stack overflow fault could occur if a 9489recursive 9490method call was made from within a Return statement. 9491 9492---------------------------------------- 949302 December 2005. Summary of changes for version 20051202: 9494 94951) ACPI CA Core Subsystem: 9496 9497Modified the parsing of control methods to no longer create namespace 9498objects during the first pass of the parse. Objects are now created only 9499during the execute phase, at the moment the namespace creation operator 9500is 9501encountered in the AML (Name, OperationRegion, CreateByteField, etc.) 9502This 9503should eliminate ALREADY_EXISTS exceptions seen on some machines where 9504reentrant control methods are protected by an AML mutex. The mutex will 9505now 9506correctly block multiple threads from attempting to create the same 9507object 9508more than once. 9509 9510Increased the number of available Owner Ids for namespace object tracking 9511from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 9512on 9513some machines with a large number of ACPI tables (either static or 9514dynamic). 9515 9516Fixed a problem with the AcpiExec utility where a fault could occur when 9517the 9518-b switch (batch mode) is used. 9519 9520Enhanced the namespace dump routine to output the owner ID for each 9521namespace object. 9522 9523Code and Data Size: The current and previous library sizes for the core 9524subsystem are shown below. These are the code and data sizes for the 9525acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9526These 9527values do not include any ACPI driver or OSPM code. The debug version of 9528the 9529code includes the debug output trace mechanism and has a much larger code 9530and data size. Note that these values will vary depending on the 9531efficiency 9532of the compiler and the compiler options used during generation. 9533 9534 Previous Release: 9535 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9536 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9537 Current Release: 9538 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9539 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 9540 9541 95422) iASL Compiler/Disassembler: 9543 9544Fixed a parse error during compilation of certain Switch/Case constructs. 9545To 9546simplify the parse, the grammar now allows for multiple Default 9547statements 9548and this error is now detected and flagged during the analysis phase. 9549 9550Disassembler: The disassembly now includes the contents of the original 9551table header within a comment at the start of the file. This includes the 9552name and version of the original ASL compiler. 9553 9554---------------------------------------- 955517 November 2005. Summary of changes for version 20051117: 9556 95571) ACPI CA Core Subsystem: 9558 9559Fixed a problem in the AML parser where the method thread count could be 9560decremented below zero if any errors occurred during the method parse 9561phase. 9562This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 9563machines. 9564This also fixed a related regression with the mechanism that detects and 9565corrects methods that cannot properly handle reentrancy (related to the 9566deployment of the new OwnerId mechanism.) 9567 9568Eliminated the pre-parsing of control methods (to detect errors) during 9569table load. Related to the problem above, this was causing unwind issues 9570if 9571any errors occurred during the parse, and it seemed to be overkill. A 9572table 9573load should not be aborted if there are problems with any single control 9574method, thus rendering this feature rather pointless. 9575 9576Fixed a problem with the new table-driven resource manager where an 9577internal 9578buffer overflow could occur for small resource templates. 9579 9580Implemented a new external interface, AcpiGetVendorResource. This 9581interface 9582will find and return a vendor-defined resource descriptor within a _CRS 9583or 9584_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 9585Helgaas. 9586 9587Removed the length limit (200) on string objects as per the upcoming ACPI 95883.0A specification. This affects the following areas of the interpreter: 95891) 9590any implicit conversion of a Buffer to a String, 2) a String object 9591result 9592of the ASL Concatentate operator, 3) the String object result of the ASL 9593ToString operator. 9594 9595Fixed a problem in the Windows OS interface layer (OSL) where a 9596WAIT_FOREVER 9597on a semaphore object would incorrectly timeout. This allows the 9598multithreading features of the AcpiExec utility to work properly under 9599Windows. 9600 9601Updated the Linux makefiles for the iASL compiler and AcpiExec to include 9602the recently added file named "utresrc.c". 9603 9604Code and Data Size: The current and previous library sizes for the core 9605subsystem are shown below. These are the code and data sizes for the 9606acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9607These 9608values do not include any ACPI driver or OSPM code. The debug version of 9609the 9610code includes the debug output trace mechanism and has a much larger code 9611and data size. Note that these values will vary depending on the 9612efficiency 9613of the compiler and the compiler options used during generation. 9614 9615 Previous Release: 9616 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 9617 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9618 Current Release: 9619 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9620 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9621 9622 96232) iASL Compiler/Disassembler: 9624 9625Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 9626specification. For the iASL compiler, this means that string literals 9627within 9628the source ASL can be of any length. 9629 9630Enhanced the listing output to dump the AML code for resource descriptors 9631immediately after the ASL code for each descriptor, instead of in a block 9632at 9633the end of the entire resource template. 9634 9635Enhanced the compiler debug output to dump the entire original parse tree 9636constructed during the parse phase, before any transforms are applied to 9637the 9638tree. The transformed tree is dumped also. 9639 9640---------------------------------------- 964102 November 2005. Summary of changes for version 20051102: 9642 96431) ACPI CA Core Subsystem: 9644 9645Modified the subsystem initialization sequence to improve GPE support. 9646The 9647GPE initialization has been split into two parts in order to defer 9648execution 9649of the _PRW methods (Power Resources for Wake) until after the hardware 9650is 9651fully initialized and the SCI handler is installed. This allows the _PRW 9652methods to access fields protected by the Global Lock. This will fix 9653systems 9654where a NO_GLOBAL_LOCK exception has been seen during initialization. 9655 9656Converted the ACPI internal object disassemble and display code within 9657the 9658AML debugger to fully table-driven operation, reducing code size and 9659increasing maintainability. 9660 9661Fixed a regression with the ConcatenateResTemplate() ASL operator 9662introduced 9663in the 20051021 release. 9664 9665Implemented support for "local" internal ACPI object types within the 9666debugger "Object" command and the AcpiWalkNamespace external interfaces. 9667These local types include RegionFields, BankFields, IndexFields, Alias, 9668and 9669reference objects. 9670 9671Moved common AML resource handling code into a new file, "utresrc.c". 9672This 9673code is shared by both the Resource Manager and the AML Debugger. 9674 9675Code and Data Size: The current and previous library sizes for the core 9676subsystem are shown below. These are the code and data sizes for the 9677acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9678These 9679values do not include any ACPI driver or OSPM code. The debug version of 9680the 9681code includes the debug output trace mechanism and has a much larger code 9682and data size. Note that these values will vary depending on the 9683efficiency 9684of the compiler and the compiler options used during generation. 9685 9686 Previous Release: 9687 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 9688 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 9689 Current Release: 9690 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 9691 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9692 9693 96942) iASL Compiler/Disassembler: 9695 9696Fixed a problem with very large initializer lists (more than 4000 9697elements) 9698for both Buffer and Package objects where the parse stack could overflow. 9699 9700Enhanced the pre-compile source code scan for non-ASCII characters to 9701ignore 9702characters within comment fields. The scan is now always performed and is 9703no 9704longer optional, detecting invalid characters within a source file 9705immediately rather than during the parse phase or later. 9706 9707Enhanced the ASL grammar definition to force early reductions on all 9708list- 9709style grammar elements so that the overall parse stack usage is greatly 9710reduced. This should improve performance and reduce the possibility of 9711parse 9712stack overflow. 9713 9714Eliminated all reduce/reduce conflicts in the iASL parser generation. 9715Also, 9716with the addition of a %expected statement, the compiler generates from 9717source with no warnings. 9718 9719Fixed a possible segment fault in the disassembler if the input filename 9720does not contain a "dot" extension (Thomas Renninger). 9721 9722---------------------------------------- 972321 October 2005. Summary of changes for version 20051021: 9724 97251) ACPI CA Core Subsystem: 9726 9727Implemented support for the EM64T and other x86-64 processors. This 9728essentially entails recognizing that these processors support non-aligned 9729memory transfers. Previously, all 64-bit processors were assumed to lack 9730hardware support for non-aligned transfers. 9731 9732Completed conversion of the Resource Manager to nearly full table-driven 9733operation. Specifically, the resource conversion code (convert AML to 9734internal format and the reverse) and the debug code to dump internal 9735resource descriptors are fully table-driven, reducing code and data size 9736and 9737improving maintainability. 9738 9739The OSL interfaces for Acquire and Release Lock now use a 64-bit flag 9740word 9741on 64-bit processors instead of a fixed 32-bit word. (With assistance 9742from 9743Alexey Starikovskiy) 9744 9745Implemented support within the resource conversion code for the Type- 9746Specific byte within the various ACPI 3.0 *WordSpace macros. 9747 9748Fixed some issues within the resource conversion code for the type- 9749specific 9750flags for both Memory and I/O address resource descriptors. For Memory, 9751implemented support for the MTP and TTP flags. For I/O, split the TRS and 9752TTP flags into two separate fields. 9753 9754Code and Data Size: The current and previous library sizes for the core 9755subsystem are shown below. These are the code and data sizes for the 9756acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9757These 9758values do not include any ACPI driver or OSPM code. The debug version of 9759the 9760code includes the debug output trace mechanism and has a much larger code 9761and data size. Note that these values will vary depending on the 9762efficiency 9763of the compiler and the compiler options used during generation. 9764 9765 Previous Release: 9766 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 9767 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 9768 Current Release: 9769 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 9770 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 9771 9772 9773 97742) iASL Compiler/Disassembler: 9775 9776Relaxed a compiler restriction that disallowed a ResourceIndex byte if 9777the 9778corresponding ResourceSource string was not also present in a resource 9779descriptor declaration. This restriction caused problems with existing 9780AML/ASL code that includes the Index byte without the string. When such 9781AML 9782was disassembled, it could not be compiled without modification. Further, 9783the modified code created a resource template with a different size than 9784the 9785original, breaking code that used fixed offsets into the resource 9786template 9787buffer. 9788 9789Removed a recent feature of the disassembler to ignore a lone 9790ResourceIndex 9791byte. This byte is now emitted if present so that the exact AML can be 9792reproduced when the disassembled code is recompiled. 9793 9794Improved comments and text alignment for the resource descriptor code 9795emitted by the disassembler. 9796 9797Implemented disassembler support for the ACPI 3.0 AccessSize field within 9798a 9799Register() resource descriptor. 9800 9801---------------------------------------- 980230 September 2005. Summary of changes for version 20050930: 9803 98041) ACPI CA Core Subsystem: 9805 9806Completed a major overhaul of the Resource Manager code - specifically, 9807optimizations in the area of the AML/internal resource conversion code. 9808The 9809code has been optimized to simplify and eliminate duplicated code, CPU 9810stack 9811use has been decreased by optimizing function parameters and local 9812variables, and naming conventions across the manager have been 9813standardized 9814for clarity and ease of maintenance (this includes function, parameter, 9815variable, and struct/typedef names.) The update may force changes in some 9816driver code, depending on how resources are handled by the host OS. 9817 9818All Resource Manager dispatch and information tables have been moved to a 9819single location for clarity and ease of maintenance. One new file was 9820created, named "rsinfo.c". 9821 9822The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 9823guarantee that the argument is not evaluated twice, making them less 9824prone 9825to macro side-effects. However, since there exists the possibility of 9826additional stack use if a particular compiler cannot optimize them (such 9827as 9828in the debug generation case), the original macros are optionally 9829available. 9830Note that some invocations of the return_VALUE macro may now cause size 9831mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 9832to 9833eliminate these. (From Randy Dunlap) 9834 9835Implemented a new mechanism to enable debug tracing for individual 9836control 9837methods. A new external interface, AcpiDebugTrace, is provided to enable 9838this mechanism. The intent is to allow the host OS to easily enable and 9839disable tracing for problematic control methods. This interface can be 9840easily exposed to a user or debugger interface if desired. See the file 9841psxface.c for details. 9842 9843AcpiUtCallocate will now return a valid pointer if a length of zero is 9844specified - a length of one is used and a warning is issued. This matches 9845the behavior of AcpiUtAllocate. 9846 9847Code and Data Size: The current and previous library sizes for the core 9848subsystem are shown below. These are the code and data sizes for the 9849acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9850These 9851values do not include any ACPI driver or OSPM code. The debug version of 9852the 9853code includes the debug output trace mechanism and has a much larger code 9854and data size. Note that these values will vary depending on the 9855efficiency 9856of the compiler and the compiler options used during generation. 9857 9858 Previous Release: 9859 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 9860 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 9861 Current Release: 9862 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 9863 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 9864 9865 98662) iASL Compiler/Disassembler: 9867 9868A remark is issued if the effective compile-time length of a package or 9869buffer is zero. Previously, this was a warning. 9870 9871---------------------------------------- 987216 September 2005. Summary of changes for version 20050916: 9873 98741) ACPI CA Core Subsystem: 9875 9876Fixed a problem within the Resource Manager where support for the Generic 9877Register descriptor was not fully implemented. This descriptor is now 9878fully 9879recognized, parsed, disassembled, and displayed. 9880 9881Completely restructured the Resource Manager code to utilize table-driven 9882dispatch and lookup, eliminating many of the large switch() statements. 9883This 9884reduces overall subsystem code size and code complexity. Affects the 9885resource parsing and construction, disassembly, and debug dump output. 9886 9887Cleaned up and restructured the debug dump output for all resource 9888descriptors. Improved readability of the output and reduced code size. 9889 9890Fixed a problem where changes to internal data structures caused the 9891optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 9892 9893Code and Data Size: The current and previous library sizes for the core 9894subsystem are shown below. These are the code and data sizes for the 9895acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9896These 9897values do not include any ACPI driver or OSPM code. The debug version of 9898the 9899code includes the debug output trace mechanism and has a much larger code 9900and data size. Note that these values will vary depending on the 9901efficiency 9902of the compiler and the compiler options used during generation. 9903 9904 Previous Release: 9905 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 9906 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 9907 Current Release: 9908 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 9909 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 9910 9911 99122) iASL Compiler/Disassembler: 9913 9914Updated the disassembler to automatically insert an EndDependentFn() 9915macro 9916into the ASL stream if this macro is missing in the original AML code, 9917simplifying compilation of the resulting ASL module. 9918 9919Fixed a problem in the disassembler where a disassembled ResourceSource 9920string (within a large resource descriptor) was not surrounded by quotes 9921and 9922not followed by a comma, causing errors when the resulting ASL module was 9923compiled. Also, escape sequences within a ResourceSource string are now 9924handled correctly (especially "\\") 9925 9926---------------------------------------- 992702 September 2005. Summary of changes for version 20050902: 9928 99291) ACPI CA Core Subsystem: 9930 9931Fixed a problem with the internal Owner ID allocation and deallocation 9932mechanisms for control method execution and recursive method invocation. 9933This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 9934messages seen on some systems. Recursive method invocation depth is 9935currently limited to 255. (Alexey Starikovskiy) 9936 9937Completely eliminated all vestiges of support for the "module-level 9938executable code" until this support is fully implemented and debugged. 9939This 9940should eliminate the NO_RETURN_VALUE exceptions seen during table load on 9941some systems that invoke this support. 9942 9943Fixed a problem within the resource manager code where the transaction 9944flags 9945for a 64-bit address descriptor were handled incorrectly in the type- 9946specific flag byte. 9947 9948Consolidated duplicate code within the address descriptor resource 9949manager 9950code, reducing overall subsystem code size. 9951 9952Fixed a fault when using the AML debugger "disassemble" command to 9953disassemble individual control methods. 9954 9955Removed references to the "release_current" directory within the Unix 9956release package. 9957 9958Code and Data Size: The current and previous core subsystem library sizes 9959are shown below. These are the code and data sizes for the acpica.lib 9960produced by the Microsoft Visual C++ 6.0 compiler. These values do not 9961include any ACPI driver or OSPM code. The debug version of the code 9962includes 9963the debug output trace mechanism and has a much larger code and data 9964size. 9965Note that these values will vary depending on the efficiency of the 9966compiler 9967and the compiler options used during generation. 9968 9969 Previous Release: 9970 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 9971 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 9972 Current Release: 9973 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 9974 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 9975 9976 99772) iASL Compiler/Disassembler: 9978 9979Implemented an error check for illegal duplicate values in the interrupt 9980and 9981dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 9982Interrupt(). 9983 9984Implemented error checking for the Irq() and IrqNoFlags() macros to 9985detect 9986too many values in the interrupt list (16 max) and invalid values in the 9987list (range 0 - 15) 9988 9989The maximum length string literal within an ASL file is now restricted to 9990200 characters as per the ACPI specification. 9991 9992Fixed a fault when using the -ln option (generate namespace listing). 9993 9994Implemented an error check to determine if a DescriptorName within a 9995resource descriptor has already been used within the current scope. 9996 9997---------------------------------------- 999815 August 2005. Summary of changes for version 20050815: 9999 100001) ACPI CA Core Subsystem: 10001 10002Implemented a full bytewise compare to determine if a table load request 10003is 10004attempting to load a duplicate table. The compare is performed if the 10005table 10006signatures and table lengths match. This will allow different tables with 10007the same OEM Table ID and revision to be loaded - probably against the 10008ACPI 10009specification, but discovered in the field nonetheless. 10010 10011Added the changes.txt logfile to each of the zipped release packages. 10012 10013Code and Data Size: Current and previous core subsystem library sizes are 10014shown below. These are the code and data sizes for the acpica.lib 10015produced 10016by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10017any ACPI driver or OSPM code. The debug version of the code includes the 10018debug output trace mechanism and has a much larger code and data size. 10019Note 10020that these values will vary depending on the efficiency of the compiler 10021and 10022the compiler options used during generation. 10023 10024 Previous Release: 10025 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 10026 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 10027 Current Release: 10028 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 10029 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 10030 10031 100322) iASL Compiler/Disassembler: 10033 10034Fixed a problem where incorrect AML code could be generated for Package 10035objects if optimization is disabled (via the -oa switch). 10036 10037Fixed a problem with where incorrect AML code is generated for variable- 10038length packages when the package length is not specified and the number 10039of 10040initializer values is greater than 255. 10041 10042 10043---------------------------------------- 1004429 July 2005. Summary of changes for version 20050729: 10045 100461) ACPI CA Core Subsystem: 10047 10048Implemented support to ignore an attempt to install/load a particular 10049ACPI 10050table more than once. Apparently there exists BIOS code that repeatedly 10051attempts to load the same SSDT upon certain events. With assistance from 10052Venkatesh Pallipadi. 10053 10054Restructured the main interface to the AML parser in order to correctly 10055handle all exceptional conditions. This will prevent leakage of the 10056OwnerId 10057resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 10058some 10059machines. With assistance from Alexey Starikovskiy. 10060 10061Support for "module level code" has been disabled in this version due to 10062a 10063number of issues that have appeared on various machines. The support can 10064be 10065enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 10066compilation. When the issues are fully resolved, the code will be enabled 10067by 10068default again. 10069 10070Modified the internal functions for debug print support to define the 10071FunctionName parameter as a (const char *) for compatibility with 10072compiler 10073built-in macros such as __FUNCTION__, etc. 10074 10075Linted the entire ACPICA source tree for both 32-bit and 64-bit. 10076 10077Implemented support to display an object count summary for the AML 10078Debugger 10079commands Object and Methods. 10080 10081Code and Data Size: Current and previous core subsystem library sizes are 10082shown below. These are the code and data sizes for the acpica.lib 10083produced 10084by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10085any ACPI driver or OSPM code. The debug version of the code includes the 10086debug output trace mechanism and has a much larger code and data size. 10087Note 10088that these values will vary depending on the efficiency of the compiler 10089and 10090the compiler options used during generation. 10091 10092 Previous Release: 10093 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 10094 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 10095 Current Release: 10096 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 10097 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 10098 10099 101002) iASL Compiler/Disassembler: 10101 10102Fixed a regression that appeared in the 20050708 version of the compiler 10103where an error message was inadvertently emitted for invocations of the 10104_OSI 10105reserved control method. 10106 10107---------------------------------------- 1010808 July 2005. Summary of changes for version 20050708: 10109 101101) ACPI CA Core Subsystem: 10111 10112The use of the CPU stack in the debug version of the subsystem has been 10113considerably reduced. Previously, a debug structure was declared in every 10114function that used the debug macros. This structure has been removed in 10115favor of declaring the individual elements as parameters to the debug 10116functions. This reduces the cumulative stack use during nested execution 10117of 10118ACPI function calls at the cost of a small increase in the code size of 10119the 10120debug version of the subsystem. With assistance from Alexey Starikovskiy 10121and 10122Len Brown. 10123 10124Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 10125headers to define a macro that will return the current function name at 10126runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 10127by 10128the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 10129compiler-dependent header, the function name is saved on the CPU stack 10130(one 10131pointer per function.) This mechanism is used because apparently there 10132exists no standard ANSI-C defined macro that that returns the function 10133name. 10134 10135Redesigned and reimplemented the "Owner ID" mechanism used to track 10136namespace objects created/deleted by ACPI tables and control method 10137execution. A bitmap is now used to allocate and free the IDs, thus 10138solving 10139the wraparound problem present in the previous implementation. The size 10140of 10141the namespace node descriptor was reduced by 2 bytes as a result (Alexey 10142Starikovskiy). 10143 10144Removed the UINT32_BIT and UINT16_BIT types that were used for the 10145bitfield 10146flag definitions within the headers for the predefined ACPI tables. These 10147have been replaced by UINT8_BIT in order to increase the code portability 10148of 10149the subsystem. If the use of UINT8 remains a problem, we may be forced to 10150eliminate bitfields entirely because of a lack of portability. 10151 10152Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 10153This 10154is a frequently used function and this improvement increases the 10155performance 10156of the entire subsystem (Alexey Starikovskiy). 10157 10158Fixed several possible memory leaks and the inverse - premature object 10159deletion (Alexey Starikovskiy). 10160 10161Code and Data Size: Current and previous core subsystem library sizes are 10162shown below. These are the code and data sizes for the acpica.lib 10163produced 10164by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10165any ACPI driver or OSPM code. The debug version of the code includes the 10166debug output trace mechanism and has a much larger code and data size. 10167Note 10168that these values will vary depending on the efficiency of the compiler 10169and 10170the compiler options used during generation. 10171 10172 Previous Release: 10173 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 10174 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 10175 Current Release: 10176 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 10177 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 10178 10179---------------------------------------- 1018024 June 2005. Summary of changes for version 20050624: 10181 101821) ACPI CA Core Subsystem: 10183 10184Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 10185the host-defined cache object. This allows the OSL implementation to 10186define 10187and type this object in any manner desired, simplifying the OSL 10188implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 10189Linux, and should be defined in the OS-specific header file for other 10190operating systems as required. 10191 10192Changed the interface to AcpiOsAcquireObject to directly return the 10193requested object as the function return (instead of ACPI_STATUS.) This 10194change was made for performance reasons, since this is the purpose of the 10195interface in the first place. AcpiOsAcquireObject is now similar to the 10196AcpiOsAllocate interface. 10197 10198Implemented a new AML debugger command named Businfo. This command 10199displays 10200information about all devices that have an associate _PRT object. The 10201_ADR, 10202_HID, _UID, and _CID are displayed for these devices. 10203 10204Modified the initialization sequence in AcpiInitializeSubsystem to call 10205the 10206OSL interface AcpiOslInitialize first, before any local initialization. 10207This 10208change was required because the global initialization now calls OSL 10209interfaces. 10210 10211Enhanced the Dump command to display the entire contents of Package 10212objects 10213(including all sub-objects and their values.) 10214 10215Restructured the code base to split some files because of size and/or 10216because the code logically belonged in a separate file. New files are 10217listed 10218below. All makefiles and project files included in the ACPI CA release 10219have 10220been updated. 10221 utilities/utcache.c /* Local cache interfaces */ 10222 utilities/utmutex.c /* Local mutex support */ 10223 utilities/utstate.c /* State object support */ 10224 interpreter/parser/psloop.c /* Main AML parse loop */ 10225 10226Code and Data Size: Current and previous core subsystem library sizes are 10227shown below. These are the code and data sizes for the acpica.lib 10228produced 10229by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10230any ACPI driver or OSPM code. The debug version of the code includes the 10231debug output trace mechanism and has a much larger code and data size. 10232Note 10233that these values will vary depending on the efficiency of the compiler 10234and 10235the compiler options used during generation. 10236 10237 Previous Release: 10238 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 10239 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 10240 Current Release: 10241 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 10242 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 10243 10244 102452) iASL Compiler/Disassembler: 10246 10247Fixed a regression introduced in version 20050513 where the use of a 10248Package 10249object within a Case() statement caused a compile time exception. The 10250original behavior has been restored (a Match() operator is emitted.) 10251 10252---------------------------------------- 1025317 June 2005. Summary of changes for version 20050617: 10254 102551) ACPI CA Core Subsystem: 10256 10257Moved the object cache operations into the OS interface layer (OSL) to 10258allow 10259the host OS to handle these operations if desired (for example, the Linux 10260OSL will invoke the slab allocator). This support is optional; the 10261compile 10262time define ACPI_USE_LOCAL_CACHE may be used to utilize the original 10263cache 10264code in the ACPI CA core. The new OSL interfaces are shown below. See 10265utalloc.c for an example implementation, and acpiosxf.h for the exact 10266interface definitions. With assistance from Alexey Starikovskiy. 10267 AcpiOsCreateCache 10268 AcpiOsDeleteCache 10269 AcpiOsPurgeCache 10270 AcpiOsAcquireObject 10271 AcpiOsReleaseObject 10272 10273Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 10274return 10275and restore a flags parameter. This fits better with many OS lock models. 10276Note: the current execution state (interrupt handler or not) is no longer 10277passed to these interfaces. If necessary, the OSL must determine this 10278state 10279by itself, a simple and fast operation. With assistance from Alexey 10280Starikovskiy. 10281 10282Fixed a problem in the ACPI table handling where a valid XSDT was assumed 10283present if the revision of the RSDP was 2 or greater. According to the 10284ACPI 10285specification, the XSDT is optional in all cases, and the table manager 10286therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 10287Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs 10288contain 10289only the RSDT. 10290 10291Fixed an interpreter problem with the Mid() operator in the case of an 10292input 10293string where the resulting output string is of zero length. It now 10294correctly 10295returns a valid, null terminated string object instead of a string object 10296with a null pointer. 10297 10298Fixed a problem with the control method argument handling to allow a 10299store 10300to an Arg object that already contains an object of type Device. The 10301Device 10302object is now correctly overwritten. Previously, an error was returned. 10303 10304 10305Enhanced the debugger Find command to emit object values in addition to 10306the 10307found object pathnames. The output format is the same as the dump 10308namespace 10309command. 10310 10311Enhanced the debugger Set command. It now has the ability to set the 10312value 10313of any Named integer object in the namespace (Previously, only method 10314locals 10315and args could be set.) 10316 10317Code and Data Size: Current and previous core subsystem library sizes are 10318shown below. These are the code and data sizes for the acpica.lib 10319produced 10320by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10321any ACPI driver or OSPM code. The debug version of the code includes the 10322debug output trace mechanism and has a much larger code and data size. 10323Note 10324that these values will vary depending on the efficiency of the compiler 10325and 10326the compiler options used during generation. 10327 10328 Previous Release: 10329 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 10330 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 10331 Current Release: 10332 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 10333 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 10334 10335 103362) iASL Compiler/Disassembler: 10337 10338Fixed a regression in the disassembler where if/else/while constructs 10339were 10340output incorrectly. This problem was introduced in the previous release 10341(20050526). This problem also affected the single-step disassembly in the 10342debugger. 10343 10344Fixed a problem where compiling the reserved _OSI method would randomly 10345(but 10346rarely) produce compile errors. 10347 10348Enhanced the disassembler to emit compilable code in the face of 10349incorrect 10350AML resource descriptors. If the optional ResourceSourceIndex is present, 10351but the ResourceSource is not, do not emit the ResourceSourceIndex in the 10352disassembly. Otherwise, the resulting code cannot be compiled without 10353errors. 10354 10355---------------------------------------- 1035626 May 2005. Summary of changes for version 20050526: 10357 103581) ACPI CA Core Subsystem: 10359 10360Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 10361the module level (not within a control method.) These opcodes are 10362executed 10363exactly once at the time the table is loaded. This type of code was legal 10364up 10365until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 10366in 10367order to provide backwards compatibility with earlier BIOS 10368implementations. 10369This eliminates the "Encountered executable code at module level" warning 10370that was previously generated upon detection of such code. 10371 10372Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 10373inadvertently be generated during the lookup of namespace objects in the 10374second pass parse of ACPI tables and control methods. It appears that 10375this 10376problem could occur during the resolution of forward references to 10377namespace 10378objects. 10379 10380Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 10381corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 10382allows the deadlock detection debug code to be compiled out in the normal 10383case, improving mutex performance (and overall subsystem performance) 10384considerably. 10385 10386Implemented a handful of miscellaneous fixes for possible memory leaks on 10387error conditions and error handling control paths. These fixes were 10388suggested by FreeBSD and the Coverity Prevent source code analysis tool. 10389 10390Added a check for a null RSDT pointer in AcpiGetFirmwareTable 10391(tbxfroot.c) 10392to prevent a fault in this error case. 10393 10394Code and Data Size: Current and previous core subsystem library sizes are 10395shown below. These are the code and data sizes for the acpica.lib 10396produced 10397by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10398any ACPI driver or OSPM code. The debug version of the code includes the 10399debug output trace mechanism and has a much larger code and data size. 10400Note 10401that these values will vary depending on the efficiency of the compiler 10402and 10403the compiler options used during generation. 10404 10405 Previous Release: 10406 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10407 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10408 Current Release: 10409 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 10410 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 10411 10412 104132) iASL Compiler/Disassembler: 10414 10415Implemented support to allow Type 1 and Type 2 ASL operators to appear at 10416the module level (not within a control method.) These operators will be 10417executed once at the time the table is loaded. This type of code was 10418legal 10419up until the release of ACPI 2.0B (2002) and is now supported by the iASL 10420compiler in order to provide backwards compatibility with earlier BIOS 10421ASL 10422code. 10423 10424The ACPI integer width (specified via the table revision ID or the -r 10425override, 32 or 64 bits) is now used internally during compile-time 10426constant 10427folding to ensure that constants are truncated to 32 bits if necessary. 10428Previously, the revision ID value was only emitted in the AML table 10429header. 10430 10431An error message is now generated for the Mutex and Method operators if 10432the 10433SyncLevel parameter is outside the legal range of 0 through 15. 10434 10435Fixed a problem with the Method operator ParameterTypes list handling 10436(ACPI 104373.0). Previously, more than 2 types or 2 arguments generated a syntax 10438error. 10439The actual underlying implementation of method argument typechecking is 10440still under development, however. 10441 10442---------------------------------------- 1044313 May 2005. Summary of changes for version 20050513: 10444 104451) ACPI CA Core Subsystem: 10446 10447Implemented support for PCI Express root bridges -- added support for 10448device 10449PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 10450 10451The interpreter now automatically truncates incoming 64-bit constants to 1045232 10453bits if currently executing out of a 32-bit ACPI table (Revision < 2). 10454This 10455also affects the iASL compiler constant folding. (Note: as per below, the 10456iASL compiler no longer allows 64-bit constants within 32-bit tables.) 10457 10458Fixed a problem where string and buffer objects with "static" pointers 10459(pointers to initialization data within an ACPI table) were not handled 10460consistently. The internal object copy operation now always copies the 10461data 10462to a newly allocated buffer, regardless of whether the source object is 10463static or not. 10464 10465Fixed a problem with the FromBCD operator where an implicit result 10466conversion was improperly performed while storing the result to the 10467target 10468operand. Since this is an "explicit conversion" operator, the implicit 10469conversion should never be performed on the output. 10470 10471Fixed a problem with the CopyObject operator where a copy to an existing 10472named object did not always completely overwrite the existing object 10473stored 10474at name. Specifically, a buffer-to-buffer copy did not delete the 10475existing 10476buffer. 10477 10478Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces 10479and 10480structs for consistency. 10481 10482Code and Data Size: Current and previous core subsystem library sizes are 10483shown below. These are the code and data sizes for the acpica.lib 10484produced 10485by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10486any ACPI driver or OSPM code. The debug version of the code includes the 10487debug output trace mechanism and has a much larger code and data size. 10488Note 10489that these values will vary depending on the efficiency of the compiler 10490and 10491the compiler options used during generation. 10492 10493 Previous Release: 10494 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10495 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10496 Current Release: (Same sizes) 10497 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10498 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10499 10500 105012) iASL Compiler/Disassembler: 10502 10503The compiler now emits a warning if an attempt is made to generate a 64- 10504bit 10505integer constant from within a 32-bit ACPI table (Revision < 2). The 10506integer 10507is truncated to 32 bits. 10508 10509Fixed a problem with large package objects: if the static length of the 10510package is greater than 255, the "variable length package" opcode is 10511emitted. Previously, this caused an error. This requires an update to the 10512ACPI spec, since it currently (incorrectly) states that packages larger 10513than 10514255 elements are not allowed. 10515 10516The disassembler now correctly handles variable length packages and 10517packages 10518larger than 255 elements. 10519 10520---------------------------------------- 1052108 April 2005. Summary of changes for version 20050408: 10522 105231) ACPI CA Core Subsystem: 10524 10525Fixed three cases in the interpreter where an "index" argument to an ASL 10526function was still (internally) 32 bits instead of the required 64 bits. 10527This was the Index argument to the Index, Mid, and Match operators. 10528 10529The "strupr" function is now permanently local (AcpiUtStrupr), since this 10530is 10531not a POSIX-defined function and not present in most kernel-level C 10532libraries. All references to the C library strupr function have been 10533removed 10534from the headers. 10535 10536Completed the deployment of static functions/prototypes. All prototypes 10537with 10538the static attribute have been moved from the headers to the owning C 10539file. 10540 10541Implemented an extract option (-e) for the AcpiBin utility (AML binary 10542utility). This option allows the utility to extract individual ACPI 10543tables 10544from the output of AcpiDmp. It provides the same functionality of the 10545acpixtract.pl perl script without the worry of setting the correct perl 10546options. AcpiBin runs on Windows and has not yet been generated/validated 10547in 10548the Linux/Unix environment (but should be soon). 10549 10550Updated and fixed the table dump option for AcpiBin (-d). This option 10551converts a single ACPI table to a hex/ascii file, similar to the output 10552of 10553AcpiDmp. 10554 10555Code and Data Size: Current and previous core subsystem library sizes are 10556shown below. These are the code and data sizes for the acpica.lib 10557produced 10558by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10559any ACPI driver or OSPM code. The debug version of the code includes the 10560debug output trace mechanism and has a much larger code and data size. 10561Note 10562that these values will vary depending on the efficiency of the compiler 10563and 10564the compiler options used during generation. 10565 10566 Previous Release: 10567 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 10568 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 10569 Current Release: 10570 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10571 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10572 10573 105742) iASL Compiler/Disassembler: 10575 10576Disassembler fix: Added a check to ensure that the table length found in 10577the 10578ACPI table header within the input file is not longer than the actual 10579input 10580file size. This indicates some kind of file or table corruption. 10581 10582---------------------------------------- 1058329 March 2005. Summary of changes for version 20050329: 10584 105851) ACPI CA Core Subsystem: 10586 10587An error is now generated if an attempt is made to create a Buffer Field 10588of 10589length zero (A CreateField with a length operand of zero.) 10590 10591The interpreter now issues a warning whenever executable code at the 10592module 10593level is detected during ACPI table load. This will give some idea of the 10594prevalence of this type of code. 10595 10596Implemented support for references to named objects (other than control 10597methods) within package objects. 10598 10599Enhanced package object output for the debug object. Package objects are 10600now 10601completely dumped, showing all elements. 10602 10603Enhanced miscellaneous object output for the debug object. Any object can 10604now be written to the debug object (for example, a device object can be 10605written, and the type of the object will be displayed.) 10606 10607The "static" qualifier has been added to all local functions across both 10608the 10609core subsystem and the iASL compiler. 10610 10611The number of "long" lines (> 80 chars) within the source has been 10612significantly reduced, by about 1/3. 10613 10614Cleaned up all header files to ensure that all CA/iASL functions are 10615prototyped (even static functions) and the formatting is consistent. 10616 10617Two new header files have been added, acopcode.h and acnames.h. 10618 10619Removed several obsolete functions that were no longer used. 10620 10621Code and Data Size: Current and previous core subsystem library sizes are 10622shown below. These are the code and data sizes for the acpica.lib 10623produced 10624by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10625any ACPI driver or OSPM code. The debug version of the code includes the 10626debug output trace mechanism and has a much larger code and data size. 10627Note 10628that these values will vary depending on the efficiency of the compiler 10629and 10630the compiler options used during generation. 10631 10632 Previous Release: 10633 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10634 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 10635 Current Release: 10636 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 10637 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 10638 10639 10640 106412) iASL Compiler/Disassembler: 10642 10643Fixed a problem with the resource descriptor generation/support. For the 10644ResourceSourceIndex and the ResourceSource fields, both must be present, 10645or 10646both must be not present - can't have one without the other. 10647 10648The compiler now returns non-zero from the main procedure if any errors 10649have 10650occurred during the compilation. 10651 10652 10653---------------------------------------- 1065409 March 2005. Summary of changes for version 20050309: 10655 106561) ACPI CA Core Subsystem: 10657 10658The string-to-buffer implicit conversion code has been modified again 10659after 10660a change to the ACPI specification. In order to match the behavior of 10661the 10662other major ACPI implementation, the target buffer is no longer truncated 10663if 10664the source string is smaller than an existing target buffer. This change 10665requires an update to the ACPI spec, and should eliminate the recent 10666AE_AML_BUFFER_LIMIT issues. 10667 10668The "implicit return" support was rewritten to a new algorithm that 10669solves 10670the general case. Rather than attempt to determine when a method is about 10671to 10672exit, the result of every ASL operator is saved momentarily until the 10673very 10674next ASL operator is executed. Therefore, no matter how the method exits, 10675there will always be a saved implicit return value. This feature is only 10676enabled with the AcpiGbl_EnableInterpreterSlack flag, and should 10677eliminate 10678AE_AML_NO_RETURN_VALUE errors when enabled. 10679 10680Implemented implicit conversion support for the predicate (operand) of 10681the 10682If, Else, and While operators. String and Buffer arguments are 10683automatically 10684converted to Integers. 10685 10686Changed the string-to-integer conversion behavior to match the new ACPI 10687errata: "If no integer object exists, a new integer is created. The ASCII 10688string is interpreted as a hexadecimal constant. Each string character is 10689interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 10690with the first character as the most significant digit, and ending with 10691the 10692first non-hexadecimal character or end-of-string." This means that the 10693first 10694non-hex character terminates the conversion and this is the code that was 10695changed. 10696 10697Fixed a problem where the ObjectType operator would fail (fault) when 10698used 10699on an Index of a Package which pointed to a null package element. The 10700operator now properly returns zero (Uninitialized) in this case. 10701 10702Fixed a problem where the While operator used excessive memory by not 10703properly popping the result stack during execution. There was no memory 10704leak 10705after execution, however. (Code provided by Valery Podrezov.) 10706 10707Fixed a problem where references to control methods within Package 10708objects 10709caused the method to be invoked, instead of producing a reference object 10710pointing to the method. 10711 10712Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) 10713to 10714improve performance and reduce code size. (Code provided by Alexey 10715Starikovskiy.) 10716 10717Code and Data Size: Current and previous core subsystem library sizes are 10718shown below. These are the code and data sizes for the acpica.lib 10719produced 10720by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10721any ACPI driver or OSPM code. The debug version of the code includes the 10722debug output trace mechanism and has a much larger code and data size. 10723Note 10724that these values will vary depending on the efficiency of the compiler 10725and 10726the compiler options used during generation. 10727 10728 Previous Release: 10729 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10730 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 10731 Current Release: 10732 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10733 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 10734 10735 107362) iASL Compiler/Disassembler: 10737 10738Fixed a problem with the Return operator with no arguments. Since the AML 10739grammar for the byte encoding requires an operand for the Return opcode, 10740the 10741compiler now emits a Return(Zero) for this case. An ACPI specification 10742update has been written for this case. 10743 10744For tables other than the DSDT, namepath optimization is automatically 10745disabled. This is because SSDTs can be loaded anywhere in the namespace, 10746the 10747compiler has no knowledge of where, and thus cannot optimize namepaths. 10748 10749Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 10750inadvertently omitted from the ACPI specification, and will require an 10751update to the spec. 10752 10753The source file scan for ASCII characters is now optional (-a). This 10754change 10755was made because some vendors place non-ascii characters within comments. 10756However, the scan is simply a brute-force byte compare to ensure all 10757characters in the file are in the range 0x00 to 0x7F. 10758 10759Fixed a problem with the CondRefOf operator where the compiler was 10760inappropriately checking for the existence of the target. Since the point 10761of 10762the operator is to check for the existence of the target at run-time, the 10763compiler no longer checks for the target existence. 10764 10765Fixed a problem where errors generated from the internal AML interpreter 10766during constant folding were not handled properly, causing a fault. 10767 10768Fixed a problem with overly aggressive range checking for the Stall 10769operator. The valid range (max 255) is now only checked if the operand is 10770of 10771type Integer. All other operand types cannot be statically checked. 10772 10773Fixed a problem where control method references within the RefOf, 10774DeRefOf, 10775and ObjectType operators were not treated properly. They are now treated 10776as 10777actual references, not method invocations. 10778 10779Fixed and enhanced the "list namespace" option (-ln). This option was 10780broken 10781a number of releases ago. 10782 10783Improved error handling for the Field, IndexField, and BankField 10784operators. 10785The compiler now cleanly reports and recovers from errors in the field 10786component (FieldUnit) list. 10787 10788Fixed a disassembler problem where the optional ResourceDescriptor fields 10789TRS and TTP were not always handled correctly. 10790 10791Disassembler - Comments in output now use "//" instead of "/*" 10792 10793---------------------------------------- 1079428 February 2005. Summary of changes for version 20050228: 10795 107961) ACPI CA Core Subsystem: 10797 10798Fixed a problem where the result of an Index() operator (an object 10799reference) must increment the reference count on the target object for 10800the 10801life of the object reference. 10802 10803Implemented AML Interpreter and Debugger support for the new ACPI 3.0 10804Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 10805WordSpace 10806resource descriptors. 10807 10808Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 10809Space Descriptor" string, indicating interpreter support for the 10810descriptors 10811above. 10812 10813Implemented header support for the new ACPI 3.0 FADT flag bits. 10814 10815Implemented header support for the new ACPI 3.0 PCI Express bits for the 10816PM1 10817status/enable registers. 10818 10819Updated header support for the MADT processor local Apic struct and MADT 10820platform interrupt source struct for new ACPI 3.0 fields. 10821 10822Implemented header support for the SRAT and SLIT ACPI tables. 10823 10824Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 10825flag 10826at runtime. 10827 10828Code and Data Size: Current and previous core subsystem library sizes are 10829shown below. These are the code and data sizes for the acpica.lib 10830produced 10831by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10832any ACPI driver or OSPM code. The debug version of the code includes the 10833debug output trace mechanism and has a much larger code and data size. 10834Note 10835that these values will vary depending on the efficiency of the compiler 10836and 10837the compiler options used during generation. 10838 10839 Previous Release: 10840 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 10841 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 10842 Current Release: 10843 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10844 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 10845 10846 108472) iASL Compiler/Disassembler: 10848 10849Fixed a problem with the internal 64-bit String-to-integer conversion 10850with 10851strings less than two characters long. 10852 10853Fixed a problem with constant folding where the result of the Index() 10854operator can not be considered a constant. This means that Index() cannot 10855be 10856a type3 opcode and this will require an update to the ACPI specification. 10857 10858Disassembler: Implemented support for the TTP, MTP, and TRS resource 10859descriptor fields. These fields were inadvertently ignored and not output 10860in 10861the disassembly of the resource descriptor. 10862 10863 10864 ---------------------------------------- 1086511 February 2005. Summary of changes for version 20050211: 10866 108671) ACPI CA Core Subsystem: 10868 10869Implemented ACPI 3.0 support for implicit conversion within the Match() 10870operator. MatchObjects can now be of type integer, buffer, or string 10871instead 10872of just type integer. Package elements are implicitly converted to the 10873type 10874of the MatchObject. This change aligns the behavior of Match() with the 10875behavior of the other logical operators (LLess(), etc.) It also requires 10876an 10877errata change to the ACPI specification as this support was intended for 10878ACPI 3.0, but was inadvertently omitted. 10879 10880Fixed a problem with the internal implicit "to buffer" conversion. 10881Strings 10882that are converted to buffers will cause buffer truncation if the string 10883is 10884smaller than the target buffer. Integers that are converted to buffers 10885will 10886not cause buffer truncation, only zero extension (both as per the ACPI 10887spec.) The problem was introduced when code was added to truncate the 10888buffer, but this should not be performed in all cases, only the string 10889case. 10890 10891Fixed a problem with the Buffer and Package operators where the 10892interpreter 10893would get confused if two such operators were used as operands to an ASL 10894operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 10895stack was not being popped after the execution of these operators, 10896resulting 10897in an AE_NO_RETURN_VALUE exception. 10898 10899Fixed a problem with constructs of the form Store(Index(...),...). The 10900reference object returned from Index was inadvertently resolved to an 10901actual 10902value. This problem was introduced in version 20050114 when the behavior 10903of 10904Store() was modified to restrict the object types that can be used as the 10905source operand (to match the ACPI specification.) 10906 10907Reduced excessive stack use within the AcpiGetObjectInfo procedure. 10908 10909Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 10910 10911Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 10912 10913Code and Data Size: Current and previous core subsystem library sizes are 10914shown below. These are the code and data sizes for the acpica.lib 10915produced 10916by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10917any ACPI driver or OSPM code. The debug version of the code includes the 10918debug output trace mechanism and has a much larger code and data size. 10919Note 10920that these values will vary depending on the efficiency of the compiler 10921and 10922the compiler options used during generation. 10923 10924 Previous Release: 10925 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 10926 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 10927 Current Release: 10928 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 10929 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 10930 10931 109322) iASL Compiler/Disassembler: 10933 10934Fixed a code generation problem in the constant folding optimization code 10935where incorrect code was generated if a constant was reduced to a buffer 10936object (i.e., a reduced type 5 opcode.) 10937 10938Fixed a typechecking problem for the ToBuffer operator. Caused by an 10939incorrect return type in the internal opcode information table. 10940 10941---------------------------------------- 1094225 January 2005. Summary of changes for version 20050125: 10943 109441) ACPI CA Core Subsystem: 10945 10946Fixed a recently introduced problem with the Global Lock where the 10947underlying semaphore was not created. This problem was introduced in 10948version 20050114, and caused an AE_AML_NO_OPERAND exception during an 10949Acquire() operation on _GL. 10950 10951The local object cache is now optional, and is disabled by default. Both 10952AcpiExec and the iASL compiler enable the cache because they run in user 10953mode and this enhances their performance. #define 10954ACPI_ENABLE_OBJECT_CACHE 10955to enable the local cache. 10956 10957Fixed an issue in the internal function AcpiUtEvaluateObject concerning 10958the 10959optional "implicit return" support where an error was returned if no 10960return 10961object was expected, but one was implicitly returned. AE_OK is now 10962returned 10963in this case and the implicitly returned object is deleted. 10964AcpiUtEvaluateObject is only occasionally used, and only to execute 10965reserved 10966methods such as _STA and _INI where the return type is known up front. 10967 10968Fixed a few issues with the internal convert-to-integer code. It now 10969returns 10970an error if an attempt is made to convert a null string, a string of only 10971blanks/tabs, or a zero-length buffer. This affects both implicit 10972conversion 10973and explicit conversion via the ToInteger() operator. 10974 10975The internal debug code in AcpiUtAcquireMutex has been commented out. It 10976is 10977not needed for normal operation and should increase the performance of 10978the 10979entire subsystem. The code remains in case it is needed for debug 10980purposes 10981again. 10982 10983The AcpiExec source and makefile are included in the Unix/Linux package 10984for 10985the first time. 10986 10987Code and Data Size: Current and previous core subsystem library sizes are 10988shown below. These are the code and data sizes for the acpica.lib 10989produced 10990by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10991any ACPI driver or OSPM code. The debug version of the code includes the 10992debug output trace mechanism and has a much larger code and data size. 10993Note 10994that these values will vary depending on the efficiency of the compiler 10995and 10996the compiler options used during generation. 10997 10998 Previous Release: 10999 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 11000 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 11001 Current Release: 11002 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 11003 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 11004 110052) iASL Compiler/Disassembler: 11006 11007Switch/Case support: A warning is now issued if the type of the Switch 11008value 11009cannot be determined at compile time. For example, Switch(Arg0) will 11010generate the warning, and the type is assumed to be an integer. As per 11011the 11012ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 11013the 11014warning. 11015 11016Switch/Case support: Implemented support for buffer and string objects as 11017the switch value. This is an ACPI 3.0 feature, now that LEqual supports 11018buffers and strings. 11019 11020Switch/Case support: The emitted code for the LEqual() comparisons now 11021uses 11022the switch value as the first operand, not the second. The case value is 11023now 11024the second operand, and this allows the case value to be implicitly 11025converted to the type of the switch value, not the other way around. 11026 11027Switch/Case support: Temporary variables are now emitted immediately 11028within 11029the control method, not at the global level. This means that there are 11030now 1103136 temps available per-method, not 36 temps per-module as was the case 11032with 11033the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 11034 11035---------------------------------------- 1103614 January 2005. Summary of changes for version 20050114: 11037 11038Added 2005 copyright to all module headers. This affects every module in 11039the core subsystem, iASL compiler, and the utilities. 11040 110411) ACPI CA Core Subsystem: 11042 11043Fixed an issue with the String-to-Buffer conversion code where the string 11044null terminator was not included in the buffer after conversion, but 11045there 11046is existing ASL that assumes the string null terminator is included. This 11047is 11048the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 11049introduced in the previous version when the code was updated to correctly 11050set the converted buffer size as per the ACPI specification. The ACPI 11051spec 11052is ambiguous and will be updated to specify that the null terminator must 11053be 11054included in the converted buffer. This also affects the ToBuffer() ASL 11055operator. 11056 11057Fixed a problem with the Mid() ASL/AML operator where it did not work 11058correctly on Buffer objects. Newly created sub-buffers were not being 11059marked 11060as initialized. 11061 11062 11063Fixed a problem in AcpiTbFindTable where incorrect string compares were 11064performed on the OemId and OemTableId table header fields. These fields 11065are 11066not null terminated, so strncmp is now used instead of strcmp. 11067 11068Implemented a restriction on the Store() ASL/AML operator to align the 11069behavior with the ACPI specification. Previously, any object could be 11070used 11071as the source operand. Now, the only objects that may be used are 11072Integers, 11073Buffers, Strings, Packages, Object References, and DDB Handles. If 11074necessary, the original behavior can be restored by enabling the 11075EnableInterpreterSlack flag. 11076 11077Enhanced the optional "implicit return" support to allow an implicit 11078return 11079value from methods that are invoked externally via the AcpiEvaluateObject 11080interface. This enables implicit returns from the _STA and _INI methods, 11081for example. 11082 11083Changed the Revision() ASL/AML operator to return the current version of 11084the 11085AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 11086returned 11087the supported ACPI version (This is the function of the _REV method). 11088 11089Updated the _REV predefined method to return the currently supported 11090version 11091of ACPI, now 3. 11092 11093Implemented batch mode option for the AcpiExec utility (-b). 11094 11095Code and Data Size: Current and previous core subsystem library sizes are 11096shown below. These are the code and data sizes for the acpica.lib 11097produced 11098by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11099any ACPI driver or OSPM code. The debug version of the code includes the 11100debug output trace mechanism and has a much larger code and data size. 11101Note 11102that these values will vary depending on the efficiency of the compiler 11103and 11104the compiler options used during generation. 11105 11106 Previous Release: 11107 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11108 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 11109 Current Release: 11110 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 11111 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 11112 11113---------------------------------------- 1111410 December 2004. Summary of changes for version 20041210: 11115 11116ACPI 3.0 support is nearing completion in both the iASL compiler and the 11117ACPI CA core subsystem. 11118 111191) ACPI CA Core Subsystem: 11120 11121Fixed a problem in the ToDecimalString operator where the resulting 11122string 11123length was incorrectly calculated. The length is now calculated exactly, 11124eliminating incorrect AE_STRING_LIMIT exceptions. 11125 11126Fixed a problem in the ToHexString operator to allow a maximum 200 11127character 11128string to be produced. 11129 11130Fixed a problem in the internal string-to-buffer and buffer-to-buffer 11131copy 11132routine where the length of the resulting buffer was not truncated to the 11133new size (if the target buffer already existed). 11134 11135Code and Data Size: Current and previous core subsystem library sizes are 11136shown below. These are the code and data sizes for the acpica.lib 11137produced 11138by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11139any ACPI driver or OSPM code. The debug version of the code includes the 11140debug output trace mechanism and has a much larger code and data size. 11141Note 11142that these values will vary depending on the efficiency of the compiler 11143and 11144the compiler options used during generation. 11145 11146 Previous Release: 11147 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11148 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 11149 Current Release: 11150 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11151 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 11152 11153 111542) iASL Compiler/Disassembler: 11155 11156Implemented the new ACPI 3.0 resource template macros - DWordSpace, 11157ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 11158Includes support in the disassembler. 11159 11160Implemented support for the new (ACPI 3.0) parameter to the Register 11161macro, 11162AccessSize. 11163 11164Fixed a problem where the _HE resource name for the Interrupt macro was 11165referencing bit 0 instead of bit 1. 11166 11167Implemented check for maximum 255 interrupts in the Interrupt macro. 11168 11169Fixed a problem with the predefined resource descriptor names where 11170incorrect AML code was generated if the offset within the resource buffer 11171was 0 or 1. The optimizer shortened the AML code to a single byte opcode 11172but did not update the surrounding package lengths. 11173 11174Changes to the Dma macro: All channels within the channel list must be 11175in 11176the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 11177optional (default is BusMaster). 11178 11179Implemented check for maximum 7 data bytes for the VendorShort macro. 11180 11181The ReadWrite parameter is now optional for the Memory32 and similar 11182macros. 11183 11184---------------------------------------- 1118503 December 2004. Summary of changes for version 20041203: 11186 111871) ACPI CA Core Subsystem: 11188 11189The low-level field insertion/extraction code (exfldio) has been 11190completely 11191rewritten to eliminate unnecessary complexity, bugs, and boundary 11192conditions. 11193 11194Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 11195ToDecimalString 11196operators where the input operand could be inadvertently deleted if no 11197conversion was necessary (e.g., if the input to ToInteger was an Integer 11198object.) 11199 11200Fixed a problem with the ToDecimalString and ToHexString where an 11201incorrect 11202exception code was returned if the resulting string would be > 200 chars. 11203AE_STRING_LIMIT is now returned. 11204 11205Fixed a problem with the Concatenate operator where AE_OK was always 11206returned, even if the operation failed. 11207 11208Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 11209semaphores to be allocated. 11210 11211Code and Data Size: Current and previous core subsystem library sizes are 11212shown below. These are the code and data sizes for the acpica.lib 11213produced 11214by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11215any ACPI driver or OSPM code. The debug version of the code includes the 11216debug output trace mechanism and has a much larger code and data size. 11217Note 11218that these values will vary depending on the efficiency of the compiler 11219and 11220the compiler options used during generation. 11221 11222 Previous Release: 11223 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11224 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11225 Current Release: 11226 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11227 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 11228 11229 112302) iASL Compiler/Disassembler: 11231 11232Fixed typechecking for the ObjectType and SizeOf operators. Problem was 11233recently introduced in 20041119. 11234 11235Fixed a problem with the ToUUID macro where the upper nybble of each 11236buffer 11237byte was inadvertently set to zero. 11238 11239---------------------------------------- 1124019 November 2004. Summary of changes for version 20041119: 11241 112421) ACPI CA Core Subsystem: 11243 11244Fixed a problem in the internal ConvertToInteger routine where new 11245integers 11246were not truncated to 32 bits for 32-bit ACPI tables. This routine 11247converts 11248buffers and strings to integers. 11249 11250Implemented support to store a value to an Index() on a String object. 11251This 11252is an ACPI 2.0 feature that had not yet been implemented. 11253 11254Implemented new behavior for storing objects to individual package 11255elements 11256(via the Index() operator). The previous behavior was to invoke the 11257implicit 11258conversion rules if an object was already present at the index. The new 11259behavior is to simply delete any existing object and directly store the 11260new 11261object. Although the ACPI specification seems unclear on this subject, 11262other 11263ACPI implementations behave in this manner. (This is the root of the 11264AE_BAD_HEX_CONSTANT issue.) 11265 11266Modified the RSDP memory scan mechanism to support the extended checksum 11267for 11268ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 11269RSDP signature is found with a valid checksum. 11270 11271Code and Data Size: Current and previous core subsystem library sizes are 11272shown below. These are the code and data sizes for the acpica.lib 11273produced 11274by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11275any ACPI driver or OSPM code. The debug version of the code includes the 11276debug output trace mechanism and has a much larger code and data size. 11277Note 11278that these values will vary depending on the efficiency of the compiler 11279and 11280the compiler options used during generation. 11281 11282 Previous Release: 11283 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11284 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11285 Current Release: 11286 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11287 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11288 11289 112902) iASL Compiler/Disassembler: 11291 11292Fixed a missing semicolon in the aslcompiler.y file. 11293 11294---------------------------------------- 1129505 November 2004. Summary of changes for version 20041105: 11296 112971) ACPI CA Core Subsystem: 11298 11299Implemented support for FADT revision 2. This was an interim table 11300(between 11301ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 11302 11303Implemented optional support to allow uninitialized LocalX and ArgX 11304variables in a control method. The variables are initialized to an 11305Integer 11306object with a value of zero. This support is enabled by setting the 11307AcpiGbl_EnableInterpreterSlack flag to TRUE. 11308 11309Implemented support for Integer objects for the SizeOf operator. Either 113104 11311or 8 is returned, depending on the current integer size (32-bit or 64- 11312bit, 11313depending on the parent table revision). 11314 11315Fixed a problem in the implementation of the SizeOf and ObjectType 11316operators 11317where the operand was resolved to a value too early, causing incorrect 11318return values for some objects. 11319 11320Fixed some possible memory leaks during exceptional conditions. 11321 11322Code and Data Size: Current and previous core subsystem library sizes are 11323shown below. These are the code and data sizes for the acpica.lib 11324produced 11325by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11326any ACPI driver or OSPM code. The debug version of the code includes the 11327debug output trace mechanism and has a much larger code and data size. 11328Note 11329that these values will vary depending on the efficiency of the compiler 11330and 11331the compiler options used during generation. 11332 11333 Previous Release: 11334 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11335 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 11336 Current Release: 11337 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11338 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11339 11340 113412) iASL Compiler/Disassembler: 11342 11343Implemented support for all ACPI 3.0 reserved names and methods. 11344 11345Implemented all ACPI 3.0 grammar elements in the front-end, including 11346support for semicolons. 11347 11348Implemented the ACPI 3.0 Function() and ToUUID() macros 11349 11350Fixed a problem in the disassembler where a Scope() operator would not be 11351emitted properly if the target of the scope was in another table. 11352 11353---------------------------------------- 1135415 October 2004. Summary of changes for version 20041015: 11355 11356Note: ACPI CA is currently undergoing an in-depth and complete formal 11357evaluation to test/verify the following areas. Other suggestions are 11358welcome. This will result in an increase in the frequency of releases and 11359the number of bug fixes in the next few months. 11360 - Functional tests for all ASL/AML operators 11361 - All implicit/explicit type conversions 11362 - Bit fields and operation regions 11363 - 64-bit math support and 32-bit-only "truncated" math support 11364 - Exceptional conditions, both compiler and interpreter 11365 - Dynamic object deletion and memory leaks 11366 - ACPI 3.0 support when implemented 11367 - External interfaces to the ACPI subsystem 11368 11369 113701) ACPI CA Core Subsystem: 11371 11372Fixed two alignment issues on 64-bit platforms - within debug statements 11373in 11374AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 11375Address 11376field within the non-aligned ACPI generic address structure. 11377 11378Fixed a problem in the Increment and Decrement operators where incorrect 11379operand resolution could result in the inadvertent modification of the 11380original integer when the integer is passed into another method as an 11381argument and the arg is then incremented/decremented. 11382 11383Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 11384bit 11385BCD number were truncated during conversion. 11386 11387Fixed a problem in the ToDecimal operator where the length of the 11388resulting 11389string could be set incorrectly too long if the input operand was a 11390Buffer 11391object. 11392 11393Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 11394(0) 11395within a buffer would prematurely terminate a compare between buffer 11396objects. 11397 11398Added a check for string overflow (>200 characters as per the ACPI 11399specification) during the Concatenate operator with two string operands. 11400 11401Code and Data Size: Current and previous core subsystem library sizes are 11402shown below. These are the code and data sizes for the acpica.lib 11403produced 11404by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11405any ACPI driver or OSPM code. The debug version of the code includes the 11406debug output trace mechanism and has a much larger code and data size. 11407Note 11408that these values will vary depending on the efficiency of the compiler 11409and 11410the compiler options used during generation. 11411 11412 Previous Release: 11413 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11414 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 11415 Current Release: 11416 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11417 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 11418 11419 11420 114212) iASL Compiler/Disassembler: 11422 11423Allow the use of the ObjectType operator on uninitialized Locals and Args 11424(returns 0 as per the ACPI specification). 11425 11426Fixed a problem where the compiler would fault if there was a syntax 11427error 11428in the FieldName of all of the various CreateXXXField operators. 11429 11430Disallow the use of lower case letters within the EISAID macro, as per 11431the 11432ACPI specification. All EISAID strings must be of the form "UUUNNNN" 11433Where 11434U is an uppercase letter and N is a hex digit. 11435 11436 11437---------------------------------------- 1143806 October 2004. Summary of changes for version 20041006: 11439 114401) ACPI CA Core Subsystem: 11441 11442Implemented support for the ACPI 3.0 Timer operator. This ASL function 11443implements a 64-bit timer with 100 nanosecond granularity. 11444 11445Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 11446implement the ACPI 3.0 Timer operator. This allows the host OS to 11447implement 11448the timer with the best clock available. Also, it keeps the core 11449subsystem 11450out of the clock handling business, since the host OS (usually) performs 11451this function. 11452 11453Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 11454functions use a 64-bit address which is part of the packed ACPI Generic 11455Address Structure. Since the structure is non-aligned, the alignment 11456macros 11457are now used to extract the address to a local variable before use. 11458 11459Fixed a problem where the ToInteger operator assumed all input strings 11460were 11461hexadecimal. The operator now handles both decimal strings and hex 11462strings 11463(prefixed with "0x"). 11464 11465Fixed a problem where the string length in the string object created as a 11466result of the internal ConvertToString procedure could be incorrect. This 11467potentially affected all implicit conversions and also the 11468ToDecimalString 11469and ToHexString operators. 11470 11471Fixed two problems in the ToString operator. If the length parameter was 11472zero, an incorrect string object was created and the value of the input 11473length parameter was inadvertently changed from zero to Ones. 11474 11475Fixed a problem where the optional ResourceSource string in the 11476ExtendedIRQ 11477resource macro was ignored. 11478 11479Simplified the interfaces to the internal division functions, reducing 11480code 11481size and complexity. 11482 11483Code and Data Size: Current and previous core subsystem library sizes are 11484shown below. These are the code and data sizes for the acpica.lib 11485produced 11486by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11487any ACPI driver or OSPM code. The debug version of the code includes the 11488debug output trace mechanism and has a much larger code and data size. 11489Note 11490that these values will vary depending on the efficiency of the compiler 11491and 11492the compiler options used during generation. 11493 11494 Previous Release: 11495 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 11496 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 11497 Current Release: 11498 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11499 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 11500 11501 115022) iASL Compiler/Disassembler: 11503 11504Implemented support for the ACPI 3.0 Timer operator. 11505 11506Fixed a problem where the Default() operator was inadvertently ignored in 11507a 11508Switch/Case block. This was a problem in the translation of the Switch 11509statement to If...Else pairs. 11510 11511Added support to allow a standalone Return operator, with no parentheses 11512(or 11513operands). 11514 11515Fixed a problem with code generation for the ElseIf operator where the 11516translated Else...If parse tree was improperly constructed leading to the 11517loss of some code. 11518 11519---------------------------------------- 1152022 September 2004. Summary of changes for version 20040922: 11521 115221) ACPI CA Core Subsystem: 11523 11524Fixed a problem with the implementation of the LNot() operator where 11525"Ones" 11526was not returned for the TRUE case. Changed the code to return Ones 11527instead 11528of (!Arg) which was usually 1. This change affects iASL constant folding 11529for 11530this operator also. 11531 11532Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was 11533not 11534initialized properly -- Now zero the entire buffer in this case where the 11535buffer already exists. 11536 11537Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 11538Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 11539related code considerably. This will require changes/updates to all OS 11540interface layers (OSLs.) 11541 11542Implemented a new external interface, AcpiInstallExceptionHandler, to 11543allow 11544a system exception handler to be installed. This handler is invoked upon 11545any 11546run-time exception that occurs during control method execution. 11547 11548Added support for the DSDT in AcpiTbFindTable. This allows the 11549DataTableRegion() operator to access the local copy of the DSDT. 11550 11551Code and Data Size: Current and previous core subsystem library sizes are 11552shown below. These are the code and data sizes for the acpica.lib 11553produced 11554by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11555any ACPI driver or OSPM code. The debug version of the code includes the 11556debug output trace mechanism and has a much larger code and data size. 11557Note 11558that these values will vary depending on the efficiency of the compiler 11559and 11560the compiler options used during generation. 11561 11562 Previous Release: 11563 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 11564 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 11565 Current Release: 11566 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 11567 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 11568 11569 115702) iASL Compiler/Disassembler: 11571 11572Fixed a problem with constant folding and the LNot operator. LNot was 11573returning 1 in the TRUE case, not Ones as per the ACPI specification. 11574This 11575could result in the generation of an incorrect folded/reduced constant. 11576 11577End-Of-File is now allowed within a "//"-style comment. A parse error no 11578longer occurs if such a comment is at the very end of the input ASL 11579source 11580file. 11581 11582Implemented the "-r" option to override the Revision in the table header. 11583The initial use of this option will be to simplify the evaluation of the 11584AML 11585interpreter by allowing a single ASL source module to be compiled for 11586either 1158732-bit or 64-bit integers. 11588 11589 11590---------------------------------------- 1159127 August 2004. Summary of changes for version 20040827: 11592 115931) ACPI CA Core Subsystem: 11594 11595- Implemented support for implicit object conversion in the non-numeric 11596logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, 11597and 11598LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 11599the second operand is implicitly converted on the fly to match the type 11600of 11601the first operand. For example: 11602 11603 LEqual (Source1, Source2) 11604 11605Source1 and Source2 must each evaluate to an integer, a string, or a 11606buffer. 11607The data type of Source1 dictates the required type of Source2. Source2 11608is 11609implicitly converted if necessary to match the type of Source1. 11610 11611- Updated and corrected the behavior of the string conversion support. 11612The 11613rules concerning conversion of buffers to strings (according to the ACPI 11614specification) are as follows: 11615 11616ToDecimalString - explicit byte-wise conversion of buffer to string of 11617decimal values (0-255) separated by commas. ToHexString - explicit byte- 11618wise 11619conversion of buffer to string of hex values (0-FF) separated by commas. 11620ToString - explicit byte-wise conversion of buffer to string. Byte-by- 11621byte 11622copy with no transform except NULL terminated. Any other implicit buffer- 11623to- 11624string conversion - byte-wise conversion of buffer to string of hex 11625values 11626(0-FF) separated by spaces. 11627 11628- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 11629 11630- Fixed a problem in AcpiNsGetPathnameLength where the returned length 11631was 11632one byte too short in the case of a node in the root scope. This could 11633cause a fault during debug output. 11634 11635- Code and Data Size: Current and previous core subsystem library sizes 11636are 11637shown below. These are the code and data sizes for the acpica.lib 11638produced 11639by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11640any ACPI driver or OSPM code. The debug version of the code includes the 11641debug output trace mechanism and has a much larger code and data size. 11642Note 11643that these values will vary depending on the efficiency of the compiler 11644and 11645the compiler options used during generation. 11646 11647 Previous Release: 11648 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 11649 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 11650 Current Release: 11651 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 11652 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 11653 11654 116552) iASL Compiler/Disassembler: 11656 11657- Fixed a Linux generation error. 11658 11659 11660---------------------------------------- 1166116 August 2004. Summary of changes for version 20040816: 11662 116631) ACPI CA Core Subsystem: 11664 11665Designed and implemented support within the AML interpreter for the so- 11666called "implicit return". This support returns the result of the last 11667ASL 11668operation within a control method, in the absence of an explicit Return() 11669operator. A few machines depend on this behavior, even though it is not 11670explicitly supported by the ASL language. It is optional support that 11671can 11672be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 11673 11674Removed support for the PCI_Config address space from the internal low 11675level 11676hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 11677support was not used internally, and would not work correctly anyway 11678because 11679the PCI bus number and segment number were not supported. There are 11680separate interfaces for PCI configuration space access because of the 11681unique 11682interface. 11683 11684Code and Data Size: Current and previous core subsystem library sizes are 11685shown below. These are the code and data sizes for the acpica.lib 11686produced 11687by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11688any ACPI driver or OSPM code. The debug version of the code includes the 11689debug output trace mechanism and has a much larger code and data size. 11690Note 11691that these values will vary depending on the efficiency of the compiler 11692and 11693the compiler options used during generation. 11694 11695 Previous Release: 11696 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11697 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 11698 Current Release: 11699 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 11700 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 11701 11702 117032) iASL Compiler/Disassembler: 11704 11705Fixed a problem where constants in ASL expressions at the root level (not 11706within a control method) could be inadvertently truncated during code 11707generation. This problem was introduced in the 20040715 release. 11708 11709 11710---------------------------------------- 1171115 July 2004. Summary of changes for version 20040715: 11712 117131) ACPI CA Core Subsystem: 11714 11715Restructured the internal HW GPE interfaces to pass/track the current 11716state 11717of interrupts (enabled/disabled) in order to avoid possible deadlock and 11718increase flexibility of the interfaces. 11719 11720Implemented a "lexicographical compare" for String and Buffer objects 11721within 11722the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual - 11723- 11724as per further clarification to the ACPI specification. Behavior is 11725similar 11726to C library "strcmp". 11727 11728Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 11729external function. In the 32-bit non-debug case, the stack use has been 11730reduced from 168 bytes to 32 bytes. 11731 11732Deployed a new run-time configuration flag, 11733AcpiGbl_EnableInterpreterSlack, 11734whose purpose is to allow the AML interpreter to forgive certain bad AML 11735constructs. Default setting is FALSE. 11736 11737Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 11738IO 11739support code. If enabled, it allows field access to go beyond the end of 11740a 11741region definition if the field is within the region length rounded up to 11742the 11743next access width boundary (a common coding error.) 11744 11745Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 11746ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 11747these 11748symbols are lowercased by the latest version of the AcpiSrc tool. 11749 11750The prototypes for the PCI interfaces in acpiosxf.h have been updated to 11751rename "Register" to simply "Reg" to prevent certain compilers from 11752complaining. 11753 11754Code and Data Size: Current and previous core subsystem library sizes are 11755shown below. These are the code and data sizes for the acpica.lib 11756produced 11757by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11758any ACPI driver or OSPM code. The debug version of the code includes the 11759debug output trace mechanism and has a much larger code and data size. 11760Note 11761that these values will vary depending on the efficiency of the compiler 11762and 11763the compiler options used during generation. 11764 11765 Previous Release: 11766 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11767 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 11768 Current Release: 11769 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11770 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 11771 11772 117732) iASL Compiler/Disassembler: 11774 11775Implemented full support for Package objects within the Case() operator. 11776Note: The Break() operator is currently not supported within Case blocks 11777(TermLists) as there is some question about backward compatibility with 11778ACPI 117791.0 interpreters. 11780 11781 11782Fixed a problem where complex terms were not supported properly within 11783the 11784Switch() operator. 11785 11786Eliminated extraneous warning for compiler-emitted reserved names of the 11787form "_T_x". (Used in Switch/Case operators.) 11788 11789Eliminated optimization messages for "_T_x" objects and small constants 11790within the DefinitionBlock operator. 11791 11792 11793---------------------------------------- 1179415 June 2004. Summary of changes for version 20040615: 11795 117961) ACPI CA Core Subsystem: 11797 11798Implemented support for Buffer and String objects (as per ACPI 2.0) for 11799the 11800following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 11801LLessEqual. 11802 11803All directory names in the entire source package are lower case, as they 11804were in earlier releases. 11805 11806Implemented "Disassemble" command in the AML debugger that will 11807disassemble 11808a single control method. 11809 11810Code and Data Size: Current and previous core subsystem library sizes are 11811shown below. These are the code and data sizes for the acpica.lib 11812produced 11813by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11814any ACPI driver or OSPM code. The debug version of the code includes the 11815debug output trace mechanism and has a much larger code and data size. 11816Note 11817that these values will vary depending on the efficiency of the compiler 11818and 11819the compiler options used during generation. 11820 11821 Previous Release: 11822 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 11823 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 11824 11825 Current Release: 11826 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11827 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 11828 11829 118302) iASL Compiler/Disassembler: 11831 11832Implemented support for Buffer and String objects (as per ACPI 2.0) for 11833the 11834following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 11835LLessEqual. 11836 11837All directory names in the entire source package are lower case, as they 11838were in earlier releases. 11839 11840Fixed a fault when using the -g or -d<nofilename> options if the FADT was 11841not found. 11842 11843Fixed an issue with the Windows version of the compiler where later 11844versions 11845of Windows place the FADT in the registry under the name "FADT" and not 11846"FACP" as earlier versions did. This applies when using the -g or - 11847d<nofilename> options. The compiler now looks for both strings as 11848necessary. 11849 11850Fixed a problem with compiler namepath optimization where a namepath 11851within 11852the Scope() operator could not be optimized if the namepath was a subpath 11853of 11854the current scope path. 11855 11856---------------------------------------- 1185727 May 2004. Summary of changes for version 20040527: 11858 118591) ACPI CA Core Subsystem: 11860 11861Completed a new design and implementation for EBDA (Extended BIOS Data 11862Area) 11863support in the RSDP scan code. The original code improperly scanned for 11864the 11865EBDA by simply scanning from memory location 0 to 0x400. The correct 11866method 11867is to first obtain the EBDA pointer from within the BIOS data area, then 11868scan 1K of memory starting at the EBDA pointer. There appear to be few 11869if 11870any machines that place the RSDP in the EBDA, however. 11871 11872Integrated a fix for a possible fault during evaluation of BufferField 11873arguments. Obsolete code that was causing the problem was removed. 11874 11875Found and fixed a problem in the Field Support Code where data could be 11876corrupted on a bit field read that starts on an aligned boundary but does 11877not end on an aligned boundary. Merged the read/write "datum length" 11878calculation code into a common procedure. 11879 11880Rolled in a couple of changes to the FreeBSD-specific header. 11881 11882 11883Code and Data Size: Current and previous core subsystem library sizes are 11884shown below. These are the code and data sizes for the acpica.lib 11885produced 11886by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11887any ACPI driver or OSPM code. The debug version of the code includes the 11888debug output trace mechanism and has a much larger code and data size. 11889Note 11890that these values will vary depending on the efficiency of the compiler 11891and 11892the compiler options used during generation. 11893 11894 Previous Release: 11895 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 11896 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 11897 Current Release: 11898 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 11899 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 11900 11901 119022) iASL Compiler/Disassembler: 11903 11904Fixed a generation warning produced by some overly-verbose compilers for 11905a 1190664-bit constant. 11907 11908---------------------------------------- 1190914 May 2004. Summary of changes for version 20040514: 11910 119111) ACPI CA Core Subsystem: 11912 11913Fixed a problem where hardware GPE enable bits sometimes not set properly 11914during and after GPE method execution. Result of 04/27 changes. 11915 11916Removed extra "clear all GPEs" when sleeping/waking. 11917 11918Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 11919AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 11920to 11921the new AcpiEv* calls as appropriate. 11922 11923ACPI_OS_NAME was removed from the OS-specific headers. The default name 11924is 11925now "Microsoft Windows NT" for maximum compatibility. However this can 11926be 11927changed by modifying the acconfig.h file. 11928 11929Allow a single invocation of AcpiInstallNotifyHandler for a handler that 11930traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 11931 11932Run _INI methods on ThermalZone objects. This is against the ACPI 11933specification, but there is apparently ASL code in the field that has 11934these 11935_INI methods, and apparently "other" AML interpreters execute them. 11936 11937Performed a full 16/32/64 bit lint that resulted in some small changes. 11938 11939Added a sleep simulation command to the AML debugger to test sleep code. 11940 11941Code and Data Size: Current and previous core subsystem library sizes are 11942shown below. These are the code and data sizes for the acpica.lib 11943produced 11944by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11945any ACPI driver or OSPM code. The debug version of the code includes the 11946debug output trace mechanism and has a much larger code and data size. 11947Note 11948that these values will vary depending on the efficiency of the compiler 11949and 11950the compiler options used during generation. 11951 11952 Previous Release: 11953 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 11954 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 11955 Current Release: 11956 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 11957 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 11958 11959---------------------------------------- 1196027 April 2004. Summary of changes for version 20040427: 11961 119621) ACPI CA Core Subsystem: 11963 11964Completed a major overhaul of the GPE handling within ACPI CA. There are 11965now three types of GPEs: wake-only, runtime-only, and combination 11966wake/run. 11967The only GPEs allowed to be combination wake/run are for button-style 11968devices such as a control-method power button, control-method sleep 11969button, 11970or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 11971not 11972referenced by any _PRW methods are marked for "runtime" and hardware 11973enabled. Any GPE that is referenced by a _PRW method is marked for 11974"wake" 11975(and disabled at runtime). However, at sleep time, only those GPEs that 11976have been specifically enabled for wake via the AcpiEnableGpe interface 11977will 11978actually be hardware enabled. 11979 11980A new external interface has been added, AcpiSetGpeType(), that is meant 11981to 11982be used by device drivers to force a GPE to a particular type. It will 11983be 11984especially useful for the drivers for the button devices mentioned above. 11985 11986Completed restructuring of the ACPI CA initialization sequence so that 11987default operation region handlers are installed before GPEs are 11988initialized 11989and the _PRW methods are executed. This will prevent errors when the 11990_PRW 11991methods attempt to access system memory or I/O space. 11992 11993GPE enable/disable no longer reads the GPE enable register. We now keep 11994the 11995enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 11996thus no longer depend on the hardware to maintain these bits. 11997 11998Always clear the wake status and fixed/GPE status bits before sleep, even 11999for state S5. 12000 12001Improved the AML debugger output for displaying the GPE blocks and their 12002current status. 12003 12004Added new strings for the _OSI method, of the form "Windows 2001 SPx" 12005where 12006x = 0,1,2,3,4. 12007 12008Fixed a problem where the physical address was incorrectly calculated 12009when 12010the Load() operator was used to directly load from an Operation Region 12011(vs. 12012loading from a Field object.) Also added check for minimum table length 12013for 12014this case. 12015 12016Fix for multiple mutex acquisition. Restore original thread SyncLevel on 12017mutex release. 12018 12019Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 12020consistency with the other fields returned. 12021 12022Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 12023structure for each GPE in the system, so the size of this structure is 12024important. 12025 12026CPU stack requirement reduction: Cleaned up the method execution and 12027object 12028evaluation paths so that now a parameter structure is passed, instead of 12029copying the various method parameters over and over again. 12030 12031In evregion.c: Correctly exit and reenter the interpreter region if and 12032only if dispatching an operation region request to a user-installed 12033handler. 12034Do not exit/reenter when dispatching to a default handler (e.g., default 12035system memory or I/O handlers) 12036 12037 12038Notes for updating drivers for the new GPE support. The following 12039changes 12040must be made to ACPI-related device drivers that are attached to one or 12041more 12042GPEs: (This information will be added to the ACPI CA Programmer 12043Reference.) 12044 120451) AcpiInstallGpeHandler no longer automatically enables the GPE, you 12046must 12047explicitly call AcpiEnableGpe. 120482) There is a new interface called AcpiSetGpeType. This should be called 12049before enabling the GPE. Also, this interface will automatically disable 12050the GPE if it is currently enabled. 120513) AcpiEnableGpe no longer supports a GPE type flag. 12052 12053Specific drivers that must be changed: 120541) EC driver: 12055 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 12056AeGpeHandler, NULL); 12057 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 12058 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 12059 120602) Button Drivers (Power, Lid, Sleep): 12061Run _PRW method under parent device 12062If _PRW exists: /* This is a control-method button */ 12063 Extract GPE number and possibly GpeDevice 12064 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 12065 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 12066 12067For all other devices that have _PRWs, we automatically set the GPE type 12068to 12069ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. 12070This 12071must be done on a selective basis, usually requiring some kind of user 12072app 12073to allow the user to pick the wake devices. 12074 12075 12076Code and Data Size: Current and previous core subsystem library sizes are 12077shown below. These are the code and data sizes for the acpica.lib 12078produced 12079by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12080any ACPI driver or OSPM code. The debug version of the code includes the 12081debug output trace mechanism and has a much larger code and data size. 12082Note 12083that these values will vary depending on the efficiency of the compiler 12084and 12085the compiler options used during generation. 12086 12087 Previous Release: 12088 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 12089 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 12090 Current Release: 12091 12092 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 12093 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 12094 12095 12096 12097---------------------------------------- 1209802 April 2004. Summary of changes for version 20040402: 12099 121001) ACPI CA Core Subsystem: 12101 12102Fixed an interpreter problem where an indirect store through an ArgX 12103parameter was incorrectly applying the "implicit conversion rules" during 12104the store. From the ACPI specification: "If the target is a method local 12105or 12106argument (LocalX or ArgX), no conversion is performed and the result is 12107stored directly to the target". The new behavior is to disable implicit 12108conversion during ALL stores to an ArgX. 12109 12110Changed the behavior of the _PRW method scan to ignore any and all errors 12111returned by a given _PRW. This prevents the scan from aborting from the 12112failure of any single _PRW. 12113 12114Moved the runtime configuration parameters from the global init procedure 12115to 12116static variables in acglobal.h. This will allow the host to override the 12117default values easily. 12118 12119Code and Data Size: Current and previous core subsystem library sizes are 12120shown below. These are the code and data sizes for the acpica.lib 12121produced 12122by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12123any ACPI driver or OSPM code. The debug version of the code includes the 12124debug output trace mechanism and has a much larger code and data size. 12125Note 12126that these values will vary depending on the efficiency of the compiler 12127and 12128the compiler options used during generation. 12129 12130 Previous Release: 12131 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 12132 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 12133 Current Release: 12134 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 12135 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 12136 12137 121382) iASL Compiler/Disassembler: 12139 12140iASL now fully disassembles SSDTs. However, External() statements are 12141not 12142generated automatically for unresolved symbols at this time. This is a 12143planned feature for future implementation. 12144 12145Fixed a scoping problem in the disassembler that occurs when the type of 12146the 12147target of a Scope() operator is overridden. This problem caused an 12148incorrectly nested internal namespace to be constructed. 12149 12150Any warnings or errors that are emitted during disassembly are now 12151commented 12152out automatically so that the resulting file can be recompiled without 12153any 12154hand editing. 12155 12156---------------------------------------- 1215726 March 2004. Summary of changes for version 20040326: 12158 121591) ACPI CA Core Subsystem: 12160 12161Implemented support for "wake" GPEs via interaction between GPEs and the 12162_PRW methods. Every GPE that is pointed to by one or more _PRWs is 12163identified as a WAKE GPE and by default will no longer be enabled at 12164runtime. Previously, we were blindly enabling all GPEs with a 12165corresponding 12166_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 12167We 12168believe this has been the cause of thousands of "spurious" GPEs on some 12169systems. 12170 12171This new GPE behavior is can be reverted to the original behavior (enable 12172ALL GPEs at runtime) via a runtime flag. 12173 12174Fixed a problem where aliased control methods could not access objects 12175properly. The proper scope within the namespace was not initialized 12176(transferred to the target of the aliased method) before executing the 12177target method. 12178 12179Fixed a potential race condition on internal object deletion on the 12180return 12181object in AcpiEvaluateObject. 12182 12183Integrated a fix for resource descriptors where both _MEM and _MTP were 12184being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 12185wide, 0x0F instead of 0x03.) 12186 12187Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, 12188preventing 12189a 12190fault in some cases. 12191 12192Updated Notify() values for debug statements in evmisc.c 12193 12194Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 12195 12196Code and Data Size: Current and previous core subsystem library sizes are 12197shown below. These are the code and data sizes for the acpica.lib 12198produced 12199by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12200any ACPI driver or OSPM code. The debug version of the code includes the 12201debug output trace mechanism and has a much larger code and data size. 12202Note 12203that these values will vary depending on the efficiency of the compiler 12204and 12205the compiler options used during generation. 12206 12207 Previous Release: 12208 12209 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 12210 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 12211 Current Release: 12212 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 12213 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 12214 12215---------------------------------------- 1221611 March 2004. Summary of changes for version 20040311: 12217 122181) ACPI CA Core Subsystem: 12219 12220Fixed a problem where errors occurring during the parse phase of control 12221method execution did not abort cleanly. For example, objects created and 12222installed in the namespace were not deleted. This caused all subsequent 12223invocations of the method to return the AE_ALREADY_EXISTS exception. 12224 12225Implemented a mechanism to force a control method to "Serialized" 12226execution 12227if the method attempts to create namespace objects. (The root of the 12228AE_ALREADY_EXISTS problem.) 12229 12230Implemented support for the predefined _OSI "internal" control method. 12231Initial supported strings are "Linux", "Windows 2000", "Windows 2001", 12232and 12233"Windows 2001.1", and can be easily upgraded for new strings as 12234necessary. 12235This feature will allow "other" operating systems to execute the fully 12236tested, "Windows" code path through the ASL code 12237 12238Global Lock Support: Now allows multiple acquires and releases with any 12239internal thread. Removed concept of "owning thread" for this special 12240mutex. 12241 12242Fixed two functions that were inappropriately declaring large objects on 12243the 12244CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 12245during 12246method execution considerably. 12247 12248Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 12249S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 12250 12251Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 12252defined on the machine. 12253 12254Implemented two runtime options: One to force all control method 12255execution 12256to "Serialized" to mimic Windows behavior, another to disable _OSI 12257support 12258if it causes problems on a given machine. 12259 12260Code and Data Size: Current and previous core subsystem library sizes are 12261shown below. These are the code and data sizes for the acpica.lib 12262produced 12263by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12264any ACPI driver or OSPM code. The debug version of the code includes the 12265debug output trace mechanism and has a much larger code and data size. 12266Note 12267that these values will vary depending on the efficiency of the compiler 12268and 12269the compiler options used during generation. 12270 12271 Previous Release: 12272 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 12273 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 12274 Current Release: 12275 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 12276 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 12277 122782) iASL Compiler/Disassembler: 12279 12280Fixed an array size problem for FreeBSD that would cause the compiler to 12281fault. 12282 12283---------------------------------------- 1228420 February 2004. Summary of changes for version 20040220: 12285 12286 122871) ACPI CA Core Subsystem: 12288 12289Implemented execution of _SxD methods for Device objects in the 12290GetObjectInfo interface. 12291 12292Fixed calls to _SST method to pass the correct arguments. 12293 12294Added a call to _SST on wake to restore to "working" state. 12295 12296Check for End-Of-Buffer failure case in the WalkResources interface. 12297 12298Integrated fix for 64-bit alignment issue in acglobal.h by moving two 12299structures to the beginning of the file. 12300 12301After wake, clear GPE status register(s) before enabling GPEs. 12302 12303After wake, clear/enable power button. (Perhaps we should clear/enable 12304all 12305fixed events upon wake.) 12306 12307Fixed a couple of possible memory leaks in the Namespace manager. 12308 12309Integrated latest acnetbsd.h file. 12310 12311---------------------------------------- 1231211 February 2004. Summary of changes for version 20040211: 12313 12314 123151) ACPI CA Core Subsystem: 12316 12317Completed investigation and implementation of the call-by-reference 12318mechanism for control method arguments. 12319 12320Fixed a problem where a store of an object into an indexed package could 12321fail if the store occurs within a different method than the method that 12322created the package. 12323 12324Fixed a problem where the ToDecimal operator could return incorrect 12325results. 12326 12327Fixed a problem where the CopyObject operator could fail on some of the 12328more 12329obscure objects (e.g., Reference objects.) 12330 12331Improved the output of the Debug object to display buffer, package, and 12332index objects. 12333 12334Fixed a problem where constructs of the form "RefOf (ArgX)" did not 12335return 12336the expected result. 12337 12338Added permanent ACPI_REPORT_ERROR macros for all instances of the 12339ACPI_AML_INTERNAL exception. 12340 12341Integrated latest version of acfreebsd.h 12342 12343---------------------------------------- 1234416 January 2004. Summary of changes for version 20040116: 12345 12346The purpose of this release is primarily to update the copyright years in 12347each module, thus causing a huge number of diffs. There are a few small 12348functional changes, however. 12349 123501) ACPI CA Core Subsystem: 12351 12352Improved error messages when there is a problem finding one or more of 12353the 12354required base ACPI tables 12355 12356Reintroduced the definition of APIC_HEADER in actbl.h 12357 12358Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 12359 12360Removed extraneous reference to NewObj in dsmthdat.c 12361 123622) iASL compiler 12363 12364Fixed a problem introduced in December that disabled the correct 12365disassembly 12366of Resource Templates 12367 12368 12369---------------------------------------- 1237003 December 2003. Summary of changes for version 20031203: 12371 123721) ACPI CA Core Subsystem: 12373 12374Changed the initialization of Operation Regions during subsystem 12375init to perform two entire walks of the ACPI namespace; The first 12376to initialize the regions themselves, the second to execute the 12377_REG methods. This fixed some interdependencies across _REG 12378methods found on some machines. 12379 12380Fixed a problem where a Store(Local0, Local1) could simply update 12381the object reference count, and not create a new copy of the 12382object if the Local1 is uninitialized. 12383 12384Implemented support for the _SST reserved method during sleep 12385transitions. 12386 12387Implemented support to clear the SLP_TYP and SLP_EN bits when 12388waking up, this is apparently required by some machines. 12389 12390When sleeping, clear the wake status only if SleepState is not S5. 12391 12392Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 12393pointer arithmetic advanced a string pointer too far. 12394 12395Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 12396could be returned if the requested table has not been loaded. 12397 12398Within the support for IRQ resources, restructured the handling of 12399the active and edge/level bits. 12400 12401Fixed a few problems in AcpiPsxExecute() where memory could be 12402leaked under certain error conditions. 12403 12404Improved error messages for the cases where the ACPI mode could 12405not be entered. 12406 12407Code and Data Size: Current and previous core subsystem library 12408sizes are shown below. These are the code and data sizes for the 12409acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12410these values do not include any ACPI driver or OSPM code. The 12411debug version of the code includes the debug output trace 12412mechanism and has a much larger code and data size. Note that 12413these values will vary depending on the efficiency of the compiler 12414and the compiler options used during generation. 12415 12416 Previous Release (20031029): 12417 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 12418 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 12419 Current Release: 12420 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 12421 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 12422 124232) iASL Compiler/Disassembler: 12424 12425Implemented a fix for the iASL disassembler where a bad index was 12426generated. This was most noticeable on 64-bit platforms 12427 12428 12429---------------------------------------- 1243029 October 2003. Summary of changes for version 20031029: 12431 124321) ACPI CA Core Subsystem: 12433 12434 12435Fixed a problem where a level-triggered GPE with an associated 12436_Lxx control method was incorrectly cleared twice. 12437 12438Fixed a problem with the Field support code where an access can 12439occur beyond the end-of-region if the field is non-aligned but 12440extends to the very end of the parent region (resulted in an 12441AE_AML_REGION_LIMIT exception.) 12442 12443Fixed a problem with ACPI Fixed Events where an RT Clock handler 12444would not get invoked on an RTC event. The RTC event bitmasks for 12445the PM1 registers were not being initialized properly. 12446 12447Implemented support for executing _STA and _INI methods for 12448Processor objects. Although this is currently not part of the 12449ACPI specification, there is existing ASL code that depends on the 12450init-time execution of these methods. 12451 12452Implemented and deployed a GetDescriptorName function to decode 12453the various types of internal descriptors. Guards against null 12454descriptors during debug output also. 12455 12456Implemented and deployed a GetNodeName function to extract the 4- 12457character namespace node name. This function simplifies the debug 12458and error output, as well as guarding against null pointers during 12459output. 12460 12461Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 12462simplify the debug and error output of 64-bit integers. This 12463macro replaces the HIDWORD and LODWORD macros for dumping these 12464integers. 12465 12466Updated the implementation of the Stall() operator to only call 12467AcpiOsStall(), and also return an error if the operand is larger 12468than 255. This preserves the required behavior of not 12469relinquishing the processor, as would happen if AcpiOsSleep() was 12470called for "long stalls". 12471 12472Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 12473initialized are now treated as NOOPs. 12474 12475Cleaned up a handful of warnings during 64-bit generation. 12476 12477Fixed a reported error where and incorrect GPE number was passed 12478to the GPE dispatch handler. This value is only used for error 12479output, however. Used this opportunity to clean up and streamline 12480the GPE dispatch code. 12481 12482Code and Data Size: Current and previous core subsystem library 12483sizes are shown below. These are the code and data sizes for the 12484acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12485these values do not include any ACPI driver or OSPM code. The 12486 12487debug version of the code includes the debug output trace 12488mechanism and has a much larger code and data size. Note that 12489these values will vary depending on the efficiency of the compiler 12490and the compiler options used during generation. 12491 12492 Previous Release (20031002): 12493 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 12494 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 12495 Current Release: 12496 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 12497 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 12498 12499 125002) iASL Compiler/Disassembler: 12501 12502Updated the iASL compiler to return an error if the operand to the 12503Stall() operator is larger than 255. 12504 12505 12506---------------------------------------- 1250702 October 2003. Summary of changes for version 20031002: 12508 12509 125101) ACPI CA Core Subsystem: 12511 12512Fixed a problem with Index Fields where the index was not 12513incremented for fields that require multiple writes to the 12514index/data registers (Fields that are wider than the data 12515register.) 12516 12517Fixed a problem with all Field objects where a write could go 12518beyond the end-of-field if the field was larger than the access 12519granularity and therefore required multiple writes to complete the 12520request. An extra write beyond the end of the field could happen 12521inadvertently. 12522 12523Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 12524would incorrectly be returned if the width of the Data Register 12525was larger than the specified field access width. 12526 12527Completed fixes for LoadTable() and Unload() and verified their 12528operation. Implemented full support for the "DdbHandle" object 12529throughout the ACPI CA subsystem. 12530 12531Implemented full support for the MADT and ECDT tables in the ACPI 12532CA header files. Even though these tables are not directly 12533consumed by ACPI CA, the header definitions are useful for ACPI 12534device drivers. 12535 12536Integrated resource descriptor fixes posted to the Linux ACPI 12537list. This included checks for minimum descriptor length, and 12538support for trailing NULL strings within descriptors that have 12539optional string elements. 12540 12541Code and Data Size: Current and previous core subsystem library 12542sizes are shown below. These are the code and data sizes for the 12543acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12544these values do not include any ACPI driver or OSPM code. The 12545debug version of the code includes the debug output trace 12546mechanism and has a much larger code and data size. Note that 12547these values will vary depending on the efficiency of the compiler 12548and the compiler options used during generation. 12549 12550 Previous Release (20030918): 12551 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 12552 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 12553 Current Release: 12554 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 12555 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 12556 12557 125582) iASL Compiler: 12559 12560Implemented detection of non-ASCII characters within the input 12561source ASL file. This catches attempts to compile binary (AML) 12562files early in the compile, with an informative error message. 12563 12564Fixed a problem where the disassembler would fault if the output 12565filename could not be generated or if the output file could not be 12566opened. 12567 12568---------------------------------------- 1256918 September 2003. Summary of changes for version 20030918: 12570 12571 125721) ACPI CA Core Subsystem: 12573 12574Found and fixed a longstanding problem with the late execution of 12575the various deferred AML opcodes (such as Operation Regions, 12576Buffer Fields, Buffers, and Packages). If the name string 12577specified for the name of the new object placed the object in a 12578scope other than the current scope, the initialization/execution 12579of the opcode failed. The solution to this problem was to 12580implement a mechanism where the late execution of such opcodes 12581does not attempt to lookup/create the name a second time in an 12582incorrect scope. This fixes the "region size computed 12583incorrectly" problem. 12584 12585Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 12586Global Lock AE_BAD_PARAMETER error. 12587 12588Fixed several 64-bit issues with prototypes, casting and data 12589types. 12590 12591Removed duplicate prototype from acdisasm.h 12592 12593Fixed an issue involving EC Operation Region Detach (Shaohua Li) 12594 12595Code and Data Size: Current and previous core subsystem library 12596sizes are shown below. These are the code and data sizes for the 12597acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12598these values do not include any ACPI driver or OSPM code. The 12599debug version of the code includes the debug output trace 12600mechanism and has a much larger code and data size. Note that 12601these values will vary depending on the efficiency of the compiler 12602and the compiler options used during generation. 12603 12604 Previous Release: 12605 12606 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 12607 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 12608 Current Release: 12609 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 12610 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 12611 12612 126132) Linux: 12614 12615Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 12616correct sleep time in seconds. 12617 12618---------------------------------------- 1261914 July 2003. Summary of changes for version 20030619: 12620 126211) ACPI CA Core Subsystem: 12622 12623Parse SSDTs in order discovered, as opposed to reverse order 12624(Hrvoje Habjanic) 12625 12626Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 12627Klausner, 12628 Nate Lawson) 12629 12630 126312) Linux: 12632 12633Dynamically allocate SDT list (suggested by Andi Kleen) 12634 12635proc function return value cleanups (Andi Kleen) 12636 12637Correctly handle NMI watchdog during long stalls (Andrew Morton) 12638 12639Make it so acpismp=force works (reported by Andrew Morton) 12640 12641 12642---------------------------------------- 1264319 June 2003. Summary of changes for version 20030619: 12644 126451) ACPI CA Core Subsystem: 12646 12647Fix To/FromBCD, eliminating the need for an arch-specific #define. 12648 12649Do not acquire a semaphore in the S5 shutdown path. 12650 12651Fix ex_digits_needed for 0. (Takayoshi Kochi) 12652 12653Fix sleep/stall code reversal. (Andi Kleen) 12654 12655Revert a change having to do with control method calling 12656semantics. 12657 126582) Linux: 12659 12660acpiphp update (Takayoshi Kochi) 12661 12662Export acpi_disabled for sonypi (Stelian Pop) 12663 12664Mention acpismp=force in config help 12665 12666Re-add acpitable.c and acpismp=force. This improves backwards 12667 12668compatibility and also cleans up the code to a significant degree. 12669 12670Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 12671 12672---------------------------------------- 1267322 May 2003. Summary of changes for version 20030522: 12674 126751) ACPI CA Core Subsystem: 12676 12677Found and fixed a reported problem where an AE_NOT_FOUND error 12678occurred occasionally during _BST evaluation. This turned out to 12679be an Owner ID allocation issue where a called method did not get 12680a new ID assigned to it. Eventually, (after 64k calls), the Owner 12681ID UINT16 would wraparound so that the ID would be the same as the 12682caller's and the called method would delete the caller's 12683namespace. 12684 12685Implemented extended error reporting for control methods that are 12686aborted due to a run-time exception. Output includes the exact 12687AML instruction that caused the method abort, a dump of the method 12688locals and arguments at the time of the abort, and a trace of all 12689nested control method calls. 12690 12691Modified the interpreter to allow the creation of buffers of zero 12692length from the AML code. Implemented new code to ensure that no 12693attempt is made to actually allocate a memory buffer (of length 12694zero) - instead, a simple buffer object with a NULL buffer pointer 12695and length zero is created. A warning is no longer issued when 12696the AML attempts to create a zero-length buffer. 12697 12698Implemented a workaround for the "leading asterisk issue" in 12699_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 12700asterisk is automatically removed if present in any HID, UID, or 12701CID strings. The iASL compiler will still flag this asterisk as 12702an error, however. 12703 12704Implemented full support for _CID methods that return a package of 12705multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 12706now additionally returns a device _CID list if present. This 12707required a change to the external interface in order to pass an 12708ACPI_BUFFER object as a parameter since the _CID list is of 12709variable length. 12710 12711Fixed a problem with the new AE_SAME_HANDLER exception where 12712handler initialization code did not know about this exception. 12713 12714Code and Data Size: Current and previous core subsystem library 12715sizes are shown below. These are the code and data sizes for the 12716acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12717these values do not include any ACPI driver or OSPM code. The 12718debug version of the code includes the debug output trace 12719mechanism and has a much larger code and data size. Note that 12720these values will vary depending on the efficiency of the compiler 12721and the compiler options used during generation. 12722 12723 Previous Release (20030509): 12724 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 12725 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 12726 Current Release: 12727 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 12728 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 12729 12730 127312) Linux: 12732 12733Fixed a bug in which we would reinitialize the ACPI interrupt 12734after it was already working, thus disabling all ACPI and the IRQs 12735for any other device sharing the interrupt. (Thanks to Stian 12736Jordet) 12737 12738Toshiba driver update (John Belmonte) 12739 12740Return only 0 or 1 for our interrupt handler status (Andrew 12741Morton) 12742 12743 127443) iASL Compiler: 12745 12746Fixed a reported problem where multiple (nested) ElseIf() 12747statements were not handled correctly by the compiler, resulting 12748in incorrect warnings and incorrect AML code. This was a problem 12749in both the ASL parser and the code generator. 12750 12751 127524) Documentation: 12753 12754Added changes to existing interfaces, new exception codes, and new 12755text concerning reference count object management versus garbage 12756collection. 12757 12758---------------------------------------- 1275909 May 2003. Summary of changes for version 20030509. 12760 12761 127621) ACPI CA Core Subsystem: 12763 12764Changed the subsystem initialization sequence to hold off 12765installation of address space handlers until the hardware has been 12766initialized and the system has entered ACPI mode. This is because 12767the installation of space handlers can cause _REG methods to be 12768run. Previously, the _REG methods could potentially be run before 12769ACPI mode was enabled. 12770 12771Fixed some memory leak issues related to address space handler and 12772notify handler installation. There were some problems with the 12773reference count mechanism caused by the fact that the handler 12774objects are shared across several namespace objects. 12775 12776Fixed a reported problem where reference counts within the 12777namespace were not properly updated when named objects created by 12778method execution were deleted. 12779 12780Fixed a reported problem where multiple SSDTs caused a deletion 12781issue during subsystem termination. Restructured the table data 12782structures to simplify the linked lists and the related code. 12783 12784Fixed a problem where the table ID associated with secondary 12785tables (SSDTs) was not being propagated into the namespace objects 12786created by those tables. This would only present a problem for 12787tables that are unloaded at run-time, however. 12788 12789Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 12790type as the length parameter (instead of UINT32). 12791 12792Solved a long-standing problem where an ALREADY_EXISTS error 12793appears on various systems. This problem could happen when there 12794are multiple PCI_Config operation regions under a single PCI root 12795bus. This doesn't happen very frequently, but there are some 12796systems that do this in the ASL. 12797 12798Fixed a reported problem where the internal DeleteNode function 12799was incorrectly handling the case where a namespace node was the 12800first in the parent's child list, and had additional peers (not 12801the only child, but first in the list of children.) 12802 12803Code and Data Size: Current core subsystem library sizes are shown 12804below. These are the code and data sizes for the acpica.lib 12805produced by the Microsoft Visual C++ 6.0 compiler, and these 12806values do not include any ACPI driver or OSPM code. The debug 12807version of the code includes the debug output trace mechanism and 12808has a much larger code and data size. Note that these values will 12809vary depending on the efficiency of the compiler and the compiler 12810options used during generation. 12811 12812 Previous Release 12813 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 12814 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 12815 Current Release: 12816 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 12817 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 12818 12819 128202) Linux: 12821 12822Allow ":" in OS override string (Ducrot Bruno) 12823 12824Kobject fix (Greg KH) 12825 12826 128273 iASL Compiler/Disassembler: 12828 12829Fixed a problem in the generation of the C source code files (AML 12830is emitted in C source statements for BIOS inclusion) where the 12831Ascii dump that appears within a C comment at the end of each line 12832could cause a compile time error if the AML sequence happens to 12833have an open comment or close comment sequence embedded. 12834 12835 12836---------------------------------------- 1283724 April 2003. Summary of changes for version 20030424. 12838 12839 128401) ACPI CA Core Subsystem: 12841 12842Support for big-endian systems has been implemented. Most of the 12843support has been invisibly added behind big-endian versions of the 12844ACPI_MOVE_* macros. 12845 12846Fixed a problem in AcpiHwDisableGpeBlock() and 12847AcpiHwClearGpeBlock() where an incorrect offset was passed to the 12848low level hardware write routine. The offset parameter was 12849actually eliminated from the low level read/write routines because 12850they had become obsolete. 12851 12852Fixed a problem where a handler object was deleted twice during 12853the removal of a fixed event handler. 12854 12855 128562) Linux: 12857 12858A fix for SMP systems with link devices was contributed by 12859 12860Compaq's Dan Zink. 12861 12862(2.5) Return whether we handled the interrupt in our IRQ handler. 12863(Linux ISRs no longer return void, so we can propagate the handler 12864return value from the ACPI CA core back to the OS.) 12865 12866 12867 128683) Documentation: 12869 12870The ACPI CA Programmer Reference has been updated to reflect new 12871interfaces and changes to existing interfaces. 12872 12873---------------------------------------- 1287428 March 2003. Summary of changes for version 20030328. 12875 128761) ACPI CA Core Subsystem: 12877 12878The GPE Block Device support has been completed. New interfaces 12879are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 12880interfaces (enable, disable, clear, getstatus) have been split 12881into separate interfaces for Fixed Events and General Purpose 12882Events (GPEs) in order to support GPE Block Devices properly. 12883 12884Fixed a problem where the error message "Failed to acquire 12885semaphore" would appear during operations on the embedded 12886controller (EC). 12887 12888Code and Data Size: Current core subsystem library sizes are shown 12889below. These are the code and data sizes for the acpica.lib 12890produced by the Microsoft Visual C++ 6.0 compiler, and these 12891values do not include any ACPI driver or OSPM code. The debug 12892version of the code includes the debug output trace mechanism and 12893has a much larger code and data size. Note that these values will 12894vary depending on the efficiency of the compiler and the compiler 12895options used during generation. 12896 12897 Previous Release 12898 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 12899 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 12900 Current Release: 12901 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 12902 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 12903 12904 12905---------------------------------------- 1290628 February 2003. Summary of changes for version 20030228. 12907 12908 129091) ACPI CA Core Subsystem: 12910 12911The GPE handling and dispatch code has been completely overhauled 12912in preparation for support of GPE Block Devices (ID ACPI0006). 12913This affects internal data structures and code only; there should 12914be no differences visible externally. One new file has been 12915added, evgpeblk.c 12916 12917The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 12918fields that are used to determine the GPE block lengths. The 12919REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 12920structures are ignored. This is per the ACPI specification but it 12921isn't very clear. The full 256 Block 0/1 GPEs are now supported 12922(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 12923 12924In the SCI interrupt handler, removed the read of the PM1_CONTROL 12925register to look at the SCI_EN bit. On some machines, this read 12926causes an SMI event and greatly slows down SCI events. (This may 12927in fact be the cause of slow battery status response on some 12928systems.) 12929 12930Fixed a problem where a store of a NULL string to a package object 12931could cause the premature deletion of the object. This was seen 12932during execution of the battery _BIF method on some systems, 12933resulting in no battery data being returned. 12934 12935Added AcpiWalkResources interface to simplify parsing of resource 12936lists. 12937 12938Code and Data Size: Current core subsystem library sizes are shown 12939below. These are the code and data sizes for the acpica.lib 12940produced by the Microsoft Visual C++ 6.0 compiler, and these 12941values do not include any ACPI driver or OSPM code. The debug 12942version of the code includes the debug output trace mechanism and 12943has a much larger code and data size. Note that these values will 12944vary depending on the efficiency of the compiler and the compiler 12945options used during generation. 12946 12947 Previous Release 12948 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 12949 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 12950 Current Release: 12951 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 12952 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 12953 12954 129552) Linux 12956 12957S3 fixes (Ole Rohne) 12958 12959Update ACPI PHP driver with to use new acpi_walk_resource API 12960(Bjorn Helgaas) 12961 12962Add S4BIOS support (Pavel Machek) 12963 12964Map in entire table before performing checksum (John Stultz) 12965 12966Expand the mem= cmdline to allow the specification of reserved and 12967ACPI DATA blocks (Pavel Machek) 12968 12969Never use ACPI on VISWS 12970 12971Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 12972 12973Revert a change that allowed P_BLK lengths to be 4 or 5. This is 12974causing us to think that some systems support C2 when they really 12975don't. 12976 12977Do not count processor objects for non-present CPUs (Thanks to 12978Dominik Brodowski) 12979 12980 129813) iASL Compiler: 12982 12983Fixed a problem where ASL include files could not be found and 12984opened. 12985 12986Added support for the _PDC reserved name. 12987 12988 12989---------------------------------------- 1299022 January 2003. Summary of changes for version 20030122. 12991 12992 129931) ACPI CA Core Subsystem: 12994 12995Added a check for constructs of the form: Store (Local0, Local0) 12996where Local0 is not initialized. Apparently, some BIOS 12997programmers believe that this is a NOOP. Since this store doesn't 12998do anything anyway, the new prototype behavior will ignore this 12999error. This is a case where we can relax the strict checking in 13000the interpreter in the name of compatibility. 13001 13002 130032) Linux 13004 13005The AcpiSrc Source Conversion Utility has been released with the 13006Linux package for the first time. This is the utility that is 13007used to convert the ACPI CA base source code to the Linux version. 13008 13009(Both) Handle P_BLK lengths shorter than 6 more gracefully 13010 13011(Both) Move more headers to include/acpi, and delete an unused 13012header. 13013 13014(Both) Move drivers/acpi/include directory to include/acpi 13015 13016(Both) Boot functions don't use cmdline, so don't pass it around 13017 13018(Both) Remove include of unused header (Adrian Bunk) 13019 13020(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 13021the 13022former now also includes the latter, acpiphp.h only needs the one, 13023now. 13024 13025(2.5) Make it possible to select method of bios restoring after S3 13026resume. [=> no more ugly ifdefs] (Pavel Machek) 13027 13028(2.5) Make proc write interfaces work (Pavel Machek) 13029 13030(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 13031 13032(2.5) Break out ACPI Perf code into its own module, under cpufreq 13033(Dominik Brodowski) 13034 13035(2.4) S4BIOS support (Ducrot Bruno) 13036 13037(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 13038Visinoni) 13039 13040 130413) iASL Compiler: 13042 13043Added support to disassemble SSDT and PSDTs. 13044 13045Implemented support to obtain SSDTs from the Windows registry if 13046available. 13047 13048 13049---------------------------------------- 1305009 January 2003. Summary of changes for version 20030109. 13051 130521) ACPI CA Core Subsystem: 13053 13054Changed the behavior of the internal Buffer-to-String conversion 13055function. The current ACPI specification states that the contents 13056of the buffer are "converted to a string of two-character 13057hexadecimal numbers, each separated by a space". Unfortunately, 13058this definition is not backwards compatible with existing ACPI 1.0 13059implementations (although the behavior was not defined in the ACPI 130601.0 specification). The new behavior simply copies data from the 13061buffer to the string until a null character is found or the end of 13062the buffer is reached. The new String object is always null 13063terminated. This problem was seen during the generation of _BIF 13064battery data where incorrect strings were returned for battery 13065type, etc. This will also require an errata to the ACPI 13066specification. 13067 13068Renamed all instances of NATIVE_UINT and NATIVE_INT to 13069ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 13070 13071Copyright in all module headers (both Linux and non-Linux) has be 13072updated to 2003. 13073 13074Code and Data Size: Current core subsystem library sizes are shown 13075below. These are the code and data sizes for the acpica.lib 13076produced by the Microsoft Visual C++ 6.0 compiler, and these 13077values do not include any ACPI driver or OSPM code. The debug 13078version of the code includes the debug output trace mechanism and 13079has a much larger code and data size. Note that these values will 13080vary depending on the efficiency of the compiler and the compiler 13081options used during generation. 13082 13083 Previous Release 13084 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13085 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13086 Current Release: 13087 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13088 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13089 13090 130912) Linux 13092 13093Fixed an oops on module insertion/removal (Matthew Tippett) 13094 13095(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 13096 13097(2.5) Replace pr_debug (Randy Dunlap) 13098 13099(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 13100 13101(Both) Eliminate spawning of thread from timer callback, in favor 13102of schedule_work() 13103 13104(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 13105 13106(Both) Added define for Fixed Function HW region (Matthew Wilcox) 13107 13108(Both) Add missing statics to button.c (Pavel Machek) 13109 13110Several changes have been made to the source code translation 13111utility that generates the Linux Code in order to make the code 13112more "Linux-like": 13113 13114All typedefs on structs and unions have been removed in keeping 13115with the Linux coding style. 13116 13117Removed the non-Linux SourceSafe module revision number from each 13118module header. 13119 13120Completed major overhaul of symbols to be lowercased for linux. 13121Doubled the number of symbols that are lowercased. 13122 13123Fixed a problem where identifiers within procedure headers and 13124within quotes were not fully lower cased (they were left with a 13125starting capital.) 13126 13127Some C macros whose only purpose is to allow the generation of 16- 13128bit code are now completely removed in the Linux code, increasing 13129readability and maintainability. 13130 13131---------------------------------------- 13132 1313312 December 2002. Summary of changes for version 20021212. 13134 13135 131361) ACPI CA Core Subsystem: 13137 13138Fixed a problem where the creation of a zero-length AML Buffer 13139would cause a fault. 13140 13141Fixed a problem where a Buffer object that pointed to a static AML 13142buffer (in an ACPI table) could inadvertently be deleted, causing 13143memory corruption. 13144 13145Fixed a problem where a user buffer (passed in to the external 13146ACPI CA interfaces) could be overwritten if the buffer was too 13147small to complete the operation, causing memory corruption. 13148 13149Fixed a problem in the Buffer-to-String conversion code where a 13150string of length one was always returned, regardless of the size 13151of the input Buffer object. 13152 13153Removed the NATIVE_CHAR data type across the entire source due to 13154lack of need and lack of consistent use. 13155 13156Code and Data Size: Current core subsystem library sizes are shown 13157below. These are the code and data sizes for the acpica.lib 13158produced by the Microsoft Visual C++ 6.0 compiler, and these 13159values do not include any ACPI driver or OSPM code. The debug 13160version of the code includes the debug output trace mechanism and 13161has a much larger code and data size. Note that these values will 13162vary depending on the efficiency of the compiler and the compiler 13163options used during generation. 13164 13165 Previous Release 13166 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 13167 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 13168 Current Release: 13169 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13170 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13171 13172 13173---------------------------------------- 1317405 December 2002. Summary of changes for version 20021205. 13175 131761) ACPI CA Core Subsystem: 13177 13178Fixed a problem where a store to a String or Buffer object could 13179cause corruption of the DSDT if the object type being stored was 13180the same as the target object type and the length of the object 13181being stored was equal to or smaller than the original (existing) 13182target object. This was seen to cause corruption of battery _BIF 13183buffers if the _BIF method modified the buffer on the fly. 13184 13185Fixed a problem where an internal error was generated if a control 13186method invocation was used in an OperationRegion, Buffer, or 13187Package declaration. This was caused by the deferred parsing of 13188the control method and thus the deferred creation of the internal 13189method object. The solution to this problem was to create the 13190internal method object at the moment the method is encountered in 13191the first pass - so that subsequent references to the method will 13192able to obtain the required parameter count and thus properly 13193parse the method invocation. This problem presented itself as an 13194AE_AML_INTERNAL during the pass 1 parse phase during table load. 13195 13196Fixed a problem where the internal String object copy routine did 13197not always allocate sufficient memory for the target String object 13198and caused memory corruption. This problem was seen to cause 13199"Allocation already present in list!" errors as memory allocation 13200became corrupted. 13201 13202Implemented a new function for the evaluation of namespace objects 13203that allows the specification of the allowable return object 13204types. This simplifies a lot of code that checks for a return 13205object of one or more specific objects returned from the 13206evaluation (such as _STA, etc.) This may become and external 13207function if it would be useful to ACPI-related drivers. 13208 13209Completed another round of prefixing #defines with "ACPI_" for 13210clarity. 13211 13212Completed additional code restructuring to allow more modular 13213linking for iASL compiler and AcpiExec. Several files were split 13214creating new files. New files: nsparse.c dsinit.c evgpe.c 13215 13216Implemented an abort mechanism to terminate an executing control 13217method via the AML debugger. This feature is useful for debugging 13218control methods that depend (wait) for specific hardware 13219responses. 13220 13221Code and Data Size: Current core subsystem library sizes are shown 13222below. These are the code and data sizes for the acpica.lib 13223produced by the Microsoft Visual C++ 6.0 compiler, and these 13224values do not include any ACPI driver or OSPM code. The debug 13225version of the code includes the debug output trace mechanism and 13226has a much larger code and data size. Note that these values will 13227vary depending on the efficiency of the compiler and the compiler 13228options used during generation. 13229 13230 Previous Release 13231 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13232 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 13233 Current Release: 13234 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 13235 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 13236 13237 132382) iASL Compiler/Disassembler 13239 13240Fixed a compiler code generation problem for "Interrupt" Resource 13241Descriptors. If specified in the ASL, the optional "Resource 13242Source Index" and "Resource Source" fields were not inserted into 13243the correct location within the AML resource descriptor, creating 13244an invalid descriptor. 13245 13246Fixed a disassembler problem for "Interrupt" resource descriptors. 13247The optional "Resource Source Index" and "Resource Source" fields 13248were ignored. 13249 13250 13251---------------------------------------- 1325222 November 2002. Summary of changes for version 20021122. 13253 13254 132551) ACPI CA Core Subsystem: 13256 13257Fixed a reported problem where an object stored to a Method Local 13258or Arg was not copied to a new object during the store - the 13259object pointer was simply copied to the Local/Arg. This caused 13260all subsequent operations on the Local/Arg to also affect the 13261original source of the store operation. 13262 13263Fixed a problem where a store operation to a Method Local or Arg 13264was not completed properly if the Local/Arg contained a reference 13265(from RefOf) to a named field. The general-purpose store-to- 13266namespace-node code is now used so that this case is handled 13267automatically. 13268 13269Fixed a problem where the internal object copy routine would cause 13270a protection fault if the object being copied was a Package and 13271contained either 1) a NULL package element or 2) a nested sub- 13272package. 13273 13274Fixed a problem with the GPE initialization that resulted from an 13275ambiguity in the ACPI specification. One section of the 13276specification states that both the address and length of the GPE 13277block must be zero if the block is not supported. Another section 13278implies that only the address need be zero if the block is not 13279supported. The code has been changed so that both the address and 13280the length must be non-zero to indicate a valid GPE block (i.e., 13281if either the address or the length is zero, the GPE block is 13282invalid.) 13283 13284Code and Data Size: Current core subsystem library sizes are shown 13285below. These are the code and data sizes for the acpica.lib 13286produced by the Microsoft Visual C++ 6.0 compiler, and these 13287values do not include any ACPI driver or OSPM code. The debug 13288version of the code includes the debug output trace mechanism and 13289has a much larger code and data size. Note that these values will 13290vary depending on the efficiency of the compiler and the compiler 13291options used during generation. 13292 13293 Previous Release 13294 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 13295 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 13296 Current Release: 13297 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13298 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 13299 13300 133012) Linux 13302 13303Cleaned up EC driver. Exported an external EC read/write 13304interface. By going through this, other drivers (most notably 13305sonypi) will be able to serialize access to the EC. 13306 13307 133083) iASL Compiler/Disassembler 13309 13310Implemented support to optionally generate include files for both 13311ASM and C (the -i switch). This simplifies BIOS development by 13312automatically creating include files that contain external 13313declarations for the symbols that are created within the 13314 13315(optionally generated) ASM and C AML source files. 13316 13317 13318---------------------------------------- 1331915 November 2002. Summary of changes for version 20021115. 13320 133211) ACPI CA Core Subsystem: 13322 13323Fixed a memory leak problem where an error during resolution of 13324 13325method arguments during a method invocation from another method 13326failed to cleanup properly by deleting all successfully resolved 13327argument objects. 13328 13329Fixed a problem where the target of the Index() operator was not 13330correctly constructed if the source object was a package. This 13331problem has not been detected because the use of a target operand 13332with Index() is very rare. 13333 13334Fixed a problem with the Index() operator where an attempt was 13335made to delete the operand objects twice. 13336 13337Fixed a problem where an attempt was made to delete an operand 13338twice during execution of the CondRefOf() operator if the target 13339did not exist. 13340 13341Implemented the first of perhaps several internal create object 13342functions that create and initialize a specific object type. This 13343consolidates duplicated code wherever the object is created, thus 13344shrinking the size of the subsystem. 13345 13346Implemented improved debug/error messages for errors that occur 13347during nested method invocations. All executing method pathnames 13348are displayed (with the error) as the call stack is unwound - thus 13349simplifying debug. 13350 13351Fixed a problem introduced in the 10/02 release that caused 13352premature deletion of a buffer object if a buffer was used as an 13353ASL operand where an integer operand is required (Thus causing an 13354implicit object conversion from Buffer to Integer.) The change in 13355the 10/02 release was attempting to fix a memory leak (albeit 13356incorrectly.) 13357 13358Code and Data Size: Current core subsystem library sizes are shown 13359below. These are the code and data sizes for the acpica.lib 13360produced by the Microsoft Visual C++ 6.0 compiler, and these 13361values do not include any ACPI driver or OSPM code. The debug 13362version of the code includes the debug output trace mechanism and 13363has a much larger code and data size. Note that these values will 13364vary depending on the efficiency of the compiler and the compiler 13365options used during generation. 13366 13367 Previous Release 13368 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 13369 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 13370 Current Release: 13371 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 13372 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 13373 13374 133752) Linux 13376 13377Changed the implementation of the ACPI semaphores to use down() 13378instead of down_interruptable(). It is important that the 13379execution of ACPI control methods not be interrupted by signals. 13380Methods must run to completion, or the system may be left in an 13381unknown/unstable state. 13382 13383Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 13384(Shawn Starr) 13385 13386 133873) iASL Compiler/Disassembler 13388 13389 13390Changed the default location of output files. All output files 13391are now placed in the current directory by default instead of in 13392the directory of the source file. This change may affect some 13393existing makefiles, but it brings the behavior of the compiler in 13394line with other similar tools. The location of the output files 13395can be overridden with the -p command line switch. 13396 13397 13398---------------------------------------- 1339911 November 2002. Summary of changes for version 20021111. 13400 13401 134020) ACPI Specification 2.0B is released and is now available at: 13403http://www.acpi.info/index.html 13404 13405 134061) ACPI CA Core Subsystem: 13407 13408Implemented support for the ACPI 2.0 SMBus Operation Regions. 13409This includes the early detection and handoff of the request to 13410the SMBus region handler (avoiding all of the complex field 13411support code), and support for the bidirectional return packet 13412from an SMBus write operation. This paves the way for the 13413development of SMBus drivers in each host operating system. 13414 13415Fixed a problem where the semaphore WAIT_FOREVER constant was 13416defined as 32 bits, but must be 16 bits according to the ACPI 13417specification. This had the side effect of causing ASL 13418Mutex/Event timeouts even though the ASL code requested a wait 13419forever. Changed all internal references to the ACPI timeout 13420parameter to 16 bits to prevent future problems. Changed the name 13421of WAIT_FOREVER to ACPI_WAIT_FOREVER. 13422 13423Code and Data Size: Current core subsystem library sizes are shown 13424below. These are the code and data sizes for the acpica.lib 13425produced by the Microsoft Visual C++ 6.0 compiler, and these 13426values do not include any ACPI driver or OSPM code. The debug 13427version of the code includes the debug output trace mechanism and 13428has a much larger code and data size. Note that these values will 13429vary depending on the efficiency of the compiler and the compiler 13430options used during generation. 13431 13432 Previous Release 13433 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13434 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 13435 Current Release: 13436 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 13437 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 13438 13439 134402) Linux 13441 13442Module loading/unloading fixes (John Cagle) 13443 13444 134453) iASL Compiler/Disassembler 13446 13447Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 13448 13449Implemented support for the disassembly of all SMBus protocol 13450keywords (SMBQuick, SMBWord, etc.) 13451 13452---------------------------------------- 1345301 November 2002. Summary of changes for version 20021101. 13454 13455 134561) ACPI CA Core Subsystem: 13457 13458Fixed a problem where platforms that have a GPE1 block but no GPE0 13459block were not handled correctly. This resulted in a "GPE 13460overlap" error message. GPE0 is no longer required. 13461 13462Removed code added in the previous release that inserted nodes 13463into the namespace in alphabetical order. This caused some side- 13464effects on various machines. The root cause of the problem is 13465still under investigation since in theory, the internal ordering 13466of the namespace nodes should not matter. 13467 13468 13469Enhanced error reporting for the case where a named object is not 13470found during control method execution. The full ACPI namepath 13471(name reference) of the object that was not found is displayed in 13472this case. 13473 13474Note: as a result of the overhaul of the namespace object types in 13475the previous release, the namespace nodes for the predefined 13476scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 13477instead of ACPI_TYPE_ANY. This simplifies the namespace 13478management code but may affect code that walks the namespace tree 13479looking for specific object types. 13480 13481Code and Data Size: Current core subsystem library sizes are shown 13482below. These are the code and data sizes for the acpica.lib 13483produced by the Microsoft Visual C++ 6.0 compiler, and these 13484values do not include any ACPI driver or OSPM code. The debug 13485version of the code includes the debug output trace mechanism and 13486has a much larger code and data size. Note that these values will 13487vary depending on the efficiency of the compiler and the compiler 13488options used during generation. 13489 13490 Previous Release 13491 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 13492 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 13493 Current Release: 13494 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13495 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 13496 13497 134982) Linux 13499 13500Fixed a problem introduced in the previous release where the 13501Processor and Thermal objects were not recognized and installed in 13502/proc. This was related to the scope type change described above. 13503 13504 135053) iASL Compiler/Disassembler 13506 13507Implemented the -g option to get all of the required ACPI tables 13508from the registry and save them to files (Windows version of the 13509compiler only.) The required tables are the FADT, FACS, and DSDT. 13510 13511Added ACPI table checksum validation during table disassembly in 13512order to catch corrupted tables. 13513 13514 13515---------------------------------------- 1351622 October 2002. Summary of changes for version 20021022. 13517 135181) ACPI CA Core Subsystem: 13519 13520Implemented a restriction on the Scope operator that the target 13521must already exist in the namespace at the time the operator is 13522encountered (during table load or method execution). In other 13523words, forward references are not allowed and Scope() cannot 13524create a new object. This changes the previous behavior where the 13525interpreter would create the name if not found. This new behavior 13526correctly enables the search-to-root algorithm during namespace 13527lookup of the target name. Because of this upsearch, this fixes 13528the known Compaq _SB_.OKEC problem and makes both the AML 13529interpreter and iASL compiler compatible with other ACPI 13530implementations. 13531 13532Completed a major overhaul of the internal ACPI object types for 13533the ACPI Namespace and the associated operand objects. Many of 13534these types had become obsolete with the introduction of the two- 13535pass namespace load. This cleanup simplifies the code and makes 13536the entire namespace load mechanism much clearer and easier to 13537understand. 13538 13539Improved debug output for tracking scope opening/closing to help 13540diagnose scoping issues. The old scope name as well as the new 13541scope name are displayed. Also improved error messages for 13542problems with ASL Mutex objects and error messages for GPE 13543problems. 13544 13545Cleaned up the namespace dump code, removed obsolete code. 13546 13547All string output (for all namespace/object dumps) now uses the 13548common ACPI string output procedure which handles escapes properly 13549and does not emit non-printable characters. 13550 13551Fixed some issues with constants in the 64-bit version of the 13552local C library (utclib.c) 13553 13554 135552) Linux 13556 13557EC Driver: No longer attempts to acquire the Global Lock at 13558interrupt level. 13559 13560 135613) iASL Compiler/Disassembler 13562 13563Implemented ACPI 2.0B grammar change that disallows all Type 1 and 135642 opcodes outside of a control method. This means that the 13565"executable" operators (versus the "namespace" operators) cannot 13566be used at the table level; they can only be used within a control 13567method. 13568 13569Implemented the restriction on the Scope() operator where the 13570target must already exist in the namespace at the time the 13571operator is encountered (during ASL compilation). In other words, 13572forward references are not allowed and Scope() cannot create a new 13573object. This makes the iASL compiler compatible with other ACPI 13574implementations and makes the Scope() implementation adhere to the 13575ACPI specification. 13576 13577Fixed a problem where namepath optimization for the Alias operator 13578was optimizing the wrong path (of the two namepaths.) This caused 13579a "Missing alias link" error message. 13580 13581Fixed a problem where an "unknown reserved name" warning could be 13582incorrectly generated for names like "_SB" when the trailing 13583underscore is not used in the original ASL. 13584 13585Fixed a problem where the reserved name check did not handle 13586NamePaths with multiple NameSegs correctly. The first nameseg of 13587the NamePath was examined instead of the last NameSeg. 13588 13589 13590---------------------------------------- 13591 1359202 October 2002. Summary of changes for this release. 13593 13594 135951) ACPI CA Core Subsystem version 20021002: 13596 13597Fixed a problem where a store/copy of a string to an existing 13598string did not always set the string length properly in the String 13599object. 13600 13601Fixed a reported problem with the ToString operator where the 13602behavior was identical to the ToHexString operator instead of just 13603simply converting a raw buffer to a string data type. 13604 13605Fixed a problem where CopyObject and the other "explicit" 13606conversion operators were not updating the internal namespace node 13607type as part of the store operation. 13608 13609Fixed a memory leak during implicit source operand conversion 13610where the original object was not deleted if it was converted to a 13611new object of a different type. 13612 13613Enhanced error messages for all problems associated with namespace 13614lookups. Common procedure generates and prints the lookup name as 13615well as the formatted status. 13616 13617Completed implementation of a new design for the Alias support 13618within the namespace. The existing design did not handle the case 13619where a new object was assigned to one of the two names due to the 13620use of an explicit conversion operator, resulting in the two names 13621pointing to two different objects. The new design simply points 13622the Alias name to the original name node - not to the object. 13623This results in a level of indirection that must be handled in the 13624name resolution mechanism. 13625 13626Code and Data Size: Current core subsystem library sizes are shown 13627below. These are the code and data sizes for the acpica.lib 13628produced by the Microsoft Visual C++ 6.0 compiler, and these 13629values do not include any ACPI driver or OSPM code. The debug 13630version of the code includes the debug output trace mechanism and 13631has a larger code and data size. Note that these values will vary 13632depending on the efficiency of the compiler and the compiler 13633options used during generation. 13634 13635 Previous Release 13636 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 13637 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 13638 Current Release: 13639 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 13640 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 13641 13642 136432) Linux 13644 13645Initialize thermal driver's timer before it is used. (Knut 13646Neumann) 13647 13648Allow handling negative celsius values. (Kochi Takayoshi) 13649 13650Fix thermal management and make trip points. R/W (Pavel Machek) 13651 13652Fix /proc/acpi/sleep. (P. Christeas) 13653 13654IA64 fixes. (David Mosberger) 13655 13656Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 13657 13658Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 13659Brodowski) 13660 13661 136623) iASL Compiler/Disassembler 13663 13664Clarified some warning/error messages. 13665 13666 13667---------------------------------------- 1366818 September 2002. Summary of changes for this release. 13669 13670 136711) ACPI CA Core Subsystem version 20020918: 13672 13673Fixed a reported problem with reference chaining (via the Index() 13674and RefOf() operators) in the ObjectType() and SizeOf() operators. 13675The definition of these operators includes the dereferencing of 13676all chained references to return information on the base object. 13677 13678Fixed a problem with stores to indexed package elements - the 13679existing code would not complete the store if an "implicit 13680conversion" was not performed. In other words, if the existing 13681object (package element) was to be replaced completely, the code 13682didn't handle this case. 13683 13684Relaxed typechecking on the ASL "Scope" operator to allow the 13685target name to refer to an object of type Integer, String, or 13686Buffer, in addition to the scoping object types (Device, 13687predefined Scopes, Processor, PowerResource, and ThermalZone.) 13688This allows existing AML code that has workarounds for a bug in 13689Windows to function properly. A warning is issued, however. This 13690affects both the AML interpreter and the iASL compiler. Below is 13691an example of this type of ASL code: 13692 13693 Name(DEB,0x00) 13694 Scope(DEB) 13695 { 13696 13697Fixed some reported problems with 64-bit integer support in the 13698local implementation of C library functions (clib.c) 13699 13700 137012) Linux 13702 13703Use ACPI fix map region instead of IOAPIC region, since it is 13704undefined in non-SMP. 13705 13706Ensure that the SCI has the proper polarity and trigger, even on 13707systems that do not have an interrupt override entry in the MADT. 13708 137092.5 big driver reorganization (Pat Mochel) 13710 13711Use early table mapping code from acpitable.c (Andi Kleen) 13712 13713New blacklist entries (Andi Kleen) 13714 13715Blacklist improvements. Split blacklist code out into a separate 13716file. Move checking the blacklist to very early. Previously, we 13717would use ACPI tables, and then halfway through init, check the 13718blacklist -- too late. Now, it's early enough to completely fall- 13719back to non-ACPI. 13720 13721 137223) iASL Compiler/Disassembler version 20020918: 13723 13724Fixed a problem where the typechecking code didn't know that an 13725alias could point to a method. In other words, aliases were not 13726being dereferenced during typechecking. 13727 13728 13729---------------------------------------- 1373029 August 2002. Summary of changes for this release. 13731 137321) ACPI CA Core Subsystem Version 20020829: 13733 13734If the target of a Scope() operator already exists, it must be an 13735object type that actually opens a scope -- such as a Device, 13736Method, Scope, etc. This is a fatal runtime error. Similar error 13737check has been added to the iASL compiler also. 13738 13739Tightened up the namespace load to disallow multiple names in the 13740same scope. This previously was allowed if both objects were of 13741the same type. (i.e., a lookup was the same as entering a new 13742name). 13743 13744 137452) Linux 13746 13747Ensure that the ACPI interrupt has the proper trigger and 13748polarity. 13749 13750local_irq_disable is extraneous. (Matthew Wilcox) 13751 13752Make "acpi=off" actually do what it says, and not use the ACPI 13753interpreter *or* the tables. 13754 13755Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 13756Takayoshi) 13757 13758 137593) iASL Compiler/Disassembler Version 20020829: 13760 13761Implemented namepath optimization for name declarations. For 13762example, a declaration like "Method (\_SB_.ABCD)" would get 13763optimized to "Method (ABCD)" if the declaration is within the 13764\_SB_ scope. This optimization is in addition to the named 13765reference path optimization first released in the previous 13766version. This would seem to complete all possible optimizations 13767for namepaths within the ASL/AML. 13768 13769If the target of a Scope() operator already exists, it must be an 13770object type that actually opens a scope -- such as a Device, 13771Method, Scope, etc. 13772 13773Implemented a check and warning for unreachable code in the same 13774block below a Return() statement. 13775 13776Fixed a problem where the listing file was not generated if the 13777compiler aborted if the maximum error count was exceeded (200). 13778 13779Fixed a problem where the typechecking of method return values was 13780broken. This includes the check for a return value when the 13781method is invoked as a TermArg (a return value is expected.) 13782 13783Fixed a reported problem where EOF conditions during a quoted 13784string or comment caused a fault. 13785 13786 13787---------------------------------------- 1378815 August 2002. Summary of changes for this release. 13789 137901) ACPI CA Core Subsystem Version 20020815: 13791 13792Fixed a reported problem where a Store to a method argument that 13793contains a reference did not perform the indirect store correctly. 13794This problem was created during the conversion to the new 13795reference object model - the indirect store to a method argument 13796code was not updated to reflect the new model. 13797 13798Reworked the ACPI mode change code to better conform to ACPI 2.0, 13799handle corner cases, and improve code legibility (Kochi Takayoshi) 13800 13801Fixed a problem with the pathname parsing for the carat (^) 13802prefix. The heavy use of the carat operator by the new namepath 13803optimization in the iASL compiler uncovered a problem with the AML 13804interpreter handling of this prefix. In the case where one or 13805more carats precede a single nameseg, the nameseg was treated as 13806standalone and the search rule (to root) was inadvertently 13807applied. This could cause both the iASL compiler and the 13808interpreter to find the wrong object or to miss the error that 13809should occur if the object does not exist at that exact pathname. 13810 13811Found and fixed the problem where the HP Pavilion DSDT would not 13812load. This was a relatively minor tweak to the table loading code 13813(a problem caused by the unexpected encounter with a method 13814invocation not within a control method), but it does not solve the 13815overall issue of the execution of AML code at the table level. 13816This investigation is still ongoing. 13817 13818Code and Data Size: Current core subsystem library sizes are shown 13819below. These are the code and data sizes for the acpica.lib 13820produced by the Microsoft Visual C++ 6.0 compiler, and these 13821values do not include any ACPI driver or OSPM code. The debug 13822version of the code includes the debug output trace mechanism and 13823has a larger code and data size. Note that these values will vary 13824depending on the efficiency of the compiler and the compiler 13825options used during generation. 13826 13827 Previous Release 13828 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 13829 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 13830 Current Release: 13831 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 13832 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 13833 13834 138352) Linux 13836 13837Remove redundant slab.h include (Brad Hards) 13838 13839Fix several bugs in thermal.c (Herbert Nachtnebel) 13840 13841Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 13842 13843Change acpi_system_suspend to use updated irq functions (Pavel 13844Machek) 13845 13846Export acpi_get_firmware_table (Matthew Wilcox) 13847 13848Use proper root proc entry for ACPI (Kochi Takayoshi) 13849 13850Fix early-boot table parsing (Bjorn Helgaas) 13851 13852 138533) iASL Compiler/Disassembler 13854 13855Reworked the compiler options to make them more consistent and to 13856use two-letter options where appropriate. We were running out of 13857sensible letters. This may break some makefiles, so check the 13858current options list by invoking the compiler with no parameters. 13859 13860Completed the design and implementation of the ASL namepath 13861optimization option for the compiler. This option optimizes all 13862references to named objects to the shortest possible path. The 13863first attempt tries to utilize a single nameseg (4 characters) and 13864the "search-to-root" algorithm used by the interpreter. If that 13865cannot be used (because either the name is not in the search path 13866or there is a conflict with another object with the same name), 13867the pathname is optimized using the carat prefix (usually a 13868shorter string than specifying the entire path from the root.) 13869 13870Implemented support to obtain the DSDT from the Windows registry 13871(when the disassembly option is specified with no input file). 13872Added this code as the implementation for AcpiOsTableOverride in 13873the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 13874utility) to scan memory for the DSDT to the AcpiOsTableOverride 13875function in the DOS OSL to make the disassembler truly OS 13876independent. 13877 13878Implemented a new option to disassemble and compile in one step. 13879When used without an input filename, this option will grab the 13880DSDT from the local machine, disassemble it, and compile it in one 13881step. 13882 13883Added a warning message for invalid escapes (a backslash followed 13884by any character other than the allowable escapes). This catches 13885the quoted string error "\_SB_" (which should be "\\_SB_" ). 13886 13887Also, there are numerous instances in the ACPI specification where 13888this error occurs. 13889 13890Added a compiler option to disable all optimizations. This is 13891basically the "compatibility mode" because by using this option, 13892the AML code will come out exactly the same as other ASL 13893compilers. 13894 13895Added error messages for incorrectly ordered dependent resource 13896functions. This includes: missing EndDependentFn macro at end of 13897dependent resource list, nested dependent function macros (both 13898start and end), and missing StartDependentFn macro. These are 13899common errors that should be caught at compile time. 13900 13901Implemented _OSI support for the disassembler and compiler. _OSI 13902must be included in the namespace for proper disassembly (because 13903the disassembler must know the number of arguments.) 13904 13905Added an "optimization" message type that is optional (off by 13906default). This message is used for all optimizations - including 13907constant folding, integer optimization, and namepath optimization. 13908 13909---------------------------------------- 1391025 July 2002. Summary of changes for this release. 13911 13912 139131) ACPI CA Core Subsystem Version 20020725: 13914 13915The AML Disassembler has been enhanced to produce compilable ASL 13916code and has been integrated into the iASL compiler (see below) as 13917well as the single-step disassembly for the AML debugger and the 13918disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 13919resource templates and macros are fully supported. The 13920disassembler has been tested on over 30 different AML files, 13921producing identical AML when the resulting disassembled ASL file 13922is recompiled with the same ASL compiler. 13923 13924Modified the Resource Manager to allow zero interrupts and zero 13925dma channels during the GetCurrentResources call. This was 13926causing problems on some platforms. 13927 13928Added the AcpiOsRedirectOutput interface to the OSL to simplify 13929output redirection for the AcpiOsPrintf and AcpiOsVprintf 13930interfaces. 13931 13932Code and Data Size: Current core subsystem library sizes are shown 13933below. These are the code and data sizes for the acpica.lib 13934produced by the Microsoft Visual C++ 6.0 compiler, and these 13935values do not include any ACPI driver or OSPM code. The debug 13936version of the code includes the debug output trace mechanism and 13937has a larger code and data size. Note that these values will vary 13938depending on the efficiency of the compiler and the compiler 13939options used during generation. 13940 13941 Previous Release 13942 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 13943 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 13944 Current Release: 13945 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 13946 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 13947 13948 139492) Linux 13950 13951Fixed a panic in the EC driver (Dominik Brodowski) 13952 13953Implemented checksum of the R/XSDT itself during Linux table scan 13954(Richard Schaal) 13955 13956 139573) iASL compiler 13958 13959The AML disassembler is integrated into the compiler. The "-d" 13960option invokes the disassembler to completely disassemble an 13961input AML file, producing as output a text ASL file with the 13962extension ".dsl" (to avoid name collisions with existing .asl 13963source files.) A future enhancement will allow the disassembler 13964to obtain the BIOS DSDT from the registry under Windows. 13965 13966Fixed a problem with the VendorShort and VendorLong resource 13967descriptors where an invalid AML sequence was created. 13968 13969Implemented a fix for BufferData term in the ASL parser. It was 13970inadvertently defined twice, allowing invalid syntax to pass and 13971causing reduction conflicts. 13972 13973Fixed a problem where the Ones opcode could get converted to a 13974value of zero if "Ones" was used where a byte, word or dword value 13975was expected. The 64-bit value is now truncated to the correct 13976size with the correct value. 13977 13978 13979 13980---------------------------------------- 1398102 July 2002. Summary of changes for this release. 13982 13983 139841) ACPI CA Core Subsystem Version 20020702: 13985 13986The Table Manager code has been restructured to add several new 13987features. Tables that are not required by the core subsystem 13988(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 13989validated in any way and are returned from AcpiGetFirmwareTable if 13990requested. The AcpiOsTableOverride interface is now called for 13991each table that is loaded by the subsystem in order to allow the 13992host to override any table it chooses. Previously, only the DSDT 13993could be overridden. Added one new files, tbrsdt.c and 13994tbgetall.c. 13995 13996Fixed a problem with the conversion of internal package objects to 13997external objects (when a package is returned from a control 13998method.) The return buffer length was set to zero instead of the 13999proper length of the package object. 14000 14001Fixed a reported problem with the use of the RefOf and DeRefOf 14002operators when passing reference arguments to control methods. A 14003new type of Reference object is used internally for references 14004produced by the RefOf operator. 14005 14006Added additional error messages in the Resource Manager to explain 14007AE_BAD_DATA errors when they occur during resource parsing. 14008 14009Split the AcpiEnableSubsystem into two primitives to enable a 14010finer granularity initialization sequence. These two calls should 14011be called in this order: AcpiEnableSubsystem (flags), 14012AcpiInitializeObjects (flags). The flags parameter remains the 14013same. 14014 14015 140162) Linux 14017 14018Updated the ACPI utilities module to understand the new style of 14019fully resolved package objects that are now returned from the core 14020subsystem. This eliminates errors of the form: 14021 14022 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 14023 acpi_utils-0430 [145] acpi_evaluate_reference: 14024 Invalid element in package (not a device reference) 14025 14026The method evaluation utility uses the new buffer allocation 14027scheme instead of calling AcpiEvaluate Object twice. 14028 14029Added support for ECDT. This allows the use of the Embedded 14030 14031Controller before the namespace has been fully initialized, which 14032is necessary for ACPI 2.0 support, and for some laptops to 14033initialize properly. (Laptops using ECDT are still rare, so only 14034limited testing was performed of the added functionality.) 14035 14036Fixed memory leaks in the EC driver. 14037 14038Eliminated a brittle code structure in acpi_bus_init(). 14039 14040Eliminated the acpi_evaluate() helper function in utils.c. It is 14041no longer needed since acpi_evaluate_object can optionally 14042allocate memory for the return object. 14043 14044Implemented fix for keyboard hang when getting battery readings on 14045some systems (Stephen White) 14046 14047PCI IRQ routing update (Dominik Brodowski) 14048 14049Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 14050support 14051 14052---------------------------------------- 1405311 June 2002. Summary of changes for this release. 14054 14055 140561) ACPI CA Core Subsystem Version 20020611: 14057 14058Fixed a reported problem where constants such as Zero and One 14059appearing within _PRT packages were not handled correctly within 14060the resource manager code. Originally reported against the ASL 14061compiler because the code generator now optimizes integers to 14062their minimal AML representation (i.e. AML constants if possible.) 14063The _PRT code now handles all AML constant opcodes correctly 14064(Zero, One, Ones, Revision). 14065 14066Fixed a problem with the Concatenate operator in the AML 14067interpreter where a buffer result object was incorrectly marked as 14068not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 14069 14070All package sub-objects are now fully resolved before they are 14071returned from the external ACPI interfaces. This means that name 14072strings are resolved to object handles, and constant operators 14073(Zero, One, Ones, Revision) are resolved to Integers. 14074 14075Implemented immediate resolution of the AML Constant opcodes 14076(Zero, One, Ones, Revision) to Integer objects upon detection 14077within the AML stream. This has simplified and reduced the 14078generated code size of the subsystem by eliminating about 10 14079switch statements for these constants (which previously were 14080contained in Reference objects.) The complicating issues are that 14081the Zero opcode is used as a "placeholder" for unspecified 14082optional target operands and stores to constants are defined to be 14083no-ops. 14084 14085Code and Data Size: Current core subsystem library sizes are shown 14086below. These are the code and data sizes for the acpica.lib 14087produced by the Microsoft Visual C++ 6.0 compiler, and these 14088values do not include any ACPI driver or OSPM code. The debug 14089version of the code includes the debug output trace mechanism and 14090has a larger code and data size. Note that these values will vary 14091depending on the efficiency of the compiler and the compiler 14092options used during generation. 14093 14094 Previous Release 14095 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 14096 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 14097 Current Release: 14098 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 14099 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 14100 14101 141022) Linux 14103 14104 14105Added preliminary support for obtaining _TRA data for PCI root 14106bridges (Bjorn Helgaas). 14107 14108 141093) iASL Compiler Version X2046: 14110 14111Fixed a problem where the "_DDN" reserved name was defined to be a 14112control method with one argument. There are no arguments, and 14113_DDN does not have to be a control method. 14114 14115Fixed a problem with the Linux version of the compiler where the 14116source lines printed with error messages were the wrong lines. 14117This turned out to be the "LF versus CR/LF" difference between 14118Windows and Unix. This appears to be the longstanding issue 14119concerning listing output and error messages. 14120 14121Fixed a problem with the Linux version of compiler where opcode 14122names within error messages were wrong. This was caused by a 14123slight difference in the output of the Flex tool on Linux versus 14124Windows. 14125 14126Fixed a problem with the Linux compiler where the hex output files 14127contained some garbage data caused by an internal buffer overrun. 14128 14129 14130---------------------------------------- 1413117 May 2002. Summary of changes for this release. 14132 14133 141341) ACPI CA Core Subsystem Version 20020517: 14135 14136Implemented a workaround to an BIOS bug discovered on the HP 14137OmniBook where the FADT revision number and the table size are 14138inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 14139behavior is to fallback to using only the ACPI 1.0 fields of the 14140FADT if the table is too small to be a ACPI 2.0 table as claimed 14141by the revision number. Although this is a BIOS bug, this is a 14142case where the workaround is simple enough and with no side 14143effects, so it seemed prudent to add it. A warning message is 14144issued, however. 14145 14146Implemented minimum size checks for the fixed-length ACPI tables - 14147- the FADT and FACS, as well as consistency checks between the 14148revision number and the table size. 14149 14150Fixed a reported problem in the table override support where the 14151new table pointer was incorrectly treated as a physical address 14152instead of a logical address. 14153 14154Eliminated the use of the AE_AML_ERROR exception and replaced it 14155with more descriptive codes. 14156 14157Fixed a problem where an exception would occur if an ASL Field was 14158defined with no named Field Units underneath it (used by some 14159index fields). 14160 14161Code and Data Size: Current core subsystem library sizes are shown 14162below. These are the code and data sizes for the acpica.lib 14163produced by the Microsoft Visual C++ 6.0 compiler, and these 14164values do not include any ACPI driver or OSPM code. The debug 14165version of the code includes the debug output trace mechanism and 14166has a larger code and data size. Note that these values will vary 14167depending on the efficiency of the compiler and the compiler 14168options used during generation. 14169 14170 Previous Release 14171 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 14172 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 14173 Current Release: 14174 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 14175 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 14176 14177 14178 141792) Linux 14180 14181Much work done on ACPI init (MADT and PCI IRQ routing support). 14182(Paul D. and Dominik Brodowski) 14183 14184Fix PCI IRQ-related panic on boot (Sam Revitch) 14185 14186Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 14187 14188Fix "MHz" typo (Dominik Brodowski) 14189 14190Fix RTC year 2000 issue (Dominik Brodowski) 14191 14192Preclude multiple button proc entries (Eric Brunet) 14193 14194Moved arch-specific code out of include/platform/aclinux.h 14195 141963) iASL Compiler Version X2044: 14197 14198Implemented error checking for the string used in the EISAID macro 14199(Usually used in the definition of the _HID object.) The code now 14200strictly enforces the PnP format - exactly 7 characters, 3 14201uppercase letters and 4 hex digits. 14202 14203If a raw string is used in the definition of the _HID object 14204(instead of the EISAID macro), the string must contain all 14205alphanumeric characters (e.g., "*PNP0011" is not allowed because 14206of the asterisk.) 14207 14208Implemented checking for invalid use of ACPI reserved names for 14209most of the name creation operators (Name, Device, Event, Mutex, 14210OperationRegion, PowerResource, Processor, and ThermalZone.) 14211Previously, this check was only performed for control methods. 14212 14213Implemented an additional check on the Name operator to emit an 14214error if a reserved name that must be implemented in ASL as a 14215control method is used. We know that a reserved name must be a 14216method if it is defined with input arguments. 14217 14218The warning emitted when a namespace object reference is not found 14219during the cross reference phase has been changed into an error. 14220The "External" directive should be used for names defined in other 14221modules. 14222 14223 142244) Tools and Utilities 14225 14226The 16-bit tools (adump16 and aexec16) have been regenerated and 14227tested. 14228 14229Fixed a problem with the output of both acpidump and adump16 where 14230the indentation of closing parentheses and brackets was not 14231 14232aligned properly with the parent block. 14233 14234 14235---------------------------------------- 1423603 May 2002. Summary of changes for this release. 14237 14238 142391) ACPI CA Core Subsystem Version 20020503: 14240 14241Added support a new OSL interface that allows the host operating 14242 14243system software to override the DSDT found in the firmware - 14244AcpiOsTableOverride. With this interface, the OSL can examine the 14245version of the firmware DSDT and replace it with a different one 14246if desired. 14247 14248Added new external interfaces for accessing ACPI registers from 14249device drivers and other system software - AcpiGetRegister and 14250AcpiSetRegister. This was simply an externalization of the 14251existing AcpiHwBitRegister interfaces. 14252 14253Fixed a regression introduced in the previous build where the 14254ASL/AML CreateField operator always returned an error, 14255"destination must be a NS Node". 14256 14257Extended the maximum time (before failure) to successfully enable 14258ACPI mode to 3 seconds. 14259 14260Code and Data Size: Current core subsystem library sizes are shown 14261below. These are the code and data sizes for the acpica.lib 14262produced by the Microsoft Visual C++ 6.0 compiler, and these 14263values do not include any ACPI driver or OSPM code. The debug 14264version of the code includes the debug output trace mechanism and 14265has a larger code and data size. Note that these values will vary 14266depending on the efficiency of the compiler and the compiler 14267options used during generation. 14268 14269 Previous Release 14270 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 14271 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 14272 Current Release: 14273 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 14274 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 14275 14276 142772) Linux 14278 14279Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 14280free. While 3 out of 4 of our in-house systems work fine, the last 14281one still hangs when testing the LAPIC timer. 14282 14283Renamed many files in 2.5 kernel release to omit "acpi_" from the 14284name. 14285 14286Added warning on boot for Presario 711FR. 14287 14288Sleep improvements (Pavel Machek) 14289 14290ACPI can now be built without CONFIG_PCI enabled. 14291 14292IA64: Fixed memory map functions (JI Lee) 14293 14294 142953) iASL Compiler Version X2043: 14296 14297Added support to allow the compiler to be integrated into the MS 14298VC++ development environment for one-button compilation of single 14299files or entire projects -- with error-to-source-line mapping. 14300 14301Implemented support for compile-time constant folding for the 14302Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 14303specification. This allows the ASL writer to use expressions 14304instead of Integer/Buffer/String constants in terms that must 14305evaluate to constants at compile time and will also simplify the 14306emitted AML in any such sub-expressions that can be folded 14307(evaluated at compile-time.) This increases the size of the 14308compiler significantly because a portion of the ACPI CA AML 14309interpreter is included within the compiler in order to pre- 14310evaluate constant expressions. 14311 14312 14313Fixed a problem with the "Unicode" ASL macro that caused the 14314compiler to fault. (This macro is used in conjunction with the 14315_STR reserved name.) 14316 14317Implemented an AML opcode optimization to use the Zero, One, and 14318Ones opcodes where possible to further reduce the size of integer 14319constants and thus reduce the overall size of the generated AML 14320code. 14321 14322Implemented error checking for new reserved terms for ACPI version 143232.0A. 14324 14325Implemented the -qr option to display the current list of ACPI 14326reserved names known to the compiler. 14327 14328Implemented the -qc option to display the current list of ASL 14329operators that are allowed within constant expressions and can 14330therefore be folded at compile time if the operands are constants. 14331 14332 143334) Documentation 14334 14335Updated the Programmer's Reference for new interfaces, data types, 14336and memory allocation model options. 14337 14338Updated the iASL Compiler User Reference to apply new format and 14339add information about new features and options. 14340 14341---------------------------------------- 1434219 April 2002. Summary of changes for this release. 14343 143441) ACPI CA Core Subsystem Version 20020419: 14345 14346The source code base for the Core Subsystem has been completely 14347cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 14348versions. The Lint option files used are included in the 14349/acpi/generate/lint directory. 14350 14351Implemented enhanced status/error checking across the entire 14352Hardware manager subsystem. Any hardware errors (reported from 14353the OSL) are now bubbled up and will abort a running control 14354method. 14355 14356 14357Fixed a problem where the per-ACPI-table integer width (32 or 64) 14358was stored only with control method nodes, causing a fault when 14359non-control method code was executed during table loading. The 14360solution implemented uses a global variable to indicate table 14361width across the entire ACPI subsystem. Therefore, ACPI CA does 14362not support mixed integer widths across different ACPI tables 14363(DSDT, SSDT). 14364 14365Fixed a problem where NULL extended fields (X fields) in an ACPI 143662.0 ACPI FADT caused the table load to fail. Although the 14367existing ACPI specification is a bit fuzzy on this topic, the new 14368behavior is to fall back on a ACPI 1.0 field if the corresponding 14369ACPI 2.0 X field is zero (even though the table revision indicates 14370a full ACPI 2.0 table.) The ACPI specification will be updated to 14371clarify this issue. 14372 14373Fixed a problem with the SystemMemory operation region handler 14374where memory was always accessed byte-wise even if the AML- 14375specified access width was larger than a byte. This caused 14376problems on systems with memory-mapped I/O. Memory is now 14377accessed with the width specified. On systems that do not support 14378non-aligned transfers, a check is made to guarantee proper address 14379alignment before proceeding in order to avoid an AML-caused 14380alignment fault within the kernel. 14381 14382 14383Fixed a problem with the ExtendedIrq resource where only one byte 14384of the 4-byte Irq field was extracted. 14385 14386Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 14387function was out of date and required a rewrite. 14388 14389Code and Data Size: Current core subsystem library sizes are shown 14390below. These are the code and data sizes for the acpica.lib 14391produced by the Microsoft Visual C++ 6.0 compiler, and these 14392values do not include any ACPI driver or OSPM code. The debug 14393version of the code includes the debug output trace mechanism and 14394has a larger code and data size. Note that these values will vary 14395depending on the efficiency of the compiler and the compiler 14396options used during generation. 14397 14398 Previous Release 14399 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 14400 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 14401 Current Release: 14402 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 14403 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 14404 14405 144062) Linux 14407 14408PCI IRQ routing fixes (Dominik Brodowski) 14409 14410 144113) iASL Compiler Version X2042: 14412 14413Implemented an additional compile-time error check for a field 14414unit whose size + minimum access width would cause a run-time 14415access beyond the end-of-region. Previously, only the field size 14416itself was checked. 14417 14418The Core subsystem and iASL compiler now share a common parse 14419object in preparation for compile-time evaluation of the type 144203/4/5 ASL operators. 14421 14422 14423---------------------------------------- 14424Summary of changes for this release: 03_29_02 14425 144261) ACPI CA Core Subsystem Version 20020329: 14427 14428Implemented support for late evaluation of TermArg operands to 14429Buffer and Package objects. This allows complex expressions to be 14430used in the declarations of these object types. 14431 14432Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 144331.0, if the field was larger than 32 bits, it was returned as a 14434buffer - otherwise it was returned as an integer. In ACPI 2.0, 14435the field is returned as a buffer only if the field is larger than 1443664 bits. The TableRevision is now considered when making this 14437conversion to avoid incompatibility with existing ASL code. 14438 14439Implemented logical addressing for AcpiOsGetRootPointer. This 14440allows an RSDP with either a logical or physical address. With 14441this support, the host OS can now override all ACPI tables with 14442one logical RSDP. Includes implementation of "typed" pointer 14443support to allow a common data type for both physical and logical 14444pointers internally. This required a change to the 14445AcpiOsGetRootPointer interface. 14446 14447Implemented the use of ACPI 2.0 Generic Address Structures for all 14448GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 14449mapped I/O for these ACPI features. 14450 14451Initialization now ignores not only non-required tables (All 14452tables other than the FADT, FACS, DSDT, and SSDTs), but also does 14453not validate the table headers of unrecognized tables. 14454 14455Fixed a problem where a notify handler could only be 14456installed/removed on an object of type Device. All "notify" 14457 14458objects are now supported -- Devices, Processor, Power, and 14459Thermal. 14460 14461Removed most verbosity from the ACPI_DB_INFO debug level. Only 14462critical information is returned when this debug level is enabled. 14463 14464Code and Data Size: Current core subsystem library sizes are shown 14465below. These are the code and data sizes for the acpica.lib 14466produced by the Microsoft Visual C++ 6.0 compiler, and these 14467values do not include any ACPI driver or OSPM code. The debug 14468version of the code includes the debug output trace mechanism and 14469has a larger code and data size. Note that these values will vary 14470depending on the efficiency of the compiler and the compiler 14471options used during generation. 14472 14473 Previous Release 14474 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 14475 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 14476 Current Release: 14477 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 14478 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 14479 14480 144812) Linux: 14482 14483The processor driver (acpi_processor.c) now fully supports ACPI 144842.0-based processor performance control (e.g. Intel(R) 14485SpeedStep(TM) technology) Note that older laptops that only have 14486the Intel "applet" interface are not supported through this. The 14487'limit' and 'performance' interface (/proc) are fully functional. 14488[Note that basic policy for controlling performance state 14489transitions will be included in the next version of ospmd.] The 14490idle handler was modified to more aggressively use C2, and PIIX4 14491errata handling underwent a complete overhaul (big thanks to 14492Dominik Brodowski). 14493 14494Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 14495based devices in the ACPI namespace are now dynamically bound 14496(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 14497This allows, among other things, ACPI to resolve bus numbers for 14498subordinate PCI bridges. 14499 14500Enhanced PCI IRQ routing to get the proper bus number for _PRT 14501entries defined underneath PCI bridges. 14502 14503Added IBM 600E to bad bios list due to invalid _ADR value for 14504PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 14505 14506In the process of adding full MADT support (e.g. IOAPIC) for IA32 14507(acpi.c, mpparse.c) -- stay tuned. 14508 14509Added back visual differentiation between fixed-feature and 14510control-method buttons in dmesg. Buttons are also subtyped (e.g. 14511button/power/PWRF) to simplify button identification. 14512 14513We no longer use -Wno-unused when compiling debug. Please ignore 14514any "_THIS_MODULE defined but not used" messages. 14515 14516Can now shut down the system using "magic sysrq" key. 14517 14518 145193) iASL Compiler version 2041: 14520 14521Fixed a problem where conversion errors for hex/octal/decimal 14522constants were not reported. 14523 14524Implemented a fix for the General Register template Address field. 14525This field was 8 bits when it should be 64. 14526 14527Fixed a problem where errors/warnings were no longer being emitted 14528within the listing output file. 14529 14530Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 14531exactly 4 characters, alphanumeric only. 14532 14533 14534 14535 14536---------------------------------------- 14537Summary of changes for this release: 03_08_02 14538 14539 145401) ACPI CA Core Subsystem Version 20020308: 14541 14542Fixed a problem with AML Fields where the use of the "AccessAny" 14543keyword could cause an interpreter error due to attempting to read 14544or write beyond the end of the parent Operation Region. 14545 14546Fixed a problem in the SystemMemory Operation Region handler where 14547an attempt was made to map memory beyond the end of the region. 14548This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 14549errors on some Linux systems. 14550 14551Fixed a problem where the interpreter/namespace "search to root" 14552algorithm was not functioning for some object types. Relaxed the 14553internal restriction on the search to allow upsearches for all 14554external object types as well as most internal types. 14555 14556 145572) Linux: 14558 14559We now use safe_halt() macro versus individual calls to sti | hlt. 14560 14561Writing to the processor limit interface should now work. "echo 1" 14562will increase the limit, 2 will decrease, and 0 will reset to the 14563 14564default. 14565 14566 145673) ASL compiler: 14568 14569Fixed segfault on Linux version. 14570 14571 14572---------------------------------------- 14573Summary of changes for this release: 02_25_02 14574 145751) ACPI CA Core Subsystem: 14576 14577 14578Fixed a problem where the GPE bit masks were not initialized 14579properly, causing erratic GPE behavior. 14580 14581Implemented limited support for multiple calling conventions. The 14582code can be generated with either the VPL (variable parameter 14583list, or "C") convention, or the FPL (fixed parameter list, or 14584"Pascal") convention. The core subsystem is about 3.4% smaller 14585when generated with FPL. 14586 14587 145882) Linux 14589 14590Re-add some /proc/acpi/event functionality that was lost during 14591the rewrite 14592 14593Resolved issue with /proc events for fixed-feature buttons showing 14594up as the system device. 14595 14596Fixed checks on C2/C3 latencies to be inclusive of maximum values. 14597 14598Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 14599 14600Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 14601 14602Fixed limit interface & usage to fix bugs with passive cooling 14603hysterisis. 14604 14605Restructured PRT support. 14606 14607 14608---------------------------------------- 14609Summary of changes for this label: 02_14_02 14610 14611 146121) ACPI CA Core Subsystem: 14613 14614Implemented support in AcpiLoadTable to allow loading of FACS and 14615FADT tables. 14616 14617Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 14618been removed. All 64-bit platforms should be migrated to the ACPI 146192.0 tables. The actbl71.h header has been removed from the source 14620tree. 14621 14622All C macros defined within the subsystem have been prefixed with 14623"ACPI_" to avoid collision with other system include files. 14624 14625Removed the return value for the two AcpiOsPrint interfaces, since 14626it is never used and causes lint warnings for ignoring the return 14627value. 14628 14629Added error checking to all internal mutex acquire and release 14630calls. Although a failure from one of these interfaces is 14631probably a fatal system error, these checks will cause the 14632immediate abort of the currently executing method or interface. 14633 14634Fixed a problem where the AcpiSetCurrentResources interface could 14635fault. This was a side effect of the deployment of the new memory 14636allocation model. 14637 14638Fixed a couple of problems with the Global Lock support introduced 14639in the last major build. The "common" (1.0/2.0) internal FACS was 14640being overwritten with the FACS signature and clobbering the 14641Global Lock pointer. Also, the actual firmware FACS was being 14642unmapped after construction of the "common" FACS, preventing 14643access to the actual Global Lock field within it. The "common" 14644internal FACS is no longer installed as an actual ACPI table; it 14645is used simply as a global. 14646 14647Code and Data Size: Current core subsystem library sizes are shown 14648below. These are the code and data sizes for the acpica.lib 14649produced by the Microsoft Visual C++ 6.0 compiler, and these 14650values do not include any ACPI driver or OSPM code. The debug 14651version of the code includes the debug output trace mechanism and 14652has a larger code and data size. Note that these values will vary 14653depending on the efficiency of the compiler and the compiler 14654options used during generation. 14655 14656 Previous Release (02_07_01) 14657 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 14658 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 14659 Current Release: 14660 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 14661 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 14662 14663 146642) Linux 14665 14666Updated Linux-specific code for core macro and OSL interface 14667changes described above. 14668 14669Improved /proc/acpi/event. It now can be opened only once and has 14670proper poll functionality. 14671 14672Fixed and restructured power management (acpi_bus). 14673 14674Only create /proc "view by type" when devices of that class exist. 14675 14676Fixed "charging/discharging" bug (and others) in acpi_battery. 14677 14678Improved thermal zone code. 14679 14680 146813) ASL Compiler, version X2039: 14682 14683 14684Implemented the new compiler restriction on ASL String hex/octal 14685escapes to non-null, ASCII values. An error results if an invalid 14686value is used. (This will require an ACPI 2.0 specification 14687change.) 14688 14689AML object labels that are output to the optional C and ASM source 14690are now prefixed with both the ACPI table signature and table ID 14691to help guarantee uniqueness within a large BIOS project. 14692 14693 14694---------------------------------------- 14695Summary of changes for this label: 02_01_02 14696 146971) ACPI CA Core Subsystem: 14698 14699ACPI 2.0 support is complete in the entire Core Subsystem and the 14700ASL compiler. All new ACPI 2.0 operators are implemented and all 14701other changes for ACPI 2.0 support are complete. With 14702simultaneous code and data optimizations throughout the subsystem, 14703ACPI 2.0 support has been implemented with almost no additional 14704cost in terms of code and data size. 14705 14706Implemented a new mechanism for allocation of return buffers. If 14707the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 14708be allocated on behalf of the caller. Consolidated all return 14709buffer validation and allocation to a common procedure. Return 14710buffers will be allocated via the primary OSL allocation interface 14711since it appears that a separate pool is not needed by most users. 14712If a separate pool is required for these buffers, the caller can 14713still use the original mechanism and pre-allocate the buffer(s). 14714 14715Implemented support for string operands within the DerefOf 14716operator. 14717 14718Restructured the Hardware and Event managers to be table driven, 14719simplifying the source code and reducing the amount of generated 14720code. 14721 14722Split the common read/write low-level ACPI register bitfield 14723procedure into a separate read and write, simplifying the code 14724considerably. 14725 14726Obsoleted the AcpiOsCallocate OSL interface. This interface was 14727used only a handful of times and didn't have enough critical mass 14728for a separate interface. Replaced with a common calloc procedure 14729in the core. 14730 14731Fixed a reported problem with the GPE number mapping mechanism 14732that allows GPE1 numbers to be non-contiguous with GPE0. 14733Reorganized the GPE information and shrunk a large array that was 14734originally large enough to hold info for all possible GPEs (256) 14735to simply large enough to hold all GPEs up to the largest GPE 14736number on the machine. 14737 14738Fixed a reported problem with resource structure alignment on 64- 14739bit platforms. 14740 14741Changed the AcpiEnableEvent and AcpiDisableEvent external 14742interfaces to not require any flags for the common case of 14743enabling/disabling a GPE. 14744 14745Implemented support to allow a "Notify" on a Processor object. 14746 14747Most TBDs in comments within the source code have been resolved 14748and eliminated. 14749 14750 14751Fixed a problem in the interpreter where a standalone parent 14752prefix (^) was not handled correctly in the interpreter and 14753debugger. 14754 14755Removed obsolete and unnecessary GPE save/restore code. 14756 14757Implemented Field support in the ASL Load operator. This allows a 14758table to be loaded from a named field, in addition to loading a 14759table directly from an Operation Region. 14760 14761Implemented timeout and handle support in the external Global Lock 14762interfaces. 14763 14764Fixed a problem in the AcpiDump utility where pathnames were no 14765longer being generated correctly during the dump of named objects. 14766 14767Modified the AML debugger to give a full display of if/while 14768predicates instead of just one AML opcode at a time. (The 14769predicate can have several nested ASL statements.) The old method 14770was confusing during single stepping. 14771 14772Code and Data Size: Current core subsystem library sizes are shown 14773below. These are the code and data sizes for the acpica.lib 14774produced by the Microsoft Visual C++ 6.0 compiler, and these 14775values do not include any ACPI driver or OSPM code. The debug 14776version of the code includes the debug output trace mechanism and 14777has a larger code and data size. Note that these values will vary 14778depending on the efficiency of the compiler and the compiler 14779options used during generation. 14780 14781 Previous Release (12_18_01) 14782 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 14783 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 14784 Current Release: 14785 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 14786 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 14787 147882) Linux 14789 14790 Implemented fix for PIIX reverse throttling errata (Processor 14791driver) 14792 14793Added new Limit interface (Processor and Thermal drivers) 14794 14795New thermal policy (Thermal driver) 14796 14797Many updates to /proc 14798 14799Battery "low" event support (Battery driver) 14800 14801Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 14802 14803IA32 - IA64 initialization unification, no longer experimental 14804 14805Menuconfig options redesigned 14806 148073) ASL Compiler, version X2037: 14808 14809Implemented several new output features to simplify integration of 14810AML code into firmware: 1) Output the AML in C source code with 14811labels for each named ASL object. The original ASL source code 14812is interleaved as C comments. 2) Output the AML in ASM source code 14813with labels and interleaved ASL source. 3) Output the AML in 14814raw hex table form, in either C or ASM. 14815 14816Implemented support for optional string parameters to the 14817LoadTable operator. 14818 14819Completed support for embedded escape sequences within string 14820literals. The compiler now supports all single character escapes 14821as well as the Octal and Hex escapes. Note: the insertion of a 14822null byte into a string literal (via the hex/octal escape) causes 14823the string to be immediately terminated. A warning is issued. 14824 14825Fixed a problem where incorrect AML was generated for the case 14826where an ASL namepath consists of a single parent prefix ( 14827 14828) with no trailing name segments. 14829 14830The compiler has been successfully generated with a 64-bit C 14831compiler. 14832 14833 14834 14835 14836---------------------------------------- 14837Summary of changes for this label: 12_18_01 14838 148391) Linux 14840 14841Enhanced blacklist with reason and severity fields. Any table's 14842signature may now be used to identify a blacklisted system. 14843 14844Call _PIC control method to inform the firmware which interrupt 14845model the OS is using. Turn on any disabled link devices. 14846 14847Cleaned up busmgr /proc error handling (Andreas Dilger) 14848 14849 2) ACPI CA Core Subsystem: 14850 14851Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 14852while loop) 14853 14854Completed implementation of the ACPI 2.0 "Continue", 14855"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 14856operators. All new ACPI 2.0 operators are now implemented in both 14857the ASL compiler and the AML interpreter. The only remaining ACPI 148582.0 task is support for the String data type in the DerefOf 14859operator. Fixed a problem with AcquireMutex where the status code 14860was lost if the caller had to actually wait for the mutex. 14861 14862Increased the maximum ASL Field size from 64K bits to 4G bits. 14863 14864Completed implementation of the external Global Lock interfaces -- 14865AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 14866Handler parameters were added. 14867 14868Completed another pass at removing warnings and issues when 14869compiling with 64-bit compilers. The code now compiles cleanly 14870with the Intel 64-bit C/C++ compiler. Most notably, the pointer 14871add and subtract (diff) macros have changed considerably. 14872 14873 14874Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1487564-bit platforms, 32-bits on all others. This type is used 14876wherever memory allocation and/or the C sizeof() operator is used, 14877and affects the OSL memory allocation interfaces AcpiOsAllocate 14878and AcpiOsCallocate. 14879 14880Implemented sticky user breakpoints in the AML debugger. 14881 14882Code and Data Size: Current core subsystem library sizes are shown 14883below. These are the code and data sizes for the acpica.lib 14884produced by the Microsoft Visual C++ 6.0 compiler, and these 14885values do not include any ACPI driver or OSPM code. The debug 14886version of the code includes the debug output trace mechanism and 14887has a larger code and data size. Note that these values will vary 14888depending on the efficiency of the compiler and the compiler 14889options used during generation. 14890 14891 Previous Release (12_05_01) 14892 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 14893 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 14894 Current Release: 14895 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 14896 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 14897 14898 3) ASL Compiler, version X2034: 14899 14900Now checks for (and generates an error if detected) the use of a 14901Break or Continue statement without an enclosing While statement. 14902 14903 14904Successfully generated the compiler with the Intel 64-bit C 14905compiler. 14906 14907 ---------------------------------------- 14908Summary of changes for this label: 12_05_01 14909 14910 1) ACPI CA Core Subsystem: 14911 14912The ACPI 2.0 CopyObject operator is fully implemented. This 14913operator creates a new copy of an object (and is also used to 14914bypass the "implicit conversion" mechanism of the Store operator.) 14915 14916The ACPI 2.0 semantics for the SizeOf operator are fully 14917implemented. The change is that performing a SizeOf on a 14918reference object causes an automatic dereference of the object to 14919tha actual value before the size is evaluated. This behavior was 14920undefined in ACPI 1.0. 14921 14922The ACPI 2.0 semantics for the Extended IRQ resource descriptor 14923have been implemented. The interrupt polarity and mode are now 14924independently set. 14925 14926Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 14927appearing in Package objects were not properly converted to 14928integers when the internal Package was converted to an external 14929object (via the AcpiEvaluateObject interface.) 14930 14931Fixed a problem with the namespace object deletion mechanism for 14932objects created by control methods. There were two parts to this 14933problem: 1) Objects created during the initialization phase method 14934parse were not being deleted, and 2) The object owner ID mechanism 14935to track objects was broken. 14936 14937Fixed a problem where the use of the ASL Scope operator within a 14938control method would result in an invalid opcode exception. 14939 14940Fixed a problem introduced in the previous label where the buffer 14941length required for the _PRT structure was not being returned 14942correctly. 14943 14944Code and Data Size: Current core subsystem library sizes are shown 14945below. These are the code and data sizes for the acpica.lib 14946produced by the Microsoft Visual C++ 6.0 compiler, and these 14947values do not include any ACPI driver or OSPM code. The debug 14948version of the code includes the debug output trace mechanism and 14949has a larger code and data size. Note that these values will vary 14950depending on the efficiency of the compiler and the compiler 14951options used during generation. 14952 14953 Previous Release (11_20_01) 14954 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 14955 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 14956 14957 Current Release: 14958 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 14959 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 14960 14961 2) Linux: 14962 14963Updated all files to apply cleanly against 2.4.16. 14964 14965Added basic PCI Interrupt Routing Table (PRT) support for IA32 14966(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 14967version supports both static and dyanmic PRT entries, but dynamic 14968entries are treated as if they were static (not yet 14969reconfigurable). Architecture- specific code to use this data is 14970absent on IA32 but should be available shortly. 14971 14972Changed the initialization sequence to start the ACPI interpreter 14973(acpi_init) prior to initialization of the PCI driver (pci_init) 14974in init/main.c. This ordering is required to support PRT and 14975facilitate other (future) enhancement. A side effect is that the 14976ACPI bus driver and certain device drivers can no longer be loaded 14977as modules. 14978 14979Modified the 'make menuconfig' options to allow PCI Interrupt 14980Routing support to be included without the ACPI Bus and other 14981device drivers. 14982 14983 3) ASL Compiler, version X2033: 14984 14985Fixed some issues with the use of the new CopyObject and 14986DataTableRegion operators. Both are fully functional. 14987 14988 ---------------------------------------- 14989Summary of changes for this label: 11_20_01 14990 14991 20 November 2001. Summary of changes for this release. 14992 14993 1) ACPI CA Core Subsystem: 14994 14995Updated Index support to match ACPI 2.0 semantics. Storing a 14996Integer, String, or Buffer to an Index of a Buffer will store only 14997the least-significant byte of the source to the Indexed buffer 14998byte. Multiple writes are not performed. 14999 15000Fixed a problem where the access type used in an AccessAs ASL 15001operator was not recorded correctly into the field object. 15002 15003Fixed a problem where ASL Event objects were created in a 15004signalled state. Events are now created in an unsignalled state. 15005 15006The internal object cache is now purged after table loading and 15007initialization to reduce the use of dynamic kernel memory -- on 15008the assumption that object use is greatest during the parse phase 15009of the entire table (versus the run-time use of individual control 15010methods.) 15011 15012ACPI 2.0 variable-length packages are now fully operational. 15013 15014Code and Data Size: Code and Data optimizations have permitted new 15015feature development with an actual reduction in the library size. 15016Current core subsystem library sizes are shown below. These are 15017the code and data sizes for the acpica.lib produced by the 15018Microsoft Visual C++ 6.0 compiler, and these values do not include 15019any ACPI driver or OSPM code. The debug version of the code 15020includes the debug output trace mechanism and has a larger code 15021and data size. Note that these values will vary depending on the 15022efficiency of the compiler and the compiler options used during 15023generation. 15024 15025 Previous Release (11_09_01): 15026 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 15027 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 15028 15029 Current Release: 15030 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 15031 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 15032 15033 2) Linux: 15034 15035Enhanced the ACPI boot-time initialization code to allow the use 15036of Local APIC tables for processor enumeration on IA-32, and to 15037pave the way for a fully MPS-free boot (on SMP systems) in the 15038near future. This functionality replaces 15039arch/i386/kernel/acpitables.c, which was introduced in an earlier 150402.4.15-preX release. To enable this feature you must add 15041"acpi_boot=on" to the kernel command line -- see the help entry 15042for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 15043the works... 15044 15045Restructured the configuration options to allow boot-time table 15046parsing support without inclusion of the ACPI Interpreter (and 15047other) code. 15048 15049NOTE: This release does not include fixes for the reported events, 15050power-down, and thermal passive cooling issues (coming soon). 15051 15052 3) ASL Compiler: 15053 15054Added additional typechecking for Fields within restricted access 15055Operation Regions. All fields within EC and CMOS regions must be 15056declared with ByteAcc. All fields withing SMBus regions must be 15057declared with the BufferAcc access type. 15058 15059Fixed a problem where the listing file output of control methods 15060no longer interleaved the actual AML code with the ASL source 15061code. 15062 15063 15064 15065 15066---------------------------------------- 15067Summary of changes for this label: 11_09_01 15068 150691) ACPI CA Core Subsystem: 15070 15071Implemented ACPI 2.0-defined support for writes to fields with a 15072Buffer, String, or Integer source operand that is smaller than the 15073target field. In these cases, the source operand is zero-extended 15074to fill the target field. 15075 15076Fixed a problem where a Field starting bit offset (within the 15077parent operation region) was calculated incorrectly if the 15078 15079alignment of the field differed from the access width. This 15080affected CreateWordField, CreateDwordField, CreateQwordField, and 15081possibly other fields that use the "AccessAny" keyword. 15082 15083Fixed a problem introduced in the 11_02_01 release where indirect 15084stores through method arguments did not operate correctly. 15085 150862) Linux: 15087 15088Implemented boot-time ACPI table parsing support 15089(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 15090facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 15091legacy BIOS interfaces (e.g. MPS) for the configuration of system 15092processors, memory, and interrupts during setup_arch(). Note that 15093this patch does not include the required architecture-specific 15094changes required to apply this information -- subsequent patches 15095will be posted for both IA32 and IA64 to achieve this. 15096 15097Added low-level sleep support for IA32 platforms, courtesy of Pat 15098Mochel. This allows IA32 systems to transition to/from various 15099sleeping states (e.g. S1, S3), although the lack of a centralized 15100driver model and power-manageable drivers will prevent its 15101(successful) use on most systems. 15102 15103Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 15104submenu, unified IA32 and IA64 options, added new "Boot using ACPI 15105tables" option, etc. 15106 15107Increased the default timeout for the EC driver from 1ms to 10ms 15108(1000 cycles of 10us) to try to address AE_TIME errors during EC 15109transactions. 15110 15111 ---------------------------------------- 15112Summary of changes for this label: 11_02_01 15113 151141) ACPI CA Core Subsystem: 15115 15116ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 15117(QWordAcc keyword). All ACPI 2.0 64-bit support is now 15118implemented. 15119 15120OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 15121changes to support ACPI 2.0 Qword field access. Read/Write 15122PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 15123accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 15124the value parameter for the address space handler interface is now 15125an ACPI_INTEGER. OSL implementations of these interfaces must now 15126handle the case where the Width parameter is 64. 15127 15128Index Fields: Fixed a problem where unaligned bit assembly and 15129disassembly for IndexFields was not supported correctly. 15130 15131Index and Bank Fields: Nested Index and Bank Fields are now 15132supported. During field access, a check is performed to ensure 15133that the value written to an Index or Bank register is not out of 15134the range of the register. The Index (or Bank) register is 15135written before each access to the field data. Future support will 15136include allowing individual IndexFields to be wider than the 15137DataRegister width. 15138 15139Fields: Fixed a problem where the AML interpreter was incorrectly 15140attempting to write beyond the end of a Field/OpRegion. This was 15141a boundary case that occurred when a DWORD field was written to a 15142BYTE access OpRegion, forcing multiple writes and causing the 15143interpreter to write one datum too many. 15144 15145Fields: Fixed a problem with Field/OpRegion access where the 15146starting bit address of a field was incorrectly calculated if the 15147current access type was wider than a byte (WordAcc, DwordAcc, or 15148QwordAcc). 15149 15150Fields: Fixed a problem where forward references to individual 15151FieldUnits (individual Field names within a Field definition) were 15152not resolved during the AML table load. 15153 15154Fields: Fixed a problem where forward references from a Field 15155definition to the parent Operation Region definition were not 15156resolved during the AML table load. 15157 15158Fields: Duplicate FieldUnit names within a scope are now detected 15159during AML table load. 15160 15161Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 15162returned an incorrect name for the root node. 15163 15164Code and Data Size: Code and Data optimizations have permitted new 15165feature development with an actual reduction in the library size. 15166Current core subsystem library sizes are shown below. These are 15167the code and data sizes for the acpica.lib produced by the 15168Microsoft Visual C++ 6.0 compiler, and these values do not include 15169any ACPI driver or OSPM code. The debug version of the code 15170includes the debug output trace mechanism and has a larger code 15171and data size. Note that these values will vary depending on the 15172efficiency of the compiler and the compiler options used during 15173generation. 15174 15175 Previous Release (10_18_01): 15176 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 15177 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 15178 15179 Current Release: 15180 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 15181 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 15182 15183 2) Linux: 15184 15185Improved /proc processor output (Pavel Machek) Re-added 15186MODULE_LICENSE("GPL") to all modules. 15187 15188 3) ASL Compiler version X2030: 15189 15190Duplicate FieldUnit names within a scope are now detected and 15191flagged as errors. 15192 15193 4) Documentation: 15194 15195Programmer Reference updated to reflect OSL and address space 15196handler interface changes described above. 15197 15198---------------------------------------- 15199Summary of changes for this label: 10_18_01 15200 15201ACPI CA Core Subsystem: 15202 15203Fixed a problem with the internal object reference count mechanism 15204that occasionally caused premature object deletion. This resolves 15205all of the outstanding problem reports where an object is deleted 15206in the middle of an interpreter evaluation. Although this problem 15207only showed up in rather obscure cases, the solution to the 15208problem involved an adjustment of all reference counts involving 15209objects attached to namespace nodes. 15210 15211Fixed a problem with Field support in the interpreter where 15212writing to an aligned field whose length is an exact multiple (2 15213or greater) of the field access granularity would cause an attempt 15214to write beyond the end of the field. 15215 15216The top level AML opcode execution functions within the 15217interpreter have been renamed with a more meaningful and 15218consistent naming convention. The modules exmonad.c and 15219exdyadic.c were eliminated. New modules are exoparg1.c, 15220exoparg2.c, exoparg3.c, and exoparg6.c. 15221 15222Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 15223 15224Fixed a problem where the AML debugger was causing some internal 15225objects to not be deleted during subsystem termination. 15226 15227Fixed a problem with the external AcpiEvaluateObject interface 15228where the subsystem would fault if the named object to be 15229evaluated refered to a constant such as Zero, Ones, etc. 15230 15231Fixed a problem with IndexFields and BankFields where the 15232subsystem would fault if the index, data, or bank registers were 15233not defined in the same scope as the field itself. 15234 15235Added printf format string checking for compilers that support 15236this feature. Corrected more than 50 instances of issues with 15237format specifiers within invocations of ACPI_DEBUG_PRINT 15238throughout the core subsystem code. 15239 15240The ASL "Revision" operator now returns the ACPI support level 15241implemented in the core - the value "2" since the ACPI 2.0 support 15242is more than 50% implemented. 15243 15244Enhanced the output of the AML debugger "dump namespace" command 15245to output in a more human-readable form. 15246 15247Current core subsystem library code sizes are shown below. These 15248 15249are the code and data sizes for the acpica.lib produced by the 15250Microsoft Visual C++ 6.0 compiler, and these values do not include 15251any ACPI driver or OSPM code. The debug version of the code 15252includes the full debug trace mechanism -- leading to a much 15253 15254larger code and data size. Note that these values will vary 15255depending on the efficiency of the compiler and the compiler 15256options used during generation. 15257 15258 Previous Label (09_20_01): 15259 Non-Debug Version: 65K Code, 5K Data, 70K Total 15260 Debug Version: 138K Code, 58K Data, 196K Total 15261 15262 This Label: 15263 15264 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 15265 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 15266 15267Linux: 15268 15269Implemented a "Bad BIOS Blacklist" to track machines that have 15270known ASL/AML problems. 15271 15272Enhanced the /proc interface for the thermal zone driver and added 15273support for _HOT (the critical suspend trip point). The 'info' 15274file now includes threshold/policy information, and allows setting 15275of _SCP (cooling preference) and _TZP (polling frequency) values 15276to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 15277frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 15278preference to the passive/quiet mode (if supported by the ASL). 15279 15280Implemented a workaround for a gcc bug that resuted in an OOPs 15281when loading the control method battery driver. 15282 15283 ---------------------------------------- 15284Summary of changes for this label: 09_20_01 15285 15286 ACPI CA Core Subsystem: 15287 15288The AcpiEnableEvent and AcpiDisableEvent interfaces have been 15289modified to allow individual GPE levels to be flagged as wake- 15290enabled (i.e., these GPEs are to remain enabled when the platform 15291sleeps.) 15292 15293The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 15294support wake-enabled GPEs. This means that upon entering the 15295sleep state, all GPEs that are not wake-enabled are disabled. 15296When leaving the sleep state, these GPEs are reenabled. 15297 15298A local double-precision divide/modulo module has been added to 15299enhance portability to OS kernels where a 64-bit math library is 15300not available. The new module is "utmath.c". 15301 15302Several optimizations have been made to reduce the use of CPU 15303stack. Originally over 2K, the maximum stack usage is now below 153042K at 1860 bytes (1.82k) 15305 15306Fixed a problem with the AcpiGetFirmwareTable interface where the 15307root table pointer was not mapped into a logical address properly. 15308 15309Fixed a problem where a NULL pointer was being dereferenced in the 15310interpreter code for the ASL Notify operator. 15311 15312Fixed a problem where the use of the ASL Revision operator 15313returned an error. This operator now returns the current version 15314of the ACPI CA core subsystem. 15315 15316Fixed a problem where objects passed as control method parameters 15317to AcpiEvaluateObject were always deleted at method termination. 15318However, these objects may end up being stored into the namespace 15319by the called method. The object reference count mechanism was 15320applied to these objects instead of a force delete. 15321 15322Fixed a problem where static strings or buffers (contained in the 15323AML code) that are declared as package elements within the ASL 15324code could cause a fault because the interpreter would attempt to 15325delete them. These objects are now marked with the "static 15326object" flag to prevent any attempt to delete them. 15327 15328Implemented an interpreter optimization to use operands directly 15329from the state object instead of extracting the operands to local 15330variables. This reduces stack use and code size, and improves 15331performance. 15332 15333The module exxface.c was eliminated as it was an unnecessary extra 15334layer of code. 15335 15336Current core subsystem library code sizes are shown below. These 15337are the code and data sizes for the acpica.lib produced by the 15338Microsoft Visual C++ 6.0 compiler, and these values do not include 15339any ACPI driver or OSPM code. The debug version of the code 15340includes the full debug trace mechanism -- leading to a much 15341larger code and data size. Note that these values will vary 15342depending on the efficiency of the compiler and the compiler 15343options used during generation. 15344 15345 Non-Debug Version: 65K Code, 5K Data, 70K Total 15346(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 15347Total (Previously 195K) 15348 15349Linux: 15350 15351Support for ACPI 2.0 64-bit integers has been added. All ACPI 15352Integer objects are now 64 bits wide 15353 15354All Acpi data types and structures are now in lower case. Only 15355Acpi macros are upper case for differentiation. 15356 15357 Documentation: 15358 15359Changes to the external interfaces as described above. 15360 15361 ---------------------------------------- 15362Summary of changes for this label: 08_31_01 15363 15364 ACPI CA Core Subsystem: 15365 15366A bug with interpreter implementation of the ASL Divide operator 15367was found and fixed. The implicit function return value (not the 15368explicit store operands) was returning the remainder instead of 15369the quotient. This was a longstanding bug and it fixes several 15370known outstanding issues on various platforms. 15371 15372The ACPI_DEBUG_PRINT and function trace entry/exit macros have 15373been further optimized for size. There are 700 invocations of the 15374DEBUG_PRINT macro alone, so each optimization reduces the size of 15375the debug version of the subsystem significantly. 15376 15377A stack trace mechanism has been implemented. The maximum stack 15378usage is about 2K on 32-bit platforms. The debugger command "stat 15379stack" will display the current maximum stack usage. 15380 15381All public symbols and global variables within the subsystem are 15382now prefixed with the string "Acpi". This keeps all of the 15383symbols grouped together in a kernel map, and avoids conflicts 15384with other kernel subsystems. 15385 15386Most of the internal fixed lookup tables have been moved into the 15387code segment via the const operator. 15388 15389Several enhancements have been made to the interpreter to both 15390reduce the code size and improve performance. 15391 15392Current core subsystem library code sizes are shown below. These 15393are the code and data sizes for the acpica.lib produced by the 15394Microsoft Visual C++ 6.0 compiler, and these values do not include 15395any ACPI driver or OSPM code. The debug version of the code 15396includes the full debug trace mechanism which contains over 700 15397invocations of the DEBUG_PRINT macro, 500 function entry macro 15398invocations, and over 900 function exit macro invocations -- 15399leading to a much larger code and data size. Note that these 15400values will vary depending on the efficiency of the compiler and 15401the compiler options used during generation. 15402 15403 Non-Debug Version: 64K Code, 5K Data, 69K Total 15404Debug Version: 137K Code, 58K Data, 195K Total 15405 15406 Linux: 15407 15408Implemented wbinvd() macro, pending a kernel-wide definition. 15409 15410Fixed /proc/acpi/event to handle poll() and short reads. 15411 15412 ASL Compiler, version X2026: 15413 15414Fixed a problem introduced in the previous label where the AML 15415 15416code emitted for package objects produced packages with zero 15417length. 15418 15419 ---------------------------------------- 15420Summary of changes for this label: 08_16_01 15421 15422ACPI CA Core Subsystem: 15423 15424The following ACPI 2.0 ASL operators have been implemented in the 15425AML interpreter (These are already supported by the Intel ASL 15426compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 15427ToBuffer. Support for 64-bit AML constants is implemented in the 15428AML parser, debugger, and disassembler. 15429 15430The internal memory tracking mechanism (leak detection code) has 15431been upgraded to reduce the memory overhead (a separate tracking 15432block is no longer allocated for each memory allocation), and now 15433supports all of the internal object caches. 15434 15435The data structures and code for the internal object caches have 15436been coelesced and optimized so that there is a single cache and 15437memory list data structure and a single group of functions that 15438implement generic cache management. This has reduced the code 15439size in both the debug and release versions of the subsystem. 15440 15441The DEBUG_PRINT macro(s) have been optimized for size and replaced 15442by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 15443different, because it generates a single call to an internal 15444function. This results in a savings of about 90 bytes per 15445invocation, resulting in an overall code and data savings of about 1544616% in the debug version of the subsystem. 15447 15448 Linux: 15449 15450Fixed C3 disk corruption problems and re-enabled C3 on supporting 15451machines. 15452 15453Integrated low-level sleep code by Patrick Mochel. 15454 15455Further tweaked source code Linuxization. 15456 15457Other minor fixes. 15458 15459 ASL Compiler: 15460 15461Support for ACPI 2.0 variable length packages is fixed/completed. 15462 15463Fixed a problem where the optional length parameter for the ACPI 154642.0 ToString operator. 15465 15466Fixed multiple extraneous error messages when a syntax error is 15467detected within the declaration line of a control method. 15468 15469 ---------------------------------------- 15470Summary of changes for this label: 07_17_01 15471 15472ACPI CA Core Subsystem: 15473 15474Added a new interface named AcpiGetFirmwareTable to obtain any 15475ACPI table via the ACPI signature. The interface can be called at 15476any time during kernel initialization, even before the kernel 15477virtual memory manager is initialized and paging is enabled. This 15478allows kernel subsystems to obtain ACPI tables very early, even 15479before the ACPI CA subsystem is initialized. 15480 15481Fixed a problem where Fields defined with the AnyAcc attribute 15482could be resolved to the incorrect address under the following 15483conditions: 1) the field width is larger than 8 bits and 2) the 15484parent operation region is not defined on a DWORD boundary. 15485 15486Fixed a problem where the interpreter is not being locked during 15487namespace initialization (during execution of the _INI control 15488methods), causing an error when an attempt is made to release it 15489later. 15490 15491ACPI 2.0 support in the AML Interpreter has begun and will be 15492ongoing throughout the rest of this year. In this label, The Mod 15493operator is implemented. 15494 15495Added a new data type to contain full PCI addresses named 15496ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 15497and Function values. 15498 15499 Linux: 15500 15501Enhanced the Linux version of the source code to change most 15502capitalized ACPI type names to lowercase. For example, all 15503instances of ACPI_STATUS are changed to acpi_status. This will 15504result in a large diff, but the change is strictly cosmetic and 15505aligns the CA code closer to the Linux coding standard. 15506 15507OSL Interfaces: 15508 15509The interfaces to the PCI configuration space have been changed to 15510add the PCI Segment number and to split the single 32-bit combined 15511DeviceFunction field into two 16-bit fields. This was 15512accomplished by moving the four values that define an address in 15513PCI configuration space (segment, bus, device, and function) to 15514the new ACPI_PCI_ID structure. 15515 15516The changes to the PCI configuration space interfaces led to a 15517reexamination of the complete set of address space access 15518interfaces for PCI, I/O, and Memory. The previously existing 18 15519interfaces have proven difficult to maintain (any small change 15520must be propagated across at least 6 interfaces) and do not easily 15521allow for future expansion to 64 bits if necessary. Also, on some 15522systems, it would not be appropriate to demultiplex the access 15523width (8, 16, 32,or 64) before calling the OSL if the 15524corresponding native OS interfaces contain a similar access width 15525parameter. For these reasons, the 18 address space interfaces 15526have been replaced by these 6 new ones: 15527 15528AcpiOsReadPciConfiguration 15529AcpiOsWritePciConfiguration 15530AcpiOsReadMemory 15531AcpiOsWriteMemory 15532AcpiOsReadPort 15533AcpiOsWritePort 15534 15535Added a new interface named AcpiOsGetRootPointer to allow the OSL 15536to perform the platform and/or OS-specific actions necessary to 15537obtain the ACPI RSDP table pointer. On IA-32 platforms, this 15538interface will simply call down to the CA core to perform the low- 15539memory search for the table. On IA-64, the RSDP is obtained from 15540EFI. Migrating this interface to the OSL allows the CA core to 15541 15542remain OS and platform independent. 15543 15544Added a new interface named AcpiOsSignal to provide a generic 15545"function code and pointer" interface for various miscellaneous 15546signals and notifications that must be made to the host OS. The 15547first such signals are intended to support the ASL Fatal and 15548Breakpoint operators. In the latter case, the AcpiOsBreakpoint 15549interface has been obsoleted. 15550 15551The definition of the AcpiFormatException interface has been 15552changed to simplify its use. The caller no longer must supply a 15553buffer to the call; A pointer to a const string is now returned 15554directly. This allows the call to be easily used in printf 15555statements, etc. since the caller does not have to manage a local 15556buffer. 15557 15558 15559 ASL Compiler, Version X2025: 15560 15561The ACPI 2.0 Switch/Case/Default operators have been implemented 15562and are fully functional. They will work with all ACPI 1.0 15563interpreters, since the operators are simply translated to If/Else 15564pairs. 15565 15566The ACPI 2.0 ElseIf operator is implemented and will also work 15567with 1.0 interpreters, for the same reason. 15568 15569Implemented support for ACPI 2.0 variable-length packages. These 15570packages have a separate opcode, and their size is determined by 15571the interpreter at run-time. 15572 15573Documentation The ACPI CA Programmer Reference has been updated to 15574reflect the new interfaces and changes to existing interfaces. 15575 15576 ------------------------------------------ 15577Summary of changes for this label: 06_15_01 15578 15579 ACPI CA Core Subsystem: 15580 15581Fixed a problem where a DWORD-accessed field within a Buffer 15582object would get its byte address inadvertently rounded down to 15583the nearest DWORD. Buffers are always Byte-accessible. 15584 15585 ASL Compiler, version X2024: 15586 15587Fixed a problem where the Switch() operator would either fault or 15588hang the compiler. Note however, that the AML code for this ACPI 155892.0 operator is not yet implemented. 15590 15591Compiler uses the new AcpiOsGetTimer interface to obtain compile 15592timings. 15593 15594Implementation of the CreateField operator automatically converts 15595a reference to a named field within a resource descriptor from a 15596byte offset to a bit offset if required. 15597 15598Added some missing named fields from the resource descriptor 15599support. These are the names that are automatically created by the 15600compiler to reference fields within a descriptor. They are only 15601valid at compile time and are not passed through to the AML 15602interpreter. 15603 15604Resource descriptor named fields are now typed as Integers and 15605subject to compile-time typechecking when used in expressions. 15606 15607 ------------------------------------------ 15608Summary of changes for this label: 05_18_01 15609 15610 ACPI CA Core Subsystem: 15611 15612Fixed a couple of problems in the Field support code where bits 15613from adjacent fields could be returned along with the proper field 15614bits. Restructured the field support code to improve performance, 15615readability and maintainability. 15616 15617New DEBUG_PRINTP macro automatically inserts the procedure name 15618into the output, saving hundreds of copies of procedure name 15619strings within the source, shrinking the memory footprint of the 15620debug version of the core subsystem. 15621 15622 Source Code Structure: 15623 15624The source code directory tree was restructured to reflect the 15625current organization of the component architecture. Some files 15626and directories have been moved and/or renamed. 15627 15628 Linux: 15629 15630Fixed leaking kacpidpc processes. 15631 15632Fixed queueing event data even when /proc/acpi/event is not 15633opened. 15634 15635 ASL Compiler, version X2020: 15636 15637Memory allocation performance enhancement - over 24X compile time 15638improvement on large ASL files. Parse nodes and namestring 15639buffers are now allocated from a large internal compiler buffer. 15640 15641The temporary .SRC file is deleted unless the "-s" option is 15642specified 15643 15644The "-d" debug output option now sends all output to the .DBG file 15645instead of the console. 15646 15647"External" second parameter is now optional 15648 15649"ElseIf" syntax now properly allows the predicate 15650 15651Last operand to "Load" now recognized as a Target operand 15652 15653Debug object can now be used anywhere as a normal object. 15654 15655ResourceTemplate now returns an object of type BUFFER 15656 15657EISAID now returns an object of type INTEGER 15658 15659"Index" now works with a STRING operand 15660 15661"LoadTable" now accepts optional parameters 15662 15663"ToString" length parameter is now optional 15664 15665"Interrupt (ResourceType," parse error fixed. 15666 15667"Register" with a user-defined region space parse error fixed 15668 15669Escaped backslash at the end of a string ("\\") scan/parse error 15670fixed 15671 15672"Revision" is now an object of type INTEGER. 15673 15674 15675 15676------------------------------------------ 15677Summary of changes for this label: 05_02_01 15678 15679Linux: 15680 15681/proc/acpi/event now blocks properly. 15682 15683Removed /proc/sys/acpi. You can still dump your DSDT from 15684/proc/acpi/dsdt. 15685 15686 ACPI CA Core Subsystem: 15687 15688Fixed a problem introduced in the previous label where some of the 15689"small" resource descriptor types were not recognized. 15690 15691Improved error messages for the case where an ASL Field is outside 15692the range of the parent operation region. 15693 15694 ASL Compiler, version X2018: 15695 15696 15697Added error detection for ASL Fields that extend beyond the length 15698of the parent operation region (only if the length of the region 15699is known at compile time.) This includes fields that have a 15700minimum access width that is smaller than the parent region, and 15701individual field units that are partially or entirely beyond the 15702extent of the parent. 15703 15704 15705 15706------------------------------------------ 15707Summary of changes for this label: 04_27_01 15708 15709 ACPI CA Core Subsystem: 15710 15711Fixed a problem where the namespace mutex could be released at the 15712wrong time during execution of AcpiRemoveAddressSpaceHandler. 15713 15714Added optional thread ID output for debug traces, to simplify 15715debugging of multiple threads. Added context switch notification 15716when the debug code realizes that a different thread is now 15717executing ACPI code. 15718 15719Some additional external data types have been prefixed with the 15720string "ACPI_" for consistency. This may effect existing code. 15721The data types affected are the external callback typedefs - e.g., 15722 15723WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 15724 15725 Linux: 15726 15727Fixed an issue with the OSL semaphore implementation where a 15728thread was waking up with an error from receiving a SIGCHLD 15729signal. 15730 15731Linux version of ACPI CA now uses the system C library for string 15732manipulation routines instead of a local implementation. 15733 15734Cleaned up comments and removed TBDs. 15735 15736 ASL Compiler, version X2017: 15737 15738Enhanced error detection and reporting for all file I/O 15739operations. 15740 15741 Documentation: 15742 15743Programmer Reference updated to version 1.06. 15744 15745 15746 15747------------------------------------------ 15748Summary of changes for this label: 04_13_01 15749 15750 ACPI CA Core Subsystem: 15751 15752Restructured support for BufferFields and RegionFields. 15753BankFields support is now fully operational. All known 32-bit 15754limitations on field sizes have been removed. Both BufferFields 15755and (Operation) RegionFields are now supported by the same field 15756management code. 15757 15758Resource support now supports QWORD address and IO resources. The 1575916/32/64 bit address structures and the Extended IRQ structure 15760have been changed to properly handle Source Resource strings. 15761 15762A ThreadId of -1 is now used to indicate a "mutex not acquired" 15763condition internally and must never be returned by AcpiOsThreadId. 15764This reserved value was changed from 0 since Unix systems allow a 15765thread ID of 0. 15766 15767Linux: 15768 15769Driver code reorganized to enhance portability 15770 15771Added a kernel configuration option to control ACPI_DEBUG 15772 15773Fixed the EC driver to honor _GLK. 15774 15775ASL Compiler, version X2016: 15776 15777Fixed support for the "FixedHw" keyword. Previously, the FixedHw 15778address space was set to 0, not 0x7f as it should be. 15779 15780 ------------------------------------------ 15781Summary of changes for this label: 03_13_01 15782 15783 ACPI CA Core Subsystem: 15784 15785During ACPI initialization, the _SB_._INI method is now run if 15786present. 15787 15788Notify handler fix - notifies are deferred until the parent method 15789completes execution. This fixes the "mutex already acquired" 15790issue seen occasionally. 15791 15792Part of the "implicit conversion" rules in ACPI 2.0 have been 15793found to cause compatibility problems with existing ASL/AML. The 15794convert "result-to-target-type" implementation has been removed 15795for stores to method Args and Locals. Source operand conversion 15796is still fully implemented. Possible changes to ACPI 2.0 15797specification pending. 15798 15799Fix to AcpiRsCalculatePciRoutingTableLength to return correct 15800length. 15801 15802Fix for compiler warnings for 64-bit compiles. 15803 15804 Linux: 15805 15806/proc output aligned for easier parsing. 15807 15808Release-version compile problem fixed. 15809 15810New kernel configuration options documented in Configure.help. 15811 15812IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 15813context" message. 15814 15815 OSPM: 15816 15817Power resource driver integrated with bus manager. 15818 15819Fixed kernel fault during active cooling for thermal zones. 15820 15821Source Code: 15822 15823The source code tree has been restructured. 15824 15825 15826 15827------------------------------------------ 15828Summary of changes for this label: 03_02_01 15829 15830 Linux OS Services Layer (OSL): 15831 15832Major revision of all Linux-specific code. 15833 15834Modularized all ACPI-specific drivers. 15835 15836Added new thermal zone and power resource drivers. 15837 15838Revamped /proc interface (new functionality is under /proc/acpi). 15839 15840New kernel configuration options. 15841 15842 Linux known issues: 15843 15844New kernel configuration options not documented in Configure.help 15845yet. 15846 15847 15848Module dependencies not currently implemented. If used, they 15849should be loaded in this order: busmgr, power, ec, system, 15850processor, battery, ac_adapter, button, thermal. 15851 15852Modules will not load if CONFIG_MODVERSION is set. 15853 15854IBM 600E - entering S5 may reboot instead of shutting down. 15855 15856IBM 600E - Sleep button may generate "Invalid <NULL> context" 15857message. 15858 15859Some systems may fail with "execution mutex already acquired" 15860message. 15861 15862 ACPI CA Core Subsystem: 15863 15864Added a new OSL Interface, AcpiOsGetThreadId. This was required 15865for the deadlock detection code. Defined to return a non-zero, 32- 15866bit thread ID for the currently executing thread. May be a non- 15867zero constant integer on single-thread systems. 15868 15869Implemented deadlock detection for internal subsystem mutexes. We 15870may add conditional compilation for this code (debug only) later. 15871 15872ASL/AML Mutex object semantics are now fully supported. This 15873includes multiple acquires/releases by owner and support for the 15874 15875Mutex SyncLevel parameter. 15876 15877A new "Force Release" mechanism automatically frees all ASL 15878Mutexes that have been acquired but not released when a thread 15879exits the interpreter. This forces conformance to the ACPI spec 15880("All mutexes must be released when an invocation exits") and 15881prevents deadlocked ASL threads. This mechanism can be expanded 15882(later) to monitor other resource acquisitions if OEM ASL code 15883continues to misbehave (which it will). 15884 15885Several new ACPI exception codes have been added for the Mutex 15886support. 15887 15888Recursive method calls are now allowed and supported (the ACPI 15889spec does in fact allow recursive method calls.) The number of 15890recursive calls is subject to the restrictions imposed by the 15891SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 15892parameter. 15893 15894Implemented support for the SyncLevel parameter for control 15895methods (ACPI 2.0 feature) 15896 15897Fixed a deadlock problem when multiple threads attempted to use 15898the interpreter. 15899 15900Fixed a problem where the string length of a String package 15901element was not always set in a package returned from 15902AcpiEvaluateObject. 15903 15904Fixed a problem where the length of a String package element was 15905not always included in the length of the overall package returned 15906from AcpiEvaluateObject. 15907 15908Added external interfaces (Acpi*) to the ACPI debug memory 15909manager. This manager keeps a list of all outstanding 15910allocations, and can therefore detect memory leaks and attempts to 15911free memory blocks more than once. Useful for code such as the 15912power manager, etc. May not be appropriate for device drivers. 15913Performance with the debug code enabled is slow. 15914 15915The ACPI Global Lock is now an optional hardware element. 15916 15917 ASL Compiler Version X2015: 15918 15919Integrated changes to allow the compiler to be generated on 15920multiple platforms. 15921 15922Linux makefile added to generate the compiler on Linux 15923 15924 Source Code: 15925 15926All platform-specific headers have been moved to their own 15927subdirectory, Include/Platform. 15928 15929New source file added, Interpreter/ammutex.c 15930 15931New header file, Include/acstruct.h 15932 15933 Documentation: 15934 15935The programmer reference has been updated for the following new 15936interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 15937 15938 ------------------------------------------ 15939Summary of changes for this label: 02_08_01 15940 15941Core ACPI CA Subsystem: Fixed a problem where an error was 15942incorrectly returned if the return resource buffer was larger than 15943the actual data (in the resource interfaces). 15944 15945References to named objects within packages are resolved to the 15946 15947full pathname string before packages are returned directly (via 15948the AcpiEvaluateObject interface) or indirectly via the resource 15949interfaces. 15950 15951Linux OS Services Layer (OSL): 15952 15953Improved /proc battery interface. 15954 15955 15956Added C-state debugging output and other miscellaneous fixes. 15957 15958ASL Compiler Version X2014: 15959 15960All defined method arguments can now be used as local variables, 15961including the ones that are not actually passed in as parameters. 15962The compiler tracks initialization of the arguments and issues an 15963exception if they are used without prior assignment (just like 15964locals). 15965 15966The -o option now specifies a filename prefix that is used for all 15967output files, including the AML output file. Otherwise, the 15968default behavior is as follows: 1) the AML goes to the file 15969specified in the DSDT. 2) all other output files use the input 15970source filename as the base. 15971 15972 ------------------------------------------ 15973Summary of changes for this label: 01_25_01 15974 15975Core ACPI CA Subsystem: Restructured the implementation of object 15976store support within the interpreter. This includes support for 15977the Store operator as well as any ASL operators that include a 15978target operand. 15979 15980Partially implemented support for Implicit Result-to-Target 15981conversion. This is when a result object is converted on the fly 15982to the type of an existing target object. Completion of this 15983support is pending further analysis of the ACPI specification 15984concerning this matter. 15985 15986CPU-specific code has been removed from the subsystem (hardware 15987directory). 15988 15989New Power Management Timer functions added 15990 15991Linux OS Services Layer (OSL): Moved system state transition code 15992to the core, fixed it, and modified Linux OSL accordingly. 15993 15994Fixed C2 and C3 latency calculations. 15995 15996 15997We no longer use the compilation date for the version message on 15998initialization, but retrieve the version from AcpiGetSystemInfo(). 15999 16000Incorporated for fix Sony VAIO machines. 16001 16002Documentation: The Programmer Reference has been updated and 16003reformatted. 16004 16005 16006ASL Compiler: Version X2013: Fixed a problem where the line 16007numbering and error reporting could get out of sync in the 16008presence of multiple include files. 16009 16010 ------------------------------------------ 16011Summary of changes for this label: 01_15_01 16012 16013Core ACPI CA Subsystem: 16014 16015Implemented support for type conversions in the execution of the 16016ASL Concatenate operator (The second operand is converted to 16017match the type of the first operand before concatenation.) 16018 16019Support for implicit source operand conversion is partially 16020implemented. The ASL source operand types Integer, Buffer, and 16021String are freely interchangeable for most ASL operators and are 16022converted by the interpreter on the fly as required. Implicit 16023Target operand conversion (where the result is converted to the 16024target type before storing) is not yet implemented. 16025 16026Support for 32-bit and 64-bit BCD integers is implemented. 16027 16028Problem fixed where a field read on an aligned field could cause a 16029read past the end of the field. 16030 16031New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 16032does not return a value, but the caller expects one. (The ASL 16033compiler flags this as a warning.) 16034 16035ASL Compiler: 16036 16037Version X2011: 160381. Static typechecking of all operands is implemented. This 16039prevents the use of invalid objects (such as using a Package where 16040an Integer is required) at compile time instead of at interpreter 16041run-time. 160422. The ASL source line is printed with ALL errors and warnings. 160433. Bug fix for source EOF without final linefeed. 160444. Debug option is split into a parse trace and a namespace trace. 160455. Namespace output option (-n) includes initial values for 16046integers and strings. 160476. Parse-only option added for quick syntax checking. 160487. Compiler checks for duplicate ACPI name declarations 16049 16050Version X2012: 160511. Relaxed typechecking to allow interchangeability between 16052strings, integers, and buffers. These types are now converted by 16053the interpreter at runtime. 160542. Compiler reports time taken by each internal subsystem in the 16055debug output file. 16056 16057 16058 ------------------------------------------ 16059Summary of changes for this label: 12_14_00 16060 16061ASL Compiler: 16062 16063This is the first official release of the compiler. Since the 16064compiler requires elements of the Core Subsystem, this label 16065synchronizes everything. 16066 16067------------------------------------------ 16068Summary of changes for this label: 12_08_00 16069 16070 16071Fixed a problem where named references within the ASL definition 16072of both OperationRegions and CreateXXXFields did not work 16073properly. The symptom was an AE_AML_OPERAND_TYPE during 16074initialization of the region/field. This is similar (but not 16075related internally) to the problem that was fixed in the last 16076label. 16077 16078Implemented both 32-bit and 64-bit support for the BCD ASL 16079functions ToBCD and FromBCD. 16080 16081Updated all legal headers to include "2000" in the copyright 16082years. 16083 16084 ------------------------------------------ 16085Summary of changes for this label: 12_01_00 16086 16087Fixed a problem where method invocations within the ASL definition 16088of both OperationRegions and CreateXXXFields did not work 16089properly. The symptom was an AE_AML_OPERAND_TYPE during 16090initialization of the region/field: 16091 16092 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 16093[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 16094(0x3005) 16095 16096Fixed a problem where operators with more than one nested 16097subexpression would fail. The symptoms were varied, by mostly 16098AE_AML_OPERAND_TYPE errors. This was actually a rather serious 16099problem that has gone unnoticed until now. 16100 16101 Subtract (Add (1,2), Multiply (3,4)) 16102 16103Fixed a problem where AcpiGetHandle didn't quite get fixed in the 16104previous build (The prefix part of a relative path was handled 16105incorrectly). 16106 16107Fixed a problem where Operation Region initialization failed if 16108the operation region name was a "namepath" instead of a simple 16109"nameseg". Symptom was an AE_NO_OPERAND error. 16110 16111Fixed a problem where an assignment to a local variable via the 16112indirect RefOf mechanism only worked for the first such 16113assignment. Subsequent assignments were ignored. 16114 16115 ------------------------------------------ 16116Summary of changes for this label: 11_15_00 16117 16118ACPI 2.0 table support with backwards support for ACPI 1.0 and the 161190.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 16120the AML interpreter does NOT have support for the new 2.0 ASL 16121grammar terms at this time. 16122 16123All ACPI hardware access is via the GAS structures in the ACPI 2.0 16124FADT. 16125 16126All physical memory addresses across all platforms are now 64 bits 16127wide. Logical address width remains dependent on the platform 16128(i.e., "void *"). 16129 16130AcpiOsMapMemory interface changed to a 64-bit physical address. 16131 16132The AML interpreter integer size is now 64 bits, as per the ACPI 161332.0 specification. 16134 16135For backwards compatibility with ACPI 1.0, ACPI tables with a 16136revision number less than 2 use 32-bit integers only. 16137 16138Fixed a problem where the evaluation of OpRegion operands did not 16139always resolve them to numbers properly. 16140 16141------------------------------------------ 16142Summary of changes for this label: 10_20_00 16143 16144Fix for CBN_._STA issue. This fix will allow correct access to 16145CBN_ OpRegions when the _STA returns 0x8. 16146 16147Support to convert ACPI constants (Ones, Zeros, One) to actual 16148values before a package object is returned 16149 16150Fix for method call as predicate to if/while construct causing 16151incorrect if/while behavior 16152 16153Fix for Else block package lengths sometimes calculated wrong (if 16154block > 63 bytes) 16155 16156Fix for Processor object length field, was always zero 16157 16158Table load abort if FACP sanity check fails 16159 16160Fix for problem with Scope(name) if name already exists 16161 16162Warning emitted if a named object referenced cannot be found 16163(resolved) during method execution. 16164 16165 16166 16167 16168 16169------------------------------------------ 16170Summary of changes for this label: 9_29_00 16171 16172New table initialization interfaces: AcpiInitializeSubsystem no 16173longer has any parameters AcpiFindRootPointer - Find the RSDP (if 16174necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 16175>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 16176AcpiLoadTables 16177 16178Note: These interface changes require changes to all existing OSDs 16179 16180The PCI_Config default address space handler is always installed 16181at the root namespace object. 16182 16183------------------------------------------- 16184Summary of changes for this label: 09_15_00 16185 16186The new initialization architecture is implemented. New 16187interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 16188AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 16189 16190(Namespace is automatically loaded when a table is loaded) 16191 16192The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1619352 bytes to 32 bytes. There is usually one of these for every 16194namespace object, so the memory savings is significant. 16195 16196Implemented just-in-time evaluation of the CreateField operators. 16197 16198Bug fixes for IA-64 support have been integrated. 16199 16200Additional code review comments have been implemented 16201 16202The so-called "third pass parse" has been replaced by a final walk 16203through the namespace to initialize all operation regions (address 16204spaces) and fields that have not yet been initialized during the 16205execution of the various _INI and REG methods. 16206 16207New file - namespace/nsinit.c 16208 16209------------------------------------------- 16210Summary of changes for this label: 09_01_00 16211 16212Namespace manager data structures have been reworked to change the 16213primary object from a table to a single object. This has 16214resulted in dynamic memory savings of 3X within the namespace and 162152X overall in the ACPI CA subsystem. 16216 16217Fixed problem where the call to AcpiEvFindPciRootBuses was 16218inadvertently left commented out. 16219 16220Reduced the warning count when generating the source with the GCC 16221compiler. 16222 16223Revision numbers added to each module header showing the 16224SourceSafe version of the file. Please refer to this version 16225number when giving us feedback or comments on individual modules. 16226 16227The main object types within the subsystem have been renamed to 16228clarify their purpose: 16229 16230ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 16231ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 16232ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 16233 16234NOTE: no changes to the initialization sequence are included in 16235this label. 16236 16237------------------------------------------- 16238Summary of changes for this label: 08_23_00 16239 16240Fixed problem where TerminateControlMethod was being called 16241multiple times per method 16242 16243Fixed debugger problem where single stepping caused a semaphore to 16244be oversignalled 16245 16246Improved performance through additional parse object caching - 16247added ACPI_EXTENDED_OP type 16248 16249------------------------------------------- 16250Summary of changes for this label: 08_10_00 16251 16252Parser/Interpreter integration: Eliminated the creation of 16253complete parse trees for ACPI tables and control methods. 16254Instead, parse subtrees are created and then deleted as soon as 16255they are processed (Either entered into the namespace or executed 16256by the interpreter). This reduces the use of dynamic kernel 16257memory significantly. (about 10X) 16258 16259Exception codes broken into classes and renumbered. Be sure to 16260recompile all code that includes acexcep.h. Hopefully we won't 16261have to renumber the codes again now that they are split into 16262classes (environment, programmer, AML code, ACPI table, and 16263internal). 16264 16265Fixed some additional alignment issues in the Resource Manager 16266subcomponent 16267 16268Implemented semaphore tracking in the AcpiExec utility, and fixed 16269several places where mutexes/semaphores were being unlocked 16270without a corresponding lock operation. There are no known 16271semaphore or mutex "leaks" at this time. 16272 16273Fixed the case where an ASL Return operator is used to return an 16274unnamed package. 16275 16276------------------------------------------- 16277Summary of changes for this label: 07_28_00 16278 16279Fixed a problem with the way addresses were calculated in 16280AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 16281manifested itself when a Field was created with WordAccess or 16282DwordAccess, but the field unit defined within the Field was less 16283 16284than a Word or Dword. 16285 16286Fixed a problem in AmlDumpOperands() module's loop to pull 16287operands off of the operand stack to display information. The 16288problem manifested itself as a TLB error on 64-bit systems when 16289accessing an operand stack with two or more operands. 16290 16291Fixed a problem with the PCI configuration space handlers where 16292context was getting confused between accesses. This required a 16293change to the generic address space handler and address space 16294setup definitions. Handlers now get both a global handler context 16295(this is the one passed in by the user when executing 16296AcpiInstallAddressSpaceHandler() and a specific region context 16297that is unique to each region (For example, the _ADR, _SEG and 16298_BBN values associated with a specific region). The generic 16299function definitions have changed to the following: 16300 16301typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 16302UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 16303*HandlerContext, // This used to be void *Context void 16304*RegionContext); // This is an additional parameter 16305 16306typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 16307RegionHandle, UINT32 Function, void *HandlerContext, void 16308**RegionContext); // This used to be **ReturnContext 16309 16310------------------------------------------- 16311Summary of changes for this label: 07_21_00 16312 16313Major file consolidation and rename. All files within the 16314interpreter have been renamed as well as most header files. This 16315was done to prevent collisions with existing files in the host 16316OSs -- filenames such as "config.h" and "global.h" seem to be 16317quite common. The VC project files have been updated. All 16318makefiles will require modification. 16319 16320The parser/interpreter integration continues in Phase 5 with the 16321implementation of a complete 2-pass parse (the AML is parsed 16322twice) for each table; This avoids the construction of a huge 16323parse tree and therefore reduces the amount of dynamic memory 16324required by the subsystem. Greater use of the parse object cache 16325means that performance is unaffected. 16326 16327Many comments from the two code reviews have been rolled in. 16328 16329The 64-bit alignment support is complete. 16330 16331------------------------------------------- 16332Summary of changes for this label: 06_30_00 16333 16334With a nod and a tip of the hat to the technology of yesteryear, 16335we've added support in the source code for 80 column output 16336devices. The code is now mostly constrained to 80 columns or 16337less to support environments and editors that 1) cannot display 16338or print more than 80 characters on a single line, and 2) cannot 16339disable line wrapping. 16340 16341A major restructuring of the namespace data structure has been 16342completed. The result is 1) cleaner and more 16343understandable/maintainable code, and 2) a significant reduction 16344in the dynamic memory requirement for each named ACPI object 16345(almost half). 16346 16347------------------------------------------- 16348Summary of changes for this label: 06_23_00 16349 16350Linux support has been added. In order to obtain approval to get 16351the ACPI CA subsystem into the Linux kernel, we've had to make 16352quite a few changes to the base subsystem that will affect all 16353users (all the changes are generic and OS- independent). The 16354effects of these global changes have been somewhat far reaching. 16355Files have been merged and/or renamed and interfaces have been 16356renamed. The major changes are described below. 16357 16358Osd* interfaces renamed to AcpiOs* to eliminate namespace 16359pollution/confusion within our target kernels. All OSD 16360interfaces must be modified to match the new naming convention. 16361 16362Files merged across the subsystem. A number of the smaller source 16363and header files have been merged to reduce the file count and 16364increase the density of the existing files. There are too many 16365to list here. In general, makefiles that call out individual 16366files will require rebuilding. 16367 16368Interpreter files renamed. All interpreter files now have the 16369prefix am* instead of ie* and is*. 16370 16371Header files renamed: The acapi.h file is now acpixf.h. The 16372acpiosd.h file is now acpiosxf.h. We are removing references to 16373the acronym "API" since it is somewhat windowsy. The new name is 16374"external interface" or xface or xf in the filenames.j 16375 16376 16377All manifest constants have been forced to upper case (some were 16378mixed case.) Also, the string "ACPI_" has been prepended to many 16379(not all) of the constants, typedefs, and structs. 16380 16381The globals "DebugLevel" and "DebugLayer" have been renamed 16382"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 16383 16384All other globals within the subsystem are now prefixed with 16385"AcpiGbl_" Internal procedures within the subsystem are now 16386prefixed with "Acpi" (with only a few exceptions). The original 16387two-letter abbreviation for the subcomponent remains after "Acpi" 16388- for example, CmCallocate became AcpiCmCallocate. 16389 16390Added a source code translation/conversion utility. Used to 16391generate the Linux source code, it can be modified to generate 16392other types of source as well. Can also be used to cleanup 16393existing source by removing extraneous spaces and blank lines. 16394Found in tools/acpisrc/* 16395 16396OsdUnMapMemory was renamed to OsdUnmapMemory and then 16397AcpiOsUnmapMemory. (UnMap became Unmap). 16398 16399A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 16400When set to one, this indicates that the caller wants to use the 16401 16402semaphore as a mutex, not a counting semaphore. ACPI CA uses 16403both types. However, implementers of this call may want to use 16404different OS primitives depending on the type of semaphore 16405requested. For example, some operating systems provide separate 16406 16407"mutex" and "semaphore" interfaces - where the mutex interface is 16408much faster because it doesn't have all the overhead of a full 16409semaphore implementation. 16410 16411Fixed a deadlock problem where a method that accesses the PCI 16412address space can block forever if it is the first access to the 16413space. 16414 16415------------------------------------------- 16416Summary of changes for this label: 06_02_00 16417 16418Support for environments that cannot handle unaligned data 16419accesses (e.g. firmware and OS environments devoid of alignment 16420handler technology namely SAL/EFI and the IA-64 Linux kernel) has 16421been added (via configurable macros) in these three areas: - 16422Transfer of data from the raw AML byte stream is done via byte 16423moves instead of word/dword/qword moves. - External objects are 16424aligned within the user buffer, including package elements (sub- 16425objects). - Conversion of name strings to UINT32 Acpi Names is now 16426done byte-wise. 16427 16428The Store operator was modified to mimic Microsoft's 16429implementation when storing to a Buffer Field. 16430 16431Added a check of the BM_STS bit before entering C3. 16432 16433The methods subdirectory has been obsoleted and removed. A new 16434file, cmeval.c subsumes the functionality. 16435 16436A 16-bit (DOS) version of AcpiExec has been developed. The 16437makefile is under the acpiexec directory. 16438