1---------------------------------------- 209 May 2019. Summary of changes for version 20190509: 3 4 51) ACPICA kernel-resident subsystem: 6 7Revert commit 6c43e1a ("ACPICA: Clear status of GPEs before enabling 8them") that causes problems with Thunderbolt controllers to occur if a 9dock device is connected at init time (the xhci_hcd and thunderbolt 10modules crash which prevents peripherals connected through them from 11working). Commit 6c43e1a effectively causes commit ecc1165b8b74 ("ACPICA: 12Dispatch active GPEs at init time") to get undone, so the problem 13addressed by commit ecc1165b8b74 appears again as a result of it. 14 15 162) iASL Compiler/Disassembler and ACPICA tools: 17 18Reverted iASL: Additional forward reference detection. This change 19reverts forward reference detection for field declarations. The feature 20unintentionally emitted AML bytecode with incorrect package lengths for 21some ASL code related to Fields and OperationRegions. This malformed AML 22can cause systems to crash 23during boot. The malformed AML bytecode is emitted in iASL version 2420190329 and 20190405. 25 26iASL: improve forward reference detection. This change improves forward 27reference detection for named objects inside of scopes. If a parse object 28has the OP_NOT_FOUND_DURING_LOAD set, it means that Op is a reference to 29a named object that is declared later in the AML bytecode. This is 30allowed if the reference is inside of a method and the declaration is 31outside of a method like so: 32 33DefinitionBlock(...) 34{ 35 Method (TEST) 36 { 37 Return (NUM0) 38 } 39 Name (NUM0,0) 40} 41 42However, if the declaration and reference are both in the same method or 43outside any methods, this is a forward reference and should be marked as 44an error because it would result in runtime errors. 45 46DefinitionBlock(...) 47{ 48 Name (BUFF, Buffer (NUM0) {}) // Forward reference 49 Name (NUM0, 0x0) 50 51 Method (TEST) 52 { 53 Local0 = NUM1 54 Name (NUM1, 0x1) // Forward reference 55 return (Local0) 56 } 57} 58 59iASL: Implemented additional buffer overflow analysis for BufferField 60declarations. Check if a buffer index argument to a create buffer field 61operation is beyond the end of the target buffer. 62 63This affects these AML operators: 64 65 AML_CREATE_FIELD_OP 66 AML_CREATE_BIT_FIELD_OP 67 AML_CREATE_BYTE_FIELD_OP 68 AML_CREATE_WORD_FIELD_OP 69 AML_CREATE_DWORD_FIELD_OP 70 AML_CREATE_QWORD_FIELD_OP 71 72 There are three conditions that must be satisfied in order to allow this 73validation at compile time: 74 75 1) The length of the target buffer must be an integer constant 76 2) The index specified in the create* must be an integer constant 77 3) For CreateField, the bit length argument must be non-zero. 78 79Example: 80 Name (BUF1, Buffer() {1,2}) 81 CreateField (BUF1, 7, 9, CF03) // 3: ERR 82 83dsdt.asl 14: CreateField (BUF1, 7, 9, CF03) // 3: ERR 84Error 6165 - ^ Buffer index beyond end of 85target buffer 86 87 88---------------------------------------- 8905 April 2019. Summary of changes for version 20190405: 90 91 921) ACPICA kernel-resident subsystem: 93 94Event Manager: History: Commit 18996f2db918 ("ACPICA: Events: Stop 95unconditionally clearing ACPI IRQs during suspend/resume") was added 96earlier to stop clearing of event status bits unconditionally on suspend 97and resume paths. Though this change fixed an issue on suspend path, it 98introduced regressions on several resume paths. In the case of S0ix, 99events are enabled as part of device suspend path. If status bits for the 100events are set when they are enabled, it could result in premature wake 101from S0ix. If status is cleared for any event that is being enabled so 102that any stale events are cleared out. In case of S0ix, events are 103enabled as part of device suspend path. If status bits for the events are 104set when they are enabled, it could result in premature wake from S0ix. 105 106This change ensures that status is cleared for any event that is being 107enabled so that any stale events are cleared out. 108 109 1102) iASL Compiler/Disassembler and ACPICA tools: 111 112iASL: Implemented an enhanced multiple file compilation that combines 113named objects from all input files to a single namespace. With this 114feature, any unresolved external declarations as well as duplicate named 115object declarations can be detected during compilation rather than 116generating errors much later at runtime. The following commands are 117examples that utilize this feature: 118 iasl dsdt.asl ssdt.asl 119 iasl dsdt.asl ssdt1.asl ssdt2.asl 120 iasl dsdt.asl ssdt*.asl 121 122---------------------------------------- 12329 March 2019. Summary of changes for version 20190329: 124 125 1261) ACPICA kernel-resident subsystem: 127 128Namespace support: Remove the address nodes from global list after method 129termination. The global address list contains pointers to namespace nodes 130that represent Operation Regions. This change properly removes Operation 131Region namespace nodes that are declared dynamically during method 132execution. 133 134Linux: Use a different debug default than ACPICA. There was a divergence 135between Linux and the ACPICA codebases. In order to resolve this 136divergence, Linux now declares its own debug default in aclinux.h 137 138Renamed some internal macros to improve code understanding and 139maintenance. The macros below all operate on single 4-character ACPI 140NameSegs, not generic strings (old -> new): 141 ACPI_NAME_SIZE -> ACPI_NAMESEG_SIZE 142 ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG 143 ACPI_MOVE_NAME -> ACPI_COPY_NAMESEG 144 145Fix for missing comma in array declaration for the AcpiGbl_GenericNotify 146table. 147 148Test suite: Update makefiles, add PCC operation region support 149 150 1512) iASL Compiler/Disassembler and Tools: 152 153iASL: Implemented additional illegal forward reference detection. Now 154detect and emit an error upon detection of a forward reference from a 155Field to an Operation Region. This will fail at runtime if allowed to 156pass the compiler. 157 158AcpiExec: Add an address list check for dynamic Operation Regions. This 159feature performs a sanity test for each node the global address list. 160This is done in order to ensure that all dynamic operation regions are 161properly removed from the global address list and no dangling pointers 162are left behind. 163 164Disassembler: Improved generation of resource pathnames. This change 165improves the code that generates resource descriptor and resource tag 166pathnames. The original code used a bunch of str* C library functions 167that caused warnings on some compilers. 168 169iASL: Removed some uses of strncpy and replaced with memmove. The strncpy 170function can overwrite buffers if the calling code is not very careful. 171In the case of generating a module/table header, use of memmove is a 172better implementation. 173 174 1753) Status of new features that have not been completed at this time: 176 177iASL: Implementing an enhanced multiple file compilation into a single 178namespace feature (Status): This feature will be released soon, and 179allows multiple ASL files to be compiled into the same single namespace. 180By doing so, any unresolved external declarations as well as duplicate 181named object declarations can be detected during compilation (rather than 182later during runtime). The following commands are examples that utilize 183this feature: 184 iasl dsdt.asl ssdt.asl 185 iasl dsdt.asl ssdt1.asl ssdt2.asl 186 iasl dsdt.asl ssdt*.asl 187 188ASL tutorial status: Feedback is being gathered internally and the 189current plan is to publish this tutorial on the ACPICA website after a 190final review by a tech writer. 191 192---------------------------------------- 19315 February 2019. Summary of changes for version 20190215: 194 195 1960) Support for ACPI specification version 6.3: 197 198Add PCC operation region support for the AML interpreter. This adds PCC 199operation region support in the AML interpreter and a default handler for 200acpiexec. The change also renames the PCC region address space keyword to 201PlatformCommChannel. 202 203Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG. 204These methods provide OSPM with health information and device boot 205status. 206 207PDTT: Add TriggerOrder to the PCC Identifier structure. The field value 208defines if the trigger needs to be invoked by OSPM before or at the end 209of kernel crash dump processing/handling operation. 210 211SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT 212is used for describing devices such as heterogeneous processors, 213accelerators, GPUs, and IO devices with integrated compute or DMA 214engines. 215 216MADT: Add support for statistical profiling in GICC. Statistical 217profiling extension (SPE) is an architecture-specific feature for ARM. 218 219MADT: Add online capable flag. If this bit is set, system hardware 220supports enabling this processor during OS runtime. 221 222New Error Disconnect Recover Notification value. There are a number of 223scenarios where system Firmware in collaboration with hardware may 224disconnect one or more devices from the rest of the system for purposes 225of error containment. Firmware can use this new notification value to 226alert OSPM of such a removal. 227 228PPTT: New additional fields in Processor Structure Flags. These flags 229provide more information about processor topology. 230 231NFIT/Disassembler: Change a field name from "Address Range" to "Region 232Type". 233 234HMAT updates: make several existing fields to be reserved as well as 235rename subtable 0 to "memory proximity domain attributes". 236 237GTDT: Add support for new GTDT Revision 3. This revision adds information 238for the EL2 timer. 239 240iASL: Update the HMAT example template for new fields. 241 242iASL: Add support for the new revision of the GTDT (Rev 3). 243 244 2451) ACPICA kernel-resident subsystem: 246 247AML Parser: fix the main AML parse loop to correctly skip erroneous 248extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2- 249byte extended opcodes. If an error occurs during an AML table load, the 250AML parser will continue loading the table by skipping the offending 251opcode. This implements a "load table at any cost" philosophy. 252 253 2542) iASL Compiler/Disassembler and Tools: 255 256iASL: Add checks for illegal object references, such as a reference 257outside of method to an object within a method. Such an object is only 258temporary. 259 260iASL: Emit error for creation of a zero-length operation region. Such a 261region is rather pointless. If encountered, a runtime error is also 262implemented in the interpeter. 263 264Debugger: Fix a possible fault with the "test objects" command. 265 266iASL: Makefile: support parent directory filenames containing embedded 267spaces. 268 269iASL: Update the TPM2 template to revision 4. 270 271iASL: Add the ability to report specific warnings or remarks as errors. 272 273Disassembler: Disassemble OEMx tables as actual AML byte code. 274Previously, these tables were treated as "unknown table". 275 276iASL: Add definition and disassembly for TPM2 revision 3. 277 278iASL: Add support for TPM2 rev 3 compilation. 279 280 281---------------------------------------- 28208 January 2019. Summary of changes for version 20190108: 283 284 2851) ACPICA kernel-resident subsystem: 286 287Updated all copyrights to 2019. This affects all source code modules. 288 289 2902) iASL Compiler/Disassembler and Tools: 291 292ASL test suite (ASLTS): Updated all copyrights to 2019. 293 294Tools: Updated all signon copyrights to 2019. 295 296AcpiExec: Added a new option to dump extra information concerning any 297memory leaks detected by the internal object/cache tracking mechanism. - 298va 299 300iASL: Updated the table template for the TPM2 table to the newest version 301of the table (Revision 4) 302 303 304---------------------------------------- 30513 December 2018. Summary of changes for version 20181213: 306 307 3081) ACPICA Kernel-resident Subsystem: 309 310Fixed some buffer length issues with the GenericSerialBus, related to two 311of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes, 312which are rarely seen in the field. For these, the LEN field of the ASL 313buffer is now ignored. Hans de Goede 314 315Implemented a new object evaluation trace mechanism for control methods 316and data objects. This includes nested control methods. It is 317particularly useful for examining the ACPI execution during system 318initialization since the output is relatively terse. The flag below 319enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface: 320 #define ACPI_LV_EVALUATION 0x00080000 321 322Examples: 323 Enter evaluation : _SB.PCI0._INI (Method) 324 Exit evaluation : _SB.PCI0._INI 325 Enter evaluation : _OSI (Method) 326 Exit evaluation : _OSI 327 Enter evaluation : _SB.PCI0.TEST (Method) 328 Nested method call : _SB.PCI0.NST1 329 Exit nested method : _SB.PCI0.NST1 330 Exit evaluation : _SB.PCI0.TEST 331 332Added two recently-defined _OSI strings. See 333https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi- 334osi. 335 "Windows 2018" 336 "Windows 2018.2" 337 338Update for buffer-to-string conversions via the ToHexString ASL operator. 339A "0x" is now prepended to each of the hex values in the output string. 340This provides compatibility with other ACPI implementations. The ACPI 341specification is somewhat vague on this issue. 342 Example output string after conversion: 343"0x01,0x02,0x03,0x04,0x05,0x06" 344 345Return a run-time error for TermArg expressions within individual package 346elements. Although this is technically supported by the ASL grammar, 347other ACPI implementations do not support this either. Also, this fixes a 348fault if this type of construct is ever encountered (it never has been). 349 350 3512) iASL Compiler/Disassembler and Tools: 352 353iASL: Implemented a new compile option (-ww) that will promote individual 354warnings and remarks to errors. This is intended to enhance the firmware 355build process. 356 357AcpiExec: Implemented a new command-line option (-eo) to support the new 358object evaluation trace mechanism described above. 359 360Disassembler: Added support to disassemble OEMx tables as AML/ASL tables 361instead of a "unknown table" message. 362 363AcpiHelp: Improved support for the "special" predefined names such as 364_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be 365used for "xx" and "x". 366 367---------------------------------------- 36831 October 2018. Summary of changes for version 20181031: 369 370 371An Operation Region regression was fixed by properly adding address 372ranges to a global list during initialization. This allows OS to 373accurately check for overlapping regions between native devices (such as 374PCI) and Operation regions as well as checking for region conflicts 375between two Operation Regions. 376 377Added support for the 2-byte extended opcodes in the code/feature that 378attempts to continue parsing during the table load phase. Skip parsing 379Device declarations (and other extended opcodes) when an error occurs 380during parsing. Previously, only single-byte opcodes were supported. 381 382Cleanup: Simplified the module-level code support by eliminating a 383useless global variable (AcpiGbl_GroupModuleLeveCode). 384 385 3862) iASL Compiler/Disassembler and Tools: 387 388iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE 389could cause a fault in the preprocessor. This was an inadvertent side- 390effect from moving more allocations/frees to the local cache/memory 391mechanism. 392 393iASL: Enhanced error detection by validating that all NameSeg elements 394within a NamePatch actually exist. The previous behavior was spotty at 395best, and such errors could be improperly ignored at compiler time (never 396at runtime, however. There are two new error messages, as shown in the 397examples below: 398 399dsdt.asl 33: CreateByteField (TTTT.BXXX, 1, CBF1) 400Error 6161 - ^ One or more objects within 401the Pathname do not exist (TTTT.BXXX) 402 403dsdt.asl 34: CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1) 404Error 6160 - One or more prefix Scopes do not exist ^ 405(BBBB.CBF1) 406 407iASL: Disassembler/table-compiler: Added support for the static data 408table TPM2 revision 3 (an older version of TPM2). The support has been 409added for the compiler and the disassembler. 410 411Fixed compilation of DOS format data table file on Unix/Linux systems. 412iASL now properly detects line continuations (\) for DOS format data 413table definition language files on when executing on Unix/Linux. 414 415---------------------------------------- 41603 October 2018. Summary of changes for version 20181003: 417 418 4192) iASL Compiler/Disassembler and Tools: 420 421Fixed a regression introduced in version 20180927 that could cause the 422compiler to fault, especially with NamePaths containing one or more 423carats (^). Such as: ^^_SB_PCI0 424 425Added a new remark for the Sleep() operator when the sleep time operand 426is larger than one second. This is a very long time for the ASL/BIOS code 427and may not be what was intended by the ASL writer. 428 429---------------------------------------- 43027 September 2018. Summary of changes for version 20180927: 431 432 4331) ACPICA kernel-resident subsystem: 434 435Updated the GPE support to clear the status of all ACPI events when 436entering any/all sleep states in order to avoid premature wakeups. In 437theory, this may cause some wakeup events to be missed, but the 438likelihood of this is small. This change restores the original behavior 439of the ACPICA code in order to fix a regression seen from the previous 440"Stop unconditionally clearing ACPI IRQs during suspend/resume" change. 441This regression could cause some systems to incorrectly wake immediately. 442 443Updated the execution of the _REG methods during initialization and 444namespace loading to bring the behavior into closer conformance to the 445ACPI specification and other ACPI implementations: 446 447From the ACPI specification 6.2A, section 6.5.4 "_REG (Region): 448 "Control methods must assume all operation regions are inaccessible 449until the _REG(RegionSpace, 1) method is executed" 450 451 "The exceptions to this rule are: 4521. OSPM must guarantee that the following operation regions are always 453accessible: 454 SystemIO operation regions. 455 SystemMemory operation regions when accessing memory returned by the 456System Address Map reporting interfaces." 457 458Since the state of both the SystemIO and SystemMemory address spaces are 459defined by the specification to never change, this ACPICA change ensures 460that now _REG is never called on them. This solves some problems seen in 461the field and provides compatibility with other ACPI implementations. An 462update to the upcoming new version of the ACPI specification will help 463clarify this behavior. 464 465Updated the implementation of support for the Generic Serial Bus. For the 466"bidirectional" protocols, the internal implementation now automatically 467creates a return data buffer of the maximum size (255). This handles the 468worst-case for data that is returned from the serial bus handler, and 469fixes some problems seen in the field. This new buffer is directly 470returned to the ASL. As such, there is no true "bidirectional" buffer, 471which matches the ACPI specification. This is the reason for the "double 472store" seen in the example ASL code in the specification, shown below: 473 474Word Process Call (AttribProcessCall): 475 OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100) 476 Field(TOP1, BufferAcc, NoLock, Preserve) 477 { 478 FLD1, 8, // Virtual register at command value 1. 479 } 480 481 Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer 482 // as BUFF 483 CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word) 484 485 Store(0x5416, DATA) // Save 0x5416 into the data buffer 486 Store(Store(BUFF, FLD1), BUFF) // Invoke a write/read Process Call 487transaction 488 // This is the "double store". The write to 489 // FLD1 returns a new buffer, which is stored 490 // back into BUFF with the second Store. 491 492 4932) iASL Compiler/Disassembler and Tools: 494 495iASL: Implemented detection of extraneous/redundant uses of the Offset() 496operator within a Field Unit list. A remark is now issued for these. For 497example, the first two of the Offset() operators below are extraneous. 498Because both the compiler and the interpreter track the offsets 499automatically, these Offsets simply refer to the current offset and are 500unnecessary. Note, when optimization is enabled, the iASL compiler will 501in fact remove the redundant Offset operators and will not emit any AML 502code for them. 503 504 OperationRegion (OPR1, SystemMemory, 0x100, 0x100) 505 Field (OPR1) 506 { 507 Offset (0), // Never needed 508 FLD1, 32, 509 Offset (4), // Redundant, offset is already 4 (bytes) 510 FLD2, 8, 511 Offset (64), // OK use of Offset. 512 FLD3, 16, 513 } 514dsdt.asl 14: Offset (0), 515Remark 2158 - ^ Unnecessary/redundant use of Offset 516operator 517 518dsdt.asl 16: Offset (4), 519Remark 2158 - ^ Unnecessary/redundant use of Offset 520operator 521 522---------------------------------------- 52310 August 2018. Summary of changes for version 20180810: 524 525 5261) ACPICA kernel-resident subsystem: 527 528Initial ACPI table loading: Attempt to continue loading ACPI tables 529regardless of malformed AML. Since migrating table initialization to the 530new module-level code support, the AML interpreter rejected tables upon 531any ACPI error encountered during table load. This is a problem because 532non-serious ACPI errors during table load do not necessarily mean that 533the entire definition block (DSDT or SSDT) is invalid. This change 534improves the table loading by ignoring some types of errors that can be 535generated by incorrect AML. This can range from object type errors, scope 536errors, and index errors. 537 538Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs 539during suspend/resume. The status of ACPI events is no longer cleared 540when entering the ACPI S5 system state (power off) which caused some 541systems to power up immediately after turning off power in certain 542situations. This was a functional regression. It was fixed by clearing 543the status of all ACPI events again when entering S5 (for system-wide 544suspend or hibernation the clearing of the status of all events is not 545desirable, as it might cause the kernel to miss wakeup events sometimes). 546Rafael Wysocki. 547 548 5492) iASL Compiler/Disassembler and Tools: 550 551AcpiExec: Enhanced the -fi option (Namespace initialization file). Field 552elements listed in the initialization file were previously initialized 553after the table load and before executing module-level code blocks. 554Recent changes in the module-level code support means that the table load 555becomes a large control method execution. If fields are used within 556module-level code and we are executing with the -fi option, the 557initialization values were used to initialize the namespace object(s) 558only after the table was finished loading. This change Provides an early 559initialization of objects specified in the initialization file so that 560field unit values are populated during the table load (not after the 561load). 562 563AcpiExec: Fixed a small memory leak regression that could result in 564warnings during exit of the utility. These warnings were similar to 565these: 566 0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small] 567 0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001 568 569---------------------------------------- 57029 June 2018. Summary of changes for version 20180629: 571 572 5731) iASL Compiler/Disassembler and Tools: 574 575iASL: Fixed a regression related to the use of the ASL External 576statement. Error checking for the use of the External() statement has 577been relaxed. Previously, a restriction on the use of External meant that 578the referenced named object was required to be defined in a different 579table (an SSDT). Thus it would be an error to declare an object as an 580external and then define the same named object in the same table. For 581example: 582 DefinitionBlock (...) 583 { 584 External (DEV1) 585 Device (DEV1){...} // This was an error 586 } 587However, this behavior has caused regressions in some existing ASL code, 588because there is code that depends on named objects and externals (with 589the same name) being declared in the same table. This change will allow 590the ASL code above to compile without errors or warnings. 591 592iASL: Implemented ASL language extensions for four operators to make some 593of their arguments optional instead of required: 594 1) Field (RegionName, AccessType, LockRule, UpdateRule) 595 2) BankField (RegionName, BankName, BankValue, 596 AccessType, LockRule, UpdateRule) 597 3) IndexField (IndexName, DataName, 598 AccessType, LockRule, UpdateRule) 599For the Field operators above, the AccessType, LockRule, and UpdateRule 600are now optional arguments. The default values are: 601 AccessType: AnyAcc 602 LockRule: NoLock 603 UpdateRule: Preserve 604 4) Mutex (MutexName, SyncLevel) 605For this operator, the SyncLevel argument is now optional. This argument 606is rarely used in any meaningful way by ASL code, and thus it makes sense 607to make it optional. The default value is: 608 SyncLevel: 0 609 610iASL: Attempted use of the ASL Unload() operator now results in the 611following warning: 612 "Unload is not supported by all operating systems" 613This is in fact very true, and the Unload operator may be completely 614deprecated in the near future. 615 616AcpiExec: Fixed a regression for the -fi option (Namespace initialization 617file. Recent changes in the ACPICA module-level code support altered the 618table load/initialization sequence . This means that the table load has 619become a large method execution of the table itself. If Operation Region 620Fields are used within any module-level code and the -fi option was 621specified, the initialization values were populated only after the table 622had completely finished loading (and thus the module-level code had 623already been executed). This change moves the initialization of objects 624listed in the initialization file to before the table is executed as a 625method. Field unit values are now initialized before the table execution 626is performed. 627 628---------------------------------------- 62931 May 2018. Summary of changes for version 20180531: 630 631 6321) ACPICA kernel-resident Subsystem: 633 634Implemented additional support to help ensure that a DSDT or SSDT is 635fully loaded even if errors are incurred during the load. The majority of 636the problems that are seen is the failure of individual AML operators 637that occur during execution of any module-level code (MLC) existing in 638the table. This support adds a mechanism to abort the current ASL 639statement (AML opcode), emit an error message, and to simply move on to 640the next opcode -- instead of aborting the entire table load. This is 641different than the execution of a control method where the entire method 642is aborted upon any error. The goal is to perform a very "best effort" to 643load the ACPI tables. The most common MLC errors that have been seen in 644the field are direct references to unresolved ASL/AML symbols (referenced 645directly without the use of the CondRefOf operator to validate the 646symbol). This new ACPICA behavior is now compatible with other ACPI 647implementations. 648 649Interpreter: The Unload AML operator is no longer supported for the 650reasons below. An AE_NOT_IMPLEMENTED exception is returned. 6511) A correct implementation on at least some hosts may not be possible. 6522) Other ACPI implementations do not correctly/fully support it. 6533) It requires host device driver support which is not known to exist. 654 (To properly support namespace unload out from underneath.) 6554) This AML operator has never been seen in the field. 656 657Parser: Added a debug option to dump AML parse sub-trees as they are 658being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is 659ACPI_DB_PARSE_TREES. 660 661Debugger: Reduced the verbosity for errors incurred during table load and 662module-level code execution. 663 664Completed an investigation into adding a namespace node "owner list" 665instead of the current "owner ID" associated with namespace nodes. This 666list would link together all nodes that are owned by an individual 667control method. The purpose would be to enhance control method execution 668by speeding up cleanup during method exit (all namespace nodes created by 669a method are deleted upon method termination.) Currently, the entire 670namespace must be searched for matching owner IDs if (and only if) the 671method creates named objects outside of the local scope. However, by far 672the most common case is that methods create objects locally, not outside 673the method scope. There is already an ACPICA optimization in place that 674only searches the entire namespace in the rare case of a method creating 675objects elsewhere in the namespace. Therefore, it is felt that the 676overhead of adding an additional pointer to each namespace node to 677implement the owner list makes this feature unnecessary. 678 679 6802) iASL Compiler/Disassembler and Tools: 681 682iASL, Disassembler, and Template generator: Implemented support for 683Revision D of the IORT table. Adds a new subtable that is used to specify 684SMMUv3 PMCGs. rmurphy-arm. 685 686Disassembler: Restored correct table header validation for the "special" 687ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI 688table header and must be special-cased. This was a regression that has 689been present for apparently a long time. 690 691AcpiExec: Reduced verbosity of the local exception handler implemented 692within acpiexec. This handler is invoked by ACPICA upon any exceptions 693generated during control method execution. A new option was added: -vh 694restores the original verbosity level if desired. 695 696AcpiExec: Changed the default base from decimal to hex for the -x option 697(set debug level). This simplifies the use of this option and matches the 698behavior of the corresponding iASL -x option. 699 700AcpiExec: Restored a force-exit on multiple control-c (sigint) 701interrupts. This allows program termination even if other issues cause 702the control-c to fail. 703 704ASL test suite (ASLTS): Added tests for the recently implemented package 705element resolution mechanism that allows forward references to named 706objects from individual package elements (this mechanism provides 707compatibility with other ACPI implementations.) 708 709 710---------------------------------------- 7118 May 2018. Summary of changes for version 20180508: 712 713 7141) ACPICA kernel-resident subsystem: 715 716Completed the new (recently deployed) package resolution mechanism for 717the Load and LoadTable ASL/AML operators. This fixes a regression that 718was introduced in version 20180209 that could result in an 719AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table 720(SSDT) that contains package objects. 721 722 7232) iASL Compiler/Disassembler and Tools: 724 725AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than 7261 MB. This change allows for table offsets within the acpidump file to be 727up to 8 characters. These changes are backwards compatible with existing 728acpidump files. 729 730 731---------------------------------------- 73227 April 2018. Summary of changes for version 20180427: 733 734 7351) ACPICA kernel-resident subsystem: 736 737Debugger: Added support for Package objects in the "Test Objects" 738command. This command walks the entire namespace and evaluates all named 739data objects (Integers, Strings, Buffers, and now Packages). 740 741Improved error messages for the namespace root node. Originally, the root 742was referred to by the confusing string "\___". This has been replaced by 743"Namespace Root" for clarification. 744 745Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin 746Ian King <colin.king@canonical.com>. 747 748 7492) iASL Compiler/Disassembler and Tools: 750 751iASL: Implemented support to detect and flag illegal forward references. 752For compatibility with other ACPI implementations, these references are 753now illegal at the root level of the DSDT or SSDTs. Forward references 754have always been illegal within control methods. This change should not 755affect existing ASL/AML code because of the fact that these references 756have always been illegal in the other ACPI implementation. 757 758iASL: Added error messages for the case where a table OEM ID and OEM 759TABLE ID strings are longer than the ACPI-defined length. Previously, 760these strings were simply silently truncated. 761 762iASL: Enhanced the -tc option (which creates an AML hex file in C, 763suitable for import into a firmware project): 764 1) Create a unique name for the table, to simplify use of multiple 765SSDTs. 766 2) Add a protection #ifdef in the file, similar to a .h header file. 767With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd, 768evan.lloyd@arm.com 769 770AcpiExec: Added a new option, -df, to disable the local fault handler. 771This is useful during debugging, where it may be desired to drop into a 772debugger on a fault. 773 774---------------------------------------- 77513 March 2018. Summary of changes for version 20180313: 776 777 7781) ACPICA kernel-resident subsystem: 779 780Implemented various improvements to the GPE support: 781 7821) Dispatch all active GPEs at initialization time so that no GPEs are 783lost. 7842) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled 785before devices are enumerated. 7863) Don't unconditionally clear ACPI IRQs during suspend/resume, so that 787IRQs are not lost. 7884) Add parallel GPE handling to eliminate the possibility of dispatching 789the same GPE twice. 7905) Dispatch any pending GPEs after enabling for the first time. 791 792AcpiGetObjectInfo - removed support for the _STA method. This was causing 793problems on some platforms. 794 795Added a new _OSI string, "Windows 2017.2". 796 797Cleaned up and simplified the module-level code support. These changes 798are in preparation for the eventual removal of the legacy MLC support 799(deferred execution), replaced by the new MLC architecture which executes 800the MLC as a table is loaded (DSDT/SSDTs). 801 802Changed a compile-time option to a runtime option. Changes the option to 803ignore ACPI table load-time package resolution errors into a runtime 804option. Used only for platforms that generate many AE_NOT_FOUND errors 805during boot. AcpiGbl_IgnorePackageResolutionErrors. 806 807Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some 808ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid 809compilation errors from unused variables (seen with some compilers). 810 811 8122) iASL Compiler/Disassembler and Tools: 813 814ASLTS: parallelized execution in order to achieve an (approximately) 2X 815performance increase. 816 817ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves 818error reporting. 819 820---------------------------------------- 82109 February 2018. Summary of changes for version 20180209: 822 823 8241) ACPICA kernel-resident subsystem: 825 826Completed the final integration of the recent changes to Package Object 827handling and the module-level AML code support. This allows forward 828references from individual package elements when the package object is 829declared from within module-level code blocks. Provides compatibility 830with other ACPI implementations. 831 832The new architecture for the AML module-level code has been completed and 833is now the default for the ACPICA code. This new architecture executes 834the module-level code in-line as the ACPI table is loaded/parsed instead 835of the previous architecture which deferred this code until after the 836table was fully loaded. This solves some ASL code ordering issues and 837provides compatibility with other ACPI implementations. At this time, 838there is an option to fallback to the earlier architecture, but this 839support is deprecated and is planned to be completely removed later this 840year. 841 842Added a compile-time option to ignore AE_NOT_FOUND exceptions during 843resolution of named reference elements within Package objects. Although 844this is potentially a serious problem, it can generate a lot of 845noise/errors on platforms whose firmware carries around a bunch of unused 846Package objects. To disable these errors, define 847ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All 848errors are always reported for ACPICA applications such as AcpiExec. 849 850Fixed a regression related to the explicit type-conversion AML operators 851(ToXXXX). The regression was introduced early in 2017 but was not seen 852until recently because these operators are not fully supported by other 853ACPI implementations and are thus rarely used by firmware developers. The 854operators are defined by the ACPI specification to not implement the 855"implicit result object conversion". The regression incorrectly 856introduced this object conversion for the following explicit conversion 857operators: 858 ToInteger 859 ToString 860 ToBuffer 861 ToDecimalString 862 ToHexString 863 ToBCD 864 FromBCD 865 866 8672) iASL Compiler/Disassembler and Tools: 868 869iASL: Fixed a problem with the compiler constant folding feature as 870related to the ToXXXX explicit conversion operators. These operators do 871not support the "implicit result object conversion" by definition. Thus, 872ASL expressions that use these operators cannot be folded to a simple 873Store operator because Store implements the implicit conversion. This 874change uses the CopyObject operator for the ToXXXX operator folding 875instead. CopyObject is defined to not implement implicit result 876conversions and is thus appropriate for folding the ToXXXX operators. 877 878iASL: Changed the severity of an error condition to a simple warning for 879the case where a symbol is declared both locally and as an external 880symbol. This accommodates existing ASL code. 881 882AcpiExec: The -ep option to enable the new architecture for module-level 883code has been removed. It is replaced by the -dp option which instead has 884the opposite effect: it disables the new architecture (the default) and 885enables the legacy architecture. When the legacy code is removed in the 886future, the -dp option will be removed also. 887 888---------------------------------------- 88905 January 2018. Summary of changes for version 20180105: 890 891 8921) ACPICA kernel-resident subsystem: 893 894Updated all copyrights to 2018. This affects all source code modules. 895 896Fixed a possible build error caused by an unresolved reference to the 897AcpiUtSafeStrncpy function. 898 899Removed NULL pointer arithmetic in the various pointer manipulation 900macros. All "(void *) NULL" constructs are converted to "(void *) 0". 901This eliminates warnings/errors in newer C compilers. Jung-uk Kim. 902 903Added support for A32 ABI compilation, which uses the ILP32 model. Anuj 904Mittal. 905 906 9072) iASL Compiler/Disassembler and Tools: 908 909ASLTS: Updated all copyrights to 2018. 910 911Tools: Updated all signon copyrights to 2018. 912 913AcpiXtract: Fixed a regression related to ACPI table signatures where the 914signature was truncated to 3 characters (instead of 4). 915 916AcpiExec: Restore the original terminal mode after the use of the -v and 917-vd options. 918 919ASLTS: Deployed the iASL __METHOD__ macro across the test suite. 920 921---------------------------------------- 92214 December 2017. Summary of changes for version 20171214: 923 924 9251) ACPICA kernel-resident subsystem: 926 927Fixed a regression in the external (public) AcpiEvaluateObjectTyped 928interface where the optional "pathname" argument had inadvertently become 929a required argument returning an error if omitted (NULL pointer 930argument). 931 932Fixed two possible memory leaks related to the recently developed "late 933resolution" of reference objects within ASL Package Object definitions. 934 935Added two recently defined _OSI strings: "Windows 2016" and "Windows 9362017". Mario Limonciello. 937 938Implemented and deployed a safer version of the C library function 939strncpy: AcpiUtSafeStrncpy. The intent is to at least prevent the 940creation of unterminated strings as a possible result of a standard 941strncpy. 942 943Cleaned up and restructured the global variable file (acglobal.h). There 944are many changes, but no functional changes. 945 946 9472) iASL Compiler/Disassembler and Tools: 948 949iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the 950optional OemData field at the end of the table was incorrectly required 951for proper compilation. It is now correctly an optional field. 952 953ASLTS: The entire suite was converted from standard ASL to the ASL+ 954language, using the ASL-to-ASL+ converter which is integrated into the 955iASL compiler. A binary compare of all output files has verified the 956correctness of the conversion. 957 958iASL: Fixed the source code build for platforms where "char" is unsigned. 959This affected the iASL lexer only. Jung-uk Kim. 960 961---------------------------------------- 96210 November 2017. Summary of changes for version 20171110: 963 964 9651) ACPICA kernel-resident subsystem: 966 967This release implements full support for ACPI 6.2A: 968 NFIT - Added a new subtable, "Platform Capabilities Structure" 969No other changes to ACPICA were required, since ACPI 6.2A is primarily an 970errata release of the specification. 971 972Other ACPI table changes: 973 IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo 974 PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy 975Linton 976 977Utilities: Modified the string/integer conversion functions to use 978internal 64-bit divide support instead of a native divide. On 32-bit 979platforms, a 64-bit divide typically requires a library function which 980may not be present in the build (kernel or otherwise). 981 982Implemented a targeted error message for timeouts returned from the 983Embedded Controller device driver. This is seen frequently enough to 984special-case an AE_TIME returned from an EC operation region access: 985 "Timeout from EC hardware or EC device driver" 986 987Changed the "ACPI Exception" message prefix to "ACPI Error" so that all 988runtime error messages have the identical prefix. 989 990 9912) iASL Compiler/Disassembler and Tools: 992 993AcpiXtract: Fixed a problem with table header detection within the 994acpidump file. Processing a table could be ended early if a 0x40 (@) 995appears in the original binary table, resulting in the @ symbol appearing 996in the decoded ASCII field at the end of the acpidump text line. The 997symbol caused acpixtract to incorrectly think it had reached the end of 998the current table and the beginning of a new table. 999 1000AcpiXtract: Added an option (-f) to ignore some errors during table 1001extraction. This initial implementation ignores non-ASCII and non- 1002printable characters found in the acpidump text file. 1003 1004TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics 1005for ASLTS. This feature is used to track memory allocations from 1006different memory caches within the ACPICA code. At the end of an ASLTS 1007run, these memory statistics are recorded and stored in a log file. 1008 1009Debugger (user-space version): Implemented a simple "Background" command. 1010Creates a new thread to execute a control method in the background, while 1011control returns to the debugger prompt to allow additional commands. 1012 Syntax: Background <Namepath> [Arguments] 1013 1014---------------------------------------- 101529 September 2017. Summary of changes for version 20170929: 1016 1017 10181) ACPICA kernel-resident subsystem: 1019 1020Redesigned and implemented an improved ASL While() loop timeout 1021mechanism. This mechanism is used to prevent infinite loops in the kernel 1022AML interpreter caused by either non-responsive hardware or incorrect AML 1023code. The new implementation uses AcpiOsGetTimer instead of a simple 1024maximum loop count, and is thus more accurate and constant across 1025different machines. The default timeout is currently 30 seconds, but this 1026may be adjusted later. 1027 1028Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to 1029better reflect the new implementation of the loop timeout mechanism. 1030 1031Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support 1032and to fix an off-by-one error. Jung-uk Kim. 1033 1034Fixed an EFI build problem by updating the makefiles to for a new file 1035that was added, utstrsuppt.c 1036 1037 10382) iASL Compiler/Disassembler and Tools: 1039 1040Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This 1041includes support in the table disassembler, compiler, and template 1042generator. 1043 1044iASL: Added an exception for an illegal type of recursive method 1045invocation. If a method creates named objects, the first recursive call 1046will fail at runtime. This change adds an error detection at compile time 1047to catch the problem up front. Note: Marking such a method as 1048"serialized" will not help with this problem, because the same thread can 1049acquire the method mutex more than once. Example compiler and runtime 1050output: 1051 1052 Method (MTH1) 1053 { 1054 Name (INT1, 1) 1055 MTH1 () 1056 } 1057 1058 dsdt.asl 22: MTH1 () 1059 Error 6152 - ^ Illegal recursive call to method 1060 that creates named objects (MTH1) 1061 1062Previous runtime exception: 1063 ACPI Error: [INT1] Namespace lookup failure, 1064 AE_ALREADY_EXISTS (20170831/dswload2-465) 1065 1066iASL: Updated support for External() opcodes to improve namespace 1067management and error detection. These changes are related to issues seen 1068with multiple-segment namespace pathnames within External declarations, 1069such as below: 1070 1071 External(\_SB.PCI0.GFX0, DeviceObj) 1072 External(\_SB.PCI0.GFX0.ALSI) 1073 1074iASL: Implemented support for multi-line error/warning messages. This 1075enables more detailed and helpful error messages as below, from the 1076initial deployment for the duplicate names error: 1077 1078 DSDT.iiii 1692: Device(PEG2) { 1079 Error 6074 - ^ Name already exists in scope 1080(PEG2) 1081 1082 Original name creation/declaration below: 1083 DSDT.iiii 93: External(\_SB.PCI0.PEG2, DeviceObj) 1084 1085AcpiXtract: Added additional flexibility to support differing input hex 1086dump formats. Specifically, hex dumps that contain partial disassembly 1087and/or comments within the ACPI table data definition. There exist some 1088dump utilities seen in the field that create this type of hex dump (such 1089as Simics). For example: 1090 1091 DSDT @ 0xdfffd0c0 (10999 bytes) 1092 Signature DSDT 1093 Length 10999 1094 Revision 1 1095 Checksum 0xf3 (Ok) 1096 OEM_ID BXPC 1097 OEM_table_id BXDSDT 1098 OEM_revision 1 1099 Creator_id 1280593481 1100 Creator_revision 537399345 1101 0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00 1102 ... 1103 2af0: 5f 4c 30 46 00 a4 01 1104 1105Test suite: Miscellaneous changes/fixes: 1106 More cleanup and simplification of makefiles 1107 Continue compilation of test cases after a compile failure 1108 Do not perform binary compare unless both files actually exist 1109 1110iASL: Performed some code/module restructuring. Moved all memory 1111allocation functions to new modules. Two new files, aslallocate.c and 1112aslcache.c 1113 1114---------------------------------------- 111531 August 2017. Summary of changes for version 20170831: 1116 1117 11181) ACPICA kernel-resident subsystem: 1119 1120Implemented internal support for full 64-bit addresses that appear in all 1121Generic Address Structure (GAS) structures. Previously, only the lower 32 1122bits were used. Affects the use of GAS structures in the FADT and other 1123tables, as well as the GAS structures passed to the AcpiRead and 1124AcpiWrite public external interfaces that are used by drivers. Lv Zheng. 1125 1126Added header support for the PDTT ACPI table (Processor Debug Trigger 1127Table). Full support in the iASL Data Table Compiler and disassembler is 1128forthcoming. 1129 1130 11312) iASL Compiler/Disassembler and Tools: 1132 1133iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor 1134Properties Topology Table) where a flag bit was specified in the wrong 1135bit position ("Line Size Valid", bit 6). 1136 1137iASL: Implemented support for Octal integer constants as defined by the 1138ASL language grammar, per the ACPI specification. Any integer constant 1139that starts with a zero is an octal constant. For example, 1140 Store (037777, Local0) /* Octal constant */ 1141 Store (0x3FFF, Local0) /* Hex equivalent */ 1142 Store (16383, Local0) /* Decimal equivalent */ 1143 1144iASL: Improved overflow detection for 64-bit string conversions during 1145compilation of integer constants. "Overflow" in this case means a string 1146that represents an integer that is too large to fit into a 64-bit value. 1147Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to 1148the low-order 32 bits with a warning, as previously implemented. Several 1149new exceptions are defined that indicate a 64-bit overflow, as well as 1150the base (radix) that was used during the attempted conversion. Examples: 1151 Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF // AE_HEX_OVERFLOW 1152 Local0 = 01111222233334444555566667777 // AE_OCTAL_OVERFLOW 1153 Local0 = 11112222333344445555666677778888 // AE_DECIMAL_OVERFLOW 1154 1155iASL: Added a warning for the case where a ResourceTemplate is declared 1156with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In 1157this case, the resulting template is created with a single END_TAG 1158descriptor, which is essentially useless. 1159 1160iASL: Expanded the -vw option (ignore specific warnings/remarks) to 1161include compilation error codes as well. 1162 1163---------------------------------------- 116428 July 2017. Summary of changes for version 20170728: 1165 1166 11671) ACPICA kernel-resident subsystem: 1168 1169Fixed a regression seen with small resource descriptors that could cause 1170an inadvertent AE_AML_NO_RESOURCE_END_TAG exception. 1171 1172AML interpreter: Implemented a new feature that allows forward references 1173from individual named references within package objects that are 1174contained within blocks of "module-level code". This provides 1175compatibility with other ACPI implementations and supports existing 1176firmware that depends on this feature. Example: 1177 1178 Name (ABCD, 1) 1179 If (ABCD) /* An If() at module-level */ 1180 { 1181 Name (PKG1, Package() 1182 { 1183 INT1 /* Forward reference to object INT1 1184*/ 1185 }) 1186 Name (INT1, 0x1234) 1187 } 1188 1189AML Interpreter: Fixed a problem with the Alias() operator where aliases 1190to some ASL objects were not handled properly. Objects affected are: 1191Mutex, Event, and OperationRegion. 1192 1193AML Debugger: Enhanced to properly handle AML Alias objects. These 1194objects have one level of indirection which was not fully supported by 1195the debugger. 1196 1197Table Manager: Added support to detect and ignore duplicate SSDTs within 1198the XSDT/RSDT. This error in the XSDT has been seen in the field. 1199 1200EFI and EDK2 support: 1201 Enabled /WX flag for MSVC builds 1202 Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer 1203 Added local support for 64-bit multiply and shift operations 1204 Added support to compile acpidump.efi on Windows 1205 Added OSL function stubs for interfaces not used under EFI 1206 1207Added additional support for the _DMA predefined name. _DMA returns a 1208buffer containing a resource template. This change add support within the 1209resource manager (AcpiWalkResourceBuffer) to walk and parse this list of 1210resource descriptors. Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> 1211 1212 12132) iASL Compiler/Disassembler and Tools: 1214 1215iASL: Fixed a problem where the internal input line buffer(s) could 1216overflow if there are very long lines in the input ASL source code file. 1217Implemented buffer management that automatically increases the size of 1218the buffers as necessary. 1219 1220iASL: Added an option (-vx) to "expect" particular remarks, warnings and 1221errors. If the specified exception is not raised during compilation, the 1222compiler emits an error. This is intended to support the ASL test suite, 1223but may be useful in other contexts. 1224 1225iASL: Implemented a new predefined macro, __METHOD__, which returns a 1226string containing the name of the current control method that is being 1227compiled. 1228 1229iASL: Implemented debugger and table compiler support for the SDEI ACPI 1230table (Software Delegated Exception Interface). James Morse 1231<james.morse@arm.com> 1232 1233Unix/Linux makefiles: Added an option to disable compile optimizations. 1234The disable occurs when the NOOPT flag is set to TRUE. 1235theracermaster@gmail.com 1236 1237Acpidump: Added support for multiple DSDT and FACS tables. This can occur 1238when there are different tables for 32-bit versus 64-bit. 1239 1240Enhanced error reporting for the ASL test suite (ASLTS) by removing 1241unnecessary/verbose text, and emit the actual line number where an error 1242has occurred. These changes are intended to improve the usefulness of the 1243test suite. 1244 1245---------------------------------------- 124629 June 2017. Summary of changes for version 20170629: 1247 1248 12491) ACPICA kernel-resident subsystem: 1250 1251Tables: Implemented a deferred ACPI table verification. This is useful 1252for operating systems where the tables cannot be verified in the early 1253initialization stage due to early memory mapping limitations on some 1254architectures. Lv Zheng. 1255 1256Tables: Removed the signature validation for dynamically loaded tables. 1257Provides compatibility with other ACPI implementations. Previously, only 1258SSDT tables were allowed, as per the ACPI specification. Now, any table 1259signature can be used via the Load() operator. Lv Zheng. 1260 1261Tables: Fixed several mutex issues that could cause errors during table 1262acquisition. Lv Zheng. 1263 1264Tables: Fixed a problem where an ACPI warning could be generated if a 1265null pointer was passed to the AcpiPutTable interface. Lv Zheng. 1266 1267Tables: Added a mechanism to handle imbalances for the AcpiGetTable and 1268AcpiPutTable interfaces. This applies to the "late stage" table loading 1269when the use of AcpiPutTable is no longer required (since the system 1270memory manager is fully running and available). Lv Zheng. 1271 1272Fixed/Reverted a regression during processing of resource descriptors 1273that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG 1274exception in this case. 1275 1276Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the 1277I/O Remapping specification. Robin Murphy <robin.murphy@arm.com> 1278 1279Interpreter: Fixed a possible fault if an Alias operator with an invalid 1280or duplicate target is encountered during Alias creation in 1281AcpiExCreateAlias. Alex James <theracermaster@gmail.com> 1282 1283Added an option to use designated initializers for function pointers. 1284Kees Cook <keescook@google.com> 1285 1286 12872) iASL Compiler/Disassembler and Tools: 1288 1289iASL: Allow compilation of External declarations with target pathnames 1290that refer to existing named objects within the table. Erik Schmauss. 1291 1292iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a 1293FieldUnit name also is declared via External in the same table. Erik 1294Schmauss. 1295 1296iASL: Allow existing scope names within pathnames used in External 1297statements. For example: 1298 External (ABCD.EFGH) // ABCD exists, but EFGH is truly external 1299 Device (ABCD) 1300 1301iASL: IORT ACPI table: Implemented changes required to decode the new 1302Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table 1303compiler. Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com> 1304 1305Disassembler: Don't abort disassembly on errors from External() 1306statements. Erik Schmauss. 1307 1308Disassembler: fixed a possible fault when one of the Create*Field 1309operators references a Resource Template. ACPICA Bugzilla 1396. 1310 1311iASL: In the source code, resolved some naming inconsistences across the 1312parsing support. Fixes confusion between "Parse Op" and "Parse Node". 1313Adds a new file, aslparseop.c 1314 1315---------------------------------------- 131631 May 2017. Summary of changes for version 20170531: 1317 1318 13190) ACPI 6.2 support: 1320 1321The ACPI specification version 6.2 has been released and is available at 1322http://uefi.org/specifications 1323 1324This version of ACPICA fully supports the ACPI 6.2 specification. Changes 1325are summarized below. 1326 1327New ACPI tables (Table Compiler/Disassembler/Templates): 1328 HMAT (Heterogeneous Memory Attributes Table) 1329 WSMT (Windows SMM Security Mitigation Table) 1330 PPTT (Processor Properties Topology Table) 1331 1332New subtables for existing ACPI tables: 1333 HEST (New subtable, Arch-deferred machine check) 1334 SRAT (New subtable, Arch-specific affinity structure) 1335 PCCT (New subtables, Extended PCC subspaces (types 3 and 4)) 1336 1337Simple updates for existing ACPI tables: 1338 BGRT (two new flag bits) 1339 HEST (New bit defined for several subtables, GHES_ASSIST) 1340 1341New Resource Descriptors and Resource macros (Compiler/Disassembler): 1342 PinConfig() 1343 PinFunction() 1344 PinGroup() 1345 PinGroupConfig() 1346 PinGroupFunction() 1347 New type for hardware error notification (section 18.3.2.9) 1348 1349New predefined names/methods (Compiler/Interpreter): 1350 _HMA (Heterogeneous Memory Attributes) 1351 _LSI (Label Storage Information) 1352 _LSR (Label Storage Read) 1353 _LSW (Label Storage Write) 1354 1355ASL grammar/macro changes (Compiler): 1356 For() ASL macro, implemented with the AML while operator 1357 Extensions to Concatenate operator 1358 Support for multiple definition blocks in same ASL file 1359 Clarification for Buffer operator 1360 Allow executable AML code underneath all scopes (Devices, etc.) 1361 Clarification/change for the _OSI return value 1362 ASL grammar update for reference operators 1363 Allow a zero-length string for AML filename in DefinitionBlock 1364 1365Miscellaneous: 1366 New device object notification value 1367 Remove a notify value (0x0C) for graceful shutdown 1368 New UUIDs for processor/cache properties and 1369 physical package property 1370 New _HID, ACPI0014 (Wireless Power Calibration Device) 1371 1372 13731) ACPICA kernel-resident subsystem: 1374 1375Added support to disable ACPI events on hardware-reduced platforms. 1376Eliminates error messages of the form "Could not enable fixed event". Lv 1377Zheng 1378 1379Fixed a problem using Device/Thermal objects with the ObjectType and 1380DerefOf ASL operators. This support had not been fully/properly 1381implemented. 1382 1383Fixed a problem where if a Buffer object containing a resource template 1384was longer than the actual resource template, an error was generated -- 1385even though the AML is legal. This case has been seen in the field. 1386 1387Fixed a problem with the header definition of the MADT PCAT_COMPAT flag. 1388The values for DUAL_PIC and MULTIPLE_APIC were reversed. 1389 1390Added header file changes for the TPM2 ACPI table. Update to new version 1391of the TCG specification. Adds a new TPM2 subtable for ARM SMC. 1392 1393Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex. 1394These interfaces are intended to be used only in conjunction with the 1395predefined _DLM method (Device Lock Method). "This object appears in a 1396device scope when AML access to the device must be synchronized with the 1397OS environment". 1398 1399Example Code and Data Size: These are the sizes for the OS-independent 1400acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1401debug version of the code includes the debug output trace mechanism and 1402has a much larger code and data size. 1403 1404 Current Release: 1405 Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total 1406 Debug Version: 204.0K Code, 84.3K Data, 288.3K Total 1407 Previous Release: 1408 Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total 1409 Debug Version: 207.5K Code, 82.7K Data, 290.2K Total 1410 1411 14122) iASL Compiler/Disassembler and Tools: 1413 1414iASL: Fixed a problem where an External() declaration could not refer to 1415a Field Unit. Erik Schmauss. 1416 1417Disassembler: Improved support for the Switch/Case operators. This 1418feature will disassemble AML code back to the original Switch operators 1419when possible, instead of an If..Else sequence. David Box 1420 1421iASL and disassembler: Improved the handling of multiple extraneous 1422parentheses for both ASL input and disassembled ASL output. 1423 1424Improved the behavior of the iASL compiler and disassembler to detect 1425improper use of external declarations 1426 1427Disassembler: Now aborts immediately upon detection of an unknown AML 1428opcode. The AML parser has no real way to recover from this, and can 1429result in the creation of an ill-formed parse tree that causes errors 1430later during the disassembly. 1431 1432All tools: Fixed a problem where the Unix application OSL did not handle 1433control-c correctly. For example, a control-c could incorrectly wake the 1434debugger. 1435 1436AcpiExec: Improved the Control-C handling and added a handler for 1437segmentation faults (SIGSEGV). Supports both Windows and Unix-like 1438environments. 1439 1440Reduced the verbosity of the generic unix makefiles. Previously, each 1441compilation displayed the full set of compiler options. This has been 1442eliminated as the options are easily inspected within the makefiles. Each 1443compilation now results in a single line of output. 1444 1445---------------------------------------- 144603 March 2017. Summary of changes for version 20170303: 1447 1448 14490) ACPICA licensing: 1450 1451The licensing information at the start of each source code module has 1452been updated. In addition to the Intel license, the dual GPLv2/BSD 1453license has been added for completeness. Now, a single version of the 1454source code should be suitable for all ACPICA customers. This is the 1455major change for this release since it affects all source code modules. 1456 1457 14581) ACPICA kernel-resident subsystem: 1459 1460Fixed two issues with the common asltypes.h header that could cause 1461problems in some environments: (Kim Jung-uk) 1462 Removed typedef for YY_BUFFER_STATE ? 1463 Fixes an error with earlier versions of Flex. 1464 Removed use of FILE typedef (which is only defined in stdio.h) 1465 1466 14672) iASL Compiler/Disassembler and Tools: 1468 1469Disassembler: fixed a regression introduced in 20170224. A fix for a 1470memory leak related to resource descriptor tags (names) could fault when 1471the disassembler was generated with 64-bit compilers. 1472 1473The ASLTS test suite has been updated to implement a new testing 1474architecture. During generation of the suite from ASL source, both the 1475ASL and ASL+ compilers are now validated, as well as the disassembler 1476itself (Erik Schmauss). The architecture executes as follows: 1477 1478 For every ASL source module: 1479 Compile (legacy ASL compilation) 1480 Disassemble the resulting AML to ASL+ source code 1481 Compile the new ASL+ module 1482 Perform a binary compare on the legacy AML and the new ASL+ AML 1483 The ASLTS suite then executes normally using the AML binaries. 1484 1485---------------------------------------- 148624 February 2017. Summary of changes for version 20170224: 1487 1488 14891) ACPICA kernel-resident subsystem: 1490 1491Interpreter: Fixed two issues with the control method return value auto- 1492repair feature, where an attempt to double-delete an internal object 1493could result in an ACPICA warning (for _CID repair and others). No fault 1494occurs, however, because the attempted deletion (actually a release to an 1495internal cache) is detected and ignored via object poisoning. 1496 1497Debugger: Fixed an AML interpreter mutex issue during the single stepping 1498of control methods. If certain debugger commands are executed during 1499stepping, a mutex acquire/release error could occur. Lv Zheng. 1500 1501Fixed some issues generating ACPICA with the Intel C compiler by 1502restoring the original behavior and compiler-specific include file in 1503acenv.h. Lv Zheng. 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: 141.7K Code, 58.5K Data, 200.2K Total 1512 Debug Version: 207.5K Code, 82.7K Data, 290.2K Total 1513 Previous Release: 1514 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 1515 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 1516 1517 15182) iASL Compiler/Disassembler and Tools: 1519 1520iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion 1521tool has been designed, implemented, and included in this release. The 1522key feature of this utility is that the original comments within the 1523input ASL file are preserved during the conversion process, and included 1524within the converted ASL+ file -- thus creating a transparent conversion 1525of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss. 1526 1527 Usage: iasl -ca <ASL-filename> // Output is a .dsl file with 1528converted code 1529 1530iASL/Disassembler: Improved the detection and correct disassembly of 1531Switch/Case operators. This feature detects sequences of if/elseif/else 1532operators that originated from ASL Switch/Case/Default operators and 1533emits the original operators. David Box. 1534 1535iASL: Improved the IORT ACPI table support in the following areas. Lv 1536Zheng: 1537 Clear MappingOffset if the MappingCount is zero. 1538 Fix the disassembly of the SMMU GSU interrupt offset. 1539 Update the template file for the IORT table. 1540 1541Disassembler: Enhanced the detection and disassembly of resource 1542template/descriptor within a Buffer object. An EndTag descriptor is now 1543required to have a zero second byte, since all known ASL compilers emit 1544this. This helps eliminate incorrect decisions when a buffer is 1545disassembled (false positives on resource templates). 1546 1547---------------------------------------- 154819 January 2017. Summary of changes for version 20170119: 1549 1550 15511) General ACPICA software: 1552 1553Entire source code base: Added the 2017 copyright to all source code 1554legal/licensing module headers and utility/tool signons. This includes 1555the standard Linux dual-license header. This affects virtually every file 1556in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and 1557the ACPICA test suite. 1558 1559 15602) iASL Compiler/Disassembler and Tools: 1561 1562iASL: Removed/fixed an inadvertent remark when a method argument 1563containing a reference is used as a target operand within the method (and 1564never used as a simple argument), as in the example below. Jeffrey Hugo. 1565 1566 dsdt.asl 1507: Store(0x1, Arg0) 1567 Remark 2146 - ^ Method Argument is never used (Arg0) 1568 1569All tools: Removed the bit width of the compiler that generated the tool 1570from the common signon for all user space tools. This proved to be 1571confusing and unnecessary. This includes similar removal of HARDWARE_NAME 1572from the generic makefiles (Thomas Petazzoni). Example below. 1573 1574 Old: 1575 ASL+ Optimizing Compiler version 20170119-32 1576 ASL+ Optimizing Compiler version 20170119-64 1577 1578 New: 1579 ASL+ Optimizing Compiler version 20170119 1580 1581---------------------------------------- 158222 December 2016. Summary of changes for version 20161222: 1583 1584 15851) ACPICA kernel-resident subsystem: 1586 1587AML Debugger: Implemented a new mechanism to simplify and enhance 1588debugger integration into all environments, including kernel debuggers 1589and user-space utilities, as well as remote debug services. This 1590mechanism essentially consists of new OSL interfaces to support debugger 1591initialization/termination, as well as wait/notify interfaces to perform 1592the debugger handshake with the host. Lv Zheng. 1593 1594 New OSL interfaces: 1595 AcpiOsInitializeDebugger (void) 1596 AcpiOsTerminateDebugger (void) 1597 AcpiOsWaitCommandReady (void) 1598 AcpiOsNotifyCommandComplete (void) 1599 1600 New OS services layer: 1601 osgendbg.c -- Example implementation, and used for AcpiExec 1602 1603Update for Generic Address Space (GAS) support: Although the AccessWidth 1604and/or BitOffset fields of the GAS are not often used, this change now 1605fully supports these fields. This affects the internal support for FADT 1606registers, registers in other ACPI data tables, and the AcpiRead and 1607AcpiWrite public interfaces. Lv Zheng. 1608 1609Sleep support: In order to simplify integration of ACPI sleep for the 1610various host operating systems, a new OSL interface has been introduced. 1611AcpiOsEnterSleep allows the host to perform any required operations 1612before the final write to the sleep control register(s) is performed by 1613ACPICA. Lv Zheng. 1614 1615 New OSL interface: 1616 AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue) 1617 1618 Called from these internal interfaces: 1619 AcpiHwLegacySleep 1620 AcpiHwExtendedSleep 1621 1622EFI support: Added a very small EFI/ACPICA example application. Provides 1623a simple demo for EFI integration, as well as assisting with resolution 1624of issues related to customer ACPICA/EFI integration. Lv Zheng. See: 1625 1626 source/tools/efihello/efihello.c 1627 1628Local C library: Implemented several new functions to enhance ACPICA 1629portability, for environments where these clib functions are not 1630available (such as EFI). Lv Zheng: 1631 putchar 1632 getchar 1633 strpbrk 1634 strtok 1635 memmove 1636 1637Fixed a regression where occasionally a valid resource descriptor was 1638incorrectly detected as invalid at runtime, and a 1639AE_AML_NO_RESOURCE_END_TAG was returned. 1640 1641Fixed a problem with the recently implemented support that enables 1642control method invocations as Target operands to many ASL operators. 1643Warnings of this form: "Needed type [Reference], found [Processor]" were 1644seen at runtime for some method invocations. 1645 1646Example Code and Data Size: These are the sizes for the OS-independent 1647acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1648debug version of the code includes the debug output trace mechanism and 1649has a much larger code and data size. 1650 1651 Current Release: 1652 Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total 1653 Debug Version: 201.7K Code, 82.7K Data, 284.4K Total 1654 Previous Release: 1655 Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total 1656 Debug Version: 201.3K Code, 82.7K Data, 284.0K Total 1657 1658 16592) iASL Compiler/Disassembler and Tools: 1660 1661Disassembler: Enhanced output by adding the capability to detect and 1662disassemble ASL Switch/Case statements back to the original ASL source 1663code instead of if/else blocks. David Box. 1664 1665AcpiHelp: Split a large file into separate files based upon 1666functionality/purpose. New files are: 1667 ahaml.c 1668 ahasl.c 1669 1670---------------------------------------- 167117 November 2016. Summary of changes for version 20161117: 1672 1673 16741) ACPICA kernel-resident subsystem: 1675 1676Table Manager: Fixed a regression introduced in 20160729, "FADT support 1677cleanup". This was an attempt to remove all references in the source to 1678the FADT version 2, which never was a legal version number. It was 1679skipped because it was an early version of 64-bit support that was 1680eventually abandoned for the current 64-bit support. 1681 1682Interpreter: Fixed a problem where runtime implicit conversion was 1683incorrectly disabled for the ASL operators below. This brings the 1684behavior into compliance with the ACPI specification: 1685 FromBCD 1686 ToBCD 1687 ToDecimalString 1688 ToHexString 1689 ToInteger 1690 ToBuffer 1691 1692Table Manager: Added a new public interface, AcpiPutTable, used to 1693release and free an ACPI table returned by AcpiGetTable and related 1694interfaces. Lv Zheng. 1695 1696Example Code and Data Size: These are the sizes for the OS-independent 1697acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1698debug version of the code includes the debug output trace mechanism and 1699has a much larger code and data size. 1700 1701 Current Release: 1702 Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total 1703 Debug Version: 201.3K Code, 82.7K Data, 284.0K Total 1704 Previous Release: 1705 Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total 1706 Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 1707 1708 17092) iASL Compiler/Disassembler and Tools: 1710 1711Disassembler: Fixed a regression for disassembly of Resource Template. 1712Detection of templates in the AML stream missed some types of templates. 1713 1714iASL: Fixed a problem where an Access Size error was returned for the PCC 1715address space when the AccessSize of the GAS register is greater than a 1716DWORD. Hoan Tran. 1717 1718iASL: Implemented several grammar changes for the operators below. These 1719changes are slated for the next version of the ACPI specification: 1720 RefOf - Disallow method invocation as an operand 1721 CondRefOf - Disallow method invocation as an operand 1722 DerefOf - Disallow operands that use the result from operators 1723that 1724 do not return a reference (Changed TermArg to 1725SuperName). 1726 1727iASL: Control method invocations are now allowed for Target operands, as 1728per the ACPI specification. Removed error for using a control method 1729invocation as a Target operand. 1730 1731Disassembler: Improved detection of Resource Templates, Unicode, and 1732Strings within Buffer objects. These subtypes do not contain a specific 1733opcode to indicate the originating ASL code, and they must be detected by 1734other means within the disassembler. 1735 1736iASL: Implemented an optimization improvement for 32-bit ACPI tables 1737(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode 1738only after 64-bit to 32-bit truncation. A truncation warning message is 1739still emitted, however. 1740 1741AcpiXtract: Implemented handling for both types of line terminators (LF 1742or CR/LF) so that it can accept AcpiDump output files from any system. 1743Peter Wu. 1744 1745AcpiBin: Added two new options for comparing AML files: 1746 -a: compare and display ALL mismatches 1747 -o: start compare at this offset into the second file 1748 1749---------------------------------------- 175030 September 2016. Summary of changes for version 20160930: 1751 1752 17531) ACPICA kernel-resident subsystem: 1754 1755Fixed a regression in the internal AcpiTbFindTable function where a non 1756AE_OK exception could inadvertently be returned even if the function did 1757not fail. This problem affects the following operators: 1758 DataTableRegion 1759 LoadTable 1760 1761Fixed a regression in the LoadTable operator where a load to any 1762namespace location other than the root no longer worked properly. 1763 1764Increased the maximum loop count value that will result in the 1765AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to 1766prevent infinite loops within the AML interpreter and thus the host OS 1767kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to 17681,048,575). 1769 1770Moved the AcpiGbl_MaxLoopIterations configuration variable to the public 1771acpixf.h file. This allows hosts to easily configure the maximum loop 1772count at runtime. 1773 1774Removed an illegal character in the strtoul64.c file. This character 1775caused errors with some C compilers. 1776 1777Example Code and Data Size: These are the sizes for the OS-independent 1778acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1779debug version of the code includes the debug output trace mechanism and 1780has a much larger code and data size. 1781 1782 Current Release: 1783 Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total 1784 Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 1785 Previous Release: 1786 Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total 1787 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 1788 1789 17902) iASL Compiler/Disassembler and Tools: 1791 1792Disassembler: Fixed a problem with the conversion of Else{If{ blocks into 1793the simpler ASL ElseIf keyword. During the conversion, a trailing If 1794block could be lost and missing from the disassembled output. 1795 1796iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+, 1797the missing rule caused a parse error when using the Index operator as an 1798operand to ObjectType. This construct now compiles properly. Example: 1799 ObjectType(PKG1[4]). 1800 1801iASL: Correctly handle unresolved symbols in the hardware map file (-lm 1802option). Previously, unresolved symbols could cause a protection fault. 1803Such symbols are now marked as unresolved in the map file. 1804 1805iASL: Implemented support to allow control method invocations as an 1806operand to the ASL DeRefOf operator. Example: 1807 DeRefOf(MTH1(Local0)) 1808 1809Disassembler: Improved support for the ToPLD ASL macro. Detection of a 1810possible _PLD buffer now includes examination of both the normal buffer 1811length (16 or 20) as well as the surrounding AML package length. 1812 1813Disassembler: Fixed a problem with the decoding of complex expressions 1814within the Divide operator for ASL+. For the case where both the quotient 1815and remainder targets are specified, the entire statement cannot be 1816disassembled. Previously, the output incorrectly contained a mix of ASL- 1817and ASL+ operators. This mixed statement causes a syntax error when 1818compiled. Example: 1819 Divide (Add (INT1, 6), 128, RSLT, QUOT) // was incorrectly 1820disassembled to: 1821 Divide (INT1 + 6, 128, RSLT, QUOT) 1822 1823iASL/Tools: Added support to process AML and non-AML ACPI tables 1824consistently. For the disassembler and AcpiExec, allow all types of ACPI 1825tables (AML and data tables). For the iASL -e option, allow only AML 1826tables (DSDT/SSDT). 1827 1828---------------------------------------- 182931 August 2016. Summary of changes for version 20160831: 1830 1831 18321) ACPICA kernel-resident subsystem: 1833 1834Improve support for the so-called "module-level code", which is defined 1835to be math, logical and control AML opcodes that appear outside of any 1836control method. This change improves the support by adding more opcodes 1837that can be executed in the manner. Some other issues have been solved, 1838and the ASL grammar changes to support such code under all scope 1839operators (Device, etc.) are complete. Lv Zheng. 1840 1841UEFI support: these OSL functions have been implemented. This is an 1842additional step toward supporting the AcpiExec utility natively (with 1843full hardware access) under UEFI. Marcelo Ferreira. 1844 AcpiOsReadPciConfiguration 1845 AcpiOsWritePciConfiguration 1846 1847Fixed a possible mutex error during control method auto-serialization. Lv 1848Zheng. 1849 1850Updated support for the Generic Address Structure by fully implementing 1851all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv 1852Zheng. 1853 1854Updated the return value for the internal _OSI method. Instead of 18550xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF 1856for 64-bit ACPI tables. This fixes an incompatibility with other ACPI 1857implementations, and will be reflected and clarified in the next version 1858of the ACPI specification. 1859 1860Implemented two new table events that can be passed to an ACPICA table 1861handler. These events are used to indicate a table installation or 1862uninstallation. These events are used in addition to existed table load 1863and unload events. Lv Zheng. 1864 1865Implemented a cleanup for all internal string-to-integer conversions. 1866Consolidate multiple versions of this functionality and limit possible 1867bases to either 10 or 16 to simplify the code. Adds a new file, 1868utstrtoul64. 1869 1870Cleanup the inclusion order of the various compiler-specific headers. 1871This simplifies build configuration management. The compiler-specific 1872headers are now split out from the host-specific headers. Lv Zheng. 1873 1874Example Code and Data Size: These are the sizes for the OS-independent 1875acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1876debug version of the code includes the debug output trace mechanism and 1877has a much larger code and data size. 1878 1879 Current Release: 1880 Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total 1881 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 1882 1883 18842) iASL Compiler/Disassembler and Tools: 1885 1886iASL/AcpiExec: Added a command line option to display the build date/time 1887of the tool (-vd). This can be useful to verify that the correct version 1888of the tools are being used. 1889 1890AML Debugger: Implemented a new subcommand ("execute predef") to execute 1891all predefined control methods and names within the current namespace. 1892This can be useful for debugging problems with ACPI tables and the ACPI 1893namespace. 1894 1895---------------------------------------- 189629 July 2016. Summary of changes for version 20160729: 1897 1898 18991) ACPICA kernel-resident subsystem: 1900 1901Implemented basic UEFI support for the various ACPICA tools. This 1902includes: 19031) An OSL to implement the various AcpiOs* interfaces on UEFI. 19042) Support to obtain the ACPI tables on UEFI. 19053) Local implementation of required C library functions not available on 1906UEFI. 19074) A front-end (main) function for the tools for UEFI-related 1908initialization. 1909 1910The initial deployment of this support is the AcpiDump utility executing 1911as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit"). 1912Current environments supported are Linux/Unix. MSVC generation is not 1913supported at this time. See the generate/efi/README file for build 1914instructions. Lv Zheng. 1915 1916Future plans include porting the AcpiExec utility to execute natively on 1917the platform with I/O and memory access. This will allow viewing/dump of 1918the platform namespace and native execution of ACPI control methods that 1919access the actual hardware. To fully implement this support, the OSL 1920functions below must be implemented with UEFI interfaces. Any community 1921help in the implementation of these functions would be appreciated: 1922 AcpiOsReadPort 1923 AcpiOsWritePort 1924 AcpiOsReadMemory 1925 AcpiOsWriteMemory 1926 AcpiOsReadPciConfiguration 1927 AcpiOsWritePciConfiguration 1928 1929Restructured and standardized the C library configuration for ACPICA, 1930resulting in the various configuration options below. This includes a 1931global restructuring of the compiler-dependent and platform-dependent 1932include files. These changes may affect the existing platform-dependent 1933configuration files on some hosts. Lv Zheng. 1934 1935The current C library configuration options appear below. For any issues, 1936it may be helpful to examine the existing compiler-dependent and 1937platform-dependent files as examples. Lv Zheng. 1938 19391) Linux kernel: 1940 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 1941library. 1942 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 19432) Unix/Windows/BSD applications: 1944 ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C 1945library. 1946 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 19473) UEFI applications: 1948 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 1949library. 1950 ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library. 19514) UEFI applications (EDK2/StdLib): 1952 ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library. 1953 ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library. 1954 1955 1956AML interpreter: "module-level code" support. Allows for execution of so- 1957called "executable" AML code (math/logical operations, etc.) outside of 1958control methods not just at the module level (top level) but also within 1959any scope declared outside of a control method - Scope{}, Device{}, 1960Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng. 1961 1962Simplified the configuration of the "maximum AML loops" global option by 1963adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be 1964modified at runtime. 1965 1966 1967Example Code and Data Size: These are the sizes for the OS-independent 1968acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1969debug version of the code includes the debug output trace mechanism and 1970has a much larger code and data size. 1971 1972 Current Release: 1973 Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total 1974 Debug Version: 199.0K Code, 81.8K Data, 280.8K Total 1975 1976 19772) iASL Compiler/Disassembler and Tools: 1978 1979iASL: Add full support for the RASF ACPI table (RAS Features Table). 1980Includes disassembler, data table compiler, and header support. 1981 1982iASL Expand "module-level code" support. Allows for 1983compilation/disassembly of so-called "executable" AML code (math/logical 1984operations, etc.) outside of control methods not just at the module level 1985(top level) but also within any scope declared outside of a control 1986method - Scope{}, Device{}, Processor{}, PowerResource{}, and 1987ThermalZone{}. 1988 1989AcpiDump: Added support for dumping all SSDTs on newer versions of 1990Windows. These tables are now easily available -- SSDTs are not available 1991through the registry on older versions. 1992 1993---------------------------------------- 199427 May 2016. Summary of changes for version 20160527: 1995 1996 19971) ACPICA kernel-resident subsystem: 1998 1999Temporarily reverted the new arbitrary bit length/alignment support in 2000AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been 2001a number of regressions with the new code that need to be fully resolved 2002and tested before this support can be finally integrated into ACPICA. 2003Apologies for any inconveniences these issues may have caused. 2004 2005The ACPI message macros are not configurable (ACPI_MSG_ERROR, 2006ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR, 2007and ACPI_MSG_BIOS_WARNING). Lv Zheng. 2008 2009Fixed a couple of GCC warnings associated with the use of the -Wcast-qual 2010option. Adds a new return macro, return_STR. Junk-uk Kim. 2011 2012Example Code and Data Size: These are the sizes for the OS-independent 2013acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2014debug version of the code includes the debug output trace mechanism and 2015has a much larger code and data size. 2016 2017 Current Release: 2018 Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total 2019 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 2020 Previous Release: 2021 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 2022 Debug Version: 200.9K Code, 82.2K Data, 283.1K Total 2023 2024---------------------------------------- 202522 April 2016. Summary of changes for version 20160422: 2026 20271) ACPICA kernel-resident subsystem: 2028 2029Fixed a regression in the GAS (generic address structure) arbitrary bit 2030support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior 2031and incorrect return values. Lv Zheng. ACPICA BZ 1270. 2032 2033ACPI 6.0: Added support for new/renamed resource macros. One new argument 2034was added to each of these macros, and the original name has been 2035deprecated. The AML disassembler will always disassemble to the new 2036names. Support for the new macros was added to iASL, disassembler, 2037resource manager, and the acpihelp utility. ACPICA BZ 1274. 2038 2039 I2cSerialBus -> I2cSerialBusV2 2040 SpiSerialBus -> SpiSerialBusV2 2041 UartSerialBus -> UartSerialBusV2 2042 2043ACPI 6.0: Added support for a new integer field that was appended to the 2044package object returned by the _BIX method. This adds iASL compile-time 2045and AML runtime error checking. ACPICA BZ 1273. 2046 2047ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm 2048Subspace Type2" (Headers, Disassembler, and data table compiler). 2049 2050Example Code and Data Size: These are the sizes for the OS-independent 2051acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2052debug version of the code includes the debug output trace mechanism and 2053has a much larger code and data size. 2054 2055 Current Release: 2056 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 2057 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 2058 Previous Release: 2059 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 2060 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 2061 2062 20632) iASL Compiler/Disassembler and Tools: 2064 2065iASL: Implemented an ASL grammar extension to allow/enable executable 2066"module-level code" to be created and executed under the various 2067operators that create new scopes. This type of AML code is already 2068supported in all known AML interpreters, and the grammar change will 2069appear in the next version of the ACPI specification. Simplifies the 2070conditional runtime creation of named objects under these object types: 2071 2072 Device 2073 PowerResource 2074 Processor 2075 Scope 2076 ThermalZone 2077 2078iASL: Implemented a new ASL extension, a "For" loop macro to add greater 2079ease-of-use to the ASL language. The syntax is similar to the 2080corresponding C operator, and is implemented with the existing AML While 2081opcode -- thus requiring no changes to existing AML interpreters. 2082 2083 For (Initialize, Predicate, Update) {TermList} 2084 2085Grammar: 2086 ForTerm := 2087 For ( 2088 Initializer // Nothing | TermArg => ComputationalData 2089 Predicate // Nothing | TermArg => ComputationalData 2090 Update // Nothing | TermArg => ComputationalData 2091 ) {TermList} 2092 2093 2094iASL: The _HID/_ADR detection and validation has been enhanced to search 2095under conditionals in order to allow these objects to be conditionally 2096created at runtime. 2097 2098iASL: Fixed several issues with the constant folding feature. The 2099improvement allows better detection and resolution of statements that can 2100be folded at compile time. ACPICA BZ 1266. 2101 2102iASL/Disassembler: Fixed a couple issues with the Else{If{}...} 2103conversion to the ASL ElseIf operator where incorrect ASL code could be 2104generated. 2105 2106iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where 2107sometimes an extra (and extraneous) set of parentheses were emitted for 2108some combinations of operators. Although this did not cause any problems 2109with recompilation of the disassembled code, it made the code more 2110difficult to read. David Box. ACPICA BZ 1231. 2111 2112iASL: Changed to ignore the unreferenced detection for predefined names 2113of resource descriptor elements, when the resource descriptor is 2114created/defined within a control method. 2115 2116iASL: Disassembler: Fix a possible fault with externally declared Buffer 2117objects. 2118 2119---------------------------------------- 212018 March 2016. Summary of changes for version 20160318: 2121 21221) ACPICA kernel-resident subsystem: 2123 2124Added support for arbitrary bit lengths and bit offsets for registers 2125defined by the Generic Address Structure. Previously, only aligned bit 2126lengths of 8/16/32/64 were supported. This was sufficient for many years, 2127but recently some machines have been seen that require arbitrary bit- 2128level support. ACPICA BZ 1240. Lv Zheng. 2129 2130Fixed an issue where the \_SB._INI method sometimes must be evaluated 2131before any _REG methods are evaluated. Lv Zheng. 2132 2133Implemented several changes related to ACPI table support 2134(Headers/Disassembler/TableCompiler): 2135NFIT: For ACPI 6.1, updated to add some additional new fields and 2136constants. 2137FADT: Updated a warning message and set compliance to ACPI 6.1 (Version 21386). 2139DMAR: Added new constants per the 10/2014 DMAR spec. 2140IORT: Added new subtable per the 10/2015 IORT spec. 2141HEST: For ACPI 6.1, added new constants and new subtable. 2142DBG2: Added new constants per the 12/2015 DBG2 spec. 2143FPDT: Fixed several incorrect fields, add the FPDT boot record structure. 2144ACPICA BZ 1249. 2145ERST/EINJ: Updated disassembler with new "Execute Timings" actions. 2146 2147Updated header support for the DMAR table to match the current version of 2148the related spec. 2149 2150Added extensions to the ASL Concatenate operator to allow any ACPI object 2151to be passed as an operand. Any object other than Integer/String/Buffer 2152simply returns a string containing the object type. This extends the 2153usefulness of the Printf macros. Previously, Concatenate would abort the 2154control method if a non-data object was encountered. 2155 2156ACPICA source code: Deployed the C "const" keyword across the source code 2157where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD). 2158 2159Example Code and Data Size: These are the sizes for the OS-independent 2160acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2161debug version of the code includes the debug output trace mechanism and 2162has a much larger code and data size. 2163 2164 Current Release: 2165 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 2166 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 2167 Previous Release: 2168 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 2169 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 2170 2171 21722) iASL Compiler/Disassembler and Tools: 2173 2174iASL/Disassembler: Improved the heuristic used to determine the number of 2175arguments for an externally defined control method (a method in another 2176table). Although this is an improvement, there is no deterministic way to 2177"guess" the number of method arguments. Only the ACPI 6.0 External opcode 2178will completely solve this problem as it is deployed (automatically) in 2179newer BIOS code. 2180 2181iASL/Disassembler: Fixed an ordering issue for emitted External() ASL 2182statements that could cause errors when the disassembled file is 2183compiled. ACPICA BZ 1243. David Box. 2184 2185iASL: Fixed a regression caused by the merger of the two versions of the 2186local strtoul64. Because of a dependency on a global variable, strtoul64 2187could return an error for integers greater than a 32-bit value. ACPICA BZ 21881260. 2189 2190iASL: Fixed a regression where a fault could occur for an ASL Return 2191statement if it invokes a control method that is not resolved. ACPICA BZ 21921264. 2193 2194AcpiXtract: Improved input file validation: detection of binary files and 2195non-acpidump text files. 2196 2197---------------------------------------- 219812 February 2016. Summary of changes for version 20160212: 2199 22001) ACPICA kernel-resident subsystem: 2201 2202Implemented full support for the ACPI 6.1 specification (released in 2203January). This version of the specification is available at: 2204http://www.uefi.org/specifications 2205 2206Only a relatively small number of changes were required in ACPICA to 2207support ACPI 6.1, in these areas: 2208- New predefined names 2209- New _HID values 2210- A new subtable for HEST 2211- A few other header changes for new values 2212 2213Ensure \_SB_._INI is executed before any _REG methods are executed. There 2214appears to be existing BIOS code that relies on this behavior. Lv Zheng. 2215 2216Reverted a change made in version 20151218 which enabled method 2217invocations to be targets of various ASL operators (SuperName and Target 2218grammar elements). While the new behavior is supported by the ACPI 2219specification, other AML interpreters do not support this behavior and 2220never will. The ACPI specification will be updated for ACPI 6.2 to remove 2221this support. Therefore, the change was reverted to the original ACPICA 2222behavior. 2223 2224ACPICA now supports the GCC 6 compiler. 2225 2226Current Release: (Note: build changes increased sizes) 2227 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 2228 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 2229Previous Release: 2230 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 2231 Debug Version: 200.4K Code, 81.9K Data, 282.3K Total 2232 2233 22342) iASL Compiler/Disassembler and Tools: 2235 2236Completed full support for the ACPI 6.0 External() AML opcode. The 2237compiler emits an external AML opcode for each ASL External statement. 2238This opcode is used by the disassembler to assist with the disassembly of 2239external control methods by specifying the required number of arguments 2240for the method. AML interpreters do not use this opcode. To ensure that 2241interpreters do not even see the opcode, a block of one or more external 2242opcodes is surrounded by an "If(0)" construct. As this feature becomes 2243commonly deployed in BIOS code, the ability of disassemblers to correctly 2244disassemble AML code will be greatly improved. David Box. 2245 2246iASL: Implemented support for an optional cross-reference output file. 2247The -lx option will create a the cross-reference file with the suffix 2248"xrf". Three different types of cross-reference are created in this file: 2249- List of object references made from within each control method 2250- Invocation (caller) list for each user-defined control method 2251- List of references to each non-method object in the namespace 2252 2253iASL: Method invocations as ASL Target operands are now disallowed and 2254flagged as errors in preparation for ACPI 6.2 (see the description of the 2255problem above). 2256 2257---------------------------------------- 22588 January 2016. Summary of changes for version 20160108: 2259 22601) ACPICA kernel-resident subsystem: 2261 2262Updated all ACPICA copyrights and signons to 2016: Added the 2016 2263copyright to all source code module headers and utility/tool signons. 2264This includes the standard Linux dual-license header. This affects 2265virtually every file in the ACPICA core subsystem, iASL compiler, all 2266ACPICA utilities, and the ACPICA test suite. 2267 2268Fixed a regression introduced in version 20151218 concerning the 2269execution of so-called module-level ASL/AML code. Namespace objects 2270created under a module-level If() construct were not properly/fully 2271entered into the namespace and could cause an interpreter fault when 2272accessed. 2273 2274Example Code and Data Size: These are the sizes for the OS-independent 2275acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2276debug version of the code includes the debug output trace mechanism and 2277has a much larger code and data size. 2278 2279Current Release: 2280 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 2281 Debug Version: 200.4K Code, 81.9K Data, 282.4K Total 2282 Previous Release: 2283 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 2284 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 2285 2286 22872) iASL Compiler/Disassembler and Tools: 2288 2289Fixed a problem with the compilation of the GpioIo and GpioInt resource 2290descriptors. The _PIN field name was incorrectly defined to be an array 2291of 32-bit values, but the _PIN values are in fact 16 bits each. This 2292would cause incorrect bit width warnings when using Word (16-bit) fields 2293to access the descriptors. 2294 2295 2296---------------------------------------- 229718 December 2015. Summary of changes for version 20151218: 2298 22991) ACPICA kernel-resident subsystem: 2300 2301Implemented per-AML-table execution of "module-level code" as individual 2302ACPI tables are loaded into the namespace during ACPICA initialization. 2303In other words, any module-level code within an AML table is executed 2304immediately after the table is loaded, instead of batched and executed 2305after all of the tables have been loaded. This provides compatibility 2306with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng, 2307David Box. 2308 2309To fully support the feature above, the default operation region handlers 2310for the SystemMemory, SystemIO, and PCI_Config address spaces are now 2311installed before any ACPI tables are loaded. This enables module-level 2312code to access these address spaces during the table load and module- 2313level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David 2314Box. 2315 2316Implemented several changes to the internal _REG support in conjunction 2317with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples 2318utilities for the changes above. Although these tools were changed, host 2319operating systems that simply use the default handlers for SystemMemory, 2320SystemIO, and PCI_Config spaces should not require any update. Lv Zheng. 2321 2322For example, in the code below, DEV1 is conditionally added to the 2323namespace by the DSDT via module-level code that accesses an operation 2324region. The SSDT references DEV1 via the Scope operator. DEV1 must be 2325created immediately after the DSDT is loaded in order for the SSDT to 2326successfully reference DEV1. Previously, this code would cause an 2327AE_NOT_EXIST exception during the load of the SSDT. Now, this code is 2328fully supported by ACPICA. 2329 2330 DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1) 2331 { 2332 OperationRegion (OPR1, SystemMemory, 0x400, 32) 2333 Field (OPR1, AnyAcc, NoLock, Preserve) 2334 { 2335 FLD1, 1 2336 } 2337 If (FLD1) 2338 { 2339 Device (\DEV1) 2340 { 2341 } 2342 } 2343 } 2344 DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1) 2345 { 2346 External (\DEV1, DeviceObj) 2347 Scope (\DEV1) 2348 { 2349 } 2350 } 2351 2352Fixed an AML interpreter problem where control method invocations were 2353not handled correctly when the invocation was itself a SuperName argument 2354to another ASL operator. In these cases, the method was not invoked. 2355ACPICA BZ 1002. Affects the following ASL operators that have a SuperName 2356argument: 2357 Store 2358 Acquire, Wait 2359 CondRefOf, RefOf 2360 Decrement, Increment 2361 Load, Unload 2362 Notify 2363 Signal, Release, Reset 2364 SizeOf 2365 2366Implemented automatic String-to-ObjectReference conversion support for 2367packages returned by predefined names (such as _DEP). A common BIOS error 2368is to add double quotes around an ObjectReference namepath, which turns 2369the reference into an unexpected string object. This support detects the 2370problem and corrects it before the package is returned to the caller that 2371invoked the method. Lv Zheng. 2372 2373Implemented extensions to the Concatenate operator. Concatenate now 2374accepts any type of object, it is not restricted to simply 2375Integer/String/Buffer. For objects other than these 3 basic data types, 2376the argument is treated as a string containing the name of the object 2377type. This expands the utility of Concatenate and the Printf/Fprintf 2378macros. ACPICA BZ 1222. 2379 2380Cleaned up the output of the ASL Debug object. The timer() value is now 2381optional and no longer emitted by default. Also, the basic data types of 2382Integer/String/Buffer are simply emitted as their values, without a data 2383type string -- since the data type is obvious from the output. ACPICA BZ 23841221. 2385 2386Example Code and Data Size: These are the sizes for the OS-independent 2387acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2388debug version of the code includes the debug output trace mechanism and 2389has a much larger code and data size. 2390 2391 Current Release: 2392 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 2393 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 2394 Previous Release: 2395 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 2396 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 2397 2398 23992) iASL Compiler/Disassembler and Tools: 2400 2401iASL: Fixed some issues with the ASL Include() operator. This operator 2402was incorrectly defined in the iASL parser rules, causing a new scope to 2403be opened for the code within the include file. This could lead to 2404several issues, including allowing ASL code that is technically illegal 2405and not supported by AML interpreters. Note, this does not affect the 2406related #include preprocessor operator. ACPICA BZ 1212. 2407 2408iASL/Disassembler: Implemented support for the ASL ElseIf operator. This 2409operator is essentially an ASL macro since there is no AML opcode 2410associated with it. The code emitted by the iASL compiler for ElseIf is 2411an Else opcode followed immediately by an If opcode. The disassembler 2412will now emit an ElseIf if it finds an Else immediately followed by an 2413If. This simplifies the decoded ASL, especially for deeply nested 2414If..Else and large Switch constructs. Thus, the disassembled code more 2415closely follows the original source ASL. ACPICA BZ 1211. Example: 2416 2417 Old disassembly: 2418 Else 2419 { 2420 If (Arg0 == 0x02) 2421 { 2422 Local0 = 0x05 2423 } 2424 } 2425 2426 New disassembly: 2427 ElseIf (Arg0 == 0x02) 2428 { 2429 Local0 = 0x05 2430 } 2431 2432AcpiExec: Added support for the new module level code behavior and the 2433early region installation. This required a small change to the 2434initialization, since AcpiExec must install its own operation region 2435handlers. 2436 2437AcpiExec: Added support to make the debug object timer optional. Default 2438is timer disabled. This cleans up the debug object output -- the timer 2439data is rarely used. 2440 2441AcpiExec: Multiple ACPI tables are now loaded in the order that they 2442appear on the command line. This can be important when there are 2443interdependencies/references between the tables. 2444 2445iASL/Templates. Add support to generate template files with multiple 2446SSDTs within a single output file. Also added ommand line support to 2447specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ 24481223, 1225. 2449 2450 2451---------------------------------------- 245224 November 2015. Summary of changes for version 20151124: 2453 24541) ACPICA kernel-resident subsystem: 2455 2456Fixed a possible regression for a previous update to FADT handling. The 2457FADT no longer has a fixed table ID, causing some issues with code that 2458was hardwired to a specific ID. Lv Zheng. 2459 2460Fixed a problem where the method auto-serialization could interfere with 2461the current SyncLevel. This change makes the auto-serialization support 2462transparent to the SyncLevel support and management. 2463 2464Removed support for the _SUB predefined name in AcpiGetObjectInfo. This 2465interface is intended for early access to the namespace during the 2466initial namespace device discovery walk. The _SUB method has been seen to 2467access operation regions in some cases, causing errors because the 2468operation regions are not fully initialized. 2469 2470AML Debugger: Fixed some issues with the terminate/quit/exit commands 2471that can cause faults. Lv Zheng. 2472 2473AML Debugger: Add thread ID support so that single-step mode only applies 2474to the AML Debugger thread. This prevents runtime errors within some 2475kernels. Lv Zheng. 2476 2477Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx 2478methods that are invoked by this interface are optional, removed warnings 2479emitted for the case where one or more of these methods do not exist. 2480ACPICA BZ 1208, original change by Prarit Bhargava. 2481 2482Made a major pass through the entire ACPICA source code base to 2483standardize formatting that has diverged a bit over time. There are no 2484functional changes, but this will of course cause quite a few code 2485differences from the previous ACPICA release. 2486 2487Example Code and Data Size: These are the sizes for the OS-independent 2488acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2489debug version of the code includes the debug output trace mechanism and 2490has a much larger code and data size. 2491 2492 Current Release: 2493 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 2494 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 2495 Previous Release: 2496 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 2497 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 2498 2499 25002) iASL Compiler/Disassembler and Tools: 2501 2502iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple 2503definition blocks within a single ASL file and the resulting AML file. 2504Support for this type of file was also added to the various tools that 2505use binary AML files: acpiexec, acpixtract, and the AML disassembler. The 2506example code below shows two definition blocks within the same file: 2507 2508 DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template", 25090x12345678) 2510 { 2511 } 2512 DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01) 2513 { 2514 } 2515 2516iASL: Enhanced typechecking for the Name() operator. All expressions for 2517the value of the named object must be reduced/folded to a single constant 2518at compile time, as per the ACPI specification (the AML definition of 2519Name()). 2520 2521iASL: Fixed some code indentation issues for the -ic and -ia options (C 2522and assembly headers). Now all emitted code correctly begins in column 1. 2523 2524iASL: Added an error message for an attempt to open a Scope() on an 2525object defined in an SSDT. The DSDT is always loaded into the namespace 2526first, so any attempt to open a Scope on an SSDT object will fail at 2527runtime. 2528 2529 2530---------------------------------------- 253130 September 2015. Summary of changes for version 20150930: 2532 25331) ACPICA kernel-resident subsystem: 2534 2535Debugger: Implemented several changes and bug fixes to assist support for 2536the in-kernel version of the AML debugger. Lv Zheng. 2537- Fix the "predefined" command for in-kernel debugger. 2538- Do not enter debug command loop for the help and version commands. 2539- Disallow "execute" command during execution/single-step of a method. 2540 2541Interpreter: Updated runtime typechecking for all operators that have 2542target operands. The operand is resolved and validated that it is legal. 2543For example, the target cannot be a non-data object such as a Device, 2544Mutex, ThermalZone, etc., as per the ACPI specification. 2545 2546Debugger: Fixed the double-mutex user I/O handshake to work when local 2547deadlock detection is enabled. 2548 2549Debugger: limited display of method locals and arguments (LocalX and 2550ArgX) to only those that have actually been initialized. This prevents 2551lines of extraneous output. 2552 2553Updated the definition of the NFIT table to correct the bit polarity of 2554one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED 2555 2556Example Code and Data Size: These are the sizes for the OS-independent 2557acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2558debug version of the code includes the debug output trace mechanism and 2559has a much larger code and data size. 2560 2561 Current Release: 2562 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 2563 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 2564 Previous Release: 2565 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 2566 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 2567 2568 25692) iASL Compiler/Disassembler and Tools: 2570 2571iASL: Improved the compile-time typechecking for operands of many of the 2572ASL operators: 2573 2574-- Added an option to disable compiler operand/operator typechecking (- 2575ot). 2576 2577-- For the following operators, the TermArg operands are now validated 2578when possible to be Integer data objects: BankField, OperationRegion, 2579DataTableRegion, Buffer, and Package. 2580 2581-- Store (Source, Target): Both the source and target operands are 2582resolved and checked that the operands are both legal. For example, 2583neither operand can be a non-data object such as a Device, Mutex, 2584ThermalZone, etc. Note, as per the ACPI specification, the CopyObject 2585operator can be used to store an object to any type of target object. 2586 2587-- Store (Source, Target): If the source is a Package object, the target 2588must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target 2589is a Package, the source must also be a Package. 2590 2591-- Store (Source, Target): A warning is issued if the source and target 2592resolve to the identical named object. 2593 2594-- Store (Source, <method invocation>): An error is generated for the 2595target method invocation, as this construct is not supported by the AML 2596interpreter. 2597 2598-- For all ASL math and logic operators, the target operand must be a 2599data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This 2600includes the function return value also. 2601 2602-- External declarations are also included in the typechecking where 2603possible. External objects defined using the UnknownObj keyword cannot be 2604typechecked, however. 2605 2606iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index 2607operator: 2608- Legacy code: Index(PKG1, 3) 2609- New ASL+ code: PKG1[3] 2610This completes the ACPI 6.0 ASL+ support as it was the only operator not 2611supported. 2612 2613iASL: Fixed the file suffix for the preprocessor output file (.i). Two 2614spaces were inadvertently appended to the filename, causing file access 2615and deletion problems on some systems. 2616 2617ASL Test Suite (ASLTS): Updated the master makefile to generate all 2618possible compiler output files when building the test suite -- thus 2619exercising these features of the compiler. These files are automatically 2620deleted when the test suite exits. 2621 2622 2623---------------------------------------- 262418 August 2015. Summary of changes for version 20150818: 2625 26261) ACPICA kernel-resident subsystem: 2627 2628Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv 2629Zheng. ACPICA BZ 1186. 2630 2631Completed development to ensure that the ACPICA Disassembler and Debugger 2632are fully standalone components of ACPICA. Removed cross-component 2633dependences. Lv Zheng. 2634 2635The max-number-of-AML-loops is now runtime configurable (previously was 2636compile-time only). This is essentially a loop timeout to force-abort 2637infinite AML loops. ACPCIA BZ 1192. 2638 2639Debugger: Cleanup output to dump ACPI names and namepaths without any 2640trailing underscores. Lv Zheng. ACPICA BZ 1135. 2641 2642Removed unnecessary conditional compilations across the Debugger and 2643Disassembler components where entire modules could be left uncompiled. 2644 2645The aapits test is deprecated and has been removed from the ACPICA git 2646tree. The test has never been completed and has not been maintained, thus 2647becoming rather useless. ACPICA BZ 1015, 794. 2648 2649A batch of small changes to close bugzilla and other reports: 2650- Remove duplicate code for _PLD processing. ACPICA BZ 1176. 2651- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185. 2652- iASL: Support POSIX yacc again in makefile. Jung-uk Kim. 2653- ACPI table support: general cleanup and simplification. Lv Zheng, Bob 2654Moore. 2655- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable. 2656ACPICA BZ 1184. 2657- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML 2658operators. 2659- Debugger: Split debugger initialization/termination interfaces. Lv 2660Zheng. 2661- AcpiExec: Emit OemTableId for SSDTs during the load phase for table 2662identification. 2663- AcpiExec: Add debug message during _REG method phase during table 2664load/init. 2665- AcpiNames: Fix a regression where some output was missing and no longer 2666emitted. 2667- Debugger: General cleanup and simplification. Lv Zheng. 2668- Disassembler: Cleanup use of several global option variables. Lv Zheng. 2669 2670Example Code and Data Size: These are the sizes for the OS-independent 2671acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2672debug version of the code includes the debug output trace mechanism and 2673has a much larger code and data size. 2674 2675 Current Release: 2676 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 2677 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 2678 Previous Release: 2679 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 2680 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 2681 2682 26832) iASL Compiler/Disassembler and Tools: 2684 2685AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT 2686were not handled properly and caused load errors. Now, properly invoke 2687and use the ACPICA auto-reallocate mechanism for ACPI table data 2688structures. ACPICA BZ 1188 2689 2690AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA 2691BZ 1190. 2692 2693AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For 2694AcpiExec, this means that no control methods (like _REG/_INI/_STA) are 2695executed during initialization. ACPICA BZ 1187, 1189. 2696 2697iASL/Disassembler: Implemented a prototype "listing" mode that emits AML 2698that corresponds to each disassembled ASL statement, to simplify 2699debugging. ACPICA BZ 1191. 2700 2701Debugger: Add option to the "objects" command to display a summary of the 2702current namespace objects (Object type and count). This is displayed if 2703the command is entered with no arguments. 2704 2705AcpiNames: Add -x option to specify debug level, similar to AcpiExec. 2706 2707 2708---------------------------------------- 270917 July 2015. Summary of changes for version 20150717: 2710 27111) ACPICA kernel-resident subsystem: 2712 2713Improved the partitioning between the Debugger and Disassembler 2714components. This allows the Debugger to be used standalone within kernel 2715code without the Disassembler (which is used for single stepping also). 2716This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng. 2717 2718Debugger: Implemented a new command to trace the execution of control 2719methods (Trace). This is especially useful for the in-kernel version of 2720the debugger when file I/O may not be available for method trace output. 2721See the ACPICA reference for more information. Lv Zheng. 2722 2723Moved all C library prototypes (used for the local versions of these 2724functions when requested) to a new header, acclib.h 2725Cleaned up the use of non-ANSI C library functions. These functions are 2726implemented locally in ACPICA. Moved all such functions to a common 2727source file, utnonansi.c 2728 2729Debugger: Fixed a problem with the "!!" command (get last command 2730executed) where the debugger could enter an infinite loop and eventually 2731crash. 2732 2733Removed the use of local macros that were used for some of the standard C 2734library functions to automatically cast input parameters. This mostly 2735affected the is* functions where the input parameter is defined to be an 2736int. This required a few modifications to the main ACPICA source code to 2737provide casting for these functions and eliminate possible compiler 2738warnings for these parameters. 2739 2740Across the source code, added additional status/error checking to resolve 2741issues discovered by static source code analysis tools such as Coverity. 2742 2743Example Code and Data Size: These are the sizes for the OS-independent 2744acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2745debug version of the code includes the debug output trace mechanism and 2746has a much larger code and data size. 2747 2748 Current Release: 2749 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 2750 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 2751 Previous Release: 2752 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 2753 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 2754 2755 27562) iASL Compiler/Disassembler and Tools: 2757 2758iASL: Fixed a regression where the device map file feature no longer 2759worked properly when used in conjunction with the disassembler. It only 2760worked properly with the compiler itself. 2761 2762iASL: Implemented a new warning for method LocalX variables that are set 2763but never used (similar to a C compiler such as gcc). This also applies 2764to ArgX variables that are not defined by the parent method, and are 2765instead (legally) used as local variables. 2766 2767iASL/Preprocessor: Finished the pass-through of line numbers from the 2768preprocessor to the compiler. This ensures that compiler errors/warnings 2769have the correct original line numbers and filenames, regardless of any 2770#include files. 2771 2772iASL/Preprocessor: Fixed a couple of issues with comment handling and the 2773pass-through of comments to the preprocessor output file (which becomes 2774the compiler input file). Also fixed a problem with // comments that 2775appear after a math expression. 2776 2777iASL: Added support for the TCPA server table to the table compiler and 2778template generator. (The client table was already previously supported) 2779 2780iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to 2781identify the iASL compiler. 2782 2783Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined 2784multiple times. The new names are ACPI_SIGN_NEGATIVE and 2785ACPI_SIGN_POSITIVE. 2786 2787AcpiHelp: Update to expand help messages for the iASL preprocessor 2788directives. 2789 2790 2791---------------------------------------- 279219 June 2015. Summary of changes for version 20150619: 2793 2794Two regressions in version 20150616 have been addressed: 2795 2796Fixes some problems/issues with the C library macro removal (ACPI_STRLEN, 2797etc.) This update changes ACPICA to only use the standard headers for 2798functions, or the prototypes for the local versions of the C library 2799functions. Across the source code, this required some additional casts 2800for some Clib invocations for portability. Moved all local prototypes to 2801a new file, acclib.h 2802 2803Fixes several problems with recent changes to the handling of the FACS 2804table that could cause some systems not to boot. 2805 2806 2807---------------------------------------- 280816 June 2015. Summary of changes for version 20150616: 2809 2810 28111) ACPICA kernel-resident subsystem: 2812 2813Across the entire ACPICA source code base, the various macros for the C 2814library functions (such as ACPI_STRLEN, etc.) have been removed and 2815replaced by the standard C library names (strlen, etc.) The original 2816purpose for these macros is no longer applicable. This simplification 2817reduces the number of macros used in the ACPICA source code 2818significantly, improving readability and maintainability. 2819 2820Implemented support for a new ACPI table, the OSDT. This table, the 2821"override" SDT, can be loaded directly by the host OS at boot time. It 2822enables the replacement of existing namespace objects that were installed 2823via the DSDT and/or SSDTs. The primary purpose for this is to replace 2824buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated 2825for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob 2826Moore. 2827 2828Added support for systems with (improperly) two FACS tables -- a "32-bit" 2829table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit 2830X field). This change will support both automatically. There continues to 2831be systems found with this issue. This support requires a change to the 2832AcpiSetFirmwareWakingVector interface. Also, a public global variable has 2833been added to allow the host to select which FACS is desired 2834(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more 2835details Lv Zheng. 2836 2837Added a new feature to allow for systems that do not contain an FACS. 2838Although this is already supported on hardware-reduced platforms, the 2839feature has been extended for all platforms. The reasoning is that we do 2840not want to abort the entire ACPICA initialization just because the 2841system is seriously buggy and has no FACS. 2842 2843Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were 2844not correctly transcribed from the ACPI specification in ACPICA version 284520150515. 2846 2847Implemented support for the _CLS object in the AcpiGetObjectInfo external 2848interface. 2849 2850Updated the definitions of the TCPA and TPM2 ACPI tables to the more 2851recent TCG ACPI Specification, December 14, 2014. Table disassembler and 2852compiler also updated. Note: The TCPA "server" table is not supported by 2853the disassembler/table-compiler at this time. 2854 2855ACPI 6.0: Added definitions for the new GIC version field in the MADT. 2856 2857Example Code and Data Size: These are the sizes for the OS-independent 2858acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2859debug version of the code includes the debug output trace mechanism and 2860has a much larger code and data size. 2861 2862 Current Release: 2863 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 2864 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 2865 Previous Release: 2866 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 2867 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 2868 2869 28702) iASL Compiler/Disassembler and Tools: 2871 2872Disassembler: Fixed a problem with the new symbolic operator disassembler 2873where incorrect ASL code could be emitted in some cases for the "non- 2874commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and 2875ShiftRight. The actual problem cases seem to be rather unusual in common 2876ASL code, however. David Box. 2877 2878Modified the linux version of acpidump to obtain ACPI tables from not 2879just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv 2880Zheng. 2881 2882iASL: Fixed a problem where the user preprocessor output file (.i) 2883contained extra data that was not expected. The compiler was using this 2884file as a temporary file and passed through #line directives in order to 2885keep compiler error messages in sync with the input file and line number 2886across multiple include files. The (.i) is no longer a temporary file as 2887the compiler uses a new, different file for the original purpose. 2888 2889iASL: Fixed a problem where comments within the original ASL source code 2890file were not passed through to the preprocessor output file, nor any 2891listing files. 2892 2893iASL: Fixed some issues for the handling of the "#include" preprocessor 2894directive and the similar (but not the same) "Include" ASL operator. 2895 2896iASL: Add support for the new OSDT in both the disassembler and compiler. 2897 2898iASL: Fixed a problem with the constant folding support where a Buffer 2899object could be incorrectly generated (incorrectly formed) during a 2900conversion to a Store() operator. 2901 2902AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new 2903description text for the _REV predefined name. _REV now permanently 2904returns 2, as per the ACPI 6.0 specification. 2905 2906Debugger: Enhanced the output of the Debug ASL object for references 2907produced by the Index operator. For Buffers and strings, only output the 2908actual byte pointed to by the index. For packages, only print the single 2909package element decoded by the index. Previously, the entire 2910buffer/string/package was emitted. 2911 2912iASL/Table-compiler: Fixed a regression where the "generic" data types 2913were no longer recognized, causing errors. 2914 2915 2916---------------------------------------- 291715 May 2015. Summary of changes for version 20150515: 2918 2919This release implements most of ACPI 6.0 as described below. 2920 29211) ACPICA kernel-resident subsystem: 2922 2923Implemented runtime argument checking and return value checking for all 2924new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI, 2925_MTL, _PRR, _RDI, _RST, _TFP, _TSN. 2926 2927Example Code and Data Size: These are the sizes for the OS-independent 2928acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2929debug version of the code includes the debug output trace mechanism and 2930has a much larger code and data size. 2931 2932 Current Release: 2933 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 2934 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 2935 Previous Release: 2936 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 2937 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 2938 2939 29402) iASL Compiler/Disassembler and Tools: 2941 2942iASL compiler: Added compile-time support for all new ACPI 6.0 predefined 2943names (argument count validation and return value typechecking.) 2944 2945iASL disassembler and table compiler: implemented support for all new 2946ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV. 2947 2948iASL disassembler and table compiler: Added ACPI 6.0 changes to existing 2949tables: FADT, MADT. 2950 2951iASL preprocessor: Added a new directive to enable inclusion of binary 2952blobs into ASL code. The new directive is #includebuffer. It takes a 2953binary file as input and emits a named ascii buffer object into the ASL 2954code. 2955 2956AcpiHelp: Added support for all new ACPI 6.0 predefined names. 2957 2958AcpiHelp: Added a new option, -d, to display all iASL preprocessor 2959directives. 2960 2961AcpiHelp: Added a new option, -t, to display all known/supported ACPI 2962tables. 2963 2964 2965---------------------------------------- 296610 April 2015. Summary of changes for version 20150410: 2967 2968Reverted a change introduced in version 20150408 that caused 2969a regression in the disassembler where incorrect operator 2970symbols could be emitted. 2971 2972 2973---------------------------------------- 297408 April 2015. Summary of changes for version 20150408: 2975 2976 29771) ACPICA kernel-resident subsystem: 2978 2979Permanently set the return value for the _REV predefined name. It now 2980returns 2 (was 5). This matches other ACPI implementations. _REV will be 2981deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2 2982for ACPI 2.0 and later. It should never be used to differentiate or 2983identify operating systems. 2984 2985Added the "Windows 2015" string to the _OSI support. ACPICA will now 2986return TRUE to a query with this string. 2987 2988Fixed several issues with the local version of the printf function. 2989 2990Added the C99 compiler option (-std=c99) to the Unix makefiles. 2991 2992 Current Release: 2993 Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total 2994 Debug Version: 195.2K Code, 80.7K Data, 275.9K Total 2995 Previous Release: 2996 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 2997 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 2998 2999 30002) iASL Compiler/Disassembler and Tools: 3001 3002iASL: Implemented an enhancement to the constant folding feature to 3003transform the parse tree to a simple Store operation whenever possible: 3004 Add (2, 3, X) ==> is converted to: Store (5, X) 3005 X = 2 + 3 ==> is converted to: Store (5, X) 3006 3007Updated support for the SLIC table (Software Licensing Description Table) 3008in both the Data Table compiler and the disassembler. The SLIC table 3009support now conforms to "Microsoft Software Licensing Tables (SLIC and 3010MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data 3011following the ACPI header is now defined to be "Proprietary Data", and as 3012such, can only be entered or displayed as a hex data block. 3013 3014Implemented full support for the MSDM table as described in the document 3015above. Note: The format of MSDM is similar to SLIC. Any MSDM data 3016following the ACPI header is defined to be "Proprietary Data", and can 3017only be entered or displayed as a hex data block. 3018 3019Implemented the -Pn option for the iASL Table Compiler (was only 3020implemented for the ASL compiler). This option disables the iASL 3021preprocessor. 3022 3023Disassembler: For disassembly of Data Tables, added a comment field 3024around the Ascii equivalent data that is emitted as part of the "Raw 3025Table Data" block. This prevents the iASL Preprocessor from possible 3026confusion if/when the table is compiled. 3027 3028Disassembler: Added an option (-df) to force the disassembler to assume 3029that the table being disassembled contains valid AML. This feature is 3030useful for disassembling AML files that contain ACPI signatures other 3031than DSDT or SSDT (such as OEMx or other signatures). 3032 3033Changes for the EFI version of the tools: 30341) Fixed a build error/issue 30352) Fixed a cast warning 3036 3037iASL: Fixed a path issue with the __FILE__ operator by making the 3038directory prefix optional within the internal SplitInputFilename 3039function. 3040 3041Debugger: Removed some unused global variables. 3042 3043Tests: Updated the makefile for proper generation of the AAPITS suite. 3044 3045 3046---------------------------------------- 304704 February 2015. Summary of changes for version 20150204: 3048 3049ACPICA kernel-resident subsystem: 3050 3051Updated all ACPICA copyrights and signons to 2014. Added the 2014 3052copyright to all module headers and signons, including the standard Linux 3053header. This affects virtually every file in the ACPICA core subsystem, 3054iASL compiler, all ACPICA utilities, and the test suites. 3055 3056Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues. 3057A raw gpe handling mechanism was created to allow better handling of GPE 3058storms that aren't easily managed by the normal handler. The raw handler 3059allows disabling/renabling of the the GPE so that interrupt storms can be 3060avoided in cases where events cannot be timely serviced. In this 3061scenario, handlers should use the AcpiSetGpe() API to disable/enable the 3062GPE. This API will leave the reference counts undisturbed, thereby 3063preventing unintentional clearing of the GPE when the intent in only to 3064temporarily disable it. Raw handlers allow enabling and disabling of a 3065GPE by removing GPE register locking. As such, raw handlers much provide 3066their own locks while using GPE API's to protect access to GPE data 3067structures. 3068Lv Zheng 3069 3070Events: Always modify GPE registers under the GPE lock. 3071Applies GPE lock around AcpiFinishGpe() to protect access to GPE register 3072values. Reported as bug by joe.liu@apple.com. 3073 3074Unix makefiles: Separate option to disable optimizations and 3075_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the 3076NOOPT disable option and creates a separate flag (NOFORTIFY) for this 3077purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined 3078errors when building ACPICA. This allows disabling the option without 3079also having to disable optimazations. 3080David Box 3081 3082 Current Release: 3083 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 3084 Debug Version: 199.2K Code, 82.4K Data, 281.6K Total 3085 3086-- 3087-------------------------------------- 308807 November 2014. Summary of changes for version 20141107: 3089 3090This release is available at https://acpica.org/downloads 3091 3092This release introduces and implements language extensions to ASL that 3093provide support for symbolic ("C-style") operators and expressions. These 3094language extensions are known collectively as ASL+. 3095 3096 30971) iASL Compiler/Disassembler and Tools: 3098 3099Disassembler: Fixed a problem with disassembly of the UartSerialBus 3100macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E. 3101Box. 3102 3103Disassembler: Fixed the Unicode macro support to add escape sequences. 3104All non-printable ASCII values are emitted as escape sequences, as well 3105as the standard escapes for quote and backslash. Ensures that the 3106disassembled macro can be correctly recompiled. 3107 3108iASL: Added Printf/Fprintf macros for formatted output. These macros are 3109translated to existing AML Concatenate and Store operations. Printf 3110writes to the ASL Debug object. Fprintf allows the specification of an 3111ASL name as the target. Only a single format specifier is required, %o, 3112since the AML interpreter dynamically converts objects to the required 3113type. David E. Box. 3114 3115 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 3116 (Concatenate (Concatenate (Concatenate ("", Arg0), 3117 ": Unexpected value for "), Arg1), ", "), Arg2), 3118 " at line "), Arg3), Debug) 3119 3120 (new) Printf ("%o: Unexpected value for %o, %o at line %o", 3121 Arg0, Arg1, Arg2, Arg3) 3122 3123 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 3124 ("", Arg1), ": "), Arg0), " Successful"), STR1) 3125 3126 (new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0) 3127 3128iASL: Added debug options (-bp, -bt) to dynamically prune levels of the 3129ASL parse tree before the AML code is generated. This allows blocks of 3130ASL code to be removed in order to help locate and identify problem 3131devices and/or code. David E. Box. 3132 3133AcpiExec: Added support (-fi) for an optional namespace object 3134initialization file. This file specifies initial values for namespace 3135objects as necessary for debugging and testing different ASL code paths 3136that may be taken as a result of BIOS options. 3137 3138 31392) Overview of symbolic operator support for ASL (ASL+) 3140------------------------------------------------------- 3141 3142As an extension to the ASL language, iASL implements support for symbolic 3143(C-style) operators for math and logical expressions. This can greatly 3144simplify ASL code as well as improve both readability and 3145maintainability. These language extensions can exist concurrently with 3146all legacy ASL code and expressions. 3147 3148The symbolic extensions are 100% compatible with existing AML 3149interpreters, since no new AML opcodes are created. To implement the 3150extensions, the iASL compiler transforms the symbolic expressions into 3151the legacy ASL/AML equivalents at compile time. 3152 3153Full symbolic expressions are supported, along with the standard C 3154precedence and associativity rules. 3155 3156Full disassembler support for the symbolic expressions is provided, and 3157creates an automatic migration path for existing ASL code to ASL+ code 3158via the disassembly process. By default, the disassembler now emits ASL+ 3159code with symbolic expressions. An option (-dl) is provided to force the 3160disassembler to emit legacy ASL code if desired. 3161 3162Below is the complete list of the currently supported symbolic operators 3163with examples. See the iASL User Guide for additional information. 3164 3165 3166ASL+ Syntax Legacy ASL Equivalent 3167----------- --------------------- 3168 3169 // Math operators 3170 3171Z = X + Y Add (X, Y, Z) 3172Z = X - Y Subtract (X, Y, Z) 3173Z = X * Y Multiply (X, Y, Z) 3174Z = X / Y Divide (X, Y, , Z) 3175Z = X % Y Mod (X, Y, Z) 3176Z = X << Y ShiftLeft (X, Y, Z) 3177Z = X >> Y ShiftRight (X, Y, Z) 3178Z = X & Y And (X, Y, Z) 3179Z = X | Y Or (X, Y, Z) 3180Z = X ^ Y Xor (X, Y, Z) 3181Z = ~X Not (X, Z) 3182X++ Increment (X) 3183X-- Decrement (X) 3184 3185 // Logical operators 3186 3187(X == Y) LEqual (X, Y) 3188(X != Y) LNotEqual (X, Y) 3189(X < Y) LLess (X, Y) 3190(X > Y) LGreater (X, Y) 3191(X <= Y) LLessEqual (X, Y) 3192(X >= Y) LGreaterEqual (X, Y) 3193(X && Y) LAnd (X, Y) 3194(X || Y) LOr (X, Y) 3195(!X) LNot (X) 3196 3197 // Assignment and compound assignment operations 3198 3199X = Y Store (Y, X) 3200X += Y Add (X, Y, X) 3201X -= Y Subtract (X, Y, X) 3202X *= Y Multiply (X, Y, X) 3203X /= Y Divide (X, Y, , X) 3204X %= Y Mod (X, Y, X) 3205X <<= Y ShiftLeft (X, Y, X) 3206X >>= Y ShiftRight (X, Y, X) 3207X &= Y And (X, Y, X) 3208X |= Y Or (X, Y, X) 3209X ^= Y Xor (X, Y, X) 3210 3211 32123) ASL+ Examples: 3213----------------- 3214 3215Legacy ASL: 3216 If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual ( 3217 And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 32180x03FB), 3219 0x02E0), LEqual (And (R540, 0x03FB), 0x02E0)))) 3220 { 3221 And (MEMB, 0xFFFFFFF0, SRMB) 3222 Store (MEMB, Local2) 3223 Store (PDBM, Local1) 3224 And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) 3225 Store (SRMB, MEMB) 3226 Or (PDBM, 0x02, PDBM) 3227 } 3228 3229ASL+ version: 3230 If (((R510 & 0x03FB) == 0x02E0) || 3231 ((R520 & 0x03FB) == 0x02E0) || 3232 ((R530 & 0x03FB) == 0x02E0) || 3233 ((R540 & 0x03FB) == 0x02E0)) 3234 { 3235 SRMB = (MEMB & 0xFFFFFFF0) 3236 Local2 = MEMB 3237 Local1 = PDBM 3238 PDBM &= 0xFFFFFFFFFFFFFFF9 3239 MEMB = SRMB 3240 PDBM |= 0x02 3241 } 3242 3243Legacy ASL: 3244 Store (0x1234, Local1) 3245 Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3) 3246 Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3) 3247 Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3) 3248 Store (Index (PKG1, 0x03), Local6) 3249 Store (Add (Local3, Local2), Debug) 3250 Add (Local1, 0x0F, Local2) 3251 Add (Local1, Multiply (Local2, Local3), Local2) 3252 Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3) 3253 3254ASL+ version: 3255 Local1 = 0x1234 3256 Local3 = (((Local1 + TEST) + 0x20) * Local2) 3257 Local3 = (Local2 * ((Local1 + TEST) + 0x20)) 3258 Local3 = (Local1 + (TEST + (0x20 * Local2))) 3259 Local6 = Index (PKG1, 0x03) 3260 Debug = (Local3 + Local2) 3261 Local2 = (Local1 + 0x0F) 3262 Local2 = (Local1 + (Local2 * Local3)) 3263 Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1)) 3264 3265 3266---------------------------------------- 326726 September 2014. Summary of changes for version 20140926: 3268 32691) ACPICA kernel-resident subsystem: 3270 3271Updated the GPIO operation region handler interface (GeneralPurposeIo). 3272In order to support GPIO Connection objects with multiple pins, along 3273with the related Field objects, the following changes to the interface 3274have been made: The Address is now defined to be the offset in bits of 3275the field unit from the previous invocation of a Connection. It can be 3276viewed as a "Pin Number Index" into the connection resource descriptor. 3277The BitWidth is the exact bit width of the field. It is usually one bit, 3278but not always. See the ACPICA reference guide (section 8.8.6.2.1) for 3279additional information and examples. 3280 3281GPE support: During ACPICA/GPE initialization, ensure that all GPEs with 3282corresponding _Lxx/_Exx methods are disabled (they may have been enabled 3283by the firmware), so that they cannot fire until they are enabled via 3284AcpiUpdateAllGpes. Rafael J. Wysocki. 3285 3286Added a new return flag for the Event/GPE status interfaces -- 3287AcpiGetEventStatus and AcpiGetGpeStatus. The new 3288ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or 3289GPE currently has a handler associated with it, and can thus actually 3290affect the system. Lv Zheng. 3291 3292Example Code and Data Size: These are the sizes for the OS-independent 3293acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3294debug version of the code includes the debug output trace mechanism and 3295has a much larger code and data size. 3296 3297 Current Release: 3298 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 3299 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 3300 Previous Release: 3301 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 3302 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 3303 33042) iASL Compiler/Disassembler and Tools: 3305 3306iASL: Fixed a memory allocation/free regression introduced in 20140828 3307that could cause the compiler to crash. This was introduced inadvertently 3308during the effort to eliminate compiler memory leaks. ACPICA BZ 1111, 33091113. 3310 3311iASL: Removed two error messages that have been found to create false 3312positives, until they can be fixed and fully validated (ACPICA BZ 1112): 33131) Illegal forward reference within a method 33142) Illegal reference across two methods 3315 3316iASL: Implemented a new option (-lm) to create a hardware mapping file 3317that summarizes all GPIO, I2C, SPI, and UART connections. This option 3318works for both the compiler and disassembler. See the iASL compiler user 3319guide for additional information and examples (section 6.4.6). 3320 3321AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to 3322version 2. This corrects the AE_BAD_HEADER exception seen on systems with 3323a version 1 RSDP. Lv Zheng ACPICA BZ 1097. 3324 3325AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode 3326unless STDIN is actually a terminal. Assists with batch-mode processing. 3327ACPICA BZ 1114. 3328 3329Disassembler/AcpiHelp: Added another large group of recognized _HID 3330values. 3331 3332 3333---------------------------------------- 333428 August 2014. Summary of changes for version 20140828: 3335 33361) ACPICA kernel-resident subsystem: 3337 3338Fixed a problem related to the internal use of the Timer() operator where 3339a 64-bit divide could cause an attempted link to a double-precision math 3340library. This divide is not actually necessary, so the code was 3341restructured to eliminate it. Lv Zheng. 3342 3343ACPI 5.1: Added support for the runtime validation of the _DSD package 3344(similar to the iASL support). 3345 3346ACPI 5.1/Headers: Added support for the GICC affinity subtable to the 3347SRAT table. Hanjun Guo <hanjun.guo@linaro.org>. 3348 3349Example Code and Data Size: These are the sizes for the OS-independent 3350acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3351debug version of the code includes the debug output trace mechanism and 3352has a much larger code and data size. 3353 3354 Current Release: 3355 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 3356 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 3357 Previous Release: 3358 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total1 3359 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 3360 33612) iASL Compiler/Disassembler and Tools: 3362 3363AcpiExec: Fixed a problem on unix systems where the original terminal 3364state was not always properly restored upon exit. Seen when using the -v 3365option. ACPICA BZ 1104. 3366 3367iASL: Fixed a problem with the validation of the ranges/length within the 3368Memory24 resource descriptor. There was a boundary condition when the 3369range was equal to the (length -1) caused by the fact that these values 3370are defined in 256-byte blocks, not bytes. ACPICA BZ 1098 3371 3372Disassembler: Fixed a problem with the GpioInt descriptor interrupt 3373polarity 3374flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword 3375is 3376now supported properly. 3377 3378ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported 3379in the disassembler, data table compiler, and table template generator. 3380 3381iASL: Added a requirement for Device() objects that one of either a _HID 3382or _ADR must exist within the scope of a Device, as per the ACPI 3383specification. Remove a similar requirement that was incorrectly in place 3384for the _DSD object. 3385 3386iASL: Added error detection for illegal named references within control 3387methods that would cause runtime failures. Now trapped as errors are: 1) 3388References to objects within a non-parent control method. 2) Forward 3389references (within a method) -- for control methods, AML interpreters use 3390a one-pass parse of control methods. ACPICA BZ 1008. 3391 3392iASL: Added error checking for dependencies related to the _PSx power 3393methods. ACPICA BZ 1029. 33941) For _PS0, one of these must exist within the same scope: _PS1, _PS2, 3395_PS3. 33962) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same 3397scope. 3398 3399iASL and table compiler: Cleanup miscellaneous memory leaks by fully 3400deploying the existing object and string caches and adding new caches for 3401the table compiler. 3402 3403iASL: Split the huge parser source file into multiple subfiles to improve 3404manageability. Generation now requires the M4 macro preprocessor, which 3405is part of the Bison distribution on both unix and windows platforms. 3406 3407AcpiSrc: Fixed and removed all extraneous warnings generated during 3408entire ACPICA source code scan and/or conversion. 3409 3410 3411---------------------------------------- 3412 341324 July 2014. Summary of changes for version 20140724: 3414 3415The ACPI 5.1 specification has been released and is available at: 3416http://uefi.org/specs/access 3417 3418 34190) ACPI 5.1 support in ACPICA: 3420 3421ACPI 5.1 is fully supported in ACPICA as of this release. 3422 3423New predefined names. Support includes iASL and runtime ACPICA 3424validation. 3425 _CCA (Cache Coherency Attribute). 3426 _DSD (Device-Specific Data). David Box. 3427 3428Modifications to existing ACPI tables. Support includes headers, iASL 3429Data Table compiler, disassembler, and the template generator. 3430 FADT - New fields and flags. Graeme Gregory. 3431 GTDT - One new subtable and new fields. Tomasz Nowicki. 3432 MADT - Two new subtables. Tomasz Nowicki. 3433 PCCT - One new subtable. 3434 3435Miscellaneous. 3436 New notification type for System Resource Affinity change events. 3437 3438 34391) ACPICA kernel-resident subsystem: 3440 3441Fixed a regression introduced in 20140627 where a fault can happen during 3442the deletion of Alias AML namespace objects. The problem affected both 3443the core ACPICA and the ACPICA tools including iASL and AcpiExec. 3444 3445Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a 3446simple mechanism to enable wake GPEs that have no associated handler or 3447control method. Rafael Wysocki. 3448 3449Updated the AcpiEnableGpe interface to disallow the enable if there is no 3450handler or control method associated with the particular GPE. This will 3451help avoid meaningless GPEs and even GPE floods. Rafael Wysocki. 3452 3453Updated GPE handling and dispatch by disabling the GPE before clearing 3454the status bit for edge-triggered GPEs. Lv Zheng. 3455 3456Added Timer() support to the AML Debug object. The current timer value is 3457now displayed with each invocation of (Store to) the debug object to 3458enable simple generation of execution times for AML code (method 3459execution for example.) ACPICA BZ 1093. 3460 3461Example Code and Data Size: These are the sizes for the OS-independent 3462acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3463debug version of the code includes the debug output trace mechanism and 3464has a much larger code and data size. 3465 3466 Current Release: 3467 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total 3468 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 3469 Previous Release: 3470 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 3471 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 3472 3473 34742) iASL Compiler/Disassembler and Tools: 3475 3476Fixed an issue with the recently added local printf implementation, 3477concerning width/precision specifiers that could cause incorrect output. 3478Lv Zheng. ACPICA BZ 1094. 3479 3480Disassembler: Added support to detect buffers that contain UUIDs and 3481disassemble them to an invocation of the ToUUID operator. Also emit 3482commented descriptions of known ACPI-related UUIDs. 3483 3484AcpiHelp: Added support to display known ACPI-related UUIDs. New option, 3485-u. Adds three new files. 3486 3487iASL: Update table compiler and disassembler for DMAR table changes that 3488were introduced in September 2013. With assistance by David Woodhouse. 3489 3490---------------------------------------- 349127 June 2014. Summary of changes for version 20140627: 3492 34931) ACPICA kernel-resident subsystem: 3494 3495Formatted Output: Implemented local versions of standard formatted output 3496utilities such as printf, etc. Over time, it has been discovered that 3497there are in fact many portability issues with printf, and the addition 3498of this feature will fix/prevent these issues once and for all. Some 3499known issues are summarized below: 3500 35011) Output of 64-bit values is not portable. For example, UINT64 is %ull 3502for the Linux kernel and is %uI64 for some MSVC versions. 35032) Invoking printf consistently in a manner that is portable across both 350432-bit and 64-bit platforms is difficult at best in many situations. 35053) The output format for pointers varies from system to system (leading 3506zeros especially), and leads to inconsistent output from ACPICA across 3507platforms. 35084) Certain platform-specific printf formats may conflict with ACPICA use. 35095) If there is no local C library available, ACPICA now has local support 3510for printf. 3511 3512-- To address these printf issues in a complete manner, ACPICA now 3513directly implements a small subset of printf format specifiers, only 3514those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng. 3515 3516Implemented support for ACPICA generation within the EFI environment. 3517Initially, the AcpiDump utility is supported in the UEFI shell 3518environment. Lv Zheng. 3519 3520Added a new external interface, AcpiLogError, to improve ACPICA 3521portability. This allows the host to redirect error messages from the 3522ACPICA utilities. Lv Zheng. 3523 3524Added and deployed new OSL file I/O interfaces to improve ACPICA 3525portability: 3526 AcpiOsOpenFile 3527 AcpiOsCloseFile 3528 AcpiOsReadFile 3529 AcpiOsWriteFile 3530 AcpiOsGetFileOffset 3531 AcpiOsSetFileOffset 3532There are C library implementations of these functions in the new file 3533service_layers/oslibcfs.c -- however, the functions can be implemented by 3534the local host in any way necessary. Lv Zheng. 3535 3536Implemented a mechanism to disable/enable ACPI table checksum validation 3537at runtime. This can be useful when loading tables very early during OS 3538initialization when it may not be possible to map the entire table in 3539order to compute the checksum. Lv Zheng. 3540 3541Fixed a buffer allocation issue for the Generic Serial Bus support. 3542Originally, a fixed buffer length was used. This change allows for 3543variable-length buffers based upon the protocol indicated by the field 3544access attributes. Reported by Lan Tianyu. Lv Zheng. 3545 3546Fixed a problem where an object detached from a namespace node was not 3547properly terminated/cleared and could cause a circular list problem if 3548reattached. ACPICA BZ 1063. David Box. 3549 3550Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick. 3551 3552Fixed a possible memory leak in an error return path within the function 3553AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King. 3554 3555Example Code and Data Size: These are the sizes for the OS-independent 3556acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3557debug version of the code includes the debug output trace mechanism and 3558has a much larger code and data size. 3559 3560 Current Release: 3561 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 3562 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 3563 Previous Release: 3564 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 3565 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 3566 3567 35682) iASL Compiler/Disassembler and Tools: 3569 3570Disassembler: Add dump of ASCII equivalent text within a comment at the 3571end of each line of the output for the Buffer() ASL operator. 3572 3573AcpiDump: Miscellaneous changes: 3574 Fixed repetitive table dump in -n mode. 3575 For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if 3576the ACPI 2.0 GUID fails. 3577 3578iASL: Fixed a problem where the compiler could fault if incorrectly given 3579an acpidump output file as input. ACPICA BZ 1088. David Box. 3580 3581AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if 3582they are invoked without any arguments. 3583 3584Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ 35851086. Colin Ian King. 3586 3587Disassembler: Cleaned up a block of code that extracts a parent Op 3588object. Added a comment that explains that the parent is guaranteed to be 3589valid in this case. ACPICA BZ 1069. 3590 3591 3592---------------------------------------- 359324 April 2014. Summary of changes for version 20140424: 3594 35951) ACPICA kernel-resident subsystem: 3596 3597Implemented support to skip/ignore NULL address entries in the RSDT/XSDT. 3598Some of these tables are known to contain a trailing NULL entry. Lv 3599Zheng. 3600 3601Removed an extraneous error message for the case where there are a large 3602number of system GPEs (> 124). This was the "32-bit FADT register is too 3603long to convert to GAS struct" message, which is irrelevant for GPEs 3604since the GPEx_BLK_LEN fields of the FADT are always used instead of the 3605(limited capacity) GAS bit length. Also, several changes to ensure proper 3606support for GPE numbers > 255, where some "GPE number" fields were 8-bits 3607internally. 3608 3609Implemented and deployed additional configuration support for the public 3610ACPICA external interfaces. Entire classes of interfaces can now be 3611easily modified or configured out, replaced by stubbed inline functions 3612by default. Lv Zheng. 3613 3614Moved all public ACPICA runtime configuration globals to the public 3615ACPICA external interface file for convenience. Also, removed some 3616obsolete/unused globals. See the file acpixf.h. Lv Zheng. 3617 3618Documentation: Added a new section to the ACPICA reference describing the 3619maximum number of GPEs that can be supported by the FADT-defined GPEs in 3620block zero and one. About 1200 total. See section 4.4.1 of the ACPICA 3621reference. 3622 3623Example Code and Data Size: These are the sizes for the OS-independent 3624acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3625debug version of the code includes the debug output trace mechanism and 3626has a much larger code and data size. 3627 3628 Current Release: 3629 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 3630 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 3631 Previous Release: 3632 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 3633 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 3634 3635 36362) iASL Compiler/Disassembler and Tools: 3637 3638iASL and disassembler: Add full support for the LPIT table (Low Power 3639Idle Table). Includes support in the disassembler, data table compiler, 3640and template generator. 3641 3642AcpiDump utility: 36431) Add option to force the use of the RSDT (over the XSDT). 36442) Improve validation of the RSDP signature (use 8 chars instead of 4). 3645 3646iASL: Add check for predefined packages that are too large. For 3647predefined names that contain subpackages, check if each subpackage is 3648too large. (Check for too small already exists.) 3649 3650Debugger: Updated the GPE command (which simulates a GPE by executing the 3651GPE code paths in ACPICA). The GPE device is now optional, and defaults 3652to the GPE 0/1 FADT-defined blocks. 3653 3654Unix application OSL: Update line-editing support. Add additional error 3655checking and take care not to reset terminal attributes on exit if they 3656were never set. This should help guarantee that the terminal is always 3657left in the previous state on program exit. 3658 3659 3660---------------------------------------- 366125 March 2014. Summary of changes for version 20140325: 3662 36631) ACPICA kernel-resident subsystem: 3664 3665Updated the auto-serialize feature for control methods. This feature 3666automatically serializes all methods that create named objects in order 3667to prevent runtime errors. The update adds support to ignore the 3668currently executing AML SyncLevel when invoking such a method, in order 3669to prevent disruption of any existing SyncLevel priorities that may exist 3670in the AML code. Although the use of SyncLevels is relatively rare, this 3671change fixes a regression where an AE_AML_MUTEX_ORDER exception can 3672appear on some machines starting with the 20140214 release. 3673 3674Added a new external interface to allow the host to install ACPI tables 3675very early, before the namespace is even created. AcpiInstallTable gives 3676the host additional flexibility for ACPI table management. Tables can be 3677installed directly by the host as if they had originally appeared in the 3678XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables 3679(anything except the DSDT and FACS). Adds a new file, tbdata.c, along 3680with additional internal restructuring and cleanup. See the ACPICA 3681Reference for interface details. Lv Zheng. 3682 3683Added validation of the checksum for all incoming dynamically loaded 3684tables (via external interfaces or via AML Load/LoadTable operators). Lv 3685Zheng. 3686 3687Updated the use of the AcpiOsWaitEventsComplete interface during Notify 3688and GPE handler removal. Restructured calls to eliminate possible race 3689conditions. Lv Zheng. 3690 3691Added a warning for the use/execution of the ASL/AML Unload (table) 3692operator. This will help detect and identify machines that use this 3693operator if and when it is ever used. This operator has never been seen 3694in the field and the usage model and possible side-effects of the drastic 3695runtime action of a full table removal are unknown. 3696 3697Reverted the use of #pragma push/pop which was introduced in the 20140214 3698release. It appears that push and pop are not implemented by enough 3699compilers to make the use of this feature feasible for ACPICA at this 3700time. However, these operators may be deployed in a future ACPICA 3701release. 3702 3703Added the missing EXPORT_SYMBOL macros for the install and remove SCI 3704handler interfaces. 3705 3706Source code generation: 37071) Disabled the use of the "strchr" macro for the gcc-specific 3708generation. For some versions of gcc, this macro can periodically expose 3709a compiler bug which in turn causes compile-time error(s). 37102) Added support for PPC64 compilation. Colin Ian King. 3711 3712Example Code and Data Size: These are the sizes for the OS-independent 3713acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3714debug version of the code includes the debug output trace mechanism and 3715has a much larger code and data size. 3716 3717 Current Release: 3718 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 3719 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 3720 Previous Release: 3721 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 3722 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 3723 3724 37252) iASL Compiler/Disassembler and Tools: 3726 3727Disassembler: Added several new features to improve the readability of 3728the resulting ASL code. Extra information is emitted within comment 3729fields in the ASL code: 37301) Known _HID/_CID values are decoded to descriptive text. 37312) Standard values for the Notify() operator are decoded to descriptive 3732text. 37333) Target operands are expanded to full pathnames (in a comment) when 3734possible. 3735 3736Disassembler: Miscellaneous updates for extern() handling: 37371) Abort compiler if file specified by -fe option does not exist. 37382) Silence unnecessary warnings about argument count mismatches. 37393) Update warning messages concerning unresolved method externals. 37404) Emit "UnknownObj" keyword for externals whose type cannot be 3741determined. 3742 3743AcpiHelp utility: 37441) Added the -a option to display both the ASL syntax and the AML 3745encoding for an input ASL operator. This effectively displays all known 3746information about an ASL operator with one AcpiHelp invocation. 37472) Added substring match support (similar to a wildcard) for the -i 3748(_HID/PNP IDs) option. 3749 3750iASL/Disassembler: Since this tool does not yet support execution on big- 3751endian machines, added detection of endianness and an error message if 3752execution is attempted on big-endian. Support for big-endian within iASL 3753is a feature that is on the ACPICA to-be-done list. 3754 3755AcpiBin utility: 37561) Remove option to extract binary files from an acpidump; this function 3757is made obsolete by the AcpiXtract utility. 37582) General cleanup of open files and allocated buffers. 3759 3760 3761---------------------------------------- 376214 February 2014. Summary of changes for version 20140214: 3763 37641) ACPICA kernel-resident subsystem: 3765 3766Implemented a new mechanism to proactively prevent problems with ill- 3767behaved reentrant control methods that create named ACPI objects. This 3768behavior is illegal as per the ACPI specification, but is nonetheless 3769frequently seen in the field. Previously, this could lead to an 3770AE_ALREADY_EXISTS exception if the method was actually entered by more 3771than one thread. This new mechanism detects such methods at table load 3772time and marks them "serialized" to prevent reentrancy. A new global 3773option, AcpiGbl_AutoSerializeMethods, has been added to disable this 3774feature if desired. This mechanism and global option obsoletes and 3775supersedes the previous AcpiGbl_SerializeAllMethods option. 3776 3777Added the "Windows 2013" string to the _OSI support. ACPICA will now 3778respond TRUE to _OSI queries with this string. It is the stated policy of 3779ACPICA to add new strings to the _OSI support as soon as possible after 3780they are defined. See the full ACPICA _OSI policy which has been added to 3781the utilities/utosi.c file. 3782 3783Hardened/updated the _PRT return value auto-repair code: 37841) Do not abort the repair on a single subpackage failure, continue to 3785check all subpackages. 37862) Add check for the minimum subpackage length (4). 37873) Properly handle extraneous NULL package elements. 3788 3789Added support to avoid the possibility of infinite loops when traversing 3790object linked lists. Never allow an infinite loop, even in the face of 3791corrupted object lists. 3792 3793ACPICA headers: Deployed the use of #pragma pack(push) and #pragma 3794pack(pop) directives to ensure that the ACPICA headers are independent of 3795compiler settings or other host headers. 3796 3797Example Code and Data Size: These are the sizes for the OS-independent 3798acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3799debug version of the code includes the debug output trace mechanism and 3800has a much larger code and data size. 3801 3802 Current Release: 3803 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 3804 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 3805 Previous Release: 3806 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 3807 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 3808 3809 38102) iASL Compiler/Disassembler and Tools: 3811 3812iASL/Table-compiler: Fixed a problem with support for the SPMI table. The 3813first reserved field was incorrectly forced to have a value of zero. This 3814change correctly forces the field to have a value of one. ACPICA BZ 1081. 3815 3816Debugger: Added missing support for the "Extra" and "Data" subobjects 3817when displaying object data. 3818 3819Debugger: Added support to display entire object linked lists when 3820displaying object data. 3821 3822iASL: Removed the obsolete -g option to obtain ACPI tables from the 3823Windows registry. This feature has been superseded by the acpidump 3824utility. 3825 3826 3827---------------------------------------- 382814 January 2014. Summary of changes for version 20140114: 3829 38301) ACPICA kernel-resident subsystem: 3831 3832Updated all ACPICA copyrights and signons to 2014. Added the 2014 3833copyright to all module headers and signons, including the standard Linux 3834header. This affects virtually every file in the ACPICA core subsystem, 3835iASL compiler, all ACPICA utilities, and the test suites. 3836 3837Improved parameter validation for AcpiInstallGpeBlock. Added the 3838following checks: 38391) The incoming device handle refers to type ACPI_TYPE_DEVICE. 38402) There is not already a GPE block attached to the device. 3841Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a 3842device. 3843 3844Correctly support "references" in the ACPI_OBJECT. This change fixes the 3845support to allow references (namespace nodes) to be passed as arguments 3846to control methods via the evaluate object interface. This is probably 3847most useful for testing purposes, however. 3848 3849Improved support for 32/64 bit physical addresses in printf()-like 3850output. This change improves the support for physical addresses in printf 3851debug statements and other output on both 32-bit and 64-bit hosts. It 3852consistently outputs the appropriate number of bytes for each host. The 3853%p specifier is unsatisfactory since it does not emit uniform output on 3854all hosts/clib implementations (on some, leading zeros are not supported, 3855leading to difficult-to-read output). 3856 3857Example Code and Data Size: These are the sizes for the OS-independent 3858acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3859debug version of the code includes the debug output trace mechanism and 3860has a much larger code and data size. 3861 3862 Current Release: 3863 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 3864 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 3865 Previous Release: 3866 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 3867 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 3868 3869 38702) iASL Compiler/Disassembler and Tools: 3871 3872iASL: Fix a possible fault when using the Connection() operator. Fixes a 3873problem if the parent Field definition for the Connection operator refers 3874to an operation region that does not exist. ACPICA BZ 1064. 3875 3876AcpiExec: Load of local test tables is now optional. The utility has the 3877capability to load some various tables to test features of ACPICA. 3878However, there are enough of them that the output of the utility became 3879confusing. With this change, only the required local tables are displayed 3880(RSDP, XSDT, etc.) along with the actual tables loaded via the command 3881line specification. This makes the default output simler and easier to 3882understand. The -el command line option restores the original behavior 3883for testing purposes. 3884 3885AcpiExec: Added support for overlapping operation regions. This change 3886expands the simulation of operation regions by supporting regions that 3887overlap within the given address space. Supports SystemMemory and 3888SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031. 3889 3890AcpiExec: Added region handler support for PCI_Config and EC spaces. This 3891allows AcpiExec to simulate these address spaces, similar to the current 3892support for SystemMemory and SystemIO. 3893 3894Debugger: Added new command to read/write/compare all namespace objects. 3895The command "test objects" will exercise the entire namespace by writing 3896new values to each data object, and ensuring that the write was 3897successful. The original value is then restored and verified. 3898 3899Debugger: Added the "test predefined" command. This change makes this 3900test public and puts it under the new "test" command. The test executes 3901each and every predefined name within the current namespace. 3902 3903 3904---------------------------------------- 390518 December 2013. Summary of changes for version 20131218: 3906 3907Global note: The ACPI 5.0A specification was released this month. There 3908are no changes needed for ACPICA since this release of ACPI is an 3909errata/clarification release. The specification is available at 3910acpi.info. 3911 3912 39131) ACPICA kernel-resident subsystem: 3914 3915Added validation of the XSDT root table if it is present. Some older 3916platforms contain an XSDT that is ill-formed or otherwise invalid (such 3917as containing some or all entries that are NULL pointers). This change 3918adds a new function to validate the XSDT before actually using it. If the 3919XSDT is found to be invalid, ACPICA will now automatically fall back to 3920using the RSDT instead. Original implementation by Zhao Yakui. Ported to 3921ACPICA and enhanced by Lv Zheng and Bob Moore. 3922 3923Added a runtime option to ignore the XSDT and force the use of the RSDT. 3924This change adds a runtime option that will force ACPICA to use the RSDT 3925instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec 3926requires that an XSDT be used instead of the RSDT, the XSDT has been 3927found to be corrupt or ill-formed on some machines. Lv Zheng. 3928 3929Added a runtime option to favor 32-bit FADT register addresses over the 393064-bit addresses. This change adds an option to favor 32-bit FADT 3931addresses when there is a conflict between the 32-bit and 64-bit versions 3932of the same register. The default behavior is to use the 64-bit version 3933in accordance with the ACPI specification. This can now be overridden via 3934the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng. 3935 3936During the change above, the internal "Convert FADT" and "Verify FADT" 3937functions have been merged to simplify the code, making it easier to 3938understand and maintain. ACPICA BZ 933. 3939 3940Improve exception reporting and handling for GPE block installation. 3941Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the 3942status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019. 3943 3944Added helper macros to extract bus/segment numbers from the HEST table. 3945This change adds two macros to extract the encoded bus and segment 3946numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT. 3947Betty Dall <betty.dall@hp.com> 3948 3949Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used 3950by ACPICA. It is not a public macro, so it should have no effect on 3951existing OSV code. Lv Zheng. 3952 3953Example Code and Data Size: These are the sizes for the OS-independent 3954acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3955debug version of the code includes the debug output trace mechanism and 3956has a much larger code and data size. 3957 3958 Current Release: 3959 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 3960 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 3961 Previous Release: 3962 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 3963 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 3964 3965 39662) iASL Compiler/Disassembler and Tools: 3967 3968Disassembler: Improved pathname support for emitted External() 3969statements. This change adds full pathname support for external names 3970that have been resolved internally by the inclusion of additional ACPI 3971tables (via the iASL -e option). Without this change, the disassembler 3972can emit multiple externals for the same object, or it become confused 3973when the Scope() operator is used on an external object. Overall, greatly 3974improves the ability to actually recompile the emitted ASL code when 3975objects a referenced across multiple ACPI tables. Reported by Michael 3976Tsirkin (mst@redhat.com). 3977 3978Tests/ASLTS: Updated functional control suite to execute with no errors. 3979David Box. Fixed several errors related to the testing of the interpreter 3980slack mode. Lv Zheng. 3981 3982iASL: Added support to detect names that are declared within a control 3983method, but are unused (these are temporary names that are only valid 3984during the time the method is executing). A remark is issued for these 3985cases. ACPICA BZ 1022. 3986 3987iASL: Added full support for the DBG2 table. Adds full disassembler, 3988table compiler, and template generator support for the DBG2 table (Debug 3989Port 2 table). 3990 3991iASL: Added full support for the PCCT table, update the table definition. 3992Updates the PCCT table definition in the actbl3.h header and adds table 3993compiler and template generator support. 3994 3995iASL: Added an option to emit only error messages (no warnings/remarks). 3996The -ve option will enable only error messages, warnings and remarks are 3997suppressed. This can simplify debugging when only the errors are 3998important, such as when an ACPI table is disassembled and there are many 3999warnings and remarks -- but only the actual errors are of real interest. 4000 4001Example ACPICA code (source/tools/examples): Updated the example code so 4002that it builds to an actual working program, not just example code. Added 4003ACPI tables and execution of an example control method in the DSDT. Added 4004makefile support for Unix generation. 4005 4006 4007---------------------------------------- 400815 November 2013. Summary of changes for version 20131115: 4009 4010This release is available at https://acpica.org/downloads 4011 4012 40131) ACPICA kernel-resident subsystem: 4014 4015Resource Manager: Fixed loop termination for the "get AML length" 4016function. The loop previously had an error termination on a NULL resource 4017pointer, which can never happen since the loop simply increments a valid 4018resource pointer. This fix changes the loop to terminate with an error on 4019an invalid end-of-buffer condition. The problem can be seen as an 4020infinite loop by callers to AcpiSetCurrentResources with an invalid or 4021corrupted resource descriptor, or a resource descriptor that is missing 4022an END_TAG descriptor. Reported by Dan Carpenter 4023<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore. 4024 4025Table unload and ACPICA termination: Delete all attached data objects 4026during namespace node deletion. This fix updates namespace node deletion 4027to delete the entire list of attached objects (attached via 4028AcpiAttachObject) instead of just one of the attached items. ACPICA BZ 40291024. Tomasz Nowicki (tomasz.nowicki@linaro.org). 4030 4031ACPICA termination: Added support to delete all objects attached to the 4032root namespace node. This fix deletes any and all objects that have been 4033attached to the root node via AcpiAttachData. Previously, none of these 4034objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026. 4035 4036Debug output: Do not emit the function nesting level for the in-kernel 4037build. The nesting level is really only useful during a single-thread 4038execution. Therefore, only enable this output for the AcpiExec utility. 4039Also, only emit the thread ID when executing under AcpiExec (Context 4040switches are still always detected and a message is emitted). ACPICA BZ 4041972. 4042 4043Example Code and Data Size: These are the sizes for the OS-independent 4044acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4045debug version of the code includes the debug output trace mechanism and 4046has a much larger code and data size. 4047 4048 Current Release: 4049 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 4050 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 4051 Previous Release: 4052 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 4053 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 4054 4055 40562) iASL Compiler/Disassembler and Tools: 4057 4058AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the 4059correct portable POSIX header for terminal control functions. 4060 4061Disassembler: Fixed control method invocation issues related to the use 4062of the CondRefOf() operator. The problem is seen in the disassembly where 4063control method invocations may not be disassembled properly if the 4064control method name has been used previously as an argument to CondRefOf. 4065The solution is to not attempt to emit an external declaration for the 4066CondRefOf target (it is not necessary in the first place). This prevents 4067disassembler object type confusion. ACPICA BZ 988. 4068 4069Unix Makefiles: Added an option to disable compiler optimizations and the 4070_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA 4071with optimizations (reportedly, gcc 4.4 for example). This change adds a 4072command line option for make (NOOPT) that disables all compiler 4073optimizations and the _FORTIFY_SOURCE compiler flag. The default 4074optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ 40751034. Lv Zheng, Bob Moore. 4076 4077Tests/ASLTS: Added options to specify individual test cases and modes. 4078This allows testers running aslts.sh to optionally specify individual 4079test modes and test cases. Also added an option to disable the forced 4080generation of the ACPICA tools from source if desired. Lv Zheng. 4081 4082---------------------------------------- 408327 September 2013. Summary of changes for version 20130927: 4084 4085This release is available at https://acpica.org/downloads 4086 4087 40881) ACPICA kernel-resident subsystem: 4089 4090Fixed a problem with store operations to reference objects. This change 4091fixes a problem where a Store operation to an ArgX object that contained 4092a 4093reference to a field object did not complete the automatic dereference 4094and 4095then write to the actual field object. Instead, the object type of the 4096field object was inadvertently changed to match the type of the source 4097operand. The new behavior will actually write to the field object (buffer 4098field or field unit), thus matching the correct ACPI-defined behavior. 4099 4100Implemented support to allow the host to redefine individual OSL 4101prototypes. This change enables the host to redefine OSL prototypes found 4102in the acpiosxf.h file. This allows the host to implement OSL interfaces 4103with a macro or inlined function. Further, it allows the host to add any 4104additional required modifiers such as __iomem, __init, __exit, etc., as 4105necessary on a per-interface basis. Enables maximum flexibility for the 4106OSL interfaces. Lv Zheng. 4107 4108Hardcoded the access width for the FADT-defined reset register. The ACPI 4109specification requires the reset register width to be 8 bits. ACPICA now 4110hardcodes the width to 8 and ignores the FADT width value. This provides 4111compatibility with other ACPI implementations that have allowed BIOS code 4112with bad register width values to go unnoticed. Matthew Garett, Bob 4113Moore, 4114Lv Zheng. 4115 4116Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is 4117used 4118in the OSL header (acpiosxf). The change modifies the position of this 4119macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid 4120build issues if the OSL defines the implementation of the interface to be 4121an inline stub function. Lv Zheng. 4122 4123Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA 4124initialization interfaces. This change adds a new macro for the main init 4125and terminate external interfaces in order to support hosts that require 4126additional or different processing for these functions. Changed from 4127ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv 4128Zheng, Bob Moore. 4129 4130Cleaned up the memory allocation macros for configurability. In the 4131common 4132case, the ACPI_ALLOCATE and related macros now resolve directly to their 4133respective AcpiOs* OSL interfaces. Two options: 41341) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by 4135default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define. 41362) For AcpiExec (and for debugging), the macros can optionally be 4137resolved 4138to the local ACPICA interfaces that track each allocation (local tracking 4139is used to immediately detect memory leaks). 4140Lv Zheng. 4141 4142Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel 4143to predefine this macro to either TRUE or FALSE during the system build. 4144 4145Replaced __FUNCTION_ with __func__ in the gcc-specific header. 4146 4147Example Code and Data Size: These are the sizes for the OS-independent 4148acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4149debug version of the code includes the debug output trace mechanism and 4150has a much larger code and data size. 4151 4152 Current Release: 4153 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 4154 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 4155 Previous Release: 4156 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 4157 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 4158 4159 41602) iASL Compiler/Disassembler and Tools: 4161 4162iASL: Implemented wildcard support for the -e option. This simplifies use 4163when there are many SSDTs that must be included to resolve external 4164method 4165declarations. ACPICA BZ 1041. Example: 4166 iasl -e ssdt*.dat -d dsdt.dat 4167 4168AcpiExec: Add history/line-editing for Unix/Linux systems. This change 4169adds a portable module that implements full history and limited line 4170editing for Unix and Linux systems. It does not use readline() due to 4171portability issues. Instead it uses the POSIX termio interface to put the 4172terminal in raw input mode so that the various special keys can be 4173trapped 4174(such as up/down-arrow for history support and left/right-arrow for line 4175editing). Uses the existing debugger history mechanism. ACPICA BZ 1036. 4176 4177AcpiXtract: Add support to handle (ignore) "empty" lines containing only 4178one or more spaces. This provides compatible with early or different 4179versions of the AcpiDump utility. ACPICA BZ 1044. 4180 4181AcpiDump: Do not ignore tables that contain only an ACPI table header. 4182Apparently, some BIOSs create SSDTs that contain an ACPI table header but 4183no other data. This change adds support to dump these tables. Any tables 4184shorter than the length of an ACPI table header remain in error (an error 4185message is emitted). Reported by Yi Li. 4186 4187Debugger: Echo actual command along with the "unknown command" message. 4188 4189---------------------------------------- 419023 August 2013. Summary of changes for version 20130823: 4191 41921) ACPICA kernel-resident subsystem: 4193 4194Implemented support for host-installed System Control Interrupt (SCI) 4195handlers. Certain ACPI functionality requires the host to handle raw 4196SCIs. For example, the "SCI Doorbell" that is defined for memory power 4197state support requires the host device driver to handle SCIs to examine 4198if the doorbell has been activated. Multiple SCI handlers can be 4199installed to allow for future expansion. New external interfaces are 4200AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for 4201details. Lv Zheng, Bob Moore. ACPICA BZ 1032. 4202 4203Operation region support: Never locally free the handler "context" 4204pointer. This change removes some dangerous code that attempts to free 4205the handler context pointer in some (rare) circumstances. The owner of 4206the handler owns this pointer and the ACPICA code should never touch it. 4207Although not seen to be an issue in any kernel, it did show up as a 4208problem (fault) under AcpiExec. Also, set the internal storage field for 4209the context pointer to zero when the region is deactivated, simply for 4210sanity. David Box. ACPICA BZ 1039. 4211 4212AcpiRead: On error, do not modify the return value target location. If an 4213error happens in the middle of a split 32/32 64-bit I/O operation, do not 4214modify the target of the return value pointer. Makes the code consistent 4215with the rest of ACPICA. Bjorn Helgaas. 4216 4217Example Code and Data Size: These are the sizes for the OS-independent 4218acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4219debug version of the code includes the debug output trace mechanism and 4220has a much larger code and data size. 4221 4222 Current Release: 4223 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 4224 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 4225 Previous Release: 4226 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 4227 Debug Version: 185.4K Code, 77.1K Data, 262.5K Total 4228 4229 42302) iASL Compiler/Disassembler and Tools: 4231 4232AcpiDump: Implemented several new features and fixed some problems: 42331) Added support to dump the RSDP, RSDT, and XSDT tables. 42342) Added support for multiple table instances (SSDT, UEFI). 42353) Added option to dump "customized" (overridden) tables (-c). 42364) Fixed a problem where some table filenames were improperly 4237constructed. 42385) Improved some error messages, removed some unnecessary messages. 4239 4240iASL: Implemented additional support for disassembly of ACPI tables that 4241contain invocations of external control methods. The -fe<file> option 4242allows the import of a file that specifies the external methods along 4243with the required number of arguments for each -- allowing for the 4244correct disassembly of the table. This is a workaround for a limitation 4245of AML code where the disassembler often cannot determine the number of 4246arguments required for an external control method and generates incorrect 4247ASL code. See the iASL reference for details. ACPICA BZ 1030. 4248 4249Debugger: Implemented a new command (paths) that displays the full 4250pathnames (namepaths) and object types of all objects in the namespace. 4251This is an alternative to the namespace command. 4252 4253Debugger: Implemented a new command (sci) that invokes the SCI dispatch 4254mechanism and any installed handlers. 4255 4256iASL: Fixed a possible segfault for "too many parent prefixes" condition. 4257This can occur if there are too many parent prefixes in a namepath (for 4258example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035. 4259 4260Application OSLs: Set the return value for the PCI read functions. These 4261functions simply return AE_OK, but should set the return value to zero 4262also. This change implements this. ACPICA BZ 1038. 4263 4264Debugger: Prevent possible command line buffer overflow. Increase the 4265size of a couple of the debugger line buffers, and ensure that overflow 4266cannot happen. ACPICA BZ 1037. 4267 4268iASL: Changed to abort immediately on serious errors during the parsing 4269phase. Due to the nature of ASL, there is no point in attempting to 4270compile these types of errors, and they typically end up causing a 4271cascade of hundreds of errors which obscure the original problem. 4272 4273---------------------------------------- 427425 July 2013. Summary of changes for version 20130725: 4275 42761) ACPICA kernel-resident subsystem: 4277 4278Fixed a problem with the DerefOf operator where references to FieldUnits 4279and BufferFields incorrectly returned the parent object, not the actual 4280value of the object. After this change, a dereference of a FieldUnit 4281reference results in a read operation on the field to get the value, and 4282likewise, the appropriate BufferField value is extracted from the target 4283buffer. 4284 4285Fixed a problem where the _WAK method could cause a fault under these 4286circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK 4287method returned no value. The problem is rarely seen because most kernels 4288run ACPICA in slack mode. 4289 4290For the DerefOf operator, a fatal error now results if an attempt is made 4291to dereference a reference (created by the Index operator) to a NULL 4292package element. Provides compatibility with other ACPI implementations, 4293and this behavior will be added to a future version of the ACPI 4294specification. 4295 4296The ACPI Power Management Timer (defined in the FADT) is now optional. 4297This provides compatibility with other ACPI implementations and will 4298appear in the next version of the ACPI specification. If there is no PM 4299Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of 4300zero in the FADT indicates no PM timer. 4301 4302Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This 4303allows the host to globally enable/disable all vendor strings, all 4304feature strings, or both. Intended to be primarily used for debugging 4305purposes only. Lv Zheng. 4306 4307Expose the collected _OSI data to the host via a global variable. This 4308data tracks the highest level vendor ID that has been invoked by the BIOS 4309so that the host (and potentially ACPICA itself) can change behaviors 4310based upon the age of the BIOS. 4311 4312Example Code and Data Size: These are the sizes for the OS-independent 4313acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4314debug version of the code includes the debug output trace mechanism and 4315has a much larger code and data size. 4316 4317 Current Release: 4318 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 4319 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 4320 Previous Release: 4321 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 4322 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 4323 4324 43252) iASL Compiler/Disassembler and Tools: 4326 4327iASL: Created the following enhancements for the -so option (create 4328offset table): 43291)Add offsets for the last nameseg in each namepath for every supported 4330object type 43312)Add support for Processor, Device, Thermal Zone, and Scope objects 43323)Add the actual AML opcode for the parent object of every supported 4333object type 43344)Add support for the ZERO/ONE/ONES AML opcodes for integer objects 4335 4336Disassembler: Emit all unresolved external symbols in a single block. 4337These are external references to control methods that could not be 4338resolved, and thus, the disassembler had to make a guess at the number of 4339arguments to parse. 4340 4341iASL: The argument to the -T option (create table template) is now 4342optional. If not specified, the default table is a DSDT, typically the 4343most common case. 4344 4345---------------------------------------- 434626 June 2013. Summary of changes for version 20130626: 4347 43481) ACPICA kernel-resident subsystem: 4349 4350Fixed an issue with runtime repair of the _CST object. Null or invalid 4351elements were not always removed properly. Lv Zheng. 4352 4353Removed an arbitrary restriction of 256 GPEs per GPE block (such as the 4354FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, 4355the maximum number of GPEs is 1016. Use of multiple GPE block devices 4356makes the system-wide number of GPEs essentially unlimited. 4357 4358Example Code and Data Size: These are the sizes for the OS-independent 4359acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4360debug version of the code includes the debug output trace mechanism and 4361has a much larger code and data size. 4362 4363 Current Release: 4364 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 4365 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 4366 Previous Release: 4367 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 4368 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 4369 4370 43712) iASL Compiler/Disassembler and Tools: 4372 4373Portable AcpiDump: Implemented full support for the Linux and FreeBSD 4374hosts. Now supports Linux, FreeBSD, and Windows. 4375 4376Disassembler: Added some missing types for the HEST and EINJ tables: "Set 4377Error Type With Address", "CMCI", "MCE", and "Flush Cacheline". 4378 4379iASL/Preprocessor: Implemented full support for nested 4380#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. 4381 4382Disassembler: Expanded maximum output string length to 64K. Was 256 bytes 4383max. The original purpose of this constraint was to limit the amount of 4384debug output. However, the string function in question (UtPrintString) is 4385now used for the disassembler also, where 256 bytes is insufficient. 4386Reported by RehabMan@GitHub. 4387 4388iASL/DataTables: Fixed some problems and issues with compilation of DMAR 4389tables. ACPICA BZ 999. Lv Zheng. 4390 4391iASL: Fixed a couple of error exit issues that could result in a "Could 4392not delete <file>" message during ASL compilation. 4393 4394AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though 4395the actual signatures for these tables are "FACP" and "APIC", 4396respectively. 4397 4398AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI 4399tables are allowed to have multiple instances. 4400 4401---------------------------------------- 440217 May 2013. Summary of changes for version 20130517: 4403 44041) ACPICA kernel-resident subsystem: 4405 4406Fixed a regression introduced in version 20130328 for _INI methods. This 4407change fixes a problem introduced in 20130328 where _INI methods are no 4408longer executed properly because of a memory block that was not 4409initialized correctly. ACPICA BZ 1016. Tomasz Nowicki 4410<tomasz.nowicki@linaro.org>. 4411 4412Fixed a possible problem with the new extended sleep registers in the 4413ACPI 44145.0 FADT. Do not use these registers (even if populated) unless the HW- 4415reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 44161020. Lv Zheng. 4417 4418Implemented return value repair code for _CST predefined objects: Sort 4419the 4420list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. 4421 4422Implemented a debug-only option to disable loading of SSDTs from the 4423RSDT/XSDT during ACPICA initialization. This can be useful for debugging 4424ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in 4425acglobal.h - ACPICA BZ 1005. Lv Zheng. 4426 4427Fixed some issues in the ACPICA initialization and termination code: 4428Tomasz Nowicki <tomasz.nowicki@linaro.org> 44291) Clear events initialized flag upon event component termination. ACPICA 4430BZ 1013. 44312) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 44323) Delete global lock pending lock during termination. ACPICA BZ 1012. 44334) Clear debug buffer global on termination to prevent possible multiple 4434delete. ACPICA BZ 1010. 4435 4436Standardized all switch() blocks across the entire source base. After 4437many 4438years, different formatting for switch() had crept in. This change makes 4439the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. 4440 4441Split some files to enhance ACPICA modularity and configurability: 44421) Split buffer dump routines into utilities/utbuffer.c 44432) Split internal error message routines into utilities/uterror.c 44443) Split table print utilities into tables/tbprint.c 44454) Split iASL command-line option processing into asloptions.c 4446 4447Makefile enhancements: 44481) Support for all new files above. 44492) Abort make on errors from any subcomponent. Chao Guan. 44503) Add build support for Apple Mac OS X. Liang Qi. 4451 4452Example Code and Data Size: These are the sizes for the OS-independent 4453acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4454debug version of the code includes the debug output trace mechanism and 4455has a much larger code and data size. 4456 4457 Current Release: 4458 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 4459 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 4460 Previous Release: 4461 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 4462 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 4463 4464 44652) iASL Compiler/Disassembler and Tools: 4466 4467New utility: Implemented an easily portable version of the acpidump 4468utility to extract ACPI tables from the system (or a file) in an ASCII 4469hex 4470dump format. The top-level code implements the various command line 4471options, file I/O, and table dump routines. To port to a new host, only 4472three functions need to be implemented to get tables -- since this 4473functionality is OS-dependent. See the tools/acpidump/apmain.c module and 4474the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 44751) The Windows version obtains the ACPI tables from the Registry. 44762) The Linux version is under development. 44773) Other hosts - If an OS-dependent module is submitted, it will be 4478distributed with ACPICA. 4479 4480iASL: Fixed a regression for -D preprocessor option (define symbol). A 4481restructuring/change to the initialization sequence caused this option to 4482no longer work properly. 4483 4484iASL: Implemented a mechanism to disable specific warnings and remarks. 4485Adds a new command line option, "-vw <messageid> as well as "#pragma 4486disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore. 4487 4488iASL: Fix for too-strict package object validation. The package object 4489validation for return values from the predefined names is a bit too 4490strict, it does not allow names references within the package (which will 4491be resolved at runtime.) These types of references cannot be validated at 4492compile time. This change ignores named references within package objects 4493for names that return or define static packages. 4494 4495Debugger: Fixed the 80-character command line limitation for the History 4496command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. 4497 4498iASL: Added control method and package support for the -so option 4499(generates AML offset table for BIOS support.) 4500 4501iASL: issue a remark if a non-serialized method creates named objects. If 4502a thread blocks within the method for any reason, and another thread 4503enters the method, the method will fail because an attempt will be made 4504to 4505create the same (named) object twice. In this case, issue a remark that 4506the method should be marked serialized. NOTE: may become a warning later. 4507ACPICA BZ 909. 4508 4509---------------------------------------- 451018 April 2013. Summary of changes for version 20130418: 4511 45121) ACPICA kernel-resident subsystem: 4513 4514Fixed a possible buffer overrun during some rare but specific field unit 4515read operations. This overrun can only happen if the DSDT version is 1 -- 4516meaning that all AML integers are 32 bits -- and the field length is 4517between 33 and 55 bits long. During the read, an internal buffer object 4518is 4519created for the field unit because the field is larger than an integer 4520(32 4521bits). However, in this case, the buffer will be incorrectly written 4522beyond the end because the buffer length is less than the internal 4523minimum 4524of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes 4525long, but a full 8 bytes will be written. 4526 4527Updated the Embedded Controller "orphan" _REG method support. This refers 4528to _REG methods under the EC device that have no corresponding operation 4529region. This is allowed by the ACPI specification. This update removes a 4530dependency on the existence an ECDT table. It will execute an orphan _REG 4531method as long as the operation region handler for the EC is installed at 4532the EC device node and not the namespace root. Rui Zhang (original 4533update), Bob Moore (update/integrate). 4534 4535Implemented run-time argument typechecking for all predefined ACPI names 4536(_STA, _BIF, etc.) This change performs object typechecking on all 4537incoming arguments for all predefined names executed via 4538AcpiEvaluateObject. This ensures that ACPI-related device drivers are 4539passing correct object types as well as the correct number of arguments 4540(therefore identifying any issues immediately). Also, the ASL/namespace 4541definition of the predefined name is checked against the ACPI 4542specification for the proper argument count. Adds one new file, 4543nsarguments.c 4544 4545Changed an exception code for the ASL UnLoad() operator. Changed the 4546exception code for the case where the input DdbHandle is invalid, from 4547AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. 4548 4549Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the 4550global makefile. The use of this flag causes compiler errors on earlier 4551versions of GCC, so it has been removed for compatibility. 4552 4553Miscellaneous cleanup: 45541) Removed some unused/obsolete macros 45552) Fixed a possible memory leak in the _OSI support 45563) Removed an unused variable in the predefined name support 45574) Windows OSL: remove obsolete reference to a memory list field 4558 4559Example Code and Data Size: These are the sizes for the OS-independent 4560acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4561debug version of the code includes the debug output trace mechanism and 4562has a much larger code and data size. 4563 4564 Current Release: 4565 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 4566 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 4567 Previous Release: 4568 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 4569 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 4570 4571 45722) iASL Compiler/Disassembler and Tools: 4573 4574AcpiExec: Added installation of a handler for the SystemCMOS address 4575space. This prevents control method abort if a method accesses this 4576space. 4577 4578AcpiExec: Added support for multiple EC devices, and now install EC 4579operation region handler(s) at the actual EC device instead of the 4580namespace root. This reflects the typical behavior of host operating 4581systems. 4582 4583AcpiExec: Updated to ensure that all operation region handlers are 4584installed before the _REG methods are executed. This prevents a _REG 4585method from aborting if it accesses an address space has no handler. 4586AcpiExec installs a handler for every possible address space. 4587 4588Debugger: Enhanced the "handlers" command to display non-root handlers. 4589This change enhances the handlers command to display handlers associated 4590with individual devices throughout the namespace, in addition to the 4591currently supported display of handlers associated with the root 4592namespace 4593node. 4594 4595ASL Test Suite: Several test suite errors have been identified and 4596resolved, reducing the total error count during execution. Chao Guan. 4597 4598---------------------------------------- 459928 March 2013. Summary of changes for version 20130328: 4600 46011) ACPICA kernel-resident subsystem: 4602 4603Fixed several possible race conditions with the internal object reference 4604counting mechanism. Some of the external ACPICA interfaces update object 4605reference counts without holding the interpreter or namespace lock. This 4606change adds a spinlock to protect reference count updates on the internal 4607ACPICA objects. Reported by and with assistance from Andriy Gapon 4608(avg@FreeBSD.org). 4609 4610FADT support: Removed an extraneous warning for very large GPE register 4611sets. This change removes a size mismatch warning if the legacy length 4612field for a GPE register set is larger than the 64-bit GAS structure can 4613accommodate. GPE register sets can be larger than the 255-bit width 4614limitation of the GAS structure. Linn Crosetto (linn@hp.com). 4615 4616_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error 4617return from this interface. Handles a possible timeout case if 4618ACPI_WAIT_FOREVER is modified by the host to be a value less than 4619"forever". Jung-uk Kim. 4620 4621Predefined name support: Add allowed/required argument type information 4622to 4623the master predefined info table. This change adds the infrastructure to 4624enable typechecking on incoming arguments for all predefined 4625methods/objects. It does not actually contain the code that will fully 4626utilize this information, this is still under development. Also condenses 4627some duplicate code for the predefined names into a new module, 4628utilities/utpredef.c 4629 4630Example Code and Data Size: These are the sizes for the OS-independent 4631acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4632debug version of the code includes the debug output trace mechanism and 4633has a much larger code and data size. 4634 4635 Previous Release: 4636 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 4637 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 4638 Current Release: 4639 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 4640 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 4641 4642 46432) iASL Compiler/Disassembler and Tools: 4644 4645iASL: Implemented a new option to simplify the development of ACPI- 4646related 4647BIOS code. Adds support for a new "offset table" output file. The -so 4648option will create a C table containing the AML table offsets of various 4649named objects in the namespace so that BIOS code can modify them easily 4650at 4651boot time. This can simplify BIOS runtime code by eliminating expensive 4652searches for "magic values", enhancing boot times and adding greater 4653reliability. With assistance from Lee Hamel. 4654 4655iASL: Allow additional predefined names to return zero-length packages. 4656Now, all predefined names that are defined by the ACPI specification to 4657return a "variable-length package of packages" are allowed to return a 4658zero length top-level package. This allows the BIOS to tell the host that 4659the requested feature is not supported, and supports existing BIOS/ASL 4660code and practices. 4661 4662iASL: Changed the "result not used" warning to an error. This is the case 4663where an ASL operator is effectively a NOOP because the result of the 4664operation is not stored anywhere. For example: 4665 Add (4, Local0) 4666There is no target (missing 3rd argument), nor is the function return 4667value used. This is potentially a very serious problem -- since the code 4668was probably intended to do something, but for whatever reason, the value 4669was not stored. Therefore, this issue has been upgraded from a warning to 4670an error. 4671 4672AcpiHelp: Added allowable/required argument types to the predefined names 4673info display. This feature utilizes the recent update to the predefined 4674names table (above). 4675 4676---------------------------------------- 467714 February 2013. Summary of changes for version 20130214: 4678 46791) ACPICA Kernel-resident Subsystem: 4680 4681Fixed a possible regression on some hosts: Reinstated the safe return 4682macros (return_ACPI_STATUS, etc.) that ensure that the argument is 4683evaluated only once. Although these macros are not needed for the ACPICA 4684code itself, they are often used by ACPI-related host device drivers 4685where 4686the safe feature may be necessary. 4687 4688Fixed several issues related to the ACPI 5.0 reduced hardware support 4689(SOC): Now ensure that if the platform declares itself as hardware- 4690reduced 4691via the FADT, the following functions become NOOPs (and always return 4692AE_OK) because ACPI is always enabled by definition on these machines: 4693 AcpiEnable 4694 AcpiDisable 4695 AcpiHwGetMode 4696 AcpiHwSetMode 4697 4698Dynamic Object Repair: Implemented additional runtime repairs for 4699predefined name return values. Both of these repairs can simplify code in 4700the related device drivers that invoke these methods: 47011) For the _STR and _MLS names, automatically repair/convert an ASCII 4702string to a Unicode buffer. 47032) For the _CRS, _PRS, and _DMA names, return a resource descriptor with 4704a 4705lone end tag descriptor in the following cases: A Return(0) was executed, 4706a null buffer was returned, or no object at all was returned (non-slack 4707mode only). Adds a new file, nsconvert.c 4708ACPICA BZ 998. Bob Moore, Lv Zheng. 4709 4710Resource Manager: Added additional code to prevent possible infinite 4711loops 4712while traversing corrupted or ill-formed resource template buffers. Check 4713for zero-length resource descriptors in all code that loops through 4714resource templates (the length field is used to index through the 4715template). This change also hardens the external AcpiWalkResources and 4716AcpiWalkResourceBuffer interfaces. 4717 4718Local Cache Manager: Enhanced the main data structure to eliminate an 4719unnecessary mechanism to access the next object in the list. Actually 4720provides a small performance enhancement for hosts that use the local 4721ACPICA cache manager. Jung-uk Kim. 4722 4723Example Code and Data Size: These are the sizes for the OS-independent 4724acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4725debug version of the code includes the debug output trace mechanism and 4726has a much larger code and data size. 4727 4728 Previous Release: 4729 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 4730 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 4731 Current Release: 4732 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 4733 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 4734 4735 47362) iASL Compiler/Disassembler and Tools: 4737 4738iASL/Disassembler: Fixed several issues with the definition of the ACPI 47395.0 RASF table (RAS Feature Table). This change incorporates late changes 4740that were made to the ACPI 5.0 specification. 4741 4742iASL/Disassembler: Added full support for the following new ACPI tables: 4743 1) The MTMR table (MID Timer Table) 4744 2) The VRTC table (Virtual Real Time Clock Table). 4745Includes header file, disassembler, table compiler, and template support 4746for both tables. 4747 4748iASL: Implemented compile-time validation of package objects returned by 4749predefined names. This new feature validates static package objects 4750returned by the various predefined names defined to return packages. Both 4751object types and package lengths are validated, for both parent packages 4752and sub-packages, if any. The code is similar in structure and behavior 4753to 4754the runtime repair mechanism within the AML interpreter and uses the 4755existing predefined name information table. Adds a new file, aslprepkg.c. 4756ACPICA BZ 938. 4757 4758iASL: Implemented auto-detection of binary ACPI tables for disassembly. 4759This feature detects a binary file with a valid ACPI table header and 4760invokes the disassembler automatically. Eliminates the need to 4761specifically invoke the disassembler with the -d option. ACPICA BZ 862. 4762 4763iASL/Disassembler: Added several warnings for the case where there are 4764unresolved control methods during the disassembly. This can potentially 4765cause errors when the output file is compiled, because the disassembler 4766assumes zero method arguments in these cases (it cannot determine the 4767actual number of arguments without resolution/definition of the method). 4768 4769Debugger: Added support to display all resources with a single command. 4770Invocation of the resources command with no arguments will now display 4771all 4772resources within the current namespace. 4773 4774AcpiHelp: Added descriptive text for each ACPICA exception code displayed 4775via the -e option. 4776 4777---------------------------------------- 477817 January 2013. Summary of changes for version 20130117: 4779 47801) ACPICA Kernel-resident Subsystem: 4781 4782Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 4783return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 4784objects to return a package containing one integer, most BIOS code 4785returns 4786two integers and the previous code reflects that. However, we also need 4787to 4788support BIOS code that actually implements to the ACPI spec, and this 4789change reflects this. 4790 4791Fixed two issues with the ACPI_DEBUG_PRINT macros: 47921) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 4793C compilers that require this support. 47942) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 4795ACPI_DEBUG is already used by many of the various hosts. 4796 4797Updated all ACPICA copyrights and signons to 2013. Added the 2013 4798copyright to all module headers and signons, including the standard Linux 4799header. This affects virtually every file in the ACPICA core subsystem, 4800iASL compiler, all ACPICA utilities, and the test suites. 4801 4802Example Code and Data Size: These are the sizes for the OS-independent 4803acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4804debug version of the code includes the debug output trace mechanism and 4805has a much larger code and data size. 4806 4807 Previous Release: 4808 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 4809 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 4810 Current Release: 4811 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 4812 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 4813 4814 48152) iASL Compiler/Disassembler and Tools: 4816 4817Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 4818prevent a possible fault on some hosts. Some C libraries modify the arg 4819pointer parameter to vfprintf making it difficult to call it twice in the 4820AcpiOsVprintf function. Use a local buffer to workaround this issue. This 4821does not affect the Windows OSL since the Win C library does not modify 4822the arg pointer. Chao Guan, Bob Moore. 4823 4824iASL: Fixed a possible infinite loop when the maximum error count is 4825reached. If an output file other than the .AML file is specified (such as 4826a listing file), and the maximum number of errors is reached, do not 4827attempt to flush data to the output file(s) as the compiler is aborting. 4828This can cause an infinite loop as the max error count code essentially 4829keeps calling itself. 4830 4831iASL/Disassembler: Added an option (-in) to ignore NOOP 4832opcodes/operators. 4833Implemented for both the compiler and the disassembler. Often, the NOOP 4834opcode is used as padding for packages that are changed dynamically by 4835the 4836BIOS. When disassembled and recompiled, these NOOPs will cause syntax 4837errors. This option causes the disassembler to ignore all NOOP opcodes 4838(0xA3), and it also causes the compiler to ignore all ASL source code 4839NOOP 4840statements as well. 4841 4842Debugger: Enhanced the Sleep command to execute all sleep states. This 4843change allows Sleep to be invoked with no arguments and causes the 4844debugger to execute all of the sleep states, 0-5, automatically. 4845 4846---------------------------------------- 484720 December 2012. Summary of changes for version 20121220: 4848 48491) ACPICA Kernel-resident Subsystem: 4850 4851Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 4852alternate entry point for AcpiWalkResources and improves the usability of 4853the resource manager by accepting as input a buffer containing the output 4854of either a _CRS, _PRS, or _AEI method. The key functionality is that the 4855input buffer is not deleted by this interface so that it can be used by 4856the host later. See the ACPICA reference for details. 4857 4858Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 4859(DSDT version < 2). The constant will be truncated and this warning 4860reflects that behavior. 4861 4862Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 4863ExtendedInterrupt, and GpioInt descriptors. This change adds support to 4864both get and set the new wake bit in these descriptors, separately from 4865the existing share bit. Reported by Aaron Lu. 4866 4867Interpreter: Fix Store() when an implicit conversion is not possible. For 4868example, in the cases such as a store of a string to an existing package 4869object, implement the store as a CopyObject(). This is a small departure 4870from the ACPI specification which states that the control method should 4871be 4872aborted in this case. However, the ASLTS suite depends on this behavior. 4873 4874Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 4875macros: check if debug output is currently enabled as soon as possible to 4876minimize performance impact if debug is in fact not enabled. 4877 4878Source code restructuring: Cleanup to improve modularity. The following 4879new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 4880psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 4881Associated makefiles and project files have been updated. 4882 4883Changed an exception code for LoadTable operator. For the case where one 4884of the input strings is too long, change the returned exception code from 4885AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 4886 4887Fixed a possible memory leak in dispatcher error path. On error, delete 4888the mutex object created during method mutex creation. Reported by 4889tim.gardner@canonical.com. 4890 4891Example Code and Data Size: These are the sizes for the OS-independent 4892acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4893debug version of the code includes the debug output trace mechanism and 4894has a much larger code and data size. 4895 4896 Previous Release: 4897 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 4898 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 4899 Current Release: 4900 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 4901 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 4902 4903 49042) iASL Compiler/Disassembler and Tools: 4905 4906iASL: Disallow a method call as argument to the ObjectType ASL operator. 4907This change tracks an errata to the ACPI 5.0 document. The AML grammar 4908will not allow the interpreter to differentiate between a method and a 4909method invocation when these are used as an argument to the ObjectType 4910operator. The ACPI specification change is to disallow a method 4911invocation 4912(UserTerm) for the ObjectType operator. 4913 4914Finish support for the TPM2 and CSRT tables in the headers, table 4915compiler, and disassembler. 4916 4917Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 4918always expires immediately if the semaphore is not available. The 4919original 4920code was using a relative-time timeout, but sem_timedwait requires the 4921use 4922of an absolute time. 4923 4924iASL: Added a remark if the Timer() operator is used within a 32-bit 4925table. This operator returns a 64-bit time value that will be truncated 4926within a 32-bit table. 4927 4928iASL Source code restructuring: Cleanup to improve modularity. The 4929following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 4930aslmethod.c, and aslfileio.c. Associated makefiles and project files have 4931been updated. 4932 4933 4934---------------------------------------- 493514 November 2012. Summary of changes for version 20121114: 4936 49371) ACPICA Kernel-resident Subsystem: 4938 4939Implemented a performance enhancement for ACPI/AML Package objects. This 4940change greatly increases the performance of Package objects within the 4941interpreter. It changes the processing of reference counts for packages 4942by 4943optimizing for the most common case where the package sub-objects are 4944either Integers, Strings, or Buffers. Increases the overall performance 4945of 4946the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 49472X.) 4948Chao Guan. ACPICA BZ 943. 4949 4950Implemented and deployed common macros to extract flag bits from resource 4951descriptors. Improves readability and maintainability of the code. Fixes 4952a 4953problem with the UART serial bus descriptor for the number of data bits 4954flags (was incorrectly 2 bits, should be 3). 4955 4956Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 4957of the macros and changed the SETx macros to the style of (destination, 4958source). Also added ACPI_CASTx companion macros. Lv Zheng. 4959 4960Example Code and Data Size: These are the sizes for the OS-independent 4961acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4962debug version of the code includes the debug output trace mechanism and 4963has a much larger code and data size. 4964 4965 Previous Release: 4966 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 4967 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 4968 Current Release: 4969 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 4970 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 4971 4972 49732) iASL Compiler/Disassembler and Tools: 4974 4975Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 4976adds the ShareAndWake and ExclusiveAndWake flags which were added to the 4977Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 4978 4979Disassembler: Fixed a problem with external declaration generation. Fixes 4980a problem where an incorrect pathname could be generated for an external 4981declaration if the original reference to the object includes leading 4982carats (^). ACPICA BZ 984. 4983 4984Debugger: Completed a major update for the Disassemble<method> command. 4985This command was out-of-date and did not properly disassemble control 4986methods that had any reasonable complexity. This fix brings the command 4987up 4988to the same level as the rest of the disassembler. Adds one new file, 4989dmdeferred.c, which is existing code that is now common with the main 4990disassembler and the debugger disassemble command. ACPICA MZ 978. 4991 4992iASL: Moved the parser entry prototype to avoid a duplicate declaration. 4993Newer versions of Bison emit this prototype, so moved the prototype out 4994of 4995the iASL header to where it is actually used in order to avoid a 4996duplicate 4997declaration. 4998 4999iASL/Tools: Standardized use of the stream I/O functions: 5000 1) Ensure check for I/O error after every fopen/fread/fwrite 5001 2) Ensure proper order of size/count arguments for fread/fwrite 5002 3) Use test of (Actual != Requested) after all fwrite, and most fread 5003 4) Standardize I/O error messages 5004Improves reliability and maintainability of the code. Bob Moore, Lv 5005Zheng. 5006ACPICA BZ 981. 5007 5008Disassembler: Prevent duplicate External() statements. During generation 5009of external statements, detect similar pathnames that are actually 5010duplicates such as these: 5011 External (\ABCD) 5012 External (ABCD) 5013Remove all leading '\' characters from pathnames during the external 5014statement generation so that duplicates will be detected and tossed. 5015ACPICA BZ 985. 5016 5017Tools: Replace low-level I/O with stream I/O functions. Replace 5018open/read/write/close with the stream I/O equivalents 5019fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 5020Moore. 5021 5022AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 5023name header so that AcpiXtract recognizes the output file/table. 5024 5025iASL: Remove obsolete -2 option flag. Originally intended to force the 5026compiler/disassembler into an ACPI 2.0 mode, this was never implemented 5027and the entire concept is now obsolete. 5028 5029---------------------------------------- 503018 October 2012. Summary of changes for version 20121018: 5031 5032 50331) ACPICA Kernel-resident Subsystem: 5034 5035Updated support for the ACPI 5.0 MPST table. Fixes some problems 5036introduced by late changes to the table as it was added to the ACPI 5.0 5037specification. Includes header, disassembler, and data table compiler 5038support as well as a new version of the MPST template. 5039 5040AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 50415.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 5042methods: _HID, _CID, and _UID. 5043 5044Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 5045ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 5046name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 5047names for their various drivers. Affects the AcpiGetObjectInfo external 5048interface, and other internal interfaces as well. 5049 5050Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 5051This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 5052on machines that support non-aligned transfers. Optimizes for this case 5053rather than using a strncpy. With assistance from Zheng Lv. 5054 5055Resource Manager: Small fix for buffer size calculation. Fixed a one byte 5056error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 5057 5058Added a new debug print message for AML mutex objects that are force- 5059released. At control method termination, any currently acquired mutex 5060objects are force-released. Adds a new debug-only message for each one 5061that is released. 5062 5063Audited/updated all ACPICA return macros and the function debug depth 5064counter: 1) Ensure that all functions that use the various TRACE macros 5065also use the appropriate ACPICA return macros. 2) Ensure that all normal 5066return statements surround the return expression (value) with parens to 5067ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 5068Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 5069 5070Global source code changes/maintenance: All extra lines at the start and 5071end of each source file have been removed for consistency. Also, within 5072comments, all new sentences start with a single space instead of a double 5073space, again for consistency across the code base. 5074 5075Example Code and Data Size: These are the sizes for the OS-independent 5076acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5077debug version of the code includes the debug output trace mechanism and 5078has a much larger code and data size. 5079 5080 Previous Release: 5081 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 5082 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 5083 Current Release: 5084 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 5085 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 5086 5087 50882) iASL Compiler/Disassembler and Tools: 5089 5090AcpiExec: Improved the algorithm used for memory leak/corruption 5091detection. Added some intelligence to the code that maintains the global 5092list of allocated memory. The list is now ordered by allocated memory 5093address, significantly improving performance. When running AcpiExec on 5094the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 5095on the platform and/or the environment. Note, this performance 5096enhancement affects the AcpiExec utility only, not the kernel-resident 5097ACPICA code. 5098 5099Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 5100the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 5101incorrect table offset reported for invalid opcodes. Report the original 510232-bit value for bad ACPI_NAMEs (as well as the repaired name.) 5103 5104Disassembler: Enhanced the -vt option to emit the binary table data in 5105hex format to assist with debugging. 5106 5107Fixed a potential filename buffer overflow in osunixdir.c. Increased the 5108size of file structure. Colin Ian King. 5109 5110---------------------------------------- 511113 September 2012. Summary of changes for version 20120913: 5112 5113 51141) ACPICA Kernel-resident Subsystem: 5115 5116ACPI 5.0: Added two new notify types for the Hardware Error Notification 5117Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 5118and 5119MCE(6). 5120 5121Table Manager: Merged/removed duplicate code in the root table resize 5122functions. One function is external, the other is internal. Lv Zheng, 5123ACPICA 5124BZ 846. 5125 5126Makefiles: Completely removed the obsolete "Linux" makefiles under 5127acpica/generate/linux. These makefiles are obsolete and have been 5128replaced 5129by 5130the generic unix makefiles under acpica/generate/unix. 5131 5132Makefiles: Ensure that binary files always copied properly. Minor rule 5133change 5134to ensure that the final binary output files are always copied up to the 5135appropriate binary directory (bin32 or bin64.) 5136 5137Example Code and Data Size: These are the sizes for the OS-independent 5138acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5139debug 5140version of the code includes the debug output trace mechanism and has a 5141much 5142larger code and data size. 5143 5144 Previous Release: 5145 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 5146 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 5147 Current Release: 5148 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 5149 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 5150 5151 51522) iASL Compiler/Disassembler and Tools: 5153 5154Disassembler: Fixed a possible fault during the disassembly of resource 5155descriptors when a second parse is required because of the invocation of 5156external control methods within the table. With assistance from 5157adq@lidskialf.net. ACPICA BZ 976. 5158 5159iASL: Fixed a namepath optimization problem. An error can occur if the 5160parse 5161node that contains the namepath to be optimized does not have a parent 5162node 5163that is a named object. This change fixes the problem. 5164 5165iASL: Fixed a regression where the AML file is not deleted on errors. The 5166AML 5167output file should be deleted if there are any errors during the 5168compiler. 5169The 5170only exception is if the -f (force output) option is used. ACPICA BZ 974. 5171 5172iASL: Added a feature to automatically increase internal line buffer 5173sizes. 5174Via realloc(), automatically increase the internal line buffer sizes as 5175necessary to support very long source code lines. The current version of 5176the 5177preprocessor requires a buffer long enough to contain full source code 5178lines. 5179This change increases the line buffer(s) if the input lines go beyond the 5180current buffer size. This eliminates errors that occurred when a source 5181code 5182line was longer than the buffer. 5183 5184iASL: Fixed a problem with constant folding in method declarations. The 5185SyncLevel term is a ByteConstExpr, and incorrect code would be generated 5186if a 5187Type3 opcode was used. 5188 5189Debugger: Improved command help support. For incorrect argument count, 5190display 5191full help for the command. For help command itself, allow an argument to 5192specify a command. 5193 5194Test Suites: Several bug fixes for the ASLTS suite reduces the number of 5195errors during execution of the suite. Guan Chao. 5196 5197---------------------------------------- 519816 August 2012. Summary of changes for version 20120816: 5199 5200 52011) ACPICA Kernel-resident Subsystem: 5202 5203Removed all use of the deprecated _GTS and _BFS predefined methods. The 5204_GTS 5205(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 5206deprecated and will probably be removed from the ACPI specification. 5207Windows 5208does not invoke them, and reportedly never will. The final nail in the 5209coffin 5210is that the ACPI specification states that these methods must be run with 5211interrupts off, which is not going to happen in a kernel interpreter. 5212Note: 5213Linux has removed all use of the methods also. It was discovered that 5214invoking these functions caused failures on some machines, probably 5215because 5216they were never tested since Windows does not call them. Affects two 5217external 5218interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 5219ACPICA BZ 969. 5220 5221Implemented support for complex bit-packed buffers returned from the _PLD 5222(Physical Location of Device) predefined method. Adds a new external 5223interface, AcpiDecodePldBuffer that parses the buffer into a more usable 5224C 5225structure. Note: C Bitfields cannot be used for this type of predefined 5226structure since the memory layout of individual bitfields is not defined 5227by 5228the C language. In addition, there are endian concerns where a compiler 5229will 5230change the bitfield ordering based on the machine type. The new ACPICA 5231interface eliminates these issues, and should be called after _PLD is 5232executed. ACPICA BZ 954. 5233 5234Implemented a change to allow a scope change to root (via "Scope (\)") 5235during 5236execution of module-level ASL code (code that is executed at table load 5237time.) Lin Ming. 5238 5239Added the Windows8/Server2012 string for the _OSI method. This change 5240adds 5241a 5242new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 52432012. 5244 5245Added header support for the new ACPI tables DBG2 (Debug Port Table Type 52462) 5247and CSRT (Core System Resource Table). 5248 5249Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 5250names. This simplifies access to the buffers returned by these predefined 5251names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 5252 5253GPE support: Removed an extraneous parameter from the various low-level 5254internal GPE functions. Tang Feng. 5255 5256Removed the linux makefiles from the unix packages. The generate/linux 5257makefiles are obsolete and have been removed from the unix tarball 5258release 5259packages. The replacement makefiles are under generate/unix, and there is 5260a 5261top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 5262 5263Updates for Unix makefiles: 52641) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 52652) Update linker flags (move to end of command line) for AcpiExec 5266utility. 5267Guan Chao. 5268 5269Split ACPICA initialization functions to new file, utxfinit.c. Split from 5270utxface.c to improve modularity and reduce file size. 5271 5272Example Code and Data Size: These are the sizes for the OS-independent 5273acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5274debug version of the code includes the debug output trace mechanism and 5275has a 5276much larger code and data size. 5277 5278 Previous Release: 5279 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 5280 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 5281 Current Release: 5282 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 5283 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 5284 5285 52862) iASL Compiler/Disassembler and Tools: 5287 5288iASL: Fixed a problem with constant folding for fixed-length constant 5289expressions. The constant-folding code was not being invoked for constant 5290expressions that allow the use of type 3/4/5 opcodes to generate 5291constants 5292for expressions such as ByteConstExpr, WordConstExpr, etc. This could 5293result 5294in the generation of invalid AML bytecode. ACPICA BZ 970. 5295 5296iASL: Fixed a generation issue on newer versions of Bison. Newer versions 5297apparently automatically emit some of the necessary externals. This 5298change 5299handles these versions in order to eliminate generation warnings. 5300 5301Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 5302 5303Disassembler: Add support to decode _PLD buffers. The decoded buffer 5304appears 5305within comments in the output file. 5306 5307Debugger: Fixed a regression with the "Threads" command where 5308AE_BAD_PARAMETER was always returned. 5309 5310---------------------------------------- 531111 July 2012. Summary of changes for version 20120711: 5312 53131) ACPICA Kernel-resident Subsystem: 5314 5315Fixed a possible fault in the return package object repair code. Fixes a 5316problem that can occur when a lone package object is wrapped with an 5317outer 5318package object in order to force conformance to the ACPI specification. 5319Can 5320affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 5321_DLM, 5322_CSD, _PSD, _TSD. 5323 5324Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 5325PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 5326ARB_DIS bit must be implemented in the host-dependent C3 processor power 5327state 5328support. Note, ARB_DIS is obsolete and only applies to older chipsets, 5329both 5330Intel and other vendors. (for Intel: ICH4-M and earlier) 5331 5332This change removes the code to disable/enable bus master arbitration 5333during 5334suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 5335causes 5336resume problems on some machines. The change has been in use for over 5337seven 5338years within Linux. 5339 5340Implemented two new external interfaces to support host-directed dynamic 5341ACPI 5342table load and unload. They are intended to simplify the host 5343implementation 5344of hot-plug support: 5345 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 5346 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 5347table. 5348See the ACPICA reference for additional details. Adds one new file, 5349components/tables/tbxfload.c 5350 5351Implemented and deployed two new interfaces for errors and warnings that 5352are 5353known to be caused by BIOS/firmware issues: 5354 AcpiBiosError: Prints "ACPI Firmware Error" message. 5355 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 5356Deployed these new interfaces in the ACPICA Table Manager code for ACPI 5357table 5358and FADT errors. Additional deployment to be completed as appropriate in 5359the 5360future. The associated conditional macros are ACPI_BIOS_ERROR and 5361ACPI_BIOS_WARNING. See the ACPICA reference for additional details. 5362ACPICA 5363BZ 5364843. 5365 5366Implicit notify support: ensure that no memory allocation occurs within a 5367critical region. This fix moves a memory allocation outside of the time 5368that a 5369spinlock is held. Fixes issues on systems that do not allow this 5370behavior. 5371Jung-uk Kim. 5372 5373Split exception code utilities and tables into a new file, 5374utilities/utexcep.c 5375 5376Example Code and Data Size: These are the sizes for the OS-independent 5377acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5378debug 5379version of the code includes the debug output trace mechanism and has a 5380much 5381larger code and data size. 5382 5383 Previous Release: 5384 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 5385 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 5386 Current Release: 5387 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 5388 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 5389 5390 53912) iASL Compiler/Disassembler and Tools: 5392 5393iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 5394of 53950. Jung-uk Kim. 5396 5397Debugger: Enhanced the "tables" command to emit additional information 5398about 5399the current set of ACPI tables, including the owner ID and flags decode. 5400 5401Debugger: Reimplemented the "unload" command to use the new 5402AcpiUnloadParentTable external interface. This command was disable 5403previously 5404due to need for an unload interface. 5405 5406AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 5407option 5408will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 5409 5410---------------------------------------- 541120 June 2012. Summary of changes for version 20120620: 5412 5413 54141) ACPICA Kernel-resident Subsystem: 5415 5416Implemented support to expand the "implicit notify" feature to allow 5417multiple 5418devices to be notified by a single GPE. This feature automatically 5419generates a 5420runtime device notification in the absence of a BIOS-provided GPE control 5421method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 5422notify is 5423provided by ACPICA for Windows compatibility, and is a workaround for 5424BIOS 5425AML 5426code errors. See the description of the AcpiSetupGpeForWake interface in 5427the 5428APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 5429 5430Changed some comments and internal function names to simplify and ensure 5431correctness of the Linux code translation. No functional changes. 5432 5433Example Code and Data Size: These are the sizes for the OS-independent 5434acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5435debug 5436version of the code includes the debug output trace mechanism and has a 5437much 5438larger code and data size. 5439 5440 Previous Release: 5441 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 5442 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 5443 Current Release: 5444 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 5445 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 5446 5447 54482) iASL Compiler/Disassembler and Tools: 5449 5450Disassembler: Added support to emit short, commented descriptions for the 5451ACPI 5452predefined names in order to improve the readability of the disassembled 5453output. ACPICA BZ 959. Changes include: 5454 1) Emit descriptions for all standard predefined names (_INI, _STA, 5455_PRW, 5456etc.) 5457 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 5458 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 5459etc.) 5460 5461AcpiSrc: Fixed several long-standing Linux code translation issues. 5462Argument 5463descriptions in function headers are now translated properly to lower 5464case 5465and 5466underscores. ACPICA BZ 961. Also fixes translation problems such as 5467these: 5468(old -> new) 5469 i_aSL -> iASL 5470 00-7_f -> 00-7F 5471 16_k -> 16K 5472 local_fADT -> local_FADT 5473 execute_oSI -> execute_OSI 5474 5475iASL: Fixed a problem where null bytes were inadvertently emitted into 5476some 5477listing files. 5478 5479iASL: Added the existing debug options to the standard help screen. There 5480are 5481no longer two different help screens. ACPICA BZ 957. 5482 5483AcpiHelp: Fixed some typos in the various predefined name descriptions. 5484Also 5485expand some of the descriptions where appropriate. 5486 5487iASL: Fixed the -ot option (display compile times/statistics). Was not 5488working 5489properly for standard output; only worked for the debug file case. 5490 5491---------------------------------------- 549218 May 2012. Summary of changes for version 20120518: 5493 5494 54951) ACPICA Core Subsystem: 5496 5497Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 5498defined 5499to block until asynchronous events such as notifies and GPEs have 5500completed. 5501Within ACPICA, it is only called before a notify or GPE handler is 5502removed/uninstalled. It also may be useful for the host OS within related 5503drivers such as the Embedded Controller driver. See the ACPICA reference 5504for 5505additional information. ACPICA BZ 868. 5506 5507ACPI Tables: Added a new error message for a possible overflow failure 5508during 5509the conversion of FADT 32-bit legacy register addresses to internal 5510common 551164- 5512bit GAS structure representation. The GAS has a one-byte "bit length" 5513field, 5514thus limiting the register length to 255 bits. ACPICA BZ 953. 5515 5516Example Code and Data Size: These are the sizes for the OS-independent 5517acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5518debug 5519version of the code includes the debug output trace mechanism and has a 5520much 5521larger code and data size. 5522 5523 Previous Release: 5524 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 5525 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 5526 Current Release: 5527 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 5528 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 5529 5530 55312) iASL Compiler/Disassembler and Tools: 5532 5533iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 5534macro. 5535This keyword was added late in the ACPI 5.0 release cycle and was not 5536implemented until now. 5537 5538Disassembler: Added support for Operation Region externals. Adds missing 5539support for operation regions that are defined in another table, and 5540referenced locally via a Field or BankField ASL operator. Now generates 5541the 5542correct External statement. 5543 5544Disassembler: Several additional fixes for the External() statement 5545generation 5546related to some ASL operators. Also, order the External() statements 5547alphabetically in the disassembler output. Fixes the External() 5548generation 5549for 5550the Create* field, Alias, and Scope operators: 5551 1) Create* buffer field operators - fix type mismatch warning on 5552disassembly 5553 2) Alias - implement missing External support 5554 3) Scope - fix to make sure all necessary externals are emitted. 5555 5556iASL: Improved pathname support. For include files, merge the prefix 5557pathname 5558with the file pathname and eliminate unnecessary components. Convert 5559backslashes in all pathnames to forward slashes, for readability. Include 5560file 5561pathname changes affect both #include and Include() type operators. 5562 5563iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 5564end 5565of a valid line by inserting a newline and then returning the EOF during 5566the 5567next call to GetNextLine. Prevents the line from being ignored due to EOF 5568condition. 5569 5570iASL: Implemented some changes to enhance the IDE support (-vi option.) 5571Error 5572and Warning messages are now correctly recognized for both the source 5573code 5574browser and the global error and warning counts. 5575 5576---------------------------------------- 557720 April 2012. Summary of changes for version 20120420: 5578 5579 55801) ACPICA Core Subsystem: 5581 5582Implemented support for multiple notify handlers. This change adds 5583support 5584to 5585allow multiple system and device notify handlers on Device, Thermal Zone, 5586and 5587Processor objects. This can simplify the host OS notification 5588implementation. 5589Also re-worked and restructured the entire notify support code to 5590simplify 5591handler installation, handler removal, notify event queuing, and notify 5592dispatch to handler(s). Note: there can still only be two global notify 5593handlers - one for system notifies and one for device notifies. There are 5594no 5595changes to the existing handler install/remove interfaces. Lin Ming, Bob 5596Moore, Rafael Wysocki. 5597 5598Fixed a regression in the package repair code where the object reference 5599count was calculated incorrectly. Regression was introduced in the commit 5600"Support to add Package wrappers". 5601 5602Fixed a couple possible memory leaks in the AML parser, in the error 5603recovery 5604path. Jesper Juhl, Lin Ming. 5605 5606Example Code and Data Size: These are the sizes for the OS-independent 5607acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5608debug version of the code includes the debug output trace mechanism and 5609has a 5610much larger code and data size. 5611 5612 Previous Release: 5613 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 5614 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 5615 Current Release: 5616 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 5617 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 5618 5619 56202) iASL Compiler/Disassembler and Tools: 5621 5622iASL: Fixed a problem with the resource descriptor support where the 5623length 5624of the StartDependentFn and StartDependentFnNoPrio descriptors were not 5625included in cumulative descriptor offset, resulting in incorrect values 5626for 5627resource tags within resource descriptors appearing after a 5628StartDependent* 5629descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 5630 5631iASL and Preprocessor: Implemented full support for the #line directive 5632to 5633correctly track original source file line numbers through the .i 5634preprocessor 5635output file - for error and warning messages. 5636 5637iASL: Expand the allowable byte constants for address space IDs. 5638Previously, 5639the allowable range was 0x80-0xFF (user-defined spaces), now the range is 56400x0A-0xFF to allow for custom and new IDs without changing the compiler. 5641 5642iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 5643 5644iASL: Add option to completely disable the preprocessor (-Pn). 5645 5646iASL: Now emit all error/warning messages to standard error (stderr) by 5647default (instead of the previous stdout). 5648 5649ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 5650Update 5651for resource descriptor offset fix above. Update/cleanup error output 5652routines. Enable and send iASL errors/warnings to an error logfile 5653(error.txt). Send all other iASL output to a logfile (compiler.txt). 5654Fixed 5655several extraneous "unrecognized operator" messages. 5656 5657---------------------------------------- 565820 March 2012. Summary of changes for version 20120320: 5659 5660 56611) ACPICA Core Subsystem: 5662 5663Enhanced the sleep/wake interfaces to optionally execute the _GTS method 5664(Going To Sleep) and the _BFS method (Back From Sleep). Windows 5665apparently 5666does not execute these methods, and therefore these methods are often 5667untested. It has been seen on some systems where the execution of these 5668methods causes errors and also prevents the machine from entering S5. It 5669is 5670therefore suggested that host operating systems do not execute these 5671methods 5672by default. In the future, perhaps these methods can be optionally 5673executed 5674based on the age of the system and/or what is the newest version of 5675Windows 5676that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 5677and 5678AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 5679Ming. 5680 5681Fixed a problem where the length of the local/common FADT was set too 5682early. 5683The local FADT table length cannot be set to the common length until the 5684original length has been examined. There is code that checks the table 5685length 5686and sets various fields appropriately. This can affect older machines 5687with 5688early FADT versions. For example, this can cause inadvertent writes to 5689the 5690CST_CNT register. Julian Anastasov. 5691 5692Fixed a mapping issue related to a physical table override. Use the 5693deferred 5694mapping mechanism for tables loaded via the physical override OSL 5695interface. 5696This allows for early mapping before the virtual memory manager is 5697available. 5698Thomas Renninger, Bob Moore. 5699 5700Enhanced the automatic return-object repair code: Repair a common problem 5701with 5702predefined methods that are defined to return a variable-length Package 5703of 5704sub-objects. If there is only one sub-object, some BIOS ASL code 5705mistakenly 5706simply returns the single object instead of a Package with one sub- 5707object. 5708This new support will repair this error by wrapping a Package object 5709around 5710the original object, creating the correct and expected Package with one 5711sub- 5712object. Names that can be repaired in this manner include: _ALR, _CSD, 5713_HPX, 5714_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 5715939. 5716 5717Changed the exception code returned for invalid ACPI paths passed as 5718parameters to external interfaces such as AcpiEvaluateObject. Was 5719AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 5720 5721Example Code and Data Size: These are the sizes for the OS-independent 5722acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5723debug 5724version of the code includes the debug output trace mechanism and has a 5725much 5726larger code and data size. 5727 5728 Previous Release: 5729 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 5730 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 5731 Current Release: 5732 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 5733 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 5734 5735 57362) iASL Compiler/Disassembler and Tools: 5737 5738iASL: Added the infrastructure and initial implementation of a integrated 5739C- 5740like preprocessor. This will simplify BIOS development process by 5741eliminating 5742the need for a separate preprocessing step during builds. On Windows, it 5743also 5744eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 5745features including full #define() macro support are still under 5746development. 5747These preprocessor directives are supported: 5748 #define 5749 #elif 5750 #else 5751 #endif 5752 #error 5753 #if 5754 #ifdef 5755 #ifndef 5756 #include 5757 #pragma message 5758 #undef 5759 #warning 5760In addition, these new command line options are supported: 5761 -D <symbol> Define symbol for preprocessor use 5762 -li Create preprocessed output file (*.i) 5763 -P Preprocess only and create preprocessor output file (*.i) 5764 5765Table Compiler: Fixed a problem where the equals operator within an 5766expression 5767did not work properly. 5768 5769Updated iASL to use the current versions of Bison/Flex. Updated the 5770Windows 5771project file to invoke these tools from the standard location. ACPICA BZ 5772904. 5773Versions supported: 5774 Flex for Windows: V2.5.4 5775 Bison for Windows: V2.4.1 5776 5777---------------------------------------- 577815 February 2012. Summary of changes for version 20120215: 5779 5780 57811) ACPICA Core Subsystem: 5782 5783There have been some major changes to the sleep/wake support code, as 5784described below (a - e). 5785 5786a) The AcpiLeaveSleepState has been split into two interfaces, similar to 5787AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 5788AcpiLeaveSleepStatePrep. This allows the host to perform actions between 5789the 5790time the _BFS method is called and the _WAK method is called. NOTE: all 5791hosts 5792must update their wake/resume code or else sleep/wake will not work 5793properly. 5794Rafael Wysocki. 5795 5796b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 5797_WAK 5798method. Some machines require that the GPEs are enabled before the _WAK 5799method 5800is executed. Thomas Renninger. 5801 5802c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) 5803bit. 5804Some BIOS code assumes that WAK_STS will be cleared on resume and use it 5805to 5806determine whether the system is rebooting or resuming. Matthew Garrett. 5807 5808d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 5809Sleep) to 5810match the ACPI specification requirement. Rafael Wysocki. 5811 5812e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 5813registers within the V5 FADT. This support adds two new files: 5814hardware/hwesleep.c implements the support for the new registers. Moved 5815all 5816sleep/wake external interfaces to hardware/hwxfsleep.c. 5817 5818 5819Added a new OSL interface for ACPI table overrides, 5820AcpiOsPhysicalTableOverride. This interface allows the host to override a 5821table via a physical address, instead of the logical address required by 5822AcpiOsTableOverride. This simplifies the host implementation. Initial 5823implementation by Thomas Renninger. The ACPICA implementation creates a 5824single 5825shared function for table overrides that attempts both a logical and a 5826physical override. 5827 5828Expanded the OSL memory read/write interfaces to 64-bit data 5829(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 5830transfer support for GAS register structures passed to AcpiRead and 5831AcpiWrite. 5832 5833Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 5834custom 5835build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 5836model. 5837See the ACPICA reference for details. ACPICA BZ 942. This option removes 5838about 583910% of the code and 5% of the static data, and the following hardware 5840ACPI 5841features become unavailable: 5842 PM Event and Control registers 5843 SCI interrupt (and handler) 5844 Fixed Events 5845 General Purpose Events (GPEs) 5846 Global Lock 5847 ACPI PM timer 5848 FACS table (Waking vectors and Global Lock) 5849 5850Updated the unix tarball directory structure to match the ACPICA git 5851source 5852tree. This ensures that the generic unix makefiles work properly (in 5853generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 5854867. 5855 5856Updated the return value of the _REV predefined method to integer value 5 5857to 5858reflect ACPI 5.0 support. 5859 5860Moved the external ACPI PM timer interface prototypes to the public 5861acpixf.h 5862file where they belong. 5863 5864Example Code and Data Size: These are the sizes for the OS-independent 5865acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5866debug 5867version of the code includes the debug output trace mechanism and has a 5868much 5869larger code and data size. 5870 5871 Previous Release: 5872 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 5873 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 5874 Current Release: 5875 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 5876 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 5877 5878 58792) iASL Compiler/Disassembler and Tools: 5880 5881Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 5882descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 5883incorrectly displayed. 5884 5885AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 5886specification. 5887 5888---------------------------------------- 588911 January 2012. Summary of changes for version 20120111: 5890 5891 58921) ACPICA Core Subsystem: 5893 5894Implemented a new mechanism to allow host device drivers to check for 5895address 5896range conflicts with ACPI Operation Regions. Both SystemMemory and 5897SystemIO 5898address spaces are supported. A new external interface, 5899AcpiCheckAddressRange, 5900allows drivers to check an address range against the ACPI namespace. See 5901the 5902ACPICA reference for additional details. Adds one new file, 5903utilities/utaddress.c. Lin Ming, Bob Moore. 5904 5905Fixed several issues with the ACPI 5.0 FADT support: Add the sleep 5906Control 5907and 5908Status registers, update the ACPI 5.0 flags, and update internal data 5909structures to handle an FADT larger than 256 bytes. The size of the ACPI 59105.0 5911FADT is 268 bytes. 5912 5913Updated all ACPICA copyrights and signons to 2012. Added the 2012 5914copyright to 5915all module headers and signons, including the standard Linux header. This 5916affects virtually every file in the ACPICA core subsystem, iASL compiler, 5917and 5918all ACPICA utilities. 5919 5920Example Code and Data Size: These are the sizes for the OS-independent 5921acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5922debug 5923version of the code includes the debug output trace mechanism and has a 5924much 5925larger code and data size. 5926 5927 Previous Release: 5928 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 5929 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 5930 Current Release: 5931 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 5932 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 5933 5934 59352) iASL Compiler/Disassembler and Tools: 5936 5937Disassembler: fixed a problem with the automatic resource tag generation 5938support. Fixes a problem where the resource tags are inadvertently not 5939constructed if the table being disassembled contains external references 5940to 5941control methods. Moved the actual construction of the tags to after the 5942final 5943namespace is constructed (after 2nd parse is invoked due to external 5944control 5945method references.) ACPICA BZ 941. 5946 5947Table Compiler: Make all "generic" operators caseless. These are the 5948operators 5949like UINT8, String, etc. Making these caseless improves ease-of-use. 5950ACPICA BZ 5951934. 5952 5953---------------------------------------- 595423 November 2011. Summary of changes for version 20111123: 5955 59560) ACPI 5.0 Support: 5957 5958This release contains full support for the ACPI 5.0 specification, as 5959summarized below. 5960 5961Reduced Hardware Support: 5962------------------------- 5963 5964This support allows for ACPI systems without the usual ACPI hardware. 5965This 5966support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 5967will 5968not attempt to initialize or use any of the usual ACPI hardware. Note, 5969when 5970this flag is set, all of the following ACPI hardware is assumed to be not 5971present and is not initialized or accessed: 5972 5973 General Purpose Events (GPEs) 5974 Fixed Events (PM1a/PM1b and PM Control) 5975 Power Management Timer and Console Buttons (power/sleep) 5976 Real-time Clock Alarm 5977 Global Lock 5978 System Control Interrupt (SCI) 5979 The FACS is assumed to be non-existent 5980 5981ACPI Tables: 5982------------ 5983 5984All new tables and updates to existing tables are fully supported in the 5985ACPICA headers (for use by device drivers), the disassembler, and the 5986iASL 5987Data Table Compiler. ACPI 5.0 defines these new tables: 5988 5989 BGRT /* Boot Graphics Resource Table */ 5990 DRTM /* Dynamic Root of Trust for Measurement table */ 5991 FPDT /* Firmware Performance Data Table */ 5992 GTDT /* Generic Timer Description Table */ 5993 MPST /* Memory Power State Table */ 5994 PCCT /* Platform Communications Channel Table */ 5995 PMTT /* Platform Memory Topology Table */ 5996 RASF /* RAS Feature table */ 5997 5998Operation Regions/SpaceIDs: 5999--------------------------- 6000 6001All new operation regions are fully supported by the iASL compiler, the 6002disassembler, and the ACPICA runtime code (for dispatch to region 6003handlers.) 6004The new operation region Space IDs are: 6005 6006 GeneralPurposeIo 6007 GenericSerialBus 6008 6009Resource Descriptors: 6010--------------------- 6011 6012All new ASL resource descriptors are fully supported by the iASL 6013compiler, 6014the 6015ASL/AML disassembler, and the ACPICA runtime Resource Manager code 6016(including 6017all new predefined resource tags). New descriptors are: 6018 6019 FixedDma 6020 GpioIo 6021 GpioInt 6022 I2cSerialBus 6023 SpiSerialBus 6024 UartSerialBus 6025 6026ASL/AML Operators, New and Modified: 6027------------------------------------ 6028 6029One new operator is added, the Connection operator, which is used to 6030associate 6031a GeneralPurposeIo or GenericSerialBus resource descriptor with 6032individual 6033field objects within an operation region. Several new protocols are 6034associated 6035with the AccessAs operator. All are fully supported by the iASL compiler, 6036disassembler, and runtime ACPICA AML interpreter: 6037 6038 Connection // Declare Field Connection 6039attributes 6040 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 6041 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes 6042Protocol 6043 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 6044 RawDataBuffer // Data type for Vendor Data 6045fields 6046 6047Predefined ASL/AML Objects: 6048--------------------------- 6049 6050All new predefined objects/control-methods are supported by the iASL 6051compiler 6052and the ACPICA runtime validation/repair (arguments and return values.) 6053New 6054predefined names include the following: 6055 6056Standard Predefined Names (Objects or Control Methods): 6057 _AEI, _CLS, _CPC, _CWS, _DEP, 6058 _DLM, _EVT, _GCP, _CRT, _GWS, 6059 _HRV, _PRE, _PSE, _SRT, _SUB. 6060 6061Resource Tags (Names used to access individual fields within resource 6062descriptors): 6063 _DBT, _DPL, _DRS, _END, _FLC, 6064 _IOR, _LIN, _MOD, _PAR, _PHA, 6065 _PIN, _PPI, _POL, _RXL, _SLV, 6066 _SPE, _STB, _TXL, _VEN. 6067 6068ACPICA External Interfaces: 6069--------------------------- 6070 6071Several new interfaces have been defined for use by ACPI-related device 6072drivers and other host OS services: 6073 6074AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 6075to 6076acquire and release AML mutexes that are defined in the DSDT/SSDT tables 6077provided by the BIOS. They are intended to be used in conjunction with 6078the 6079ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 6080mutual exclusion with the AML code/interpreter. 6081 6082AcpiGetEventResources: Returns the (formatted) resource descriptors as 6083defined 6084by the ACPI 5.0 _AEI object (ACPI Event Information). This object 6085provides 6086resource descriptors associated with hardware-reduced platform events, 6087similar 6088to the AcpiGetCurrentResources interface. 6089 6090Operation Region Handlers: For General Purpose IO and Generic Serial Bus 6091operation regions, information about the Connection() object and any 6092optional 6093length information is passed to the region handler within the Context 6094parameter. 6095 6096AcpiBufferToResource: This interface converts a raw AML buffer containing 6097a 6098resource template or resource descriptor to the ACPI_RESOURCE internal 6099format 6100suitable for use by device drivers. Can be used by an operation region 6101handler 6102to convert the Connection() buffer object into a ACPI_RESOURCE. 6103 6104Miscellaneous/Tools/TestSuites: 6105------------------------------- 6106 6107Support for extended _HID names (Four alpha characters instead of three). 6108Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 6109Support for ACPI 5.0 features in the ASLTS test suite. 6110Fully updated documentation (ACPICA and iASL reference documents.) 6111 6112ACPI Table Definition Language: 6113------------------------------- 6114 6115Support for this language was implemented and released as a subsystem of 6116the 6117iASL compiler in 2010. (See the iASL compiler User Guide.) 6118 6119 6120Non-ACPI 5.0 changes for this release: 6121-------------------------------------- 6122 61231) ACPICA Core Subsystem: 6124 6125Fix a problem with operation region declarations where a failure can 6126occur 6127if 6128the region name and an argument that evaluates to an object (such as the 6129region address) are in different namespace scopes. Lin Ming, ACPICA BZ 6130937. 6131 6132Do not abort an ACPI table load if an invalid space ID is found within. 6133This 6134will be caught later if the offending method is executed. ACPICA BZ 925. 6135 6136Fixed an issue with the FFixedHW space ID where the ID was not always 6137recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 6138 6139Fixed a problem with the 32-bit generation of the unix-specific OSL 6140(osunixxf.c). Lin Ming, ACPICA BZ 936. 6141 6142Several changes made to enable generation with the GCC 4.6 compiler. 6143ACPICA BZ 6144935. 6145 6146New error messages: Unsupported I/O requests (not 8/16/32 bit), and 6147Index/Bank 6148field registers out-of-range. 6149 61502) iASL Compiler/Disassembler and Tools: 6151 6152iASL: Implemented the __PATH__ operator, which returns the full pathname 6153of 6154the current source file. 6155 6156AcpiHelp: Automatically display expanded keyword information for all ASL 6157operators. 6158 6159Debugger: Add "Template" command to disassemble/dump resource template 6160buffers. 6161 6162Added a new master script to generate and execute the ASLTS test suite. 6163Automatically handles 32- and 64-bit generation. See tests/aslts.sh 6164 6165iASL: Fix problem with listing generation during processing of the 6166Switch() 6167operator where AML listing was disabled until the entire Switch block was 6168completed. 6169 6170iASL: Improve support for semicolon statement terminators. Fix "invalid 6171character" message for some cases when the semicolon is used. Semicolons 6172are 6173now allowed after every <Term> grammar element. ACPICA BZ 927. 6174 6175iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 6176923. 6177 6178Disassembler: Fix problem with disassembly of the DataTableRegion 6179operator 6180where an inadvertent "Unhandled deferred opcode" message could be 6181generated. 6182 61833) Example Code and Data Size 6184 6185These are the sizes for the OS-independent acpica.lib produced by the 6186Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 6187includes the debug output trace mechanism and has a much larger code and 6188data 6189size. 6190 6191 Previous Release: 6192 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6193 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6194 Current Release: 6195 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 6196 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 6197 6198---------------------------------------- 619922 September 2011. Summary of changes for version 20110922: 6200 62010) ACPI 5.0 News: 6202 6203Support for ACPI 5.0 in ACPICA has been underway for several months and 6204will 6205be released at the same time that ACPI 5.0 is officially released. 6206 6207The ACPI 5.0 specification is on track for release in the next few 6208months. 6209 62101) ACPICA Core Subsystem: 6211 6212Fixed a problem where the maximum sleep time for the Sleep() operator was 6213intended to be limited to two seconds, but was inadvertently limited to 621420 6215seconds instead. 6216 6217Linux and Unix makefiles: Added header file dependencies to ensure 6218correct 6219generation of ACPICA core code and utilities. Also simplified the 6220makefiles 6221considerably through the use of the vpath variable to specify search 6222paths. 6223ACPICA BZ 924. 6224 62252) iASL Compiler/Disassembler and Tools: 6226 6227iASL: Implemented support to check the access length for all fields 6228created to 6229access named Resource Descriptor fields. For example, if a resource field 6230is 6231defined to be two bits, a warning is issued if a CreateXxxxField() is 6232used 6233with an incorrect bit length. This is implemented for all current 6234resource 6235descriptor names. ACPICA BZ 930. 6236 6237Disassembler: Fixed a byte ordering problem with the output of 24-bit and 623856- 6239bit integers. 6240 6241iASL: Fixed a couple of issues associated with variable-length package 6242objects. 1) properly handle constants like One, Ones, Zero -- do not make 6243a 6244VAR_PACKAGE when these are used as a package length. 2) Allow the 6245VAR_PACKAGE 6246opcode (in addition to PACKAGE) when validating object types for 6247predefined 6248names. 6249 6250iASL: Emit statistics for all output files (instead of just the ASL input 6251and 6252AML output). Includes listings, hex files, etc. 6253 6254iASL: Added -G option to the table compiler to allow the compilation of 6255custom 6256ACPI tables. The only part of a table that is required is the standard 625736- 6258byte 6259ACPI header. 6260 6261AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 6262headers), 6263which also adds correct 64-bit support. Also, now all output filenames 6264are 6265completely lower case. 6266 6267AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 6268loading table files. A warning is issued for any such tables. The only 6269exception is an FADT. This also fixes a possible fault when attempting to 6270load 6271non-AML tables. ACPICA BZ 932. 6272 6273AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where 6274a 6275missing table terminator could cause a fault when using the -p option. 6276 6277AcpiSrc: Fixed a possible divide-by-zero fault when generating file 6278statistics. 6279 62803) Example Code and Data Size 6281 6282These are the sizes for the OS-independent acpica.lib produced by the 6283Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 6284includes the debug output trace mechanism and has a much larger code and 6285data 6286size. 6287 6288 Previous Release (VC 9.0): 6289 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6290 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6291 Current Release (VC 9.0): 6292 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6293 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6294 6295 6296---------------------------------------- 629723 June 2011. Summary of changes for version 20110623: 6298 62991) ACPI CA Core Subsystem: 6300 6301Updated the predefined name repair mechanism to not attempt repair of a 6302_TSS 6303return object if a _PSS object is present. We can only sort the _TSS 6304return 6305package if there is no _PSS within the same scope. This is because if 6306_PSS 6307is 6308present, the ACPI specification dictates that the _TSS Power Dissipation 6309field 6310is to be ignored, and therefore some BIOSs leave garbage values in the 6311_TSS 6312Power field(s). In this case, it is best to just return the _TSS package 6313as- 6314is. Reported by, and fixed with assistance from Fenghua Yu. 6315 6316Added an option to globally disable the control method return value 6317validation 6318and repair. This runtime option can be used to disable return value 6319repair 6320if 6321this is causing a problem on a particular machine. Also added an option 6322to 6323AcpiExec (-dr) to set this disable flag. 6324 6325All makefiles and project files: Major changes to improve generation of 6326ACPICA 6327tools. ACPICA BZ 912: 6328 Reduce default optimization levels to improve compatibility 6329 For Linux, add strict-aliasing=0 for gcc 4 6330 Cleanup and simplify use of command line defines 6331 Cleanup multithread library support 6332 Improve usage messages 6333 6334Linux-specific header: update handling of THREAD_ID and pthread. For the 633532- 6336bit case, improve casting to eliminate possible warnings, especially with 6337the 6338acpica tools. 6339 6340Example Code and Data Size: These are the sizes for the OS-independent 6341acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6342debug 6343version of the code includes the debug output trace mechanism and has a 6344much 6345larger code and data size. 6346 6347 Previous Release (VC 9.0): 6348 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 6349 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6350 Current Release (VC 9.0): 6351 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6352 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6353 63542) iASL Compiler/Disassembler and Tools: 6355 6356With this release, a new utility named "acpihelp" has been added to the 6357ACPICA 6358package. This utility summarizes the ACPI specification chapters for the 6359ASL 6360and AML languages. It generates under Linux/Unix as well as Windows, and 6361provides the following functionality: 6362 Find/display ASL operator(s) -- with description and syntax. 6363 Find/display ASL keyword(s) -- with exact spelling and descriptions. 6364 Find/display ACPI predefined name(s) -- with description, number 6365 of arguments, and the return value data type. 6366 Find/display AML opcode name(s) -- with opcode, arguments, and 6367grammar. 6368 Decode/display AML opcode -- with opcode name, arguments, and 6369grammar. 6370 6371Service Layers: Make multi-thread support configurable. Conditionally 6372compile 6373the multi-thread support so that threading libraries will not be linked 6374if 6375not 6376necessary. The only tool that requires multi-thread support is AcpiExec. 6377 6378iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 6379of 6380Bison appear to want the interface to yyerror to be a const char * (or at 6381least this is a problem when generating iASL on some systems.) ACPICA BZ 6382923 6383Pierre Lejeune. 6384 6385Tools: Fix for systems where O_BINARY is not defined. Only used for 6386Windows 6387versions of the tools. 6388 6389---------------------------------------- 639027 May 2011. Summary of changes for version 20110527: 6391 63921) ACPI CA Core Subsystem: 6393 6394ASL Load() operator: Reinstate most restrictions on the incoming ACPI 6395table 6396signature. Now, only allow SSDT, OEMx, and a null signature. History: 6397 1) Originally, we checked the table signature for "SSDT" or "PSDT". 6398 (PSDT is now obsolete.) 6399 2) We added support for OEMx tables, signature "OEM" plus a fourth 6400 "don't care" character. 6401 3) Valid tables were encountered with a null signature, so we just 6402 gave up on validating the signature, (05/2008). 6403 4) We encountered non-AML tables such as the MADT, which caused 6404 interpreter errors and kernel faults. So now, we once again allow 6405 only SSDT, OEMx, and now, also a null signature. (05/2011). 6406 6407Added the missing _TDL predefined name to the global name list in order 6408to 6409enable validation. Affects both the core ACPICA code and the iASL 6410compiler. 6411 6412Example Code and Data Size: These are the sizes for the OS-independent 6413acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6414debug 6415version of the code includes the debug output trace mechanism and has a 6416much 6417larger code and data size. 6418 6419 Previous Release (VC 9.0): 6420 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 6421 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 6422 Current Release (VC 9.0): 6423 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 6424 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6425 64262) iASL Compiler/Disassembler and Tools: 6427 6428Debugger/AcpiExec: Implemented support for "complex" method arguments on 6429the 6430debugger command line. This adds support beyond simple integers -- 6431including 6432Strings, Buffers, and Packages. Includes support for nested packages. 6433Increased the default command line buffer size to accommodate these 6434arguments. 6435See the ACPICA reference for details and syntax. ACPICA BZ 917. 6436 6437Debugger/AcpiExec: Implemented support for "default" method arguments for 6438the 6439Execute/Debug command. Now, the debugger will always invoke a control 6440method 6441with the required number of arguments -- even if the command line 6442specifies 6443none or insufficient arguments. It uses default integer values for any 6444missing 6445arguments. Also fixes a bug where only six method arguments maximum were 6446supported instead of the required seven. 6447 6448Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 6449and 6450also return status in order to prevent buffer overruns. See the ACPICA 6451reference for details and syntax. ACPICA BZ 921 6452 6453iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 6454makefiles to simplify support for the two different but similar parser 6455generators, bison and yacc. 6456 6457Updated the generic unix makefile for gcc 4. The default gcc version is 6458now 6459expected to be 4 or greater, since options specific to gcc 4 are used. 6460 6461---------------------------------------- 646213 April 2011. Summary of changes for version 20110413: 6463 64641) ACPI CA Core Subsystem: 6465 6466Implemented support to execute a so-called "orphan" _REG method under the 6467EC 6468device. This change will force the execution of a _REG method underneath 6469the 6470EC 6471device even if there is no corresponding operation region of type 6472EmbeddedControl. Fixes a problem seen on some machines and apparently is 6473compatible with Windows behavior. ACPICA BZ 875. 6474 6475Added more predefined methods that are eligible for automatic NULL 6476package 6477element removal. This change adds another group of predefined names to 6478the 6479list 6480of names that can be repaired by having NULL package elements dynamically 6481removed. This group are those methods that return a single variable- 6482length 6483package containing simple data types such as integers, buffers, strings. 6484This 6485includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 6486_PSL, 6487_Sx, 6488and _TZD. ACPICA BZ 914. 6489 6490Split and segregated all internal global lock functions to a new file, 6491evglock.c. 6492 6493Updated internal address SpaceID for DataTable regions. Moved this 6494internal 6495space 6496id in preparation for ACPI 5.0 changes that will include some new space 6497IDs. 6498This 6499change should not affect user/host code. 6500 6501Example Code and Data Size: These are the sizes for the OS-independent 6502acpica.lib 6503produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 6504version of 6505the code includes the debug output trace mechanism and has a much larger 6506code 6507and 6508data size. 6509 6510 Previous Release (VC 9.0): 6511 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 6512 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 6513 Current Release (VC 9.0): 6514 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 6515 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 6516 65172) iASL Compiler/Disassembler and Tools: 6518 6519iASL/DTC: Major update for new grammar features. Allow generic data types 6520in 6521custom ACPI tables. Field names are now optional. Any line can be split 6522to 6523multiple lines using the continuation char (\). Large buffers now use 6524line- 6525continuation character(s) and no colon on the continuation lines. See the 6526grammar 6527update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 6528Moore. 6529 6530iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 6531statements. 6532Since the parser stuffs a "zero" as the return value for these statements 6533(due 6534to 6535the underlying AML grammar), they were seen as "return with value" by the 6536iASL 6537semantic checking. They are now seen correctly as "null" return 6538statements. 6539 6540iASL: Check if a_REG declaration has a corresponding Operation Region. 6541Adds a 6542check for each _REG to ensure that there is in fact a corresponding 6543operation 6544region declaration in the same scope. If not, the _REG method is not very 6545useful 6546since it probably won't be executed. ACPICA BZ 915. 6547 6548iASL/DTC: Finish support for expression evaluation. Added a new 6549expression 6550parser 6551that implements c-style operator precedence and parenthesization. ACPICA 6552bugzilla 6553908. 6554 6555Disassembler/DTC: Remove support for () and <> style comments in data 6556tables. 6557Now 6558that DTC has full expression support, we don't want to have comment 6559strings 6560that 6561start with a parentheses or a less-than symbol. Now, only the standard /* 6562and 6563// 6564comments are supported, as well as the bracket [] comments. 6565 6566AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 6567"unusual" 6568headers in the acpidump file. Update the header validation to support 6569these 6570tables. Problem introduced in previous AcpiXtract version in the change 6571to 6572support "wrong checksum" error messages emitted by acpidump utility. 6573 6574iASL: Add a * option to generate all template files (as a synonym for 6575ALL) 6576as 6577in 6578"iasl -T *" or "iasl -T ALL". 6579 6580iASL/DTC: Do not abort compiler on fatal errors. We do not want to 6581completely 6582abort the compiler on "fatal" errors, simply should abort the current 6583compile. 6584This allows multiple compiles with a single (possibly wildcard) compiler 6585invocation. 6586 6587---------------------------------------- 658816 March 2011. Summary of changes for version 20110316: 6589 65901) ACPI CA Core Subsystem: 6591 6592Fixed a problem caused by a _PRW method appearing at the namespace root 6593scope 6594during the setup of wake GPEs. A fault could occur if a _PRW directly 6595under 6596the 6597root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 6598 6599Implemented support for "spurious" Global Lock interrupts. On some 6600systems, a 6601global lock interrupt can occur without the pending flag being set. Upon 6602a 6603GL 6604interrupt, we now ensure that a thread is actually waiting for the lock 6605before 6606signaling GL availability. Rafael Wysocki, Bob Moore. 6607 6608Example Code and Data Size: These are the sizes for the OS-independent 6609acpica.lib 6610produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 6611version of 6612the code includes the debug output trace mechanism and has a much larger 6613code 6614and 6615data size. 6616 6617 Previous Release (VC 9.0): 6618 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 6619 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 6620 Current Release (VC 9.0): 6621 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 6622 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 6623 66242) iASL Compiler/Disassembler and Tools: 6625 6626Implemented full support for the "SLIC" ACPI table. Includes support in 6627the 6628header files, disassembler, table compiler, and template generator. Bob 6629Moore, 6630Lin Ming. 6631 6632AcpiXtract: Correctly handle embedded comments and messages from 6633AcpiDump. 6634Apparently some or all versions of acpidump will occasionally emit a 6635comment 6636like 6637"Wrong checksum", etc., into the dump file. This was causing problems for 6638AcpiXtract. ACPICA BZ 905. 6639 6640iASL: Fix the Linux makefile by removing an inadvertent double file 6641inclusion. 6642ACPICA BZ 913. 6643 6644AcpiExec: Update installation of operation region handlers. Install one 6645handler 6646for a user-defined address space. This is used by the ASL test suite 6647(ASLTS). 6648 6649---------------------------------------- 665011 February 2011. Summary of changes for version 20110211: 6651 66521) ACPI CA Core Subsystem: 6653 6654Added a mechanism to defer _REG methods for some early-installed 6655handlers. 6656Most user handlers should be installed before call to 6657AcpiEnableSubsystem. 6658However, Event handlers and region handlers should be installed after 6659AcpiInitializeObjects. Override handlers for the "default" regions should 6660be 6661installed early, however. This change executes all _REG methods for the 6662default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 6663chicken/egg issues between them. ACPICA BZ 848. 6664 6665Implemented an optimization for GPE detection. This optimization will 6666simply 6667ignore GPE registers that contain no enabled GPEs -- there is no need to 6668read the register since this information is available internally. This 6669becomes more important on machines with a large GPE space. ACPICA 6670bugzilla 6671884. Lin Ming. Suggestion from Joe Liu. 6672 6673Removed all use of the highly unreliable FADT revision field. The 6674revision 6675number in the FADT has been found to be completely unreliable and cannot 6676be 6677trusted. Only the actual table length can be used to infer the version. 6678This 6679change updates the ACPICA core and the disassembler so that both no 6680longer 6681even look at the FADT version and instead depend solely upon the FADT 6682length. 6683 6684Fix an unresolved name issue for the no-debug and no-error-message source 6685generation cases. The _AcpiModuleName was left undefined in these cases, 6686but 6687it is actually needed as a parameter to some interfaces. Define 6688_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 6689 6690Split several large files (makefiles and project files updated) 6691 utglobal.c -> utdecode.c 6692 dbcomds.c -> dbmethod.c dbnames.c 6693 dsopcode.c -> dsargs.c dscontrol.c 6694 dsload.c -> dsload2.c 6695 aslanalyze.c -> aslbtypes.c aslwalks.c 6696 6697Example Code and Data Size: These are the sizes for the OS-independent 6698acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6699debug version of the code includes the debug output trace mechanism and 6700has 6701a much larger code and data size. 6702 6703 Previous Release (VC 9.0): 6704 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 6705 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 6706 Current Release (VC 9.0): 6707 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 6708 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 6709 67102) iASL Compiler/Disassembler and Tools: 6711 6712iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 6713These are useful C-style macros with the standard definitions. ACPICA 6714bugzilla 898. 6715 6716iASL/DTC: Added support for integer expressions and labels. Support for 6717full 6718expressions for all integer fields in all ACPI tables. Support for labels 6719in 6720"generic" portions of tables such as UEFI. See the iASL reference manual. 6721 6722Debugger: Added a command to display the status of global handlers. The 6723"handlers" command will display op region, fixed event, and miscellaneous 6724global handlers. installation status -- and for op regions, whether 6725default 6726or user-installed handler will be used. 6727 6728iASL: Warn if reserved method incorrectly returns a value. Many 6729predefined 6730names are defined such that they do not return a value. If implemented as 6731a 6732method, issue a warning if such a name explicitly returns a value. ACPICA 6733Bugzilla 855. 6734 6735iASL: Added detection of GPE method name conflicts. Detects a conflict 6736where 6737there are two GPE methods of the form _Lxy and _Exy in the same scope. 6738(For 6739example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 6740 6741iASL/DTC: Fixed a couple input scanner issues with comments and line 6742numbers. Comment remover could get confused and miss a comment ending. 6743Fixed 6744a problem with line counter maintenance. 6745 6746iASL/DTC: Reduced the severity of some errors from fatal to error. There 6747is 6748no need to abort on simple errors within a field definition. 6749 6750Debugger: Simplified the output of the help command. All help output now 6751in 6752a single screen, instead of help subcommands. ACPICA Bugzilla 897. 6753 6754---------------------------------------- 675512 January 2011. Summary of changes for version 20110112: 6756 67571) ACPI CA Core Subsystem: 6758 6759Fixed a race condition between method execution and namespace walks that 6760can 6761possibly cause a fault. The problem was apparently introduced in version 676220100528 as a result of a performance optimization that reduces the 6763number 6764of 6765namespace walks upon method exit by using the delete_namespace_subtree 6766function instead of the delete_namespace_by_owner function used 6767previously. 6768Bug is a missing namespace lock in the delete_namespace_subtree function. 6769dana.myers@oracle.com 6770 6771Fixed several issues and a possible fault with the automatic "serialized" 6772method support. History: This support changes a method to "serialized" on 6773the 6774fly if the method generates an AE_ALREADY_EXISTS error, indicating the 6775possibility that it cannot handle reentrancy. This fix repairs a couple 6776of 6777issues seen in the field, especially on machines with many cores: 6778 6779 1) Delete method children only upon the exit of the last thread, 6780 so as to not delete objects out from under other running threads 6781 (and possibly causing a fault.) 6782 2) Set the "serialized" bit for the method only upon the exit of the 6783 Last thread, so as to not cause deadlock when running threads 6784 attempt to exit. 6785 3) Cleanup the use of the AML "MethodFlags" and internal method flags 6786 so that there is no longer any confusion between the two. 6787 6788 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 6789 6790Debugger: Now lock the namespace for duration of a namespace dump. 6791Prevents 6792issues if the namespace is changing dynamically underneath the debugger. 6793Especially affects temporary namespace nodes, since the debugger displays 6794these also. 6795 6796Updated the ordering of include files. The ACPICA headers should appear 6797before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 6798set 6799any necessary compiler-specific defines, etc. Affects the ACPI-related 6800tools 6801and utilities. 6802 6803Updated all ACPICA copyrights and signons to 2011. Added the 2011 6804copyright 6805to all module headers and signons, including the Linux header. This 6806affects 6807virtually every file in the ACPICA core subsystem, iASL compiler, and all 6808utilities. 6809 6810Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 6811project files for VC++ 6.0 are now obsolete. New project files can be 6812found 6813under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 6814details. 6815 6816Example Code and Data Size: These are the sizes for the OS-independent 6817acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6818debug version of the code includes the debug output trace mechanism and 6819has a 6820much larger code and data size. 6821 6822 Previous Release (VC 6.0): 6823 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 6824 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 6825 Current Release (VC 9.0): 6826 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 6827 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 6828 68292) iASL Compiler/Disassembler and Tools: 6830 6831iASL: Added generic data types to the Data Table compiler. Add "generic" 6832data 6833types such as UINT32, String, Unicode, etc., to simplify the generation 6834of 6835platform-defined tables such as UEFI. Lin Ming. 6836 6837iASL: Added listing support for the Data Table Compiler. Adds listing 6838support 6839(-l) to display actual binary output for each line of input code. 6840 6841---------------------------------------- 684209 December 2010. Summary of changes for version 20101209: 6843 68441) ACPI CA Core Subsystem: 6845 6846Completed the major overhaul of the GPE support code that was begun in 6847July 68482010. Major features include: removal of _PRW execution in ACPICA (host 6849executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 6850changes to existing interfaces, simplification of GPE handler operation, 6851and 6852a handful of new interfaces: 6853 6854 AcpiUpdateAllGpes 6855 AcpiFinishGpe 6856 AcpiSetupGpeForWake 6857 AcpiSetGpeWakeMask 6858 One new file, evxfgpe.c to consolidate all external GPE interfaces. 6859 6860See the ACPICA Programmer Reference for full details and programming 6861information. See the new section 4.4 "General Purpose Event (GPE) 6862Support" 6863for a full overview, and section 8.7 "ACPI General Purpose Event 6864Management" 6865for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin 6866Ming, 6867Bob Moore, Rafael Wysocki. 6868 6869Implemented a new GPE feature for Windows compatibility, the "Implicit 6870Wake 6871GPE Notify". This feature will automatically issue a Notify(2) on a 6872device 6873when a Wake GPE is received if there is no corresponding GPE method or 6874handler. ACPICA BZ 870. 6875 6876Fixed a problem with the Scope() operator during table parse and load 6877phase. 6878During load phase (table load or method execution), the scope operator 6879should 6880not enter the target into the namespace. Instead, it should open a new 6881scope 6882at the target location. Linux BZ 19462, ACPICA BZ 882. 6883 6884Example Code and Data Size: These are the sizes for the OS-independent 6885acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6886debug version of the code includes the debug output trace mechanism and 6887has a 6888much larger code and data size. 6889 6890 Previous Release: 6891 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 6892 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 6893 Current Release: 6894 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 6895 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 6896 68972) iASL Compiler/Disassembler and Tools: 6898 6899iASL: Relax the alphanumeric restriction on _CID strings. These strings 6900are 6901"bus-specific" per the ACPI specification, and therefore any characters 6902are 6903acceptable. The only checks that can be performed are for a null string 6904and 6905perhaps for a leading asterisk. ACPICA BZ 886. 6906 6907iASL: Fixed a problem where a syntax error that caused a premature EOF 6908condition on the source file emitted a very confusing error message. The 6909premature EOF is now detected correctly. ACPICA BZ 891. 6910 6911Disassembler: Decode the AccessSize within a Generic Address Structure 6912(byte 6913access, word access, etc.) Note, this field does not allow arbitrary bit 6914access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 6915 6916New: AcpiNames utility - Example namespace dump utility. Shows an example 6917of 6918ACPICA configuration for a minimal namespace dump utility. Uses table and 6919namespace managers, but no AML interpreter. Does not add any 6920functionality 6921over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 6922partition and configure ACPICA. ACPICA BZ 883. 6923 6924AML Debugger: Increased the debugger buffer size for method return 6925objects. 6926Was 4K, increased to 16K. Also enhanced error messages for debugger 6927method 6928execution, including the buffer overflow case. 6929 6930---------------------------------------- 693113 October 2010. Summary of changes for version 20101013: 6932 69331) ACPI CA Core Subsystem: 6934 6935Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 6936now 6937clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 6938HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 6939 6940Changed the type of the predefined namespace object _TZ from ThermalZone 6941to 6942Device. This was found to be confusing to the host software that 6943processes 6944the various thermal zones, since _TZ is not really a ThermalZone. 6945However, 6946a 6947Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 6948Zhang. 6949 6950Added Windows Vista SP2 to the list of supported _OSI strings. The actual 6951string is "Windows 2006 SP2". 6952 6953Eliminated duplicate code in AcpiUtExecute* functions. Now that the 6954nsrepair 6955code automatically repairs _HID-related strings, this type of code is no 6956longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 6957878. 6958 6959Example Code and Data Size: These are the sizes for the OS-independent 6960acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6961debug version of the code includes the debug output trace mechanism and 6962has a 6963much larger code and data size. 6964 6965 Previous Release: 6966 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 6967 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 6968 Current Release: 6969 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 6970 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 6971 69722) iASL Compiler/Disassembler and Tools: 6973 6974iASL: Implemented additional compile-time validation for _HID strings. 6975The 6976non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the 6977length 6978of 6979the string must be exactly seven or eight characters. For both _HID and 6980_CID 6981strings, all characters must be alphanumeric. ACPICA BZ 874. 6982 6983iASL: Allow certain "null" resource descriptors. Some BIOS code creates 6984descriptors that are mostly or all zeros, with the expectation that they 6985will 6986be filled in at runtime. iASL now allows this as long as there is a 6987"resource 6988tag" (name) associated with the descriptor, which gives the ASL a handle 6989needed to modify the descriptor. ACPICA BZ 873. 6990 6991Added single-thread support to the generic Unix application OSL. 6992Primarily 6993for iASL support, this change removes the use of semaphores in the 6994single- 6995threaded ACPICA tools/applications - increasing performance. The 6996_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 6997option. ACPICA BZ 879. 6998 6999AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 7000support 7001for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 7002 7003iASL: Moved all compiler messages to a new file, aslmessages.h. 7004 7005---------------------------------------- 700615 September 2010. Summary of changes for version 20100915: 7007 70081) ACPI CA Core Subsystem: 7009 7010Removed the AcpiOsDerivePciId OSL interface. The various host 7011implementations 7012of this function were not OS-dependent and are now obsolete and can be 7013removed from all host OSLs. This function has been replaced by 7014AcpiHwDerivePciId, which is now part of the ACPICA core code. 7015AcpiHwDerivePciId has been implemented without recursion. Adds one new 7016module, hwpci.c. ACPICA BZ 857. 7017 7018Implemented a dynamic repair for _HID and _CID strings. The following 7019problems are now repaired at runtime: 1) Remove a leading asterisk in the 7020string, and 2) the entire string is uppercased. Both repairs are in 7021accordance with the ACPI specification and will simplify host driver 7022code. 7023ACPICA BZ 871. 7024 7025The ACPI_THREAD_ID type is no longer configurable, internally it is now 7026always UINT64. This simplifies the ACPICA code, especially any printf 7027output. 7028UINT64 is the only common data type for all thread_id types across all 7029operating systems. It is now up to the host OSL to cast the native 7030thread_id 7031type to UINT64 before returning the value to ACPICA (via 7032AcpiOsGetThreadId). 7033Lin Ming, Bob Moore. 7034 7035Added the ACPI_INLINE type to enhance the ACPICA configuration. The 7036"inline" 7037keyword is not standard across compilers, and this type allows inline to 7038be 7039configured on a per-compiler basis. Lin Ming. 7040 7041Made the system global AcpiGbl_SystemAwakeAndRunning publicly 7042available. 7043Added an extern for this boolean in acpixf.h. Some hosts utilize this 7044value 7045during suspend/restore operations. ACPICA BZ 869. 7046 7047All code that implements error/warning messages with the "ACPI:" prefix 7048has 7049been moved to a new module, utxferror.c. 7050 7051The UINT64_OVERLAY was moved to utmath.c, which is the only module where 7052it 7053is used. ACPICA BZ 829. Lin Ming, Bob Moore. 7054 7055Example Code and Data Size: These are the sizes for the OS-independent 7056acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7057debug version of the code includes the debug output trace mechanism and 7058has a 7059much larger code and data size. 7060 7061 Previous Release: 7062 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 7063 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 7064 Current Release: 7065 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 7066 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 7067 70682) iASL Compiler/Disassembler and Tools: 7069 7070iASL/Disassembler: Write ACPI errors to stderr instead of the output 7071file. 7072This keeps the output files free of random error messages that may 7073originate 7074from within the namespace/interpreter code. Used this opportunity to 7075merge 7076all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 7077866. Lin Ming, Bob Moore. 7078 7079Tools: update some printfs for ansi warnings on size_t. Handle width 7080change 7081of size_t on 32-bit versus 64-bit generations. Lin Ming. 7082 7083---------------------------------------- 708406 August 2010. Summary of changes for version 20100806: 7085 70861) ACPI CA Core Subsystem: 7087 7088Designed and implemented a new host interface to the _OSI support code. 7089This 7090will allow the host to dynamically add or remove multiple _OSI strings, 7091as 7092well as install an optional handler that is called for each _OSI 7093invocation. 7094Also added a new AML debugger command, 'osi' to display and modify the 7095global 7096_OSI string table, and test support in the AcpiExec utility. See the 7097ACPICA 7098reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 7099New Functions: 7100 AcpiInstallInterface - Add an _OSI string. 7101 AcpiRemoveInterface - Delete an _OSI string. 7102 AcpiInstallInterfaceHandler - Install optional _OSI handler. 7103Obsolete Functions: 7104 AcpiOsValidateInterface - no longer used. 7105New Files: 7106 source/components/utilities/utosi.c 7107 7108Re-introduced the support to enable multi-byte transfers for Embedded 7109Controller (EC) operation regions. A reported problem was found to be a 7110bug 7111in the host OS, not in the multi-byte support. Previously, the maximum 7112data 7113size passed to the EC operation region handler was a single byte. There 7114are 7115often EC Fields larger than one byte that need to be transferred, and it 7116is 7117useful for the EC driver to lock these as a single transaction. This 7118change 7119enables single transfers larger than 8 bits. This effectively changes the 7120access to the EC space from ByteAcc to AnyAcc, and will probably require 7121changes to the host OS Embedded Controller driver to enable 16/32/64/256- 7122bit 7123transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 7124 7125Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 7126prototype in acpiosxf.h had the output value pointer as a (void *). 7127It should be a (UINT64 *). This may affect some host OSL code. 7128 7129Fixed a couple problems with the recently modified Linux makefiles for 7130iASL 7131and AcpiExec. These new makefiles place the generated object files in the 7132local directory so that there can be no collisions between the files that 7133are 7134shared between them that are compiled with different options. 7135 7136Example Code and Data Size: These are the sizes for the OS-independent 7137acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7138debug version of the code includes the debug output trace mechanism and 7139has a 7140much larger code and data size. 7141 7142 Previous Release: 7143 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7144 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 7145 Current Release: 7146 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 7147 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 7148 71492) iASL Compiler/Disassembler and Tools: 7150 7151iASL/Disassembler: Added a new option (-da, "disassemble all") to load 7152the 7153namespace from and disassemble an entire group of AML files. Useful for 7154loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 7155and 7156disassembling with one simple command. ACPICA BZ 865. Lin Ming. 7157 7158iASL: Allow multiple invocations of -e option. This change allows 7159multiple 7160uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 7161834. 7162Lin Ming. 7163 7164---------------------------------------- 716502 July 2010. Summary of changes for version 20100702: 7166 71671) ACPI CA Core Subsystem: 7168 7169Implemented several updates to the recently added GPE reference count 7170support. The model for "wake" GPEs is changing to give the host OS 7171complete 7172control of these GPEs. Eventually, the ACPICA core will not execute any 7173_PRW 7174methods, since the host already must execute them. Also, additional 7175changes 7176were made to help ensure that the reference counts are kept in proper 7177synchronization with reality. Rafael J. Wysocki. 7178 71791) Ensure that GPEs are not enabled twice during initialization. 71802) Ensure that GPE enable masks stay in sync with the reference count. 71813) Do not inadvertently enable GPEs when writing GPE registers. 71824) Remove the internal wake reference counter and add new AcpiGpeWakeup 7183interface. This interface will set or clear individual GPEs for wakeup. 71845) Remove GpeType argument from AcpiEnable and AcpiDisable. These 7185interfaces 7186are now used for "runtime" GPEs only. 7187 7188Changed the behavior of the GPE install/remove handler interfaces. The 7189GPE 7190is 7191no longer disabled during this process, as it was found to cause problems 7192on 7193some machines. Rafael J. Wysocki. 7194 7195Reverted a change introduced in version 20100528 to enable Embedded 7196Controller multi-byte transfers. This change was found to cause problems 7197with 7198Index Fields and possibly Bank Fields. It will be reintroduced when these 7199problems have been resolved. 7200 7201Fixed a problem with references to Alias objects within Package Objects. 7202A 7203reference to an Alias within the definition of a Package was not always 7204resolved properly. Aliases to objects like Processors, Thermal zones, 7205etc. 7206were resolved to the actual object instead of a reference to the object 7207as 7208it 7209should be. Package objects are only allowed to contain integer, string, 7210buffer, package, and reference objects. Redhat bugzilla 608648. 7211 7212Example Code and Data Size: These are the sizes for the OS-independent 7213acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7214debug version of the code includes the debug output trace mechanism and 7215has a 7216much larger code and data size. 7217 7218 Previous Release: 7219 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7220 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 7221 Current Release: 7222 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7223 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 7224 72252) iASL Compiler/Disassembler and Tools: 7226 7227iASL: Implemented a new compiler subsystem to allow definition and 7228compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 7229These 7230are called "ACPI Data Tables", and the new compiler is the "Data Table 7231Compiler". This compiler is intended to simplify the existing error-prone 7232process of creating these tables for the BIOS, as well as allowing the 7233disassembly, modification, recompilation, and override of existing ACPI 7234data 7235tables. See the iASL User Guide for detailed information. 7236 7237iASL: Implemented a new Template Generator option in support of the new 7238Data 7239Table Compiler. This option will create examples of all known ACPI tables 7240that can be used as the basis for table development. See the iASL 7241documentation and the -T option. 7242 7243Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 7244Descriptor Table). 7245 7246Updated the Linux makefiles for iASL and AcpiExec to place the generated 7247object files in the local directory so that there can be no collisions 7248between the shared files between them that are generated with different 7249options. 7250 7251Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. 7252Use 7253the #define __APPLE__ to enable this support. 7254 7255---------------------------------------- 725628 May 2010. Summary of changes for version 20100528: 7257 7258Note: The ACPI 4.0a specification was released on April 5, 2010 and is 7259available at www.acpi.info. This is primarily an errata release. 7260 72611) ACPI CA Core Subsystem: 7262 7263Undefined ACPI tables: We are looking for the definitions for the 7264following 7265ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 7266 7267Implemented support to enable multi-byte transfers for Embedded 7268Controller 7269(EC) operation regions. Previously, the maximum data size passed to the 7270EC 7271operation region handler was a single byte. There are often EC Fields 7272larger 7273than one byte that need to be transferred, and it is useful for the EC 7274driver 7275to lock these as a single transaction. This change enables single 7276transfers 7277larger than 8 bits. This effectively changes the access to the EC space 7278from 7279ByteAcc to AnyAcc, and will probably require changes to the host OS 7280Embedded 7281Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 7282bit 7283transfers. Alexey Starikovskiy, Lin Ming 7284 7285Implemented a performance enhancement for namespace search and access. 7286This 7287change enhances the performance of namespace searches and walks by adding 7288a 7289backpointer to the parent in each namespace node. On large namespaces, 7290this 7291change can improve overall ACPI performance by up to 9X. Adding a pointer 7292to 7293each namespace node increases the overall size of the internal namespace 7294by 7295about 5%, since each namespace entry usually consists of both a namespace 7296node and an ACPI operand object. However, this is the first growth of the 7297namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 7298 7299Implemented a performance optimization that reduces the number of 7300namespace 7301walks. On control method exit, only walk the namespace if the method is 7302known 7303to have created namespace objects outside of its local scope. Previously, 7304the 7305entire namespace was traversed on each control method exit. This change 7306can 7307improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 7308Moore. 7309 7310Added support to truncate I/O addresses to 16 bits for Windows 7311compatibility. 7312Some ASL code has been seen in the field that inadvertently has bits set 7313above bit 15. This feature is optional and is enabled if the BIOS 7314requests 7315any Windows OSI strings. It can also be enabled by the host OS. Matthew 7316Garrett, Bob Moore. 7317 7318Added support to limit the maximum time for the ASL Sleep() operator. To 7319prevent accidental deep sleeps, limit the maximum time that Sleep() will 7320actually sleep. Configurable, the default maximum is two seconds. ACPICA 7321bugzilla 854. 7322 7323Added run-time validation support for the _WDG and_WED Microsoft 7324predefined 7325methods. These objects are defined by "Windows Instrumentation", and are 7326not 7327part of the ACPI spec. ACPICA BZ 860. 7328 7329Expanded all statistic counters used during namespace and device 7330initialization from 16 to 32 bits in order to support very large 7331namespaces. 7332 7333Replaced all instances of %d in printf format specifiers with %u since 7334nearly 7335all integers in ACPICA are unsigned. 7336 7337Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 7338returned 7339as AE_NO_HANDLER. 7340 7341Example Code and Data Size: These are the sizes for the OS-independent 7342acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7343debug version of the code includes the debug output trace mechanism and 7344has a 7345much larger code and data size. 7346 7347 Previous Release: 7348 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 7349 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 7350 Current Release: 7351 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7352 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 7353 73542) iASL Compiler/Disassembler and Tools: 7355 7356iASL: Added compiler support for the _WDG and_WED Microsoft predefined 7357methods. These objects are defined by "Windows Instrumentation", and are 7358not 7359part of the ACPI spec. ACPICA BZ 860. 7360 7361AcpiExec: added option to disable the memory tracking mechanism. The -dt 7362option will disable the tracking mechanism, which improves performance 7363considerably. 7364 7365AcpiExec: Restructured the command line options into -d (disable) and -e 7366(enable) options. 7367 7368---------------------------------------- 736928 April 2010. Summary of changes for version 20100428: 7370 73711) ACPI CA Core Subsystem: 7372 7373Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 7374including FADT-based and GPE Block Devices, execute any _PRW methods in 7375the 7376new table, and process any _Lxx/_Exx GPE methods in the new table. Any 7377runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 7378immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 7379Devices. Provides compatibility with other ACPI implementations. Two new 7380files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 7381Moore. 7382 7383Fixed a regression introduced in version 20100331 within the table 7384manager 7385where initial table loading could fail. This was introduced in the fix 7386for 7387AcpiReallocateRootTable. Also, renamed some of fields in the table 7388manager 7389data structures to clarify their meaning and use. 7390 7391Fixed a possible allocation overrun during internal object copy in 7392AcpiUtCopySimpleObject. The original code did not correctly handle the 7393case 7394where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 7395847. 7396 7397Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 7398possible access beyond end-of-allocation. Also, now fully validate 7399descriptor 7400(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 7401 7402Example Code and Data Size: These are the sizes for the OS-independent 7403acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7404debug version of the code includes the debug output trace mechanism and 7405has a 7406much larger code and data size. 7407 7408 Previous Release: 7409 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 7410 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 7411 Current Release: 7412 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 7413 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 7414 74152) iASL Compiler/Disassembler and Tools: 7416 7417iASL: Implemented Min/Max/Len/Gran validation for address resource 7418descriptors. This change implements validation for the address fields 7419that 7420are common to all address-type resource descriptors. These checks are 7421implemented: Checks for valid Min/Max, length within the Min/Max window, 7422valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as 7423per 7424table 6-40 in the ACPI 4.0a specification. Also split the large 7425aslrestype1.c 7426and aslrestype2.c files into five new files. ACPICA BZ 840. 7427 7428iASL: Added support for the _Wxx predefined names. This support was 7429missing 7430and these names were not recognized by the compiler as valid predefined 7431names. ACPICA BZ 851. 7432 7433iASL: Added an error for all predefined names that are defined to return 7434no 7435value and thus must be implemented as Control Methods. These include all 7436of 7437the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 7438names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 7439 7440iASL: Implemented the -ts option to emit hex AML data in ASL format, as 7441an 7442ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 7443be 7444dynamically loaded via the Load() operator. Also cleaned up output for 7445the 7446- 7447ta and -tc options. ACPICA BZ 853. 7448 7449Tests: Added a new file with examples of extended iASL error checking. 7450Demonstrates the advanced error checking ability of the iASL compiler. 7451Available at tests/misc/badcode.asl. 7452 7453---------------------------------------- 745431 March 2010. Summary of changes for version 20100331: 7455 74561) ACPI CA Core Subsystem: 7457 7458Completed a major update for the GPE support in order to improve support 7459for 7460shared GPEs and to simplify both host OS and ACPICA code. Added a 7461reference 7462count mechanism to support shared GPEs that require multiple device 7463drivers. 7464Several external interfaces have changed. One external interface has been 7465removed. One new external interface was added. Most of the GPE external 7466interfaces now use the GPE spinlock instead of the events mutex (and the 7467Flags parameter for many GPE interfaces has been removed.) See the 7468updated 7469ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 7470Rafael 7471Wysocki. ACPICA BZ 831. 7472 7473Changed: 7474 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 7475Removed: 7476 AcpiSetGpeType 7477New: 7478 AcpiSetGpe 7479 7480Implemented write support for DataTable operation regions. These regions 7481are 7482defined via the DataTableRegion() operator. Previously, only read support 7483was 7484implemented. The ACPI specification allows DataTableRegions to be 7485read/write, 7486however. 7487 7488Implemented a new subsystem option to force a copy of the DSDT to local 7489memory. Optionally copy the entire DSDT to local memory (instead of 7490simply 7491mapping it.) There are some (albeit very rare) BIOSs that corrupt or 7492replace 7493the original DSDT, creating the need for this option. Default is FALSE, 7494do 7495not copy the DSDT. 7496 7497Implemented detection of a corrupted or replaced DSDT. This change adds 7498support to detect a DSDT that has been corrupted and/or replaced from 7499outside 7500the OS (by firmware). This is typically catastrophic for the system, but 7501has 7502been seen on some machines. Once this problem has been detected, the DSDT 7503copy option can be enabled via system configuration. Lin Ming, Bob Moore. 7504 7505Fixed two problems with AcpiReallocateRootTable during the root table 7506copy. 7507When copying the root table to the new allocation, the length used was 7508incorrect. The new size was used instead of the current table size, 7509meaning 7510too much data was copied. Also, the count of available slots for ACPI 7511tables 7512was not set correctly. Alexey Starikovskiy, Bob Moore. 7513 7514Example Code and Data Size: These are the sizes for the OS-independent 7515acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7516debug version of the code includes the debug output trace mechanism and 7517has a 7518much larger code and data size. 7519 7520 Previous Release: 7521 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 7522 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 7523 Current Release: 7524 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 7525 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 7526 75272) iASL Compiler/Disassembler and Tools: 7528 7529iASL: Implement limited typechecking for values returned from predefined 7530control methods. The type of any returned static (unnamed) object is now 7531validated. For example, Return(1). ACPICA BZ 786. 7532 7533iASL: Fixed a predefined name object verification regression. Fixes a 7534problem 7535introduced in version 20100304. An error is incorrectly generated if a 7536predefined name is declared as a static named object with a value defined 7537using the keywords "Zero", "One", or "Ones". Lin Ming. 7538 7539iASL: Added Windows 7 support for the -g option (get local ACPI tables) 7540by 7541reducing the requested registry access rights. ACPICA BZ 842. 7542 7543Disassembler: fixed a possible fault when generating External() 7544statements. 7545Introduced in commit ae7d6fd: Properly handle externals with parent- 7546prefix 7547(carat). Fixes a string length allocation calculation. Lin Ming. 7548 7549---------------------------------------- 755004 March 2010. Summary of changes for version 20100304: 7551 75521) ACPI CA Core Subsystem: 7553 7554Fixed a possible problem with the AML Mutex handling function 7555AcpiExReleaseMutex where the function could fault under the very rare 7556condition when the interpreter has blocked, the interpreter lock is 7557released, 7558the interpreter is then reentered via the same thread, and attempts to 7559acquire an AML mutex that was previously acquired. FreeBSD report 140979. 7560Lin 7561Ming. 7562 7563Implemented additional configuration support for the AML "Debug Object". 7564Output from the debug object can now be enabled via a global variable, 7565AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 7566debugging. 7567This debug output is now available in the release version of ACPICA 7568instead 7569of just the debug version. Also, the entire debug output module can now 7570be 7571configured out of the ACPICA build if desired. One new file added, 7572executer/exdebug.c. Lin Ming, Bob Moore. 7573 7574Added header support for the ACPI MCHI table (Management Controller Host 7575Interface Table). This table was added in ACPI 4.0, but the defining 7576document 7577has only recently become available. 7578 7579Standardized output of integer values for ACPICA warnings/errors. Always 7580use 75810x prefix for hex output, always use %u for unsigned integer decimal 7582output. 7583Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 7584400 7585invocations.) These invocations were converted from the original 7586ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 7587 7588Example Code and Data Size: These are the sizes for the OS-independent 7589acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7590debug version of the code includes the debug output trace mechanism and 7591has a 7592much larger code and data size. 7593 7594 Previous Release: 7595 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 7596 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 7597 Current Release: 7598 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 7599 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 7600 76012) iASL Compiler/Disassembler and Tools: 7602 7603iASL: Implemented typechecking support for static (non-control method) 7604predefined named objects that are declared with the Name() operator. For 7605example, the type of this object is now validated to be of type Integer: 7606Name(_BBN, 1). This change migrates the compiler to using the core 7607predefined 7608name table instead of maintaining a local version. Added a new file, 7609aslpredef.c. ACPICA BZ 832. 7610 7611Disassembler: Added support for the ACPI 4.0 MCHI table. 7612 7613---------------------------------------- 761421 January 2010. Summary of changes for version 20100121: 7615 76161) ACPI CA Core Subsystem: 7617 7618Added the 2010 copyright to all module headers and signons. This affects 7619virtually every file in the ACPICA core subsystem, the iASL compiler, the 7620tools/utilities, and the test suites. 7621 7622Implemented a change to the AcpiGetDevices interface to eliminate 7623unnecessary 7624invocations of the _STA method. In the case where a specific _HID is 7625requested, do not run _STA until a _HID match is found. This eliminates 7626potentially dozens of _STA calls during a search for a particular 7627device/HID, 7628which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 7629 7630Implemented an additional repair for predefined method return values. 7631Attempt 7632to repair unexpected NULL elements within returned Package objects. 7633Create 7634an 7635Integer of value zero, a NULL String, or a zero-length Buffer as 7636appropriate. 7637ACPICA BZ 818. Lin Ming, Bob Moore. 7638 7639Removed the obsolete ACPI_INTEGER data type. This type was introduced as 7640the 7641code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 7642(with 764364-bit AML integers). It is now obsolete and this change removes it from 7644the 7645ACPICA code base, replaced by UINT64. The original typedef has been 7646retained 7647for now for compatibility with existing device driver code. ACPICA BZ 7648824. 7649 7650Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field 7651in 7652the parse tree object. 7653 7654Added additional warning options for the gcc-4 generation. Updated the 7655source 7656accordingly. This includes some code restructuring to eliminate 7657unreachable 7658code, elimination of some gotos, elimination of unused return values, 7659some 7660additional casting, and removal of redundant declarations. 7661 7662Example Code and Data Size: These are the sizes for the OS-independent 7663acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7664debug version of the code includes the debug output trace mechanism and 7665has a 7666much larger code and data size. 7667 7668 Previous Release: 7669 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 7670 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 7671 Current Release: 7672 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 7673 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 7674 76752) iASL Compiler/Disassembler and Tools: 7676 7677No functional changes for this release. 7678 7679---------------------------------------- 768014 December 2009. Summary of changes for version 20091214: 7681 76821) ACPI CA Core Subsystem: 7683 7684Enhanced automatic data type conversions for predefined name repairs. 7685This 7686change expands the automatic repairs/conversions for predefined name 7687return 7688values to make Integers, Strings, and Buffers fully interchangeable. 7689Also, 7690a 7691Buffer can be converted to a Package of Integers if necessary. The 7692nsrepair.c 7693module was completely restructured. Lin Ming, Bob Moore. 7694 7695Implemented automatic removal of null package elements during predefined 7696name 7697repairs. This change will automatically remove embedded and trailing NULL 7698package elements from returned package objects that are defined to 7699contain 7700a 7701variable number of sub-packages. The driver is then presented with a 7702package 7703with no null elements to deal with. ACPICA BZ 819. 7704 7705Implemented a repair for the predefined _FDE and _GTM names. The expected 7706return value for both names is a Buffer of 5 DWORDs. This repair fixes 7707two 7708possible problems (both seen in the field), where a package of integers 7709is 7710returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 7711Kim. 7712 7713Implemented additional module-level code support. This change will 7714properly 7715execute module-level code that is not at the root of the namespace (under 7716a 7717Device object, etc.). Now executes the code within the current scope 7718instead 7719of the root. ACPICA BZ 762. Lin Ming. 7720 7721Fixed possible mutex acquisition errors when running _REG methods. Fixes 7722a 7723problem where mutex errors can occur when running a _REG method that is 7724in 7725the same scope as a method-defined operation region or an operation 7726region 7727under a module-level IF block. This type of code is rare, so the problem 7728has 7729not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 7730 7731Fixed a possible memory leak during module-level code execution. An 7732object 7733could be leaked for each block of executed module-level code if the 7734interpreter slack mode is enabled This change deletes any implicitly 7735returned 7736object from the module-level code block. Lin Ming. 7737 7738Removed messages for successful predefined repair(s). The repair 7739mechanism 7740was considered too wordy. Now, messages are only unconditionally emitted 7741if 7742the return object cannot be repaired. Existing messages for successful 7743repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 7744827. 7745 7746Example Code and Data Size: These are the sizes for the OS-independent 7747acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7748debug version of the code includes the debug output trace mechanism and 7749has a 7750much larger code and data size. 7751 7752 Previous Release: 7753 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 7754 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 7755 Current Release: 7756 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 7757 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 7758 77592) iASL Compiler/Disassembler and Tools: 7760 7761iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 7762files 7763were no longer automatically removed at the termination of the compile. 7764 7765acpiexec: Implemented the -f option to specify default region fill value. 7766This option specifies the value used to initialize buffers that simulate 7767operation regions. Default value is zero. Useful for debugging problems 7768that 7769depend on a specific initial value for a region or field. 7770 7771---------------------------------------- 777212 November 2009. Summary of changes for version 20091112: 7773 77741) ACPI CA Core Subsystem: 7775 7776Implemented a post-order callback to AcpiWalkNamespace. The existing 7777interface only has a pre-order callback. This change adds an additional 7778parameter for a post-order callback which will be more useful for bus 7779scans. 7780ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 7781 7782Modified the behavior of the operation region memory mapping cache for 7783SystemMemory. Ensure that the memory mappings created for operation 7784regions 7785do not cross 4K page boundaries. Crossing a page boundary while mapping 7786regions can cause kernel warnings on some hosts if the pages have 7787different 7788attributes. Such regions are probably BIOS bugs, and this is the 7789workaround. 7790Linux BZ 14445. Lin Ming. 7791 7792Implemented an automatic repair for predefined methods that must return 7793sorted lists. This change will repair (by sorting) packages returned by 7794_ALR, 7795_PSS, and _TSS. Drivers can now assume that the packages are correctly 7796sorted 7797and do not contain NULL package elements. Adds one new file, 7798namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 7799 7800Fixed a possible fault during predefined name validation if a return 7801Package 7802object contains NULL elements. Also adds a warning if a NULL element is 7803followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 7804may 7805include repair or removal of all such NULL elements where possible. 7806 7807Implemented additional module-level executable AML code support. This 7808change 7809will execute module-level code that is not at the root of the namespace 7810(under a Device object, etc.) at table load time. Module-level executable 7811AML 7812code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 7813 7814Implemented a new internal function to create Integer objects. This 7815function 7816simplifies miscellaneous object creation code. ACPICA BZ 823. 7817 7818Reduced the severity of predefined repair messages, Warning to Info. 7819Since 7820the object was successfully repaired, a warning is too severe. Reduced to 7821an 7822info message for now. These messages may eventually be changed to debug- 7823only. 7824ACPICA BZ 812. 7825 7826Example Code and Data Size: These are the sizes for the OS-independent 7827acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7828debug version of the code includes the debug output trace mechanism and 7829has a 7830much larger code and data size. 7831 7832 Previous Release: 7833 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 7834 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 7835 Current Release: 7836 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 7837 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 7838 78392) iASL Compiler/Disassembler and Tools: 7840 7841iASL: Implemented Switch() with While(1) so that Break works correctly. 7842This 7843change correctly implements the Switch operator with a surrounding 7844While(1) 7845so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 7846 7847iASL: Added a message if a package initializer list is shorter than 7848package 7849length. Adds a new remark for a Package() declaration if an initializer 7850list 7851exists, but is shorter than the declared length of the package. Although 7852technically legal, this is probably a coding error and it is seen in the 7853field. ACPICA BZ 815. Lin Ming, Bob Moore. 7854 7855iASL: Fixed a problem where the compiler could fault after the maximum 7856number 7857of errors was reached (200). 7858 7859acpixtract: Fixed a possible warning for pointer cast if the compiler 7860warning 7861level set very high. 7862 7863---------------------------------------- 786413 October 2009. Summary of changes for version 20091013: 7865 78661) ACPI CA Core Subsystem: 7867 7868Fixed a problem where an Operation Region _REG method could be executed 7869more 7870than once. If a custom address space handler is installed by the host 7871before 7872the "initialize operation regions" phase of the ACPICA initialization, 7873any 7874_REG methods for that address space could be executed twice. This change 7875fixes the problem. ACPICA BZ 427. Lin Ming. 7876 7877Fixed a possible memory leak for the Scope() ASL operator. When the exact 7878invocation of "Scope(\)" is executed (change scope to root), one internal 7879operand object was leaked. Lin Ming. 7880 7881Implemented a run-time repair for the _MAT predefined method. If the _MAT 7882return value is defined as a Field object in the AML, and the field 7883size is less than or equal to the default width of an integer (32 or 788464),_MAT 7885can incorrectly return an Integer instead of a Buffer. ACPICA now 7886automatically repairs this problem. ACPICA BZ 810. 7887 7888Implemented a run-time repair for the _BIF and _BIX predefined methods. 7889The 7890"OEM Information" field is often incorrectly returned as an Integer with 7891value zero if the field is not supported by the platform. This is due to 7892an 7893ambiguity in the ACPI specification. The field should always be a string. 7894ACPICA now automatically repairs this problem by returning a NULL string 7895within the returned Package. ACPICA BZ 807. 7896 7897Example Code and Data Size: These are the sizes for the OS-independent 7898acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7899debug version of the code includes the debug output trace mechanism and 7900has a 7901much larger code and data size. 7902 7903 Previous Release: 7904 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 7905 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 7906 Current Release: 7907 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 7908 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 7909 79102) iASL Compiler/Disassembler and Tools: 7911 7912Disassembler: Fixed a problem where references to external symbols that 7913contained one or more parent-prefixes (carats) were not handled 7914correctly, 7915possibly causing a fault. ACPICA BZ 806. Lin Ming. 7916 7917Disassembler: Restructured the code so that all functions that handle 7918external symbols are in a single module. One new file is added, 7919common/dmextern.c. 7920 7921AML Debugger: Added a max count argument for the Batch command (which 7922executes multiple predefined methods within the namespace.) 7923 7924iASL: Updated the compiler documentation (User Reference.) Available at 7925http://www.acpica.org/documentation/. ACPICA BZ 750. 7926 7927AcpiXtract: Updated for Lint and other formatting changes. Close all open 7928files. 7929 7930---------------------------------------- 793103 September 2009. Summary of changes for version 20090903: 7932 79331) ACPI CA Core Subsystem: 7934 7935For Windows Vista compatibility, added the automatic execution of an _INI 7936method located at the namespace root (\_INI). This method is executed at 7937table load time. This support is in addition to the automatic execution 7938of 7939\_SB._INI. Lin Ming. 7940 7941Fixed a possible memory leak in the interpreter for AML package objects 7942if 7943the package initializer list is longer than the defined size of the 7944package. 7945This apparently can only happen if the BIOS changes the package size on 7946the 7947fly (seen in a _PSS object), as ASL compilers do not allow this. The 7948interpreter will truncate the package to the defined size (and issue an 7949error 7950message), but previously could leave the extra objects undeleted if they 7951were 7952pre-created during the argument processing (such is the case if the 7953package 7954consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 7955 7956Fixed a problem seen when a Buffer or String is stored to itself via ASL. 7957This has been reported in the field. Previously, ACPICA would zero out 7958the 7959buffer/string. Now, the operation is treated as a noop. Provides Windows 7960compatibility. ACPICA BZ 803. Lin Ming. 7961 7962Removed an extraneous error message for ASL constructs of the form 7963Store(LocalX,LocalX) when LocalX is uninitialized. These curious 7964statements 7965are seen in many BIOSs and are once again treated as NOOPs and no error 7966is 7967emitted when they are encountered. ACPICA BZ 785. 7968 7969Fixed an extraneous warning message if a _DSM reserved method returns a 7970Package object. _DSM can return any type of object, so validation on the 7971return type cannot be performed. ACPICA BZ 802. 7972 7973Example Code and Data Size: These are the sizes for the OS-independent 7974acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7975debug version of the code includes the debug output trace mechanism and 7976has a 7977much larger code and data size. 7978 7979 Previous Release: 7980 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 7981 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 7982 Current Release: 7983 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 7984 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 7985 79862) iASL Compiler/Disassembler and Tools: 7987 7988iASL: Fixed a problem with the use of the Alias operator and Resource 7989Templates. The correct alias is now constructed and no error is emitted. 7990ACPICA BZ 738. 7991 7992iASL: Implemented the -I option to specify additional search directories 7993for 7994include files. Allows multiple additional search paths for include files. 7995Directories are searched in the order specified on the command line 7996(after 7997the local directory is searched.) ACPICA BZ 800. 7998 7999iASL: Fixed a problem where the full pathname for include files was not 8000emitted for warnings/errors. This caused the IDE support to not work 8001properly. ACPICA BZ 765. 8002 8003iASL: Implemented the -@ option to specify a Windows-style response file 8004containing additional command line options. ACPICA BZ 801. 8005 8006AcpiExec: Added support to load multiple AML files simultaneously (such 8007as 8008a 8009DSDT and multiple SSDTs). Also added support for wildcards within the AML 8010pathname. These features allow all machine tables to be easily loaded and 8011debugged together. ACPICA BZ 804. 8012 8013Disassembler: Added missing support for disassembly of HEST table Error 8014Bank 8015subtables. 8016 8017---------------------------------------- 801830 July 2009. Summary of changes for version 20090730: 8019 8020The ACPI 4.0 implementation for ACPICA is complete with this release. 8021 80221) ACPI CA Core Subsystem: 8023 8024ACPI 4.0: Added header file support for all new and changed ACPI tables. 8025Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are 8026new 8027for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 8028BERT, 8029EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 8030There 8031have been some ACPI 4.0 changes to other existing tables. Split the large 8032actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 8033 8034ACPI 4.0: Implemented predefined name validation for all new names. There 8035are 803631 new names in ACPI 4.0. The predefined validation module was split into 8037two 8038files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 8039 8040Implemented support for so-called "module-level executable code". This is 8041executable AML code that exists outside of any control method and is 8042intended 8043to be executed at table load time. Although illegal since ACPI 2.0, this 8044type 8045of code still exists and is apparently still being created. Blocks of 8046this 8047code are now detected and executed as intended. Currently, the code 8048blocks 8049must exist under either an If, Else, or While construct; these are the 8050typical cases seen in the field. ACPICA BZ 762. Lin Ming. 8051 8052Implemented an automatic dynamic repair for predefined names that return 8053nested Package objects. This applies to predefined names that are defined 8054to 8055return a variable-length Package of sub-packages. If the number of sub- 8056packages is one, BIOS code is occasionally seen that creates a simple 8057single 8058package with no sub-packages. This code attempts to fix the problem by 8059wrapping a new package object around the existing package. These methods 8060can 8061be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA 8062BZ 8063790. 8064 8065Fixed a regression introduced in 20090625 for the AcpiGetDevices 8066interface. 8067The _HID/_CID matching was broken and no longer matched IDs correctly. 8068ACPICA 8069BZ 793. 8070 8071Fixed a problem with AcpiReset where the reset would silently fail if the 8072register was one of the protected I/O ports. AcpiReset now bypasses the 8073port 8074validation mechanism. This may eventually be driven into the 8075AcpiRead/Write 8076interfaces. 8077 8078Fixed a regression related to the recent update of the AcpiRead/Write 8079interfaces. A sleep/suspend could fail if the optional PM2 Control 8080register 8081does not exist during an attempt to write the Bus Master Arbitration bit. 8082(However, some hosts already delete the code that writes this bit, and 8083the 8084code may in fact be obsolete at this date.) ACPICA BZ 799. 8085 8086Fixed a problem where AcpiTerminate could fault if inadvertently called 8087twice 8088in succession. ACPICA BZ 795. 8089 8090Example Code and Data Size: These are the sizes for the OS-independent 8091acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8092debug version of the code includes the debug output trace mechanism and 8093has a 8094much larger code and data size. 8095 8096 Previous Release: 8097 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 8098 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 8099 Current Release: 8100 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 8101 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 8102 81032) iASL Compiler/Disassembler and Tools: 8104 8105ACPI 4.0: Implemented disassembler support for all new ACPI tables and 8106changes to existing tables. ACPICA BZ 775. 8107 8108---------------------------------------- 810925 June 2009. Summary of changes for version 20090625: 8110 8111The ACPI 4.0 Specification was released on June 16 and is available at 8112www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 8113continue for the next few releases. 8114 81151) ACPI CA Core Subsystem: 8116 8117ACPI 4.0: Implemented interpreter support for the IPMI operation region 8118address space. Includes support for bi-directional data buffers and an 8119IPMI 8120address space handler (to be installed by an IPMI device driver.) ACPICA 8121BZ 8122773. Lin Ming. 8123 8124ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. 8125Includes 8126support in both the header files and the disassembler. 8127 8128Completed a major update for the AcpiGetObjectInfo external interface. 8129Changes include: 8130 - Support for variable, unlimited length HID, UID, and CID strings. 8131 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 8132etc.) 8133 - Call the _SxW power methods on behalf of a device object. 8134 - Determine if a device is a PCI root bridge. 8135 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 8136These changes will require an update to all callers of this interface. 8137See 8138the updated ACPICA Programmer Reference for details. One new source file 8139has 8140been added - utilities/utids.c. ACPICA BZ 368, 780. 8141 8142Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 8143transfers. The Value parameter has been extended from 32 bits to 64 bits 8144in 8145order to support new ACPI 4.0 tables. These changes will require an 8146update 8147to 8148all callers of these interfaces. See the ACPICA Programmer Reference for 8149details. ACPICA BZ 768. 8150 8151Fixed several problems with AcpiAttachData. The handler was not invoked 8152when 8153the host node was deleted. The data sub-object was not automatically 8154deleted 8155when the host node was deleted. The interface to the handler had an 8156unused 8157parameter, this was removed. ACPICA BZ 778. 8158 8159Enhanced the function that dumps ACPI table headers. All non-printable 8160characters in the string fields are now replaced with '?' (Signature, 8161OemId, 8162OemTableId, and CompilerId.) ACPI tables with non-printable characters in 8163these fields are occasionally seen in the field. ACPICA BZ 788. 8164 8165Fixed a problem with predefined method repair code where the code that 8166attempts to repair/convert an object of incorrect type is only executed 8167on 8168the first time the predefined method is called. The mechanism that 8169disables 8170warnings on subsequent calls was interfering with the repair mechanism. 8171ACPICA BZ 781. 8172 8173Fixed a possible memory leak in the predefined validation/repair code 8174when 8175a 8176buffer is automatically converted to an expected string object. 8177 8178Removed obsolete 16-bit files from the distribution and from the current 8179git 8180tree head. ACPICA BZ 776. 8181 8182Example Code and Data Size: These are the sizes for the OS-independent 8183acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8184debug version of the code includes the debug output trace mechanism and 8185has a 8186much larger code and data size. 8187 8188 Previous Release: 8189 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 8190 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 8191 Current Release: 8192 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 8193 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 8194 81952) iASL Compiler/Disassembler and Tools: 8196 8197ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 8198operation region keyword. ACPICA BZ 771, 772. Lin Ming. 8199 8200ACPI 4.0: iASL - implemented compile-time validation support for all new 8201predefined names and control methods (31 total). ACPICA BZ 769. 8202 8203---------------------------------------- 820421 May 2009. Summary of changes for version 20090521: 8205 82061) ACPI CA Core Subsystem: 8207 8208Disabled the preservation of the SCI enable bit in the PM1 control 8209register. 8210The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification 8211to 8212be 8213a "preserved" bit - "OSPM always preserves this bit position", section 82144.7.3.2.1. However, some machines fail if this bit is in fact preserved 8215because the bit needs to be explicitly set by the OS as a workaround. No 8216machines fail if the bit is not preserved. Therefore, ACPICA no longer 8217attempts to preserve this bit. 8218 8219Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 8220incorrectly formed _PRT package could cause a fault. Added validation to 8221ensure that each package element is actually a sub-package. 8222 8223Implemented a new interface to install or override a single control 8224method, 8225AcpiInstallMethod. This interface is useful when debugging in order to 8226repair 8227an existing method or to install a missing method without having to 8228override 8229the entire ACPI table. See the ACPICA Programmer Reference for use and 8230examples. Lin Ming, Bob Moore. 8231 8232Fixed several reference count issues with the DdbHandle object that is 8233created from a Load or LoadTable operator. Prevent premature deletion of 8234the 8235object. Also, mark the object as invalid once the table has been 8236unloaded. 8237This is needed because the handle itself may not be deleted after the 8238table 8239unload, depending on whether it has been stored in a named object by the 8240caller. Lin Ming. 8241 8242Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 8243mutexes of the same sync level are acquired but then not released in 8244strict 8245opposite order, the internally maintained Current Sync Level becomes 8246confused 8247and can cause subsequent execution errors. ACPICA BZ 471. 8248 8249Changed the allowable release order for ASL mutex objects. The ACPI 4.0 8250specification has been changed to make the SyncLevel for mutex objects 8251more 8252useful. When releasing a mutex, the SyncLevel of the mutex must now be 8253the 8254same as the current sync level. This makes more sense than the previous 8255rule 8256(SyncLevel less than or equal). This change updates the code to match the 8257specification. 8258 8259Fixed a problem with the local version of the AcpiOsPurgeCache function. 8260The 8261(local) cache must be locked during all cache object deletions. Andrew 8262Baumann. 8263 8264Updated the Load operator to use operation region interfaces. This 8265replaces 8266direct memory mapping with region access calls. Now, all region accesses 8267go 8268through the installed region handler as they should. 8269 8270Simplified and optimized the NsGetNextNode function. Reduced parameter 8271count 8272and reduced code for this frequently used function. 8273 8274Example Code and Data Size: These are the sizes for the OS-independent 8275acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8276debug version of the code includes the debug output trace mechanism and 8277has a 8278much larger code and data size. 8279 8280 Previous Release: 8281 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 8282 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 8283 Current Release: 8284 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 8285 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 8286 82872) iASL Compiler/Disassembler and Tools: 8288 8289Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 8290problems 8291with sub-table disassembly and handling invalid sub-tables. Attempt 8292recovery 8293after an invalid sub-table ID. 8294 8295---------------------------------------- 829622 April 2009. Summary of changes for version 20090422: 8297 82981) ACPI CA Core Subsystem: 8299 8300Fixed a compatibility issue with the recently released I/O port 8301protection 8302mechanism. For windows compatibility, 1) On a port protection violation, 8303simply ignore the request and do not return an exception (allow the 8304control 8305method to continue execution.) 2) If only part of the request overlaps a 8306protected port, read/write the individual ports that are not protected. 8307Linux 8308BZ 13036. Lin Ming 8309 8310Enhanced the execution of the ASL/AML BreakPoint operator so that it 8311actually 8312breaks into the AML debugger if the debugger is present. This matches the 8313ACPI-defined behavior. 8314 8315Fixed several possible warnings related to the use of the configurable 8316ACPI_THREAD_ID. This type can now be configured as either an integer or a 8317pointer with no warnings. Also fixes several warnings in printf-like 8318statements for the 64-bit build when the type is configured as a pointer. 8319ACPICA BZ 766, 767. 8320 8321Fixed a number of possible warnings when compiling with gcc 4+ (depending 8322on 8323warning options.) Examples include printf formats, aliasing, unused 8324globals, 8325missing prototypes, missing switch default statements, use of non-ANSI 8326library functions, use of non-ANSI constructs. See generate/unix/Makefile 8327for 8328a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 8329 8330Example Code and Data Size: These are the sizes for the OS-independent 8331acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8332debug version of the code includes the debug output trace mechanism and 8333has a 8334much larger code and data size. 8335 8336 Previous Release: 8337 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 8338 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 8339 Current Release: 8340 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 8341 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 8342 83432) iASL Compiler/Disassembler and Tools: 8344 8345iASL: Fixed a generation warning from Bison 2.3 and fixed several 8346warnings 8347on 8348the 64-bit build. 8349 8350iASL: Fixed a problem where the Unix/Linux versions of the compiler could 8351not 8352correctly digest Windows/DOS formatted files (with CR/LF). 8353 8354iASL: Added a new option for "quiet mode" (-va) that produces only the 8355compilation summary, not individual errors and warnings. Useful for large 8356batch compilations. 8357 8358AcpiExec: Implemented a new option (-z) to enable a forced 8359semaphore/mutex 8360timeout that can be used to detect hang conditions during execution of 8361AML 8362code (includes both internal semaphores and AML-defined mutexes and 8363events.) 8364 8365Added new makefiles for the generation of acpica in a generic unix-like 8366environment. These makefiles are intended to generate the acpica tools 8367and 8368utilities from the original acpica git source tree structure. 8369 8370Test Suites: Updated and cleaned up the documentation files. Updated the 8371copyrights to 2009, affecting all source files. Use the new version of 8372iASL 8373with quiet mode. Increased the number of available semaphores in the 8374Windows 8375OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 8376added 8377an alternate implementation of the semaphore timeout to allow aslts to 8378execute fully on Cygwin. 8379 8380---------------------------------------- 838120 March 2009. Summary of changes for version 20090320: 8382 83831) ACPI CA Core Subsystem: 8384 8385Fixed a possible race condition between AcpiWalkNamespace and dynamic 8386table 8387unloads. Added a reader/writer locking mechanism to allow multiple 8388concurrent 8389namespace walks (readers), but block a dynamic table unload until it can 8390gain 8391exclusive write access to the namespace. This fixes a problem where a 8392table 8393unload could (possibly catastrophically) delete the portion of the 8394namespace 8395that is currently being examined by a walk. Adds a new file, utlock.c, 8396that 8397implements the reader/writer lock mechanism. ACPICA BZ 749. 8398 8399Fixed a regression introduced in version 20090220 where a change to the 8400FADT 8401handling could cause the ACPICA subsystem to access non-existent I/O 8402ports. 8403 8404Modified the handling of FADT register and table (FACS/DSDT) addresses. 8405The 8406FADT can contain both 32-bit and 64-bit versions of these addresses. 8407Previously, the 64-bit versions were favored, meaning that if both 32 and 840864 8409versions were valid, but not equal, the 64-bit version was used. This was 8410found to cause some machines to fail. Now, in this case, the 32-bit 8411version 8412is used instead. This now matches the Windows behavior. 8413 8414Implemented a new mechanism to protect certain I/O ports. Provides 8415Microsoft 8416compatibility and protects the standard PC I/O ports from access via AML 8417code. Adds a new file, hwvalid.c 8418 8419Fixed a possible extraneous warning message from the FADT support. The 8420message warns of a 32/64 length mismatch between the legacy and GAS 8421definitions for a register. 8422 8423Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 8424is 8425made obsolete by the port protection mechanism above. It was previously 8426used 8427to validate the entire address range of an operation region, which could 8428be 8429incorrect if the range included illegal ports, but fields within the 8430operation region did not actually access those ports. Validation is now 8431performed on a per-field basis instead of the entire region. 8432 8433Modified the handling of the PM1 Status Register ignored bit (bit 11.) 8434Ignored bits must be "preserved" according to the ACPI spec. Usually, 8435this 8436means a read/modify/write when writing to the register. However, for 8437status 8438registers, writing a one means clear the event. Writing a zero means 8439preserve 8440the event (do not clear.) This behavior is clarified in the ACPI 4.0 8441spec, 8442and the ACPICA code now simply always writes a zero to the ignored bit. 8443 8444Modified the handling of ignored bits for the PM1 A/B Control Registers. 8445As 8446per the ACPI specification, for the control registers, preserve 8447(read/modify/write) all bits that are defined as either reserved or 8448ignored. 8449 8450Updated the handling of write-only bits in the PM1 A/B Control Registers. 8451When reading the register, zero the write-only bits as per the ACPI spec. 8452ACPICA BZ 443. Lin Ming. 8453 8454Removed "Linux" from the list of supported _OSI strings. Linux no longer 8455wants to reply true to this request. The Windows strings are the only 8456paths 8457through the AML that are tested and known to work properly. 8458 8459 Previous Release: 8460 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 8461 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 8462 Current Release: 8463 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 8464 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 8465 84662) iASL Compiler/Disassembler and Tools: 8467 8468Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 8469and 8470aetables.c 8471 8472---------------------------------------- 847320 February 2009. Summary of changes for version 20090220: 8474 84751) ACPI CA Core Subsystem: 8476 8477Optimized the ACPI register locking. Removed locking for reads from the 8478ACPI 8479bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock 8480is 8481not required when reading the single-bit registers. The 8482AcpiGetRegisterUnlocked function is no longer needed and has been 8483removed. 8484This will improve performance for reads on these registers. ACPICA BZ 8485760. 8486 8487Fixed the parameter validation for AcpiRead/Write. Now return 8488AE_BAD_PARAMETER if the input register pointer is null, and 8489AE_BAD_ADDRESS 8490if 8491the register has an address of zero. Previously, these cases simply 8492returned 8493AE_OK. For optional registers such as PM1B status/enable/control, the 8494caller 8495should check for a valid register address before calling. ACPICA BZ 748. 8496 8497Renamed the external ACPI bit register access functions. Renamed 8498AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 8499functions. The new names are AcpiReadBitRegister and 8500AcpiWriteBitRegister. 8501Also, restructured the code for these functions by simplifying the code 8502path 8503and condensing duplicate code to reduce code size. 8504 8505Added new functions to transparently handle the possibly split PM1 A/B 8506registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two 8507functions 8508now handle the split registers for PM1 Status, Enable, and Control. 8509ACPICA 8510BZ 8511746. 8512 8513Added a function to handle the PM1 control registers, 8514AcpiHwWritePm1Control. 8515This function writes both of the PM1 control registers (A/B). These 8516registers 8517are different than the PM1 A/B status and enable registers in that 8518different 8519values can be written to the A/B registers. Most notably, the SLP_TYP 8520bits 8521can be different, as per the values returned from the _Sx predefined 8522methods. 8523 8524Removed an extra register write within AcpiHwClearAcpiStatus. This 8525function 8526was writing an optional PM1B status register twice. The existing call to 8527the 8528low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 8529A/B 8530register. ACPICA BZ 751. 8531 8532Split out the PM1 Status registers from the FADT. Added new globals for 8533these 8534registers (A/B), similar to the way the PM1 Enable registers are handled. 8535Instead of overloading the FADT Event Register blocks. This makes the 8536code 8537clearer and less prone to error. 8538 8539Fixed the warning message for when the platform contains too many ACPI 8540tables 8541for the default size of the global root table data structure. The 8542calculation 8543for the truncation value was incorrect. 8544 8545Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 8546obsolete macro, since it is now a simple reference to ->common.type. 8547There 8548were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 8549 8550Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 8551TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 8552simply SLEEP_TYPE. ACPICA BZ 754. 8553 8554Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 8555function is only needed on 64-bit host operating systems and is thus not 8556included for 32-bit hosts. 8557 8558Debug output: print the input and result for invocations of the _OSI 8559reserved 8560control method via the ACPI_LV_INFO debug level. Also, reduced some of 8561the 8562verbosity of this debug level. Len Brown. 8563 8564Example Code and Data Size: These are the sizes for the OS-independent 8565acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8566debug version of the code includes the debug output trace mechanism and 8567has a 8568much larger code and data size. 8569 8570 Previous Release: 8571 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 8572 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 8573 Current Release: 8574 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 8575 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 8576 85772) iASL Compiler/Disassembler and Tools: 8578 8579Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 8580various legal performance profiles. 8581 8582---------------------------------------- 858323 January 2009. Summary of changes for version 20090123: 8584 85851) ACPI CA Core Subsystem: 8586 8587Added the 2009 copyright to all module headers and signons. This affects 8588virtually every file in the ACPICA core subsystem, the iASL compiler, and 8589the tools/utilities. 8590 8591Implemented a change to allow the host to override any ACPI table, 8592including 8593dynamically loaded tables. Previously, only the DSDT could be replaced by 8594the 8595host. With this change, the AcpiOsTableOverride interface is called for 8596each 8597table found in the RSDT/XSDT during ACPICA initialization, and also 8598whenever 8599a table is dynamically loaded via the AML Load operator. 8600 8601Updated FADT flag definitions, especially the Boot Architecture flags. 8602 8603Debugger: For the Find command, automatically pad the input ACPI name 8604with 8605underscores if the name is shorter than 4 characters. This enables a 8606match 8607with the actual namespace entry which is itself padded with underscores. 8608 8609Example Code and Data Size: These are the sizes for the OS-independent 8610acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8611debug version of the code includes the debug output trace mechanism and 8612has a 8613much larger code and data size. 8614 8615 Previous Release: 8616 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 8617 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 8618 Current Release: 8619 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 8620 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 8621 86222) iASL Compiler/Disassembler and Tools: 8623 8624Fix build error under Bison-2.4. 8625 8626Dissasembler: Enhanced FADT support. Added decoding of the Boot 8627Architecture 8628flags. Now decode all flags, regardless of the FADT version. Flag output 8629includes the FADT version which first defined each flag. 8630 8631The iASL -g option now dumps the RSDT to a file (in addition to the FADT 8632and 8633DSDT). Windows only. 8634 8635---------------------------------------- 863604 December 2008. Summary of changes for version 20081204: 8637 86381) ACPI CA Core Subsystem: 8639 8640The ACPICA Programmer Reference has been completely updated and revamped 8641for 8642this release. This includes updates to the external interfaces, OSL 8643interfaces, the overview sections, and the debugger reference. 8644 8645Several new ACPICA interfaces have been implemented and documented in the 8646programmer reference: 8647AcpiReset - Writes the reset value to the FADT-defined reset register. 8648AcpiDisableAllGpes - Disable all available GPEs. 8649AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 8650AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 8651AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 8652AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 8653AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 8654 8655Most of the public ACPI hardware-related interfaces have been moved to a 8656new 8657file, components/hardware/hwxface.c 8658 8659Enhanced the FADT parsing and low-level ACPI register access: The ACPI 8660register lengths within the FADT are now used, and the low level ACPI 8661register access no longer hardcodes the ACPI register lengths. Given that 8662there may be some risk in actually trusting the FADT register lengths, a 8663run- 8664time option was added to fall back to the default hardcoded lengths if 8665the 8666FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 8667option is set to true for now, and a warning is issued if a suspicious 8668FADT 8669register length is overridden with the default value. 8670 8671Fixed a reference count issue in NsRepairObject. This problem was 8672introduced 8673in version 20081031 as part of a fix to repair Buffer objects within 8674Packages. Lin Ming. 8675 8676Added semaphore support to the Linux/Unix application OS-services layer 8677(OSL). ACPICA BZ 448. Lin Ming. 8678 8679Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 8680will 8681be implemented in the OSL, or will binary semaphores be used instead. 8682 8683Example Code and Data Size: These are the sizes for the OS-independent 8684acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8685debug version of the code includes the debug output trace mechanism and 8686has a 8687much larger code and data size. 8688 8689 Previous Release: 8690 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 8691 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 8692 Current Release: 8693 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 8694 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 8695 86962) iASL Compiler/Disassembler and Tools: 8697 8698iASL: Completed the '-e' option to include additional ACPI tables in 8699order 8700to 8701aid with disassembly and External statement generation. ACPICA BZ 742. 8702Lin 8703Ming. 8704 8705iASL: Removed the "named object in while loop" error. The compiler cannot 8706determine how many times a loop will execute. ACPICA BZ 730. 8707 8708Disassembler: Implemented support for FADT revision 2 (MS extension). 8709ACPICA 8710BZ 743. 8711 8712Disassembler: Updates for several ACPI data tables (HEST, EINJ, and 8713MCFG). 8714 8715---------------------------------------- 871631 October 2008. Summary of changes for version 20081031: 8717 87181) ACPI CA Core Subsystem: 8719 8720Restructured the ACPICA header files into public/private. acpi.h now 8721includes 8722only the "public" acpica headers. All other acpica headers are "private" 8723and 8724should not be included by acpica users. One new file, accommon.h is used 8725to 8726include the commonly used private headers for acpica code generation. 8727Future 8728plans include moving all private headers to a new subdirectory. 8729 8730Implemented an automatic Buffer->String return value conversion for 8731predefined ACPI methods. For these methods (such as _BIF), added 8732automatic 8733conversion for return objects that are required to be a String, but a 8734Buffer 8735was found instead. This can happen when reading string battery data from 8736an 8737operation region, because it used to be difficult to convert the data 8738from 8739buffer to string from within the ASL. Ensures that the host OS is 8740provided 8741with a valid null-terminated string. Linux BZ 11822. 8742 8743Updated the FACS waking vector interfaces. Split 8744AcpiSetFirmwareWakingVector 8745into two: one for the 32-bit vector, another for the 64-bit vector. This 8746is 8747required because the host OS must setup the wake much differently for 8748each 8749vector (real vs. protected mode, etc.) and the interface itself should 8750not 8751be 8752deciding which vector to use. Also, eliminated the 8753GetFirmwareWakingVector 8754interface, as it served no purpose (only the firmware reads the vector, 8755OS 8756only writes the vector.) ACPICA BZ 731. 8757 8758Implemented a mechanism to escape infinite AML While() loops. Added a 8759loop 8760counter to force exit from AML While loops if the count becomes too 8761large. 8762This can occur in poorly written AML when the hardware does not respond 8763within a while loop and the loop does not implement a timeout. The 8764maximum 8765loop count is configurable. A new exception code is returned when a loop 8766is 8767broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 8768 8769Optimized the execution of AML While loops. Previously, a control state 8770object was allocated and freed for each execution of the loop. The 8771optimization is to simply reuse the control state for each iteration. 8772This 8773speeds up the raw loop execution time by about 5%. 8774 8775Enhanced the implicit return mechanism. For Windows compatibility, return 8776an 8777implicit integer of value zero for methods that contain no executable 8778code. 8779Such methods are seen in the field as stubs (presumably), and can cause 8780drivers to fail if they expect a return value. Lin Ming. 8781 8782Allow multiple backslashes as root prefixes in namepaths. In a fully 8783qualified namepath, allow multiple backslash prefixes. This can happen 8784(and 8785is seen in the field) because of the use of a double-backslash in strings 8786(since backslash is the escape character) causing confusion. ACPICA BZ 8787739 8788Lin Ming. 8789 8790Emit a warning if two different FACS or DSDT tables are discovered in the 8791FADT. Checks if there are two valid but different addresses for the FACS 8792and 8793DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 8794 8795Consolidated the method argument count validation code. Merged the code 8796that 8797validates control method argument counts into the predefined validation 8798module. Eliminates possible multiple warnings for incorrect argument 8799counts. 8800 8801Implemented ACPICA example code. Includes code for ACPICA initialization, 8802handler installation, and calling a control method. Available at 8803source/tools/examples. 8804 8805Added a global pointer for FACS table to simplify internal FACS access. 8806Use 8807the global pointer instead of using AcpiGetTableByIndex for each FACS 8808access. 8809This simplifies the code for the Global Lock and the Firmware Waking 8810Vector(s). 8811 8812Example Code and Data Size: These are the sizes for the OS-independent 8813acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8814debug version of the code includes the debug output trace mechanism and 8815has a 8816much larger code and data size. 8817 8818 Previous Release: 8819 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 8820 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 8821 Current Release: 8822 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 8823 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 8824 88252) iASL Compiler/Disassembler and Tools: 8826 8827iASL: Improved disassembly of external method calls. Added the -e option 8828to 8829allow the inclusion of additional ACPI tables to help with the 8830disassembly 8831of 8832method invocations and the generation of external declarations during the 8833disassembly. Certain external method invocations cannot be disassembled 8834properly without the actual declaration of the method. Use the -e option 8835to 8836include the table where the external method(s) are actually declared. 8837Most 8838useful for disassembling SSDTs that make method calls back to the master 8839DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 8840-d 8841-e dsdt.aml ssdt1.aml 8842 8843iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 8844problem where the use of an alias within a namepath would result in a not 8845found error or cause the compiler to fault. Also now allows forward 8846references from the Alias operator itself. ACPICA BZ 738. 8847 8848---------------------------------------- 884926 September 2008. Summary of changes for version 20080926: 8850 88511) ACPI CA Core Subsystem: 8852 8853Designed and implemented a mechanism to validate predefined ACPI methods 8854and 8855objects. This code validates the predefined ACPI objects (objects whose 8856names 8857start with underscore) that appear in the namespace, at the time they are 8858evaluated. The argument count and the type of the returned object are 8859validated against the ACPI specification. The purpose of this validation 8860is 8861to detect problems with the BIOS-implemented predefined ACPI objects 8862before 8863the results are returned to the ACPI-related drivers. Future enhancements 8864may 8865include actual repair of incorrect return objects where possible. Two new 8866files are nspredef.c and acpredef.h. 8867 8868Fixed a fault in the AML parser if a memory allocation fails during the 8869Op 8870completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 8871 8872Fixed an issue with implicit return compatibility. This change improves 8873the 8874implicit return mechanism to be more compatible with the MS interpreter. 8875Lin 8876Ming, ACPICA BZ 349. 8877 8878Implemented support for zero-length buffer-to-string conversions. Allow 8879zero 8880length strings during interpreter buffer-to-string conversions. For 8881example, 8882during the ToDecimalString and ToHexString operators, as well as implicit 8883conversions. Fiodor Suietov, ACPICA BZ 585. 8884 8885Fixed two possible memory leaks in the error exit paths of 8886AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions 8887are 8888similar in that they use a stack of state objects in order to eliminate 8889recursion. The stack must be fully unwound and deallocated if an error 8890occurs. Lin Ming. ACPICA BZ 383. 8891 8892Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 8893global 8894ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 8895Moore ACPICA BZ 442. 8896 8897Removed the obsolete version number in module headers. Removed the 8898"$Revision" number that appeared in each module header. This version 8899number 8900was useful under SourceSafe and CVS, but has no meaning under git. It is 8901not 8902only incorrect, it could also be misleading. 8903 8904Example Code and Data Size: These are the sizes for the OS-independent 8905acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8906debug version of the code includes the debug output trace mechanism and 8907has a 8908much larger code and data size. 8909 8910 Previous Release: 8911 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 8912 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 8913 Current Release: 8914 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 8915 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 8916 8917---------------------------------------- 891829 August 2008. Summary of changes for version 20080829: 8919 89201) ACPI CA Core Subsystem: 8921 8922Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 8923Reference. Changes include the elimination of cheating on the Object 8924field 8925for the DdbHandle subtype, addition of a reference class field to 8926differentiate the various reference types (instead of an AML opcode), and 8927the 8928cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 8929 8930Reduce an error to a warning for an incorrect method argument count. 8931Previously aborted with an error if too few arguments were passed to a 8932control method via the external ACPICA interface. Now issue a warning 8933instead 8934and continue. Handles the case where the method inadvertently declares 8935too 8936many arguments, but does not actually use the extra ones. Applies mainly 8937to 8938the predefined methods. Lin Ming. Linux BZ 11032. 8939 8940Disallow the evaluation of named object types with no intrinsic value. 8941Return 8942AE_TYPE for objects that have no value and therefore evaluation is 8943undefined: 8944Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 8945of 8946these types were allowed, but an exception would be generated at some 8947point 8948during the evaluation. Now, the error is generated up front. 8949 8950Fixed a possible memory leak in the AcpiNsGetExternalPathname function 8951(nsnames.c). Fixes a leak in the error exit path. 8952 8953Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 8954debug 8955levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 8956ACPI_EXCEPTION 8957interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 8958ACPI_LV_EVENTS. 8959 8960Removed obsolete and/or unused exception codes from the acexcep.h header. 8961There is the possibility that certain device drivers may be affected if 8962they 8963use any of these exceptions. 8964 8965The ACPICA documentation has been added to the public git source tree, 8966under 8967acpica/documents. Included are the ACPICA programmer reference, the iASL 8968compiler reference, and the changes.txt release logfile. 8969 8970Example Code and Data Size: These are the sizes for the OS-independent 8971acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8972debug version of the code includes the debug output trace mechanism and 8973has a 8974much larger code and data size. 8975 8976 Previous Release: 8977 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 8978 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 8979 Current Release: 8980 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 8981 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 8982 89832) iASL Compiler/Disassembler and Tools: 8984 8985Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 8986defines _SCP with 3 arguments. Previous versions defined it with only 1 8987argument. iASL now allows both definitions. 8988 8989iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for 8990zero- 8991length subtables when disassembling ACPI tables. Also fixed a couple of 8992errors where a full 16-bit table type field was not extracted from the 8993input 8994properly. 8995 8996acpisrc: Improve comment counting mechanism for generating source code 8997statistics. Count first and last lines of multi-line comments as 8998whitespace, 8999not comment lines. Handle Linux legal header in addition to standard 9000acpica 9001header. 9002 9003---------------------------------------- 9004 900529 July 2008. Summary of changes for version 20080729: 9006 90071) ACPI CA Core Subsystem: 9008 9009Fix a possible deadlock in the GPE dispatch. Remove call to 9010AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 9011attempt 9012to acquire the GPE lock but can deadlock since the GPE lock is already 9013held 9014at dispatch time. This code was introduced in version 20060831 as a 9015response 9016to Linux BZ 6881 and has since been removed from Linux. 9017 9018Add a function to dereference returned reference objects. Examines the 9019return 9020object from a call to AcpiEvaluateObject. Any Index or RefOf references 9021are 9022automatically dereferenced in an attempt to return something useful 9023(these 9024reference types cannot be converted into an external ACPI_OBJECT.) 9025Provides 9026MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 9027 9028x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 9029subtables for the MADT and one new subtable for the SRAT. Includes 9030disassembler and AcpiSrc support. Data from the Intel 64 Architecture 9031x2APIC 9032Specification, June 2008. 9033 9034Additional error checking for pathname utilities. Add error check after 9035all 9036calls to AcpiNsGetPathnameLength. Add status return from 9037AcpiNsBuildExternalPath and check after all calls. Add parameter 9038validation 9039to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 9040 9041Return status from the global init function AcpiUtGlobalInitialize. This 9042is 9043used by both the kernel subsystem and the utilities such as iASL 9044compiler. 9045The function could possibly fail when the caches are initialized. Yang 9046Yi. 9047 9048Add a function to decode reference object types to strings. Created for 9049improved error messages. 9050 9051Improve object conversion error messages. Better error messages during 9052object 9053conversion from internal to the external ACPI_OBJECT. Used for external 9054calls 9055to AcpiEvaluateObject. 9056 9057Example Code and Data Size: These are the sizes for the OS-independent 9058acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9059debug version of the code includes the debug output trace mechanism and 9060has a 9061much larger code and data size. 9062 9063 Previous Release: 9064 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 9065 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 9066 Current Release: 9067 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 9068 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 9069 90702) iASL Compiler/Disassembler and Tools: 9071 9072Debugger: fix a possible hang when evaluating non-methods. Fixes a 9073problem 9074introduced in version 20080701. If the object being evaluated (via 9075execute 9076command) is not a method, the debugger can hang while trying to obtain 9077non- 9078existent parameters. 9079 9080iASL: relax error for using reserved "_T_x" identifiers. These names can 9081appear in a disassembled ASL file if they were emitted by the original 9082compiler. Instead of issuing an error or warning and forcing the user to 9083manually change these names, issue a remark instead. 9084 9085iASL: error if named object created in while loop. Emit an error if any 9086named 9087object is created within a While loop. If allowed, this code will 9088generate 9089a 9090run-time error on the second iteration of the loop when an attempt is 9091made 9092to 9093create the same named object twice. ACPICA bugzilla 730. 9094 9095iASL: Support absolute pathnames for include files. Add support for 9096absolute 9097pathnames within the Include operator. previously, only relative 9098pathnames 9099were supported. 9100 9101iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 9102Descriptor. 9103The ACPI spec requires one interrupt minimum. BZ 423 9104 9105iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 9106Handles the case for the Interrupt Resource Descriptor where 9107the ResourceSource argument is omitted but ResourceSourceIndex 9108is present. Now leave room for the Index. BZ 426 9109 9110iASL: Prevent error message if CondRefOf target does not exist. Fixes 9111cases 9112where an error message is emitted if the target does not exist. BZ 516 9113 9114iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 9115(get ACPI tables on Windows). This was apparently broken in version 911620070919. 9117 9118AcpiXtract: Handle EOF while extracting data. Correctly handle the case 9119where 9120the EOF happens immediately after the last table in the input file. Print 9121completion message. Previously, no message was displayed in this case. 9122 9123---------------------------------------- 912401 July 2008. Summary of changes for version 20080701: 9125 91260) Git source tree / acpica.org 9127 9128Fixed a problem where a git-clone from http would not transfer the entire 9129source tree. 9130 91311) ACPI CA Core Subsystem: 9132 9133Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 9134enable bit. Now performs a read-change-write of the enable register 9135instead 9136of simply writing out the cached enable mask. This will prevent 9137inadvertent 9138enabling of GPEs if a rogue GPE is received during initialization (before 9139GPE 9140handlers are installed.) 9141 9142Implemented a copy for dynamically loaded tables. Previously, dynamically 9143loaded tables were simply mapped - but on some machines this memory is 9144corrupted after suspend. Now copy the table to a local buffer. For the 9145OpRegion case, added checksum verify. Use the table length from the table 9146header, not the region length. For the Buffer case, use the table length 9147also. Dennis Noordsij, Bob Moore. BZ 10734 9148 9149Fixed a problem where the same ACPI table could not be dynamically loaded 9150and 9151unloaded more than once. Without this change, a table cannot be loaded 9152again 9153once it has been loaded/unloaded one time. The current mechanism does not 9154unregister a table upon an unload. During a load, if the same table is 9155found, 9156this no longer returns an exception. BZ 722 9157 9158Fixed a problem where the wrong descriptor length was calculated for the 9159EndTag descriptor in 64-bit mode. The "minimal" descriptors such as 9160EndTag 9161are calculated as 12 bytes long, but the actual length in the internal 9162descriptor is 16 because of the round-up to 8 on the 64-bit build. 9163Reported 9164by Linn Crosetto. BZ 728 9165 9166Fixed a possible memory leak in the Unload operator. The DdbHandle 9167returned 9168by Load() did not have its reference count decremented during unload, 9169leading 9170to a memory leak. Lin Ming. BZ 727 9171 9172Fixed a possible memory leak when deleting thermal/processor objects. Any 9173associated notify handlers (and objects) were not being deleted. Fiodor 9174Suietov. BZ 506 9175 9176Fixed the ordering of the ASCII names in the global mutex table to match 9177the 9178actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 9179only. 9180Vegard Nossum. BZ 726 9181 9182Enhanced the AcpiGetObjectInfo interface to return the number of required 9183arguments if the object is a control method. Added this call to the 9184debugger 9185so the proper number of default arguments are passed to a method. This 9186prevents a warning when executing methods from AcpiExec. 9187 9188Added a check for an invalid handle in AcpiGetObjectInfo. Return 9189AE_BAD_PARAMETER if input handle is invalid. BZ 474 9190 9191Fixed an extraneous warning from exconfig.c on the 64-bit build. 9192 9193Example Code and Data Size: These are the sizes for the OS-independent 9194acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9195debug version of the code includes the debug output trace mechanism and 9196has a 9197much larger code and data size. 9198 9199 Previous Release: 9200 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 9201 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 9202 Current Release: 9203 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 9204 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 9205 92062) iASL Compiler/Disassembler and Tools: 9207 9208iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 9209resource descriptor names. 9210 9211iASL: Detect invalid ASCII characters in input (windows version). Removed 9212the 9213"-CF" flag from the flex compile, enables correct detection of non-ASCII 9214characters in the input. BZ 441 9215 9216iASL: Eliminate warning when result of LoadTable is not used. Eliminate 9217the 9218"result of operation not used" warning when the DDB handle returned from 9219LoadTable is not used. The warning is not needed. BZ 590 9220 9221AcpiExec: Add support for dynamic table load/unload. Now calls _CFG 9222method 9223to 9224pass address of table to the AML. Added option to disable OpRegion 9225simulation 9226to allow creation of an OpRegion with a real address that was passed to 9227_CFG. 9228All of this allows testing of the Load and Unload operators from 9229AcpiExec. 9230 9231Debugger: update tables command for unloaded tables. Handle unloaded 9232tables 9233and use the standard table header output routine. 9234 9235---------------------------------------- 923609 June 2008. Summary of changes for version 20080609: 9237 92381) ACPI CA Core Subsystem: 9239 9240Implemented a workaround for reversed _PRT entries. A significant number 9241of 9242BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 9243change dynamically detects and repairs this problem. Provides 9244compatibility 9245with MS ACPI. BZ 6859 9246 9247Simplified the internal ACPI hardware interfaces to eliminate the locking 9248flag parameter from Register Read/Write. Added a new external interface, 9249AcpiGetRegisterUnlocked. 9250 9251Fixed a problem where the invocation of a GPE control method could hang. 9252This 9253was a regression introduced in 20080514. The new method argument count 9254validation mechanism can enter an infinite loop when a GPE method is 9255dispatched. Problem fixed by removing the obsolete code that passed GPE 9256block 9257information to the notify handler via the control method parameter 9258pointer. 9259 9260Fixed a problem where the _SST execution status was incorrectly returned 9261to 9262the caller of AcpiEnterSleepStatePrep. This was a regression introduced 9263in 926420080514. _SST is optional and a NOT_FOUND exception should never be 9265returned. BZ 716 9266 9267Fixed a problem where a deleted object could be accessed from within the 9268AML 9269parser. This was a regression introduced in version 20080123 as a fix for 9270the 9271Unload operator. Lin Ming. BZ 10669 9272 9273Cleaned up the debug operand dump mechanism. Eliminated unnecessary 9274operands 9275and eliminated the use of a negative index in a loop. Operands are now 9276displayed in the correct order, not backwards. This also fixes a 9277regression 9278introduced in 20080514 on 64-bit systems where the elimination of 9279ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 9280715 9281 9282Fixed a possible memory leak in EvPciConfigRegionSetup where the error 9283exit 9284path did not delete a locally allocated structure. 9285 9286Updated definitions for the DMAR and SRAT tables to synchronize with the 9287current specifications. Includes disassembler support. 9288 9289Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 9290loop termination value was used. Loop terminated on iteration early, 9291missing 9292one mutex. Linn Crosetto 9293 9294Example Code and Data Size: These are the sizes for the OS-independent 9295acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9296debug version of the code includes the debug output trace mechanism and 9297has a 9298much larger code and data size. 9299 9300 Previous Release: 9301 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 9302 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 9303 Current Release: 9304 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 9305 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 9306 93072) iASL Compiler/Disassembler and Tools: 9308 9309Disassembler: Implemented support for EisaId() within _CID objects. Now 9310disassemble integer _CID objects back to EisaId invocations, including 9311multiple integers within _CID packages. Includes single-step support for 9312debugger also. 9313 9314Disassembler: Added support for DMAR and SRAT table definition changes. 9315 9316---------------------------------------- 931714 May 2008. Summary of changes for version 20080514: 9318 93191) ACPI CA Core Subsystem: 9320 9321Fixed a problem where GPEs were enabled too early during the ACPICA 9322initialization. This could lead to "handler not installed" errors on some 9323machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 9324This 9325ensures that all operation regions and devices throughout the namespace 9326have 9327been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 9328 9329Implemented a change to the enter sleep code. Moved execution of the _GTS 9330method to just before setting sleep enable bit. The execution was moved 9331from 9332AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 9333immediately before the SLP_EN bit is set, as per the ACPI specification. 9334Luming Yu, BZ 1653. 9335 9336Implemented a fix to disable unknown GPEs (2nd version). Now always 9337disable 9338the GPE, even if ACPICA thinks that that it is already disabled. It is 9339possible that the AML or some other code has enabled the GPE unbeknownst 9340to 9341the ACPICA code. 9342 9343Fixed a problem with the Field operator where zero-length fields would 9344return 9345an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 9346ASL 9347field declarations in Field(), BankField(), and IndexField(). BZ 10606. 9348 9349Implemented a fix for the Load operator, now load the table at the 9350namespace 9351root. This reverts a change introduced in version 20071019. The table is 9352now 9353loaded at the namespace root even though this goes against the ACPI 9354specification. This provides compatibility with other ACPI 9355implementations. 9356The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 9357Ming. 9358 9359Fixed a problem where ACPICA would not Load() tables with unusual 9360signatures. 9361Now ignore ACPI table signature for Load() operator. Only "SSDT" is 9362acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 9363Therefore, signature validation is worthless. Apparently MS ACPI accepts 9364such 9365signatures, ACPICA must be compatible. BZ 10454. 9366 9367Fixed a possible negative array index in AcpiUtValidateException. Added 9368NULL 9369fields to the exception string arrays to eliminate a -1 subtraction on 9370the 9371SubStatus field. 9372 9373Updated the debug tracking macros to reduce overall code and data size. 9374Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 9375instead of pointers to static strings. Jan Beulich and Bob Moore. 9376 9377Implemented argument count checking in control method invocation via 9378AcpiEvaluateObject. Now emit an error if too few arguments, warning if 9379too 9380many. This applies only to extern programmatic control method execution, 9381not 9382method-to-method calls within the AML. Lin Ming. 9383 9384Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 9385no 9386longer needed, especially with the removal of 16-bit support. It was 9387replaced 9388mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 9389bit 9390on 939132/64-bit platforms is required. 9392 9393Added the C const qualifier for appropriate string constants -- mostly 9394MODULE_NAME and printf format strings. Jan Beulich. 9395 9396Example Code and Data Size: These are the sizes for the OS-independent 9397acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9398debug version of the code includes the debug output trace mechanism and 9399has a 9400much larger code and data size. 9401 9402 Previous Release: 9403 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 9404 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 9405 Current Release: 9406 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 9407 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 9408 94092) iASL Compiler/Disassembler and Tools: 9410 9411Implemented ACPI table revision ID validation in the disassembler. Zero 9412is 9413always invalid. For DSDTs, the ID controls the interpreter integer width. 94141 9415means 32-bit and this is unusual. 2 or greater is 64-bit. 9416 9417---------------------------------------- 941821 March 2008. Summary of changes for version 20080321: 9419 94201) ACPI CA Core Subsystem: 9421 9422Implemented an additional change to the GPE support in order to suppress 9423spurious or stray GPEs. The AcpiEvDisableGpe function will now 9424permanently 9425disable incoming GPEs that are neither enabled nor disabled -- meaning 9426that 9427the GPE is unknown to the system. This should prevent future interrupt 9428floods 9429from that GPE. BZ 6217 (Zhang Rui) 9430 9431Fixed a problem where NULL package elements were not returned to the 9432AcpiEvaluateObject interface correctly. The element was simply ignored 9433instead of returning a NULL ACPI_OBJECT package element, potentially 9434causing 9435a buffer overflow and/or confusing the caller who expected a fixed number 9436of 9437elements. BZ 10132 (Lin Ming, Bob Moore) 9438 9439Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 9440Dword, 9441Qword), Field, BankField, and IndexField operators when invoked from 9442inside 9443an executing control method. In this case, these operators created 9444namespace 9445nodes that were incorrectly left marked as permanent nodes instead of 9446temporary nodes. This could cause a problem if there is race condition 9447between an exiting control method and a running namespace walk. (Reported 9448by 9449Linn Crosetto) 9450 9451Fixed a problem where the CreateField and CreateXXXField operators would 9452incorrectly allow duplicate names (the name of the field) with no 9453exception 9454generated. 9455 9456Implemented several changes for Notify handling. Added support for new 9457Notify 9458values (ACPI 2.0+) and improved the Notify debug output. Notify on 9459PowerResource objects is no longer allowed, as per the ACPI 9460specification. 9461(Bob Moore, Zhang Rui) 9462 9463All Reference Objects returned via the AcpiEvaluateObject interface are 9464now 9465marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 9466for 9467NULL objects - either NULL package elements or unresolved named 9468references. 9469 9470Fixed a problem where an extraneous debug message was produced for 9471package 9472objects (when debugging enabled). The message "Package List length larger 9473than NumElements count" is now produced in the correct case, and is now 9474an 9475error message rather than a debug message. Added a debug message for the 9476opposite case, where NumElements is larger than the Package List (the 9477package 9478will be padded out with NULL elements as per the ACPI spec.) 9479 9480Implemented several improvements for the output of the ASL "Debug" object 9481to 9482clarify and keep all data for a given object on one output line. 9483 9484Fixed two size calculation issues with the variable-length Start 9485Dependent 9486resource descriptor. 9487 9488Example Code and Data Size: These are the sizes for the OS-independent 9489acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9490debug version of the code includes the debug output trace mechanism and 9491has 9492a much larger code and data size. 9493 9494 Previous Release: 9495 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 9496 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 9497 Current Release: 9498 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 9499 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 9500 95012) iASL Compiler/Disassembler and Tools: 9502 9503Fixed a problem with the use of the Switch operator where execution of 9504the 9505containing method by multiple concurrent threads could cause an 9506AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 9507actual Switch opcode, it must be simulated with local named temporary 9508variables and if/else pairs. The solution chosen was to mark any method 9509that 9510uses Switch as Serialized, thus preventing multiple thread entries. BZ 9511469. 9512 9513---------------------------------------- 951413 February 2008. Summary of changes for version 20080213: 9515 95161) ACPI CA Core Subsystem: 9517 9518Implemented another MS compatibility design change for GPE/Notify 9519handling. 9520GPEs are now cleared/enabled asynchronously to allow all pending notifies 9521to 9522complete first. It is expected that the OSL will queue the enable request 9523behind all pending notify requests (may require changes to the local host 9524OSL 9525in AcpiOsExecute). Alexey Starikovskiy. 9526 9527Fixed a problem where buffer and package objects passed as arguments to a 9528control method via the external AcpiEvaluateObject interface could cause 9529an 9530AE_AML_INTERNAL exception depending on the order and type of operators 9531executed by the target control method. 9532 9533Fixed a problem where resource descriptor size optimization could cause a 9534problem when a _CRS resource template is passed to a _SRS method. The 9535_SRS 9536resource template must use the same descriptors (with the same size) as 9537returned from _CRS. This change affects the following resource 9538descriptors: 9539IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 95409487) 9541 9542Fixed a problem where a CopyObject to RegionField, BankField, and 9543IndexField 9544objects did not perform an implicit conversion as it should. These types 9545must 9546retain their initial type permanently as per the ACPI specification. 9547However, 9548a CopyObject to all other object types should not perform an implicit 9549conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 9550 9551Fixed a problem with the AcpiGetDevices interface where the mechanism to 9552match device CIDs did not examine the entire list of available CIDs, but 9553instead aborted on the first non-matching CID. Andrew Patterson. 9554 9555Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 9556was 9557inadvertently changed to return a 16-bit value instead of a 32-bit value, 9558truncating the upper dword of a 64-bit value. This macro is only used to 9559display debug output, so no incorrect calculations were made. Also, 9560reimplemented the macro so that a 64-bit shift is not performed by 9561inefficient compilers. 9562 9563Added missing va_end statements that should correspond with each va_start 9564statement. 9565 9566Example Code and Data Size: These are the sizes for the OS-independent 9567acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9568debug version of the code includes the debug output trace mechanism and 9569has 9570a much larger code and data size. 9571 9572 Previous Release: 9573 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 9574 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 9575 Current Release: 9576 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 9577 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 9578 95792) iASL Compiler/Disassembler and Tools: 9580 9581Implemented full disassembler support for the following new ACPI tables: 9582BERT, EINJ, and ERST. Implemented partial disassembler support for the 9583complicated HEST table. These tables support the Windows Hardware Error 9584Architecture (WHEA). 9585 9586---------------------------------------- 958723 January 2008. Summary of changes for version 20080123: 9588 95891) ACPI CA Core Subsystem: 9590 9591Added the 2008 copyright to all module headers and signons. This affects 9592virtually every file in the ACPICA core subsystem, the iASL compiler, and 9593the tools/utilities. 9594 9595Fixed a problem with the SizeOf operator when used with Package and 9596Buffer 9597objects. These objects have deferred execution for some arguments, and 9598the 9599execution is now completed before the SizeOf is executed. This problem 9600caused 9601unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 9602BZ 96039558 9604 9605Implemented an enhancement to the interpreter "slack mode". In the 9606absence 9607of 9608an explicit return or an implicitly returned object from the last 9609executed 9610opcode, a control method will now implicitly return an integer of value 0 9611for 9612Microsoft compatibility. (Lin Ming) BZ 392 9613 9614Fixed a problem with the Load operator where an exception was not 9615returned 9616in 9617the case where the table is already loaded. (Lin Ming) BZ 463 9618 9619Implemented support for the use of DDBHandles as an Indexed Reference, as 9620per 9621the ACPI spec. (Lin Ming) BZ 486 9622 9623Implemented support for UserTerm (Method invocation) for the Unload 9624operator 9625as per the ACPI spec. (Lin Ming) BZ 580 9626 9627Fixed a problem with the LoadTable operator where the OemId and 9628OemTableId 9629input strings could cause unexpected failures if they were shorter than 9630the 9631maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 9632 9633Implemented support for UserTerm (Method invocation) for the Unload 9634operator 9635as per the ACPI spec. (Lin Ming) BZ 580 9636 9637Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 9638HEST, 9639IBFT, UEFI, WDAT. Disassembler support is forthcoming. 9640 9641Example Code and Data Size: These are the sizes for the OS-independent 9642acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9643debug version of the code includes the debug output trace mechanism and 9644has 9645a much larger code and data size. 9646 9647 Previous Release: 9648 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 9649 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 9650 Current Release: 9651 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 9652 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 9653 96542) iASL Compiler/Disassembler and Tools: 9655 9656Implemented support in the disassembler for checksum validation on 9657incoming 9658binary DSDTs and SSDTs. If incorrect, a message is displayed within the 9659table 9660header dump at the start of the disassembly. 9661 9662Implemented additional debugging information in the namespace listing 9663file 9664created during compilation. In addition to the namespace hierarchy, the 9665full 9666pathname to each namespace object is displayed. 9667 9668Fixed a problem with the disassembler where invalid ACPI tables could 9669cause 9670faults or infinite loops. 9671 9672Fixed an unexpected parse error when using the optional "parameter types" 9673list in a control method declaration. (Lin Ming) BZ 397 9674 9675Fixed a problem where two External declarations with the same name did 9676not 9677cause an error (Lin Ming) BZ 509 9678 9679Implemented support for full TermArgs (adding Argx, Localx and method 9680invocation) for the ParameterData parameter to the LoadTable operator. 9681(Lin 9682Ming) BZ 583,587 9683 9684---------------------------------------- 968519 December 2007. Summary of changes for version 20071219: 9686 96871) ACPI CA Core Subsystem: 9688 9689Implemented full support for deferred execution for the TermArg string 9690arguments for DataTableRegion. This enables forward references and full 9691operand resolution for the three string arguments. Similar to 9692OperationRegion 9693deferred argument execution.) Lin Ming. BZ 430 9694 9695Implemented full argument resolution support for the BankValue argument 9696to 9697BankField. Previously, only constants were supported, now any TermArg may 9698be 9699used. Lin Ming BZ 387, 393 9700 9701Fixed a problem with AcpiGetDevices where the search of a branch of the 9702device tree could be terminated prematurely. In accordance with the ACPI 9703specification, the search down the current branch is terminated if a 9704device 9705is both not present and not functional (instead of just not present.) 9706Yakui 9707Zhao. 9708 9709Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 9710if 9711the underlying AML code changed the GPE enable registers. Now, any 9712unknown 9713incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 9714disabled 9715instead of simply ignored. Rui Zhang. 9716 9717Fixed a problem with Index Fields where the Index register was 9718incorrectly 9719limited to a maximum of 32 bits. Now any size may be used. 9720 9721Fixed a couple memory leaks associated with "implicit return" objects 9722when 9723the AML Interpreter slack mode is enabled. Lin Ming BZ 349 9724 9725Example Code and Data Size: These are the sizes for the OS-independent 9726acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9727debug version of the code includes the debug output trace mechanism and 9728has 9729a much larger code and data size. 9730 9731 Previous Release: 9732 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 9733 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 9734 Current Release: 9735 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 9736 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 9737 9738---------------------------------------- 973914 November 2007. Summary of changes for version 20071114: 9740 97411) ACPI CA Core Subsystem: 9742 9743Implemented event counters for each of the Fixed Events, the ACPI SCI 9744(interrupt) itself, and control methods executed. Named 9745AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 9746These 9747should be useful for debugging and statistics. 9748 9749Implemented a new external interface, AcpiGetStatistics, to retrieve the 9750contents of the various event counters. Returns the current values for 9751AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 9752AcpiMethodCount. The interface can be expanded in the future if new 9753counters 9754are added. Device drivers should use this interface rather than access 9755the 9756counters directly. 9757 9758Fixed a problem with the FromBCD and ToBCD operators. With some 9759compilers, 9760the ShortDivide function worked incorrectly, causing problems with the 9761BCD 9762functions with large input values. A truncation from 64-bit to 32-bit 9763inadvertently occurred. Internal BZ 435. Lin Ming 9764 9765Fixed a problem with Index references passed as method arguments. 9766References 9767passed as arguments to control methods were dereferenced immediately 9768(before 9769control was passed to the called method). The references are now 9770correctly 9771passed directly to the called method. BZ 5389. Lin Ming 9772 9773Fixed a problem with CopyObject used in conjunction with the Index 9774operator. 9775The reference was incorrectly dereferenced before the copy. The reference 9776is 9777now correctly copied. BZ 5391. Lin Ming 9778 9779Fixed a problem with Control Method references within Package objects. 9780These 9781references are now correctly generated. This completes the package 9782construction overhaul that began in version 20071019. 9783 9784Example Code and Data Size: These are the sizes for the OS-independent 9785acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9786debug version of the code includes the debug output trace mechanism and 9787has 9788a much larger code and data size. 9789 9790 Previous Release: 9791 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 9792 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 9793 Current Release: 9794 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 9795 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 9796 9797 97982) iASL Compiler/Disassembler and Tools: 9799 9800The AcpiExec utility now installs handlers for all of the predefined 9801Operation Region types. New types supported are: PCI_Config, CMOS, and 9802PCIBARTarget. 9803 9804Fixed a problem with the 64-bit version of AcpiExec where the extended 9805(64- 9806bit) address fields for the DSDT and FACS within the FADT were not being 9807used, causing truncation of the upper 32-bits of these addresses. Lin 9808Ming 9809and Bob Moore 9810 9811---------------------------------------- 981219 October 2007. Summary of changes for version 20071019: 9813 98141) ACPI CA Core Subsystem: 9815 9816Fixed a problem with the Alias operator when the target of the alias is a 9817named ASL operator that opens a new scope -- Scope, Device, 9818PowerResource, 9819Processor, and ThermalZone. In these cases, any children of the original 9820operator could not be accessed via the alias, potentially causing 9821unexpected 9822AE_NOT_FOUND exceptions. (BZ 9067) 9823 9824Fixed a problem with the Package operator where all named references were 9825created as object references and left otherwise unresolved. According to 9826the 9827ACPI specification, a Package can only contain Data Objects or references 9828to 9829control methods. The implication is that named references to Data Objects 9830(Integer, Buffer, String, Package, BufferField, Field) should be resolved 9831immediately upon package creation. This is the approach taken with this 9832change. References to all other named objects (Methods, Devices, Scopes, 9833etc.) are all now properly created as reference objects. (BZ 5328) 9834 9835Reverted a change to Notify handling that was introduced in version 983620070508. This version changed the Notify handling from asynchronous to 9837fully synchronous (Device driver Notify handling with respect to the 9838Notify 9839ASL operator). It was found that this change caused more problems than it 9840solved and was removed by most users. 9841 9842Fixed a problem with the Increment and Decrement operators where the type 9843of 9844the target object could be unexpectedly and incorrectly changed. (BZ 353) 9845Lin Ming. 9846 9847Fixed a problem with the Load and LoadTable operators where the table 9848location within the namespace was ignored. Instead, the table was always 9849loaded into the root or current scope. Lin Ming. 9850 9851Fixed a problem with the Load operator when loading a table from a buffer 9852object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 9853 9854Fixed a problem with the Debug object where a store of a DdbHandle 9855reference 9856object to the Debug object could cause a fault. 9857 9858Added a table checksum verification for the Load operator, in the case 9859where 9860the load is from a buffer. (BZ 578). 9861 9862Implemented additional parameter validation for the LoadTable operator. 9863The 9864length of the input strings SignatureString, OemIdString, and OemTableId 9865are 9866now checked for maximum lengths. (BZ 582) Lin Ming. 9867 9868Example Code and Data Size: These are the sizes for the OS-independent 9869acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9870debug version of the code includes the debug output trace mechanism and 9871has 9872a much larger code and data size. 9873 9874 Previous Release: 9875 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 9876 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 9877 Current Release: 9878 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 9879 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 9880 9881 98822) iASL Compiler/Disassembler: 9883 9884Fixed a problem where if a single file was specified and the file did not 9885exist, no error message was emitted. (Introduced with wildcard support in 9886version 20070917.) 9887 9888---------------------------------------- 988919 September 2007. Summary of changes for version 20070919: 9890 98911) ACPI CA Core Subsystem: 9892 9893Designed and implemented new external interfaces to install and remove 9894handlers for ACPI table-related events. Current events that are defined 9895are 9896LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 9897they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 9898AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 9899 9900Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 9901(acpi_serialized option on Linux) could cause some systems to hang during 9902initialization. (Bob Moore) BZ 8171 9903 9904Fixed a problem where objects of certain types (Device, ThermalZone, 9905Processor, PowerResource) can be not found if they are declared and 9906referenced from within the same control method (Lin Ming) BZ 341 9907 9908Example Code and Data Size: These are the sizes for the OS-independent 9909acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9910debug version of the code includes the debug output trace mechanism and 9911has 9912a much larger code and data size. 9913 9914 Previous Release: 9915 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 9916 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 9917 Current Release: 9918 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 9919 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 9920 9921 99222) iASL Compiler/Disassembler: 9923 9924Implemented support to allow multiple files to be compiled/disassembled 9925in 9926a 9927single invocation. This includes command line wildcard support for both 9928the 9929Windows and Unix versions of the compiler. This feature simplifies the 9930disassembly and compilation of multiple ACPI tables in a single 9931directory. 9932 9933---------------------------------------- 993408 May 2007. Summary of changes for version 20070508: 9935 99361) ACPI CA Core Subsystem: 9937 9938Implemented a Microsoft compatibility design change for the handling of 9939the 9940Notify AML operator. Previously, notify handlers were dispatched and 9941executed completely asynchronously in a deferred thread. The new design 9942still executes the notify handlers in a different thread, but the 9943original 9944thread that executed the Notify() now waits at a synchronization point 9945for 9946the notify handler to complete. Some machines depend on a synchronous 9947Notify 9948operator in order to operate correctly. 9949 9950Implemented support to allow Package objects to be passed as method 9951arguments to the external AcpiEvaluateObject interface. Previously, this 9952would return the AE_NOT_IMPLEMENTED exception. This feature had not been 9953implemented since there were no reserved control methods that required it 9954until recently. 9955 9956Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 9957that 9958contained invalid non-zero values in reserved fields could cause later 9959failures because these fields have meaning in later revisions of the 9960FADT. 9961For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 9962fields 9963are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 9964 9965Fixed a problem where the Global Lock handle was not properly updated if 9966a 9967thread that acquired the Global Lock via executing AML code then 9968attempted 9969to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 9970Joe 9971Liu. 9972 9973Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 9974could be corrupted if the interrupt being removed was at the head of the 9975list. Reported by Linn Crosetto. 9976 9977Example Code and Data Size: These are the sizes for the OS-independent 9978acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9979debug version of the code includes the debug output trace mechanism and 9980has 9981a much larger code and data size. 9982 9983 Previous Release: 9984 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 9985 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 9986 Current Release: 9987 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 9988 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 9989 9990---------------------------------------- 999120 March 2007. Summary of changes for version 20070320: 9992 99931) ACPI CA Core Subsystem: 9994 9995Implemented a change to the order of interpretation and evaluation of AML 9996operand objects within the AML interpreter. The interpreter now evaluates 9997operands in the order that they appear in the AML stream (and the 9998corresponding ASL code), instead of in the reverse order (after the 9999entire 10000operand list has been parsed). The previous behavior caused several 10001subtle 10002incompatibilities with the Microsoft AML interpreter as well as being 10003somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 10004 10005Implemented a change to the ACPI Global Lock support. All interfaces to 10006the 10007global lock now allow the same thread to acquire the lock multiple times. 10008This affects the AcpiAcquireGlobalLock external interface to the global 10009lock 10010as well as the internal use of the global lock to support AML fields -- a 10011control method that is holding the global lock can now simultaneously 10012access 10013AML fields that require global lock protection. Previously, in both 10014cases, 10015this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 10016to 10017AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 10018Controller. There is no change to the behavior of the AML Acquire 10019operator, 10020as this can already be used to acquire a mutex multiple times by the same 10021thread. BZ 8066. With assistance from Alexey Starikovskiy. 10022 10023Fixed a problem where invalid objects could be referenced in the AML 10024Interpreter after error conditions. During operand evaluation, ensure 10025that 10026the internal "Return Object" field is cleared on error and only valid 10027pointers are stored there. Caused occasional access to deleted objects 10028that 10029resulted in "large reference count" warning messages. Valery Podrezov. 10030 10031Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 10032on 10033deeply nested control method invocations. BZ 7873, local BZ 487. Valery 10034Podrezov. 10035 10036Fixed an internal problem with the handling of result objects on the 10037interpreter result stack. BZ 7872. Valery Podrezov. 10038 10039Removed obsolete code that handled the case where AML_NAME_OP is the 10040target 10041of a reference (Reference.Opcode). This code was no longer necessary. BZ 100427874. Valery Podrezov. 10043 10044Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This 10045was 10046a 10047remnant from the previously discontinued 16-bit support. 10048 10049Example Code and Data Size: These are the sizes for the OS-independent 10050acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10051debug version of the code includes the debug output trace mechanism and 10052has 10053a much larger code and data size. 10054 10055 Previous Release: 10056 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10057 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 10058 Current Release: 10059 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10060 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 10061 10062---------------------------------------- 1006326 January 2007. Summary of changes for version 20070126: 10064 100651) ACPI CA Core Subsystem: 10066 10067Added the 2007 copyright to all module headers and signons. This affects 10068virtually every file in the ACPICA core subsystem, the iASL compiler, and 10069the utilities. 10070 10071Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 10072during a table load. A bad pointer was passed in the case where the DSDT 10073is 10074overridden, causing a fault in this case. 10075 10076Example Code and Data Size: These are the sizes for the OS-independent 10077acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10078debug version of the code includes the debug output trace mechanism and 10079has 10080a much larger code and data size. 10081 10082 Previous Release: 10083 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10084 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 10085 Current Release: 10086 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10087 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 10088 10089---------------------------------------- 1009015 December 2006. Summary of changes for version 20061215: 10091 100921) ACPI CA Core Subsystem: 10093 10094Support for 16-bit ACPICA has been completely removed since it is no 10095longer 10096necessary and it clutters the code. All 16-bit macros, types, and 10097conditional compiles have been removed, cleaning up and simplifying the 10098code 10099across the entire subsystem. DOS support is no longer needed since the 10100bootable Linux firmware kit is now available. 10101 10102The handler for the Global Lock is now removed during AcpiTerminate to 10103enable a clean subsystem restart, via the implementation of the 10104AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 10105HP) 10106 10107Implemented enhancements to the multithreading support within the 10108debugger 10109to enable improved multithreading debugging and evaluation of the 10110subsystem. 10111(Valery Podrezov) 10112 10113Debugger: Enhanced the Statistics/Memory command to emit the total 10114(maximum) 10115memory used during the execution, as well as the maximum memory consumed 10116by 10117each of the various object types. (Valery Podrezov) 10118 10119Example Code and Data Size: These are the sizes for the OS-independent 10120acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10121debug version of the code includes the debug output trace mechanism and 10122has 10123a much larger code and data size. 10124 10125 Previous Release: 10126 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 10127 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 10128 Current Release: 10129 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10130 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 10131 10132 101332) iASL Compiler/Disassembler and Tools: 10134 10135AcpiExec: Implemented a new option (-m) to display full memory use 10136statistics upon subsystem/program termination. (Valery Podrezov) 10137 10138---------------------------------------- 1013909 November 2006. Summary of changes for version 20061109: 10140 101411) ACPI CA Core Subsystem: 10142 10143Optimized the Load ASL operator in the case where the source operand is 10144an 10145operation region. Simply map the operation region memory, instead of 10146performing a bytewise read. (Region must be of type SystemMemory, see 10147below.) 10148 10149Fixed the Load ASL operator for the case where the source operand is a 10150region field. A buffer object is also allowed as the source operand. BZ 10151480 10152 10153Fixed a problem where the Load ASL operator allowed the source operand to 10154be 10155an operation region of any type. It is now restricted to regions of type 10156SystemMemory, as per the ACPI specification. BZ 481 10157 10158Additional cleanup and optimizations for the new Table Manager code. 10159 10160AcpiEnable will now fail if all of the required ACPI tables are not 10161loaded 10162(FADT, FACS, DSDT). BZ 477 10163 10164Added #pragma pack(8/4) to acobject.h to ensure that the structures in 10165this 10166header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 10167manually optimized to be aligned and will not work if it is byte-packed. 10168 10169Example Code and Data Size: These are the sizes for the OS-independent 10170acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10171debug version of the code includes the debug output trace mechanism and 10172has 10173a much larger code and data size. 10174 10175 Previous Release: 10176 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 10177 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 10178 Current Release: 10179 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 10180 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 10181 10182 101832) iASL Compiler/Disassembler and Tools: 10184 10185Fixed a problem where the presence of the _OSI predefined control method 10186within complex expressions could cause an internal compiler error. 10187 10188AcpiExec: Implemented full region support for multiple address spaces. 10189SpaceId is now part of the REGION object. BZ 429 10190 10191---------------------------------------- 1019211 October 2006. Summary of changes for version 20061011: 10193 101941) ACPI CA Core Subsystem: 10195 10196Completed an AML interpreter performance enhancement for control method 10197execution. Previously a 2-pass parse/execution, control methods are now 10198completely parsed and executed in a single pass. This improves overall 10199interpreter performance by ~25%, reduces code size, and reduces CPU stack 10200use. (Valery Podrezov + interpreter changes in version 20051202 that 10201eliminated namespace loading during the pass one parse.) 10202 10203Implemented _CID support for PCI Root Bridge detection. If the _HID does 10204not 10205match the predefined PCI Root Bridge IDs, the _CID list (if present) is 10206now 10207obtained and also checked for an ID match. 10208 10209Implemented additional support for the PCI _ADR execution: upsearch until 10210a 10211device scope is found before executing _ADR. This allows PCI_Config 10212operation regions to be declared locally within control methods 10213underneath 10214PCI device objects. 10215 10216Fixed a problem with a possible race condition between threads executing 10217AcpiWalkNamespace and the AML interpreter. This condition was removed by 10218modifying AcpiWalkNamespace to (by default) ignore all temporary 10219namespace 10220entries created during any concurrent control method execution. An 10221additional namespace race condition is known to exist between 10222AcpiWalkNamespace and the Load/Unload ASL operators and is still under 10223investigation. 10224 10225Restructured the AML ParseLoop function, breaking it into several 10226subfunctions in order to reduce CPU stack use and improve 10227maintainability. 10228(Mikhail Kouzmich) 10229 10230AcpiGetHandle: Fix for parameter validation to detect invalid 10231combinations 10232of prefix handle and pathname. BZ 478 10233 10234Example Code and Data Size: These are the sizes for the OS-independent 10235acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10236debug version of the code includes the debug output trace mechanism and 10237has 10238a much larger code and data size. 10239 10240 Previous Release: 10241 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10242 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 10243 Current Release: 10244 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 10245 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 10246 102472) iASL Compiler/Disassembler and Tools: 10248 10249Ported the -g option (get local ACPI tables) to the new ACPICA Table 10250Manager 10251to restore original behavior. 10252 10253---------------------------------------- 1025427 September 2006. Summary of changes for version 20060927: 10255 102561) ACPI CA Core Subsystem: 10257 10258Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 10259These functions now use a spinlock for mutual exclusion and the interrupt 10260level indication flag is not needed. 10261 10262Fixed a problem with the Global Lock where the lock could appear to be 10263obtained before it is actually obtained. The global lock semaphore was 10264inadvertently created with one unit instead of zero units. (BZ 464) 10265Fiodor 10266Suietov. 10267 10268Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 10269during 10270a read from a buffer or region field. (BZ 458) Fiodor Suietov. 10271 10272Example Code and Data Size: These are the sizes for the OS-independent 10273acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10274debug version of the code includes the debug output trace mechanism and 10275has 10276a much larger code and data size. 10277 10278 Previous Release: 10279 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10280 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 10281 Current Release: 10282 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10283 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 10284 10285 102862) iASL Compiler/Disassembler and Tools: 10287 10288Fixed a compilation problem with the pre-defined Resource Descriptor 10289field 10290names where an "object does not exist" error could be incorrectly 10291generated 10292if the parent ResourceTemplate pathname places the template within a 10293different namespace scope than the current scope. (BZ 7212) 10294 10295Fixed a problem where the compiler could hang after syntax errors 10296detected 10297in an ElseIf construct. (BZ 453) 10298 10299Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 10300operator. An incorrect output filename was produced when this parameter 10301was 10302a null string (""). Now, the original input filename is used as the AML 10303output filename, with an ".aml" extension. 10304 10305Implemented a generic batch command mode for the AcpiExec utility 10306(execute 10307any AML debugger command) (Valery Podrezov). 10308 10309---------------------------------------- 1031012 September 2006. Summary of changes for version 20060912: 10311 103121) ACPI CA Core Subsystem: 10313 10314Enhanced the implementation of the "serialized mode" of the interpreter 10315(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 10316specified, instead of creating a serialization semaphore per control 10317method, 10318the interpreter lock is simply no longer released before a blocking 10319operation during control method execution. This effectively makes the AML 10320Interpreter single-threaded. The overhead of a semaphore per-method is 10321eliminated. 10322 10323Fixed a regression where an error was no longer emitted if a control 10324method 10325attempts to create 2 objects of the same name. This once again returns 10326AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 10327that 10328will dynamically serialize the control method to possible prevent future 10329errors. (BZ 440) 10330 10331Integrated a fix for a problem with PCI Express HID detection in the PCI 10332Config Space setup procedure. (BZ 7145) 10333 10334Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 10335AcpiHwInitialize function - the FADT registers are now validated when the 10336table is loaded. 10337 10338Added two new warnings during FADT verification - 1) if the FADT is 10339larger 10340than the largest known FADT version, and 2) if there is a mismatch 10341between 10342a 1034332-bit block address and the 64-bit X counterpart (when both are non- 10344zero.) 10345 10346Example Code and Data Size: These are the sizes for the OS-independent 10347acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10348debug version of the code includes the debug output trace mechanism and 10349has 10350a much larger code and data size. 10351 10352 Previous Release: 10353 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 10354 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 10355 Current Release: 10356 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10357 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 10358 10359 103602) iASL Compiler/Disassembler and Tools: 10361 10362Fixed a problem with the implementation of the Switch() operator where 10363the 10364temporary variable was declared too close to the actual Switch, instead 10365of 10366at method level. This could cause a problem if the Switch() operator is 10367within a while loop, causing an error on the second iteration. (BZ 460) 10368 10369Disassembler - fix for error emitted for unknown type for target of scope 10370operator. Now, ignore it and continue. 10371 10372Disassembly of an FADT now verifies the input FADT and reports any errors 10373found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 10374 10375Disassembly of raw data buffers with byte initialization data now 10376prefixes 10377each output line with the current buffer offset. 10378 10379Disassembly of ASF! table now includes all variable-length data fields at 10380the end of some of the subtables. 10381 10382The disassembler now emits a comment if a buffer appears to be a 10383ResourceTemplate, but cannot be disassembled as such because the EndTag 10384does 10385not appear at the very end of the buffer. 10386 10387AcpiExec - Added the "-t" command line option to enable the serialized 10388mode 10389of the AML interpreter. 10390 10391---------------------------------------- 1039231 August 2006. Summary of changes for version 20060831: 10393 103941) ACPI CA Core Subsystem: 10395 10396Miscellaneous fixes for the Table Manager: 10397- Correctly initialize internal common FADT for all 64-bit "X" fields 10398- Fixed a couple table mapping issues during table load 10399- Fixed a couple alignment issues for IA64 10400- Initialize input array to zero in AcpiInitializeTables 10401- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 10402AcpiGetTableByIndex 10403 10404Change for GPE support: when a "wake" GPE is received, all wake GPEs are 10405now 10406immediately disabled to prevent the waking GPE from firing again and to 10407prevent other wake GPEs from interrupting the wake process. 10408 10409Added the AcpiGpeCount global that tracks the number of processed GPEs, 10410to 10411be used for debugging systems with a large number of ACPI interrupts. 10412 10413Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 10414both the ACPICA headers and the disassembler. 10415 10416Example Code and Data Size: These are the sizes for the OS-independent 10417acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10418debug version of the code includes the debug output trace mechanism and 10419has 10420a much larger code and data size. 10421 10422 Previous Release: 10423 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 10424 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 10425 Current Release: 10426 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 10427 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 10428 10429 104302) iASL Compiler/Disassembler and Tools: 10431 10432Disassembler support for the DMAR ACPI table. 10433 10434---------------------------------------- 1043523 August 2006. Summary of changes for version 20060823: 10436 104371) ACPI CA Core Subsystem: 10438 10439The Table Manager component has been completely redesigned and 10440reimplemented. The new design is much simpler, and reduces the overall 10441code 10442and data size of the kernel-resident ACPICA by approximately 5%. Also, it 10443is 10444now possible to obtain the ACPI tables very early during kernel 10445initialization, even before dynamic memory management is initialized. 10446(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 10447 10448Obsolete ACPICA interfaces: 10449 10450- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 10451init 10452time). 10453- AcpiLoadTable: Not needed. 10454- AcpiUnloadTable: Not needed. 10455 10456New ACPICA interfaces: 10457 10458- AcpiInitializeTables: Must be called before the table manager can be 10459used. 10460- AcpiReallocateRootTable: Used to transfer the root table to dynamically 10461allocated memory after it becomes available. 10462- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI 10463tables 10464in the RSDT/XSDT. 10465 10466Other ACPICA changes: 10467 10468- AcpiGetTableHeader returns the actual mapped table header, not a copy. 10469Use 10470AcpiOsUnmapMemory to free this mapping. 10471- AcpiGetTable returns the actual mapped table. The mapping is managed 10472internally and must not be deleted by the caller. Use of this interface 10473causes no additional dynamic memory allocation. 10474- AcpiFindRootPointer: Support for physical addressing has been 10475eliminated, 10476it appeared to be unused. 10477- The interface to AcpiOsMapMemory has changed to be consistent with the 10478other allocation interfaces. 10479- The interface to AcpiOsGetRootPointer has changed to eliminate 10480unnecessary 10481parameters. 10482- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 1048364- 10484bit platforms. Was previously 64 bits on all platforms. 10485- The interface to the ACPI Global Lock acquire/release macros have 10486changed 10487slightly since ACPICA no longer keeps a local copy of the FACS with a 10488constructed pointer to the actual global lock. 10489 10490Porting to the new table manager: 10491 10492- AcpiInitializeTables: Must be called once, and can be called anytime 10493during the OS initialization process. It allows the host to specify an 10494area 10495of memory to be used to store the internal version of the RSDT/XSDT (root 10496table). This allows the host to access ACPI tables before memory 10497management 10498is initialized and running. 10499- AcpiReallocateRootTable: Can be called after memory management is 10500running 10501to copy the root table to a dynamically allocated array, freeing up the 10502scratch memory specified in the call to AcpiInitializeTables. 10503- AcpiSubsystemInitialize: This existing interface is independent of the 10504Table Manager, and does not have to be called before the Table Manager 10505can 10506be used, it only must be called before the rest of ACPICA can be used. 10507- ACPI Tables: Some changes have been made to the names and structure of 10508the 10509actbl.h and actbl1.h header files and may require changes to existing 10510code. 10511For example, bitfields have been completely removed because of their lack 10512of 10513portability across C compilers. 10514- Update interfaces to the Global Lock acquire/release macros if local 10515versions are used. (see acwin.h) 10516 10517Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 10518 10519New files: tbfind.c 10520 10521Example Code and Data Size: These are the sizes for the OS-independent 10522acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10523debug version of the code includes the debug output trace mechanism and 10524has 10525a much larger code and data size. 10526 10527 Previous Release: 10528 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 10529 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 10530 Current Release: 10531 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 10532 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 10533 10534 105352) iASL Compiler/Disassembler and Tools: 10536 10537No changes for this release. 10538 10539---------------------------------------- 1054021 July 2006. Summary of changes for version 20060721: 10541 105421) ACPI CA Core Subsystem: 10543 10544The full source code for the ASL test suite used to validate the iASL 10545compiler and the ACPICA core subsystem is being released with the ACPICA 10546source for the first time. The source is contained in a separate package 10547and 10548consists of over 1100 files that exercise all ASL/AML operators. The 10549package 10550should appear on the Intel/ACPI web site shortly. (Valery Podrezov, 10551Fiodor 10552Suietov) 10553 10554Completed a new design and implementation for support of the ACPI Global 10555Lock. On the OS side, the global lock is now treated as a standard AML 10556mutex. Previously, multiple OS threads could "acquire" the global lock 10557simultaneously. However, this could cause the BIOS to be starved out of 10558the 10559lock - especially in cases such as the Embedded Controller driver where 10560there is a tight coupling between the OS and the BIOS. 10561 10562Implemented an optimization for the ACPI Global Lock interrupt mechanism. 10563The Global Lock interrupt handler no longer queues the execution of a 10564separate thread to signal the global lock semaphore. Instead, the 10565semaphore 10566is signaled directly from the interrupt handler. 10567 10568Implemented support within the AML interpreter for package objects that 10569contain a larger AML length (package list length) than the package 10570element 10571count. In this case, the length of the package is truncated to match the 10572package element count. Some BIOS code apparently modifies the package 10573length 10574on the fly, and this change supports this behavior. Provides 10575compatibility 10576with the MS AML interpreter. (With assistance from Fiodor Suietov) 10577 10578Implemented a temporary fix for the BankValue parameter of a Bank Field 10579to 10580support all constant values, now including the Zero and One opcodes. 10581Evaluation of this parameter must eventually be converted to a full 10582TermArg 10583evaluation. A not-implemented error is now returned (temporarily) for 10584non- 10585constant values for this parameter. 10586 10587Fixed problem reports (Fiodor Suietov) integrated: 10588- Fix for premature object deletion after CopyObject on Operation Region 10589(BZ 10590350) 10591 10592Example Code and Data Size: These are the sizes for the OS-independent 10593acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10594debug version of the code includes the debug output trace mechanism and 10595has 10596a much larger code and data size. 10597 10598 Previous Release: 10599 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 10600 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 10601 Current Release: 10602 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 10603 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 10604 10605 106062) iASL Compiler/Disassembler and Tools: 10607 10608No changes for this release. 10609 10610---------------------------------------- 1061107 July 2006. Summary of changes for version 20060707: 10612 106131) ACPI CA Core Subsystem: 10614 10615Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 10616that do not allow the initialization of address pointers within packed 10617structures - even though the hardware itself may support misaligned 10618transfers. Some of the debug data structures are packed by default to 10619minimize size. 10620 10621Added an error message for the case where AcpiOsGetThreadId() returns 10622zero. 10623A non-zero value is required by the core ACPICA code to ensure the proper 10624operation of AML mutexes and recursive control methods. 10625 10626The DSDT is now the only ACPI table that determines whether the AML 10627interpreter is in 32-bit or 64-bit mode. Not really a functional change, 10628but 10629the hooks for per-table 32/64 switching have been removed from the code. 10630A 10631clarification to the ACPI specification is forthcoming in ACPI 3.0B. 10632 10633Fixed a possible leak of an OwnerID in the error path of 10634AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 10635deletion to a single place in AcpiTbUninstallTable to correct possible 10636leaks 10637when using the AcpiTbDeleteTablesByType interface (with assistance from 10638Lance Ortiz.) 10639 10640Fixed a problem with Serialized control methods where the semaphore 10641associated with the method could be over-signaled after multiple method 10642invocations. 10643 10644Fixed two issues with the locking of the internal namespace data 10645structure. 10646Both the Unload() operator and AcpiUnloadTable interface now lock the 10647namespace during the namespace deletion associated with the table unload 10648(with assistance from Linn Crosetto.) 10649 10650Fixed problem reports (Valery Podrezov) integrated: 10651- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 10652 10653Fixed problem reports (Fiodor Suietov) integrated: 10654- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 10655- On Address Space handler deletion, needless deactivation call (BZ 374) 10656- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 10657375) 10658- Possible memory leak, Notify sub-objects of Processor, Power, 10659ThermalZone 10660(BZ 376) 10661- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 10662- Minimum Length of RSDT should be validated (BZ 379) 10663- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 10664Handler (BZ (380) 10665- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 10666loaded 10667(BZ 381) 10668 10669Example Code and Data Size: These are the sizes for the OS-independent 10670acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10671debug version of the code includes the debug output trace mechanism and 10672has 10673a much larger code and data size. 10674 10675 Previous Release: 10676 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 10677 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 10678 Current Release: 10679 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 10680 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 10681 10682 106832) iASL Compiler/Disassembler and Tools: 10684 10685Fixed problem reports: 10686Compiler segfault when ASL contains a long (>1024) String declaration (BZ 10687436) 10688 10689---------------------------------------- 1069023 June 2006. Summary of changes for version 20060623: 10691 106921) ACPI CA Core Subsystem: 10693 10694Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 10695allows the type to be customized to the host OS for improved efficiency 10696(since a spinlock is usually a very small object.) 10697 10698Implemented support for "ignored" bits in the ACPI registers. According 10699to 10700the ACPI specification, these bits should be preserved when writing the 10701registers via a read/modify/write cycle. There are 3 bits preserved in 10702this 10703manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 10704 10705Implemented the initial deployment of new OSL mutex interfaces. Since 10706some 10707host operating systems have separate mutex and semaphore objects, this 10708feature was requested. The base code now uses mutexes (and the new mutex 10709interfaces) wherever a binary semaphore was used previously. However, for 10710the current release, the mutex interfaces are defined as macros to map 10711them 10712to the existing semaphore interfaces. Therefore, no OSL changes are 10713required 10714at this time. (See acpiosxf.h) 10715 10716Fixed several problems with the support for the control method SyncLevel 10717parameter. The SyncLevel now works according to the ACPI specification 10718and 10719in concert with the Mutex SyncLevel parameter, since the current 10720SyncLevel 10721is a property of the executing thread. Mutual exclusion for control 10722methods 10723is now implemented with a mutex instead of a semaphore. 10724 10725Fixed three instances of the use of the C shift operator in the bitfield 10726support code (exfldio.c) to avoid the use of a shift value larger than 10727the 10728target data width. The behavior of C compilers is undefined in this case 10729and 10730can cause unpredictable results, and therefore the case must be detected 10731and 10732avoided. (Fiodor Suietov) 10733 10734Added an info message whenever an SSDT or OEM table is loaded dynamically 10735via the Load() or LoadTable() ASL operators. This should improve 10736debugging 10737capability since it will show exactly what tables have been loaded 10738(beyond 10739the tables present in the RSDT/XSDT.) 10740 10741Example Code and Data Size: These are the sizes for the OS-independent 10742acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10743debug version of the code includes the debug output trace mechanism and 10744has 10745a much larger code and data size. 10746 10747 Previous Release: 10748 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 10749 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 10750 Current Release: 10751 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 10752 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 10753 10754 107552) iASL Compiler/Disassembler and Tools: 10756 10757No changes for this release. 10758 10759---------------------------------------- 1076008 June 2006. Summary of changes for version 20060608: 10761 107621) ACPI CA Core Subsystem: 10763 10764Converted the locking mutex used for the ACPI hardware to a spinlock. 10765This 10766change should eliminate all problems caused by attempting to acquire a 10767semaphore at interrupt level, and it means that all ACPICA external 10768interfaces that directly access the ACPI hardware can be safely called 10769from 10770interrupt level. OSL code that implements the semaphore interfaces should 10771be 10772able to eliminate any workarounds for being called at interrupt level. 10773 10774Fixed a regression introduced in 20060526 where the ACPI device 10775initialization could be prematurely aborted with an AE_NOT_FOUND if a 10776device 10777did not have an optional _INI method. 10778 10779Fixed an IndexField issue where a write to the Data Register should be 10780limited in size to the AccessSize (width) of the IndexField itself. (BZ 10781433, 10782Fiodor Suietov) 10783 10784Fixed problem reports (Valery Podrezov) integrated: 10785- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 10786 10787Fixed problem reports (Fiodor Suietov) integrated: 10788- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 10789 10790Removed four global mutexes that were obsolete and were no longer being 10791used. 10792 10793Example Code and Data Size: These are the sizes for the OS-independent 10794acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10795debug version of the code includes the debug output trace mechanism and 10796has 10797a much larger code and data size. 10798 10799 Previous Release: 10800 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 10801 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 10802 Current Release: 10803 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 10804 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 10805 10806 108072) iASL Compiler/Disassembler and Tools: 10808 10809Fixed a fault when using -g option (get tables from registry) on Windows 10810machines. 10811 10812Fixed problem reports integrated: 10813- Generate error if CreateField NumBits parameter is zero. (BZ 405) 10814- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 10815Suietov) 10816- Global table revision override (-r) is ignored (BZ 413) 10817 10818---------------------------------------- 1081926 May 2006. Summary of changes for version 20060526: 10820 108211) ACPI CA Core Subsystem: 10822 10823Restructured, flattened, and simplified the internal interfaces for 10824namespace object evaluation - resulting in smaller code, less CPU stack 10825use, 10826and fewer interfaces. (With assistance from Mikhail Kouzmich) 10827 10828Fixed a problem with the CopyObject operator where the first parameter 10829was 10830not typed correctly for the parser, interpreter, compiler, and 10831disassembler. 10832Caused various errors and unexpected behavior. 10833 10834Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 10835produced incorrect results with some C compilers. Since the behavior of C 10836compilers when the shift value is larger than the datatype width is 10837apparently not well defined, the interpreter now detects this condition 10838and 10839simply returns zero as expected in all such cases. (BZ 395) 10840 10841Fixed problem reports (Valery Podrezov) integrated: 10842- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 10843- Allow interpreter to handle nested method declarations (BZ 5361) 10844 10845Fixed problem reports (Fiodor Suietov) integrated: 10846- AcpiTerminate doesn't free debug memory allocation list objects (BZ 10847355) 10848- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 10849356) 10850- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 10851- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 10852- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 10853- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 10854- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 10855- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 10856- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 10857365) 10858- Status of the Global Initialization Handler call not used (BZ 366) 10859- Incorrect object parameter to Global Initialization Handler (BZ 367) 10860 10861Example Code and Data Size: These are the sizes for the OS-independent 10862acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10863debug version of the code includes the debug output trace mechanism and 10864has 10865a much larger code and data size. 10866 10867 Previous Release: 10868 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 10869 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 10870 Current Release: 10871 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 10872 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 10873 10874 108752) iASL Compiler/Disassembler and Tools: 10876 10877Modified the parser to allow the names IO, DMA, and IRQ to be used as 10878namespace identifiers with no collision with existing resource descriptor 10879macro names. This provides compatibility with other ASL compilers and is 10880most useful for disassembly/recompilation of existing tables without 10881parse 10882errors. (With assistance from Thomas Renninger) 10883 10884Disassembler: fixed an incorrect disassembly problem with the 10885DataTableRegion and CopyObject operators. Fixed a possible fault during 10886disassembly of some Alias operators. 10887 10888---------------------------------------- 1088912 May 2006. Summary of changes for version 20060512: 10890 108911) ACPI CA Core Subsystem: 10892 10893Replaced the AcpiOsQueueForExecution interface with a new interface named 10894AcpiOsExecute. The major difference is that the new interface does not 10895have 10896a Priority parameter, this appeared to be useless and has been replaced 10897by 10898a 10899Type parameter. The Type tells the host what type of execution is being 10900requested, such as global lock handler, notify handler, GPE handler, etc. 10901This allows the host to queue and execute the request as appropriate for 10902the 10903request type, possibly using different work queues and different 10904priorities 10905for the various request types. This enables fixes for multithreading 10906deadlock problems such as BZ #5534, and will require changes to all 10907existing 10908OS interface layers. (Alexey Starikovskiy and Bob Moore) 10909 10910Fixed a possible memory leak associated with the support for the so- 10911called 10912"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 10913Suietov) 10914 10915Fixed a problem with the Load() operator where a table load from an 10916operation region could overwrite an internal table buffer by up to 7 10917bytes 10918and cause alignment faults on IPF systems. (With assistance from Luming 10919Yu) 10920 10921Example Code and Data Size: These are the sizes for the OS-independent 10922acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10923debug version of the code includes the debug output trace mechanism and 10924has 10925a much larger code and data size. 10926 10927 Previous Release: 10928 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 10929 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 10930 Current Release: 10931 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 10932 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 10933 10934 10935 109362) iASL Compiler/Disassembler and Tools: 10937 10938Disassembler: Implemented support to cross reference the internal 10939namespace 10940and automatically generate ASL External() statements for symbols not 10941defined 10942within the current table being disassembled. This will simplify the 10943disassembly and recompilation of interdependent tables such as SSDTs 10944since 10945these statements will no longer have to be added manually. 10946 10947Disassembler: Implemented experimental support to automatically detect 10948invocations of external control methods and generate appropriate 10949External() 10950statements. This is problematic because the AML cannot be correctly 10951parsed 10952until the number of arguments for each control method is known. 10953Currently, 10954standalone method invocations and invocations as the source operand of a 10955Store() statement are supported. 10956 10957Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 10958LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 10959LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 10960more readable and likely closer to the original ASL source. 10961 10962---------------------------------------- 1096321 April 2006. Summary of changes for version 20060421: 10964 109651) ACPI CA Core Subsystem: 10966 10967Removed a device initialization optimization introduced in 20051216 where 10968the _STA method was not run unless an _INI was also present for the same 10969device. This optimization could cause problems because it could allow 10970_INI 10971methods to be run within a not-present device subtree. (If a not-present 10972device had no _INI, _STA would not be run, the not-present status would 10973not 10974be discovered, and the children of the device would be incorrectly 10975traversed.) 10976 10977Implemented a new _STA optimization where namespace subtrees that do not 10978contain _INI are identified and ignored during device initialization. 10979Selectively running _STA can significantly improve boot time on large 10980machines (with assistance from Len Brown.) 10981 10982Implemented support for the device initialization case where the returned 10983_STA flags indicate a device not-present but functioning. In this case, 10984_INI 10985is not run, but the device children are examined for presence, as per the 10986ACPI specification. 10987 10988Implemented an additional change to the IndexField support in order to 10989conform to MS behavior. The value written to the Index Register is not 10990simply a byte offset, it is a byte offset in units of the access width of 10991the parent Index Field. (Fiodor Suietov) 10992 10993Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 10994interface is called during the creation of all AML operation regions, and 10995allows the host OS to exert control over what addresses it will allow the 10996AML code to access. Operation Regions whose addresses are disallowed will 10997cause a runtime exception when they are actually accessed (will not 10998affect 10999or abort table loading.) See oswinxf or osunixxf for an example 11000implementation. 11001 11002Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 11003interface allows the host OS to match the various "optional" 11004interface/behavior strings for the _OSI predefined control method as 11005appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 11006for an example implementation. 11007 11008Restructured and corrected various problems in the exception handling 11009code 11010paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 11011(with assistance from Takayoshi Kochi.) 11012 11013Modified the Linux source converter to ignore quoted string literals 11014while 11015converting identifiers from mixed to lower case. This will correct 11016problems 11017with the disassembler and other areas where such strings must not be 11018modified. 11019 11020The ACPI_FUNCTION_* macros no longer require quotes around the function 11021name. This allows the Linux source converter to convert the names, now 11022that 11023the converter ignores quoted strings. 11024 11025Example Code and Data Size: These are the sizes for the OS-independent 11026acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11027debug version of the code includes the debug output trace mechanism and 11028has 11029a much larger code and data size. 11030 11031 Previous Release: 11032 11033 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 11034 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 11035 Current Release: 11036 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 11037 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 11038 11039 110402) iASL Compiler/Disassembler and Tools: 11041 11042Implemented 3 new warnings for iASL, and implemented multiple warning 11043levels 11044(w2 flag). 11045 110461) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 11047not 11048WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 11049check for the possible timeout, a warning is issued. 11050 110512) Useless operators: If an ASL operator does not specify an optional 11052target 11053operand and it also does not use the function return value from the 11054operator, a warning is issued since the operator effectively does 11055nothing. 11056 110573) Unreferenced objects: If a namespace object is created, but never 11058referenced, a warning is issued. This is a warning level 2 since there 11059are 11060cases where this is ok, such as when a secondary table is loaded that 11061uses 11062the unreferenced objects. Even so, care is taken to only flag objects 11063that 11064don't look like they will ever be used. For example, the reserved methods 11065(starting with an underscore) are usually not referenced because it is 11066expected that the OS will invoke them. 11067 11068---------------------------------------- 1106931 March 2006. Summary of changes for version 20060331: 11070 110711) ACPI CA Core Subsystem: 11072 11073Implemented header file support for the following additional ACPI tables: 11074ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 11075support, 11076all current and known ACPI tables are now defined in the ACPICA headers 11077and 11078are available for use by device drivers and other software. 11079 11080Implemented support to allow tables that contain ACPI names with invalid 11081characters to be loaded. Previously, this would cause the table load to 11082fail, but since there are several known cases of such tables on existing 11083machines, this change was made to enable ACPI support for them. Also, 11084this 11085matches the behavior of the Microsoft ACPI implementation. 11086 11087Fixed a couple regressions introduced during the memory optimization in 11088the 1108920060317 release. The namespace node definition required additional 11090reorganization and an internal datatype that had been changed to 8-bit 11091was 11092restored to 32-bit. (Valery Podrezov) 11093 11094Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 11095could be passed through to AcpiOsReleaseObject which is unexpected. Such 11096null pointers are now trapped and ignored, matching the behavior of the 11097previous implementation before the deployment of AcpiOsReleaseObject. 11098(Valery Podrezov, Fiodor Suietov) 11099 11100Fixed a memory mapping leak during the deletion of a SystemMemory 11101operation 11102region where a cached memory mapping was not deleted. This became a 11103noticeable problem for operation regions that are defined within 11104frequently 11105used control methods. (Dana Meyers) 11106 11107Reorganized the ACPI table header files into two main files: one for the 11108ACPI tables consumed by the ACPICA core, and another for the 11109miscellaneous 11110ACPI tables that are consumed by the drivers and other software. The 11111various 11112FADT definitions were merged into one common section and three different 11113tables (ACPI 1.0, 1.0+, and 2.0) 11114 11115Example Code and Data Size: These are the sizes for the OS-independent 11116acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11117debug version of the code includes the debug output trace mechanism and 11118has 11119a much larger code and data size. 11120 11121 Previous Release: 11122 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 11123 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 11124 Current Release: 11125 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 11126 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 11127 11128 111292) iASL Compiler/Disassembler and Tools: 11130 11131Disassembler: Implemented support to decode and format all non-AML ACPI 11132tables (tables other than DSDTs and SSDTs.) This includes the new tables 11133added to the ACPICA headers, therefore all current and known ACPI tables 11134are 11135supported. 11136 11137Disassembler: The change to allow ACPI names with invalid characters also 11138enables the disassembly of such tables. Invalid characters within names 11139are 11140changed to '*' to make the name printable; the iASL compiler will still 11141generate an error for such names, however, since this is an invalid ACPI 11142character. 11143 11144Implemented an option for AcpiXtract (-a) to extract all tables found in 11145the 11146input file. The default invocation extracts only the DSDTs and SSDTs. 11147 11148Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 11149makefile for the AcpiXtract utility. 11150 11151---------------------------------------- 1115217 March 2006. Summary of changes for version 20060317: 11153 111541) ACPI CA Core Subsystem: 11155 11156Implemented the use of a cache object for all internal namespace nodes. 11157Since there are about 1000 static nodes in a typical system, this will 11158decrease memory use for cache implementations that minimize per- 11159allocation 11160overhead (such as a slab allocator.) 11161 11162Removed the reference count mechanism for internal namespace nodes, since 11163it 11164was deemed unnecessary. This reduces the size of each namespace node by 11165about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit 11166case, 11167and 32 bytes for the 64-bit case. 11168 11169Optimized several internal data structures to reduce object size on 64- 11170bit 11171platforms by packing data within the 64-bit alignment. This includes the 11172frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 11173instances corresponding to the namespace objects. 11174 11175Added two new strings for the predefined _OSI method: "Windows 2001.1 11176SP1" 11177and "Windows 2006". 11178 11179Split the allocation tracking mechanism out to a separate file, from 11180utalloc.c to uttrack.c. This mechanism appears to be only useful for 11181application-level code. Kernels may wish to not include uttrack.c in 11182distributions. 11183 11184Removed all remnants of the obsolete ACPI_REPORT_* macros and the 11185associated 11186code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 11187macros.) 11188 11189Code and Data Size: These are the sizes for the acpica.lib produced by 11190the 11191Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 11192ACPI 11193driver or OSPM code. The debug version of the code includes the debug 11194output 11195trace mechanism and has a much larger code and data size. Note that these 11196values will vary depending on the efficiency of the compiler and the 11197compiler options used during generation. 11198 11199 Previous Release: 11200 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11201 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 11202 Current Release: 11203 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 11204 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 11205 11206 112072) iASL Compiler/Disassembler and Tools: 11208 11209Implemented an ANSI C version of the acpixtract utility. This version 11210will 11211automatically extract the DSDT and all SSDTs from the input acpidump text 11212file and dump the binary output to separate files. It can also display a 11213summary of the input file including the headers for each table found and 11214will extract any single ACPI table, with any signature. (See 11215source/tools/acpixtract) 11216 11217---------------------------------------- 1121810 March 2006. Summary of changes for version 20060310: 11219 112201) ACPI CA Core Subsystem: 11221 11222Tagged all external interfaces to the subsystem with the new 11223ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to 11224assist 11225kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 11226macro. The default definition is NULL. 11227 11228Added the ACPI_THREAD_ID type for the return value from 11229AcpiOsGetThreadId. 11230This allows the host to define this as necessary to simplify kernel 11231integration. The default definition is ACPI_NATIVE_UINT. 11232 11233Fixed two interpreter problems related to error processing, the deletion 11234of 11235objects, and placing invalid pointers onto the internal operator result 11236stack. BZ 6028, 6151 (Valery Podrezov) 11237 11238Increased the reference count threshold where a warning is emitted for 11239large 11240reference counts in order to eliminate unnecessary warnings on systems 11241with 11242large namespaces (especially 64-bit.) Increased the value from 0x400 to 112430x800. 11244 11245Due to universal disagreement as to the meaning of the 'c' in the 11246calloc() 11247function, the ACPI_MEM_CALLOCATE macro has been renamed to 11248ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 11249ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 11250ACPI_FREE. 11251 11252Code and Data Size: These are the sizes for the acpica.lib produced by 11253the 11254Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 11255ACPI 11256driver or OSPM code. The debug version of the code includes the debug 11257output 11258trace mechanism and has a much larger code and data size. Note that these 11259values will vary depending on the efficiency of the compiler and the 11260compiler options used during generation. 11261 11262 Previous Release: 11263 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 11264 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 11265 Current Release: 11266 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11267 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 11268 11269 112702) iASL Compiler/Disassembler: 11271 11272Disassembler: implemented support for symbolic resource descriptor 11273references. If a CreateXxxxField operator references a fixed offset 11274within 11275a 11276resource descriptor, a name is assigned to the descriptor and the offset 11277is 11278translated to the appropriate resource tag and pathname. The addition of 11279this support brings the disassembled code very close to the original ASL 11280source code and helps eliminate run-time errors when the disassembled 11281code 11282is modified (and recompiled) in such a way as to invalidate the original 11283fixed offsets. 11284 11285Implemented support for a Descriptor Name as the last parameter to the 11286ASL 11287Register() macro. This parameter was inadvertently left out of the ACPI 11288specification, and will be added for ACPI 3.0b. 11289 11290Fixed a problem where the use of the "_OSI" string (versus the full path 11291"\_OSI") caused an internal compiler error. ("No back ptr to op") 11292 11293Fixed a problem with the error message that occurs when an invalid string 11294is 11295used for a _HID object (such as one with an embedded asterisk: 11296"*PNP010A".) 11297The correct message is now displayed. 11298 11299---------------------------------------- 1130017 February 2006. Summary of changes for version 20060217: 11301 113021) ACPI CA Core Subsystem: 11303 11304Implemented a change to the IndexField support to match the behavior of 11305the 11306Microsoft AML interpreter. The value written to the Index register is now 11307a 11308byte offset, no longer an index based upon the width of the Data 11309register. 11310This should fix IndexField problems seen on some machines where the Data 11311register is not exactly one byte wide. The ACPI specification will be 11312clarified on this point. 11313 11314Fixed a problem where several resource descriptor types could overrun the 11315internal descriptor buffer due to size miscalculation: VendorShort, 11316VendorLong, and Interrupt. This was noticed on IA64 machines, but could 11317affect all platforms. 11318 11319Fixed a problem where individual resource descriptors were misaligned 11320within 11321the internal buffer, causing alignment faults on IA64 platforms. 11322 11323Code and Data Size: These are the sizes for the acpica.lib produced by 11324the 11325Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 11326ACPI 11327driver or OSPM code. The debug version of the code includes the debug 11328output 11329trace mechanism and has a much larger code and data size. Note that these 11330values will vary depending on the efficiency of the compiler and the 11331compiler options used during generation. 11332 11333 Previous Release: 11334 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11335 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 11336 Current Release: 11337 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 11338 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 11339 11340 113412) iASL Compiler/Disassembler: 11342 11343Implemented support for new reserved names: _WDG and _WED are Microsoft 11344extensions for Windows Instrumentation Management, _TDL is a new ACPI- 11345defined method (Throttling Depth Limit.) 11346 11347Fixed a problem where a zero-length VendorShort or VendorLong resource 11348descriptor was incorrectly emitted as a descriptor of length one. 11349 11350---------------------------------------- 1135110 February 2006. Summary of changes for version 20060210: 11352 113531) ACPI CA Core Subsystem: 11354 11355Removed a couple of extraneous ACPI_ERROR messages that appeared during 11356normal execution. These became apparent after the conversion from 11357ACPI_DEBUG_PRINT. 11358 11359Fixed a problem where the CreateField operator could hang if the BitIndex 11360or 11361NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 11362 11363Fixed a problem where a DeRefOf operation on a buffer object incorrectly 11364failed with an exception. This also fixes a couple of related RefOf and 11365DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 11366 11367Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 11368of 11369AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 11370BZ 113715480) 11372 11373Implemented a memory cleanup at the end of the execution of each 11374iteration 11375of an AML While() loop, preventing the accumulation of outstanding 11376objects. 11377(Valery Podrezov, BZ 5427) 11378 11379Eliminated a chunk of duplicate code in the object resolution code. 11380(Valery 11381Podrezov, BZ 5336) 11382 11383Fixed several warnings during the 64-bit code generation. 11384 11385The AcpiSrc source code conversion tool now inserts one line of 11386whitespace 11387after an if() statement that is followed immediately by a comment, 11388improving 11389readability of the Linux code. 11390 11391Code and Data Size: The current and previous library sizes for the core 11392subsystem are shown below. These are the code and data sizes for the 11393acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11394These 11395values do not include any ACPI driver or OSPM code. The debug version of 11396the 11397code includes the debug output trace mechanism and has a much larger code 11398and data size. Note that these values will vary depending on the 11399efficiency 11400of the compiler and the compiler options used during generation. 11401 11402 Previous Release: 11403 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 11404 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 11405 Current Release: 11406 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11407 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 11408 11409 114102) iASL Compiler/Disassembler: 11411 11412Fixed a problem with the disassembly of a BankField operator with a 11413complex 11414expression for the BankValue parameter. 11415 11416---------------------------------------- 1141727 January 2006. Summary of changes for version 20060127: 11418 114191) ACPI CA Core Subsystem: 11420 11421Implemented support in the Resource Manager to allow unresolved 11422namestring 11423references within resource package objects for the _PRT method. This 11424support 11425is in addition to the previously implemented unresolved reference support 11426within the AML parser. If the interpreter slack mode is enabled, these 11427unresolved references will be passed through to the caller as a NULL 11428package 11429entry. 11430 11431Implemented and deployed new macros and functions for error and warning 11432messages across the subsystem. These macros are simpler and generate less 11433code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 11434ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 11435macros remain defined to allow ACPI drivers time to migrate to the new 11436macros. 11437 11438Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of 11439the 11440Acquire/Release Lock OSL interfaces. 11441 11442Fixed a problem where Alias ASL operators are sometimes not correctly 11443resolved, in both the interpreter and the iASL compiler. 11444 11445Fixed several problems with the implementation of the 11446ConcatenateResTemplate 11447ASL operator. As per the ACPI specification, zero length buffers are now 11448treated as a single EndTag. One-length buffers always cause a fatal 11449exception. Non-zero length buffers that do not end with a full 2-byte 11450EndTag 11451cause a fatal exception. 11452 11453Fixed a possible structure overwrite in the AcpiGetObjectInfo external 11454interface. (With assistance from Thomas Renninger) 11455 11456Code and Data Size: The current and previous library sizes for the core 11457subsystem are shown below. These are the code and data sizes for the 11458acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11459These 11460values do not include any ACPI driver or OSPM code. The debug version of 11461the 11462code includes the debug output trace mechanism and has a much larger code 11463and data size. Note that these values will vary depending on the 11464efficiency 11465of the compiler and the compiler options used during generation. 11466 11467 Previous Release: 11468 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 11469 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 11470 Current Release: 11471 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 11472 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 11473 11474 114752) iASL Compiler/Disassembler: 11476 11477Fixed an internal error that was generated for any forward references to 11478ASL 11479Alias objects. 11480 11481---------------------------------------- 1148213 January 2006. Summary of changes for version 20060113: 11483 114841) ACPI CA Core Subsystem: 11485 11486Added 2006 copyright to all module headers and signons. This affects 11487virtually every file in the ACPICA core subsystem, iASL compiler, and the 11488utilities. 11489 11490Enhanced the ACPICA error reporting in order to simplify user migration 11491to 11492the non-debug version of ACPICA. Replaced all instances of the 11493ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN 11494debug 11495levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 11496respectively. This preserves all error and warning messages in the non- 11497debug 11498version of the ACPICA code (this has been referred to as the "debug lite" 11499option.) Over 200 cases were converted to create a total of over 380 11500error/warning messages across the ACPICA code. This increases the code 11501and 11502data size of the default non-debug version of the code somewhat (about 1150313K), 11504but all error/warning reporting may be disabled if desired (and code 11505eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 11506configuration option. The size of the debug version of ACPICA remains 11507about 11508the same. 11509 11510Fixed a memory leak within the AML Debugger "Set" command. One object was 11511not properly deleted for every successful invocation of the command. 11512 11513Code and Data Size: The current and previous library sizes for the core 11514subsystem are shown below. These are the code and data sizes for the 11515acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11516These 11517values do not include any ACPI driver or OSPM code. The debug version of 11518the 11519code includes the debug output trace mechanism and has a much larger code 11520and data size. Note that these values will vary depending on the 11521efficiency 11522of the compiler and the compiler options used during generation. 11523 11524 Previous Release: 11525 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 11526 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 11527 Current Release: 11528 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 11529 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 11530 11531 115322) iASL Compiler/Disassembler: 11533 11534The compiler now officially supports the ACPI 3.0a specification that was 11535released on December 30, 2005. (Specification is available at 11536www.acpi.info) 11537 11538---------------------------------------- 1153916 December 2005. Summary of changes for version 20051216: 11540 115411) ACPI CA Core Subsystem: 11542 11543Implemented optional support to allow unresolved names within ASL Package 11544objects. A null object is inserted in the package when a named reference 11545cannot be located in the current namespace. Enabled via the interpreter 11546slack flag, this should eliminate AE_NOT_FOUND exceptions seen on 11547machines 11548that contain such code. 11549 11550Implemented an optimization to the initialization sequence that can 11551improve 11552boot time. During ACPI device initialization, the _STA method is now run 11553if 11554and only if the _INI method exists. The _STA method is used to determine 11555if 11556the device is present; An _INI can only be run if _STA returns present, 11557but 11558it is a waste of time to run the _STA method if the _INI does not exist. 11559(Prototype and assistance from Dong Wei) 11560 11561Implemented use of the C99 uintptr_t for the pointer casting macros if it 11562is 11563available in the current compiler. Otherwise, the default (void *) cast 11564is 11565used as before. 11566 11567Fixed some possible memory leaks found within the execution path of the 11568Break, Continue, If, and CreateField operators. (Valery Podrezov) 11569 11570Fixed a problem introduced in the 20051202 release where an exception is 11571generated during method execution if a control method attempts to declare 11572another method. 11573 11574Moved resource descriptor string constants that are used by both the AML 11575disassembler and AML debugger to the common utilities directory so that 11576these components are independent. 11577 11578Implemented support in the AcpiExec utility (-e switch) to globally 11579ignore 11580exceptions during control method execution (method is not aborted.) 11581 11582Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 11583generation. 11584 11585Code and Data Size: The current and previous library sizes for the core 11586subsystem are shown below. These are the code and data sizes for the 11587acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11588These 11589values do not include any ACPI driver or OSPM code. The debug version of 11590the 11591code includes the debug output trace mechanism and has a much larger code 11592and data size. Note that these values will vary depending on the 11593efficiency 11594of the compiler and the compiler options used during generation. 11595 11596 Previous Release: 11597 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 11598 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 11599 Current Release: 11600 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 11601 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 11602 11603 116042) iASL Compiler/Disassembler: 11605 11606Fixed a problem where a CPU stack overflow fault could occur if a 11607recursive 11608method call was made from within a Return statement. 11609 11610---------------------------------------- 1161102 December 2005. Summary of changes for version 20051202: 11612 116131) ACPI CA Core Subsystem: 11614 11615Modified the parsing of control methods to no longer create namespace 11616objects during the first pass of the parse. Objects are now created only 11617during the execute phase, at the moment the namespace creation operator 11618is 11619encountered in the AML (Name, OperationRegion, CreateByteField, etc.) 11620This 11621should eliminate ALREADY_EXISTS exceptions seen on some machines where 11622reentrant control methods are protected by an AML mutex. The mutex will 11623now 11624correctly block multiple threads from attempting to create the same 11625object 11626more than once. 11627 11628Increased the number of available Owner Ids for namespace object tracking 11629from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 11630on 11631some machines with a large number of ACPI tables (either static or 11632dynamic). 11633 11634Fixed a problem with the AcpiExec utility where a fault could occur when 11635the 11636-b switch (batch mode) is used. 11637 11638Enhanced the namespace dump routine to output the owner ID for each 11639namespace object. 11640 11641Code and Data Size: The current and previous library sizes for the core 11642subsystem are shown below. These are the code and data sizes for the 11643acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11644These 11645values do not include any ACPI driver or OSPM code. The debug version of 11646the 11647code includes the debug output trace mechanism and has a much larger code 11648and data size. Note that these values will vary depending on the 11649efficiency 11650of the compiler and the compiler options used during generation. 11651 11652 Previous Release: 11653 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 11654 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 11655 Current Release: 11656 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 11657 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 11658 11659 116602) iASL Compiler/Disassembler: 11661 11662Fixed a parse error during compilation of certain Switch/Case constructs. 11663To 11664simplify the parse, the grammar now allows for multiple Default 11665statements 11666and this error is now detected and flagged during the analysis phase. 11667 11668Disassembler: The disassembly now includes the contents of the original 11669table header within a comment at the start of the file. This includes the 11670name and version of the original ASL compiler. 11671 11672---------------------------------------- 1167317 November 2005. Summary of changes for version 20051117: 11674 116751) ACPI CA Core Subsystem: 11676 11677Fixed a problem in the AML parser where the method thread count could be 11678decremented below zero if any errors occurred during the method parse 11679phase. 11680This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 11681machines. 11682This also fixed a related regression with the mechanism that detects and 11683corrects methods that cannot properly handle reentrancy (related to the 11684deployment of the new OwnerId mechanism.) 11685 11686Eliminated the pre-parsing of control methods (to detect errors) during 11687table load. Related to the problem above, this was causing unwind issues 11688if 11689any errors occurred during the parse, and it seemed to be overkill. A 11690table 11691load should not be aborted if there are problems with any single control 11692method, thus rendering this feature rather pointless. 11693 11694Fixed a problem with the new table-driven resource manager where an 11695internal 11696buffer overflow could occur for small resource templates. 11697 11698Implemented a new external interface, AcpiGetVendorResource. This 11699interface 11700will find and return a vendor-defined resource descriptor within a _CRS 11701or 11702_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 11703Helgaas. 11704 11705Removed the length limit (200) on string objects as per the upcoming ACPI 117063.0A specification. This affects the following areas of the interpreter: 117071) 11708any implicit conversion of a Buffer to a String, 2) a String object 11709result 11710of the ASL Concatenate operator, 3) the String object result of the ASL 11711ToString operator. 11712 11713Fixed a problem in the Windows OS interface layer (OSL) where a 11714WAIT_FOREVER 11715on a semaphore object would incorrectly timeout. This allows the 11716multithreading features of the AcpiExec utility to work properly under 11717Windows. 11718 11719Updated the Linux makefiles for the iASL compiler and AcpiExec to include 11720the recently added file named "utresrc.c". 11721 11722Code and Data Size: The current and previous library sizes for the core 11723subsystem are shown below. These are the code and data sizes for the 11724acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11725These 11726values do not include any ACPI driver or OSPM code. The debug version of 11727the 11728code includes the debug output trace mechanism and has a much larger code 11729and data size. Note that these values will vary depending on the 11730efficiency 11731of the compiler and the compiler options used during generation. 11732 11733 Previous Release: 11734 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 11735 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 11736 Current Release: 11737 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 11738 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 11739 11740 117412) iASL Compiler/Disassembler: 11742 11743Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 11744specification. For the iASL compiler, this means that string literals 11745within 11746the source ASL can be of any length. 11747 11748Enhanced the listing output to dump the AML code for resource descriptors 11749immediately after the ASL code for each descriptor, instead of in a block 11750at 11751the end of the entire resource template. 11752 11753Enhanced the compiler debug output to dump the entire original parse tree 11754constructed during the parse phase, before any transforms are applied to 11755the 11756tree. The transformed tree is dumped also. 11757 11758---------------------------------------- 1175902 November 2005. Summary of changes for version 20051102: 11760 117611) ACPI CA Core Subsystem: 11762 11763Modified the subsystem initialization sequence to improve GPE support. 11764The 11765GPE initialization has been split into two parts in order to defer 11766execution 11767of the _PRW methods (Power Resources for Wake) until after the hardware 11768is 11769fully initialized and the SCI handler is installed. This allows the _PRW 11770methods to access fields protected by the Global Lock. This will fix 11771systems 11772where a NO_GLOBAL_LOCK exception has been seen during initialization. 11773 11774Converted the ACPI internal object disassemble and display code within 11775the 11776AML debugger to fully table-driven operation, reducing code size and 11777increasing maintainability. 11778 11779Fixed a regression with the ConcatenateResTemplate() ASL operator 11780introduced 11781in the 20051021 release. 11782 11783Implemented support for "local" internal ACPI object types within the 11784debugger "Object" command and the AcpiWalkNamespace external interfaces. 11785These local types include RegionFields, BankFields, IndexFields, Alias, 11786and 11787reference objects. 11788 11789Moved common AML resource handling code into a new file, "utresrc.c". 11790This 11791code is shared by both the Resource Manager and the AML Debugger. 11792 11793Code and Data Size: The current and previous library sizes for the core 11794subsystem are shown below. These are the code and data sizes for the 11795acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11796These 11797values do not include any ACPI driver or OSPM code. The debug version of 11798the 11799code includes the debug output trace mechanism and has a much larger code 11800and data size. Note that these values will vary depending on the 11801efficiency 11802of the compiler and the compiler options used during generation. 11803 11804 Previous Release: 11805 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 11806 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 11807 Current Release: 11808 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 11809 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 11810 11811 118122) iASL Compiler/Disassembler: 11813 11814Fixed a problem with very large initializer lists (more than 4000 11815elements) 11816for both Buffer and Package objects where the parse stack could overflow. 11817 11818Enhanced the pre-compile source code scan for non-ASCII characters to 11819ignore 11820characters within comment fields. The scan is now always performed and is 11821no 11822longer optional, detecting invalid characters within a source file 11823immediately rather than during the parse phase or later. 11824 11825Enhanced the ASL grammar definition to force early reductions on all 11826list- 11827style grammar elements so that the overall parse stack usage is greatly 11828reduced. This should improve performance and reduce the possibility of 11829parse 11830stack overflow. 11831 11832Eliminated all reduce/reduce conflicts in the iASL parser generation. 11833Also, 11834with the addition of a %expected statement, the compiler generates from 11835source with no warnings. 11836 11837Fixed a possible segment fault in the disassembler if the input filename 11838does not contain a "dot" extension (Thomas Renninger). 11839 11840---------------------------------------- 1184121 October 2005. Summary of changes for version 20051021: 11842 118431) ACPI CA Core Subsystem: 11844 11845Implemented support for the EM64T and other x86-64 processors. This 11846essentially entails recognizing that these processors support non-aligned 11847memory transfers. Previously, all 64-bit processors were assumed to lack 11848hardware support for non-aligned transfers. 11849 11850Completed conversion of the Resource Manager to nearly full table-driven 11851operation. Specifically, the resource conversion code (convert AML to 11852internal format and the reverse) and the debug code to dump internal 11853resource descriptors are fully table-driven, reducing code and data size 11854and 11855improving maintainability. 11856 11857The OSL interfaces for Acquire and Release Lock now use a 64-bit flag 11858word 11859on 64-bit processors instead of a fixed 32-bit word. (With assistance 11860from 11861Alexey Starikovskiy) 11862 11863Implemented support within the resource conversion code for the Type- 11864Specific byte within the various ACPI 3.0 *WordSpace macros. 11865 11866Fixed some issues within the resource conversion code for the type- 11867specific 11868flags for both Memory and I/O address resource descriptors. For Memory, 11869implemented support for the MTP and TTP flags. For I/O, split the TRS and 11870TTP flags into two separate fields. 11871 11872Code and Data Size: The current and previous library sizes for the core 11873subsystem are shown below. These are the code and data sizes for the 11874acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11875These 11876values do not include any ACPI driver or OSPM code. The debug version of 11877the 11878code includes the debug output trace mechanism and has a much larger code 11879and data size. Note that these values will vary depending on the 11880efficiency 11881of the compiler and the compiler options used during generation. 11882 11883 Previous Release: 11884 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 11885 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 11886 Current Release: 11887 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 11888 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 11889 11890 11891 118922) iASL Compiler/Disassembler: 11893 11894Relaxed a compiler restriction that disallowed a ResourceIndex byte if 11895the 11896corresponding ResourceSource string was not also present in a resource 11897descriptor declaration. This restriction caused problems with existing 11898AML/ASL code that includes the Index byte without the string. When such 11899AML 11900was disassembled, it could not be compiled without modification. Further, 11901the modified code created a resource template with a different size than 11902the 11903original, breaking code that used fixed offsets into the resource 11904template 11905buffer. 11906 11907Removed a recent feature of the disassembler to ignore a lone 11908ResourceIndex 11909byte. This byte is now emitted if present so that the exact AML can be 11910reproduced when the disassembled code is recompiled. 11911 11912Improved comments and text alignment for the resource descriptor code 11913emitted by the disassembler. 11914 11915Implemented disassembler support for the ACPI 3.0 AccessSize field within 11916a 11917Register() resource descriptor. 11918 11919---------------------------------------- 1192030 September 2005. Summary of changes for version 20050930: 11921 119221) ACPI CA Core Subsystem: 11923 11924Completed a major overhaul of the Resource Manager code - specifically, 11925optimizations in the area of the AML/internal resource conversion code. 11926The 11927code has been optimized to simplify and eliminate duplicated code, CPU 11928stack 11929use has been decreased by optimizing function parameters and local 11930variables, and naming conventions across the manager have been 11931standardized 11932for clarity and ease of maintenance (this includes function, parameter, 11933variable, and struct/typedef names.) The update may force changes in some 11934driver code, depending on how resources are handled by the host OS. 11935 11936All Resource Manager dispatch and information tables have been moved to a 11937single location for clarity and ease of maintenance. One new file was 11938created, named "rsinfo.c". 11939 11940The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 11941guarantee that the argument is not evaluated twice, making them less 11942prone 11943to macro side-effects. However, since there exists the possibility of 11944additional stack use if a particular compiler cannot optimize them (such 11945as 11946in the debug generation case), the original macros are optionally 11947available. 11948Note that some invocations of the return_VALUE macro may now cause size 11949mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 11950to 11951eliminate these. (From Randy Dunlap) 11952 11953Implemented a new mechanism to enable debug tracing for individual 11954control 11955methods. A new external interface, AcpiDebugTrace, is provided to enable 11956this mechanism. The intent is to allow the host OS to easily enable and 11957disable tracing for problematic control methods. This interface can be 11958easily exposed to a user or debugger interface if desired. See the file 11959psxface.c for details. 11960 11961AcpiUtCallocate will now return a valid pointer if a length of zero is 11962specified - a length of one is used and a warning is issued. This matches 11963the behavior of AcpiUtAllocate. 11964 11965Code and Data Size: The current and previous library sizes for the core 11966subsystem are shown below. These are the code and data sizes for the 11967acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11968These 11969values do not include any ACPI driver or OSPM code. The debug version of 11970the 11971code includes the debug output trace mechanism and has a much larger code 11972and data size. Note that these values will vary depending on the 11973efficiency 11974of the compiler and the compiler options used during generation. 11975 11976 Previous Release: 11977 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 11978 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 11979 Current Release: 11980 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 11981 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 11982 11983 119842) iASL Compiler/Disassembler: 11985 11986A remark is issued if the effective compile-time length of a package or 11987buffer is zero. Previously, this was a warning. 11988 11989---------------------------------------- 1199016 September 2005. Summary of changes for version 20050916: 11991 119921) ACPI CA Core Subsystem: 11993 11994Fixed a problem within the Resource Manager where support for the Generic 11995Register descriptor was not fully implemented. This descriptor is now 11996fully 11997recognized, parsed, disassembled, and displayed. 11998 11999Completely restructured the Resource Manager code to utilize table-driven 12000dispatch and lookup, eliminating many of the large switch() statements. 12001This 12002reduces overall subsystem code size and code complexity. Affects the 12003resource parsing and construction, disassembly, and debug dump output. 12004 12005Cleaned up and restructured the debug dump output for all resource 12006descriptors. Improved readability of the output and reduced code size. 12007 12008Fixed a problem where changes to internal data structures caused the 12009optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 12010 12011Code and Data Size: The current and previous library sizes for the core 12012subsystem are shown below. These are the code and data sizes for the 12013acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12014These 12015values do not include any ACPI driver or OSPM code. The debug version of 12016the 12017code includes the debug output trace mechanism and has a much larger code 12018and data size. Note that these values will vary depending on the 12019efficiency 12020of the compiler and the compiler options used during generation. 12021 12022 Previous Release: 12023 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 12024 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 12025 Current Release: 12026 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 12027 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 12028 12029 120302) iASL Compiler/Disassembler: 12031 12032Updated the disassembler to automatically insert an EndDependentFn() 12033macro 12034into the ASL stream if this macro is missing in the original AML code, 12035simplifying compilation of the resulting ASL module. 12036 12037Fixed a problem in the disassembler where a disassembled ResourceSource 12038string (within a large resource descriptor) was not surrounded by quotes 12039and 12040not followed by a comma, causing errors when the resulting ASL module was 12041compiled. Also, escape sequences within a ResourceSource string are now 12042handled correctly (especially "\\") 12043 12044---------------------------------------- 1204502 September 2005. Summary of changes for version 20050902: 12046 120471) ACPI CA Core Subsystem: 12048 12049Fixed a problem with the internal Owner ID allocation and deallocation 12050mechanisms for control method execution and recursive method invocation. 12051This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 12052messages seen on some systems. Recursive method invocation depth is 12053currently limited to 255. (Alexey Starikovskiy) 12054 12055Completely eliminated all vestiges of support for the "module-level 12056executable code" until this support is fully implemented and debugged. 12057This 12058should eliminate the NO_RETURN_VALUE exceptions seen during table load on 12059some systems that invoke this support. 12060 12061Fixed a problem within the resource manager code where the transaction 12062flags 12063for a 64-bit address descriptor were handled incorrectly in the type- 12064specific flag byte. 12065 12066Consolidated duplicate code within the address descriptor resource 12067manager 12068code, reducing overall subsystem code size. 12069 12070Fixed a fault when using the AML debugger "disassemble" command to 12071disassemble individual control methods. 12072 12073Removed references to the "release_current" directory within the Unix 12074release package. 12075 12076Code and Data Size: The current and previous core subsystem library sizes 12077are shown below. These are the code and data sizes for the acpica.lib 12078produced by the Microsoft Visual C++ 6.0 compiler. These values do not 12079include any ACPI driver or OSPM code. The debug version of the code 12080includes 12081the debug output trace mechanism and has a much larger code and data 12082size. 12083Note that these values will vary depending on the efficiency of the 12084compiler 12085and the compiler options used during generation. 12086 12087 Previous Release: 12088 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 12089 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 12090 Current Release: 12091 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 12092 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 12093 12094 120952) iASL Compiler/Disassembler: 12096 12097Implemented an error check for illegal duplicate values in the interrupt 12098and 12099dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 12100Interrupt(). 12101 12102Implemented error checking for the Irq() and IrqNoFlags() macros to 12103detect 12104too many values in the interrupt list (16 max) and invalid values in the 12105list (range 0 - 15) 12106 12107The maximum length string literal within an ASL file is now restricted to 12108200 characters as per the ACPI specification. 12109 12110Fixed a fault when using the -ln option (generate namespace listing). 12111 12112Implemented an error check to determine if a DescriptorName within a 12113resource descriptor has already been used within the current scope. 12114 12115---------------------------------------- 1211615 August 2005. Summary of changes for version 20050815: 12117 121181) ACPI CA Core Subsystem: 12119 12120Implemented a full bytewise compare to determine if a table load request 12121is 12122attempting to load a duplicate table. The compare is performed if the 12123table 12124signatures and table lengths match. This will allow different tables with 12125the same OEM Table ID and revision to be loaded - probably against the 12126ACPI 12127specification, but discovered in the field nonetheless. 12128 12129Added the changes.txt logfile to each of the zipped release packages. 12130 12131Code and Data Size: Current and previous core subsystem library sizes are 12132shown below. These are the code and data sizes for the acpica.lib 12133produced 12134by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12135any ACPI driver or OSPM code. The debug version of the code includes the 12136debug output trace mechanism and has a much larger code and data size. 12137Note 12138that these values will vary depending on the efficiency of the compiler 12139and 12140the compiler options used during generation. 12141 12142 Previous Release: 12143 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 12144 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 12145 Current Release: 12146 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 12147 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 12148 12149 121502) iASL Compiler/Disassembler: 12151 12152Fixed a problem where incorrect AML code could be generated for Package 12153objects if optimization is disabled (via the -oa switch). 12154 12155Fixed a problem with where incorrect AML code is generated for variable- 12156length packages when the package length is not specified and the number 12157of 12158initializer values is greater than 255. 12159 12160 12161---------------------------------------- 1216229 July 2005. Summary of changes for version 20050729: 12163 121641) ACPI CA Core Subsystem: 12165 12166Implemented support to ignore an attempt to install/load a particular 12167ACPI 12168table more than once. Apparently there exists BIOS code that repeatedly 12169attempts to load the same SSDT upon certain events. With assistance from 12170Venkatesh Pallipadi. 12171 12172Restructured the main interface to the AML parser in order to correctly 12173handle all exceptional conditions. This will prevent leakage of the 12174OwnerId 12175resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 12176some 12177machines. With assistance from Alexey Starikovskiy. 12178 12179Support for "module level code" has been disabled in this version due to 12180a 12181number of issues that have appeared on various machines. The support can 12182be 12183enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 12184compilation. When the issues are fully resolved, the code will be enabled 12185by 12186default again. 12187 12188Modified the internal functions for debug print support to define the 12189FunctionName parameter as a (const char *) for compatibility with 12190compiler 12191built-in macros such as __FUNCTION__, etc. 12192 12193Linted the entire ACPICA source tree for both 32-bit and 64-bit. 12194 12195Implemented support to display an object count summary for the AML 12196Debugger 12197commands Object and Methods. 12198 12199Code and Data Size: Current and previous core subsystem library sizes are 12200shown below. These are the code and data sizes for the acpica.lib 12201produced 12202by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12203any ACPI driver or OSPM code. The debug version of the code includes the 12204debug output trace mechanism and has a much larger code and data size. 12205Note 12206that these values will vary depending on the efficiency of the compiler 12207and 12208the compiler options used during generation. 12209 12210 Previous Release: 12211 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 12212 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 12213 Current Release: 12214 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 12215 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 12216 12217 122182) iASL Compiler/Disassembler: 12219 12220Fixed a regression that appeared in the 20050708 version of the compiler 12221where an error message was inadvertently emitted for invocations of the 12222_OSI 12223reserved control method. 12224 12225---------------------------------------- 1222608 July 2005. Summary of changes for version 20050708: 12227 122281) ACPI CA Core Subsystem: 12229 12230The use of the CPU stack in the debug version of the subsystem has been 12231considerably reduced. Previously, a debug structure was declared in every 12232function that used the debug macros. This structure has been removed in 12233favor of declaring the individual elements as parameters to the debug 12234functions. This reduces the cumulative stack use during nested execution 12235of 12236ACPI function calls at the cost of a small increase in the code size of 12237the 12238debug version of the subsystem. With assistance from Alexey Starikovskiy 12239and 12240Len Brown. 12241 12242Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 12243headers to define a macro that will return the current function name at 12244runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 12245by 12246the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 12247compiler-dependent header, the function name is saved on the CPU stack 12248(one 12249pointer per function.) This mechanism is used because apparently there 12250exists no standard ANSI-C defined macro that that returns the function 12251name. 12252 12253Redesigned and reimplemented the "Owner ID" mechanism used to track 12254namespace objects created/deleted by ACPI tables and control method 12255execution. A bitmap is now used to allocate and free the IDs, thus 12256solving 12257the wraparound problem present in the previous implementation. The size 12258of 12259the namespace node descriptor was reduced by 2 bytes as a result (Alexey 12260Starikovskiy). 12261 12262Removed the UINT32_BIT and UINT16_BIT types that were used for the 12263bitfield 12264flag definitions within the headers for the predefined ACPI tables. These 12265have been replaced by UINT8_BIT in order to increase the code portability 12266of 12267the subsystem. If the use of UINT8 remains a problem, we may be forced to 12268eliminate bitfields entirely because of a lack of portability. 12269 12270Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 12271This 12272is a frequently used function and this improvement increases the 12273performance 12274of the entire subsystem (Alexey Starikovskiy). 12275 12276Fixed several possible memory leaks and the inverse - premature object 12277deletion (Alexey Starikovskiy). 12278 12279Code and Data Size: Current and previous core subsystem library sizes are 12280shown below. These are the code and data sizes for the acpica.lib 12281produced 12282by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12283any ACPI driver or OSPM code. The debug version of the code includes the 12284debug output trace mechanism and has a much larger code and data size. 12285Note 12286that these values will vary depending on the efficiency of the compiler 12287and 12288the compiler options used during generation. 12289 12290 Previous Release: 12291 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 12292 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 12293 Current Release: 12294 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 12295 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 12296 12297---------------------------------------- 1229824 June 2005. Summary of changes for version 20050624: 12299 123001) ACPI CA Core Subsystem: 12301 12302Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 12303the host-defined cache object. This allows the OSL implementation to 12304define 12305and type this object in any manner desired, simplifying the OSL 12306implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 12307Linux, and should be defined in the OS-specific header file for other 12308operating systems as required. 12309 12310Changed the interface to AcpiOsAcquireObject to directly return the 12311requested object as the function return (instead of ACPI_STATUS.) This 12312change was made for performance reasons, since this is the purpose of the 12313interface in the first place. AcpiOsAcquireObject is now similar to the 12314AcpiOsAllocate interface. 12315 12316Implemented a new AML debugger command named Businfo. This command 12317displays 12318information about all devices that have an associate _PRT object. The 12319_ADR, 12320_HID, _UID, and _CID are displayed for these devices. 12321 12322Modified the initialization sequence in AcpiInitializeSubsystem to call 12323the 12324OSL interface AcpiOslInitialize first, before any local initialization. 12325This 12326change was required because the global initialization now calls OSL 12327interfaces. 12328 12329Enhanced the Dump command to display the entire contents of Package 12330objects 12331(including all sub-objects and their values.) 12332 12333Restructured the code base to split some files because of size and/or 12334because the code logically belonged in a separate file. New files are 12335listed 12336below. All makefiles and project files included in the ACPI CA release 12337have 12338been updated. 12339 utilities/utcache.c /* Local cache interfaces */ 12340 utilities/utmutex.c /* Local mutex support */ 12341 utilities/utstate.c /* State object support */ 12342 interpreter/parser/psloop.c /* Main AML parse loop */ 12343 12344Code and Data Size: Current and previous core subsystem library sizes are 12345shown below. These are the code and data sizes for the acpica.lib 12346produced 12347by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12348any ACPI driver or OSPM code. The debug version of the code includes the 12349debug output trace mechanism and has a much larger code and data size. 12350Note 12351that these values will vary depending on the efficiency of the compiler 12352and 12353the compiler options used during generation. 12354 12355 Previous Release: 12356 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 12357 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 12358 Current Release: 12359 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 12360 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 12361 12362 123632) iASL Compiler/Disassembler: 12364 12365Fixed a regression introduced in version 20050513 where the use of a 12366Package 12367object within a Case() statement caused a compile time exception. The 12368original behavior has been restored (a Match() operator is emitted.) 12369 12370---------------------------------------- 1237117 June 2005. Summary of changes for version 20050617: 12372 123731) ACPI CA Core Subsystem: 12374 12375Moved the object cache operations into the OS interface layer (OSL) to 12376allow 12377the host OS to handle these operations if desired (for example, the Linux 12378OSL will invoke the slab allocator). This support is optional; the 12379compile 12380time define ACPI_USE_LOCAL_CACHE may be used to utilize the original 12381cache 12382code in the ACPI CA core. The new OSL interfaces are shown below. See 12383utalloc.c for an example implementation, and acpiosxf.h for the exact 12384interface definitions. With assistance from Alexey Starikovskiy. 12385 AcpiOsCreateCache 12386 AcpiOsDeleteCache 12387 AcpiOsPurgeCache 12388 AcpiOsAcquireObject 12389 AcpiOsReleaseObject 12390 12391Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 12392return 12393and restore a flags parameter. This fits better with many OS lock models. 12394Note: the current execution state (interrupt handler or not) is no longer 12395passed to these interfaces. If necessary, the OSL must determine this 12396state 12397by itself, a simple and fast operation. With assistance from Alexey 12398Starikovskiy. 12399 12400Fixed a problem in the ACPI table handling where a valid XSDT was assumed 12401present if the revision of the RSDP was 2 or greater. According to the 12402ACPI 12403specification, the XSDT is optional in all cases, and the table manager 12404therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 12405Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs 12406contain 12407only the RSDT. 12408 12409Fixed an interpreter problem with the Mid() operator in the case of an 12410input 12411string where the resulting output string is of zero length. It now 12412correctly 12413returns a valid, null terminated string object instead of a string object 12414with a null pointer. 12415 12416Fixed a problem with the control method argument handling to allow a 12417store 12418to an Arg object that already contains an object of type Device. The 12419Device 12420object is now correctly overwritten. Previously, an error was returned. 12421 12422 12423Enhanced the debugger Find command to emit object values in addition to 12424the 12425found object pathnames. The output format is the same as the dump 12426namespace 12427command. 12428 12429Enhanced the debugger Set command. It now has the ability to set the 12430value 12431of any Named integer object in the namespace (Previously, only method 12432locals 12433and args could be set.) 12434 12435Code and Data Size: Current and previous core subsystem library sizes are 12436shown below. These are the code and data sizes for the acpica.lib 12437produced 12438by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12439any ACPI driver or OSPM code. The debug version of the code includes the 12440debug output trace mechanism and has a much larger code and data size. 12441Note 12442that these values will vary depending on the efficiency of the compiler 12443and 12444the compiler options used during generation. 12445 12446 Previous Release: 12447 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 12448 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 12449 Current Release: 12450 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 12451 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 12452 12453 124542) iASL Compiler/Disassembler: 12455 12456Fixed a regression in the disassembler where if/else/while constructs 12457were 12458output incorrectly. This problem was introduced in the previous release 12459(20050526). This problem also affected the single-step disassembly in the 12460debugger. 12461 12462Fixed a problem where compiling the reserved _OSI method would randomly 12463(but 12464rarely) produce compile errors. 12465 12466Enhanced the disassembler to emit compilable code in the face of 12467incorrect 12468AML resource descriptors. If the optional ResourceSourceIndex is present, 12469but the ResourceSource is not, do not emit the ResourceSourceIndex in the 12470disassembly. Otherwise, the resulting code cannot be compiled without 12471errors. 12472 12473---------------------------------------- 1247426 May 2005. Summary of changes for version 20050526: 12475 124761) ACPI CA Core Subsystem: 12477 12478Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 12479the module level (not within a control method.) These opcodes are 12480executed 12481exactly once at the time the table is loaded. This type of code was legal 12482up 12483until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 12484in 12485order to provide backwards compatibility with earlier BIOS 12486implementations. 12487This eliminates the "Encountered executable code at module level" warning 12488that was previously generated upon detection of such code. 12489 12490Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 12491inadvertently be generated during the lookup of namespace objects in the 12492second pass parse of ACPI tables and control methods. It appears that 12493this 12494problem could occur during the resolution of forward references to 12495namespace 12496objects. 12497 12498Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 12499corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 12500allows the deadlock detection debug code to be compiled out in the normal 12501case, improving mutex performance (and overall subsystem performance) 12502considerably. 12503 12504Implemented a handful of miscellaneous fixes for possible memory leaks on 12505error conditions and error handling control paths. These fixes were 12506suggested by FreeBSD and the Coverity Prevent source code analysis tool. 12507 12508Added a check for a null RSDT pointer in AcpiGetFirmwareTable 12509(tbxfroot.c) 12510to prevent a fault in this error case. 12511 12512Code and Data Size: Current and previous core subsystem library sizes are 12513shown below. These are the code and data sizes for the acpica.lib 12514produced 12515by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12516any ACPI driver or OSPM code. The debug version of the code includes the 12517debug output trace mechanism and has a much larger code and data size. 12518Note 12519that these values will vary depending on the efficiency of the compiler 12520and 12521the compiler options used during generation. 12522 12523 Previous Release: 12524 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 12525 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 12526 Current Release: 12527 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 12528 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 12529 12530 125312) iASL Compiler/Disassembler: 12532 12533Implemented support to allow Type 1 and Type 2 ASL operators to appear at 12534the module level (not within a control method.) These operators will be 12535executed once at the time the table is loaded. This type of code was 12536legal 12537up until the release of ACPI 2.0B (2002) and is now supported by the iASL 12538compiler in order to provide backwards compatibility with earlier BIOS 12539ASL 12540code. 12541 12542The ACPI integer width (specified via the table revision ID or the -r 12543override, 32 or 64 bits) is now used internally during compile-time 12544constant 12545folding to ensure that constants are truncated to 32 bits if necessary. 12546Previously, the revision ID value was only emitted in the AML table 12547header. 12548 12549An error message is now generated for the Mutex and Method operators if 12550the 12551SyncLevel parameter is outside the legal range of 0 through 15. 12552 12553Fixed a problem with the Method operator ParameterTypes list handling 12554(ACPI 125553.0). Previously, more than 2 types or 2 arguments generated a syntax 12556error. 12557The actual underlying implementation of method argument typechecking is 12558still under development, however. 12559 12560---------------------------------------- 1256113 May 2005. Summary of changes for version 20050513: 12562 125631) ACPI CA Core Subsystem: 12564 12565Implemented support for PCI Express root bridges -- added support for 12566device 12567PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 12568 12569The interpreter now automatically truncates incoming 64-bit constants to 1257032 12571bits if currently executing out of a 32-bit ACPI table (Revision < 2). 12572This 12573also affects the iASL compiler constant folding. (Note: as per below, the 12574iASL compiler no longer allows 64-bit constants within 32-bit tables.) 12575 12576Fixed a problem where string and buffer objects with "static" pointers 12577(pointers to initialization data within an ACPI table) were not handled 12578consistently. The internal object copy operation now always copies the 12579data 12580to a newly allocated buffer, regardless of whether the source object is 12581static or not. 12582 12583Fixed a problem with the FromBCD operator where an implicit result 12584conversion was improperly performed while storing the result to the 12585target 12586operand. Since this is an "explicit conversion" operator, the implicit 12587conversion should never be performed on the output. 12588 12589Fixed a problem with the CopyObject operator where a copy to an existing 12590named object did not always completely overwrite the existing object 12591stored 12592at name. Specifically, a buffer-to-buffer copy did not delete the 12593existing 12594buffer. 12595 12596Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces 12597and 12598structs for consistency. 12599 12600Code and Data Size: Current and previous core subsystem library sizes are 12601shown below. These are the code and data sizes for the acpica.lib 12602produced 12603by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12604any ACPI driver or OSPM code. The debug version of the code includes the 12605debug output trace mechanism and has a much larger code and data size. 12606Note 12607that these values will vary depending on the efficiency of the compiler 12608and 12609the compiler options used during generation. 12610 12611 Previous Release: 12612 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 12613 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 12614 Current Release: (Same sizes) 12615 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 12616 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 12617 12618 126192) iASL Compiler/Disassembler: 12620 12621The compiler now emits a warning if an attempt is made to generate a 64- 12622bit 12623integer constant from within a 32-bit ACPI table (Revision < 2). The 12624integer 12625is truncated to 32 bits. 12626 12627Fixed a problem with large package objects: if the static length of the 12628package is greater than 255, the "variable length package" opcode is 12629emitted. Previously, this caused an error. This requires an update to the 12630ACPI spec, since it currently (incorrectly) states that packages larger 12631than 12632255 elements are not allowed. 12633 12634The disassembler now correctly handles variable length packages and 12635packages 12636larger than 255 elements. 12637 12638---------------------------------------- 1263908 April 2005. Summary of changes for version 20050408: 12640 126411) ACPI CA Core Subsystem: 12642 12643Fixed three cases in the interpreter where an "index" argument to an ASL 12644function was still (internally) 32 bits instead of the required 64 bits. 12645This was the Index argument to the Index, Mid, and Match operators. 12646 12647The "strupr" function is now permanently local (AcpiUtStrupr), since this 12648is 12649not a POSIX-defined function and not present in most kernel-level C 12650libraries. All references to the C library strupr function have been 12651removed 12652from the headers. 12653 12654Completed the deployment of static functions/prototypes. All prototypes 12655with 12656the static attribute have been moved from the headers to the owning C 12657file. 12658 12659Implemented an extract option (-e) for the AcpiBin utility (AML binary 12660utility). This option allows the utility to extract individual ACPI 12661tables 12662from the output of AcpiDmp. It provides the same functionality of the 12663acpixtract.pl perl script without the worry of setting the correct perl 12664options. AcpiBin runs on Windows and has not yet been generated/validated 12665in 12666the Linux/Unix environment (but should be soon). 12667 12668Updated and fixed the table dump option for AcpiBin (-d). This option 12669converts a single ACPI table to a hex/ascii file, similar to the output 12670of 12671AcpiDmp. 12672 12673Code and Data Size: Current and previous core subsystem library sizes are 12674shown below. These are the code and data sizes for the acpica.lib 12675produced 12676by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12677any ACPI driver or OSPM code. The debug version of the code includes the 12678debug output trace mechanism and has a much larger code and data size. 12679Note 12680that these values will vary depending on the efficiency of the compiler 12681and 12682the compiler options used during generation. 12683 12684 Previous Release: 12685 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 12686 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 12687 Current Release: 12688 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 12689 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 12690 12691 126922) iASL Compiler/Disassembler: 12693 12694Disassembler fix: Added a check to ensure that the table length found in 12695the 12696ACPI table header within the input file is not longer than the actual 12697input 12698file size. This indicates some kind of file or table corruption. 12699 12700---------------------------------------- 1270129 March 2005. Summary of changes for version 20050329: 12702 127031) ACPI CA Core Subsystem: 12704 12705An error is now generated if an attempt is made to create a Buffer Field 12706of 12707length zero (A CreateField with a length operand of zero.) 12708 12709The interpreter now issues a warning whenever executable code at the 12710module 12711level is detected during ACPI table load. This will give some idea of the 12712prevalence of this type of code. 12713 12714Implemented support for references to named objects (other than control 12715methods) within package objects. 12716 12717Enhanced package object output for the debug object. Package objects are 12718now 12719completely dumped, showing all elements. 12720 12721Enhanced miscellaneous object output for the debug object. Any object can 12722now be written to the debug object (for example, a device object can be 12723written, and the type of the object will be displayed.) 12724 12725The "static" qualifier has been added to all local functions across both 12726the 12727core subsystem and the iASL compiler. 12728 12729The number of "long" lines (> 80 chars) within the source has been 12730significantly reduced, by about 1/3. 12731 12732Cleaned up all header files to ensure that all CA/iASL functions are 12733prototyped (even static functions) and the formatting is consistent. 12734 12735Two new header files have been added, acopcode.h and acnames.h. 12736 12737Removed several obsolete functions that were no longer used. 12738 12739Code and Data Size: Current and previous core subsystem library sizes are 12740shown below. These are the code and data sizes for the acpica.lib 12741produced 12742by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12743any ACPI driver or OSPM code. The debug version of the code includes the 12744debug output trace mechanism and has a much larger code and data size. 12745Note 12746that these values will vary depending on the efficiency of the compiler 12747and 12748the compiler options used during generation. 12749 12750 Previous Release: 12751 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 12752 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 12753 Current Release: 12754 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 12755 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 12756 12757 12758 127592) iASL Compiler/Disassembler: 12760 12761Fixed a problem with the resource descriptor generation/support. For the 12762ResourceSourceIndex and the ResourceSource fields, both must be present, 12763or 12764both must be not present - can't have one without the other. 12765 12766The compiler now returns non-zero from the main procedure if any errors 12767have 12768occurred during the compilation. 12769 12770 12771---------------------------------------- 1277209 March 2005. Summary of changes for version 20050309: 12773 127741) ACPI CA Core Subsystem: 12775 12776The string-to-buffer implicit conversion code has been modified again 12777after 12778a change to the ACPI specification. In order to match the behavior of 12779the 12780other major ACPI implementation, the target buffer is no longer truncated 12781if 12782the source string is smaller than an existing target buffer. This change 12783requires an update to the ACPI spec, and should eliminate the recent 12784AE_AML_BUFFER_LIMIT issues. 12785 12786The "implicit return" support was rewritten to a new algorithm that 12787solves 12788the general case. Rather than attempt to determine when a method is about 12789to 12790exit, the result of every ASL operator is saved momentarily until the 12791very 12792next ASL operator is executed. Therefore, no matter how the method exits, 12793there will always be a saved implicit return value. This feature is only 12794enabled with the AcpiGbl_EnableInterpreterSlack flag, and should 12795eliminate 12796AE_AML_NO_RETURN_VALUE errors when enabled. 12797 12798Implemented implicit conversion support for the predicate (operand) of 12799the 12800If, Else, and While operators. String and Buffer arguments are 12801automatically 12802converted to Integers. 12803 12804Changed the string-to-integer conversion behavior to match the new ACPI 12805errata: "If no integer object exists, a new integer is created. The ASCII 12806string is interpreted as a hexadecimal constant. Each string character is 12807interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 12808with the first character as the most significant digit, and ending with 12809the 12810first non-hexadecimal character or end-of-string." This means that the 12811first 12812non-hex character terminates the conversion and this is the code that was 12813changed. 12814 12815Fixed a problem where the ObjectType operator would fail (fault) when 12816used 12817on an Index of a Package which pointed to a null package element. The 12818operator now properly returns zero (Uninitialized) in this case. 12819 12820Fixed a problem where the While operator used excessive memory by not 12821properly popping the result stack during execution. There was no memory 12822leak 12823after execution, however. (Code provided by Valery Podrezov.) 12824 12825Fixed a problem where references to control methods within Package 12826objects 12827caused the method to be invoked, instead of producing a reference object 12828pointing to the method. 12829 12830Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) 12831to 12832improve performance and reduce code size. (Code provided by Alexey 12833Starikovskiy.) 12834 12835Code and Data Size: Current and previous core subsystem library sizes are 12836shown below. These are the code and data sizes for the acpica.lib 12837produced 12838by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12839any ACPI driver or OSPM code. The debug version of the code includes the 12840debug output trace mechanism and has a much larger code and data size. 12841Note 12842that these values will vary depending on the efficiency of the compiler 12843and 12844the compiler options used during generation. 12845 12846 Previous Release: 12847 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 12848 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 12849 Current Release: 12850 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 12851 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 12852 12853 128542) iASL Compiler/Disassembler: 12855 12856Fixed a problem with the Return operator with no arguments. Since the AML 12857grammar for the byte encoding requires an operand for the Return opcode, 12858the 12859compiler now emits a Return(Zero) for this case. An ACPI specification 12860update has been written for this case. 12861 12862For tables other than the DSDT, namepath optimization is automatically 12863disabled. This is because SSDTs can be loaded anywhere in the namespace, 12864the 12865compiler has no knowledge of where, and thus cannot optimize namepaths. 12866 12867Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 12868inadvertently omitted from the ACPI specification, and will require an 12869update to the spec. 12870 12871The source file scan for ASCII characters is now optional (-a). This 12872change 12873was made because some vendors place non-ascii characters within comments. 12874However, the scan is simply a brute-force byte compare to ensure all 12875characters in the file are in the range 0x00 to 0x7F. 12876 12877Fixed a problem with the CondRefOf operator where the compiler was 12878inappropriately checking for the existence of the target. Since the point 12879of 12880the operator is to check for the existence of the target at run-time, the 12881compiler no longer checks for the target existence. 12882 12883Fixed a problem where errors generated from the internal AML interpreter 12884during constant folding were not handled properly, causing a fault. 12885 12886Fixed a problem with overly aggressive range checking for the Stall 12887operator. The valid range (max 255) is now only checked if the operand is 12888of 12889type Integer. All other operand types cannot be statically checked. 12890 12891Fixed a problem where control method references within the RefOf, 12892DeRefOf, 12893and ObjectType operators were not treated properly. They are now treated 12894as 12895actual references, not method invocations. 12896 12897Fixed and enhanced the "list namespace" option (-ln). This option was 12898broken 12899a number of releases ago. 12900 12901Improved error handling for the Field, IndexField, and BankField 12902operators. 12903The compiler now cleanly reports and recovers from errors in the field 12904component (FieldUnit) list. 12905 12906Fixed a disassembler problem where the optional ResourceDescriptor fields 12907TRS and TTP were not always handled correctly. 12908 12909Disassembler - Comments in output now use "//" instead of "/*" 12910 12911---------------------------------------- 1291228 February 2005. Summary of changes for version 20050228: 12913 129141) ACPI CA Core Subsystem: 12915 12916Fixed a problem where the result of an Index() operator (an object 12917reference) must increment the reference count on the target object for 12918the 12919life of the object reference. 12920 12921Implemented AML Interpreter and Debugger support for the new ACPI 3.0 12922Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 12923WordSpace 12924resource descriptors. 12925 12926Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 12927Space Descriptor" string, indicating interpreter support for the 12928descriptors 12929above. 12930 12931Implemented header support for the new ACPI 3.0 FADT flag bits. 12932 12933Implemented header support for the new ACPI 3.0 PCI Express bits for the 12934PM1 12935status/enable registers. 12936 12937Updated header support for the MADT processor local Apic struct and MADT 12938platform interrupt source struct for new ACPI 3.0 fields. 12939 12940Implemented header support for the SRAT and SLIT ACPI tables. 12941 12942Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 12943flag 12944at runtime. 12945 12946Code and Data Size: Current and previous core subsystem library sizes are 12947shown below. These are the code and data sizes for the acpica.lib 12948produced 12949by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12950any ACPI driver or OSPM code. The debug version of the code includes the 12951debug output trace mechanism and has a much larger code and data size. 12952Note 12953that these values will vary depending on the efficiency of the compiler 12954and 12955the compiler options used during generation. 12956 12957 Previous Release: 12958 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 12959 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 12960 Current Release: 12961 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 12962 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 12963 12964 129652) iASL Compiler/Disassembler: 12966 12967Fixed a problem with the internal 64-bit String-to-integer conversion 12968with 12969strings less than two characters long. 12970 12971Fixed a problem with constant folding where the result of the Index() 12972operator can not be considered a constant. This means that Index() cannot 12973be 12974a type3 opcode and this will require an update to the ACPI specification. 12975 12976Disassembler: Implemented support for the TTP, MTP, and TRS resource 12977descriptor fields. These fields were inadvertently ignored and not output 12978in 12979the disassembly of the resource descriptor. 12980 12981 12982 ---------------------------------------- 1298311 February 2005. Summary of changes for version 20050211: 12984 129851) ACPI CA Core Subsystem: 12986 12987Implemented ACPI 3.0 support for implicit conversion within the Match() 12988operator. MatchObjects can now be of type integer, buffer, or string 12989instead 12990of just type integer. Package elements are implicitly converted to the 12991type 12992of the MatchObject. This change aligns the behavior of Match() with the 12993behavior of the other logical operators (LLess(), etc.) It also requires 12994an 12995errata change to the ACPI specification as this support was intended for 12996ACPI 3.0, but was inadvertently omitted. 12997 12998Fixed a problem with the internal implicit "to buffer" conversion. 12999Strings 13000that are converted to buffers will cause buffer truncation if the string 13001is 13002smaller than the target buffer. Integers that are converted to buffers 13003will 13004not cause buffer truncation, only zero extension (both as per the ACPI 13005spec.) The problem was introduced when code was added to truncate the 13006buffer, but this should not be performed in all cases, only the string 13007case. 13008 13009Fixed a problem with the Buffer and Package operators where the 13010interpreter 13011would get confused if two such operators were used as operands to an ASL 13012operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 13013stack was not being popped after the execution of these operators, 13014resulting 13015in an AE_NO_RETURN_VALUE exception. 13016 13017Fixed a problem with constructs of the form Store(Index(...),...). The 13018reference object returned from Index was inadvertently resolved to an 13019actual 13020value. This problem was introduced in version 20050114 when the behavior 13021of 13022Store() was modified to restrict the object types that can be used as the 13023source operand (to match the ACPI specification.) 13024 13025Reduced excessive stack use within the AcpiGetObjectInfo procedure. 13026 13027Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 13028 13029Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 13030 13031Code and Data Size: Current and previous core subsystem library sizes are 13032shown below. These are the code and data sizes for the acpica.lib 13033produced 13034by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13035any ACPI driver or OSPM code. The debug version of the code includes the 13036debug output trace mechanism and has a much larger code and data size. 13037Note 13038that these values will vary depending on the efficiency of the compiler 13039and 13040the compiler options used during generation. 13041 13042 Previous Release: 13043 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 13044 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 13045 Current Release: 13046 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 13047 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 13048 13049 130502) iASL Compiler/Disassembler: 13051 13052Fixed a code generation problem in the constant folding optimization code 13053where incorrect code was generated if a constant was reduced to a buffer 13054object (i.e., a reduced type 5 opcode.) 13055 13056Fixed a typechecking problem for the ToBuffer operator. Caused by an 13057incorrect return type in the internal opcode information table. 13058 13059---------------------------------------- 1306025 January 2005. Summary of changes for version 20050125: 13061 130621) ACPI CA Core Subsystem: 13063 13064Fixed a recently introduced problem with the Global Lock where the 13065underlying semaphore was not created. This problem was introduced in 13066version 20050114, and caused an AE_AML_NO_OPERAND exception during an 13067Acquire() operation on _GL. 13068 13069The local object cache is now optional, and is disabled by default. Both 13070AcpiExec and the iASL compiler enable the cache because they run in user 13071mode and this enhances their performance. #define 13072ACPI_ENABLE_OBJECT_CACHE 13073to enable the local cache. 13074 13075Fixed an issue in the internal function AcpiUtEvaluateObject concerning 13076the 13077optional "implicit return" support where an error was returned if no 13078return 13079object was expected, but one was implicitly returned. AE_OK is now 13080returned 13081in this case and the implicitly returned object is deleted. 13082AcpiUtEvaluateObject is only occasionally used, and only to execute 13083reserved 13084methods such as _STA and _INI where the return type is known up front. 13085 13086Fixed a few issues with the internal convert-to-integer code. It now 13087returns 13088an error if an attempt is made to convert a null string, a string of only 13089blanks/tabs, or a zero-length buffer. This affects both implicit 13090conversion 13091and explicit conversion via the ToInteger() operator. 13092 13093The internal debug code in AcpiUtAcquireMutex has been commented out. It 13094is 13095not needed for normal operation and should increase the performance of 13096the 13097entire subsystem. The code remains in case it is needed for debug 13098purposes 13099again. 13100 13101The AcpiExec source and makefile are included in the Unix/Linux package 13102for 13103the first time. 13104 13105Code and Data Size: Current and previous core subsystem library sizes are 13106shown below. These are the code and data sizes for the acpica.lib 13107produced 13108by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13109any ACPI driver or OSPM code. The debug version of the code includes the 13110debug output trace mechanism and has a much larger code and data size. 13111Note 13112that these values will vary depending on the efficiency of the compiler 13113and 13114the compiler options used during generation. 13115 13116 Previous Release: 13117 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 13118 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 13119 Current Release: 13120 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 13121 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 13122 131232) iASL Compiler/Disassembler: 13124 13125Switch/Case support: A warning is now issued if the type of the Switch 13126value 13127cannot be determined at compile time. For example, Switch(Arg0) will 13128generate the warning, and the type is assumed to be an integer. As per 13129the 13130ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 13131the 13132warning. 13133 13134Switch/Case support: Implemented support for buffer and string objects as 13135the switch value. This is an ACPI 3.0 feature, now that LEqual supports 13136buffers and strings. 13137 13138Switch/Case support: The emitted code for the LEqual() comparisons now 13139uses 13140the switch value as the first operand, not the second. The case value is 13141now 13142the second operand, and this allows the case value to be implicitly 13143converted to the type of the switch value, not the other way around. 13144 13145Switch/Case support: Temporary variables are now emitted immediately 13146within 13147the control method, not at the global level. This means that there are 13148now 1314936 temps available per-method, not 36 temps per-module as was the case 13150with 13151the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 13152 13153---------------------------------------- 1315414 January 2005. Summary of changes for version 20050114: 13155 13156Added 2005 copyright to all module headers. This affects every module in 13157the core subsystem, iASL compiler, and the utilities. 13158 131591) ACPI CA Core Subsystem: 13160 13161Fixed an issue with the String-to-Buffer conversion code where the string 13162null terminator was not included in the buffer after conversion, but 13163there 13164is existing ASL that assumes the string null terminator is included. This 13165is 13166the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 13167introduced in the previous version when the code was updated to correctly 13168set the converted buffer size as per the ACPI specification. The ACPI 13169spec 13170is ambiguous and will be updated to specify that the null terminator must 13171be 13172included in the converted buffer. This also affects the ToBuffer() ASL 13173operator. 13174 13175Fixed a problem with the Mid() ASL/AML operator where it did not work 13176correctly on Buffer objects. Newly created sub-buffers were not being 13177marked 13178as initialized. 13179 13180 13181Fixed a problem in AcpiTbFindTable where incorrect string compares were 13182performed on the OemId and OemTableId table header fields. These fields 13183are 13184not null terminated, so strncmp is now used instead of strcmp. 13185 13186Implemented a restriction on the Store() ASL/AML operator to align the 13187behavior with the ACPI specification. Previously, any object could be 13188used 13189as the source operand. Now, the only objects that may be used are 13190Integers, 13191Buffers, Strings, Packages, Object References, and DDB Handles. If 13192necessary, the original behavior can be restored by enabling the 13193EnableInterpreterSlack flag. 13194 13195Enhanced the optional "implicit return" support to allow an implicit 13196return 13197value from methods that are invoked externally via the AcpiEvaluateObject 13198interface. This enables implicit returns from the _STA and _INI methods, 13199for example. 13200 13201Changed the Revision() ASL/AML operator to return the current version of 13202the 13203AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 13204returned 13205the supported ACPI version (This is the function of the _REV method). 13206 13207Updated the _REV predefined method to return the currently supported 13208version 13209of ACPI, now 3. 13210 13211Implemented batch mode option for the AcpiExec utility (-b). 13212 13213Code and Data Size: Current and previous core subsystem library sizes are 13214shown below. These are the code and data sizes for the acpica.lib 13215produced 13216by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13217any ACPI driver or OSPM code. The debug version of the code includes the 13218debug output trace mechanism and has a much larger code and data size. 13219Note 13220that these values will vary depending on the efficiency of the compiler 13221and 13222the compiler options used during generation. 13223 13224 Previous Release: 13225 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13226 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 13227 Current Release: 13228 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 13229 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 13230 13231---------------------------------------- 1323210 December 2004. Summary of changes for version 20041210: 13233 13234ACPI 3.0 support is nearing completion in both the iASL compiler and the 13235ACPI CA core subsystem. 13236 132371) ACPI CA Core Subsystem: 13238 13239Fixed a problem in the ToDecimalString operator where the resulting 13240string 13241length was incorrectly calculated. The length is now calculated exactly, 13242eliminating incorrect AE_STRING_LIMIT exceptions. 13243 13244Fixed a problem in the ToHexString operator to allow a maximum 200 13245character 13246string to be produced. 13247 13248Fixed a problem in the internal string-to-buffer and buffer-to-buffer 13249copy 13250routine where the length of the resulting buffer was not truncated to the 13251new size (if the target buffer already existed). 13252 13253Code and Data Size: Current and previous core subsystem library sizes are 13254shown below. These are the code and data sizes for the acpica.lib 13255produced 13256by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13257any ACPI driver or OSPM code. The debug version of the code includes the 13258debug output trace mechanism and has a much larger code and data size. 13259Note 13260that these values will vary depending on the efficiency of the compiler 13261and 13262the compiler options used during generation. 13263 13264 Previous Release: 13265 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13266 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 13267 Current Release: 13268 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13269 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 13270 13271 132722) iASL Compiler/Disassembler: 13273 13274Implemented the new ACPI 3.0 resource template macros - DWordSpace, 13275ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 13276Includes support in the disassembler. 13277 13278Implemented support for the new (ACPI 3.0) parameter to the Register 13279macro, 13280AccessSize. 13281 13282Fixed a problem where the _HE resource name for the Interrupt macro was 13283referencing bit 0 instead of bit 1. 13284 13285Implemented check for maximum 255 interrupts in the Interrupt macro. 13286 13287Fixed a problem with the predefined resource descriptor names where 13288incorrect AML code was generated if the offset within the resource buffer 13289was 0 or 1. The optimizer shortened the AML code to a single byte opcode 13290but did not update the surrounding package lengths. 13291 13292Changes to the Dma macro: All channels within the channel list must be 13293in 13294the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 13295optional (default is BusMaster). 13296 13297Implemented check for maximum 7 data bytes for the VendorShort macro. 13298 13299The ReadWrite parameter is now optional for the Memory32 and similar 13300macros. 13301 13302---------------------------------------- 1330303 December 2004. Summary of changes for version 20041203: 13304 133051) ACPI CA Core Subsystem: 13306 13307The low-level field insertion/extraction code (exfldio) has been 13308completely 13309rewritten to eliminate unnecessary complexity, bugs, and boundary 13310conditions. 13311 13312Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 13313ToDecimalString 13314operators where the input operand could be inadvertently deleted if no 13315conversion was necessary (e.g., if the input to ToInteger was an Integer 13316object.) 13317 13318Fixed a problem with the ToDecimalString and ToHexString where an 13319incorrect 13320exception code was returned if the resulting string would be > 200 chars. 13321AE_STRING_LIMIT is now returned. 13322 13323Fixed a problem with the Concatenate operator where AE_OK was always 13324returned, even if the operation failed. 13325 13326Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 13327semaphores to be allocated. 13328 13329Code and Data Size: Current and previous core subsystem library sizes are 13330shown below. These are the code and data sizes for the acpica.lib 13331produced 13332by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13333any ACPI driver or OSPM code. The debug version of the code includes the 13334debug output trace mechanism and has a much larger code and data size. 13335Note 13336that these values will vary depending on the efficiency of the compiler 13337and 13338the compiler options used during generation. 13339 13340 Previous Release: 13341 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13342 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13343 Current Release: 13344 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13345 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 13346 13347 133482) iASL Compiler/Disassembler: 13349 13350Fixed typechecking for the ObjectType and SizeOf operators. Problem was 13351recently introduced in 20041119. 13352 13353Fixed a problem with the ToUUID macro where the upper nybble of each 13354buffer 13355byte was inadvertently set to zero. 13356 13357---------------------------------------- 1335819 November 2004. Summary of changes for version 20041119: 13359 133601) ACPI CA Core Subsystem: 13361 13362Fixed a problem in the internal ConvertToInteger routine where new 13363integers 13364were not truncated to 32 bits for 32-bit ACPI tables. This routine 13365converts 13366buffers and strings to integers. 13367 13368Implemented support to store a value to an Index() on a String object. 13369This 13370is an ACPI 2.0 feature that had not yet been implemented. 13371 13372Implemented new behavior for storing objects to individual package 13373elements 13374(via the Index() operator). The previous behavior was to invoke the 13375implicit 13376conversion rules if an object was already present at the index. The new 13377behavior is to simply delete any existing object and directly store the 13378new 13379object. Although the ACPI specification seems unclear on this subject, 13380other 13381ACPI implementations behave in this manner. (This is the root of the 13382AE_BAD_HEX_CONSTANT issue.) 13383 13384Modified the RSDP memory scan mechanism to support the extended checksum 13385for 13386ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 13387RSDP signature is found with a valid checksum. 13388 13389Code and Data Size: Current and previous core subsystem library sizes are 13390shown below. These are the code and data sizes for the acpica.lib 13391produced 13392by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13393any ACPI driver or OSPM code. The debug version of the code includes the 13394debug output trace mechanism and has a much larger code and data size. 13395Note 13396that these values will vary depending on the efficiency of the compiler 13397and 13398the compiler options used during generation. 13399 13400 Previous Release: 13401 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13402 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13403 Current Release: 13404 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13405 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13406 13407 134082) iASL Compiler/Disassembler: 13409 13410Fixed a missing semicolon in the aslcompiler.y file. 13411 13412---------------------------------------- 1341305 November 2004. Summary of changes for version 20041105: 13414 134151) ACPI CA Core Subsystem: 13416 13417Implemented support for FADT revision 2. This was an interim table 13418(between 13419ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 13420 13421Implemented optional support to allow uninitialized LocalX and ArgX 13422variables in a control method. The variables are initialized to an 13423Integer 13424object with a value of zero. This support is enabled by setting the 13425AcpiGbl_EnableInterpreterSlack flag to TRUE. 13426 13427Implemented support for Integer objects for the SizeOf operator. Either 134284 13429or 8 is returned, depending on the current integer size (32-bit or 64- 13430bit, 13431depending on the parent table revision). 13432 13433Fixed a problem in the implementation of the SizeOf and ObjectType 13434operators 13435where the operand was resolved to a value too early, causing incorrect 13436return values for some objects. 13437 13438Fixed some possible memory leaks during exceptional conditions. 13439 13440Code and Data Size: Current and previous core subsystem library sizes are 13441shown below. These are the code and data sizes for the acpica.lib 13442produced 13443by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13444any ACPI driver or OSPM code. The debug version of the code includes the 13445debug output trace mechanism and has a much larger code and data size. 13446Note 13447that these values will vary depending on the efficiency of the compiler 13448and 13449the compiler options used during generation. 13450 13451 Previous Release: 13452 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 13453 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 13454 Current Release: 13455 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13456 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13457 13458 134592) iASL Compiler/Disassembler: 13460 13461Implemented support for all ACPI 3.0 reserved names and methods. 13462 13463Implemented all ACPI 3.0 grammar elements in the front-end, including 13464support for semicolons. 13465 13466Implemented the ACPI 3.0 Function() and ToUUID() macros 13467 13468Fixed a problem in the disassembler where a Scope() operator would not be 13469emitted properly if the target of the scope was in another table. 13470 13471---------------------------------------- 1347215 October 2004. Summary of changes for version 20041015: 13473 13474Note: ACPI CA is currently undergoing an in-depth and complete formal 13475evaluation to test/verify the following areas. Other suggestions are 13476welcome. This will result in an increase in the frequency of releases and 13477the number of bug fixes in the next few months. 13478 - Functional tests for all ASL/AML operators 13479 - All implicit/explicit type conversions 13480 - Bit fields and operation regions 13481 - 64-bit math support and 32-bit-only "truncated" math support 13482 - Exceptional conditions, both compiler and interpreter 13483 - Dynamic object deletion and memory leaks 13484 - ACPI 3.0 support when implemented 13485 - External interfaces to the ACPI subsystem 13486 13487 134881) ACPI CA Core Subsystem: 13489 13490Fixed two alignment issues on 64-bit platforms - within debug statements 13491in 13492AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 13493Address 13494field within the non-aligned ACPI generic address structure. 13495 13496Fixed a problem in the Increment and Decrement operators where incorrect 13497operand resolution could result in the inadvertent modification of the 13498original integer when the integer is passed into another method as an 13499argument and the arg is then incremented/decremented. 13500 13501Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 13502bit 13503BCD number were truncated during conversion. 13504 13505Fixed a problem in the ToDecimal operator where the length of the 13506resulting 13507string could be set incorrectly too long if the input operand was a 13508Buffer 13509object. 13510 13511Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 13512(0) 13513within a buffer would prematurely terminate a compare between buffer 13514objects. 13515 13516Added a check for string overflow (>200 characters as per the ACPI 13517specification) during the Concatenate operator with two string operands. 13518 13519Code and Data Size: Current and previous core subsystem library sizes are 13520shown below. These are the code and data sizes for the acpica.lib 13521produced 13522by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13523any ACPI driver or OSPM code. The debug version of the code includes the 13524debug output trace mechanism and has a much larger code and data size. 13525Note 13526that these values will vary depending on the efficiency of the compiler 13527and 13528the compiler options used during generation. 13529 13530 Previous Release: 13531 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 13532 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 13533 Current Release: 13534 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 13535 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 13536 13537 13538 135392) iASL Compiler/Disassembler: 13540 13541Allow the use of the ObjectType operator on uninitialized Locals and Args 13542(returns 0 as per the ACPI specification). 13543 13544Fixed a problem where the compiler would fault if there was a syntax 13545error 13546in the FieldName of all of the various CreateXXXField operators. 13547 13548Disallow the use of lower case letters within the EISAID macro, as per 13549the 13550ACPI specification. All EISAID strings must be of the form "UUUNNNN" 13551Where 13552U is an uppercase letter and N is a hex digit. 13553 13554 13555---------------------------------------- 1355606 October 2004. Summary of changes for version 20041006: 13557 135581) ACPI CA Core Subsystem: 13559 13560Implemented support for the ACPI 3.0 Timer operator. This ASL function 13561implements a 64-bit timer with 100 nanosecond granularity. 13562 13563Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 13564implement the ACPI 3.0 Timer operator. This allows the host OS to 13565implement 13566the timer with the best clock available. Also, it keeps the core 13567subsystem 13568out of the clock handling business, since the host OS (usually) performs 13569this function. 13570 13571Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 13572functions use a 64-bit address which is part of the packed ACPI Generic 13573Address Structure. Since the structure is non-aligned, the alignment 13574macros 13575are now used to extract the address to a local variable before use. 13576 13577Fixed a problem where the ToInteger operator assumed all input strings 13578were 13579hexadecimal. The operator now handles both decimal strings and hex 13580strings 13581(prefixed with "0x"). 13582 13583Fixed a problem where the string length in the string object created as a 13584result of the internal ConvertToString procedure could be incorrect. This 13585potentially affected all implicit conversions and also the 13586ToDecimalString 13587and ToHexString operators. 13588 13589Fixed two problems in the ToString operator. If the length parameter was 13590zero, an incorrect string object was created and the value of the input 13591length parameter was inadvertently changed from zero to Ones. 13592 13593Fixed a problem where the optional ResourceSource string in the 13594ExtendedIRQ 13595resource macro was ignored. 13596 13597Simplified the interfaces to the internal division functions, reducing 13598code 13599size and complexity. 13600 13601Code and Data Size: Current and previous core subsystem library sizes are 13602shown below. These are the code and data sizes for the acpica.lib 13603produced 13604by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13605any ACPI driver or OSPM code. The debug version of the code includes the 13606debug output trace mechanism and has a much larger code and data size. 13607Note 13608that these values will vary depending on the efficiency of the compiler 13609and 13610the compiler options used during generation. 13611 13612 Previous Release: 13613 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 13614 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 13615 Current Release: 13616 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 13617 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 13618 13619 136202) iASL Compiler/Disassembler: 13621 13622Implemented support for the ACPI 3.0 Timer operator. 13623 13624Fixed a problem where the Default() operator was inadvertently ignored in 13625a 13626Switch/Case block. This was a problem in the translation of the Switch 13627statement to If...Else pairs. 13628 13629Added support to allow a standalone Return operator, with no parentheses 13630(or 13631operands). 13632 13633Fixed a problem with code generation for the ElseIf operator where the 13634translated Else...If parse tree was improperly constructed leading to the 13635loss of some code. 13636 13637---------------------------------------- 1363822 September 2004. Summary of changes for version 20040922: 13639 136401) ACPI CA Core Subsystem: 13641 13642Fixed a problem with the implementation of the LNot() operator where 13643"Ones" 13644was not returned for the TRUE case. Changed the code to return Ones 13645instead 13646of (!Arg) which was usually 1. This change affects iASL constant folding 13647for 13648this operator also. 13649 13650Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was 13651not 13652initialized properly -- Now zero the entire buffer in this case where the 13653buffer already exists. 13654 13655Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 13656Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 13657related code considerably. This will require changes/updates to all OS 13658interface layers (OSLs.) 13659 13660Implemented a new external interface, AcpiInstallExceptionHandler, to 13661allow 13662a system exception handler to be installed. This handler is invoked upon 13663any 13664run-time exception that occurs during control method execution. 13665 13666Added support for the DSDT in AcpiTbFindTable. This allows the 13667DataTableRegion() operator to access the local copy of the DSDT. 13668 13669Code and Data Size: Current and previous core subsystem library sizes are 13670shown below. These are the code and data sizes for the acpica.lib 13671produced 13672by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13673any ACPI driver or OSPM code. The debug version of the code includes the 13674debug output trace mechanism and has a much larger code and data size. 13675Note 13676that these values will vary depending on the efficiency of the compiler 13677and 13678the compiler options used during generation. 13679 13680 Previous Release: 13681 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 13682 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 13683 Current Release: 13684 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 13685 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 13686 13687 136882) iASL Compiler/Disassembler: 13689 13690Fixed a problem with constant folding and the LNot operator. LNot was 13691returning 1 in the TRUE case, not Ones as per the ACPI specification. 13692This 13693could result in the generation of an incorrect folded/reduced constant. 13694 13695End-Of-File is now allowed within a "//"-style comment. A parse error no 13696longer occurs if such a comment is at the very end of the input ASL 13697source 13698file. 13699 13700Implemented the "-r" option to override the Revision in the table header. 13701The initial use of this option will be to simplify the evaluation of the 13702AML 13703interpreter by allowing a single ASL source module to be compiled for 13704either 1370532-bit or 64-bit integers. 13706 13707 13708---------------------------------------- 1370927 August 2004. Summary of changes for version 20040827: 13710 137111) ACPI CA Core Subsystem: 13712 13713- Implemented support for implicit object conversion in the non-numeric 13714logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, 13715and 13716LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 13717the second operand is implicitly converted on the fly to match the type 13718of 13719the first operand. For example: 13720 13721 LEqual (Source1, Source2) 13722 13723Source1 and Source2 must each evaluate to an integer, a string, or a 13724buffer. 13725The data type of Source1 dictates the required type of Source2. Source2 13726is 13727implicitly converted if necessary to match the type of Source1. 13728 13729- Updated and corrected the behavior of the string conversion support. 13730The 13731rules concerning conversion of buffers to strings (according to the ACPI 13732specification) are as follows: 13733 13734ToDecimalString - explicit byte-wise conversion of buffer to string of 13735decimal values (0-255) separated by commas. ToHexString - explicit byte- 13736wise 13737conversion of buffer to string of hex values (0-FF) separated by commas. 13738ToString - explicit byte-wise conversion of buffer to string. Byte-by- 13739byte 13740copy with no transform except NULL terminated. Any other implicit buffer- 13741to- 13742string conversion - byte-wise conversion of buffer to string of hex 13743values 13744(0-FF) separated by spaces. 13745 13746- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 13747 13748- Fixed a problem in AcpiNsGetPathnameLength where the returned length 13749was 13750one byte too short in the case of a node in the root scope. This could 13751cause a fault during debug output. 13752 13753- Code and Data Size: Current and previous core subsystem library sizes 13754are 13755shown below. These are the code and data sizes for the acpica.lib 13756produced 13757by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13758any ACPI driver or OSPM code. The debug version of the code includes the 13759debug output trace mechanism and has a much larger code and data size. 13760Note 13761that these values will vary depending on the efficiency of the compiler 13762and 13763the compiler options used during generation. 13764 13765 Previous Release: 13766 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 13767 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 13768 Current Release: 13769 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 13770 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 13771 13772 137732) iASL Compiler/Disassembler: 13774 13775- Fixed a Linux generation error. 13776 13777 13778---------------------------------------- 1377916 August 2004. Summary of changes for version 20040816: 13780 137811) ACPI CA Core Subsystem: 13782 13783Designed and implemented support within the AML interpreter for the so- 13784called "implicit return". This support returns the result of the last 13785ASL 13786operation within a control method, in the absence of an explicit Return() 13787operator. A few machines depend on this behavior, even though it is not 13788explicitly supported by the ASL language. It is optional support that 13789can 13790be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 13791 13792Removed support for the PCI_Config address space from the internal low 13793level 13794hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 13795support was not used internally, and would not work correctly anyway 13796because 13797the PCI bus number and segment number were not supported. There are 13798separate interfaces for PCI configuration space access because of the 13799unique 13800interface. 13801 13802Code and Data Size: Current and previous core subsystem library sizes are 13803shown below. These are the code and data sizes for the acpica.lib 13804produced 13805by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13806any ACPI driver or OSPM code. The debug version of the code includes the 13807debug output trace mechanism and has a much larger code and data size. 13808Note 13809that these values will vary depending on the efficiency of the compiler 13810and 13811the compiler options used during generation. 13812 13813 Previous Release: 13814 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 13815 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 13816 Current Release: 13817 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 13818 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 13819 13820 138212) iASL Compiler/Disassembler: 13822 13823Fixed a problem where constants in ASL expressions at the root level (not 13824within a control method) could be inadvertently truncated during code 13825generation. This problem was introduced in the 20040715 release. 13826 13827 13828---------------------------------------- 1382915 July 2004. Summary of changes for version 20040715: 13830 138311) ACPI CA Core Subsystem: 13832 13833Restructured the internal HW GPE interfaces to pass/track the current 13834state 13835of interrupts (enabled/disabled) in order to avoid possible deadlock and 13836increase flexibility of the interfaces. 13837 13838Implemented a "lexicographical compare" for String and Buffer objects 13839within 13840the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual - 13841- 13842as per further clarification to the ACPI specification. Behavior is 13843similar 13844to C library "strcmp". 13845 13846Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 13847external function. In the 32-bit non-debug case, the stack use has been 13848reduced from 168 bytes to 32 bytes. 13849 13850Deployed a new run-time configuration flag, 13851AcpiGbl_EnableInterpreterSlack, 13852whose purpose is to allow the AML interpreter to forgive certain bad AML 13853constructs. Default setting is FALSE. 13854 13855Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 13856IO 13857support code. If enabled, it allows field access to go beyond the end of 13858a 13859region definition if the field is within the region length rounded up to 13860the 13861next access width boundary (a common coding error.) 13862 13863Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 13864ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 13865these 13866symbols are lowercase by the latest version of the AcpiSrc tool. 13867 13868The prototypes for the PCI interfaces in acpiosxf.h have been updated to 13869rename "Register" to simply "Reg" to prevent certain compilers from 13870complaining. 13871 13872Code and Data Size: Current and previous core subsystem library sizes are 13873shown below. These are the code and data sizes for the acpica.lib 13874produced 13875by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13876any ACPI driver or OSPM code. The debug version of the code includes the 13877debug output trace mechanism and has a much larger code and data size. 13878Note 13879that these values will vary depending on the efficiency of the compiler 13880and 13881the compiler options used during generation. 13882 13883 Previous Release: 13884 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 13885 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 13886 Current Release: 13887 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 13888 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 13889 13890 138912) iASL Compiler/Disassembler: 13892 13893Implemented full support for Package objects within the Case() operator. 13894Note: The Break() operator is currently not supported within Case blocks 13895(TermLists) as there is some question about backward compatibility with 13896ACPI 138971.0 interpreters. 13898 13899 13900Fixed a problem where complex terms were not supported properly within 13901the 13902Switch() operator. 13903 13904Eliminated extraneous warning for compiler-emitted reserved names of the 13905form "_T_x". (Used in Switch/Case operators.) 13906 13907Eliminated optimization messages for "_T_x" objects and small constants 13908within the DefinitionBlock operator. 13909 13910 13911---------------------------------------- 1391215 June 2004. Summary of changes for version 20040615: 13913 139141) ACPI CA Core Subsystem: 13915 13916Implemented support for Buffer and String objects (as per ACPI 2.0) for 13917the 13918following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 13919LLessEqual. 13920 13921All directory names in the entire source package are lower case, as they 13922were in earlier releases. 13923 13924Implemented "Disassemble" command in the AML debugger that will 13925disassemble 13926a single control method. 13927 13928Code and Data Size: Current and previous core subsystem library sizes are 13929shown below. These are the code and data sizes for the acpica.lib 13930produced 13931by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13932any ACPI driver or OSPM code. The debug version of the code includes the 13933debug output trace mechanism and has a much larger code and data size. 13934Note 13935that these values will vary depending on the efficiency of the compiler 13936and 13937the compiler options used during generation. 13938 13939 Previous Release: 13940 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 13941 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 13942 13943 Current Release: 13944 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 13945 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 13946 13947 139482) iASL Compiler/Disassembler: 13949 13950Implemented support for Buffer and String objects (as per ACPI 2.0) for 13951the 13952following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 13953LLessEqual. 13954 13955All directory names in the entire source package are lower case, as they 13956were in earlier releases. 13957 13958Fixed a fault when using the -g or -d<nofilename> options if the FADT was 13959not found. 13960 13961Fixed an issue with the Windows version of the compiler where later 13962versions 13963of Windows place the FADT in the registry under the name "FADT" and not 13964"FACP" as earlier versions did. This applies when using the -g or - 13965d<nofilename> options. The compiler now looks for both strings as 13966necessary. 13967 13968Fixed a problem with compiler namepath optimization where a namepath 13969within 13970the Scope() operator could not be optimized if the namepath was a subpath 13971of 13972the current scope path. 13973 13974---------------------------------------- 1397527 May 2004. Summary of changes for version 20040527: 13976 139771) ACPI CA Core Subsystem: 13978 13979Completed a new design and implementation for EBDA (Extended BIOS Data 13980Area) 13981support in the RSDP scan code. The original code improperly scanned for 13982the 13983EBDA by simply scanning from memory location 0 to 0x400. The correct 13984method 13985is to first obtain the EBDA pointer from within the BIOS data area, then 13986scan 1K of memory starting at the EBDA pointer. There appear to be few 13987if 13988any machines that place the RSDP in the EBDA, however. 13989 13990Integrated a fix for a possible fault during evaluation of BufferField 13991arguments. Obsolete code that was causing the problem was removed. 13992 13993Found and fixed a problem in the Field Support Code where data could be 13994corrupted on a bit field read that starts on an aligned boundary but does 13995not end on an aligned boundary. Merged the read/write "datum length" 13996calculation code into a common procedure. 13997 13998Rolled in a couple of changes to the FreeBSD-specific header. 13999 14000 14001Code and Data Size: Current and previous core subsystem library sizes are 14002shown below. These are the code and data sizes for the acpica.lib 14003produced 14004by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14005any ACPI driver or OSPM code. The debug version of the code includes the 14006debug output trace mechanism and has a much larger code and data size. 14007Note 14008that these values will vary depending on the efficiency of the compiler 14009and 14010the compiler options used during generation. 14011 14012 Previous Release: 14013 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 14014 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 14015 Current Release: 14016 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 14017 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 14018 14019 140202) iASL Compiler/Disassembler: 14021 14022Fixed a generation warning produced by some overly-verbose compilers for 14023a 1402464-bit constant. 14025 14026---------------------------------------- 1402714 May 2004. Summary of changes for version 20040514: 14028 140291) ACPI CA Core Subsystem: 14030 14031Fixed a problem where hardware GPE enable bits sometimes not set properly 14032during and after GPE method execution. Result of 04/27 changes. 14033 14034Removed extra "clear all GPEs" when sleeping/waking. 14035 14036Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 14037AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 14038to 14039the new AcpiEv* calls as appropriate. 14040 14041ACPI_OS_NAME was removed from the OS-specific headers. The default name 14042is 14043now "Microsoft Windows NT" for maximum compatibility. However this can 14044be 14045changed by modifying the acconfig.h file. 14046 14047Allow a single invocation of AcpiInstallNotifyHandler for a handler that 14048traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 14049 14050Run _INI methods on ThermalZone objects. This is against the ACPI 14051specification, but there is apparently ASL code in the field that has 14052these 14053_INI methods, and apparently "other" AML interpreters execute them. 14054 14055Performed a full 16/32/64 bit lint that resulted in some small changes. 14056 14057Added a sleep simulation command to the AML debugger to test sleep code. 14058 14059Code and Data Size: Current and previous core subsystem library sizes are 14060shown below. These are the code and data sizes for the acpica.lib 14061produced 14062by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14063any ACPI driver or OSPM code. The debug version of the code includes the 14064debug output trace mechanism and has a much larger code and data size. 14065Note 14066that these values will vary depending on the efficiency of the compiler 14067and 14068the compiler options used during generation. 14069 14070 Previous Release: 14071 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 14072 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 14073 Current Release: 14074 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 14075 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 14076 14077---------------------------------------- 1407827 April 2004. Summary of changes for version 20040427: 14079 140801) ACPI CA Core Subsystem: 14081 14082Completed a major overhaul of the GPE handling within ACPI CA. There are 14083now three types of GPEs: wake-only, runtime-only, and combination 14084wake/run. 14085The only GPEs allowed to be combination wake/run are for button-style 14086devices such as a control-method power button, control-method sleep 14087button, 14088or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 14089not 14090referenced by any _PRW methods are marked for "runtime" and hardware 14091enabled. Any GPE that is referenced by a _PRW method is marked for 14092"wake" 14093(and disabled at runtime). However, at sleep time, only those GPEs that 14094have been specifically enabled for wake via the AcpiEnableGpe interface 14095will 14096actually be hardware enabled. 14097 14098A new external interface has been added, AcpiSetGpeType(), that is meant 14099to 14100be used by device drivers to force a GPE to a particular type. It will 14101be 14102especially useful for the drivers for the button devices mentioned above. 14103 14104Completed restructuring of the ACPI CA initialization sequence so that 14105default operation region handlers are installed before GPEs are 14106initialized 14107and the _PRW methods are executed. This will prevent errors when the 14108_PRW 14109methods attempt to access system memory or I/O space. 14110 14111GPE enable/disable no longer reads the GPE enable register. We now keep 14112the 14113enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 14114thus no longer depend on the hardware to maintain these bits. 14115 14116Always clear the wake status and fixed/GPE status bits before sleep, even 14117for state S5. 14118 14119Improved the AML debugger output for displaying the GPE blocks and their 14120current status. 14121 14122Added new strings for the _OSI method, of the form "Windows 2001 SPx" 14123where 14124x = 0,1,2,3,4. 14125 14126Fixed a problem where the physical address was incorrectly calculated 14127when 14128the Load() operator was used to directly load from an Operation Region 14129(vs. 14130loading from a Field object.) Also added check for minimum table length 14131for 14132this case. 14133 14134Fix for multiple mutex acquisition. Restore original thread SyncLevel on 14135mutex release. 14136 14137Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 14138consistency with the other fields returned. 14139 14140Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 14141structure for each GPE in the system, so the size of this structure is 14142important. 14143 14144CPU stack requirement reduction: Cleaned up the method execution and 14145object 14146evaluation paths so that now a parameter structure is passed, instead of 14147copying the various method parameters over and over again. 14148 14149In evregion.c: Correctly exit and reenter the interpreter region if and 14150only if dispatching an operation region request to a user-installed 14151handler. 14152Do not exit/reenter when dispatching to a default handler (e.g., default 14153system memory or I/O handlers) 14154 14155 14156Notes for updating drivers for the new GPE support. The following 14157changes 14158must be made to ACPI-related device drivers that are attached to one or 14159more 14160GPEs: (This information will be added to the ACPI CA Programmer 14161Reference.) 14162 141631) AcpiInstallGpeHandler no longer automatically enables the GPE, you 14164must 14165explicitly call AcpiEnableGpe. 141662) There is a new interface called AcpiSetGpeType. This should be called 14167before enabling the GPE. Also, this interface will automatically disable 14168the GPE if it is currently enabled. 141693) AcpiEnableGpe no longer supports a GPE type flag. 14170 14171Specific drivers that must be changed: 141721) EC driver: 14173 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 14174AeGpeHandler, NULL); 14175 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 14176 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 14177 141782) Button Drivers (Power, Lid, Sleep): 14179Run _PRW method under parent device 14180If _PRW exists: /* This is a control-method button */ 14181 Extract GPE number and possibly GpeDevice 14182 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 14183 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 14184 14185For all other devices that have _PRWs, we automatically set the GPE type 14186to 14187ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. 14188This 14189must be done on a selective basis, usually requiring some kind of user 14190app 14191to allow the user to pick the wake devices. 14192 14193 14194Code and Data Size: Current and previous core subsystem library sizes are 14195shown below. These are the code and data sizes for the acpica.lib 14196produced 14197by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14198any ACPI driver or OSPM code. The debug version of the code includes the 14199debug output trace mechanism and has a much larger code and data size. 14200Note 14201that these values will vary depending on the efficiency of the compiler 14202and 14203the compiler options used during generation. 14204 14205 Previous Release: 14206 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 14207 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 14208 Current Release: 14209 14210 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 14211 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 14212 14213 14214 14215---------------------------------------- 1421602 April 2004. Summary of changes for version 20040402: 14217 142181) ACPI CA Core Subsystem: 14219 14220Fixed an interpreter problem where an indirect store through an ArgX 14221parameter was incorrectly applying the "implicit conversion rules" during 14222the store. From the ACPI specification: "If the target is a method local 14223or 14224argument (LocalX or ArgX), no conversion is performed and the result is 14225stored directly to the target". The new behavior is to disable implicit 14226conversion during ALL stores to an ArgX. 14227 14228Changed the behavior of the _PRW method scan to ignore any and all errors 14229returned by a given _PRW. This prevents the scan from aborting from the 14230failure of any single _PRW. 14231 14232Moved the runtime configuration parameters from the global init procedure 14233to 14234static variables in acglobal.h. This will allow the host to override the 14235default values easily. 14236 14237Code and Data Size: Current and previous core subsystem library sizes are 14238shown below. These are the code and data sizes for the acpica.lib 14239produced 14240by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14241any ACPI driver or OSPM code. The debug version of the code includes the 14242debug output trace mechanism and has a much larger code and data size. 14243Note 14244that these values will vary depending on the efficiency of the compiler 14245and 14246the compiler options used during generation. 14247 14248 Previous Release: 14249 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 14250 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 14251 Current Release: 14252 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 14253 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 14254 14255 142562) iASL Compiler/Disassembler: 14257 14258iASL now fully disassembles SSDTs. However, External() statements are 14259not 14260generated automatically for unresolved symbols at this time. This is a 14261planned feature for future implementation. 14262 14263Fixed a scoping problem in the disassembler that occurs when the type of 14264the 14265target of a Scope() operator is overridden. This problem caused an 14266incorrectly nested internal namespace to be constructed. 14267 14268Any warnings or errors that are emitted during disassembly are now 14269commented 14270out automatically so that the resulting file can be recompiled without 14271any 14272hand editing. 14273 14274---------------------------------------- 1427526 March 2004. Summary of changes for version 20040326: 14276 142771) ACPI CA Core Subsystem: 14278 14279Implemented support for "wake" GPEs via interaction between GPEs and the 14280_PRW methods. Every GPE that is pointed to by one or more _PRWs is 14281identified as a WAKE GPE and by default will no longer be enabled at 14282runtime. Previously, we were blindly enabling all GPEs with a 14283corresponding 14284_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 14285We 14286believe this has been the cause of thousands of "spurious" GPEs on some 14287systems. 14288 14289This new GPE behavior is can be reverted to the original behavior (enable 14290ALL GPEs at runtime) via a runtime flag. 14291 14292Fixed a problem where aliased control methods could not access objects 14293properly. The proper scope within the namespace was not initialized 14294(transferred to the target of the aliased method) before executing the 14295target method. 14296 14297Fixed a potential race condition on internal object deletion on the 14298return 14299object in AcpiEvaluateObject. 14300 14301Integrated a fix for resource descriptors where both _MEM and _MTP were 14302being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 14303wide, 0x0F instead of 0x03.) 14304 14305Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, 14306preventing 14307a 14308fault in some cases. 14309 14310Updated Notify() values for debug statements in evmisc.c 14311 14312Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 14313 14314Code and Data Size: Current and previous core subsystem library sizes are 14315shown below. These are the code and data sizes for the acpica.lib 14316produced 14317by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14318any ACPI driver or OSPM code. The debug version of the code includes the 14319debug output trace mechanism and has a much larger code and data size. 14320Note 14321that these values will vary depending on the efficiency of the compiler 14322and 14323the compiler options used during generation. 14324 14325 Previous Release: 14326 14327 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 14328 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 14329 Current Release: 14330 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 14331 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 14332 14333---------------------------------------- 1433411 March 2004. Summary of changes for version 20040311: 14335 143361) ACPI CA Core Subsystem: 14337 14338Fixed a problem where errors occurring during the parse phase of control 14339method execution did not abort cleanly. For example, objects created and 14340installed in the namespace were not deleted. This caused all subsequent 14341invocations of the method to return the AE_ALREADY_EXISTS exception. 14342 14343Implemented a mechanism to force a control method to "Serialized" 14344execution 14345if the method attempts to create namespace objects. (The root of the 14346AE_ALREADY_EXISTS problem.) 14347 14348Implemented support for the predefined _OSI "internal" control method. 14349Initial supported strings are "Linux", "Windows 2000", "Windows 2001", 14350and 14351"Windows 2001.1", and can be easily upgraded for new strings as 14352necessary. 14353This feature will allow "other" operating systems to execute the fully 14354tested, "Windows" code path through the ASL code 14355 14356Global Lock Support: Now allows multiple acquires and releases with any 14357internal thread. Removed concept of "owning thread" for this special 14358mutex. 14359 14360Fixed two functions that were inappropriately declaring large objects on 14361the 14362CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 14363during 14364method execution considerably. 14365 14366Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 14367S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 14368 14369Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 14370defined on the machine. 14371 14372Implemented two runtime options: One to force all control method 14373execution 14374to "Serialized" to mimic Windows behavior, another to disable _OSI 14375support 14376if it causes problems on a given machine. 14377 14378Code and Data Size: Current and previous core subsystem library sizes are 14379shown below. These are the code and data sizes for the acpica.lib 14380produced 14381by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14382any ACPI driver or OSPM code. The debug version of the code includes the 14383debug output trace mechanism and has a much larger code and data size. 14384Note 14385that these values will vary depending on the efficiency of the compiler 14386and 14387the compiler options used during generation. 14388 14389 Previous Release: 14390 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 14391 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 14392 Current Release: 14393 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 14394 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 14395 143962) iASL Compiler/Disassembler: 14397 14398Fixed an array size problem for FreeBSD that would cause the compiler to 14399fault. 14400 14401---------------------------------------- 1440220 February 2004. Summary of changes for version 20040220: 14403 14404 144051) ACPI CA Core Subsystem: 14406 14407Implemented execution of _SxD methods for Device objects in the 14408GetObjectInfo interface. 14409 14410Fixed calls to _SST method to pass the correct arguments. 14411 14412Added a call to _SST on wake to restore to "working" state. 14413 14414Check for End-Of-Buffer failure case in the WalkResources interface. 14415 14416Integrated fix for 64-bit alignment issue in acglobal.h by moving two 14417structures to the beginning of the file. 14418 14419After wake, clear GPE status register(s) before enabling GPEs. 14420 14421After wake, clear/enable power button. (Perhaps we should clear/enable 14422all 14423fixed events upon wake.) 14424 14425Fixed a couple of possible memory leaks in the Namespace manager. 14426 14427Integrated latest acnetbsd.h file. 14428 14429---------------------------------------- 1443011 February 2004. Summary of changes for version 20040211: 14431 14432 144331) ACPI CA Core Subsystem: 14434 14435Completed investigation and implementation of the call-by-reference 14436mechanism for control method arguments. 14437 14438Fixed a problem where a store of an object into an indexed package could 14439fail if the store occurs within a different method than the method that 14440created the package. 14441 14442Fixed a problem where the ToDecimal operator could return incorrect 14443results. 14444 14445Fixed a problem where the CopyObject operator could fail on some of the 14446more 14447obscure objects (e.g., Reference objects.) 14448 14449Improved the output of the Debug object to display buffer, package, and 14450index objects. 14451 14452Fixed a problem where constructs of the form "RefOf (ArgX)" did not 14453return 14454the expected result. 14455 14456Added permanent ACPI_REPORT_ERROR macros for all instances of the 14457ACPI_AML_INTERNAL exception. 14458 14459Integrated latest version of acfreebsd.h 14460 14461---------------------------------------- 1446216 January 2004. Summary of changes for version 20040116: 14463 14464The purpose of this release is primarily to update the copyright years in 14465each module, thus causing a huge number of diffs. There are a few small 14466functional changes, however. 14467 144681) ACPI CA Core Subsystem: 14469 14470Improved error messages when there is a problem finding one or more of 14471the 14472required base ACPI tables 14473 14474Reintroduced the definition of APIC_HEADER in actbl.h 14475 14476Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 14477 14478Removed extraneous reference to NewObj in dsmthdat.c 14479 144802) iASL compiler 14481 14482Fixed a problem introduced in December that disabled the correct 14483disassembly 14484of Resource Templates 14485 14486 14487---------------------------------------- 1448803 December 2003. Summary of changes for version 20031203: 14489 144901) ACPI CA Core Subsystem: 14491 14492Changed the initialization of Operation Regions during subsystem 14493init to perform two entire walks of the ACPI namespace; The first 14494to initialize the regions themselves, the second to execute the 14495_REG methods. This fixed some interdependencies across _REG 14496methods found on some machines. 14497 14498Fixed a problem where a Store(Local0, Local1) could simply update 14499the object reference count, and not create a new copy of the 14500object if the Local1 is uninitialized. 14501 14502Implemented support for the _SST reserved method during sleep 14503transitions. 14504 14505Implemented support to clear the SLP_TYP and SLP_EN bits when 14506waking up, this is apparently required by some machines. 14507 14508When sleeping, clear the wake status only if SleepState is not S5. 14509 14510Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 14511pointer arithmetic advanced a string pointer too far. 14512 14513Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 14514could be returned if the requested table has not been loaded. 14515 14516Within the support for IRQ resources, restructured the handling of 14517the active and edge/level bits. 14518 14519Fixed a few problems in AcpiPsxExecute() where memory could be 14520leaked under certain error conditions. 14521 14522Improved error messages for the cases where the ACPI mode could 14523not be entered. 14524 14525Code and Data Size: Current and previous core subsystem library 14526sizes are shown below. These are the code and data sizes for the 14527acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 14528these values do not include any ACPI driver or OSPM code. The 14529debug version of the code includes the debug output trace 14530mechanism and has a much larger code and data size. Note that 14531these values will vary depending on the efficiency of the compiler 14532and the compiler options used during generation. 14533 14534 Previous Release (20031029): 14535 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 14536 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 14537 Current Release: 14538 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 14539 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 14540 145412) iASL Compiler/Disassembler: 14542 14543Implemented a fix for the iASL disassembler where a bad index was 14544generated. This was most noticeable on 64-bit platforms 14545 14546 14547---------------------------------------- 1454829 October 2003. Summary of changes for version 20031029: 14549 145501) ACPI CA Core Subsystem: 14551 14552 14553Fixed a problem where a level-triggered GPE with an associated 14554_Lxx control method was incorrectly cleared twice. 14555 14556Fixed a problem with the Field support code where an access can 14557occur beyond the end-of-region if the field is non-aligned but 14558extends to the very end of the parent region (resulted in an 14559AE_AML_REGION_LIMIT exception.) 14560 14561Fixed a problem with ACPI Fixed Events where an RT Clock handler 14562would not get invoked on an RTC event. The RTC event bitmasks for 14563the PM1 registers were not being initialized properly. 14564 14565Implemented support for executing _STA and _INI methods for 14566Processor objects. Although this is currently not part of the 14567ACPI specification, there is existing ASL code that depends on the 14568init-time execution of these methods. 14569 14570Implemented and deployed a GetDescriptorName function to decode 14571the various types of internal descriptors. Guards against null 14572descriptors during debug output also. 14573 14574Implemented and deployed a GetNodeName function to extract the 4- 14575character namespace node name. This function simplifies the debug 14576and error output, as well as guarding against null pointers during 14577output. 14578 14579Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 14580simplify the debug and error output of 64-bit integers. This 14581macro replaces the HIDWORD and LODWORD macros for dumping these 14582integers. 14583 14584Updated the implementation of the Stall() operator to only call 14585AcpiOsStall(), and also return an error if the operand is larger 14586than 255. This preserves the required behavior of not 14587relinquishing the processor, as would happen if AcpiOsSleep() was 14588called for "long stalls". 14589 14590Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 14591initialized are now treated as NOOPs. 14592 14593Cleaned up a handful of warnings during 64-bit generation. 14594 14595Fixed a reported error where and incorrect GPE number was passed 14596to the GPE dispatch handler. This value is only used for error 14597output, however. Used this opportunity to clean up and streamline 14598the GPE dispatch code. 14599 14600Code and Data Size: Current and previous core subsystem library 14601sizes are shown below. These are the code and data sizes for the 14602acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 14603these values do not include any ACPI driver or OSPM code. The 14604 14605debug version of the code includes the debug output trace 14606mechanism and has a much larger code and data size. Note that 14607these values will vary depending on the efficiency of the compiler 14608and the compiler options used during generation. 14609 14610 Previous Release (20031002): 14611 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 14612 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 14613 Current Release: 14614 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 14615 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 14616 14617 146182) iASL Compiler/Disassembler: 14619 14620Updated the iASL compiler to return an error if the operand to the 14621Stall() operator is larger than 255. 14622 14623 14624---------------------------------------- 1462502 October 2003. Summary of changes for version 20031002: 14626 14627 146281) ACPI CA Core Subsystem: 14629 14630Fixed a problem with Index Fields where the index was not 14631incremented for fields that require multiple writes to the 14632index/data registers (Fields that are wider than the data 14633register.) 14634 14635Fixed a problem with all Field objects where a write could go 14636beyond the end-of-field if the field was larger than the access 14637granularity and therefore required multiple writes to complete the 14638request. An extra write beyond the end of the field could happen 14639inadvertently. 14640 14641Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 14642would incorrectly be returned if the width of the Data Register 14643was larger than the specified field access width. 14644 14645Completed fixes for LoadTable() and Unload() and verified their 14646operation. Implemented full support for the "DdbHandle" object 14647throughout the ACPI CA subsystem. 14648 14649Implemented full support for the MADT and ECDT tables in the ACPI 14650CA header files. Even though these tables are not directly 14651consumed by ACPI CA, the header definitions are useful for ACPI 14652device drivers. 14653 14654Integrated resource descriptor fixes posted to the Linux ACPI 14655list. This included checks for minimum descriptor length, and 14656support for trailing NULL strings within descriptors that have 14657optional string elements. 14658 14659Code and Data Size: Current and previous core subsystem library 14660sizes are shown below. These are the code and data sizes for the 14661acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 14662these values do not include any ACPI driver or OSPM code. The 14663debug version of the code includes the debug output trace 14664mechanism and has a much larger code and data size. Note that 14665these values will vary depending on the efficiency of the compiler 14666and the compiler options used during generation. 14667 14668 Previous Release (20030918): 14669 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 14670 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 14671 Current Release: 14672 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 14673 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 14674 14675 146762) iASL Compiler: 14677 14678Implemented detection of non-ASCII characters within the input 14679source ASL file. This catches attempts to compile binary (AML) 14680files early in the compile, with an informative error message. 14681 14682Fixed a problem where the disassembler would fault if the output 14683filename could not be generated or if the output file could not be 14684opened. 14685 14686---------------------------------------- 1468718 September 2003. Summary of changes for version 20030918: 14688 14689 146901) ACPI CA Core Subsystem: 14691 14692Found and fixed a longstanding problem with the late execution of 14693the various deferred AML opcodes (such as Operation Regions, 14694Buffer Fields, Buffers, and Packages). If the name string 14695specified for the name of the new object placed the object in a 14696scope other than the current scope, the initialization/execution 14697of the opcode failed. The solution to this problem was to 14698implement a mechanism where the late execution of such opcodes 14699does not attempt to lookup/create the name a second time in an 14700incorrect scope. This fixes the "region size computed 14701incorrectly" problem. 14702 14703Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 14704Global Lock AE_BAD_PARAMETER error. 14705 14706Fixed several 64-bit issues with prototypes, casting and data 14707types. 14708 14709Removed duplicate prototype from acdisasm.h 14710 14711Fixed an issue involving EC Operation Region Detach (Shaohua Li) 14712 14713Code and Data Size: Current and previous core subsystem library 14714sizes are shown below. These are the code and data sizes for the 14715acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 14716these values do not include any ACPI driver or OSPM code. The 14717debug version of the code includes the debug output trace 14718mechanism and has a much larger code and data size. Note that 14719these values will vary depending on the efficiency of the compiler 14720and the compiler options used during generation. 14721 14722 Previous Release: 14723 14724 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 14725 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 14726 Current Release: 14727 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 14728 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 14729 14730 147312) Linux: 14732 14733Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 14734correct sleep time in seconds. 14735 14736---------------------------------------- 1473714 July 2003. Summary of changes for version 20030619: 14738 147391) ACPI CA Core Subsystem: 14740 14741Parse SSDTs in order discovered, as opposed to reverse order 14742(Hrvoje Habjanic) 14743 14744Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 14745Klausner, 14746 Nate Lawson) 14747 14748 147492) Linux: 14750 14751Dynamically allocate SDT list (suggested by Andi Kleen) 14752 14753proc function return value cleanups (Andi Kleen) 14754 14755Correctly handle NMI watchdog during long stalls (Andrew Morton) 14756 14757Make it so acpismp=force works (reported by Andrew Morton) 14758 14759 14760---------------------------------------- 1476119 June 2003. Summary of changes for version 20030619: 14762 147631) ACPI CA Core Subsystem: 14764 14765Fix To/FromBCD, eliminating the need for an arch-specific #define. 14766 14767Do not acquire a semaphore in the S5 shutdown path. 14768 14769Fix ex_digits_needed for 0. (Takayoshi Kochi) 14770 14771Fix sleep/stall code reversal. (Andi Kleen) 14772 14773Revert a change having to do with control method calling 14774semantics. 14775 147762) Linux: 14777 14778acpiphp update (Takayoshi Kochi) 14779 14780Export acpi_disabled for sonypi (Stelian Pop) 14781 14782Mention acpismp=force in config help 14783 14784Re-add acpitable.c and acpismp=force. This improves backwards 14785 14786compatibility and also cleans up the code to a significant degree. 14787 14788Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 14789 14790---------------------------------------- 1479122 May 2003. Summary of changes for version 20030522: 14792 147931) ACPI CA Core Subsystem: 14794 14795Found and fixed a reported problem where an AE_NOT_FOUND error 14796occurred occasionally during _BST evaluation. This turned out to 14797be an Owner ID allocation issue where a called method did not get 14798a new ID assigned to it. Eventually, (after 64k calls), the Owner 14799ID UINT16 would wraparound so that the ID would be the same as the 14800caller's and the called method would delete the caller's 14801namespace. 14802 14803Implemented extended error reporting for control methods that are 14804aborted due to a run-time exception. Output includes the exact 14805AML instruction that caused the method abort, a dump of the method 14806locals and arguments at the time of the abort, and a trace of all 14807nested control method calls. 14808 14809Modified the interpreter to allow the creation of buffers of zero 14810length from the AML code. Implemented new code to ensure that no 14811attempt is made to actually allocate a memory buffer (of length 14812zero) - instead, a simple buffer object with a NULL buffer pointer 14813and length zero is created. A warning is no longer issued when 14814the AML attempts to create a zero-length buffer. 14815 14816Implemented a workaround for the "leading asterisk issue" in 14817_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 14818asterisk is automatically removed if present in any HID, UID, or 14819CID strings. The iASL compiler will still flag this asterisk as 14820an error, however. 14821 14822Implemented full support for _CID methods that return a package of 14823multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 14824now additionally returns a device _CID list if present. This 14825required a change to the external interface in order to pass an 14826ACPI_BUFFER object as a parameter since the _CID list is of 14827variable length. 14828 14829Fixed a problem with the new AE_SAME_HANDLER exception where 14830handler initialization code did not know about this exception. 14831 14832Code and Data Size: Current and previous core subsystem library 14833sizes are shown below. These are the code and data sizes for the 14834acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 14835these values do not include any ACPI driver or OSPM code. The 14836debug version of the code includes the debug output trace 14837mechanism and has a much larger code and data size. Note that 14838these values will vary depending on the efficiency of the compiler 14839and the compiler options used during generation. 14840 14841 Previous Release (20030509): 14842 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 14843 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 14844 Current Release: 14845 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 14846 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 14847 14848 148492) Linux: 14850 14851Fixed a bug in which we would reinitialize the ACPI interrupt 14852after it was already working, thus disabling all ACPI and the IRQs 14853for any other device sharing the interrupt. (Thanks to Stian 14854Jordet) 14855 14856Toshiba driver update (John Belmonte) 14857 14858Return only 0 or 1 for our interrupt handler status (Andrew 14859Morton) 14860 14861 148623) iASL Compiler: 14863 14864Fixed a reported problem where multiple (nested) ElseIf() 14865statements were not handled correctly by the compiler, resulting 14866in incorrect warnings and incorrect AML code. This was a problem 14867in both the ASL parser and the code generator. 14868 14869 148704) Documentation: 14871 14872Added changes to existing interfaces, new exception codes, and new 14873text concerning reference count object management versus garbage 14874collection. 14875 14876---------------------------------------- 1487709 May 2003. Summary of changes for version 20030509. 14878 14879 148801) ACPI CA Core Subsystem: 14881 14882Changed the subsystem initialization sequence to hold off 14883installation of address space handlers until the hardware has been 14884initialized and the system has entered ACPI mode. This is because 14885the installation of space handlers can cause _REG methods to be 14886run. Previously, the _REG methods could potentially be run before 14887ACPI mode was enabled. 14888 14889Fixed some memory leak issues related to address space handler and 14890notify handler installation. There were some problems with the 14891reference count mechanism caused by the fact that the handler 14892objects are shared across several namespace objects. 14893 14894Fixed a reported problem where reference counts within the 14895namespace were not properly updated when named objects created by 14896method execution were deleted. 14897 14898Fixed a reported problem where multiple SSDTs caused a deletion 14899issue during subsystem termination. Restructured the table data 14900structures to simplify the linked lists and the related code. 14901 14902Fixed a problem where the table ID associated with secondary 14903tables (SSDTs) was not being propagated into the namespace objects 14904created by those tables. This would only present a problem for 14905tables that are unloaded at run-time, however. 14906 14907Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 14908type as the length parameter (instead of UINT32). 14909 14910Solved a long-standing problem where an ALREADY_EXISTS error 14911appears on various systems. This problem could happen when there 14912are multiple PCI_Config operation regions under a single PCI root 14913bus. This doesn't happen very frequently, but there are some 14914systems that do this in the ASL. 14915 14916Fixed a reported problem where the internal DeleteNode function 14917was incorrectly handling the case where a namespace node was the 14918first in the parent's child list, and had additional peers (not 14919the only child, but first in the list of children.) 14920 14921Code and Data Size: Current core subsystem library sizes are shown 14922below. These are the code and data sizes for the acpica.lib 14923produced by the Microsoft Visual C++ 6.0 compiler, and these 14924values do not include any ACPI driver or OSPM code. The debug 14925version of the code includes the debug output trace mechanism and 14926has a much larger code and data size. Note that these values will 14927vary depending on the efficiency of the compiler and the compiler 14928options used during generation. 14929 14930 Previous Release 14931 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 14932 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 14933 Current Release: 14934 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 14935 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 14936 14937 149382) Linux: 14939 14940Allow ":" in OS override string (Ducrot Bruno) 14941 14942Kobject fix (Greg KH) 14943 14944 149453 iASL Compiler/Disassembler: 14946 14947Fixed a problem in the generation of the C source code files (AML 14948is emitted in C source statements for BIOS inclusion) where the 14949Ascii dump that appears within a C comment at the end of each line 14950could cause a compile time error if the AML sequence happens to 14951have an open comment or close comment sequence embedded. 14952 14953 14954---------------------------------------- 1495524 April 2003. Summary of changes for version 20030424. 14956 14957 149581) ACPI CA Core Subsystem: 14959 14960Support for big-endian systems has been implemented. Most of the 14961support has been invisibly added behind big-endian versions of the 14962ACPI_MOVE_* macros. 14963 14964Fixed a problem in AcpiHwDisableGpeBlock() and 14965AcpiHwClearGpeBlock() where an incorrect offset was passed to the 14966low level hardware write routine. The offset parameter was 14967actually eliminated from the low level read/write routines because 14968they had become obsolete. 14969 14970Fixed a problem where a handler object was deleted twice during 14971the removal of a fixed event handler. 14972 14973 149742) Linux: 14975 14976A fix for SMP systems with link devices was contributed by 14977 14978Compaq's Dan Zink. 14979 14980(2.5) Return whether we handled the interrupt in our IRQ handler. 14981(Linux ISRs no longer return void, so we can propagate the handler 14982return value from the ACPI CA core back to the OS.) 14983 14984 14985 149863) Documentation: 14987 14988The ACPI CA Programmer Reference has been updated to reflect new 14989interfaces and changes to existing interfaces. 14990 14991---------------------------------------- 1499228 March 2003. Summary of changes for version 20030328. 14993 149941) ACPI CA Core Subsystem: 14995 14996The GPE Block Device support has been completed. New interfaces 14997are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 14998interfaces (enable, disable, clear, getstatus) have been split 14999into separate interfaces for Fixed Events and General Purpose 15000Events (GPEs) in order to support GPE Block Devices properly. 15001 15002Fixed a problem where the error message "Failed to acquire 15003semaphore" would appear during operations on the embedded 15004controller (EC). 15005 15006Code and Data Size: Current core subsystem library sizes are shown 15007below. These are the code and data sizes for the acpica.lib 15008produced by the Microsoft Visual C++ 6.0 compiler, and these 15009values do not include any ACPI driver or OSPM code. The debug 15010version of the code includes the debug output trace mechanism and 15011has a much larger code and data size. Note that these values will 15012vary depending on the efficiency of the compiler and the compiler 15013options used during generation. 15014 15015 Previous Release 15016 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 15017 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 15018 Current Release: 15019 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 15020 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 15021 15022 15023---------------------------------------- 1502428 February 2003. Summary of changes for version 20030228. 15025 15026 150271) ACPI CA Core Subsystem: 15028 15029The GPE handling and dispatch code has been completely overhauled 15030in preparation for support of GPE Block Devices (ID ACPI0006). 15031This affects internal data structures and code only; there should 15032be no differences visible externally. One new file has been 15033added, evgpeblk.c 15034 15035The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 15036fields that are used to determine the GPE block lengths. The 15037REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 15038structures are ignored. This is per the ACPI specification but it 15039isn't very clear. The full 256 Block 0/1 GPEs are now supported 15040(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 15041 15042In the SCI interrupt handler, removed the read of the PM1_CONTROL 15043register to look at the SCI_EN bit. On some machines, this read 15044causes an SMI event and greatly slows down SCI events. (This may 15045in fact be the cause of slow battery status response on some 15046systems.) 15047 15048Fixed a problem where a store of a NULL string to a package object 15049could cause the premature deletion of the object. This was seen 15050during execution of the battery _BIF method on some systems, 15051resulting in no battery data being returned. 15052 15053Added AcpiWalkResources interface to simplify parsing of resource 15054lists. 15055 15056Code and Data Size: Current core subsystem library sizes are shown 15057below. These are the code and data sizes for the acpica.lib 15058produced by the Microsoft Visual C++ 6.0 compiler, and these 15059values do not include any ACPI driver or OSPM code. The debug 15060version of the code includes the debug output trace mechanism and 15061has a much larger code and data size. Note that these values will 15062vary depending on the efficiency of the compiler and the compiler 15063options used during generation. 15064 15065 Previous Release 15066 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 15067 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 15068 Current Release: 15069 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 15070 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 15071 15072 150732) Linux 15074 15075S3 fixes (Ole Rohne) 15076 15077Update ACPI PHP driver with to use new acpi_walk_resource API 15078(Bjorn Helgaas) 15079 15080Add S4BIOS support (Pavel Machek) 15081 15082Map in entire table before performing checksum (John Stultz) 15083 15084Expand the mem= cmdline to allow the specification of reserved and 15085ACPI DATA blocks (Pavel Machek) 15086 15087Never use ACPI on VISWS 15088 15089Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 15090 15091Revert a change that allowed P_BLK lengths to be 4 or 5. This is 15092causing us to think that some systems support C2 when they really 15093don't. 15094 15095Do not count processor objects for non-present CPUs (Thanks to 15096Dominik Brodowski) 15097 15098 150993) iASL Compiler: 15100 15101Fixed a problem where ASL include files could not be found and 15102opened. 15103 15104Added support for the _PDC reserved name. 15105 15106 15107---------------------------------------- 1510822 January 2003. Summary of changes for version 20030122. 15109 15110 151111) ACPI CA Core Subsystem: 15112 15113Added a check for constructs of the form: Store (Local0, Local0) 15114where Local0 is not initialized. Apparently, some BIOS 15115programmers believe that this is a NOOP. Since this store doesn't 15116do anything anyway, the new prototype behavior will ignore this 15117error. This is a case where we can relax the strict checking in 15118the interpreter in the name of compatibility. 15119 15120 151212) Linux 15122 15123The AcpiSrc Source Conversion Utility has been released with the 15124Linux package for the first time. This is the utility that is 15125used to convert the ACPI CA base source code to the Linux version. 15126 15127(Both) Handle P_BLK lengths shorter than 6 more gracefully 15128 15129(Both) Move more headers to include/acpi, and delete an unused 15130header. 15131 15132(Both) Move drivers/acpi/include directory to include/acpi 15133 15134(Both) Boot functions don't use cmdline, so don't pass it around 15135 15136(Both) Remove include of unused header (Adrian Bunk) 15137 15138(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 15139the 15140former now also includes the latter, acpiphp.h only needs the one, 15141now. 15142 15143(2.5) Make it possible to select method of bios restoring after S3 15144resume. [=> no more ugly ifdefs] (Pavel Machek) 15145 15146(2.5) Make proc write interfaces work (Pavel Machek) 15147 15148(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 15149 15150(2.5) Break out ACPI Perf code into its own module, under cpufreq 15151(Dominik Brodowski) 15152 15153(2.4) S4BIOS support (Ducrot Bruno) 15154 15155(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 15156Visinoni) 15157 15158 151593) iASL Compiler: 15160 15161Added support to disassemble SSDT and PSDTs. 15162 15163Implemented support to obtain SSDTs from the Windows registry if 15164available. 15165 15166 15167---------------------------------------- 1516809 January 2003. Summary of changes for version 20030109. 15169 151701) ACPI CA Core Subsystem: 15171 15172Changed the behavior of the internal Buffer-to-String conversion 15173function. The current ACPI specification states that the contents 15174of the buffer are "converted to a string of two-character 15175hexadecimal numbers, each separated by a space". Unfortunately, 15176this definition is not backwards compatible with existing ACPI 1.0 15177implementations (although the behavior was not defined in the ACPI 151781.0 specification). The new behavior simply copies data from the 15179buffer to the string until a null character is found or the end of 15180the buffer is reached. The new String object is always null 15181terminated. This problem was seen during the generation of _BIF 15182battery data where incorrect strings were returned for battery 15183type, etc. This will also require an errata to the ACPI 15184specification. 15185 15186Renamed all instances of NATIVE_UINT and NATIVE_INT to 15187ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 15188 15189Copyright in all module headers (both Linux and non-Linux) has be 15190updated to 2003. 15191 15192Code and Data Size: Current core subsystem library sizes are shown 15193below. These are the code and data sizes for the acpica.lib 15194produced by the Microsoft Visual C++ 6.0 compiler, and these 15195values do not include any ACPI driver or OSPM code. The debug 15196version of the code includes the debug output trace mechanism and 15197has a much larger code and data size. Note that these values will 15198vary depending on the efficiency of the compiler and the compiler 15199options used during generation. 15200 15201 Previous Release 15202 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 15203 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 15204 Current Release: 15205 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 15206 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 15207 15208 152092) Linux 15210 15211Fixed an oops on module insertion/removal (Matthew Tippett) 15212 15213(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 15214 15215(2.5) Replace pr_debug (Randy Dunlap) 15216 15217(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 15218 15219(Both) Eliminate spawning of thread from timer callback, in favor 15220of schedule_work() 15221 15222(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 15223 15224(Both) Added define for Fixed Function HW region (Matthew Wilcox) 15225 15226(Both) Add missing statics to button.c (Pavel Machek) 15227 15228Several changes have been made to the source code translation 15229utility that generates the Linux Code in order to make the code 15230more "Linux-like": 15231 15232All typedefs on structs and unions have been removed in keeping 15233with the Linux coding style. 15234 15235Removed the non-Linux SourceSafe module revision number from each 15236module header. 15237 15238Completed major overhaul of symbols to be lowercase for linux. 15239Doubled the number of symbols that are lowercase. 15240 15241Fixed a problem where identifiers within procedure headers and 15242within quotes were not fully lower cased (they were left with a 15243starting capital.) 15244 15245Some C macros whose only purpose is to allow the generation of 16- 15246bit code are now completely removed in the Linux code, increasing 15247readability and maintainability. 15248 15249---------------------------------------- 15250 1525112 December 2002. Summary of changes for version 20021212. 15252 15253 152541) ACPI CA Core Subsystem: 15255 15256Fixed a problem where the creation of a zero-length AML Buffer 15257would cause a fault. 15258 15259Fixed a problem where a Buffer object that pointed to a static AML 15260buffer (in an ACPI table) could inadvertently be deleted, causing 15261memory corruption. 15262 15263Fixed a problem where a user buffer (passed in to the external 15264ACPI CA interfaces) could be overwritten if the buffer was too 15265small to complete the operation, causing memory corruption. 15266 15267Fixed a problem in the Buffer-to-String conversion code where a 15268string of length one was always returned, regardless of the size 15269of the input Buffer object. 15270 15271Removed the NATIVE_CHAR data type across the entire source due to 15272lack of need and lack of consistent use. 15273 15274Code and Data Size: Current core subsystem library sizes are shown 15275below. These are the code and data sizes for the acpica.lib 15276produced by the Microsoft Visual C++ 6.0 compiler, and these 15277values do not include any ACPI driver or OSPM code. The debug 15278version of the code includes the debug output trace mechanism and 15279has a much larger code and data size. Note that these values will 15280vary depending on the efficiency of the compiler and the compiler 15281options used during generation. 15282 15283 Previous Release 15284 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 15285 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 15286 Current Release: 15287 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 15288 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 15289 15290 15291---------------------------------------- 1529205 December 2002. Summary of changes for version 20021205. 15293 152941) ACPI CA Core Subsystem: 15295 15296Fixed a problem where a store to a String or Buffer object could 15297cause corruption of the DSDT if the object type being stored was 15298the same as the target object type and the length of the object 15299being stored was equal to or smaller than the original (existing) 15300target object. This was seen to cause corruption of battery _BIF 15301buffers if the _BIF method modified the buffer on the fly. 15302 15303Fixed a problem where an internal error was generated if a control 15304method invocation was used in an OperationRegion, Buffer, or 15305Package declaration. This was caused by the deferred parsing of 15306the control method and thus the deferred creation of the internal 15307method object. The solution to this problem was to create the 15308internal method object at the moment the method is encountered in 15309the first pass - so that subsequent references to the method will 15310able to obtain the required parameter count and thus properly 15311parse the method invocation. This problem presented itself as an 15312AE_AML_INTERNAL during the pass 1 parse phase during table load. 15313 15314Fixed a problem where the internal String object copy routine did 15315not always allocate sufficient memory for the target String object 15316and caused memory corruption. This problem was seen to cause 15317"Allocation already present in list!" errors as memory allocation 15318became corrupted. 15319 15320Implemented a new function for the evaluation of namespace objects 15321that allows the specification of the allowable return object 15322types. This simplifies a lot of code that checks for a return 15323object of one or more specific objects returned from the 15324evaluation (such as _STA, etc.) This may become and external 15325function if it would be useful to ACPI-related drivers. 15326 15327Completed another round of prefixing #defines with "ACPI_" for 15328clarity. 15329 15330Completed additional code restructuring to allow more modular 15331linking for iASL compiler and AcpiExec. Several files were split 15332creating new files. New files: nsparse.c dsinit.c evgpe.c 15333 15334Implemented an abort mechanism to terminate an executing control 15335method via the AML debugger. This feature is useful for debugging 15336control methods that depend (wait) for specific hardware 15337responses. 15338 15339Code and Data Size: Current core subsystem library sizes are shown 15340below. These are the code and data sizes for the acpica.lib 15341produced by the Microsoft Visual C++ 6.0 compiler, and these 15342values do not include any ACPI driver or OSPM code. The debug 15343version of the code includes the debug output trace mechanism and 15344has a much larger code and data size. Note that these values will 15345vary depending on the efficiency of the compiler and the compiler 15346options used during generation. 15347 15348 Previous Release 15349 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 15350 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 15351 Current Release: 15352 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 15353 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 15354 15355 153562) iASL Compiler/Disassembler 15357 15358Fixed a compiler code generation problem for "Interrupt" Resource 15359Descriptors. If specified in the ASL, the optional "Resource 15360Source Index" and "Resource Source" fields were not inserted into 15361the correct location within the AML resource descriptor, creating 15362an invalid descriptor. 15363 15364Fixed a disassembler problem for "Interrupt" resource descriptors. 15365The optional "Resource Source Index" and "Resource Source" fields 15366were ignored. 15367 15368 15369---------------------------------------- 1537022 November 2002. Summary of changes for version 20021122. 15371 15372 153731) ACPI CA Core Subsystem: 15374 15375Fixed a reported problem where an object stored to a Method Local 15376or Arg was not copied to a new object during the store - the 15377object pointer was simply copied to the Local/Arg. This caused 15378all subsequent operations on the Local/Arg to also affect the 15379original source of the store operation. 15380 15381Fixed a problem where a store operation to a Method Local or Arg 15382was not completed properly if the Local/Arg contained a reference 15383(from RefOf) to a named field. The general-purpose store-to- 15384namespace-node code is now used so that this case is handled 15385automatically. 15386 15387Fixed a problem where the internal object copy routine would cause 15388a protection fault if the object being copied was a Package and 15389contained either 1) a NULL package element or 2) a nested sub- 15390package. 15391 15392Fixed a problem with the GPE initialization that resulted from an 15393ambiguity in the ACPI specification. One section of the 15394specification states that both the address and length of the GPE 15395block must be zero if the block is not supported. Another section 15396implies that only the address need be zero if the block is not 15397supported. The code has been changed so that both the address and 15398the length must be non-zero to indicate a valid GPE block (i.e., 15399if either the address or the length is zero, the GPE block is 15400invalid.) 15401 15402Code and Data Size: Current core subsystem library sizes are shown 15403below. These are the code and data sizes for the acpica.lib 15404produced by the Microsoft Visual C++ 6.0 compiler, and these 15405values do not include any ACPI driver or OSPM code. The debug 15406version of the code includes the debug output trace mechanism and 15407has a much larger code and data size. Note that these values will 15408vary depending on the efficiency of the compiler and the compiler 15409options used during generation. 15410 15411 Previous Release 15412 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 15413 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 15414 Current Release: 15415 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 15416 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 15417 15418 154192) Linux 15420 15421Cleaned up EC driver. Exported an external EC read/write 15422interface. By going through this, other drivers (most notably 15423sonypi) will be able to serialize access to the EC. 15424 15425 154263) iASL Compiler/Disassembler 15427 15428Implemented support to optionally generate include files for both 15429ASM and C (the -i switch). This simplifies BIOS development by 15430automatically creating include files that contain external 15431declarations for the symbols that are created within the 15432 15433(optionally generated) ASM and C AML source files. 15434 15435 15436---------------------------------------- 1543715 November 2002. Summary of changes for version 20021115. 15438 154391) ACPI CA Core Subsystem: 15440 15441Fixed a memory leak problem where an error during resolution of 15442 15443method arguments during a method invocation from another method 15444failed to cleanup properly by deleting all successfully resolved 15445argument objects. 15446 15447Fixed a problem where the target of the Index() operator was not 15448correctly constructed if the source object was a package. This 15449problem has not been detected because the use of a target operand 15450with Index() is very rare. 15451 15452Fixed a problem with the Index() operator where an attempt was 15453made to delete the operand objects twice. 15454 15455Fixed a problem where an attempt was made to delete an operand 15456twice during execution of the CondRefOf() operator if the target 15457did not exist. 15458 15459Implemented the first of perhaps several internal create object 15460functions that create and initialize a specific object type. This 15461consolidates duplicated code wherever the object is created, thus 15462shrinking the size of the subsystem. 15463 15464Implemented improved debug/error messages for errors that occur 15465during nested method invocations. All executing method pathnames 15466are displayed (with the error) as the call stack is unwound - thus 15467simplifying debug. 15468 15469Fixed a problem introduced in the 10/02 release that caused 15470premature deletion of a buffer object if a buffer was used as an 15471ASL operand where an integer operand is required (Thus causing an 15472implicit object conversion from Buffer to Integer.) The change in 15473the 10/02 release was attempting to fix a memory leak (albeit 15474incorrectly.) 15475 15476Code and Data Size: Current core subsystem library sizes are shown 15477below. These are the code and data sizes for the acpica.lib 15478produced by the Microsoft Visual C++ 6.0 compiler, and these 15479values do not include any ACPI driver or OSPM code. The debug 15480version of the code includes the debug output trace mechanism and 15481has a much larger code and data size. Note that these values will 15482vary depending on the efficiency of the compiler and the compiler 15483options used during generation. 15484 15485 Previous Release 15486 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 15487 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 15488 Current Release: 15489 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 15490 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 15491 15492 154932) Linux 15494 15495Changed the implementation of the ACPI semaphores to use down() 15496instead of down_interruptable(). It is important that the 15497execution of ACPI control methods not be interrupted by signals. 15498Methods must run to completion, or the system may be left in an 15499unknown/unstable state. 15500 15501Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 15502(Shawn Starr) 15503 15504 155053) iASL Compiler/Disassembler 15506 15507 15508Changed the default location of output files. All output files 15509are now placed in the current directory by default instead of in 15510the directory of the source file. This change may affect some 15511existing makefiles, but it brings the behavior of the compiler in 15512line with other similar tools. The location of the output files 15513can be overridden with the -p command line switch. 15514 15515 15516---------------------------------------- 1551711 November 2002. Summary of changes for version 20021111. 15518 15519 155200) ACPI Specification 2.0B is released and is now available at: 15521http://www.acpi.info/index.html 15522 15523 155241) ACPI CA Core Subsystem: 15525 15526Implemented support for the ACPI 2.0 SMBus Operation Regions. 15527This includes the early detection and handoff of the request to 15528the SMBus region handler (avoiding all of the complex field 15529support code), and support for the bidirectional return packet 15530from an SMBus write operation. This paves the way for the 15531development of SMBus drivers in each host operating system. 15532 15533Fixed a problem where the semaphore WAIT_FOREVER constant was 15534defined as 32 bits, but must be 16 bits according to the ACPI 15535specification. This had the side effect of causing ASL 15536Mutex/Event timeouts even though the ASL code requested a wait 15537forever. Changed all internal references to the ACPI timeout 15538parameter to 16 bits to prevent future problems. Changed the name 15539of WAIT_FOREVER to ACPI_WAIT_FOREVER. 15540 15541Code and Data Size: Current core subsystem library sizes are shown 15542below. These are the code and data sizes for the acpica.lib 15543produced by the Microsoft Visual C++ 6.0 compiler, and these 15544values do not include any ACPI driver or OSPM code. The debug 15545version of the code includes the debug output trace mechanism and 15546has a much larger code and data size. Note that these values will 15547vary depending on the efficiency of the compiler and the compiler 15548options used during generation. 15549 15550 Previous Release 15551 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 15552 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 15553 Current Release: 15554 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 15555 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 15556 15557 155582) Linux 15559 15560Module loading/unloading fixes (John Cagle) 15561 15562 155633) iASL Compiler/Disassembler 15564 15565Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 15566 15567Implemented support for the disassembly of all SMBus protocol 15568keywords (SMBQuick, SMBWord, etc.) 15569 15570---------------------------------------- 1557101 November 2002. Summary of changes for version 20021101. 15572 15573 155741) ACPI CA Core Subsystem: 15575 15576Fixed a problem where platforms that have a GPE1 block but no GPE0 15577block were not handled correctly. This resulted in a "GPE 15578overlap" error message. GPE0 is no longer required. 15579 15580Removed code added in the previous release that inserted nodes 15581into the namespace in alphabetical order. This caused some side- 15582effects on various machines. The root cause of the problem is 15583still under investigation since in theory, the internal ordering 15584of the namespace nodes should not matter. 15585 15586 15587Enhanced error reporting for the case where a named object is not 15588found during control method execution. The full ACPI namepath 15589(name reference) of the object that was not found is displayed in 15590this case. 15591 15592Note: as a result of the overhaul of the namespace object types in 15593the previous release, the namespace nodes for the predefined 15594scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 15595instead of ACPI_TYPE_ANY. This simplifies the namespace 15596management code but may affect code that walks the namespace tree 15597looking for specific object types. 15598 15599Code and Data Size: Current core subsystem library sizes are shown 15600below. These are the code and data sizes for the acpica.lib 15601produced by the Microsoft Visual C++ 6.0 compiler, and these 15602values do not include any ACPI driver or OSPM code. The debug 15603version of the code includes the debug output trace mechanism and 15604has a much larger code and data size. Note that these values will 15605vary depending on the efficiency of the compiler and the compiler 15606options used during generation. 15607 15608 Previous Release 15609 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 15610 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 15611 Current Release: 15612 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 15613 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 15614 15615 156162) Linux 15617 15618Fixed a problem introduced in the previous release where the 15619Processor and Thermal objects were not recognized and installed in 15620/proc. This was related to the scope type change described above. 15621 15622 156233) iASL Compiler/Disassembler 15624 15625Implemented the -g option to get all of the required ACPI tables 15626from the registry and save them to files (Windows version of the 15627compiler only.) The required tables are the FADT, FACS, and DSDT. 15628 15629Added ACPI table checksum validation during table disassembly in 15630order to catch corrupted tables. 15631 15632 15633---------------------------------------- 1563422 October 2002. Summary of changes for version 20021022. 15635 156361) ACPI CA Core Subsystem: 15637 15638Implemented a restriction on the Scope operator that the target 15639must already exist in the namespace at the time the operator is 15640encountered (during table load or method execution). In other 15641words, forward references are not allowed and Scope() cannot 15642create a new object. This changes the previous behavior where the 15643interpreter would create the name if not found. This new behavior 15644correctly enables the search-to-root algorithm during namespace 15645lookup of the target name. Because of this upsearch, this fixes 15646the known Compaq _SB_.OKEC problem and makes both the AML 15647interpreter and iASL compiler compatible with other ACPI 15648implementations. 15649 15650Completed a major overhaul of the internal ACPI object types for 15651the ACPI Namespace and the associated operand objects. Many of 15652these types had become obsolete with the introduction of the two- 15653pass namespace load. This cleanup simplifies the code and makes 15654the entire namespace load mechanism much clearer and easier to 15655understand. 15656 15657Improved debug output for tracking scope opening/closing to help 15658diagnose scoping issues. The old scope name as well as the new 15659scope name are displayed. Also improved error messages for 15660problems with ASL Mutex objects and error messages for GPE 15661problems. 15662 15663Cleaned up the namespace dump code, removed obsolete code. 15664 15665All string output (for all namespace/object dumps) now uses the 15666common ACPI string output procedure which handles escapes properly 15667and does not emit non-printable characters. 15668 15669Fixed some issues with constants in the 64-bit version of the 15670local C library (utclib.c) 15671 15672 156732) Linux 15674 15675EC Driver: No longer attempts to acquire the Global Lock at 15676interrupt level. 15677 15678 156793) iASL Compiler/Disassembler 15680 15681Implemented ACPI 2.0B grammar change that disallows all Type 1 and 156822 opcodes outside of a control method. This means that the 15683"executable" operators (versus the "namespace" operators) cannot 15684be used at the table level; they can only be used within a control 15685method. 15686 15687Implemented the restriction on the Scope() operator where the 15688target must already exist in the namespace at the time the 15689operator is encountered (during ASL compilation). In other words, 15690forward references are not allowed and Scope() cannot create a new 15691object. This makes the iASL compiler compatible with other ACPI 15692implementations and makes the Scope() implementation adhere to the 15693ACPI specification. 15694 15695Fixed a problem where namepath optimization for the Alias operator 15696was optimizing the wrong path (of the two namepaths.) This caused 15697a "Missing alias link" error message. 15698 15699Fixed a problem where an "unknown reserved name" warning could be 15700incorrectly generated for names like "_SB" when the trailing 15701underscore is not used in the original ASL. 15702 15703Fixed a problem where the reserved name check did not handle 15704NamePaths with multiple NameSegs correctly. The first nameseg of 15705the NamePath was examined instead of the last NameSeg. 15706 15707 15708---------------------------------------- 15709 1571002 October 2002. Summary of changes for this release. 15711 15712 157131) ACPI CA Core Subsystem version 20021002: 15714 15715Fixed a problem where a store/copy of a string to an existing 15716string did not always set the string length properly in the String 15717object. 15718 15719Fixed a reported problem with the ToString operator where the 15720behavior was identical to the ToHexString operator instead of just 15721simply converting a raw buffer to a string data type. 15722 15723Fixed a problem where CopyObject and the other "explicit" 15724conversion operators were not updating the internal namespace node 15725type as part of the store operation. 15726 15727Fixed a memory leak during implicit source operand conversion 15728where the original object was not deleted if it was converted to a 15729new object of a different type. 15730 15731Enhanced error messages for all problems associated with namespace 15732lookups. Common procedure generates and prints the lookup name as 15733well as the formatted status. 15734 15735Completed implementation of a new design for the Alias support 15736within the namespace. The existing design did not handle the case 15737where a new object was assigned to one of the two names due to the 15738use of an explicit conversion operator, resulting in the two names 15739pointing to two different objects. The new design simply points 15740the Alias name to the original name node - not to the object. 15741This results in a level of indirection that must be handled in the 15742name resolution mechanism. 15743 15744Code and Data Size: Current core subsystem library sizes are shown 15745below. These are the code and data sizes for the acpica.lib 15746produced by the Microsoft Visual C++ 6.0 compiler, and these 15747values do not include any ACPI driver or OSPM code. The debug 15748version of the code includes the debug output trace mechanism and 15749has a larger code and data size. Note that these values will vary 15750depending on the efficiency of the compiler and the compiler 15751options used during generation. 15752 15753 Previous Release 15754 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 15755 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 15756 Current Release: 15757 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 15758 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 15759 15760 157612) Linux 15762 15763Initialize thermal driver's timer before it is used. (Knut 15764Neumann) 15765 15766Allow handling negative celsius values. (Kochi Takayoshi) 15767 15768Fix thermal management and make trip points. R/W (Pavel Machek) 15769 15770Fix /proc/acpi/sleep. (P. Christeas) 15771 15772IA64 fixes. (David Mosberger) 15773 15774Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 15775 15776Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 15777Brodowski) 15778 15779 157803) iASL Compiler/Disassembler 15781 15782Clarified some warning/error messages. 15783 15784 15785---------------------------------------- 1578618 September 2002. Summary of changes for this release. 15787 15788 157891) ACPI CA Core Subsystem version 20020918: 15790 15791Fixed a reported problem with reference chaining (via the Index() 15792and RefOf() operators) in the ObjectType() and SizeOf() operators. 15793The definition of these operators includes the dereferencing of 15794all chained references to return information on the base object. 15795 15796Fixed a problem with stores to indexed package elements - the 15797existing code would not complete the store if an "implicit 15798conversion" was not performed. In other words, if the existing 15799object (package element) was to be replaced completely, the code 15800didn't handle this case. 15801 15802Relaxed typechecking on the ASL "Scope" operator to allow the 15803target name to refer to an object of type Integer, String, or 15804Buffer, in addition to the scoping object types (Device, 15805predefined Scopes, Processor, PowerResource, and ThermalZone.) 15806This allows existing AML code that has workarounds for a bug in 15807Windows to function properly. A warning is issued, however. This 15808affects both the AML interpreter and the iASL compiler. Below is 15809an example of this type of ASL code: 15810 15811 Name(DEB,0x00) 15812 Scope(DEB) 15813 { 15814 15815Fixed some reported problems with 64-bit integer support in the 15816local implementation of C library functions (clib.c) 15817 15818 158192) Linux 15820 15821Use ACPI fix map region instead of IOAPIC region, since it is 15822undefined in non-SMP. 15823 15824Ensure that the SCI has the proper polarity and trigger, even on 15825systems that do not have an interrupt override entry in the MADT. 15826 158272.5 big driver reorganization (Pat Mochel) 15828 15829Use early table mapping code from acpitable.c (Andi Kleen) 15830 15831New blacklist entries (Andi Kleen) 15832 15833Blacklist improvements. Split blacklist code out into a separate 15834file. Move checking the blacklist to very early. Previously, we 15835would use ACPI tables, and then halfway through init, check the 15836blacklist -- too late. Now, it's early enough to completely fall- 15837back to non-ACPI. 15838 15839 158403) iASL Compiler/Disassembler version 20020918: 15841 15842Fixed a problem where the typechecking code didn't know that an 15843alias could point to a method. In other words, aliases were not 15844being dereferenced during typechecking. 15845 15846 15847---------------------------------------- 1584829 August 2002. Summary of changes for this release. 15849 158501) ACPI CA Core Subsystem Version 20020829: 15851 15852If the target of a Scope() operator already exists, it must be an 15853object type that actually opens a scope -- such as a Device, 15854Method, Scope, etc. This is a fatal runtime error. Similar error 15855check has been added to the iASL compiler also. 15856 15857Tightened up the namespace load to disallow multiple names in the 15858same scope. This previously was allowed if both objects were of 15859the same type. (i.e., a lookup was the same as entering a new 15860name). 15861 15862 158632) Linux 15864 15865Ensure that the ACPI interrupt has the proper trigger and 15866polarity. 15867 15868local_irq_disable is extraneous. (Matthew Wilcox) 15869 15870Make "acpi=off" actually do what it says, and not use the ACPI 15871interpreter *or* the tables. 15872 15873Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 15874Takayoshi) 15875 15876 158773) iASL Compiler/Disassembler Version 20020829: 15878 15879Implemented namepath optimization for name declarations. For 15880example, a declaration like "Method (\_SB_.ABCD)" would get 15881optimized to "Method (ABCD)" if the declaration is within the 15882\_SB_ scope. This optimization is in addition to the named 15883reference path optimization first released in the previous 15884version. This would seem to complete all possible optimizations 15885for namepaths within the ASL/AML. 15886 15887If the target of a Scope() operator already exists, it must be an 15888object type that actually opens a scope -- such as a Device, 15889Method, Scope, etc. 15890 15891Implemented a check and warning for unreachable code in the same 15892block below a Return() statement. 15893 15894Fixed a problem where the listing file was not generated if the 15895compiler aborted if the maximum error count was exceeded (200). 15896 15897Fixed a problem where the typechecking of method return values was 15898broken. This includes the check for a return value when the 15899method is invoked as a TermArg (a return value is expected.) 15900 15901Fixed a reported problem where EOF conditions during a quoted 15902string or comment caused a fault. 15903 15904 15905---------------------------------------- 1590615 August 2002. Summary of changes for this release. 15907 159081) ACPI CA Core Subsystem Version 20020815: 15909 15910Fixed a reported problem where a Store to a method argument that 15911contains a reference did not perform the indirect store correctly. 15912This problem was created during the conversion to the new 15913reference object model - the indirect store to a method argument 15914code was not updated to reflect the new model. 15915 15916Reworked the ACPI mode change code to better conform to ACPI 2.0, 15917handle corner cases, and improve code legibility (Kochi Takayoshi) 15918 15919Fixed a problem with the pathname parsing for the carat (^) 15920prefix. The heavy use of the carat operator by the new namepath 15921optimization in the iASL compiler uncovered a problem with the AML 15922interpreter handling of this prefix. In the case where one or 15923more carats precede a single nameseg, the nameseg was treated as 15924standalone and the search rule (to root) was inadvertently 15925applied. This could cause both the iASL compiler and the 15926interpreter to find the wrong object or to miss the error that 15927should occur if the object does not exist at that exact pathname. 15928 15929Found and fixed the problem where the HP Pavilion DSDT would not 15930load. This was a relatively minor tweak to the table loading code 15931(a problem caused by the unexpected encounter with a method 15932invocation not within a control method), but it does not solve the 15933overall issue of the execution of AML code at the table level. 15934This investigation is still ongoing. 15935 15936Code and Data Size: Current core subsystem library sizes are shown 15937below. These are the code and data sizes for the acpica.lib 15938produced by the Microsoft Visual C++ 6.0 compiler, and these 15939values do not include any ACPI driver or OSPM code. The debug 15940version of the code includes the debug output trace mechanism and 15941has a larger code and data size. Note that these values will vary 15942depending on the efficiency of the compiler and the compiler 15943options used during generation. 15944 15945 Previous Release 15946 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 15947 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 15948 Current Release: 15949 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 15950 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 15951 15952 159532) Linux 15954 15955Remove redundant slab.h include (Brad Hards) 15956 15957Fix several bugs in thermal.c (Herbert Nachtnebel) 15958 15959Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 15960 15961Change acpi_system_suspend to use updated irq functions (Pavel 15962Machek) 15963 15964Export acpi_get_firmware_table (Matthew Wilcox) 15965 15966Use proper root proc entry for ACPI (Kochi Takayoshi) 15967 15968Fix early-boot table parsing (Bjorn Helgaas) 15969 15970 159713) iASL Compiler/Disassembler 15972 15973Reworked the compiler options to make them more consistent and to 15974use two-letter options where appropriate. We were running out of 15975sensible letters. This may break some makefiles, so check the 15976current options list by invoking the compiler with no parameters. 15977 15978Completed the design and implementation of the ASL namepath 15979optimization option for the compiler. This option optimizes all 15980references to named objects to the shortest possible path. The 15981first attempt tries to utilize a single nameseg (4 characters) and 15982the "search-to-root" algorithm used by the interpreter. If that 15983cannot be used (because either the name is not in the search path 15984or there is a conflict with another object with the same name), 15985the pathname is optimized using the carat prefix (usually a 15986shorter string than specifying the entire path from the root.) 15987 15988Implemented support to obtain the DSDT from the Windows registry 15989(when the disassembly option is specified with no input file). 15990Added this code as the implementation for AcpiOsTableOverride in 15991the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 15992utility) to scan memory for the DSDT to the AcpiOsTableOverride 15993function in the DOS OSL to make the disassembler truly OS 15994independent. 15995 15996Implemented a new option to disassemble and compile in one step. 15997When used without an input filename, this option will grab the 15998DSDT from the local machine, disassemble it, and compile it in one 15999step. 16000 16001Added a warning message for invalid escapes (a backslash followed 16002by any character other than the allowable escapes). This catches 16003the quoted string error "\_SB_" (which should be "\\_SB_" ). 16004 16005Also, there are numerous instances in the ACPI specification where 16006this error occurs. 16007 16008Added a compiler option to disable all optimizations. This is 16009basically the "compatibility mode" because by using this option, 16010the AML code will come out exactly the same as other ASL 16011compilers. 16012 16013Added error messages for incorrectly ordered dependent resource 16014functions. This includes: missing EndDependentFn macro at end of 16015dependent resource list, nested dependent function macros (both 16016start and end), and missing StartDependentFn macro. These are 16017common errors that should be caught at compile time. 16018 16019Implemented _OSI support for the disassembler and compiler. _OSI 16020must be included in the namespace for proper disassembly (because 16021the disassembler must know the number of arguments.) 16022 16023Added an "optimization" message type that is optional (off by 16024default). This message is used for all optimizations - including 16025constant folding, integer optimization, and namepath optimization. 16026 16027---------------------------------------- 1602825 July 2002. Summary of changes for this release. 16029 16030 160311) ACPI CA Core Subsystem Version 20020725: 16032 16033The AML Disassembler has been enhanced to produce compilable ASL 16034code and has been integrated into the iASL compiler (see below) as 16035well as the single-step disassembly for the AML debugger and the 16036disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 16037resource templates and macros are fully supported. The 16038disassembler has been tested on over 30 different AML files, 16039producing identical AML when the resulting disassembled ASL file 16040is recompiled with the same ASL compiler. 16041 16042Modified the Resource Manager to allow zero interrupts and zero 16043dma channels during the GetCurrentResources call. This was 16044causing problems on some platforms. 16045 16046Added the AcpiOsRedirectOutput interface to the OSL to simplify 16047output redirection for the AcpiOsPrintf and AcpiOsVprintf 16048interfaces. 16049 16050Code and Data Size: Current core subsystem library sizes are shown 16051below. These are the code and data sizes for the acpica.lib 16052produced by the Microsoft Visual C++ 6.0 compiler, and these 16053values do not include any ACPI driver or OSPM code. The debug 16054version of the code includes the debug output trace mechanism and 16055has a larger code and data size. Note that these values will vary 16056depending on the efficiency of the compiler and the compiler 16057options used during generation. 16058 16059 Previous Release 16060 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 16061 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 16062 Current Release: 16063 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 16064 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 16065 16066 160672) Linux 16068 16069Fixed a panic in the EC driver (Dominik Brodowski) 16070 16071Implemented checksum of the R/XSDT itself during Linux table scan 16072(Richard Schaal) 16073 16074 160753) iASL compiler 16076 16077The AML disassembler is integrated into the compiler. The "-d" 16078option invokes the disassembler to completely disassemble an 16079input AML file, producing as output a text ASL file with the 16080extension ".dsl" (to avoid name collisions with existing .asl 16081source files.) A future enhancement will allow the disassembler 16082to obtain the BIOS DSDT from the registry under Windows. 16083 16084Fixed a problem with the VendorShort and VendorLong resource 16085descriptors where an invalid AML sequence was created. 16086 16087Implemented a fix for BufferData term in the ASL parser. It was 16088inadvertently defined twice, allowing invalid syntax to pass and 16089causing reduction conflicts. 16090 16091Fixed a problem where the Ones opcode could get converted to a 16092value of zero if "Ones" was used where a byte, word or dword value 16093was expected. The 64-bit value is now truncated to the correct 16094size with the correct value. 16095 16096 16097 16098---------------------------------------- 1609902 July 2002. Summary of changes for this release. 16100 16101 161021) ACPI CA Core Subsystem Version 20020702: 16103 16104The Table Manager code has been restructured to add several new 16105features. Tables that are not required by the core subsystem 16106(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 16107validated in any way and are returned from AcpiGetFirmwareTable if 16108requested. The AcpiOsTableOverride interface is now called for 16109each table that is loaded by the subsystem in order to allow the 16110host to override any table it chooses. Previously, only the DSDT 16111could be overridden. Added one new files, tbrsdt.c and 16112tbgetall.c. 16113 16114Fixed a problem with the conversion of internal package objects to 16115external objects (when a package is returned from a control 16116method.) The return buffer length was set to zero instead of the 16117proper length of the package object. 16118 16119Fixed a reported problem with the use of the RefOf and DeRefOf 16120operators when passing reference arguments to control methods. A 16121new type of Reference object is used internally for references 16122produced by the RefOf operator. 16123 16124Added additional error messages in the Resource Manager to explain 16125AE_BAD_DATA errors when they occur during resource parsing. 16126 16127Split the AcpiEnableSubsystem into two primitives to enable a 16128finer granularity initialization sequence. These two calls should 16129be called in this order: AcpiEnableSubsystem (flags), 16130AcpiInitializeObjects (flags). The flags parameter remains the 16131same. 16132 16133 161342) Linux 16135 16136Updated the ACPI utilities module to understand the new style of 16137fully resolved package objects that are now returned from the core 16138subsystem. This eliminates errors of the form: 16139 16140 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 16141 acpi_utils-0430 [145] acpi_evaluate_reference: 16142 Invalid element in package (not a device reference) 16143 16144The method evaluation utility uses the new buffer allocation 16145scheme instead of calling AcpiEvaluate Object twice. 16146 16147Added support for ECDT. This allows the use of the Embedded 16148 16149Controller before the namespace has been fully initialized, which 16150is necessary for ACPI 2.0 support, and for some laptops to 16151initialize properly. (Laptops using ECDT are still rare, so only 16152limited testing was performed of the added functionality.) 16153 16154Fixed memory leaks in the EC driver. 16155 16156Eliminated a brittle code structure in acpi_bus_init(). 16157 16158Eliminated the acpi_evaluate() helper function in utils.c. It is 16159no longer needed since acpi_evaluate_object can optionally 16160allocate memory for the return object. 16161 16162Implemented fix for keyboard hang when getting battery readings on 16163some systems (Stephen White) 16164 16165PCI IRQ routing update (Dominik Brodowski) 16166 16167Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 16168support 16169 16170---------------------------------------- 1617111 June 2002. Summary of changes for this release. 16172 16173 161741) ACPI CA Core Subsystem Version 20020611: 16175 16176Fixed a reported problem where constants such as Zero and One 16177appearing within _PRT packages were not handled correctly within 16178the resource manager code. Originally reported against the ASL 16179compiler because the code generator now optimizes integers to 16180their minimal AML representation (i.e. AML constants if possible.) 16181The _PRT code now handles all AML constant opcodes correctly 16182(Zero, One, Ones, Revision). 16183 16184Fixed a problem with the Concatenate operator in the AML 16185interpreter where a buffer result object was incorrectly marked as 16186not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 16187 16188All package sub-objects are now fully resolved before they are 16189returned from the external ACPI interfaces. This means that name 16190strings are resolved to object handles, and constant operators 16191(Zero, One, Ones, Revision) are resolved to Integers. 16192 16193Implemented immediate resolution of the AML Constant opcodes 16194(Zero, One, Ones, Revision) to Integer objects upon detection 16195within the AML stream. This has simplified and reduced the 16196generated code size of the subsystem by eliminating about 10 16197switch statements for these constants (which previously were 16198contained in Reference objects.) The complicating issues are that 16199the Zero opcode is used as a "placeholder" for unspecified 16200optional target operands and stores to constants are defined to be 16201no-ops. 16202 16203Code and Data Size: Current core subsystem library sizes are shown 16204below. These are the code and data sizes for the acpica.lib 16205produced by the Microsoft Visual C++ 6.0 compiler, and these 16206values do not include any ACPI driver or OSPM code. The debug 16207version of the code includes the debug output trace mechanism and 16208has a larger code and data size. Note that these values will vary 16209depending on the efficiency of the compiler and the compiler 16210options used during generation. 16211 16212 Previous Release 16213 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 16214 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 16215 Current Release: 16216 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 16217 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 16218 16219 162202) Linux 16221 16222 16223Added preliminary support for obtaining _TRA data for PCI root 16224bridges (Bjorn Helgaas). 16225 16226 162273) iASL Compiler Version X2046: 16228 16229Fixed a problem where the "_DDN" reserved name was defined to be a 16230control method with one argument. There are no arguments, and 16231_DDN does not have to be a control method. 16232 16233Fixed a problem with the Linux version of the compiler where the 16234source lines printed with error messages were the wrong lines. 16235This turned out to be the "LF versus CR/LF" difference between 16236Windows and Unix. This appears to be the longstanding issue 16237concerning listing output and error messages. 16238 16239Fixed a problem with the Linux version of compiler where opcode 16240names within error messages were wrong. This was caused by a 16241slight difference in the output of the Flex tool on Linux versus 16242Windows. 16243 16244Fixed a problem with the Linux compiler where the hex output files 16245contained some garbage data caused by an internal buffer overrun. 16246 16247 16248---------------------------------------- 1624917 May 2002. Summary of changes for this release. 16250 16251 162521) ACPI CA Core Subsystem Version 20020517: 16253 16254Implemented a workaround to an BIOS bug discovered on the HP 16255OmniBook where the FADT revision number and the table size are 16256inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 16257behavior is to fallback to using only the ACPI 1.0 fields of the 16258FADT if the table is too small to be a ACPI 2.0 table as claimed 16259by the revision number. Although this is a BIOS bug, this is a 16260case where the workaround is simple enough and with no side 16261effects, so it seemed prudent to add it. A warning message is 16262issued, however. 16263 16264Implemented minimum size checks for the fixed-length ACPI tables - 16265- the FADT and FACS, as well as consistency checks between the 16266revision number and the table size. 16267 16268Fixed a reported problem in the table override support where the 16269new table pointer was incorrectly treated as a physical address 16270instead of a logical address. 16271 16272Eliminated the use of the AE_AML_ERROR exception and replaced it 16273with more descriptive codes. 16274 16275Fixed a problem where an exception would occur if an ASL Field was 16276defined with no named Field Units underneath it (used by some 16277index fields). 16278 16279Code and Data Size: Current core subsystem library sizes are shown 16280below. These are the code and data sizes for the acpica.lib 16281produced by the Microsoft Visual C++ 6.0 compiler, and these 16282values do not include any ACPI driver or OSPM code. The debug 16283version of the code includes the debug output trace mechanism and 16284has a larger code and data size. Note that these values will vary 16285depending on the efficiency of the compiler and the compiler 16286options used during generation. 16287 16288 Previous Release 16289 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 16290 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 16291 Current Release: 16292 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 16293 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 16294 16295 16296 162972) Linux 16298 16299Much work done on ACPI init (MADT and PCI IRQ routing support). 16300(Paul D. and Dominik Brodowski) 16301 16302Fix PCI IRQ-related panic on boot (Sam Revitch) 16303 16304Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 16305 16306Fix "MHz" typo (Dominik Brodowski) 16307 16308Fix RTC year 2000 issue (Dominik Brodowski) 16309 16310Preclude multiple button proc entries (Eric Brunet) 16311 16312Moved arch-specific code out of include/platform/aclinux.h 16313 163143) iASL Compiler Version X2044: 16315 16316Implemented error checking for the string used in the EISAID macro 16317(Usually used in the definition of the _HID object.) The code now 16318strictly enforces the PnP format - exactly 7 characters, 3 16319uppercase letters and 4 hex digits. 16320 16321If a raw string is used in the definition of the _HID object 16322(instead of the EISAID macro), the string must contain all 16323alphanumeric characters (e.g., "*PNP0011" is not allowed because 16324of the asterisk.) 16325 16326Implemented checking for invalid use of ACPI reserved names for 16327most of the name creation operators (Name, Device, Event, Mutex, 16328OperationRegion, PowerResource, Processor, and ThermalZone.) 16329Previously, this check was only performed for control methods. 16330 16331Implemented an additional check on the Name operator to emit an 16332error if a reserved name that must be implemented in ASL as a 16333control method is used. We know that a reserved name must be a 16334method if it is defined with input arguments. 16335 16336The warning emitted when a namespace object reference is not found 16337during the cross reference phase has been changed into an error. 16338The "External" directive should be used for names defined in other 16339modules. 16340 16341 163424) Tools and Utilities 16343 16344The 16-bit tools (adump16 and aexec16) have been regenerated and 16345tested. 16346 16347Fixed a problem with the output of both acpidump and adump16 where 16348the indentation of closing parentheses and brackets was not 16349 16350aligned properly with the parent block. 16351 16352 16353---------------------------------------- 1635403 May 2002. Summary of changes for this release. 16355 16356 163571) ACPI CA Core Subsystem Version 20020503: 16358 16359Added support a new OSL interface that allows the host operating 16360 16361system software to override the DSDT found in the firmware - 16362AcpiOsTableOverride. With this interface, the OSL can examine the 16363version of the firmware DSDT and replace it with a different one 16364if desired. 16365 16366Added new external interfaces for accessing ACPI registers from 16367device drivers and other system software - AcpiGetRegister and 16368AcpiSetRegister. This was simply an externalization of the 16369existing AcpiHwBitRegister interfaces. 16370 16371Fixed a regression introduced in the previous build where the 16372ASL/AML CreateField operator always returned an error, 16373"destination must be a NS Node". 16374 16375Extended the maximum time (before failure) to successfully enable 16376ACPI mode to 3 seconds. 16377 16378Code and Data Size: Current core subsystem library sizes are shown 16379below. These are the code and data sizes for the acpica.lib 16380produced by the Microsoft Visual C++ 6.0 compiler, and these 16381values do not include any ACPI driver or OSPM code. The debug 16382version of the code includes the debug output trace mechanism and 16383has a larger code and data size. Note that these values will vary 16384depending on the efficiency of the compiler and the compiler 16385options used during generation. 16386 16387 Previous Release 16388 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 16389 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 16390 Current Release: 16391 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 16392 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 16393 16394 163952) Linux 16396 16397Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 16398free. While 3 out of 4 of our in-house systems work fine, the last 16399one still hangs when testing the LAPIC timer. 16400 16401Renamed many files in 2.5 kernel release to omit "acpi_" from the 16402name. 16403 16404Added warning on boot for Presario 711FR. 16405 16406Sleep improvements (Pavel Machek) 16407 16408ACPI can now be built without CONFIG_PCI enabled. 16409 16410IA64: Fixed memory map functions (JI Lee) 16411 16412 164133) iASL Compiler Version X2043: 16414 16415Added support to allow the compiler to be integrated into the MS 16416VC++ development environment for one-button compilation of single 16417files or entire projects -- with error-to-source-line mapping. 16418 16419Implemented support for compile-time constant folding for the 16420Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 16421specification. This allows the ASL writer to use expressions 16422instead of Integer/Buffer/String constants in terms that must 16423evaluate to constants at compile time and will also simplify the 16424emitted AML in any such sub-expressions that can be folded 16425(evaluated at compile-time.) This increases the size of the 16426compiler significantly because a portion of the ACPI CA AML 16427interpreter is included within the compiler in order to pre- 16428evaluate constant expressions. 16429 16430 16431Fixed a problem with the "Unicode" ASL macro that caused the 16432compiler to fault. (This macro is used in conjunction with the 16433_STR reserved name.) 16434 16435Implemented an AML opcode optimization to use the Zero, One, and 16436Ones opcodes where possible to further reduce the size of integer 16437constants and thus reduce the overall size of the generated AML 16438code. 16439 16440Implemented error checking for new reserved terms for ACPI version 164412.0A. 16442 16443Implemented the -qr option to display the current list of ACPI 16444reserved names known to the compiler. 16445 16446Implemented the -qc option to display the current list of ASL 16447operators that are allowed within constant expressions and can 16448therefore be folded at compile time if the operands are constants. 16449 16450 164514) Documentation 16452 16453Updated the Programmer's Reference for new interfaces, data types, 16454and memory allocation model options. 16455 16456Updated the iASL Compiler User Reference to apply new format and 16457add information about new features and options. 16458 16459---------------------------------------- 1646019 April 2002. Summary of changes for this release. 16461 164621) ACPI CA Core Subsystem Version 20020419: 16463 16464The source code base for the Core Subsystem has been completely 16465cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 16466versions. The Lint option files used are included in the 16467/acpi/generate/lint directory. 16468 16469Implemented enhanced status/error checking across the entire 16470Hardware manager subsystem. Any hardware errors (reported from 16471the OSL) are now bubbled up and will abort a running control 16472method. 16473 16474 16475Fixed a problem where the per-ACPI-table integer width (32 or 64) 16476was stored only with control method nodes, causing a fault when 16477non-control method code was executed during table loading. The 16478solution implemented uses a global variable to indicate table 16479width across the entire ACPI subsystem. Therefore, ACPI CA does 16480not support mixed integer widths across different ACPI tables 16481(DSDT, SSDT). 16482 16483Fixed a problem where NULL extended fields (X fields) in an ACPI 164842.0 ACPI FADT caused the table load to fail. Although the 16485existing ACPI specification is a bit fuzzy on this topic, the new 16486behavior is to fall back on a ACPI 1.0 field if the corresponding 16487ACPI 2.0 X field is zero (even though the table revision indicates 16488a full ACPI 2.0 table.) The ACPI specification will be updated to 16489clarify this issue. 16490 16491Fixed a problem with the SystemMemory operation region handler 16492where memory was always accessed byte-wise even if the AML- 16493specified access width was larger than a byte. This caused 16494problems on systems with memory-mapped I/O. Memory is now 16495accessed with the width specified. On systems that do not support 16496non-aligned transfers, a check is made to guarantee proper address 16497alignment before proceeding in order to avoid an AML-caused 16498alignment fault within the kernel. 16499 16500 16501Fixed a problem with the ExtendedIrq resource where only one byte 16502of the 4-byte Irq field was extracted. 16503 16504Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 16505function was out of date and required a rewrite. 16506 16507Code and Data Size: Current core subsystem library sizes are shown 16508below. These are the code and data sizes for the acpica.lib 16509produced by the Microsoft Visual C++ 6.0 compiler, and these 16510values do not include any ACPI driver or OSPM code. The debug 16511version of the code includes the debug output trace mechanism and 16512has a larger code and data size. Note that these values will vary 16513depending on the efficiency of the compiler and the compiler 16514options used during generation. 16515 16516 Previous Release 16517 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 16518 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 16519 Current Release: 16520 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 16521 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 16522 16523 165242) Linux 16525 16526PCI IRQ routing fixes (Dominik Brodowski) 16527 16528 165293) iASL Compiler Version X2042: 16530 16531Implemented an additional compile-time error check for a field 16532unit whose size + minimum access width would cause a run-time 16533access beyond the end-of-region. Previously, only the field size 16534itself was checked. 16535 16536The Core subsystem and iASL compiler now share a common parse 16537object in preparation for compile-time evaluation of the type 165383/4/5 ASL operators. 16539 16540 16541---------------------------------------- 16542Summary of changes for this release: 03_29_02 16543 165441) ACPI CA Core Subsystem Version 20020329: 16545 16546Implemented support for late evaluation of TermArg operands to 16547Buffer and Package objects. This allows complex expressions to be 16548used in the declarations of these object types. 16549 16550Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 165511.0, if the field was larger than 32 bits, it was returned as a 16552buffer - otherwise it was returned as an integer. In ACPI 2.0, 16553the field is returned as a buffer only if the field is larger than 1655464 bits. The TableRevision is now considered when making this 16555conversion to avoid incompatibility with existing ASL code. 16556 16557Implemented logical addressing for AcpiOsGetRootPointer. This 16558allows an RSDP with either a logical or physical address. With 16559this support, the host OS can now override all ACPI tables with 16560one logical RSDP. Includes implementation of "typed" pointer 16561support to allow a common data type for both physical and logical 16562pointers internally. This required a change to the 16563AcpiOsGetRootPointer interface. 16564 16565Implemented the use of ACPI 2.0 Generic Address Structures for all 16566GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 16567mapped I/O for these ACPI features. 16568 16569Initialization now ignores not only non-required tables (All 16570tables other than the FADT, FACS, DSDT, and SSDTs), but also does 16571not validate the table headers of unrecognized tables. 16572 16573Fixed a problem where a notify handler could only be 16574installed/removed on an object of type Device. All "notify" 16575 16576objects are now supported -- Devices, Processor, Power, and 16577Thermal. 16578 16579Removed most verbosity from the ACPI_DB_INFO debug level. Only 16580critical information is returned when this debug level is enabled. 16581 16582Code and Data Size: Current core subsystem library sizes are shown 16583below. These are the code and data sizes for the acpica.lib 16584produced by the Microsoft Visual C++ 6.0 compiler, and these 16585values do not include any ACPI driver or OSPM code. The debug 16586version of the code includes the debug output trace mechanism and 16587has a larger code and data size. Note that these values will vary 16588depending on the efficiency of the compiler and the compiler 16589options used during generation. 16590 16591 Previous Release 16592 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 16593 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 16594 Current Release: 16595 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 16596 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 16597 16598 165992) Linux: 16600 16601The processor driver (acpi_processor.c) now fully supports ACPI 166022.0-based processor performance control (e.g. Intel(R) 16603SpeedStep(TM) technology) Note that older laptops that only have 16604the Intel "applet" interface are not supported through this. The 16605'limit' and 'performance' interface (/proc) are fully functional. 16606[Note that basic policy for controlling performance state 16607transitions will be included in the next version of ospmd.] The 16608idle handler was modified to more aggressively use C2, and PIIX4 16609errata handling underwent a complete overhaul (big thanks to 16610Dominik Brodowski). 16611 16612Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 16613based devices in the ACPI namespace are now dynamically bound 16614(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 16615This allows, among other things, ACPI to resolve bus numbers for 16616subordinate PCI bridges. 16617 16618Enhanced PCI IRQ routing to get the proper bus number for _PRT 16619entries defined underneath PCI bridges. 16620 16621Added IBM 600E to bad bios list due to invalid _ADR value for 16622PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 16623 16624In the process of adding full MADT support (e.g. IOAPIC) for IA32 16625(acpi.c, mpparse.c) -- stay tuned. 16626 16627Added back visual differentiation between fixed-feature and 16628control-method buttons in dmesg. Buttons are also subtyped (e.g. 16629button/power/PWRF) to simplify button identification. 16630 16631We no longer use -Wno-unused when compiling debug. Please ignore 16632any "_THIS_MODULE defined but not used" messages. 16633 16634Can now shut down the system using "magic sysrq" key. 16635 16636 166373) iASL Compiler version 2041: 16638 16639Fixed a problem where conversion errors for hex/octal/decimal 16640constants were not reported. 16641 16642Implemented a fix for the General Register template Address field. 16643This field was 8 bits when it should be 64. 16644 16645Fixed a problem where errors/warnings were no longer being emitted 16646within the listing output file. 16647 16648Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 16649exactly 4 characters, alphanumeric only. 16650 16651 16652 16653 16654---------------------------------------- 16655Summary of changes for this release: 03_08_02 16656 16657 166581) ACPI CA Core Subsystem Version 20020308: 16659 16660Fixed a problem with AML Fields where the use of the "AccessAny" 16661keyword could cause an interpreter error due to attempting to read 16662or write beyond the end of the parent Operation Region. 16663 16664Fixed a problem in the SystemMemory Operation Region handler where 16665an attempt was made to map memory beyond the end of the region. 16666This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 16667errors on some Linux systems. 16668 16669Fixed a problem where the interpreter/namespace "search to root" 16670algorithm was not functioning for some object types. Relaxed the 16671internal restriction on the search to allow upsearches for all 16672external object types as well as most internal types. 16673 16674 166752) Linux: 16676 16677We now use safe_halt() macro versus individual calls to sti | hlt. 16678 16679Writing to the processor limit interface should now work. "echo 1" 16680will increase the limit, 2 will decrease, and 0 will reset to the 16681 16682default. 16683 16684 166853) ASL compiler: 16686 16687Fixed segfault on Linux version. 16688 16689 16690---------------------------------------- 16691Summary of changes for this release: 02_25_02 16692 166931) ACPI CA Core Subsystem: 16694 16695 16696Fixed a problem where the GPE bit masks were not initialized 16697properly, causing erratic GPE behavior. 16698 16699Implemented limited support for multiple calling conventions. The 16700code can be generated with either the VPL (variable parameter 16701list, or "C") convention, or the FPL (fixed parameter list, or 16702"Pascal") convention. The core subsystem is about 3.4% smaller 16703when generated with FPL. 16704 16705 167062) Linux 16707 16708Re-add some /proc/acpi/event functionality that was lost during 16709the rewrite 16710 16711Resolved issue with /proc events for fixed-feature buttons showing 16712up as the system device. 16713 16714Fixed checks on C2/C3 latencies to be inclusive of maximum values. 16715 16716Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 16717 16718Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 16719 16720Fixed limit interface & usage to fix bugs with passive cooling 16721hysterisis. 16722 16723Restructured PRT support. 16724 16725 16726---------------------------------------- 16727Summary of changes for this label: 02_14_02 16728 16729 167301) ACPI CA Core Subsystem: 16731 16732Implemented support in AcpiLoadTable to allow loading of FACS and 16733FADT tables. 16734 16735Support for the now-obsolete interim 0.71 64-bit ACPI tables has 16736been removed. All 64-bit platforms should be migrated to the ACPI 167372.0 tables. The actbl71.h header has been removed from the source 16738tree. 16739 16740All C macros defined within the subsystem have been prefixed with 16741"ACPI_" to avoid collision with other system include files. 16742 16743Removed the return value for the two AcpiOsPrint interfaces, since 16744it is never used and causes lint warnings for ignoring the return 16745value. 16746 16747Added error checking to all internal mutex acquire and release 16748calls. Although a failure from one of these interfaces is 16749probably a fatal system error, these checks will cause the 16750immediate abort of the currently executing method or interface. 16751 16752Fixed a problem where the AcpiSetCurrentResources interface could 16753fault. This was a side effect of the deployment of the new memory 16754allocation model. 16755 16756Fixed a couple of problems with the Global Lock support introduced 16757in the last major build. The "common" (1.0/2.0) internal FACS was 16758being overwritten with the FACS signature and clobbering the 16759Global Lock pointer. Also, the actual firmware FACS was being 16760unmapped after construction of the "common" FACS, preventing 16761access to the actual Global Lock field within it. The "common" 16762internal FACS is no longer installed as an actual ACPI table; it 16763is used simply as a global. 16764 16765Code and Data Size: Current core subsystem library sizes are shown 16766below. These are the code and data sizes for the acpica.lib 16767produced by the Microsoft Visual C++ 6.0 compiler, and these 16768values do not include any ACPI driver or OSPM code. The debug 16769version of the code includes the debug output trace mechanism and 16770has a larger code and data size. Note that these values will vary 16771depending on the efficiency of the compiler and the compiler 16772options used during generation. 16773 16774 Previous Release (02_07_01) 16775 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 16776 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 16777 Current Release: 16778 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 16779 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 16780 16781 167822) Linux 16783 16784Updated Linux-specific code for core macro and OSL interface 16785changes described above. 16786 16787Improved /proc/acpi/event. It now can be opened only once and has 16788proper poll functionality. 16789 16790Fixed and restructured power management (acpi_bus). 16791 16792Only create /proc "view by type" when devices of that class exist. 16793 16794Fixed "charging/discharging" bug (and others) in acpi_battery. 16795 16796Improved thermal zone code. 16797 16798 167993) ASL Compiler, version X2039: 16800 16801 16802Implemented the new compiler restriction on ASL String hex/octal 16803escapes to non-null, ASCII values. An error results if an invalid 16804value is used. (This will require an ACPI 2.0 specification 16805change.) 16806 16807AML object labels that are output to the optional C and ASM source 16808are now prefixed with both the ACPI table signature and table ID 16809to help guarantee uniqueness within a large BIOS project. 16810 16811 16812---------------------------------------- 16813Summary of changes for this label: 02_01_02 16814 168151) ACPI CA Core Subsystem: 16816 16817ACPI 2.0 support is complete in the entire Core Subsystem and the 16818ASL compiler. All new ACPI 2.0 operators are implemented and all 16819other changes for ACPI 2.0 support are complete. With 16820simultaneous code and data optimizations throughout the subsystem, 16821ACPI 2.0 support has been implemented with almost no additional 16822cost in terms of code and data size. 16823 16824Implemented a new mechanism for allocation of return buffers. If 16825the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 16826be allocated on behalf of the caller. Consolidated all return 16827buffer validation and allocation to a common procedure. Return 16828buffers will be allocated via the primary OSL allocation interface 16829since it appears that a separate pool is not needed by most users. 16830If a separate pool is required for these buffers, the caller can 16831still use the original mechanism and pre-allocate the buffer(s). 16832 16833Implemented support for string operands within the DerefOf 16834operator. 16835 16836Restructured the Hardware and Event managers to be table driven, 16837simplifying the source code and reducing the amount of generated 16838code. 16839 16840Split the common read/write low-level ACPI register bitfield 16841procedure into a separate read and write, simplifying the code 16842considerably. 16843 16844Obsoleted the AcpiOsCallocate OSL interface. This interface was 16845used only a handful of times and didn't have enough critical mass 16846for a separate interface. Replaced with a common calloc procedure 16847in the core. 16848 16849Fixed a reported problem with the GPE number mapping mechanism 16850that allows GPE1 numbers to be non-contiguous with GPE0. 16851Reorganized the GPE information and shrunk a large array that was 16852originally large enough to hold info for all possible GPEs (256) 16853to simply large enough to hold all GPEs up to the largest GPE 16854number on the machine. 16855 16856Fixed a reported problem with resource structure alignment on 64- 16857bit platforms. 16858 16859Changed the AcpiEnableEvent and AcpiDisableEvent external 16860interfaces to not require any flags for the common case of 16861enabling/disabling a GPE. 16862 16863Implemented support to allow a "Notify" on a Processor object. 16864 16865Most TBDs in comments within the source code have been resolved 16866and eliminated. 16867 16868 16869Fixed a problem in the interpreter where a standalone parent 16870prefix (^) was not handled correctly in the interpreter and 16871debugger. 16872 16873Removed obsolete and unnecessary GPE save/restore code. 16874 16875Implemented Field support in the ASL Load operator. This allows a 16876table to be loaded from a named field, in addition to loading a 16877table directly from an Operation Region. 16878 16879Implemented timeout and handle support in the external Global Lock 16880interfaces. 16881 16882Fixed a problem in the AcpiDump utility where pathnames were no 16883longer being generated correctly during the dump of named objects. 16884 16885Modified the AML debugger to give a full display of if/while 16886predicates instead of just one AML opcode at a time. (The 16887predicate can have several nested ASL statements.) The old method 16888was confusing during single stepping. 16889 16890Code and Data Size: Current core subsystem library sizes are shown 16891below. These are the code and data sizes for the acpica.lib 16892produced by the Microsoft Visual C++ 6.0 compiler, and these 16893values do not include any ACPI driver or OSPM code. The debug 16894version of the code includes the debug output trace mechanism and 16895has a larger code and data size. Note that these values will vary 16896depending on the efficiency of the compiler and the compiler 16897options used during generation. 16898 16899 Previous Release (12_18_01) 16900 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 16901 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 16902 Current Release: 16903 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 16904 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 16905 169062) Linux 16907 16908 Implemented fix for PIIX reverse throttling errata (Processor 16909driver) 16910 16911Added new Limit interface (Processor and Thermal drivers) 16912 16913New thermal policy (Thermal driver) 16914 16915Many updates to /proc 16916 16917Battery "low" event support (Battery driver) 16918 16919Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 16920 16921IA32 - IA64 initialization unification, no longer experimental 16922 16923Menuconfig options redesigned 16924 169253) ASL Compiler, version X2037: 16926 16927Implemented several new output features to simplify integration of 16928AML code into firmware: 1) Output the AML in C source code with 16929labels for each named ASL object. The original ASL source code 16930is interleaved as C comments. 2) Output the AML in ASM source code 16931with labels and interleaved ASL source. 3) Output the AML in 16932raw hex table form, in either C or ASM. 16933 16934Implemented support for optional string parameters to the 16935LoadTable operator. 16936 16937Completed support for embedded escape sequences within string 16938literals. The compiler now supports all single character escapes 16939as well as the Octal and Hex escapes. Note: the insertion of a 16940null byte into a string literal (via the hex/octal escape) causes 16941the string to be immediately terminated. A warning is issued. 16942 16943Fixed a problem where incorrect AML was generated for the case 16944where an ASL namepath consists of a single parent prefix ( 16945 16946) with no trailing name segments. 16947 16948The compiler has been successfully generated with a 64-bit C 16949compiler. 16950 16951 16952 16953 16954---------------------------------------- 16955Summary of changes for this label: 12_18_01 16956 169571) Linux 16958 16959Enhanced blacklist with reason and severity fields. Any table's 16960signature may now be used to identify a blacklisted system. 16961 16962Call _PIC control method to inform the firmware which interrupt 16963model the OS is using. Turn on any disabled link devices. 16964 16965Cleaned up busmgr /proc error handling (Andreas Dilger) 16966 16967 2) ACPI CA Core Subsystem: 16968 16969Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 16970while loop) 16971 16972Completed implementation of the ACPI 2.0 "Continue", 16973"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 16974operators. All new ACPI 2.0 operators are now implemented in both 16975the ASL compiler and the AML interpreter. The only remaining ACPI 169762.0 task is support for the String data type in the DerefOf 16977operator. Fixed a problem with AcquireMutex where the status code 16978was lost if the caller had to actually wait for the mutex. 16979 16980Increased the maximum ASL Field size from 64K bits to 4G bits. 16981 16982Completed implementation of the external Global Lock interfaces -- 16983AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 16984Handler parameters were added. 16985 16986Completed another pass at removing warnings and issues when 16987compiling with 64-bit compilers. The code now compiles cleanly 16988with the Intel 64-bit C/C++ compiler. Most notably, the pointer 16989add and subtract (diff) macros have changed considerably. 16990 16991 16992Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1699364-bit platforms, 32-bits on all others. This type is used 16994wherever memory allocation and/or the C sizeof() operator is used, 16995and affects the OSL memory allocation interfaces AcpiOsAllocate 16996and AcpiOsCallocate. 16997 16998Implemented sticky user breakpoints in the AML debugger. 16999 17000Code and Data Size: Current core subsystem library sizes are shown 17001below. These are the code and data sizes for the acpica.lib 17002produced by the Microsoft Visual C++ 6.0 compiler, and these 17003values do not include any ACPI driver or OSPM code. The debug 17004version of the code includes the debug output trace mechanism and 17005has a larger code and data size. Note that these values will vary 17006depending on the efficiency of the compiler and the compiler 17007options used during generation. 17008 17009 Previous Release (12_05_01) 17010 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 17011 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 17012 Current Release: 17013 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 17014 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 17015 17016 3) ASL Compiler, version X2034: 17017 17018Now checks for (and generates an error if detected) the use of a 17019Break or Continue statement without an enclosing While statement. 17020 17021 17022Successfully generated the compiler with the Intel 64-bit C 17023compiler. 17024 17025 ---------------------------------------- 17026Summary of changes for this label: 12_05_01 17027 17028 1) ACPI CA Core Subsystem: 17029 17030The ACPI 2.0 CopyObject operator is fully implemented. This 17031operator creates a new copy of an object (and is also used to 17032bypass the "implicit conversion" mechanism of the Store operator.) 17033 17034The ACPI 2.0 semantics for the SizeOf operator are fully 17035implemented. The change is that performing a SizeOf on a 17036reference object causes an automatic dereference of the object to 17037tha actual value before the size is evaluated. This behavior was 17038undefined in ACPI 1.0. 17039 17040The ACPI 2.0 semantics for the Extended IRQ resource descriptor 17041have been implemented. The interrupt polarity and mode are now 17042independently set. 17043 17044Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 17045appearing in Package objects were not properly converted to 17046integers when the internal Package was converted to an external 17047object (via the AcpiEvaluateObject interface.) 17048 17049Fixed a problem with the namespace object deletion mechanism for 17050objects created by control methods. There were two parts to this 17051problem: 1) Objects created during the initialization phase method 17052parse were not being deleted, and 2) The object owner ID mechanism 17053to track objects was broken. 17054 17055Fixed a problem where the use of the ASL Scope operator within a 17056control method would result in an invalid opcode exception. 17057 17058Fixed a problem introduced in the previous label where the buffer 17059length required for the _PRT structure was not being returned 17060correctly. 17061 17062Code and Data Size: Current core subsystem library sizes are shown 17063below. These are the code and data sizes for the acpica.lib 17064produced by the Microsoft Visual C++ 6.0 compiler, and these 17065values do not include any ACPI driver or OSPM code. The debug 17066version of the code includes the debug output trace mechanism and 17067has a larger code and data size. Note that these values will vary 17068depending on the efficiency of the compiler and the compiler 17069options used during generation. 17070 17071 Previous Release (11_20_01) 17072 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 17073 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 17074 17075 Current Release: 17076 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 17077 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 17078 17079 2) Linux: 17080 17081Updated all files to apply cleanly against 2.4.16. 17082 17083Added basic PCI Interrupt Routing Table (PRT) support for IA32 17084(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 17085version supports both static and dynamic PRT entries, but dynamic 17086entries are treated as if they were static (not yet 17087reconfigurable). Architecture- specific code to use this data is 17088absent on IA32 but should be available shortly. 17089 17090Changed the initialization sequence to start the ACPI interpreter 17091(acpi_init) prior to initialization of the PCI driver (pci_init) 17092in init/main.c. This ordering is required to support PRT and 17093facilitate other (future) enhancement. A side effect is that the 17094ACPI bus driver and certain device drivers can no longer be loaded 17095as modules. 17096 17097Modified the 'make menuconfig' options to allow PCI Interrupt 17098Routing support to be included without the ACPI Bus and other 17099device drivers. 17100 17101 3) ASL Compiler, version X2033: 17102 17103Fixed some issues with the use of the new CopyObject and 17104DataTableRegion operators. Both are fully functional. 17105 17106 ---------------------------------------- 17107Summary of changes for this label: 11_20_01 17108 17109 20 November 2001. Summary of changes for this release. 17110 17111 1) ACPI CA Core Subsystem: 17112 17113Updated Index support to match ACPI 2.0 semantics. Storing a 17114Integer, String, or Buffer to an Index of a Buffer will store only 17115the least-significant byte of the source to the Indexed buffer 17116byte. Multiple writes are not performed. 17117 17118Fixed a problem where the access type used in an AccessAs ASL 17119operator was not recorded correctly into the field object. 17120 17121Fixed a problem where ASL Event objects were created in a 17122signalled state. Events are now created in an unsignalled state. 17123 17124The internal object cache is now purged after table loading and 17125initialization to reduce the use of dynamic kernel memory -- on 17126the assumption that object use is greatest during the parse phase 17127of the entire table (versus the run-time use of individual control 17128methods.) 17129 17130ACPI 2.0 variable-length packages are now fully operational. 17131 17132Code and Data Size: Code and Data optimizations have permitted new 17133feature development with an actual reduction in the library size. 17134Current core subsystem library sizes are shown below. These are 17135the code and data sizes for the acpica.lib produced by the 17136Microsoft Visual C++ 6.0 compiler, and these values do not include 17137any ACPI driver or OSPM code. The debug version of the code 17138includes the debug output trace mechanism and has a larger code 17139and data size. Note that these values will vary depending on the 17140efficiency of the compiler and the compiler options used during 17141generation. 17142 17143 Previous Release (11_09_01): 17144 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 17145 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 17146 17147 Current Release: 17148 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 17149 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 17150 17151 2) Linux: 17152 17153Enhanced the ACPI boot-time initialization code to allow the use 17154of Local APIC tables for processor enumeration on IA-32, and to 17155pave the way for a fully MPS-free boot (on SMP systems) in the 17156near future. This functionality replaces 17157arch/i386/kernel/acpitables.c, which was introduced in an earlier 171582.4.15-preX release. To enable this feature you must add 17159"acpi_boot=on" to the kernel command line -- see the help entry 17160for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 17161the works... 17162 17163Restructured the configuration options to allow boot-time table 17164parsing support without inclusion of the ACPI Interpreter (and 17165other) code. 17166 17167NOTE: This release does not include fixes for the reported events, 17168power-down, and thermal passive cooling issues (coming soon). 17169 17170 3) ASL Compiler: 17171 17172Added additional typechecking for Fields within restricted access 17173Operation Regions. All fields within EC and CMOS regions must be 17174declared with ByteAcc. All fields within SMBus regions must be 17175declared with the BufferAcc access type. 17176 17177Fixed a problem where the listing file output of control methods 17178no longer interleaved the actual AML code with the ASL source 17179code. 17180 17181 17182 17183 17184---------------------------------------- 17185Summary of changes for this label: 11_09_01 17186 171871) ACPI CA Core Subsystem: 17188 17189Implemented ACPI 2.0-defined support for writes to fields with a 17190Buffer, String, or Integer source operand that is smaller than the 17191target field. In these cases, the source operand is zero-extended 17192to fill the target field. 17193 17194Fixed a problem where a Field starting bit offset (within the 17195parent operation region) was calculated incorrectly if the 17196 17197alignment of the field differed from the access width. This 17198affected CreateWordField, CreateDwordField, CreateQwordField, and 17199possibly other fields that use the "AccessAny" keyword. 17200 17201Fixed a problem introduced in the 11_02_01 release where indirect 17202stores through method arguments did not operate correctly. 17203 172042) Linux: 17205 17206Implemented boot-time ACPI table parsing support 17207(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 17208facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 17209legacy BIOS interfaces (e.g. MPS) for the configuration of system 17210processors, memory, and interrupts during setup_arch(). Note that 17211this patch does not include the required architecture-specific 17212changes required to apply this information -- subsequent patches 17213will be posted for both IA32 and IA64 to achieve this. 17214 17215Added low-level sleep support for IA32 platforms, courtesy of Pat 17216Mochel. This allows IA32 systems to transition to/from various 17217sleeping states (e.g. S1, S3), although the lack of a centralized 17218driver model and power-manageable drivers will prevent its 17219(successful) use on most systems. 17220 17221Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 17222submenu, unified IA32 and IA64 options, added new "Boot using ACPI 17223tables" option, etc. 17224 17225Increased the default timeout for the EC driver from 1ms to 10ms 17226(1000 cycles of 10us) to try to address AE_TIME errors during EC 17227transactions. 17228 17229 ---------------------------------------- 17230Summary of changes for this label: 11_02_01 17231 172321) ACPI CA Core Subsystem: 17233 17234ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 17235(QWordAcc keyword). All ACPI 2.0 64-bit support is now 17236implemented. 17237 17238OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 17239changes to support ACPI 2.0 Qword field access. Read/Write 17240PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 17241accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 17242the value parameter for the address space handler interface is now 17243an ACPI_INTEGER. OSL implementations of these interfaces must now 17244handle the case where the Width parameter is 64. 17245 17246Index Fields: Fixed a problem where unaligned bit assembly and 17247disassembly for IndexFields was not supported correctly. 17248 17249Index and Bank Fields: Nested Index and Bank Fields are now 17250supported. During field access, a check is performed to ensure 17251that the value written to an Index or Bank register is not out of 17252the range of the register. The Index (or Bank) register is 17253written before each access to the field data. Future support will 17254include allowing individual IndexFields to be wider than the 17255DataRegister width. 17256 17257Fields: Fixed a problem where the AML interpreter was incorrectly 17258attempting to write beyond the end of a Field/OpRegion. This was 17259a boundary case that occurred when a DWORD field was written to a 17260BYTE access OpRegion, forcing multiple writes and causing the 17261interpreter to write one datum too many. 17262 17263Fields: Fixed a problem with Field/OpRegion access where the 17264starting bit address of a field was incorrectly calculated if the 17265current access type was wider than a byte (WordAcc, DwordAcc, or 17266QwordAcc). 17267 17268Fields: Fixed a problem where forward references to individual 17269FieldUnits (individual Field names within a Field definition) were 17270not resolved during the AML table load. 17271 17272Fields: Fixed a problem where forward references from a Field 17273definition to the parent Operation Region definition were not 17274resolved during the AML table load. 17275 17276Fields: Duplicate FieldUnit names within a scope are now detected 17277during AML table load. 17278 17279Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 17280returned an incorrect name for the root node. 17281 17282Code and Data Size: Code and Data optimizations have permitted new 17283feature development with an actual reduction in the library size. 17284Current core subsystem library sizes are shown below. These are 17285the code and data sizes for the acpica.lib produced by the 17286Microsoft Visual C++ 6.0 compiler, and these values do not include 17287any ACPI driver or OSPM code. The debug version of the code 17288includes the debug output trace mechanism and has a larger code 17289and data size. Note that these values will vary depending on the 17290efficiency of the compiler and the compiler options used during 17291generation. 17292 17293 Previous Release (10_18_01): 17294 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 17295 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 17296 17297 Current Release: 17298 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 17299 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 17300 17301 2) Linux: 17302 17303Improved /proc processor output (Pavel Machek) Re-added 17304MODULE_LICENSE("GPL") to all modules. 17305 17306 3) ASL Compiler version X2030: 17307 17308Duplicate FieldUnit names within a scope are now detected and 17309flagged as errors. 17310 17311 4) Documentation: 17312 17313Programmer Reference updated to reflect OSL and address space 17314handler interface changes described above. 17315 17316---------------------------------------- 17317Summary of changes for this label: 10_18_01 17318 17319ACPI CA Core Subsystem: 17320 17321Fixed a problem with the internal object reference count mechanism 17322that occasionally caused premature object deletion. This resolves 17323all of the outstanding problem reports where an object is deleted 17324in the middle of an interpreter evaluation. Although this problem 17325only showed up in rather obscure cases, the solution to the 17326problem involved an adjustment of all reference counts involving 17327objects attached to namespace nodes. 17328 17329Fixed a problem with Field support in the interpreter where 17330writing to an aligned field whose length is an exact multiple (2 17331or greater) of the field access granularity would cause an attempt 17332to write beyond the end of the field. 17333 17334The top level AML opcode execution functions within the 17335interpreter have been renamed with a more meaningful and 17336consistent naming convention. The modules exmonad.c and 17337exdyadic.c were eliminated. New modules are exoparg1.c, 17338exoparg2.c, exoparg3.c, and exoparg6.c. 17339 17340Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 17341 17342Fixed a problem where the AML debugger was causing some internal 17343objects to not be deleted during subsystem termination. 17344 17345Fixed a problem with the external AcpiEvaluateObject interface 17346where the subsystem would fault if the named object to be 17347evaluated referred to a constant such as Zero, Ones, etc. 17348 17349Fixed a problem with IndexFields and BankFields where the 17350subsystem would fault if the index, data, or bank registers were 17351not defined in the same scope as the field itself. 17352 17353Added printf format string checking for compilers that support 17354this feature. Corrected more than 50 instances of issues with 17355format specifiers within invocations of ACPI_DEBUG_PRINT 17356throughout the core subsystem code. 17357 17358The ASL "Revision" operator now returns the ACPI support level 17359implemented in the core - the value "2" since the ACPI 2.0 support 17360is more than 50% implemented. 17361 17362Enhanced the output of the AML debugger "dump namespace" command 17363to output in a more human-readable form. 17364 17365Current core subsystem library code sizes are shown below. These 17366 17367are the code and data sizes for the acpica.lib produced by the 17368Microsoft Visual C++ 6.0 compiler, and these values do not include 17369any ACPI driver or OSPM code. The debug version of the code 17370includes the full debug trace mechanism -- leading to a much 17371 17372larger code and data size. Note that these values will vary 17373depending on the efficiency of the compiler and the compiler 17374options used during generation. 17375 17376 Previous Label (09_20_01): 17377 Non-Debug Version: 65K Code, 5K Data, 70K Total 17378 Debug Version: 138K Code, 58K Data, 196K Total 17379 17380 This Label: 17381 17382 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 17383 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 17384 17385Linux: 17386 17387Implemented a "Bad BIOS Blacklist" to track machines that have 17388known ASL/AML problems. 17389 17390Enhanced the /proc interface for the thermal zone driver and added 17391support for _HOT (the critical suspend trip point). The 'info' 17392file now includes threshold/policy information, and allows setting 17393of _SCP (cooling preference) and _TZP (polling frequency) values 17394to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 17395frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 17396preference to the passive/quiet mode (if supported by the ASL). 17397 17398Implemented a workaround for a gcc bug that resuted in an OOPs 17399when loading the control method battery driver. 17400 17401 ---------------------------------------- 17402Summary of changes for this label: 09_20_01 17403 17404 ACPI CA Core Subsystem: 17405 17406The AcpiEnableEvent and AcpiDisableEvent interfaces have been 17407modified to allow individual GPE levels to be flagged as wake- 17408enabled (i.e., these GPEs are to remain enabled when the platform 17409sleeps.) 17410 17411The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 17412support wake-enabled GPEs. This means that upon entering the 17413sleep state, all GPEs that are not wake-enabled are disabled. 17414When leaving the sleep state, these GPEs are re-enabled. 17415 17416A local double-precision divide/modulo module has been added to 17417enhance portability to OS kernels where a 64-bit math library is 17418not available. The new module is "utmath.c". 17419 17420Several optimizations have been made to reduce the use of CPU 17421stack. Originally over 2K, the maximum stack usage is now below 174222K at 1860 bytes (1.82k) 17423 17424Fixed a problem with the AcpiGetFirmwareTable interface where the 17425root table pointer was not mapped into a logical address properly. 17426 17427Fixed a problem where a NULL pointer was being dereferenced in the 17428interpreter code for the ASL Notify operator. 17429 17430Fixed a problem where the use of the ASL Revision operator 17431returned an error. This operator now returns the current version 17432of the ACPI CA core subsystem. 17433 17434Fixed a problem where objects passed as control method parameters 17435to AcpiEvaluateObject were always deleted at method termination. 17436However, these objects may end up being stored into the namespace 17437by the called method. The object reference count mechanism was 17438applied to these objects instead of a force delete. 17439 17440Fixed a problem where static strings or buffers (contained in the 17441AML code) that are declared as package elements within the ASL 17442code could cause a fault because the interpreter would attempt to 17443delete them. These objects are now marked with the "static 17444object" flag to prevent any attempt to delete them. 17445 17446Implemented an interpreter optimization to use operands directly 17447from the state object instead of extracting the operands to local 17448variables. This reduces stack use and code size, and improves 17449performance. 17450 17451The module exxface.c was eliminated as it was an unnecessary extra 17452layer of code. 17453 17454Current core subsystem library code sizes are shown below. These 17455are the code and data sizes for the acpica.lib produced by the 17456Microsoft Visual C++ 6.0 compiler, and these values do not include 17457any ACPI driver or OSPM code. The debug version of the code 17458includes the full debug trace mechanism -- leading to a much 17459larger code and data size. Note that these values will vary 17460depending on the efficiency of the compiler and the compiler 17461options used during generation. 17462 17463 Non-Debug Version: 65K Code, 5K Data, 70K Total 17464(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 17465Total (Previously 195K) 17466 17467Linux: 17468 17469Support for ACPI 2.0 64-bit integers has been added. All ACPI 17470Integer objects are now 64 bits wide 17471 17472All Acpi data types and structures are now in lower case. Only 17473Acpi macros are upper case for differentiation. 17474 17475 Documentation: 17476 17477Changes to the external interfaces as described above. 17478 17479 ---------------------------------------- 17480Summary of changes for this label: 08_31_01 17481 17482 ACPI CA Core Subsystem: 17483 17484A bug with interpreter implementation of the ASL Divide operator 17485was found and fixed. The implicit function return value (not the 17486explicit store operands) was returning the remainder instead of 17487the quotient. This was a longstanding bug and it fixes several 17488known outstanding issues on various platforms. 17489 17490The ACPI_DEBUG_PRINT and function trace entry/exit macros have 17491been further optimized for size. There are 700 invocations of the 17492DEBUG_PRINT macro alone, so each optimization reduces the size of 17493the debug version of the subsystem significantly. 17494 17495A stack trace mechanism has been implemented. The maximum stack 17496usage is about 2K on 32-bit platforms. The debugger command "stat 17497stack" will display the current maximum stack usage. 17498 17499All public symbols and global variables within the subsystem are 17500now prefixed with the string "Acpi". This keeps all of the 17501symbols grouped together in a kernel map, and avoids conflicts 17502with other kernel subsystems. 17503 17504Most of the internal fixed lookup tables have been moved into the 17505code segment via the const operator. 17506 17507Several enhancements have been made to the interpreter to both 17508reduce the code size and improve performance. 17509 17510Current core subsystem library code sizes are shown below. These 17511are the code and data sizes for the acpica.lib produced by the 17512Microsoft Visual C++ 6.0 compiler, and these values do not include 17513any ACPI driver or OSPM code. The debug version of the code 17514includes the full debug trace mechanism which contains over 700 17515invocations of the DEBUG_PRINT macro, 500 function entry macro 17516invocations, and over 900 function exit macro invocations -- 17517leading to a much larger code and data size. Note that these 17518values will vary depending on the efficiency of the compiler and 17519the compiler options used during generation. 17520 17521 Non-Debug Version: 64K Code, 5K Data, 69K Total 17522Debug Version: 137K Code, 58K Data, 195K Total 17523 17524 Linux: 17525 17526Implemented wbinvd() macro, pending a kernel-wide definition. 17527 17528Fixed /proc/acpi/event to handle poll() and short reads. 17529 17530 ASL Compiler, version X2026: 17531 17532Fixed a problem introduced in the previous label where the AML 17533 17534code emitted for package objects produced packages with zero 17535length. 17536 17537 ---------------------------------------- 17538Summary of changes for this label: 08_16_01 17539 17540ACPI CA Core Subsystem: 17541 17542The following ACPI 2.0 ASL operators have been implemented in the 17543AML interpreter (These are already supported by the Intel ASL 17544compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 17545ToBuffer. Support for 64-bit AML constants is implemented in the 17546AML parser, debugger, and disassembler. 17547 17548The internal memory tracking mechanism (leak detection code) has 17549been upgraded to reduce the memory overhead (a separate tracking 17550block is no longer allocated for each memory allocation), and now 17551supports all of the internal object caches. 17552 17553The data structures and code for the internal object caches have 17554been coelesced and optimized so that there is a single cache and 17555memory list data structure and a single group of functions that 17556implement generic cache management. This has reduced the code 17557size in both the debug and release versions of the subsystem. 17558 17559The DEBUG_PRINT macro(s) have been optimized for size and replaced 17560by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 17561different, because it generates a single call to an internal 17562function. This results in a savings of about 90 bytes per 17563invocation, resulting in an overall code and data savings of about 1756416% in the debug version of the subsystem. 17565 17566 Linux: 17567 17568Fixed C3 disk corruption problems and re-enabled C3 on supporting 17569machines. 17570 17571Integrated low-level sleep code by Patrick Mochel. 17572 17573Further tweaked source code Linuxization. 17574 17575Other minor fixes. 17576 17577 ASL Compiler: 17578 17579Support for ACPI 2.0 variable length packages is fixed/completed. 17580 17581Fixed a problem where the optional length parameter for the ACPI 175822.0 ToString operator. 17583 17584Fixed multiple extraneous error messages when a syntax error is 17585detected within the declaration line of a control method. 17586 17587 ---------------------------------------- 17588Summary of changes for this label: 07_17_01 17589 17590ACPI CA Core Subsystem: 17591 17592Added a new interface named AcpiGetFirmwareTable to obtain any 17593ACPI table via the ACPI signature. The interface can be called at 17594any time during kernel initialization, even before the kernel 17595virtual memory manager is initialized and paging is enabled. This 17596allows kernel subsystems to obtain ACPI tables very early, even 17597before the ACPI CA subsystem is initialized. 17598 17599Fixed a problem where Fields defined with the AnyAcc attribute 17600could be resolved to the incorrect address under the following 17601conditions: 1) the field width is larger than 8 bits and 2) the 17602parent operation region is not defined on a DWORD boundary. 17603 17604Fixed a problem where the interpreter is not being locked during 17605namespace initialization (during execution of the _INI control 17606methods), causing an error when an attempt is made to release it 17607later. 17608 17609ACPI 2.0 support in the AML Interpreter has begun and will be 17610ongoing throughout the rest of this year. In this label, The Mod 17611operator is implemented. 17612 17613Added a new data type to contain full PCI addresses named 17614ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 17615and Function values. 17616 17617 Linux: 17618 17619Enhanced the Linux version of the source code to change most 17620capitalized ACPI type names to lowercase. For example, all 17621instances of ACPI_STATUS are changed to acpi_status. This will 17622result in a large diff, but the change is strictly cosmetic and 17623aligns the CA code closer to the Linux coding standard. 17624 17625OSL Interfaces: 17626 17627The interfaces to the PCI configuration space have been changed to 17628add the PCI Segment number and to split the single 32-bit combined 17629DeviceFunction field into two 16-bit fields. This was 17630accomplished by moving the four values that define an address in 17631PCI configuration space (segment, bus, device, and function) to 17632the new ACPI_PCI_ID structure. 17633 17634The changes to the PCI configuration space interfaces led to a 17635reexamination of the complete set of address space access 17636interfaces for PCI, I/O, and Memory. The previously existing 18 17637interfaces have proven difficult to maintain (any small change 17638must be propagated across at least 6 interfaces) and do not easily 17639allow for future expansion to 64 bits if necessary. Also, on some 17640systems, it would not be appropriate to demultiplex the access 17641width (8, 16, 32,or 64) before calling the OSL if the 17642corresponding native OS interfaces contain a similar access width 17643parameter. For these reasons, the 18 address space interfaces 17644have been replaced by these 6 new ones: 17645 17646AcpiOsReadPciConfiguration 17647AcpiOsWritePciConfiguration 17648AcpiOsReadMemory 17649AcpiOsWriteMemory 17650AcpiOsReadPort 17651AcpiOsWritePort 17652 17653Added a new interface named AcpiOsGetRootPointer to allow the OSL 17654to perform the platform and/or OS-specific actions necessary to 17655obtain the ACPI RSDP table pointer. On IA-32 platforms, this 17656interface will simply call down to the CA core to perform the low- 17657memory search for the table. On IA-64, the RSDP is obtained from 17658EFI. Migrating this interface to the OSL allows the CA core to 17659 17660remain OS and platform independent. 17661 17662Added a new interface named AcpiOsSignal to provide a generic 17663"function code and pointer" interface for various miscellaneous 17664signals and notifications that must be made to the host OS. The 17665first such signals are intended to support the ASL Fatal and 17666Breakpoint operators. In the latter case, the AcpiOsBreakpoint 17667interface has been obsoleted. 17668 17669The definition of the AcpiFormatException interface has been 17670changed to simplify its use. The caller no longer must supply a 17671buffer to the call; A pointer to a const string is now returned 17672directly. This allows the call to be easily used in printf 17673statements, etc. since the caller does not have to manage a local 17674buffer. 17675 17676 17677 ASL Compiler, Version X2025: 17678 17679The ACPI 2.0 Switch/Case/Default operators have been implemented 17680and are fully functional. They will work with all ACPI 1.0 17681interpreters, since the operators are simply translated to If/Else 17682pairs. 17683 17684The ACPI 2.0 ElseIf operator is implemented and will also work 17685with 1.0 interpreters, for the same reason. 17686 17687Implemented support for ACPI 2.0 variable-length packages. These 17688packages have a separate opcode, and their size is determined by 17689the interpreter at run-time. 17690 17691Documentation The ACPI CA Programmer Reference has been updated to 17692reflect the new interfaces and changes to existing interfaces. 17693 17694 ------------------------------------------ 17695Summary of changes for this label: 06_15_01 17696 17697 ACPI CA Core Subsystem: 17698 17699Fixed a problem where a DWORD-accessed field within a Buffer 17700object would get its byte address inadvertently rounded down to 17701the nearest DWORD. Buffers are always Byte-accessible. 17702 17703 ASL Compiler, version X2024: 17704 17705Fixed a problem where the Switch() operator would either fault or 17706hang the compiler. Note however, that the AML code for this ACPI 177072.0 operator is not yet implemented. 17708 17709Compiler uses the new AcpiOsGetTimer interface to obtain compile 17710timings. 17711 17712Implementation of the CreateField operator automatically converts 17713a reference to a named field within a resource descriptor from a 17714byte offset to a bit offset if required. 17715 17716Added some missing named fields from the resource descriptor 17717support. These are the names that are automatically created by the 17718compiler to reference fields within a descriptor. They are only 17719valid at compile time and are not passed through to the AML 17720interpreter. 17721 17722Resource descriptor named fields are now typed as Integers and 17723subject to compile-time typechecking when used in expressions. 17724 17725 ------------------------------------------ 17726Summary of changes for this label: 05_18_01 17727 17728 ACPI CA Core Subsystem: 17729 17730Fixed a couple of problems in the Field support code where bits 17731from adjacent fields could be returned along with the proper field 17732bits. Restructured the field support code to improve performance, 17733readability and maintainability. 17734 17735New DEBUG_PRINTP macro automatically inserts the procedure name 17736into the output, saving hundreds of copies of procedure name 17737strings within the source, shrinking the memory footprint of the 17738debug version of the core subsystem. 17739 17740 Source Code Structure: 17741 17742The source code directory tree was restructured to reflect the 17743current organization of the component architecture. Some files 17744and directories have been moved and/or renamed. 17745 17746 Linux: 17747 17748Fixed leaking kacpidpc processes. 17749 17750Fixed queueing event data even when /proc/acpi/event is not 17751opened. 17752 17753 ASL Compiler, version X2020: 17754 17755Memory allocation performance enhancement - over 24X compile time 17756improvement on large ASL files. Parse nodes and namestring 17757buffers are now allocated from a large internal compiler buffer. 17758 17759The temporary .SRC file is deleted unless the "-s" option is 17760specified 17761 17762The "-d" debug output option now sends all output to the .DBG file 17763instead of the console. 17764 17765"External" second parameter is now optional 17766 17767"ElseIf" syntax now properly allows the predicate 17768 17769Last operand to "Load" now recognized as a Target operand 17770 17771Debug object can now be used anywhere as a normal object. 17772 17773ResourceTemplate now returns an object of type BUFFER 17774 17775EISAID now returns an object of type INTEGER 17776 17777"Index" now works with a STRING operand 17778 17779"LoadTable" now accepts optional parameters 17780 17781"ToString" length parameter is now optional 17782 17783"Interrupt (ResourceType," parse error fixed. 17784 17785"Register" with a user-defined region space parse error fixed 17786 17787Escaped backslash at the end of a string ("\\") scan/parse error 17788fixed 17789 17790"Revision" is now an object of type INTEGER. 17791 17792 17793 17794------------------------------------------ 17795Summary of changes for this label: 05_02_01 17796 17797Linux: 17798 17799/proc/acpi/event now blocks properly. 17800 17801Removed /proc/sys/acpi. You can still dump your DSDT from 17802/proc/acpi/dsdt. 17803 17804 ACPI CA Core Subsystem: 17805 17806Fixed a problem introduced in the previous label where some of the 17807"small" resource descriptor types were not recognized. 17808 17809Improved error messages for the case where an ASL Field is outside 17810the range of the parent operation region. 17811 17812 ASL Compiler, version X2018: 17813 17814 17815Added error detection for ASL Fields that extend beyond the length 17816of the parent operation region (only if the length of the region 17817is known at compile time.) This includes fields that have a 17818minimum access width that is smaller than the parent region, and 17819individual field units that are partially or entirely beyond the 17820extent of the parent. 17821 17822 17823 17824------------------------------------------ 17825Summary of changes for this label: 04_27_01 17826 17827 ACPI CA Core Subsystem: 17828 17829Fixed a problem where the namespace mutex could be released at the 17830wrong time during execution of AcpiRemoveAddressSpaceHandler. 17831 17832Added optional thread ID output for debug traces, to simplify 17833debugging of multiple threads. Added context switch notification 17834when the debug code realizes that a different thread is now 17835executing ACPI code. 17836 17837Some additional external data types have been prefixed with the 17838string "ACPI_" for consistency. This may effect existing code. 17839The data types affected are the external callback typedefs - e.g., 17840 17841WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 17842 17843 Linux: 17844 17845Fixed an issue with the OSL semaphore implementation where a 17846thread was waking up with an error from receiving a SIGCHLD 17847signal. 17848 17849Linux version of ACPI CA now uses the system C library for string 17850manipulation routines instead of a local implementation. 17851 17852Cleaned up comments and removed TBDs. 17853 17854 ASL Compiler, version X2017: 17855 17856Enhanced error detection and reporting for all file I/O 17857operations. 17858 17859 Documentation: 17860 17861Programmer Reference updated to version 1.06. 17862 17863 17864 17865------------------------------------------ 17866Summary of changes for this label: 04_13_01 17867 17868 ACPI CA Core Subsystem: 17869 17870Restructured support for BufferFields and RegionFields. 17871BankFields support is now fully operational. All known 32-bit 17872limitations on field sizes have been removed. Both BufferFields 17873and (Operation) RegionFields are now supported by the same field 17874management code. 17875 17876Resource support now supports QWORD address and IO resources. The 1787716/32/64 bit address structures and the Extended IRQ structure 17878have been changed to properly handle Source Resource strings. 17879 17880A ThreadId of -1 is now used to indicate a "mutex not acquired" 17881condition internally and must never be returned by AcpiOsThreadId. 17882This reserved value was changed from 0 since Unix systems allow a 17883thread ID of 0. 17884 17885Linux: 17886 17887Driver code reorganized to enhance portability 17888 17889Added a kernel configuration option to control ACPI_DEBUG 17890 17891Fixed the EC driver to honor _GLK. 17892 17893ASL Compiler, version X2016: 17894 17895Fixed support for the "FixedHw" keyword. Previously, the FixedHw 17896address space was set to 0, not 0x7f as it should be. 17897 17898 ------------------------------------------ 17899Summary of changes for this label: 03_13_01 17900 17901 ACPI CA Core Subsystem: 17902 17903During ACPI initialization, the _SB_._INI method is now run if 17904present. 17905 17906Notify handler fix - notifies are deferred until the parent method 17907completes execution. This fixes the "mutex already acquired" 17908issue seen occasionally. 17909 17910Part of the "implicit conversion" rules in ACPI 2.0 have been 17911found to cause compatibility problems with existing ASL/AML. The 17912convert "result-to-target-type" implementation has been removed 17913for stores to method Args and Locals. Source operand conversion 17914is still fully implemented. Possible changes to ACPI 2.0 17915specification pending. 17916 17917Fix to AcpiRsCalculatePciRoutingTableLength to return correct 17918length. 17919 17920Fix for compiler warnings for 64-bit compiles. 17921 17922 Linux: 17923 17924/proc output aligned for easier parsing. 17925 17926Release-version compile problem fixed. 17927 17928New kernel configuration options documented in Configure.help. 17929 17930IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 17931context" message. 17932 17933 OSPM: 17934 17935Power resource driver integrated with bus manager. 17936 17937Fixed kernel fault during active cooling for thermal zones. 17938 17939Source Code: 17940 17941The source code tree has been restructured. 17942 17943 17944 17945------------------------------------------ 17946Summary of changes for this label: 03_02_01 17947 17948 Linux OS Services Layer (OSL): 17949 17950Major revision of all Linux-specific code. 17951 17952Modularized all ACPI-specific drivers. 17953 17954Added new thermal zone and power resource drivers. 17955 17956Revamped /proc interface (new functionality is under /proc/acpi). 17957 17958New kernel configuration options. 17959 17960 Linux known issues: 17961 17962New kernel configuration options not documented in Configure.help 17963yet. 17964 17965 17966Module dependencies not currently implemented. If used, they 17967should be loaded in this order: busmgr, power, ec, system, 17968processor, battery, ac_adapter, button, thermal. 17969 17970Modules will not load if CONFIG_MODVERSION is set. 17971 17972IBM 600E - entering S5 may reboot instead of shutting down. 17973 17974IBM 600E - Sleep button may generate "Invalid <NULL> context" 17975message. 17976 17977Some systems may fail with "execution mutex already acquired" 17978message. 17979 17980 ACPI CA Core Subsystem: 17981 17982Added a new OSL Interface, AcpiOsGetThreadId. This was required 17983for the deadlock detection code. Defined to return a non-zero, 32- 17984bit thread ID for the currently executing thread. May be a non- 17985zero constant integer on single-thread systems. 17986 17987Implemented deadlock detection for internal subsystem mutexes. We 17988may add conditional compilation for this code (debug only) later. 17989 17990ASL/AML Mutex object semantics are now fully supported. This 17991includes multiple acquires/releases by owner and support for the 17992 17993Mutex SyncLevel parameter. 17994 17995A new "Force Release" mechanism automatically frees all ASL 17996Mutexes that have been acquired but not released when a thread 17997exits the interpreter. This forces conformance to the ACPI spec 17998("All mutexes must be released when an invocation exits") and 17999prevents deadlocked ASL threads. This mechanism can be expanded 18000(later) to monitor other resource acquisitions if OEM ASL code 18001continues to misbehave (which it will). 18002 18003Several new ACPI exception codes have been added for the Mutex 18004support. 18005 18006Recursive method calls are now allowed and supported (the ACPI 18007spec does in fact allow recursive method calls.) The number of 18008recursive calls is subject to the restrictions imposed by the 18009SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 18010parameter. 18011 18012Implemented support for the SyncLevel parameter for control 18013methods (ACPI 2.0 feature) 18014 18015Fixed a deadlock problem when multiple threads attempted to use 18016the interpreter. 18017 18018Fixed a problem where the string length of a String package 18019element was not always set in a package returned from 18020AcpiEvaluateObject. 18021 18022Fixed a problem where the length of a String package element was 18023not always included in the length of the overall package returned 18024from AcpiEvaluateObject. 18025 18026Added external interfaces (Acpi*) to the ACPI debug memory 18027manager. This manager keeps a list of all outstanding 18028allocations, and can therefore detect memory leaks and attempts to 18029free memory blocks more than once. Useful for code such as the 18030power manager, etc. May not be appropriate for device drivers. 18031Performance with the debug code enabled is slow. 18032 18033The ACPI Global Lock is now an optional hardware element. 18034 18035 ASL Compiler Version X2015: 18036 18037Integrated changes to allow the compiler to be generated on 18038multiple platforms. 18039 18040Linux makefile added to generate the compiler on Linux 18041 18042 Source Code: 18043 18044All platform-specific headers have been moved to their own 18045subdirectory, Include/Platform. 18046 18047New source file added, Interpreter/ammutex.c 18048 18049New header file, Include/acstruct.h 18050 18051 Documentation: 18052 18053The programmer reference has been updated for the following new 18054interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 18055 18056 ------------------------------------------ 18057Summary of changes for this label: 02_08_01 18058 18059Core ACPI CA Subsystem: Fixed a problem where an error was 18060incorrectly returned if the return resource buffer was larger than 18061the actual data (in the resource interfaces). 18062 18063References to named objects within packages are resolved to the 18064 18065full pathname string before packages are returned directly (via 18066the AcpiEvaluateObject interface) or indirectly via the resource 18067interfaces. 18068 18069Linux OS Services Layer (OSL): 18070 18071Improved /proc battery interface. 18072 18073 18074Added C-state debugging output and other miscellaneous fixes. 18075 18076ASL Compiler Version X2014: 18077 18078All defined method arguments can now be used as local variables, 18079including the ones that are not actually passed in as parameters. 18080The compiler tracks initialization of the arguments and issues an 18081exception if they are used without prior assignment (just like 18082locals). 18083 18084The -o option now specifies a filename prefix that is used for all 18085output files, including the AML output file. Otherwise, the 18086default behavior is as follows: 1) the AML goes to the file 18087specified in the DSDT. 2) all other output files use the input 18088source filename as the base. 18089 18090 ------------------------------------------ 18091Summary of changes for this label: 01_25_01 18092 18093Core ACPI CA Subsystem: Restructured the implementation of object 18094store support within the interpreter. This includes support for 18095the Store operator as well as any ASL operators that include a 18096target operand. 18097 18098Partially implemented support for Implicit Result-to-Target 18099conversion. This is when a result object is converted on the fly 18100to the type of an existing target object. Completion of this 18101support is pending further analysis of the ACPI specification 18102concerning this matter. 18103 18104CPU-specific code has been removed from the subsystem (hardware 18105directory). 18106 18107New Power Management Timer functions added 18108 18109Linux OS Services Layer (OSL): Moved system state transition code 18110to the core, fixed it, and modified Linux OSL accordingly. 18111 18112Fixed C2 and C3 latency calculations. 18113 18114 18115We no longer use the compilation date for the version message on 18116initialization, but retrieve the version from AcpiGetSystemInfo(). 18117 18118Incorporated for fix Sony VAIO machines. 18119 18120Documentation: The Programmer Reference has been updated and 18121reformatted. 18122 18123 18124ASL Compiler: Version X2013: Fixed a problem where the line 18125numbering and error reporting could get out of sync in the 18126presence of multiple include files. 18127 18128 ------------------------------------------ 18129Summary of changes for this label: 01_15_01 18130 18131Core ACPI CA Subsystem: 18132 18133Implemented support for type conversions in the execution of the 18134ASL Concatenate operator (The second operand is converted to 18135match the type of the first operand before concatenation.) 18136 18137Support for implicit source operand conversion is partially 18138implemented. The ASL source operand types Integer, Buffer, and 18139String are freely interchangeable for most ASL operators and are 18140converted by the interpreter on the fly as required. Implicit 18141Target operand conversion (where the result is converted to the 18142target type before storing) is not yet implemented. 18143 18144Support for 32-bit and 64-bit BCD integers is implemented. 18145 18146Problem fixed where a field read on an aligned field could cause a 18147read past the end of the field. 18148 18149New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 18150does not return a value, but the caller expects one. (The ASL 18151compiler flags this as a warning.) 18152 18153ASL Compiler: 18154 18155Version X2011: 181561. Static typechecking of all operands is implemented. This 18157prevents the use of invalid objects (such as using a Package where 18158an Integer is required) at compile time instead of at interpreter 18159run-time. 181602. The ASL source line is printed with ALL errors and warnings. 181613. Bug fix for source EOF without final linefeed. 181624. Debug option is split into a parse trace and a namespace trace. 181635. Namespace output option (-n) includes initial values for 18164integers and strings. 181656. Parse-only option added for quick syntax checking. 181667. Compiler checks for duplicate ACPI name declarations 18167 18168Version X2012: 181691. Relaxed typechecking to allow interchangeability between 18170strings, integers, and buffers. These types are now converted by 18171the interpreter at runtime. 181722. Compiler reports time taken by each internal subsystem in the 18173debug output file. 18174 18175 18176 ------------------------------------------ 18177Summary of changes for this label: 12_14_00 18178 18179ASL Compiler: 18180 18181This is the first official release of the compiler. Since the 18182compiler requires elements of the Core Subsystem, this label 18183synchronizes everything. 18184 18185------------------------------------------ 18186Summary of changes for this label: 12_08_00 18187 18188 18189Fixed a problem where named references within the ASL definition 18190of both OperationRegions and CreateXXXFields did not work 18191properly. The symptom was an AE_AML_OPERAND_TYPE during 18192initialization of the region/field. This is similar (but not 18193related internally) to the problem that was fixed in the last 18194label. 18195 18196Implemented both 32-bit and 64-bit support for the BCD ASL 18197functions ToBCD and FromBCD. 18198 18199Updated all legal headers to include "2000" in the copyright 18200years. 18201 18202 ------------------------------------------ 18203Summary of changes for this label: 12_01_00 18204 18205Fixed a problem where method invocations within the ASL definition 18206of both OperationRegions and CreateXXXFields did not work 18207properly. The symptom was an AE_AML_OPERAND_TYPE during 18208initialization of the region/field: 18209 18210 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 18211[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 18212(0x3005) 18213 18214Fixed a problem where operators with more than one nested 18215subexpression would fail. The symptoms were varied, by mostly 18216AE_AML_OPERAND_TYPE errors. This was actually a rather serious 18217problem that has gone unnoticed until now. 18218 18219 Subtract (Add (1,2), Multiply (3,4)) 18220 18221Fixed a problem where AcpiGetHandle didn't quite get fixed in the 18222previous build (The prefix part of a relative path was handled 18223incorrectly). 18224 18225Fixed a problem where Operation Region initialization failed if 18226the operation region name was a "namepath" instead of a simple 18227"nameseg". Symptom was an AE_NO_OPERAND error. 18228 18229Fixed a problem where an assignment to a local variable via the 18230indirect RefOf mechanism only worked for the first such 18231assignment. Subsequent assignments were ignored. 18232 18233 ------------------------------------------ 18234Summary of changes for this label: 11_15_00 18235 18236ACPI 2.0 table support with backwards support for ACPI 1.0 and the 182370.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 18238the AML interpreter does NOT have support for the new 2.0 ASL 18239grammar terms at this time. 18240 18241All ACPI hardware access is via the GAS structures in the ACPI 2.0 18242FADT. 18243 18244All physical memory addresses across all platforms are now 64 bits 18245wide. Logical address width remains dependent on the platform 18246(i.e., "void *"). 18247 18248AcpiOsMapMemory interface changed to a 64-bit physical address. 18249 18250The AML interpreter integer size is now 64 bits, as per the ACPI 182512.0 specification. 18252 18253For backwards compatibility with ACPI 1.0, ACPI tables with a 18254revision number less than 2 use 32-bit integers only. 18255 18256Fixed a problem where the evaluation of OpRegion operands did not 18257always resolve them to numbers properly. 18258 18259------------------------------------------ 18260Summary of changes for this label: 10_20_00 18261 18262Fix for CBN_._STA issue. This fix will allow correct access to 18263CBN_ OpRegions when the _STA returns 0x8. 18264 18265Support to convert ACPI constants (Ones, Zeros, One) to actual 18266values before a package object is returned 18267 18268Fix for method call as predicate to if/while construct causing 18269incorrect if/while behavior 18270 18271Fix for Else block package lengths sometimes calculated wrong (if 18272block > 63 bytes) 18273 18274Fix for Processor object length field, was always zero 18275 18276Table load abort if FACP sanity check fails 18277 18278Fix for problem with Scope(name) if name already exists 18279 18280Warning emitted if a named object referenced cannot be found 18281(resolved) during method execution. 18282 18283 18284 18285 18286 18287------------------------------------------ 18288Summary of changes for this label: 9_29_00 18289 18290New table initialization interfaces: AcpiInitializeSubsystem no 18291longer has any parameters AcpiFindRootPointer - Find the RSDP (if 18292necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 18293>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 18294AcpiLoadTables 18295 18296Note: These interface changes require changes to all existing OSDs 18297 18298The PCI_Config default address space handler is always installed 18299at the root namespace object. 18300 18301------------------------------------------- 18302Summary of changes for this label: 09_15_00 18303 18304The new initialization architecture is implemented. New 18305interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 18306AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 18307 18308(Namespace is automatically loaded when a table is loaded) 18309 18310The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1831152 bytes to 32 bytes. There is usually one of these for every 18312namespace object, so the memory savings is significant. 18313 18314Implemented just-in-time evaluation of the CreateField operators. 18315 18316Bug fixes for IA-64 support have been integrated. 18317 18318Additional code review comments have been implemented 18319 18320The so-called "third pass parse" has been replaced by a final walk 18321through the namespace to initialize all operation regions (address 18322spaces) and fields that have not yet been initialized during the 18323execution of the various _INI and REG methods. 18324 18325New file - namespace/nsinit.c 18326 18327------------------------------------------- 18328Summary of changes for this label: 09_01_00 18329 18330Namespace manager data structures have been reworked to change the 18331primary object from a table to a single object. This has 18332resulted in dynamic memory savings of 3X within the namespace and 183332X overall in the ACPI CA subsystem. 18334 18335Fixed problem where the call to AcpiEvFindPciRootBuses was 18336inadvertently left commented out. 18337 18338Reduced the warning count when generating the source with the GCC 18339compiler. 18340 18341Revision numbers added to each module header showing the 18342SourceSafe version of the file. Please refer to this version 18343number when giving us feedback or comments on individual modules. 18344 18345The main object types within the subsystem have been renamed to 18346clarify their purpose: 18347 18348ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 18349ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 18350ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 18351 18352NOTE: no changes to the initialization sequence are included in 18353this label. 18354 18355------------------------------------------- 18356Summary of changes for this label: 08_23_00 18357 18358Fixed problem where TerminateControlMethod was being called 18359multiple times per method 18360 18361Fixed debugger problem where single stepping caused a semaphore to 18362be oversignalled 18363 18364Improved performance through additional parse object caching - 18365added ACPI_EXTENDED_OP type 18366 18367------------------------------------------- 18368Summary of changes for this label: 08_10_00 18369 18370Parser/Interpreter integration: Eliminated the creation of 18371complete parse trees for ACPI tables and control methods. 18372Instead, parse subtrees are created and then deleted as soon as 18373they are processed (Either entered into the namespace or executed 18374by the interpreter). This reduces the use of dynamic kernel 18375memory significantly. (about 10X) 18376 18377Exception codes broken into classes and renumbered. Be sure to 18378recompile all code that includes acexcep.h. Hopefully we won't 18379have to renumber the codes again now that they are split into 18380classes (environment, programmer, AML code, ACPI table, and 18381internal). 18382 18383Fixed some additional alignment issues in the Resource Manager 18384subcomponent 18385 18386Implemented semaphore tracking in the AcpiExec utility, and fixed 18387several places where mutexes/semaphores were being unlocked 18388without a corresponding lock operation. There are no known 18389semaphore or mutex "leaks" at this time. 18390 18391Fixed the case where an ASL Return operator is used to return an 18392unnamed package. 18393 18394------------------------------------------- 18395Summary of changes for this label: 07_28_00 18396 18397Fixed a problem with the way addresses were calculated in 18398AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 18399manifested itself when a Field was created with WordAccess or 18400DwordAccess, but the field unit defined within the Field was less 18401 18402than a Word or Dword. 18403 18404Fixed a problem in AmlDumpOperands() module's loop to pull 18405operands off of the operand stack to display information. The 18406problem manifested itself as a TLB error on 64-bit systems when 18407accessing an operand stack with two or more operands. 18408 18409Fixed a problem with the PCI configuration space handlers where 18410context was getting confused between accesses. This required a 18411change to the generic address space handler and address space 18412setup definitions. Handlers now get both a global handler context 18413(this is the one passed in by the user when executing 18414AcpiInstallAddressSpaceHandler() and a specific region context 18415that is unique to each region (For example, the _ADR, _SEG and 18416_BBN values associated with a specific region). The generic 18417function definitions have changed to the following: 18418 18419typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 18420UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 18421*HandlerContext, // This used to be void *Context void 18422*RegionContext); // This is an additional parameter 18423 18424typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 18425RegionHandle, UINT32 Function, void *HandlerContext, void 18426**RegionContext); // This used to be **ReturnContext 18427 18428------------------------------------------- 18429Summary of changes for this label: 07_21_00 18430 18431Major file consolidation and rename. All files within the 18432interpreter have been renamed as well as most header files. This 18433was done to prevent collisions with existing files in the host 18434OSs -- filenames such as "config.h" and "global.h" seem to be 18435quite common. The VC project files have been updated. All 18436makefiles will require modification. 18437 18438The parser/interpreter integration continues in Phase 5 with the 18439implementation of a complete 2-pass parse (the AML is parsed 18440twice) for each table; This avoids the construction of a huge 18441parse tree and therefore reduces the amount of dynamic memory 18442required by the subsystem. Greater use of the parse object cache 18443means that performance is unaffected. 18444 18445Many comments from the two code reviews have been rolled in. 18446 18447The 64-bit alignment support is complete. 18448 18449------------------------------------------- 18450Summary of changes for this label: 06_30_00 18451 18452With a nod and a tip of the hat to the technology of yesteryear, 18453we've added support in the source code for 80 column output 18454devices. The code is now mostly constrained to 80 columns or 18455less to support environments and editors that 1) cannot display 18456or print more than 80 characters on a single line, and 2) cannot 18457disable line wrapping. 18458 18459A major restructuring of the namespace data structure has been 18460completed. The result is 1) cleaner and more 18461understandable/maintainable code, and 2) a significant reduction 18462in the dynamic memory requirement for each named ACPI object 18463(almost half). 18464 18465------------------------------------------- 18466Summary of changes for this label: 06_23_00 18467 18468Linux support has been added. In order to obtain approval to get 18469the ACPI CA subsystem into the Linux kernel, we've had to make 18470quite a few changes to the base subsystem that will affect all 18471users (all the changes are generic and OS- independent). The 18472effects of these global changes have been somewhat far reaching. 18473Files have been merged and/or renamed and interfaces have been 18474renamed. The major changes are described below. 18475 18476Osd* interfaces renamed to AcpiOs* to eliminate namespace 18477pollution/confusion within our target kernels. All OSD 18478interfaces must be modified to match the new naming convention. 18479 18480Files merged across the subsystem. A number of the smaller source 18481and header files have been merged to reduce the file count and 18482increase the density of the existing files. There are too many 18483to list here. In general, makefiles that call out individual 18484files will require rebuilding. 18485 18486Interpreter files renamed. All interpreter files now have the 18487prefix am* instead of ie* and is*. 18488 18489Header files renamed: The acapi.h file is now acpixf.h. The 18490acpiosd.h file is now acpiosxf.h. We are removing references to 18491the acronym "API" since it is somewhat windowsy. The new name is 18492"external interface" or xface or xf in the filenames.j 18493 18494 18495All manifest constants have been forced to upper case (some were 18496mixed case.) Also, the string "ACPI_" has been prepended to many 18497(not all) of the constants, typedefs, and structs. 18498 18499The globals "DebugLevel" and "DebugLayer" have been renamed 18500"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 18501 18502All other globals within the subsystem are now prefixed with 18503"AcpiGbl_" Internal procedures within the subsystem are now 18504prefixed with "Acpi" (with only a few exceptions). The original 18505two-letter abbreviation for the subcomponent remains after "Acpi" 18506- for example, CmCallocate became AcpiCmCallocate. 18507 18508Added a source code translation/conversion utility. Used to 18509generate the Linux source code, it can be modified to generate 18510other types of source as well. Can also be used to cleanup 18511existing source by removing extraneous spaces and blank lines. 18512Found in tools/acpisrc/* 18513 18514OsdUnMapMemory was renamed to OsdUnmapMemory and then 18515AcpiOsUnmapMemory. (UnMap became Unmap). 18516 18517A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 18518When set to one, this indicates that the caller wants to use the 18519 18520semaphore as a mutex, not a counting semaphore. ACPI CA uses 18521both types. However, implementers of this call may want to use 18522different OS primitives depending on the type of semaphore 18523requested. For example, some operating systems provide separate 18524 18525"mutex" and "semaphore" interfaces - where the mutex interface is 18526much faster because it doesn't have all the overhead of a full 18527semaphore implementation. 18528 18529Fixed a deadlock problem where a method that accesses the PCI 18530address space can block forever if it is the first access to the 18531space. 18532 18533------------------------------------------- 18534Summary of changes for this label: 06_02_00 18535 18536Support for environments that cannot handle unaligned data 18537accesses (e.g. firmware and OS environments devoid of alignment 18538handler technology namely SAL/EFI and the IA-64 Linux kernel) has 18539been added (via configurable macros) in these three areas: - 18540Transfer of data from the raw AML byte stream is done via byte 18541moves instead of word/dword/qword moves. - External objects are 18542aligned within the user buffer, including package elements (sub- 18543objects). - Conversion of name strings to UINT32 Acpi Names is now 18544done byte-wise. 18545 18546The Store operator was modified to mimic Microsoft's 18547implementation when storing to a Buffer Field. 18548 18549Added a check of the BM_STS bit before entering C3. 18550 18551The methods subdirectory has been obsoleted and removed. A new 18552file, cmeval.c subsumes the functionality. 18553 18554A 16-bit (DOS) version of AcpiExec has been developed. The 18555makefile is under the acpiexec directory. 18556