1---------------------------------------- 229 March 2019. Summary of changes for version 20190329: 3 4 51) ACPICA kernel-resident subsystem: 6 7Namespace support: Remove the address nodes from global list after method 8termination. The global address list contains pointers to namespace nodes 9that represent Operation Regions. This change properly removes Operation 10Region namespace nodes that are declared dynamically during method 11execution. 12 13Linux: Use a different debug default than ACPICA. There was a divergence 14between Linux and the ACPICA codebases. In order to resolve this 15divergence, Linux now declares its own debug default in aclinux.h 16 17Renamed some internal macros to improve code understanding and 18maintenance. The macros below all operate on single 4-character ACPI 19NameSegs, not generic strings (old -> new): 20 ACPI_NAME_SIZE -> ACPI_NAMESEG_SIZE 21 ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG 22 ACPI_MOVE_NAME -> ACPI_COPY_NAMESEG 23 24Fix for missing comma in array declaration for the AcpiGbl_GenericNotify 25table. 26 27Test suite: Update makefiles, add PCC operation region support 28 29 302) iASL Compiler/Disassembler and Tools: 31 32iASL: Implemented additional illegal forward reference detection. Now 33detect and emit an error upon detection of a forward reference from a 34Field to an Operation Region. This will fail at runtime if allowed to 35pass the compiler. 36 37AcpiExec: Add an address list check for dynamic Operation Regions. This 38feature performs a sanity test for each node the global address list. 39This is done in order to ensure that all dynamic operation regions are 40properly removed from the global address list and no dangling pointers 41are left behind. 42 43Disassembler: Improved generation of resource pathnames. This change 44improves the code that generates resource descriptor and resource tag 45pathnames. The original code used a bunch of str* C library functions 46that caused warnings on some compilers. 47 48iASL: Removed some uses of strncpy and replaced with memmove. The strncpy 49function can overwrite buffers if the calling code is not very careful. 50In the case of generating a module/table header, use of memmove is a 51better implementation. 52 53 543) Status of new features that have not been completed at this time: 55 56iASL: Implementing an enhanced multiple file compilation into a single 57namespace feature (Status): This feature will be released soon, and 58allows multiple ASL files to be compiled into the same single namespace. 59By doing so, any unresolved external declarations as well as duplicate 60named object declarations can be detected during compilation (rather than 61later during runtime). The following commands are examples that utilize 62this feature: 63 iasl dsdt.asl ssdt.asl 64 iasl dsdt.asl ssdt1.asl ssdt2.asl 65 iasl dsdt.asl ssdt*.asl 66 67ASL tutorial status: Feedback is being gathered internally and the 68current plan is to publish this tutorial on the ACPICA website after a 69final review by a tech writer. 70 71---------------------------------------- 7215 February 2019. Summary of changes for version 20190215: 73 74 750) Support for ACPI specification version 6.3: 76 77Add PCC operation region support for the AML interpreter. This adds PCC 78operation region support in the AML interpreter and a default handler for 79acpiexec. The change also renames the PCC region address space keyword to 80PlatformCommChannel. 81 82Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG. 83These methods provide OSPM with health information and device boot 84status. 85 86PDTT: Add TriggerOrder to the PCC Identifier structure. The field value 87defines if the trigger needs to be invoked by OSPM before or at the end 88of kernel crash dump processing/handling operation. 89 90SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT 91is used for describing devices such as heterogeneous processors, 92accelerators, GPUs, and IO devices with integrated compute or DMA 93engines. 94 95MADT: Add support for statistical profiling in GICC. Statistical 96profiling extension (SPE) is an architecture-specific feature for ARM. 97 98MADT: Add online capable flag. If this bit is set, system hardware 99supports enabling this processor during OS runtime. 100 101New Error Disconnect Recover Notification value. There are a number of 102scenarios where system Firmware in collaboration with hardware may 103disconnect one or more devices from the rest of the system for purposes 104of error containment. Firmware can use this new notification value to 105alert OSPM of such a removal. 106 107PPTT: New additional fields in Processor Structure Flags. These flags 108provide more information about processor topology. 109 110NFIT/Disassembler: Change a field name from "Address Range" to "Region 111Type". 112 113HMAT updates: make several existing fields to be reserved as well as 114rename subtable 0 to "memory proximity domain attributes". 115 116GTDT: Add support for new GTDT Revision 3. This revision adds information 117for the EL2 timer. 118 119iASL: Update the HMAT example template for new fields. 120 121iASL: Add support for the new revision of the GTDT (Rev 3). 122 123 1241) ACPICA kernel-resident subsystem: 125 126AML Parser: fix the main AML parse loop to correctly skip erroneous 127extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2- 128byte extended opcodes. If an error occurs during an AML table load, the 129AML parser will continue loading the table by skipping the offending 130opcode. This implements a "load table at any cost" philosophy. 131 132 1332) iASL Compiler/Disassembler and Tools: 134 135iASL: Add checks for illegal object references, such as a reference 136outside of method to an object within a method. Such an object is only 137temporary. 138 139iASL: Emit error for creation of a zero-length operation region. Such a 140region is rather pointless. If encountered, a runtime error is also 141implemented in the interpeter. 142 143Debugger: Fix a possible fault with the "test objects" command. 144 145iASL: Makefile: support parent directory filenames containing embedded 146spaces. 147 148iASL: Update the TPM2 template to revision 4. 149 150iASL: Add the ability to report specific warnings or remarks as errors. 151 152Disassembler: Disassemble OEMx tables as actual AML byte code. 153Previously, these tables were treated as "unknown table". 154 155iASL: Add definition and disassembly for TPM2 revision 3. 156 157iASL: Add support for TPM2 rev 3 compilation. 158 159 160---------------------------------------- 16108 January 2019. Summary of changes for version 20190108: 162 163 1641) ACPICA kernel-resident subsystem: 165 166Updated all copyrights to 2019. This affects all source code modules. 167 168 1692) iASL Compiler/Disassembler and Tools: 170 171ASL test suite (ASLTS): Updated all copyrights to 2019. 172 173Tools: Updated all signon copyrights to 2019. 174 175AcpiExec: Added a new option to dump extra information concerning any 176memory leaks detected by the internal object/cache tracking mechanism. - 177va 178 179iASL: Updated the table template for the TPM2 table to the newest version 180of the table (Revision 4) 181 182 183---------------------------------------- 18413 December 2018. Summary of changes for version 20181213: 185 186 1871) ACPICA Kernel-resident Subsystem: 188 189Fixed some buffer length issues with the GenericSerialBus, related to two 190of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes, 191which are rarely seen in the field. For these, the LEN field of the ASL 192buffer is now ignored. Hans de Goede 193 194Implemented a new object evaluation trace mechanism for control methods 195and data objects. This includes nested control methods. It is 196particularly useful for examining the ACPI execution during system 197initialization since the output is relatively terse. The flag below 198enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface: 199 #define ACPI_LV_EVALUATION 0x00080000 200 201Examples: 202 Enter evaluation : _SB.PCI0._INI (Method) 203 Exit evaluation : _SB.PCI0._INI 204 Enter evaluation : _OSI (Method) 205 Exit evaluation : _OSI 206 Enter evaluation : _SB.PCI0.TEST (Method) 207 Nested method call : _SB.PCI0.NST1 208 Exit nested method : _SB.PCI0.NST1 209 Exit evaluation : _SB.PCI0.TEST 210 211Added two recently-defined _OSI strings. See 212https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi- 213osi. 214 "Windows 2018" 215 "Windows 2018.2" 216 217Update for buffer-to-string conversions via the ToHexString ASL operator. 218A "0x" is now prepended to each of the hex values in the output string. 219This provides compatibility with other ACPI implementations. The ACPI 220specification is somewhat vague on this issue. 221 Example output string after conversion: 222"0x01,0x02,0x03,0x04,0x05,0x06" 223 224Return a run-time error for TermArg expressions within individual package 225elements. Although this is technically supported by the ASL grammar, 226other ACPI implementations do not support this either. Also, this fixes a 227fault if this type of construct is ever encountered (it never has been). 228 229 2302) iASL Compiler/Disassembler and Tools: 231 232iASL: Implemented a new compile option (-ww) that will promote individual 233warnings and remarks to errors. This is intended to enhance the firmware 234build process. 235 236AcpiExec: Implemented a new command-line option (-eo) to support the new 237object evaluation trace mechanism described above. 238 239Disassembler: Added support to disassemble OEMx tables as AML/ASL tables 240instead of a "unknown table" message. 241 242AcpiHelp: Improved support for the "special" predefined names such as 243_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be 244used for "xx" and "x". 245 246---------------------------------------- 24731 October 2018. Summary of changes for version 20181031: 248 249 250An Operation Region regression was fixed by properly adding address 251ranges to a global list during initialization. This allows OS to 252accurately check for overlapping regions between native devices (such as 253PCI) and Operation regions as well as checking for region conflicts 254between two Operation Regions. 255 256Added support for the 2-byte extended opcodes in the code/feature that 257attempts to continue parsing during the table load phase. Skip parsing 258Device declarations (and other extended opcodes) when an error occurs 259during parsing. Previously, only single-byte opcodes were supported. 260 261Cleanup: Simplified the module-level code support by eliminating a 262useless global variable (AcpiGbl_GroupModuleLeveCode). 263 264 2652) iASL Compiler/Disassembler and Tools: 266 267iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE 268could cause a fault in the preprocessor. This was an inadvertent side- 269effect from moving more allocations/frees to the local cache/memory 270mechanism. 271 272iASL: Enhanced error detection by validating that all NameSeg elements 273within a NamePatch actually exist. The previous behavior was spotty at 274best, and such errors could be improperly ignored at compiler time (never 275at runtime, however. There are two new error messages, as shown in the 276examples below: 277 278dsdt.asl 33: CreateByteField (TTTT.BXXX, 1, CBF1) 279Error 6161 - ^ One or more objects within 280the Pathname do not exist (TTTT.BXXX) 281 282dsdt.asl 34: CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1) 283Error 6160 - One or more prefix Scopes do not exist ^ 284(BBBB.CBF1) 285 286iASL: Disassembler/table-compiler: Added support for the static data 287table TPM2 revision 3 (an older version of TPM2). The support has been 288added for the compiler and the disassembler. 289 290Fixed compilation of DOS format data table file on Unix/Linux systems. 291iASL now properly detects line continuations (\) for DOS format data 292table definition language files on when executing on Unix/Linux. 293 294---------------------------------------- 29503 October 2018. Summary of changes for version 20181003: 296 297 2982) iASL Compiler/Disassembler and Tools: 299 300Fixed a regression introduced in version 20180927 that could cause the 301compiler to fault, especially with NamePaths containing one or more 302carats (^). Such as: ^^_SB_PCI0 303 304Added a new remark for the Sleep() operator when the sleep time operand 305is larger than one second. This is a very long time for the ASL/BIOS code 306and may not be what was intended by the ASL writer. 307 308---------------------------------------- 30927 September 2018. Summary of changes for version 20180927: 310 311 3121) ACPICA kernel-resident subsystem: 313 314Updated the GPE support to clear the status of all ACPI events when 315entering any/all sleep states in order to avoid premature wakeups. In 316theory, this may cause some wakeup events to be missed, but the 317likelihood of this is small. This change restores the original behavior 318of the ACPICA code in order to fix a regression seen from the previous 319"Stop unconditionally clearing ACPI IRQs during suspend/resume" change. 320This regression could cause some systems to incorrectly wake immediately. 321 322Updated the execution of the _REG methods during initialization and 323namespace loading to bring the behavior into closer conformance to the 324ACPI specification and other ACPI implementations: 325 326From the ACPI specification 6.2A, section 6.5.4 "_REG (Region): 327 "Control methods must assume all operation regions are inaccessible 328until the _REG(RegionSpace, 1) method is executed" 329 330 "The exceptions to this rule are: 3311. OSPM must guarantee that the following operation regions are always 332accessible: 333 SystemIO operation regions. 334 SystemMemory operation regions when accessing memory returned by the 335System Address Map reporting interfaces." 336 337Since the state of both the SystemIO and SystemMemory address spaces are 338defined by the specification to never change, this ACPICA change ensures 339that now _REG is never called on them. This solves some problems seen in 340the field and provides compatibility with other ACPI implementations. An 341update to the upcoming new version of the ACPI specification will help 342clarify this behavior. 343 344Updated the implementation of support for the Generic Serial Bus. For the 345"bidirectional" protocols, the internal implementation now automatically 346creates a return data buffer of the maximum size (255). This handles the 347worst-case for data that is returned from the serial bus handler, and 348fixes some problems seen in the field. This new buffer is directly 349returned to the ASL. As such, there is no true "bidirectional" buffer, 350which matches the ACPI specification. This is the reason for the "double 351store" seen in the example ASL code in the specification, shown below: 352 353Word Process Call (AttribProcessCall): 354 OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100) 355 Field(TOP1, BufferAcc, NoLock, Preserve) 356 { 357 FLD1, 8, // Virtual register at command value 1. 358 } 359 360 Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer 361 // as BUFF 362 CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word) 363 364 Store(0x5416, DATA) // Save 0x5416 into the data buffer 365 Store(Store(BUFF, FLD1), BUFF) // Invoke a write/read Process Call 366transaction 367 // This is the "double store". The write to 368 // FLD1 returns a new buffer, which is stored 369 // back into BUFF with the second Store. 370 371 3722) iASL Compiler/Disassembler and Tools: 373 374iASL: Implemented detection of extraneous/redundant uses of the Offset() 375operator within a Field Unit list. A remark is now issued for these. For 376example, the first two of the Offset() operators below are extraneous. 377Because both the compiler and the interpreter track the offsets 378automatically, these Offsets simply refer to the current offset and are 379unnecessary. Note, when optimization is enabled, the iASL compiler will 380in fact remove the redundant Offset operators and will not emit any AML 381code for them. 382 383 OperationRegion (OPR1, SystemMemory, 0x100, 0x100) 384 Field (OPR1) 385 { 386 Offset (0), // Never needed 387 FLD1, 32, 388 Offset (4), // Redundant, offset is already 4 (bytes) 389 FLD2, 8, 390 Offset (64), // OK use of Offset. 391 FLD3, 16, 392 } 393dsdt.asl 14: Offset (0), 394Remark 2158 - ^ Unnecessary/redundant use of Offset 395operator 396 397dsdt.asl 16: Offset (4), 398Remark 2158 - ^ Unnecessary/redundant use of Offset 399operator 400 401---------------------------------------- 40210 August 2018. Summary of changes for version 20180810: 403 404 4051) ACPICA kernel-resident subsystem: 406 407Initial ACPI table loading: Attempt to continue loading ACPI tables 408regardless of malformed AML. Since migrating table initialization to the 409new module-level code support, the AML interpreter rejected tables upon 410any ACPI error encountered during table load. This is a problem because 411non-serious ACPI errors during table load do not necessarily mean that 412the entire definition block (DSDT or SSDT) is invalid. This change 413improves the table loading by ignoring some types of errors that can be 414generated by incorrect AML. This can range from object type errors, scope 415errors, and index errors. 416 417Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs 418during suspend/resume. The status of ACPI events is no longer cleared 419when entering the ACPI S5 system state (power off) which caused some 420systems to power up immediately after turning off power in certain 421situations. This was a functional regression. It was fixed by clearing 422the status of all ACPI events again when entering S5 (for system-wide 423suspend or hibernation the clearing of the status of all events is not 424desirable, as it might cause the kernel to miss wakeup events sometimes). 425Rafael Wysocki. 426 427 4282) iASL Compiler/Disassembler and Tools: 429 430AcpiExec: Enhanced the -fi option (Namespace initialization file). Field 431elements listed in the initialization file were previously initialized 432after the table load and before executing module-level code blocks. 433Recent changes in the module-level code support means that the table load 434becomes a large control method execution. If fields are used within 435module-level code and we are executing with the -fi option, the 436initialization values were used to initialize the namespace object(s) 437only after the table was finished loading. This change Provides an early 438initialization of objects specified in the initialization file so that 439field unit values are populated during the table load (not after the 440load). 441 442AcpiExec: Fixed a small memory leak regression that could result in 443warnings during exit of the utility. These warnings were similar to 444these: 445 0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small] 446 0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001 447 448---------------------------------------- 44929 June 2018. Summary of changes for version 20180629: 450 451 4521) iASL Compiler/Disassembler and Tools: 453 454iASL: Fixed a regression related to the use of the ASL External 455statement. Error checking for the use of the External() statement has 456been relaxed. Previously, a restriction on the use of External meant that 457the referenced named object was required to be defined in a different 458table (an SSDT). Thus it would be an error to declare an object as an 459external and then define the same named object in the same table. For 460example: 461 DefinitionBlock (...) 462 { 463 External (DEV1) 464 Device (DEV1){...} // This was an error 465 } 466However, this behavior has caused regressions in some existing ASL code, 467because there is code that depends on named objects and externals (with 468the same name) being declared in the same table. This change will allow 469the ASL code above to compile without errors or warnings. 470 471iASL: Implemented ASL language extensions for four operators to make some 472of their arguments optional instead of required: 473 1) Field (RegionName, AccessType, LockRule, UpdateRule) 474 2) BankField (RegionName, BankName, BankValue, 475 AccessType, LockRule, UpdateRule) 476 3) IndexField (IndexName, DataName, 477 AccessType, LockRule, UpdateRule) 478For the Field operators above, the AccessType, LockRule, and UpdateRule 479are now optional arguments. The default values are: 480 AccessType: AnyAcc 481 LockRule: NoLock 482 UpdateRule: Preserve 483 4) Mutex (MutexName, SyncLevel) 484For this operator, the SyncLevel argument is now optional. This argument 485is rarely used in any meaningful way by ASL code, and thus it makes sense 486to make it optional. The default value is: 487 SyncLevel: 0 488 489iASL: Attempted use of the ASL Unload() operator now results in the 490following warning: 491 "Unload is not supported by all operating systems" 492This is in fact very true, and the Unload operator may be completely 493deprecated in the near future. 494 495AcpiExec: Fixed a regression for the -fi option (Namespace initialization 496file. Recent changes in the ACPICA module-level code support altered the 497table load/initialization sequence . This means that the table load has 498become a large method execution of the table itself. If Operation Region 499Fields are used within any module-level code and the -fi option was 500specified, the initialization values were populated only after the table 501had completely finished loading (and thus the module-level code had 502already been executed). This change moves the initialization of objects 503listed in the initialization file to before the table is executed as a 504method. Field unit values are now initialized before the table execution 505is performed. 506 507---------------------------------------- 50831 May 2018. Summary of changes for version 20180531: 509 510 5111) ACPICA kernel-resident Subsystem: 512 513Implemented additional support to help ensure that a DSDT or SSDT is 514fully loaded even if errors are incurred during the load. The majority of 515the problems that are seen is the failure of individual AML operators 516that occur during execution of any module-level code (MLC) existing in 517the table. This support adds a mechanism to abort the current ASL 518statement (AML opcode), emit an error message, and to simply move on to 519the next opcode -- instead of aborting the entire table load. This is 520different than the execution of a control method where the entire method 521is aborted upon any error. The goal is to perform a very "best effort" to 522load the ACPI tables. The most common MLC errors that have been seen in 523the field are direct references to unresolved ASL/AML symbols (referenced 524directly without the use of the CondRefOf operator to validate the 525symbol). This new ACPICA behavior is now compatible with other ACPI 526implementations. 527 528Interpreter: The Unload AML operator is no longer supported for the 529reasons below. An AE_NOT_IMPLEMENTED exception is returned. 5301) A correct implementation on at least some hosts may not be possible. 5312) Other ACPI implementations do not correctly/fully support it. 5323) It requires host device driver support which is not known to exist. 533 (To properly support namespace unload out from underneath.) 5344) This AML operator has never been seen in the field. 535 536Parser: Added a debug option to dump AML parse sub-trees as they are 537being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is 538ACPI_DB_PARSE_TREES. 539 540Debugger: Reduced the verbosity for errors incurred during table load and 541module-level code execution. 542 543Completed an investigation into adding a namespace node "owner list" 544instead of the current "owner ID" associated with namespace nodes. This 545list would link together all nodes that are owned by an individual 546control method. The purpose would be to enhance control method execution 547by speeding up cleanup during method exit (all namespace nodes created by 548a method are deleted upon method termination.) Currently, the entire 549namespace must be searched for matching owner IDs if (and only if) the 550method creates named objects outside of the local scope. However, by far 551the most common case is that methods create objects locally, not outside 552the method scope. There is already an ACPICA optimization in place that 553only searches the entire namespace in the rare case of a method creating 554objects elsewhere in the namespace. Therefore, it is felt that the 555overhead of adding an additional pointer to each namespace node to 556implement the owner list makes this feature unnecessary. 557 558 5592) iASL Compiler/Disassembler and Tools: 560 561iASL, Disassembler, and Template generator: Implemented support for 562Revision D of the IORT table. Adds a new subtable that is used to specify 563SMMUv3 PMCGs. rmurphy-arm. 564 565Disassembler: Restored correct table header validation for the "special" 566ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI 567table header and must be special-cased. This was a regression that has 568been present for apparently a long time. 569 570AcpiExec: Reduced verbosity of the local exception handler implemented 571within acpiexec. This handler is invoked by ACPICA upon any exceptions 572generated during control method execution. A new option was added: -vh 573restores the original verbosity level if desired. 574 575AcpiExec: Changed the default base from decimal to hex for the -x option 576(set debug level). This simplifies the use of this option and matches the 577behavior of the corresponding iASL -x option. 578 579AcpiExec: Restored a force-exit on multiple control-c (sigint) 580interrupts. This allows program termination even if other issues cause 581the control-c to fail. 582 583ASL test suite (ASLTS): Added tests for the recently implemented package 584element resolution mechanism that allows forward references to named 585objects from individual package elements (this mechanism provides 586compatibility with other ACPI implementations.) 587 588 589---------------------------------------- 5908 May 2018. Summary of changes for version 20180508: 591 592 5931) ACPICA kernel-resident subsystem: 594 595Completed the new (recently deployed) package resolution mechanism for 596the Load and LoadTable ASL/AML operators. This fixes a regression that 597was introduced in version 20180209 that could result in an 598AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table 599(SSDT) that contains package objects. 600 601 6022) iASL Compiler/Disassembler and Tools: 603 604AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than 6051 MB. This change allows for table offsets within the acpidump file to be 606up to 8 characters. These changes are backwards compatible with existing 607acpidump files. 608 609 610---------------------------------------- 61127 April 2018. Summary of changes for version 20180427: 612 613 6141) ACPICA kernel-resident subsystem: 615 616Debugger: Added support for Package objects in the "Test Objects" 617command. This command walks the entire namespace and evaluates all named 618data objects (Integers, Strings, Buffers, and now Packages). 619 620Improved error messages for the namespace root node. Originally, the root 621was referred to by the confusing string "\___". This has been replaced by 622"Namespace Root" for clarification. 623 624Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin 625Ian King <colin.king@canonical.com>. 626 627 6282) iASL Compiler/Disassembler and Tools: 629 630iASL: Implemented support to detect and flag illegal forward references. 631For compatibility with other ACPI implementations, these references are 632now illegal at the root level of the DSDT or SSDTs. Forward references 633have always been illegal within control methods. This change should not 634affect existing ASL/AML code because of the fact that these references 635have always been illegal in the other ACPI implementation. 636 637iASL: Added error messages for the case where a table OEM ID and OEM 638TABLE ID strings are longer than the ACPI-defined length. Previously, 639these strings were simply silently truncated. 640 641iASL: Enhanced the -tc option (which creates an AML hex file in C, 642suitable for import into a firmware project): 643 1) Create a unique name for the table, to simplify use of multiple 644SSDTs. 645 2) Add a protection #ifdef in the file, similar to a .h header file. 646With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd, 647evan.lloyd@arm.com 648 649AcpiExec: Added a new option, -df, to disable the local fault handler. 650This is useful during debugging, where it may be desired to drop into a 651debugger on a fault. 652 653---------------------------------------- 65413 March 2018. Summary of changes for version 20180313: 655 656 6571) ACPICA kernel-resident subsystem: 658 659Implemented various improvements to the GPE support: 660 6611) Dispatch all active GPEs at initialization time so that no GPEs are 662lost. 6632) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled 664before devices are enumerated. 6653) Don't unconditionally clear ACPI IRQs during suspend/resume, so that 666IRQs are not lost. 6674) Add parallel GPE handling to eliminate the possibility of dispatching 668the same GPE twice. 6695) Dispatch any pending GPEs after enabling for the first time. 670 671AcpiGetObjectInfo - removed support for the _STA method. This was causing 672problems on some platforms. 673 674Added a new _OSI string, "Windows 2017.2". 675 676Cleaned up and simplified the module-level code support. These changes 677are in preparation for the eventual removal of the legacy MLC support 678(deferred execution), replaced by the new MLC architecture which executes 679the MLC as a table is loaded (DSDT/SSDTs). 680 681Changed a compile-time option to a runtime option. Changes the option to 682ignore ACPI table load-time package resolution errors into a runtime 683option. Used only for platforms that generate many AE_NOT_FOUND errors 684during boot. AcpiGbl_IgnorePackageResolutionErrors. 685 686Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some 687ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid 688compilation errors from unused variables (seen with some compilers). 689 690 6912) iASL Compiler/Disassembler and Tools: 692 693ASLTS: parallelized execution in order to achieve an (approximately) 2X 694performance increase. 695 696ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves 697error reporting. 698 699---------------------------------------- 70009 February 2018. Summary of changes for version 20180209: 701 702 7031) ACPICA kernel-resident subsystem: 704 705Completed the final integration of the recent changes to Package Object 706handling and the module-level AML code support. This allows forward 707references from individual package elements when the package object is 708declared from within module-level code blocks. Provides compatibility 709with other ACPI implementations. 710 711The new architecture for the AML module-level code has been completed and 712is now the default for the ACPICA code. This new architecture executes 713the module-level code in-line as the ACPI table is loaded/parsed instead 714of the previous architecture which deferred this code until after the 715table was fully loaded. This solves some ASL code ordering issues and 716provides compatibility with other ACPI implementations. At this time, 717there is an option to fallback to the earlier architecture, but this 718support is deprecated and is planned to be completely removed later this 719year. 720 721Added a compile-time option to ignore AE_NOT_FOUND exceptions during 722resolution of named reference elements within Package objects. Although 723this is potentially a serious problem, it can generate a lot of 724noise/errors on platforms whose firmware carries around a bunch of unused 725Package objects. To disable these errors, define 726ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All 727errors are always reported for ACPICA applications such as AcpiExec. 728 729Fixed a regression related to the explicit type-conversion AML operators 730(ToXXXX). The regression was introduced early in 2017 but was not seen 731until recently because these operators are not fully supported by other 732ACPI implementations and are thus rarely used by firmware developers. The 733operators are defined by the ACPI specification to not implement the 734"implicit result object conversion". The regression incorrectly 735introduced this object conversion for the following explicit conversion 736operators: 737 ToInteger 738 ToString 739 ToBuffer 740 ToDecimalString 741 ToHexString 742 ToBCD 743 FromBCD 744 745 7462) iASL Compiler/Disassembler and Tools: 747 748iASL: Fixed a problem with the compiler constant folding feature as 749related to the ToXXXX explicit conversion operators. These operators do 750not support the "implicit result object conversion" by definition. Thus, 751ASL expressions that use these operators cannot be folded to a simple 752Store operator because Store implements the implicit conversion. This 753change uses the CopyObject operator for the ToXXXX operator folding 754instead. CopyObject is defined to not implement implicit result 755conversions and is thus appropriate for folding the ToXXXX operators. 756 757iASL: Changed the severity of an error condition to a simple warning for 758the case where a symbol is declared both locally and as an external 759symbol. This accommodates existing ASL code. 760 761AcpiExec: The -ep option to enable the new architecture for module-level 762code has been removed. It is replaced by the -dp option which instead has 763the opposite effect: it disables the new architecture (the default) and 764enables the legacy architecture. When the legacy code is removed in the 765future, the -dp option will be removed also. 766 767---------------------------------------- 76805 January 2018. Summary of changes for version 20180105: 769 770 7711) ACPICA kernel-resident subsystem: 772 773Updated all copyrights to 2018. This affects all source code modules. 774 775Fixed a possible build error caused by an unresolved reference to the 776AcpiUtSafeStrncpy function. 777 778Removed NULL pointer arithmetic in the various pointer manipulation 779macros. All "(void *) NULL" constructs are converted to "(void *) 0". 780This eliminates warnings/errors in newer C compilers. Jung-uk Kim. 781 782Added support for A32 ABI compilation, which uses the ILP32 model. Anuj 783Mittal. 784 785 7862) iASL Compiler/Disassembler and Tools: 787 788ASLTS: Updated all copyrights to 2018. 789 790Tools: Updated all signon copyrights to 2018. 791 792AcpiXtract: Fixed a regression related to ACPI table signatures where the 793signature was truncated to 3 characters (instead of 4). 794 795AcpiExec: Restore the original terminal mode after the use of the -v and 796-vd options. 797 798ASLTS: Deployed the iASL __METHOD__ macro across the test suite. 799 800---------------------------------------- 80114 December 2017. Summary of changes for version 20171214: 802 803 8041) ACPICA kernel-resident subsystem: 805 806Fixed a regression in the external (public) AcpiEvaluateObjectTyped 807interface where the optional "pathname" argument had inadvertently become 808a required argument returning an error if omitted (NULL pointer 809argument). 810 811Fixed two possible memory leaks related to the recently developed "late 812resolution" of reference objects within ASL Package Object definitions. 813 814Added two recently defined _OSI strings: "Windows 2016" and "Windows 8152017". Mario Limonciello. 816 817Implemented and deployed a safer version of the C library function 818strncpy: AcpiUtSafeStrncpy. The intent is to at least prevent the 819creation of unterminated strings as a possible result of a standard 820strncpy. 821 822Cleaned up and restructured the global variable file (acglobal.h). There 823are many changes, but no functional changes. 824 825 8262) iASL Compiler/Disassembler and Tools: 827 828iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the 829optional OemData field at the end of the table was incorrectly required 830for proper compilation. It is now correctly an optional field. 831 832ASLTS: The entire suite was converted from standard ASL to the ASL+ 833language, using the ASL-to-ASL+ converter which is integrated into the 834iASL compiler. A binary compare of all output files has verified the 835correctness of the conversion. 836 837iASL: Fixed the source code build for platforms where "char" is unsigned. 838This affected the iASL lexer only. Jung-uk Kim. 839 840---------------------------------------- 84110 November 2017. Summary of changes for version 20171110: 842 843 8441) ACPICA kernel-resident subsystem: 845 846This release implements full support for ACPI 6.2A: 847 NFIT - Added a new subtable, "Platform Capabilities Structure" 848No other changes to ACPICA were required, since ACPI 6.2A is primarily an 849errata release of the specification. 850 851Other ACPI table changes: 852 IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo 853 PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy 854Linton 855 856Utilities: Modified the string/integer conversion functions to use 857internal 64-bit divide support instead of a native divide. On 32-bit 858platforms, a 64-bit divide typically requires a library function which 859may not be present in the build (kernel or otherwise). 860 861Implemented a targeted error message for timeouts returned from the 862Embedded Controller device driver. This is seen frequently enough to 863special-case an AE_TIME returned from an EC operation region access: 864 "Timeout from EC hardware or EC device driver" 865 866Changed the "ACPI Exception" message prefix to "ACPI Error" so that all 867runtime error messages have the identical prefix. 868 869 8702) iASL Compiler/Disassembler and Tools: 871 872AcpiXtract: Fixed a problem with table header detection within the 873acpidump file. Processing a table could be ended early if a 0x40 (@) 874appears in the original binary table, resulting in the @ symbol appearing 875in the decoded ASCII field at the end of the acpidump text line. The 876symbol caused acpixtract to incorrectly think it had reached the end of 877the current table and the beginning of a new table. 878 879AcpiXtract: Added an option (-f) to ignore some errors during table 880extraction. This initial implementation ignores non-ASCII and non- 881printable characters found in the acpidump text file. 882 883TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics 884for ASLTS. This feature is used to track memory allocations from 885different memory caches within the ACPICA code. At the end of an ASLTS 886run, these memory statistics are recorded and stored in a log file. 887 888Debugger (user-space version): Implemented a simple "Background" command. 889Creates a new thread to execute a control method in the background, while 890control returns to the debugger prompt to allow additional commands. 891 Syntax: Background <Namepath> [Arguments] 892 893---------------------------------------- 89429 September 2017. Summary of changes for version 20170929: 895 896 8971) ACPICA kernel-resident subsystem: 898 899Redesigned and implemented an improved ASL While() loop timeout 900mechanism. This mechanism is used to prevent infinite loops in the kernel 901AML interpreter caused by either non-responsive hardware or incorrect AML 902code. The new implementation uses AcpiOsGetTimer instead of a simple 903maximum loop count, and is thus more accurate and constant across 904different machines. The default timeout is currently 30 seconds, but this 905may be adjusted later. 906 907Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to 908better reflect the new implementation of the loop timeout mechanism. 909 910Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support 911and to fix an off-by-one error. Jung-uk Kim. 912 913Fixed an EFI build problem by updating the makefiles to for a new file 914that was added, utstrsuppt.c 915 916 9172) iASL Compiler/Disassembler and Tools: 918 919Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This 920includes support in the table disassembler, compiler, and template 921generator. 922 923iASL: Added an exception for an illegal type of recursive method 924invocation. If a method creates named objects, the first recursive call 925will fail at runtime. This change adds an error detection at compile time 926to catch the problem up front. Note: Marking such a method as 927"serialized" will not help with this problem, because the same thread can 928acquire the method mutex more than once. Example compiler and runtime 929output: 930 931 Method (MTH1) 932 { 933 Name (INT1, 1) 934 MTH1 () 935 } 936 937 dsdt.asl 22: MTH1 () 938 Error 6152 - ^ Illegal recursive call to method 939 that creates named objects (MTH1) 940 941Previous runtime exception: 942 ACPI Error: [INT1] Namespace lookup failure, 943 AE_ALREADY_EXISTS (20170831/dswload2-465) 944 945iASL: Updated support for External() opcodes to improve namespace 946management and error detection. These changes are related to issues seen 947with multiple-segment namespace pathnames within External declarations, 948such as below: 949 950 External(\_SB.PCI0.GFX0, DeviceObj) 951 External(\_SB.PCI0.GFX0.ALSI) 952 953iASL: Implemented support for multi-line error/warning messages. This 954enables more detailed and helpful error messages as below, from the 955initial deployment for the duplicate names error: 956 957 DSDT.iiii 1692: Device(PEG2) { 958 Error 6074 - ^ Name already exists in scope 959(PEG2) 960 961 Original name creation/declaration below: 962 DSDT.iiii 93: External(\_SB.PCI0.PEG2, DeviceObj) 963 964AcpiXtract: Added additional flexibility to support differing input hex 965dump formats. Specifically, hex dumps that contain partial disassembly 966and/or comments within the ACPI table data definition. There exist some 967dump utilities seen in the field that create this type of hex dump (such 968as Simics). For example: 969 970 DSDT @ 0xdfffd0c0 (10999 bytes) 971 Signature DSDT 972 Length 10999 973 Revision 1 974 Checksum 0xf3 (Ok) 975 OEM_ID BXPC 976 OEM_table_id BXDSDT 977 OEM_revision 1 978 Creator_id 1280593481 979 Creator_revision 537399345 980 0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00 981 ... 982 2af0: 5f 4c 30 46 00 a4 01 983 984Test suite: Miscellaneous changes/fixes: 985 More cleanup and simplification of makefiles 986 Continue compilation of test cases after a compile failure 987 Do not perform binary compare unless both files actually exist 988 989iASL: Performed some code/module restructuring. Moved all memory 990allocation functions to new modules. Two new files, aslallocate.c and 991aslcache.c 992 993---------------------------------------- 99431 August 2017. Summary of changes for version 20170831: 995 996 9971) ACPICA kernel-resident subsystem: 998 999Implemented internal support for full 64-bit addresses that appear in all 1000Generic Address Structure (GAS) structures. Previously, only the lower 32 1001bits were used. Affects the use of GAS structures in the FADT and other 1002tables, as well as the GAS structures passed to the AcpiRead and 1003AcpiWrite public external interfaces that are used by drivers. Lv Zheng. 1004 1005Added header support for the PDTT ACPI table (Processor Debug Trigger 1006Table). Full support in the iASL Data Table Compiler and disassembler is 1007forthcoming. 1008 1009 10102) iASL Compiler/Disassembler and Tools: 1011 1012iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor 1013Properties Topology Table) where a flag bit was specified in the wrong 1014bit position ("Line Size Valid", bit 6). 1015 1016iASL: Implemented support for Octal integer constants as defined by the 1017ASL language grammar, per the ACPI specification. Any integer constant 1018that starts with a zero is an octal constant. For example, 1019 Store (037777, Local0) /* Octal constant */ 1020 Store (0x3FFF, Local0) /* Hex equivalent */ 1021 Store (16383, Local0) /* Decimal equivalent */ 1022 1023iASL: Improved overflow detection for 64-bit string conversions during 1024compilation of integer constants. "Overflow" in this case means a string 1025that represents an integer that is too large to fit into a 64-bit value. 1026Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to 1027the low-order 32 bits with a warning, as previously implemented. Several 1028new exceptions are defined that indicate a 64-bit overflow, as well as 1029the base (radix) that was used during the attempted conversion. Examples: 1030 Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF // AE_HEX_OVERFLOW 1031 Local0 = 01111222233334444555566667777 // AE_OCTAL_OVERFLOW 1032 Local0 = 11112222333344445555666677778888 // AE_DECIMAL_OVERFLOW 1033 1034iASL: Added a warning for the case where a ResourceTemplate is declared 1035with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In 1036this case, the resulting template is created with a single END_TAG 1037descriptor, which is essentially useless. 1038 1039iASL: Expanded the -vw option (ignore specific warnings/remarks) to 1040include compilation error codes as well. 1041 1042---------------------------------------- 104328 July 2017. Summary of changes for version 20170728: 1044 1045 10461) ACPICA kernel-resident subsystem: 1047 1048Fixed a regression seen with small resource descriptors that could cause 1049an inadvertent AE_AML_NO_RESOURCE_END_TAG exception. 1050 1051AML interpreter: Implemented a new feature that allows forward references 1052from individual named references within package objects that are 1053contained within blocks of "module-level code". This provides 1054compatibility with other ACPI implementations and supports existing 1055firmware that depends on this feature. Example: 1056 1057 Name (ABCD, 1) 1058 If (ABCD) /* An If() at module-level */ 1059 { 1060 Name (PKG1, Package() 1061 { 1062 INT1 /* Forward reference to object INT1 1063*/ 1064 }) 1065 Name (INT1, 0x1234) 1066 } 1067 1068AML Interpreter: Fixed a problem with the Alias() operator where aliases 1069to some ASL objects were not handled properly. Objects affected are: 1070Mutex, Event, and OperationRegion. 1071 1072AML Debugger: Enhanced to properly handle AML Alias objects. These 1073objects have one level of indirection which was not fully supported by 1074the debugger. 1075 1076Table Manager: Added support to detect and ignore duplicate SSDTs within 1077the XSDT/RSDT. This error in the XSDT has been seen in the field. 1078 1079EFI and EDK2 support: 1080 Enabled /WX flag for MSVC builds 1081 Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer 1082 Added local support for 64-bit multiply and shift operations 1083 Added support to compile acpidump.efi on Windows 1084 Added OSL function stubs for interfaces not used under EFI 1085 1086Added additional support for the _DMA predefined name. _DMA returns a 1087buffer containing a resource template. This change add support within the 1088resource manager (AcpiWalkResourceBuffer) to walk and parse this list of 1089resource descriptors. Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> 1090 1091 10922) iASL Compiler/Disassembler and Tools: 1093 1094iASL: Fixed a problem where the internal input line buffer(s) could 1095overflow if there are very long lines in the input ASL source code file. 1096Implemented buffer management that automatically increases the size of 1097the buffers as necessary. 1098 1099iASL: Added an option (-vx) to "expect" particular remarks, warnings and 1100errors. If the specified exception is not raised during compilation, the 1101compiler emits an error. This is intended to support the ASL test suite, 1102but may be useful in other contexts. 1103 1104iASL: Implemented a new predefined macro, __METHOD__, which returns a 1105string containing the name of the current control method that is being 1106compiled. 1107 1108iASL: Implemented debugger and table compiler support for the SDEI ACPI 1109table (Software Delegated Exception Interface). James Morse 1110<james.morse@arm.com> 1111 1112Unix/Linux makefiles: Added an option to disable compile optimizations. 1113The disable occurs when the NOOPT flag is set to TRUE. 1114theracermaster@gmail.com 1115 1116Acpidump: Added support for multiple DSDT and FACS tables. This can occur 1117when there are different tables for 32-bit versus 64-bit. 1118 1119Enhanced error reporting for the ASL test suite (ASLTS) by removing 1120unnecessary/verbose text, and emit the actual line number where an error 1121has occurred. These changes are intended to improve the usefulness of the 1122test suite. 1123 1124---------------------------------------- 112529 June 2017. Summary of changes for version 20170629: 1126 1127 11281) ACPICA kernel-resident subsystem: 1129 1130Tables: Implemented a deferred ACPI table verification. This is useful 1131for operating systems where the tables cannot be verified in the early 1132initialization stage due to early memory mapping limitations on some 1133architectures. Lv Zheng. 1134 1135Tables: Removed the signature validation for dynamically loaded tables. 1136Provides compatibility with other ACPI implementations. Previously, only 1137SSDT tables were allowed, as per the ACPI specification. Now, any table 1138signature can be used via the Load() operator. Lv Zheng. 1139 1140Tables: Fixed several mutex issues that could cause errors during table 1141acquisition. Lv Zheng. 1142 1143Tables: Fixed a problem where an ACPI warning could be generated if a 1144null pointer was passed to the AcpiPutTable interface. Lv Zheng. 1145 1146Tables: Added a mechanism to handle imbalances for the AcpiGetTable and 1147AcpiPutTable interfaces. This applies to the "late stage" table loading 1148when the use of AcpiPutTable is no longer required (since the system 1149memory manager is fully running and available). Lv Zheng. 1150 1151Fixed/Reverted a regression during processing of resource descriptors 1152that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG 1153exception in this case. 1154 1155Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the 1156I/O Remapping specification. Robin Murphy <robin.murphy@arm.com> 1157 1158Interpreter: Fixed a possible fault if an Alias operator with an invalid 1159or duplicate target is encountered during Alias creation in 1160AcpiExCreateAlias. Alex James <theracermaster@gmail.com> 1161 1162Added an option to use designated initializers for function pointers. 1163Kees Cook <keescook@google.com> 1164 1165 11662) iASL Compiler/Disassembler and Tools: 1167 1168iASL: Allow compilation of External declarations with target pathnames 1169that refer to existing named objects within the table. Erik Schmauss. 1170 1171iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a 1172FieldUnit name also is declared via External in the same table. Erik 1173Schmauss. 1174 1175iASL: Allow existing scope names within pathnames used in External 1176statements. For example: 1177 External (ABCD.EFGH) // ABCD exists, but EFGH is truly external 1178 Device (ABCD) 1179 1180iASL: IORT ACPI table: Implemented changes required to decode the new 1181Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table 1182compiler. Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com> 1183 1184Disassembler: Don't abort disassembly on errors from External() 1185statements. Erik Schmauss. 1186 1187Disassembler: fixed a possible fault when one of the Create*Field 1188operators references a Resource Template. ACPICA Bugzilla 1396. 1189 1190iASL: In the source code, resolved some naming inconsistences across the 1191parsing support. Fixes confusion between "Parse Op" and "Parse Node". 1192Adds a new file, aslparseop.c 1193 1194---------------------------------------- 119531 May 2017. Summary of changes for version 20170531: 1196 1197 11980) ACPI 6.2 support: 1199 1200The ACPI specification version 6.2 has been released and is available at 1201http://uefi.org/specifications 1202 1203This version of ACPICA fully supports the ACPI 6.2 specification. Changes 1204are summarized below. 1205 1206New ACPI tables (Table Compiler/Disassembler/Templates): 1207 HMAT (Heterogeneous Memory Attributes Table) 1208 WSMT (Windows SMM Security Mitigation Table) 1209 PPTT (Processor Properties Topology Table) 1210 1211New subtables for existing ACPI tables: 1212 HEST (New subtable, Arch-deferred machine check) 1213 SRAT (New subtable, Arch-specific affinity structure) 1214 PCCT (New subtables, Extended PCC subspaces (types 3 and 4)) 1215 1216Simple updates for existing ACPI tables: 1217 BGRT (two new flag bits) 1218 HEST (New bit defined for several subtables, GHES_ASSIST) 1219 1220New Resource Descriptors and Resource macros (Compiler/Disassembler): 1221 PinConfig() 1222 PinFunction() 1223 PinGroup() 1224 PinGroupConfig() 1225 PinGroupFunction() 1226 New type for hardware error notification (section 18.3.2.9) 1227 1228New predefined names/methods (Compiler/Interpreter): 1229 _HMA (Heterogeneous Memory Attributes) 1230 _LSI (Label Storage Information) 1231 _LSR (Label Storage Read) 1232 _LSW (Label Storage Write) 1233 1234ASL grammar/macro changes (Compiler): 1235 For() ASL macro, implemented with the AML while operator 1236 Extensions to Concatenate operator 1237 Support for multiple definition blocks in same ASL file 1238 Clarification for Buffer operator 1239 Allow executable AML code underneath all scopes (Devices, etc.) 1240 Clarification/change for the _OSI return value 1241 ASL grammar update for reference operators 1242 Allow a zero-length string for AML filename in DefinitionBlock 1243 1244Miscellaneous: 1245 New device object notification value 1246 Remove a notify value (0x0C) for graceful shutdown 1247 New UUIDs for processor/cache properties and 1248 physical package property 1249 New _HID, ACPI0014 (Wireless Power Calibration Device) 1250 1251 12521) ACPICA kernel-resident subsystem: 1253 1254Added support to disable ACPI events on hardware-reduced platforms. 1255Eliminates error messages of the form "Could not enable fixed event". Lv 1256Zheng 1257 1258Fixed a problem using Device/Thermal objects with the ObjectType and 1259DerefOf ASL operators. This support had not been fully/properly 1260implemented. 1261 1262Fixed a problem where if a Buffer object containing a resource template 1263was longer than the actual resource template, an error was generated -- 1264even though the AML is legal. This case has been seen in the field. 1265 1266Fixed a problem with the header definition of the MADT PCAT_COMPAT flag. 1267The values for DUAL_PIC and MULTIPLE_APIC were reversed. 1268 1269Added header file changes for the TPM2 ACPI table. Update to new version 1270of the TCG specification. Adds a new TPM2 subtable for ARM SMC. 1271 1272Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex. 1273These interfaces are intended to be used only in conjunction with the 1274predefined _DLM method (Device Lock Method). "This object appears in a 1275device scope when AML access to the device must be synchronized with the 1276OS environment". 1277 1278Example Code and Data Size: These are the sizes for the OS-independent 1279acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1280debug version of the code includes the debug output trace mechanism and 1281has a much larger code and data size. 1282 1283 Current Release: 1284 Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total 1285 Debug Version: 204.0K Code, 84.3K Data, 288.3K Total 1286 Previous Release: 1287 Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total 1288 Debug Version: 207.5K Code, 82.7K Data, 290.2K Total 1289 1290 12912) iASL Compiler/Disassembler and Tools: 1292 1293iASL: Fixed a problem where an External() declaration could not refer to 1294a Field Unit. Erik Schmauss. 1295 1296Disassembler: Improved support for the Switch/Case operators. This 1297feature will disassemble AML code back to the original Switch operators 1298when possible, instead of an If..Else sequence. David Box 1299 1300iASL and disassembler: Improved the handling of multiple extraneous 1301parentheses for both ASL input and disassembled ASL output. 1302 1303Improved the behavior of the iASL compiler and disassembler to detect 1304improper use of external declarations 1305 1306Disassembler: Now aborts immediately upon detection of an unknown AML 1307opcode. The AML parser has no real way to recover from this, and can 1308result in the creation of an ill-formed parse tree that causes errors 1309later during the disassembly. 1310 1311All tools: Fixed a problem where the Unix application OSL did not handle 1312control-c correctly. For example, a control-c could incorrectly wake the 1313debugger. 1314 1315AcpiExec: Improved the Control-C handling and added a handler for 1316segmentation faults (SIGSEGV). Supports both Windows and Unix-like 1317environments. 1318 1319Reduced the verbosity of the generic unix makefiles. Previously, each 1320compilation displayed the full set of compiler options. This has been 1321eliminated as the options are easily inspected within the makefiles. Each 1322compilation now results in a single line of output. 1323 1324---------------------------------------- 132503 March 2017. Summary of changes for version 20170303: 1326 1327 13280) ACPICA licensing: 1329 1330The licensing information at the start of each source code module has 1331been updated. In addition to the Intel license, the dual GPLv2/BSD 1332license has been added for completeness. Now, a single version of the 1333source code should be suitable for all ACPICA customers. This is the 1334major change for this release since it affects all source code modules. 1335 1336 13371) ACPICA kernel-resident subsystem: 1338 1339Fixed two issues with the common asltypes.h header that could cause 1340problems in some environments: (Kim Jung-uk) 1341 Removed typedef for YY_BUFFER_STATE ? 1342 Fixes an error with earlier versions of Flex. 1343 Removed use of FILE typedef (which is only defined in stdio.h) 1344 1345 13462) iASL Compiler/Disassembler and Tools: 1347 1348Disassembler: fixed a regression introduced in 20170224. A fix for a 1349memory leak related to resource descriptor tags (names) could fault when 1350the disassembler was generated with 64-bit compilers. 1351 1352The ASLTS test suite has been updated to implement a new testing 1353architecture. During generation of the suite from ASL source, both the 1354ASL and ASL+ compilers are now validated, as well as the disassembler 1355itself (Erik Schmauss). The architecture executes as follows: 1356 1357 For every ASL source module: 1358 Compile (legacy ASL compilation) 1359 Disassemble the resulting AML to ASL+ source code 1360 Compile the new ASL+ module 1361 Perform a binary compare on the legacy AML and the new ASL+ AML 1362 The ASLTS suite then executes normally using the AML binaries. 1363 1364---------------------------------------- 136524 February 2017. Summary of changes for version 20170224: 1366 1367 13681) ACPICA kernel-resident subsystem: 1369 1370Interpreter: Fixed two issues with the control method return value auto- 1371repair feature, where an attempt to double-delete an internal object 1372could result in an ACPICA warning (for _CID repair and others). No fault 1373occurs, however, because the attempted deletion (actually a release to an 1374internal cache) is detected and ignored via object poisoning. 1375 1376Debugger: Fixed an AML interpreter mutex issue during the single stepping 1377of control methods. If certain debugger commands are executed during 1378stepping, a mutex acquire/release error could occur. Lv Zheng. 1379 1380Fixed some issues generating ACPICA with the Intel C compiler by 1381restoring the original behavior and compiler-specific include file in 1382acenv.h. Lv Zheng. 1383 1384Example Code and Data Size: These are the sizes for the OS-independent 1385acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1386debug version of the code includes the debug output trace mechanism and 1387has a much larger code and data size. 1388 1389 Current Release: 1390 Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total 1391 Debug Version: 207.5K Code, 82.7K Data, 290.2K Total 1392 Previous Release: 1393 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 1394 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 1395 1396 13972) iASL Compiler/Disassembler and Tools: 1398 1399iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion 1400tool has been designed, implemented, and included in this release. The 1401key feature of this utility is that the original comments within the 1402input ASL file are preserved during the conversion process, and included 1403within the converted ASL+ file -- thus creating a transparent conversion 1404of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss. 1405 1406 Usage: iasl -ca <ASL-filename> // Output is a .dsl file with 1407converted code 1408 1409iASL/Disassembler: Improved the detection and correct disassembly of 1410Switch/Case operators. This feature detects sequences of if/elseif/else 1411operators that originated from ASL Switch/Case/Default operators and 1412emits the original operators. David Box. 1413 1414iASL: Improved the IORT ACPI table support in the following areas. Lv 1415Zheng: 1416 Clear MappingOffset if the MappingCount is zero. 1417 Fix the disassembly of the SMMU GSU interrupt offset. 1418 Update the template file for the IORT table. 1419 1420Disassembler: Enhanced the detection and disassembly of resource 1421template/descriptor within a Buffer object. An EndTag descriptor is now 1422required to have a zero second byte, since all known ASL compilers emit 1423this. This helps eliminate incorrect decisions when a buffer is 1424disassembled (false positives on resource templates). 1425 1426---------------------------------------- 142719 January 2017. Summary of changes for version 20170119: 1428 1429 14301) General ACPICA software: 1431 1432Entire source code base: Added the 2017 copyright to all source code 1433legal/licensing module headers and utility/tool signons. This includes 1434the standard Linux dual-license header. This affects virtually every file 1435in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and 1436the ACPICA test suite. 1437 1438 14392) iASL Compiler/Disassembler and Tools: 1440 1441iASL: Removed/fixed an inadvertent remark when a method argument 1442containing a reference is used as a target operand within the method (and 1443never used as a simple argument), as in the example below. Jeffrey Hugo. 1444 1445 dsdt.asl 1507: Store(0x1, Arg0) 1446 Remark 2146 - ^ Method Argument is never used (Arg0) 1447 1448All tools: Removed the bit width of the compiler that generated the tool 1449from the common signon for all user space tools. This proved to be 1450confusing and unnecessary. This includes similar removal of HARDWARE_NAME 1451from the generic makefiles (Thomas Petazzoni). Example below. 1452 1453 Old: 1454 ASL+ Optimizing Compiler version 20170119-32 1455 ASL+ Optimizing Compiler version 20170119-64 1456 1457 New: 1458 ASL+ Optimizing Compiler version 20170119 1459 1460---------------------------------------- 146122 December 2016. Summary of changes for version 20161222: 1462 1463 14641) ACPICA kernel-resident subsystem: 1465 1466AML Debugger: Implemented a new mechanism to simplify and enhance 1467debugger integration into all environments, including kernel debuggers 1468and user-space utilities, as well as remote debug services. This 1469mechanism essentially consists of new OSL interfaces to support debugger 1470initialization/termination, as well as wait/notify interfaces to perform 1471the debugger handshake with the host. Lv Zheng. 1472 1473 New OSL interfaces: 1474 AcpiOsInitializeDebugger (void) 1475 AcpiOsTerminateDebugger (void) 1476 AcpiOsWaitCommandReady (void) 1477 AcpiOsNotifyCommandComplete (void) 1478 1479 New OS services layer: 1480 osgendbg.c -- Example implementation, and used for AcpiExec 1481 1482Update for Generic Address Space (GAS) support: Although the AccessWidth 1483and/or BitOffset fields of the GAS are not often used, this change now 1484fully supports these fields. This affects the internal support for FADT 1485registers, registers in other ACPI data tables, and the AcpiRead and 1486AcpiWrite public interfaces. Lv Zheng. 1487 1488Sleep support: In order to simplify integration of ACPI sleep for the 1489various host operating systems, a new OSL interface has been introduced. 1490AcpiOsEnterSleep allows the host to perform any required operations 1491before the final write to the sleep control register(s) is performed by 1492ACPICA. Lv Zheng. 1493 1494 New OSL interface: 1495 AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue) 1496 1497 Called from these internal interfaces: 1498 AcpiHwLegacySleep 1499 AcpiHwExtendedSleep 1500 1501EFI support: Added a very small EFI/ACPICA example application. Provides 1502a simple demo for EFI integration, as well as assisting with resolution 1503of issues related to customer ACPICA/EFI integration. Lv Zheng. See: 1504 1505 source/tools/efihello/efihello.c 1506 1507Local C library: Implemented several new functions to enhance ACPICA 1508portability, for environments where these clib functions are not 1509available (such as EFI). Lv Zheng: 1510 putchar 1511 getchar 1512 strpbrk 1513 strtok 1514 memmove 1515 1516Fixed a regression where occasionally a valid resource descriptor was 1517incorrectly detected as invalid at runtime, and a 1518AE_AML_NO_RESOURCE_END_TAG was returned. 1519 1520Fixed a problem with the recently implemented support that enables 1521control method invocations as Target operands to many ASL operators. 1522Warnings of this form: "Needed type [Reference], found [Processor]" were 1523seen at runtime for some method invocations. 1524 1525Example Code and Data Size: These are the sizes for the OS-independent 1526acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1527debug version of the code includes the debug output trace mechanism and 1528has a much larger code and data size. 1529 1530 Current Release: 1531 Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total 1532 Debug Version: 201.7K Code, 82.7K Data, 284.4K Total 1533 Previous Release: 1534 Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total 1535 Debug Version: 201.3K Code, 82.7K Data, 284.0K Total 1536 1537 15382) iASL Compiler/Disassembler and Tools: 1539 1540Disassembler: Enhanced output by adding the capability to detect and 1541disassemble ASL Switch/Case statements back to the original ASL source 1542code instead of if/else blocks. David Box. 1543 1544AcpiHelp: Split a large file into separate files based upon 1545functionality/purpose. New files are: 1546 ahaml.c 1547 ahasl.c 1548 1549---------------------------------------- 155017 November 2016. Summary of changes for version 20161117: 1551 1552 15531) ACPICA kernel-resident subsystem: 1554 1555Table Manager: Fixed a regression introduced in 20160729, "FADT support 1556cleanup". This was an attempt to remove all references in the source to 1557the FADT version 2, which never was a legal version number. It was 1558skipped because it was an early version of 64-bit support that was 1559eventually abandoned for the current 64-bit support. 1560 1561Interpreter: Fixed a problem where runtime implicit conversion was 1562incorrectly disabled for the ASL operators below. This brings the 1563behavior into compliance with the ACPI specification: 1564 FromBCD 1565 ToBCD 1566 ToDecimalString 1567 ToHexString 1568 ToInteger 1569 ToBuffer 1570 1571Table Manager: Added a new public interface, AcpiPutTable, used to 1572release and free an ACPI table returned by AcpiGetTable and related 1573interfaces. Lv Zheng. 1574 1575Example Code and Data Size: These are the sizes for the OS-independent 1576acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1577debug version of the code includes the debug output trace mechanism and 1578has a much larger code and data size. 1579 1580 Current Release: 1581 Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total 1582 Debug Version: 201.3K Code, 82.7K Data, 284.0K Total 1583 Previous Release: 1584 Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total 1585 Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 1586 1587 15882) iASL Compiler/Disassembler and Tools: 1589 1590Disassembler: Fixed a regression for disassembly of Resource Template. 1591Detection of templates in the AML stream missed some types of templates. 1592 1593iASL: Fixed a problem where an Access Size error was returned for the PCC 1594address space when the AccessSize of the GAS register is greater than a 1595DWORD. Hoan Tran. 1596 1597iASL: Implemented several grammar changes for the operators below. These 1598changes are slated for the next version of the ACPI specification: 1599 RefOf - Disallow method invocation as an operand 1600 CondRefOf - Disallow method invocation as an operand 1601 DerefOf - Disallow operands that use the result from operators 1602that 1603 do not return a reference (Changed TermArg to 1604SuperName). 1605 1606iASL: Control method invocations are now allowed for Target operands, as 1607per the ACPI specification. Removed error for using a control method 1608invocation as a Target operand. 1609 1610Disassembler: Improved detection of Resource Templates, Unicode, and 1611Strings within Buffer objects. These subtypes do not contain a specific 1612opcode to indicate the originating ASL code, and they must be detected by 1613other means within the disassembler. 1614 1615iASL: Implemented an optimization improvement for 32-bit ACPI tables 1616(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode 1617only after 64-bit to 32-bit truncation. A truncation warning message is 1618still emitted, however. 1619 1620AcpiXtract: Implemented handling for both types of line terminators (LF 1621or CR/LF) so that it can accept AcpiDump output files from any system. 1622Peter Wu. 1623 1624AcpiBin: Added two new options for comparing AML files: 1625 -a: compare and display ALL mismatches 1626 -o: start compare at this offset into the second file 1627 1628---------------------------------------- 162930 September 2016. Summary of changes for version 20160930: 1630 1631 16321) ACPICA kernel-resident subsystem: 1633 1634Fixed a regression in the internal AcpiTbFindTable function where a non 1635AE_OK exception could inadvertently be returned even if the function did 1636not fail. This problem affects the following operators: 1637 DataTableRegion 1638 LoadTable 1639 1640Fixed a regression in the LoadTable operator where a load to any 1641namespace location other than the root no longer worked properly. 1642 1643Increased the maximum loop count value that will result in the 1644AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to 1645prevent infinite loops within the AML interpreter and thus the host OS 1646kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to 16471,048,575). 1648 1649Moved the AcpiGbl_MaxLoopIterations configuration variable to the public 1650acpixf.h file. This allows hosts to easily configure the maximum loop 1651count at runtime. 1652 1653Removed an illegal character in the strtoul64.c file. This character 1654caused errors with some C compilers. 1655 1656Example Code and Data Size: These are the sizes for the OS-independent 1657acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1658debug version of the code includes the debug output trace mechanism and 1659has a much larger code and data size. 1660 1661 Current Release: 1662 Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total 1663 Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 1664 Previous Release: 1665 Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total 1666 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 1667 1668 16692) iASL Compiler/Disassembler and Tools: 1670 1671Disassembler: Fixed a problem with the conversion of Else{If{ blocks into 1672the simpler ASL ElseIf keyword. During the conversion, a trailing If 1673block could be lost and missing from the disassembled output. 1674 1675iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+, 1676the missing rule caused a parse error when using the Index operator as an 1677operand to ObjectType. This construct now compiles properly. Example: 1678 ObjectType(PKG1[4]). 1679 1680iASL: Correctly handle unresolved symbols in the hardware map file (-lm 1681option). Previously, unresolved symbols could cause a protection fault. 1682Such symbols are now marked as unresolved in the map file. 1683 1684iASL: Implemented support to allow control method invocations as an 1685operand to the ASL DeRefOf operator. Example: 1686 DeRefOf(MTH1(Local0)) 1687 1688Disassembler: Improved support for the ToPLD ASL macro. Detection of a 1689possible _PLD buffer now includes examination of both the normal buffer 1690length (16 or 20) as well as the surrounding AML package length. 1691 1692Disassembler: Fixed a problem with the decoding of complex expressions 1693within the Divide operator for ASL+. For the case where both the quotient 1694and remainder targets are specified, the entire statement cannot be 1695disassembled. Previously, the output incorrectly contained a mix of ASL- 1696and ASL+ operators. This mixed statement causes a syntax error when 1697compiled. Example: 1698 Divide (Add (INT1, 6), 128, RSLT, QUOT) // was incorrectly 1699disassembled to: 1700 Divide (INT1 + 6, 128, RSLT, QUOT) 1701 1702iASL/Tools: Added support to process AML and non-AML ACPI tables 1703consistently. For the disassembler and AcpiExec, allow all types of ACPI 1704tables (AML and data tables). For the iASL -e option, allow only AML 1705tables (DSDT/SSDT). 1706 1707---------------------------------------- 170831 August 2016. Summary of changes for version 20160831: 1709 1710 17111) ACPICA kernel-resident subsystem: 1712 1713Improve support for the so-called "module-level code", which is defined 1714to be math, logical and control AML opcodes that appear outside of any 1715control method. This change improves the support by adding more opcodes 1716that can be executed in the manner. Some other issues have been solved, 1717and the ASL grammar changes to support such code under all scope 1718operators (Device, etc.) are complete. Lv Zheng. 1719 1720UEFI support: these OSL functions have been implemented. This is an 1721additional step toward supporting the AcpiExec utility natively (with 1722full hardware access) under UEFI. Marcelo Ferreira. 1723 AcpiOsReadPciConfiguration 1724 AcpiOsWritePciConfiguration 1725 1726Fixed a possible mutex error during control method auto-serialization. Lv 1727Zheng. 1728 1729Updated support for the Generic Address Structure by fully implementing 1730all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv 1731Zheng. 1732 1733Updated the return value for the internal _OSI method. Instead of 17340xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF 1735for 64-bit ACPI tables. This fixes an incompatibility with other ACPI 1736implementations, and will be reflected and clarified in the next version 1737of the ACPI specification. 1738 1739Implemented two new table events that can be passed to an ACPICA table 1740handler. These events are used to indicate a table installation or 1741uninstallation. These events are used in addition to existed table load 1742and unload events. Lv Zheng. 1743 1744Implemented a cleanup for all internal string-to-integer conversions. 1745Consolidate multiple versions of this functionality and limit possible 1746bases to either 10 or 16 to simplify the code. Adds a new file, 1747utstrtoul64. 1748 1749Cleanup the inclusion order of the various compiler-specific headers. 1750This simplifies build configuration management. The compiler-specific 1751headers are now split out from the host-specific headers. Lv Zheng. 1752 1753Example Code and Data Size: These are the sizes for the OS-independent 1754acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1755debug version of the code includes the debug output trace mechanism and 1756has a much larger code and data size. 1757 1758 Current Release: 1759 Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total 1760 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 1761 1762 17632) iASL Compiler/Disassembler and Tools: 1764 1765iASL/AcpiExec: Added a command line option to display the build date/time 1766of the tool (-vd). This can be useful to verify that the correct version 1767of the tools are being used. 1768 1769AML Debugger: Implemented a new subcommand ("execute predef") to execute 1770all predefined control methods and names within the current namespace. 1771This can be useful for debugging problems with ACPI tables and the ACPI 1772namespace. 1773 1774---------------------------------------- 177529 July 2016. Summary of changes for version 20160729: 1776 1777 17781) ACPICA kernel-resident subsystem: 1779 1780Implemented basic UEFI support for the various ACPICA tools. This 1781includes: 17821) An OSL to implement the various AcpiOs* interfaces on UEFI. 17832) Support to obtain the ACPI tables on UEFI. 17843) Local implementation of required C library functions not available on 1785UEFI. 17864) A front-end (main) function for the tools for UEFI-related 1787initialization. 1788 1789The initial deployment of this support is the AcpiDump utility executing 1790as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit"). 1791Current environments supported are Linux/Unix. MSVC generation is not 1792supported at this time. See the generate/efi/README file for build 1793instructions. Lv Zheng. 1794 1795Future plans include porting the AcpiExec utility to execute natively on 1796the platform with I/O and memory access. This will allow viewing/dump of 1797the platform namespace and native execution of ACPI control methods that 1798access the actual hardware. To fully implement this support, the OSL 1799functions below must be implemented with UEFI interfaces. Any community 1800help in the implementation of these functions would be appreciated: 1801 AcpiOsReadPort 1802 AcpiOsWritePort 1803 AcpiOsReadMemory 1804 AcpiOsWriteMemory 1805 AcpiOsReadPciConfiguration 1806 AcpiOsWritePciConfiguration 1807 1808Restructured and standardized the C library configuration for ACPICA, 1809resulting in the various configuration options below. This includes a 1810global restructuring of the compiler-dependent and platform-dependent 1811include files. These changes may affect the existing platform-dependent 1812configuration files on some hosts. Lv Zheng. 1813 1814The current C library configuration options appear below. For any issues, 1815it may be helpful to examine the existing compiler-dependent and 1816platform-dependent files as examples. Lv Zheng. 1817 18181) Linux kernel: 1819 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 1820library. 1821 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 18222) Unix/Windows/BSD applications: 1823 ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C 1824library. 1825 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 18263) UEFI applications: 1827 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 1828library. 1829 ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library. 18304) UEFI applications (EDK2/StdLib): 1831 ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library. 1832 ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library. 1833 1834 1835AML interpreter: "module-level code" support. Allows for execution of so- 1836called "executable" AML code (math/logical operations, etc.) outside of 1837control methods not just at the module level (top level) but also within 1838any scope declared outside of a control method - Scope{}, Device{}, 1839Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng. 1840 1841Simplified the configuration of the "maximum AML loops" global option by 1842adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be 1843modified at runtime. 1844 1845 1846Example Code and Data Size: These are the sizes for the OS-independent 1847acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1848debug version of the code includes the debug output trace mechanism and 1849has a much larger code and data size. 1850 1851 Current Release: 1852 Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total 1853 Debug Version: 199.0K Code, 81.8K Data, 280.8K Total 1854 1855 18562) iASL Compiler/Disassembler and Tools: 1857 1858iASL: Add full support for the RASF ACPI table (RAS Features Table). 1859Includes disassembler, data table compiler, and header support. 1860 1861iASL Expand "module-level code" support. Allows for 1862compilation/disassembly of so-called "executable" AML code (math/logical 1863operations, etc.) outside of control methods not just at the module level 1864(top level) but also within any scope declared outside of a control 1865method - Scope{}, Device{}, Processor{}, PowerResource{}, and 1866ThermalZone{}. 1867 1868AcpiDump: Added support for dumping all SSDTs on newer versions of 1869Windows. These tables are now easily available -- SSDTs are not available 1870through the registry on older versions. 1871 1872---------------------------------------- 187327 May 2016. Summary of changes for version 20160527: 1874 1875 18761) ACPICA kernel-resident subsystem: 1877 1878Temporarily reverted the new arbitrary bit length/alignment support in 1879AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been 1880a number of regressions with the new code that need to be fully resolved 1881and tested before this support can be finally integrated into ACPICA. 1882Apologies for any inconveniences these issues may have caused. 1883 1884The ACPI message macros are not configurable (ACPI_MSG_ERROR, 1885ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR, 1886and ACPI_MSG_BIOS_WARNING). Lv Zheng. 1887 1888Fixed a couple of GCC warnings associated with the use of the -Wcast-qual 1889option. Adds a new return macro, return_STR. Junk-uk Kim. 1890 1891Example Code and Data Size: These are the sizes for the OS-independent 1892acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1893debug version of the code includes the debug output trace mechanism and 1894has a much larger code and data size. 1895 1896 Current Release: 1897 Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total 1898 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 1899 Previous Release: 1900 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 1901 Debug Version: 200.9K Code, 82.2K Data, 283.1K Total 1902 1903---------------------------------------- 190422 April 2016. Summary of changes for version 20160422: 1905 19061) ACPICA kernel-resident subsystem: 1907 1908Fixed a regression in the GAS (generic address structure) arbitrary bit 1909support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior 1910and incorrect return values. Lv Zheng. ACPICA BZ 1270. 1911 1912ACPI 6.0: Added support for new/renamed resource macros. One new argument 1913was added to each of these macros, and the original name has been 1914deprecated. The AML disassembler will always disassemble to the new 1915names. Support for the new macros was added to iASL, disassembler, 1916resource manager, and the acpihelp utility. ACPICA BZ 1274. 1917 1918 I2cSerialBus -> I2cSerialBusV2 1919 SpiSerialBus -> SpiSerialBusV2 1920 UartSerialBus -> UartSerialBusV2 1921 1922ACPI 6.0: Added support for a new integer field that was appended to the 1923package object returned by the _BIX method. This adds iASL compile-time 1924and AML runtime error checking. ACPICA BZ 1273. 1925 1926ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm 1927Subspace Type2" (Headers, Disassembler, and data table compiler). 1928 1929Example Code and Data Size: These are the sizes for the OS-independent 1930acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1931debug version of the code includes the debug output trace mechanism and 1932has a much larger code and data size. 1933 1934 Current Release: 1935 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 1936 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 1937 Previous Release: 1938 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 1939 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 1940 1941 19422) iASL Compiler/Disassembler and Tools: 1943 1944iASL: Implemented an ASL grammar extension to allow/enable executable 1945"module-level code" to be created and executed under the various 1946operators that create new scopes. This type of AML code is already 1947supported in all known AML interpreters, and the grammar change will 1948appear in the next version of the ACPI specification. Simplifies the 1949conditional runtime creation of named objects under these object types: 1950 1951 Device 1952 PowerResource 1953 Processor 1954 Scope 1955 ThermalZone 1956 1957iASL: Implemented a new ASL extension, a "For" loop macro to add greater 1958ease-of-use to the ASL language. The syntax is similar to the 1959corresponding C operator, and is implemented with the existing AML While 1960opcode -- thus requiring no changes to existing AML interpreters. 1961 1962 For (Initialize, Predicate, Update) {TermList} 1963 1964Grammar: 1965 ForTerm := 1966 For ( 1967 Initializer // Nothing | TermArg => ComputationalData 1968 Predicate // Nothing | TermArg => ComputationalData 1969 Update // Nothing | TermArg => ComputationalData 1970 ) {TermList} 1971 1972 1973iASL: The _HID/_ADR detection and validation has been enhanced to search 1974under conditionals in order to allow these objects to be conditionally 1975created at runtime. 1976 1977iASL: Fixed several issues with the constant folding feature. The 1978improvement allows better detection and resolution of statements that can 1979be folded at compile time. ACPICA BZ 1266. 1980 1981iASL/Disassembler: Fixed a couple issues with the Else{If{}...} 1982conversion to the ASL ElseIf operator where incorrect ASL code could be 1983generated. 1984 1985iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where 1986sometimes an extra (and extraneous) set of parentheses were emitted for 1987some combinations of operators. Although this did not cause any problems 1988with recompilation of the disassembled code, it made the code more 1989difficult to read. David Box. ACPICA BZ 1231. 1990 1991iASL: Changed to ignore the unreferenced detection for predefined names 1992of resource descriptor elements, when the resource descriptor is 1993created/defined within a control method. 1994 1995iASL: Disassembler: Fix a possible fault with externally declared Buffer 1996objects. 1997 1998---------------------------------------- 199918 March 2016. Summary of changes for version 20160318: 2000 20011) ACPICA kernel-resident subsystem: 2002 2003Added support for arbitrary bit lengths and bit offsets for registers 2004defined by the Generic Address Structure. Previously, only aligned bit 2005lengths of 8/16/32/64 were supported. This was sufficient for many years, 2006but recently some machines have been seen that require arbitrary bit- 2007level support. ACPICA BZ 1240. Lv Zheng. 2008 2009Fixed an issue where the \_SB._INI method sometimes must be evaluated 2010before any _REG methods are evaluated. Lv Zheng. 2011 2012Implemented several changes related to ACPI table support 2013(Headers/Disassembler/TableCompiler): 2014NFIT: For ACPI 6.1, updated to add some additional new fields and 2015constants. 2016FADT: Updated a warning message and set compliance to ACPI 6.1 (Version 20176). 2018DMAR: Added new constants per the 10/2014 DMAR spec. 2019IORT: Added new subtable per the 10/2015 IORT spec. 2020HEST: For ACPI 6.1, added new constants and new subtable. 2021DBG2: Added new constants per the 12/2015 DBG2 spec. 2022FPDT: Fixed several incorrect fields, add the FPDT boot record structure. 2023ACPICA BZ 1249. 2024ERST/EINJ: Updated disassembler with new "Execute Timings" actions. 2025 2026Updated header support for the DMAR table to match the current version of 2027the related spec. 2028 2029Added extensions to the ASL Concatenate operator to allow any ACPI object 2030to be passed as an operand. Any object other than Integer/String/Buffer 2031simply returns a string containing the object type. This extends the 2032usefulness of the Printf macros. Previously, Concatenate would abort the 2033control method if a non-data object was encountered. 2034 2035ACPICA source code: Deployed the C "const" keyword across the source code 2036where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD). 2037 2038Example Code and Data Size: These are the sizes for the OS-independent 2039acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2040debug version of the code includes the debug output trace mechanism and 2041has a much larger code and data size. 2042 2043 Current Release: 2044 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 2045 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 2046 Previous Release: 2047 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 2048 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 2049 2050 20512) iASL Compiler/Disassembler and Tools: 2052 2053iASL/Disassembler: Improved the heuristic used to determine the number of 2054arguments for an externally defined control method (a method in another 2055table). Although this is an improvement, there is no deterministic way to 2056"guess" the number of method arguments. Only the ACPI 6.0 External opcode 2057will completely solve this problem as it is deployed (automatically) in 2058newer BIOS code. 2059 2060iASL/Disassembler: Fixed an ordering issue for emitted External() ASL 2061statements that could cause errors when the disassembled file is 2062compiled. ACPICA BZ 1243. David Box. 2063 2064iASL: Fixed a regression caused by the merger of the two versions of the 2065local strtoul64. Because of a dependency on a global variable, strtoul64 2066could return an error for integers greater than a 32-bit value. ACPICA BZ 20671260. 2068 2069iASL: Fixed a regression where a fault could occur for an ASL Return 2070statement if it invokes a control method that is not resolved. ACPICA BZ 20711264. 2072 2073AcpiXtract: Improved input file validation: detection of binary files and 2074non-acpidump text files. 2075 2076---------------------------------------- 207712 February 2016. Summary of changes for version 20160212: 2078 20791) ACPICA kernel-resident subsystem: 2080 2081Implemented full support for the ACPI 6.1 specification (released in 2082January). This version of the specification is available at: 2083http://www.uefi.org/specifications 2084 2085Only a relatively small number of changes were required in ACPICA to 2086support ACPI 6.1, in these areas: 2087- New predefined names 2088- New _HID values 2089- A new subtable for HEST 2090- A few other header changes for new values 2091 2092Ensure \_SB_._INI is executed before any _REG methods are executed. There 2093appears to be existing BIOS code that relies on this behavior. Lv Zheng. 2094 2095Reverted a change made in version 20151218 which enabled method 2096invocations to be targets of various ASL operators (SuperName and Target 2097grammar elements). While the new behavior is supported by the ACPI 2098specification, other AML interpreters do not support this behavior and 2099never will. The ACPI specification will be updated for ACPI 6.2 to remove 2100this support. Therefore, the change was reverted to the original ACPICA 2101behavior. 2102 2103ACPICA now supports the GCC 6 compiler. 2104 2105Current Release: (Note: build changes increased sizes) 2106 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 2107 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 2108Previous Release: 2109 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 2110 Debug Version: 200.4K Code, 81.9K Data, 282.3K Total 2111 2112 21132) iASL Compiler/Disassembler and Tools: 2114 2115Completed full support for the ACPI 6.0 External() AML opcode. The 2116compiler emits an external AML opcode for each ASL External statement. 2117This opcode is used by the disassembler to assist with the disassembly of 2118external control methods by specifying the required number of arguments 2119for the method. AML interpreters do not use this opcode. To ensure that 2120interpreters do not even see the opcode, a block of one or more external 2121opcodes is surrounded by an "If(0)" construct. As this feature becomes 2122commonly deployed in BIOS code, the ability of disassemblers to correctly 2123disassemble AML code will be greatly improved. David Box. 2124 2125iASL: Implemented support for an optional cross-reference output file. 2126The -lx option will create a the cross-reference file with the suffix 2127"xrf". Three different types of cross-reference are created in this file: 2128- List of object references made from within each control method 2129- Invocation (caller) list for each user-defined control method 2130- List of references to each non-method object in the namespace 2131 2132iASL: Method invocations as ASL Target operands are now disallowed and 2133flagged as errors in preparation for ACPI 6.2 (see the description of the 2134problem above). 2135 2136---------------------------------------- 21378 January 2016. Summary of changes for version 20160108: 2138 21391) ACPICA kernel-resident subsystem: 2140 2141Updated all ACPICA copyrights and signons to 2016: Added the 2016 2142copyright to all source code module headers and utility/tool signons. 2143This includes the standard Linux dual-license header. This affects 2144virtually every file in the ACPICA core subsystem, iASL compiler, all 2145ACPICA utilities, and the ACPICA test suite. 2146 2147Fixed a regression introduced in version 20151218 concerning the 2148execution of so-called module-level ASL/AML code. Namespace objects 2149created under a module-level If() construct were not properly/fully 2150entered into the namespace and could cause an interpreter fault when 2151accessed. 2152 2153Example Code and Data Size: These are the sizes for the OS-independent 2154acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2155debug version of the code includes the debug output trace mechanism and 2156has a much larger code and data size. 2157 2158Current Release: 2159 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 2160 Debug Version: 200.4K Code, 81.9K Data, 282.4K Total 2161 Previous Release: 2162 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 2163 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 2164 2165 21662) iASL Compiler/Disassembler and Tools: 2167 2168Fixed a problem with the compilation of the GpioIo and GpioInt resource 2169descriptors. The _PIN field name was incorrectly defined to be an array 2170of 32-bit values, but the _PIN values are in fact 16 bits each. This 2171would cause incorrect bit width warnings when using Word (16-bit) fields 2172to access the descriptors. 2173 2174 2175---------------------------------------- 217618 December 2015. Summary of changes for version 20151218: 2177 21781) ACPICA kernel-resident subsystem: 2179 2180Implemented per-AML-table execution of "module-level code" as individual 2181ACPI tables are loaded into the namespace during ACPICA initialization. 2182In other words, any module-level code within an AML table is executed 2183immediately after the table is loaded, instead of batched and executed 2184after all of the tables have been loaded. This provides compatibility 2185with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng, 2186David Box. 2187 2188To fully support the feature above, the default operation region handlers 2189for the SystemMemory, SystemIO, and PCI_Config address spaces are now 2190installed before any ACPI tables are loaded. This enables module-level 2191code to access these address spaces during the table load and module- 2192level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David 2193Box. 2194 2195Implemented several changes to the internal _REG support in conjunction 2196with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples 2197utilities for the changes above. Although these tools were changed, host 2198operating systems that simply use the default handlers for SystemMemory, 2199SystemIO, and PCI_Config spaces should not require any update. Lv Zheng. 2200 2201For example, in the code below, DEV1 is conditionally added to the 2202namespace by the DSDT via module-level code that accesses an operation 2203region. The SSDT references DEV1 via the Scope operator. DEV1 must be 2204created immediately after the DSDT is loaded in order for the SSDT to 2205successfully reference DEV1. Previously, this code would cause an 2206AE_NOT_EXIST exception during the load of the SSDT. Now, this code is 2207fully supported by ACPICA. 2208 2209 DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1) 2210 { 2211 OperationRegion (OPR1, SystemMemory, 0x400, 32) 2212 Field (OPR1, AnyAcc, NoLock, Preserve) 2213 { 2214 FLD1, 1 2215 } 2216 If (FLD1) 2217 { 2218 Device (\DEV1) 2219 { 2220 } 2221 } 2222 } 2223 DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1) 2224 { 2225 External (\DEV1, DeviceObj) 2226 Scope (\DEV1) 2227 { 2228 } 2229 } 2230 2231Fixed an AML interpreter problem where control method invocations were 2232not handled correctly when the invocation was itself a SuperName argument 2233to another ASL operator. In these cases, the method was not invoked. 2234ACPICA BZ 1002. Affects the following ASL operators that have a SuperName 2235argument: 2236 Store 2237 Acquire, Wait 2238 CondRefOf, RefOf 2239 Decrement, Increment 2240 Load, Unload 2241 Notify 2242 Signal, Release, Reset 2243 SizeOf 2244 2245Implemented automatic String-to-ObjectReference conversion support for 2246packages returned by predefined names (such as _DEP). A common BIOS error 2247is to add double quotes around an ObjectReference namepath, which turns 2248the reference into an unexpected string object. This support detects the 2249problem and corrects it before the package is returned to the caller that 2250invoked the method. Lv Zheng. 2251 2252Implemented extensions to the Concatenate operator. Concatenate now 2253accepts any type of object, it is not restricted to simply 2254Integer/String/Buffer. For objects other than these 3 basic data types, 2255the argument is treated as a string containing the name of the object 2256type. This expands the utility of Concatenate and the Printf/Fprintf 2257macros. ACPICA BZ 1222. 2258 2259Cleaned up the output of the ASL Debug object. The timer() value is now 2260optional and no longer emitted by default. Also, the basic data types of 2261Integer/String/Buffer are simply emitted as their values, without a data 2262type string -- since the data type is obvious from the output. ACPICA BZ 22631221. 2264 2265Example Code and Data Size: These are the sizes for the OS-independent 2266acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2267debug version of the code includes the debug output trace mechanism and 2268has a much larger code and data size. 2269 2270 Current Release: 2271 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 2272 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 2273 Previous Release: 2274 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 2275 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 2276 2277 22782) iASL Compiler/Disassembler and Tools: 2279 2280iASL: Fixed some issues with the ASL Include() operator. This operator 2281was incorrectly defined in the iASL parser rules, causing a new scope to 2282be opened for the code within the include file. This could lead to 2283several issues, including allowing ASL code that is technically illegal 2284and not supported by AML interpreters. Note, this does not affect the 2285related #include preprocessor operator. ACPICA BZ 1212. 2286 2287iASL/Disassembler: Implemented support for the ASL ElseIf operator. This 2288operator is essentially an ASL macro since there is no AML opcode 2289associated with it. The code emitted by the iASL compiler for ElseIf is 2290an Else opcode followed immediately by an If opcode. The disassembler 2291will now emit an ElseIf if it finds an Else immediately followed by an 2292If. This simplifies the decoded ASL, especially for deeply nested 2293If..Else and large Switch constructs. Thus, the disassembled code more 2294closely follows the original source ASL. ACPICA BZ 1211. Example: 2295 2296 Old disassembly: 2297 Else 2298 { 2299 If (Arg0 == 0x02) 2300 { 2301 Local0 = 0x05 2302 } 2303 } 2304 2305 New disassembly: 2306 ElseIf (Arg0 == 0x02) 2307 { 2308 Local0 = 0x05 2309 } 2310 2311AcpiExec: Added support for the new module level code behavior and the 2312early region installation. This required a small change to the 2313initialization, since AcpiExec must install its own operation region 2314handlers. 2315 2316AcpiExec: Added support to make the debug object timer optional. Default 2317is timer disabled. This cleans up the debug object output -- the timer 2318data is rarely used. 2319 2320AcpiExec: Multiple ACPI tables are now loaded in the order that they 2321appear on the command line. This can be important when there are 2322interdependencies/references between the tables. 2323 2324iASL/Templates. Add support to generate template files with multiple 2325SSDTs within a single output file. Also added ommand line support to 2326specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ 23271223, 1225. 2328 2329 2330---------------------------------------- 233124 November 2015. Summary of changes for version 20151124: 2332 23331) ACPICA kernel-resident subsystem: 2334 2335Fixed a possible regression for a previous update to FADT handling. The 2336FADT no longer has a fixed table ID, causing some issues with code that 2337was hardwired to a specific ID. Lv Zheng. 2338 2339Fixed a problem where the method auto-serialization could interfere with 2340the current SyncLevel. This change makes the auto-serialization support 2341transparent to the SyncLevel support and management. 2342 2343Removed support for the _SUB predefined name in AcpiGetObjectInfo. This 2344interface is intended for early access to the namespace during the 2345initial namespace device discovery walk. The _SUB method has been seen to 2346access operation regions in some cases, causing errors because the 2347operation regions are not fully initialized. 2348 2349AML Debugger: Fixed some issues with the terminate/quit/exit commands 2350that can cause faults. Lv Zheng. 2351 2352AML Debugger: Add thread ID support so that single-step mode only applies 2353to the AML Debugger thread. This prevents runtime errors within some 2354kernels. Lv Zheng. 2355 2356Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx 2357methods that are invoked by this interface are optional, removed warnings 2358emitted for the case where one or more of these methods do not exist. 2359ACPICA BZ 1208, original change by Prarit Bhargava. 2360 2361Made a major pass through the entire ACPICA source code base to 2362standardize formatting that has diverged a bit over time. There are no 2363functional changes, but this will of course cause quite a few code 2364differences from the previous ACPICA release. 2365 2366Example Code and Data Size: These are the sizes for the OS-independent 2367acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2368debug version of the code includes the debug output trace mechanism and 2369has a much larger code and data size. 2370 2371 Current Release: 2372 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 2373 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 2374 Previous Release: 2375 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 2376 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 2377 2378 23792) iASL Compiler/Disassembler and Tools: 2380 2381iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple 2382definition blocks within a single ASL file and the resulting AML file. 2383Support for this type of file was also added to the various tools that 2384use binary AML files: acpiexec, acpixtract, and the AML disassembler. The 2385example code below shows two definition blocks within the same file: 2386 2387 DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template", 23880x12345678) 2389 { 2390 } 2391 DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01) 2392 { 2393 } 2394 2395iASL: Enhanced typechecking for the Name() operator. All expressions for 2396the value of the named object must be reduced/folded to a single constant 2397at compile time, as per the ACPI specification (the AML definition of 2398Name()). 2399 2400iASL: Fixed some code indentation issues for the -ic and -ia options (C 2401and assembly headers). Now all emitted code correctly begins in column 1. 2402 2403iASL: Added an error message for an attempt to open a Scope() on an 2404object defined in an SSDT. The DSDT is always loaded into the namespace 2405first, so any attempt to open a Scope on an SSDT object will fail at 2406runtime. 2407 2408 2409---------------------------------------- 241030 September 2015. Summary of changes for version 20150930: 2411 24121) ACPICA kernel-resident subsystem: 2413 2414Debugger: Implemented several changes and bug fixes to assist support for 2415the in-kernel version of the AML debugger. Lv Zheng. 2416- Fix the "predefined" command for in-kernel debugger. 2417- Do not enter debug command loop for the help and version commands. 2418- Disallow "execute" command during execution/single-step of a method. 2419 2420Interpreter: Updated runtime typechecking for all operators that have 2421target operands. The operand is resolved and validated that it is legal. 2422For example, the target cannot be a non-data object such as a Device, 2423Mutex, ThermalZone, etc., as per the ACPI specification. 2424 2425Debugger: Fixed the double-mutex user I/O handshake to work when local 2426deadlock detection is enabled. 2427 2428Debugger: limited display of method locals and arguments (LocalX and 2429ArgX) to only those that have actually been initialized. This prevents 2430lines of extraneous output. 2431 2432Updated the definition of the NFIT table to correct the bit polarity of 2433one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED 2434 2435Example Code and Data Size: These are the sizes for the OS-independent 2436acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2437debug version of the code includes the debug output trace mechanism and 2438has a much larger code and data size. 2439 2440 Current Release: 2441 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 2442 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 2443 Previous Release: 2444 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 2445 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 2446 2447 24482) iASL Compiler/Disassembler and Tools: 2449 2450iASL: Improved the compile-time typechecking for operands of many of the 2451ASL operators: 2452 2453-- Added an option to disable compiler operand/operator typechecking (- 2454ot). 2455 2456-- For the following operators, the TermArg operands are now validated 2457when possible to be Integer data objects: BankField, OperationRegion, 2458DataTableRegion, Buffer, and Package. 2459 2460-- Store (Source, Target): Both the source and target operands are 2461resolved and checked that the operands are both legal. For example, 2462neither operand can be a non-data object such as a Device, Mutex, 2463ThermalZone, etc. Note, as per the ACPI specification, the CopyObject 2464operator can be used to store an object to any type of target object. 2465 2466-- Store (Source, Target): If the source is a Package object, the target 2467must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target 2468is a Package, the source must also be a Package. 2469 2470-- Store (Source, Target): A warning is issued if the source and target 2471resolve to the identical named object. 2472 2473-- Store (Source, <method invocation>): An error is generated for the 2474target method invocation, as this construct is not supported by the AML 2475interpreter. 2476 2477-- For all ASL math and logic operators, the target operand must be a 2478data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This 2479includes the function return value also. 2480 2481-- External declarations are also included in the typechecking where 2482possible. External objects defined using the UnknownObj keyword cannot be 2483typechecked, however. 2484 2485iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index 2486operator: 2487- Legacy code: Index(PKG1, 3) 2488- New ASL+ code: PKG1[3] 2489This completes the ACPI 6.0 ASL+ support as it was the only operator not 2490supported. 2491 2492iASL: Fixed the file suffix for the preprocessor output file (.i). Two 2493spaces were inadvertently appended to the filename, causing file access 2494and deletion problems on some systems. 2495 2496ASL Test Suite (ASLTS): Updated the master makefile to generate all 2497possible compiler output files when building the test suite -- thus 2498exercising these features of the compiler. These files are automatically 2499deleted when the test suite exits. 2500 2501 2502---------------------------------------- 250318 August 2015. Summary of changes for version 20150818: 2504 25051) ACPICA kernel-resident subsystem: 2506 2507Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv 2508Zheng. ACPICA BZ 1186. 2509 2510Completed development to ensure that the ACPICA Disassembler and Debugger 2511are fully standalone components of ACPICA. Removed cross-component 2512dependences. Lv Zheng. 2513 2514The max-number-of-AML-loops is now runtime configurable (previously was 2515compile-time only). This is essentially a loop timeout to force-abort 2516infinite AML loops. ACPCIA BZ 1192. 2517 2518Debugger: Cleanup output to dump ACPI names and namepaths without any 2519trailing underscores. Lv Zheng. ACPICA BZ 1135. 2520 2521Removed unnecessary conditional compilations across the Debugger and 2522Disassembler components where entire modules could be left uncompiled. 2523 2524The aapits test is deprecated and has been removed from the ACPICA git 2525tree. The test has never been completed and has not been maintained, thus 2526becoming rather useless. ACPICA BZ 1015, 794. 2527 2528A batch of small changes to close bugzilla and other reports: 2529- Remove duplicate code for _PLD processing. ACPICA BZ 1176. 2530- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185. 2531- iASL: Support POSIX yacc again in makefile. Jung-uk Kim. 2532- ACPI table support: general cleanup and simplification. Lv Zheng, Bob 2533Moore. 2534- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable. 2535ACPICA BZ 1184. 2536- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML 2537operators. 2538- Debugger: Split debugger initialization/termination interfaces. Lv 2539Zheng. 2540- AcpiExec: Emit OemTableId for SSDTs during the load phase for table 2541identification. 2542- AcpiExec: Add debug message during _REG method phase during table 2543load/init. 2544- AcpiNames: Fix a regression where some output was missing and no longer 2545emitted. 2546- Debugger: General cleanup and simplification. Lv Zheng. 2547- Disassembler: Cleanup use of several global option variables. Lv Zheng. 2548 2549Example Code and Data Size: These are the sizes for the OS-independent 2550acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2551debug version of the code includes the debug output trace mechanism and 2552has a much larger code and data size. 2553 2554 Current Release: 2555 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 2556 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 2557 Previous Release: 2558 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 2559 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 2560 2561 25622) iASL Compiler/Disassembler and Tools: 2563 2564AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT 2565were not handled properly and caused load errors. Now, properly invoke 2566and use the ACPICA auto-reallocate mechanism for ACPI table data 2567structures. ACPICA BZ 1188 2568 2569AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA 2570BZ 1190. 2571 2572AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For 2573AcpiExec, this means that no control methods (like _REG/_INI/_STA) are 2574executed during initialization. ACPICA BZ 1187, 1189. 2575 2576iASL/Disassembler: Implemented a prototype "listing" mode that emits AML 2577that corresponds to each disassembled ASL statement, to simplify 2578debugging. ACPICA BZ 1191. 2579 2580Debugger: Add option to the "objects" command to display a summary of the 2581current namespace objects (Object type and count). This is displayed if 2582the command is entered with no arguments. 2583 2584AcpiNames: Add -x option to specify debug level, similar to AcpiExec. 2585 2586 2587---------------------------------------- 258817 July 2015. Summary of changes for version 20150717: 2589 25901) ACPICA kernel-resident subsystem: 2591 2592Improved the partitioning between the Debugger and Disassembler 2593components. This allows the Debugger to be used standalone within kernel 2594code without the Disassembler (which is used for single stepping also). 2595This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng. 2596 2597Debugger: Implemented a new command to trace the execution of control 2598methods (Trace). This is especially useful for the in-kernel version of 2599the debugger when file I/O may not be available for method trace output. 2600See the ACPICA reference for more information. Lv Zheng. 2601 2602Moved all C library prototypes (used for the local versions of these 2603functions when requested) to a new header, acclib.h 2604Cleaned up the use of non-ANSI C library functions. These functions are 2605implemented locally in ACPICA. Moved all such functions to a common 2606source file, utnonansi.c 2607 2608Debugger: Fixed a problem with the "!!" command (get last command 2609executed) where the debugger could enter an infinite loop and eventually 2610crash. 2611 2612Removed the use of local macros that were used for some of the standard C 2613library functions to automatically cast input parameters. This mostly 2614affected the is* functions where the input parameter is defined to be an 2615int. This required a few modifications to the main ACPICA source code to 2616provide casting for these functions and eliminate possible compiler 2617warnings for these parameters. 2618 2619Across the source code, added additional status/error checking to resolve 2620issues discovered by static source code analysis tools such as Coverity. 2621 2622Example Code and Data Size: These are the sizes for the OS-independent 2623acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2624debug version of the code includes the debug output trace mechanism and 2625has a much larger code and data size. 2626 2627 Current Release: 2628 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 2629 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 2630 Previous Release: 2631 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 2632 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 2633 2634 26352) iASL Compiler/Disassembler and Tools: 2636 2637iASL: Fixed a regression where the device map file feature no longer 2638worked properly when used in conjunction with the disassembler. It only 2639worked properly with the compiler itself. 2640 2641iASL: Implemented a new warning for method LocalX variables that are set 2642but never used (similar to a C compiler such as gcc). This also applies 2643to ArgX variables that are not defined by the parent method, and are 2644instead (legally) used as local variables. 2645 2646iASL/Preprocessor: Finished the pass-through of line numbers from the 2647preprocessor to the compiler. This ensures that compiler errors/warnings 2648have the correct original line numbers and filenames, regardless of any 2649#include files. 2650 2651iASL/Preprocessor: Fixed a couple of issues with comment handling and the 2652pass-through of comments to the preprocessor output file (which becomes 2653the compiler input file). Also fixed a problem with // comments that 2654appear after a math expression. 2655 2656iASL: Added support for the TCPA server table to the table compiler and 2657template generator. (The client table was already previously supported) 2658 2659iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to 2660identify the iASL compiler. 2661 2662Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined 2663multiple times. The new names are ACPI_SIGN_NEGATIVE and 2664ACPI_SIGN_POSITIVE. 2665 2666AcpiHelp: Update to expand help messages for the iASL preprocessor 2667directives. 2668 2669 2670---------------------------------------- 267119 June 2015. Summary of changes for version 20150619: 2672 2673Two regressions in version 20150616 have been addressed: 2674 2675Fixes some problems/issues with the C library macro removal (ACPI_STRLEN, 2676etc.) This update changes ACPICA to only use the standard headers for 2677functions, or the prototypes for the local versions of the C library 2678functions. Across the source code, this required some additional casts 2679for some Clib invocations for portability. Moved all local prototypes to 2680a new file, acclib.h 2681 2682Fixes several problems with recent changes to the handling of the FACS 2683table that could cause some systems not to boot. 2684 2685 2686---------------------------------------- 268716 June 2015. Summary of changes for version 20150616: 2688 2689 26901) ACPICA kernel-resident subsystem: 2691 2692Across the entire ACPICA source code base, the various macros for the C 2693library functions (such as ACPI_STRLEN, etc.) have been removed and 2694replaced by the standard C library names (strlen, etc.) The original 2695purpose for these macros is no longer applicable. This simplification 2696reduces the number of macros used in the ACPICA source code 2697significantly, improving readability and maintainability. 2698 2699Implemented support for a new ACPI table, the OSDT. This table, the 2700"override" SDT, can be loaded directly by the host OS at boot time. It 2701enables the replacement of existing namespace objects that were installed 2702via the DSDT and/or SSDTs. The primary purpose for this is to replace 2703buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated 2704for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob 2705Moore. 2706 2707Added support for systems with (improperly) two FACS tables -- a "32-bit" 2708table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit 2709X field). This change will support both automatically. There continues to 2710be systems found with this issue. This support requires a change to the 2711AcpiSetFirmwareWakingVector interface. Also, a public global variable has 2712been added to allow the host to select which FACS is desired 2713(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more 2714details Lv Zheng. 2715 2716Added a new feature to allow for systems that do not contain an FACS. 2717Although this is already supported on hardware-reduced platforms, the 2718feature has been extended for all platforms. The reasoning is that we do 2719not want to abort the entire ACPICA initialization just because the 2720system is seriously buggy and has no FACS. 2721 2722Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were 2723not correctly transcribed from the ACPI specification in ACPICA version 272420150515. 2725 2726Implemented support for the _CLS object in the AcpiGetObjectInfo external 2727interface. 2728 2729Updated the definitions of the TCPA and TPM2 ACPI tables to the more 2730recent TCG ACPI Specification, December 14, 2014. Table disassembler and 2731compiler also updated. Note: The TCPA "server" table is not supported by 2732the disassembler/table-compiler at this time. 2733 2734ACPI 6.0: Added definitions for the new GIC version field in the MADT. 2735 2736Example Code and Data Size: These are the sizes for the OS-independent 2737acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2738debug version of the code includes the debug output trace mechanism and 2739has a much larger code and data size. 2740 2741 Current Release: 2742 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 2743 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 2744 Previous Release: 2745 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 2746 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 2747 2748 27492) iASL Compiler/Disassembler and Tools: 2750 2751Disassembler: Fixed a problem with the new symbolic operator disassembler 2752where incorrect ASL code could be emitted in some cases for the "non- 2753commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and 2754ShiftRight. The actual problem cases seem to be rather unusual in common 2755ASL code, however. David Box. 2756 2757Modified the linux version of acpidump to obtain ACPI tables from not 2758just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv 2759Zheng. 2760 2761iASL: Fixed a problem where the user preprocessor output file (.i) 2762contained extra data that was not expected. The compiler was using this 2763file as a temporary file and passed through #line directives in order to 2764keep compiler error messages in sync with the input file and line number 2765across multiple include files. The (.i) is no longer a temporary file as 2766the compiler uses a new, different file for the original purpose. 2767 2768iASL: Fixed a problem where comments within the original ASL source code 2769file were not passed through to the preprocessor output file, nor any 2770listing files. 2771 2772iASL: Fixed some issues for the handling of the "#include" preprocessor 2773directive and the similar (but not the same) "Include" ASL operator. 2774 2775iASL: Add support for the new OSDT in both the disassembler and compiler. 2776 2777iASL: Fixed a problem with the constant folding support where a Buffer 2778object could be incorrectly generated (incorrectly formed) during a 2779conversion to a Store() operator. 2780 2781AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new 2782description text for the _REV predefined name. _REV now permanently 2783returns 2, as per the ACPI 6.0 specification. 2784 2785Debugger: Enhanced the output of the Debug ASL object for references 2786produced by the Index operator. For Buffers and strings, only output the 2787actual byte pointed to by the index. For packages, only print the single 2788package element decoded by the index. Previously, the entire 2789buffer/string/package was emitted. 2790 2791iASL/Table-compiler: Fixed a regression where the "generic" data types 2792were no longer recognized, causing errors. 2793 2794 2795---------------------------------------- 279615 May 2015. Summary of changes for version 20150515: 2797 2798This release implements most of ACPI 6.0 as described below. 2799 28001) ACPICA kernel-resident subsystem: 2801 2802Implemented runtime argument checking and return value checking for all 2803new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI, 2804_MTL, _PRR, _RDI, _RST, _TFP, _TSN. 2805 2806Example Code and Data Size: These are the sizes for the OS-independent 2807acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2808debug version of the code includes the debug output trace mechanism and 2809has a much larger code and data size. 2810 2811 Current Release: 2812 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 2813 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 2814 Previous Release: 2815 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 2816 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 2817 2818 28192) iASL Compiler/Disassembler and Tools: 2820 2821iASL compiler: Added compile-time support for all new ACPI 6.0 predefined 2822names (argument count validation and return value typechecking.) 2823 2824iASL disassembler and table compiler: implemented support for all new 2825ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV. 2826 2827iASL disassembler and table compiler: Added ACPI 6.0 changes to existing 2828tables: FADT, MADT. 2829 2830iASL preprocessor: Added a new directive to enable inclusion of binary 2831blobs into ASL code. The new directive is #includebuffer. It takes a 2832binary file as input and emits a named ascii buffer object into the ASL 2833code. 2834 2835AcpiHelp: Added support for all new ACPI 6.0 predefined names. 2836 2837AcpiHelp: Added a new option, -d, to display all iASL preprocessor 2838directives. 2839 2840AcpiHelp: Added a new option, -t, to display all known/supported ACPI 2841tables. 2842 2843 2844---------------------------------------- 284510 April 2015. Summary of changes for version 20150410: 2846 2847Reverted a change introduced in version 20150408 that caused 2848a regression in the disassembler where incorrect operator 2849symbols could be emitted. 2850 2851 2852---------------------------------------- 285308 April 2015. Summary of changes for version 20150408: 2854 2855 28561) ACPICA kernel-resident subsystem: 2857 2858Permanently set the return value for the _REV predefined name. It now 2859returns 2 (was 5). This matches other ACPI implementations. _REV will be 2860deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2 2861for ACPI 2.0 and later. It should never be used to differentiate or 2862identify operating systems. 2863 2864Added the "Windows 2015" string to the _OSI support. ACPICA will now 2865return TRUE to a query with this string. 2866 2867Fixed several issues with the local version of the printf function. 2868 2869Added the C99 compiler option (-std=c99) to the Unix makefiles. 2870 2871 Current Release: 2872 Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total 2873 Debug Version: 195.2K Code, 80.7K Data, 275.9K Total 2874 Previous Release: 2875 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 2876 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 2877 2878 28792) iASL Compiler/Disassembler and Tools: 2880 2881iASL: Implemented an enhancement to the constant folding feature to 2882transform the parse tree to a simple Store operation whenever possible: 2883 Add (2, 3, X) ==> is converted to: Store (5, X) 2884 X = 2 + 3 ==> is converted to: Store (5, X) 2885 2886Updated support for the SLIC table (Software Licensing Description Table) 2887in both the Data Table compiler and the disassembler. The SLIC table 2888support now conforms to "Microsoft Software Licensing Tables (SLIC and 2889MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data 2890following the ACPI header is now defined to be "Proprietary Data", and as 2891such, can only be entered or displayed as a hex data block. 2892 2893Implemented full support for the MSDM table as described in the document 2894above. Note: The format of MSDM is similar to SLIC. Any MSDM data 2895following the ACPI header is defined to be "Proprietary Data", and can 2896only be entered or displayed as a hex data block. 2897 2898Implemented the -Pn option for the iASL Table Compiler (was only 2899implemented for the ASL compiler). This option disables the iASL 2900preprocessor. 2901 2902Disassembler: For disassembly of Data Tables, added a comment field 2903around the Ascii equivalent data that is emitted as part of the "Raw 2904Table Data" block. This prevents the iASL Preprocessor from possible 2905confusion if/when the table is compiled. 2906 2907Disassembler: Added an option (-df) to force the disassembler to assume 2908that the table being disassembled contains valid AML. This feature is 2909useful for disassembling AML files that contain ACPI signatures other 2910than DSDT or SSDT (such as OEMx or other signatures). 2911 2912Changes for the EFI version of the tools: 29131) Fixed a build error/issue 29142) Fixed a cast warning 2915 2916iASL: Fixed a path issue with the __FILE__ operator by making the 2917directory prefix optional within the internal SplitInputFilename 2918function. 2919 2920Debugger: Removed some unused global variables. 2921 2922Tests: Updated the makefile for proper generation of the AAPITS suite. 2923 2924 2925---------------------------------------- 292604 February 2015. Summary of changes for version 20150204: 2927 2928ACPICA kernel-resident subsystem: 2929 2930Updated all ACPICA copyrights and signons to 2014. Added the 2014 2931copyright to all module headers and signons, including the standard Linux 2932header. This affects virtually every file in the ACPICA core subsystem, 2933iASL compiler, all ACPICA utilities, and the test suites. 2934 2935Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues. 2936A raw gpe handling mechanism was created to allow better handling of GPE 2937storms that aren't easily managed by the normal handler. The raw handler 2938allows disabling/renabling of the the GPE so that interrupt storms can be 2939avoided in cases where events cannot be timely serviced. In this 2940scenario, handlers should use the AcpiSetGpe() API to disable/enable the 2941GPE. This API will leave the reference counts undisturbed, thereby 2942preventing unintentional clearing of the GPE when the intent in only to 2943temporarily disable it. Raw handlers allow enabling and disabling of a 2944GPE by removing GPE register locking. As such, raw handlers much provide 2945their own locks while using GPE API's to protect access to GPE data 2946structures. 2947Lv Zheng 2948 2949Events: Always modify GPE registers under the GPE lock. 2950Applies GPE lock around AcpiFinishGpe() to protect access to GPE register 2951values. Reported as bug by joe.liu@apple.com. 2952 2953Unix makefiles: Separate option to disable optimizations and 2954_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the 2955NOOPT disable option and creates a separate flag (NOFORTIFY) for this 2956purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined 2957errors when building ACPICA. This allows disabling the option without 2958also having to disable optimazations. 2959David Box 2960 2961 Current Release: 2962 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 2963 Debug Version: 199.2K Code, 82.4K Data, 281.6K Total 2964 2965-- 2966-------------------------------------- 296707 November 2014. Summary of changes for version 20141107: 2968 2969This release is available at https://acpica.org/downloads 2970 2971This release introduces and implements language extensions to ASL that 2972provide support for symbolic ("C-style") operators and expressions. These 2973language extensions are known collectively as ASL+. 2974 2975 29761) iASL Compiler/Disassembler and Tools: 2977 2978Disassembler: Fixed a problem with disassembly of the UartSerialBus 2979macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E. 2980Box. 2981 2982Disassembler: Fixed the Unicode macro support to add escape sequences. 2983All non-printable ASCII values are emitted as escape sequences, as well 2984as the standard escapes for quote and backslash. Ensures that the 2985disassembled macro can be correctly recompiled. 2986 2987iASL: Added Printf/Fprintf macros for formatted output. These macros are 2988translated to existing AML Concatenate and Store operations. Printf 2989writes to the ASL Debug object. Fprintf allows the specification of an 2990ASL name as the target. Only a single format specifier is required, %o, 2991since the AML interpreter dynamically converts objects to the required 2992type. David E. Box. 2993 2994 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 2995 (Concatenate (Concatenate (Concatenate ("", Arg0), 2996 ": Unexpected value for "), Arg1), ", "), Arg2), 2997 " at line "), Arg3), Debug) 2998 2999 (new) Printf ("%o: Unexpected value for %o, %o at line %o", 3000 Arg0, Arg1, Arg2, Arg3) 3001 3002 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 3003 ("", Arg1), ": "), Arg0), " Successful"), STR1) 3004 3005 (new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0) 3006 3007iASL: Added debug options (-bp, -bt) to dynamically prune levels of the 3008ASL parse tree before the AML code is generated. This allows blocks of 3009ASL code to be removed in order to help locate and identify problem 3010devices and/or code. David E. Box. 3011 3012AcpiExec: Added support (-fi) for an optional namespace object 3013initialization file. This file specifies initial values for namespace 3014objects as necessary for debugging and testing different ASL code paths 3015that may be taken as a result of BIOS options. 3016 3017 30182) Overview of symbolic operator support for ASL (ASL+) 3019------------------------------------------------------- 3020 3021As an extension to the ASL language, iASL implements support for symbolic 3022(C-style) operators for math and logical expressions. This can greatly 3023simplify ASL code as well as improve both readability and 3024maintainability. These language extensions can exist concurrently with 3025all legacy ASL code and expressions. 3026 3027The symbolic extensions are 100% compatible with existing AML 3028interpreters, since no new AML opcodes are created. To implement the 3029extensions, the iASL compiler transforms the symbolic expressions into 3030the legacy ASL/AML equivalents at compile time. 3031 3032Full symbolic expressions are supported, along with the standard C 3033precedence and associativity rules. 3034 3035Full disassembler support for the symbolic expressions is provided, and 3036creates an automatic migration path for existing ASL code to ASL+ code 3037via the disassembly process. By default, the disassembler now emits ASL+ 3038code with symbolic expressions. An option (-dl) is provided to force the 3039disassembler to emit legacy ASL code if desired. 3040 3041Below is the complete list of the currently supported symbolic operators 3042with examples. See the iASL User Guide for additional information. 3043 3044 3045ASL+ Syntax Legacy ASL Equivalent 3046----------- --------------------- 3047 3048 // Math operators 3049 3050Z = X + Y Add (X, Y, Z) 3051Z = X - Y Subtract (X, Y, Z) 3052Z = X * Y Multiply (X, Y, Z) 3053Z = X / Y Divide (X, Y, , Z) 3054Z = X % Y Mod (X, Y, Z) 3055Z = X << Y ShiftLeft (X, Y, Z) 3056Z = X >> Y ShiftRight (X, Y, Z) 3057Z = X & Y And (X, Y, Z) 3058Z = X | Y Or (X, Y, Z) 3059Z = X ^ Y Xor (X, Y, Z) 3060Z = ~X Not (X, Z) 3061X++ Increment (X) 3062X-- Decrement (X) 3063 3064 // Logical operators 3065 3066(X == Y) LEqual (X, Y) 3067(X != Y) LNotEqual (X, Y) 3068(X < Y) LLess (X, Y) 3069(X > Y) LGreater (X, Y) 3070(X <= Y) LLessEqual (X, Y) 3071(X >= Y) LGreaterEqual (X, Y) 3072(X && Y) LAnd (X, Y) 3073(X || Y) LOr (X, Y) 3074(!X) LNot (X) 3075 3076 // Assignment and compound assignment operations 3077 3078X = Y Store (Y, X) 3079X += Y Add (X, Y, X) 3080X -= Y Subtract (X, Y, X) 3081X *= Y Multiply (X, Y, X) 3082X /= Y Divide (X, Y, , X) 3083X %= Y Mod (X, Y, X) 3084X <<= Y ShiftLeft (X, Y, X) 3085X >>= Y ShiftRight (X, Y, X) 3086X &= Y And (X, Y, X) 3087X |= Y Or (X, Y, X) 3088X ^= Y Xor (X, Y, X) 3089 3090 30913) ASL+ Examples: 3092----------------- 3093 3094Legacy ASL: 3095 If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual ( 3096 And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 30970x03FB), 3098 0x02E0), LEqual (And (R540, 0x03FB), 0x02E0)))) 3099 { 3100 And (MEMB, 0xFFFFFFF0, SRMB) 3101 Store (MEMB, Local2) 3102 Store (PDBM, Local1) 3103 And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) 3104 Store (SRMB, MEMB) 3105 Or (PDBM, 0x02, PDBM) 3106 } 3107 3108ASL+ version: 3109 If (((R510 & 0x03FB) == 0x02E0) || 3110 ((R520 & 0x03FB) == 0x02E0) || 3111 ((R530 & 0x03FB) == 0x02E0) || 3112 ((R540 & 0x03FB) == 0x02E0)) 3113 { 3114 SRMB = (MEMB & 0xFFFFFFF0) 3115 Local2 = MEMB 3116 Local1 = PDBM 3117 PDBM &= 0xFFFFFFFFFFFFFFF9 3118 MEMB = SRMB 3119 PDBM |= 0x02 3120 } 3121 3122Legacy ASL: 3123 Store (0x1234, Local1) 3124 Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3) 3125 Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3) 3126 Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3) 3127 Store (Index (PKG1, 0x03), Local6) 3128 Store (Add (Local3, Local2), Debug) 3129 Add (Local1, 0x0F, Local2) 3130 Add (Local1, Multiply (Local2, Local3), Local2) 3131 Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3) 3132 3133ASL+ version: 3134 Local1 = 0x1234 3135 Local3 = (((Local1 + TEST) + 0x20) * Local2) 3136 Local3 = (Local2 * ((Local1 + TEST) + 0x20)) 3137 Local3 = (Local1 + (TEST + (0x20 * Local2))) 3138 Local6 = Index (PKG1, 0x03) 3139 Debug = (Local3 + Local2) 3140 Local2 = (Local1 + 0x0F) 3141 Local2 = (Local1 + (Local2 * Local3)) 3142 Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1)) 3143 3144 3145---------------------------------------- 314626 September 2014. Summary of changes for version 20140926: 3147 31481) ACPICA kernel-resident subsystem: 3149 3150Updated the GPIO operation region handler interface (GeneralPurposeIo). 3151In order to support GPIO Connection objects with multiple pins, along 3152with the related Field objects, the following changes to the interface 3153have been made: The Address is now defined to be the offset in bits of 3154the field unit from the previous invocation of a Connection. It can be 3155viewed as a "Pin Number Index" into the connection resource descriptor. 3156The BitWidth is the exact bit width of the field. It is usually one bit, 3157but not always. See the ACPICA reference guide (section 8.8.6.2.1) for 3158additional information and examples. 3159 3160GPE support: During ACPICA/GPE initialization, ensure that all GPEs with 3161corresponding _Lxx/_Exx methods are disabled (they may have been enabled 3162by the firmware), so that they cannot fire until they are enabled via 3163AcpiUpdateAllGpes. Rafael J. Wysocki. 3164 3165Added a new return flag for the Event/GPE status interfaces -- 3166AcpiGetEventStatus and AcpiGetGpeStatus. The new 3167ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or 3168GPE currently has a handler associated with it, and can thus actually 3169affect the system. Lv Zheng. 3170 3171Example Code and Data Size: These are the sizes for the OS-independent 3172acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3173debug version of the code includes the debug output trace mechanism and 3174has a much larger code and data size. 3175 3176 Current Release: 3177 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 3178 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 3179 Previous Release: 3180 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 3181 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 3182 31832) iASL Compiler/Disassembler and Tools: 3184 3185iASL: Fixed a memory allocation/free regression introduced in 20140828 3186that could cause the compiler to crash. This was introduced inadvertently 3187during the effort to eliminate compiler memory leaks. ACPICA BZ 1111, 31881113. 3189 3190iASL: Removed two error messages that have been found to create false 3191positives, until they can be fixed and fully validated (ACPICA BZ 1112): 31921) Illegal forward reference within a method 31932) Illegal reference across two methods 3194 3195iASL: Implemented a new option (-lm) to create a hardware mapping file 3196that summarizes all GPIO, I2C, SPI, and UART connections. This option 3197works for both the compiler and disassembler. See the iASL compiler user 3198guide for additional information and examples (section 6.4.6). 3199 3200AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to 3201version 2. This corrects the AE_BAD_HEADER exception seen on systems with 3202a version 1 RSDP. Lv Zheng ACPICA BZ 1097. 3203 3204AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode 3205unless STDIN is actually a terminal. Assists with batch-mode processing. 3206ACPICA BZ 1114. 3207 3208Disassembler/AcpiHelp: Added another large group of recognized _HID 3209values. 3210 3211 3212---------------------------------------- 321328 August 2014. Summary of changes for version 20140828: 3214 32151) ACPICA kernel-resident subsystem: 3216 3217Fixed a problem related to the internal use of the Timer() operator where 3218a 64-bit divide could cause an attempted link to a double-precision math 3219library. This divide is not actually necessary, so the code was 3220restructured to eliminate it. Lv Zheng. 3221 3222ACPI 5.1: Added support for the runtime validation of the _DSD package 3223(similar to the iASL support). 3224 3225ACPI 5.1/Headers: Added support for the GICC affinity subtable to the 3226SRAT table. Hanjun Guo <hanjun.guo@linaro.org>. 3227 3228Example Code and Data Size: These are the sizes for the OS-independent 3229acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3230debug version of the code includes the debug output trace mechanism and 3231has a much larger code and data size. 3232 3233 Current Release: 3234 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 3235 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 3236 Previous Release: 3237 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total1 3238 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 3239 32402) iASL Compiler/Disassembler and Tools: 3241 3242AcpiExec: Fixed a problem on unix systems where the original terminal 3243state was not always properly restored upon exit. Seen when using the -v 3244option. ACPICA BZ 1104. 3245 3246iASL: Fixed a problem with the validation of the ranges/length within the 3247Memory24 resource descriptor. There was a boundary condition when the 3248range was equal to the (length -1) caused by the fact that these values 3249are defined in 256-byte blocks, not bytes. ACPICA BZ 1098 3250 3251Disassembler: Fixed a problem with the GpioInt descriptor interrupt 3252polarity 3253flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword 3254is 3255now supported properly. 3256 3257ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported 3258in the disassembler, data table compiler, and table template generator. 3259 3260iASL: Added a requirement for Device() objects that one of either a _HID 3261or _ADR must exist within the scope of a Device, as per the ACPI 3262specification. Remove a similar requirement that was incorrectly in place 3263for the _DSD object. 3264 3265iASL: Added error detection for illegal named references within control 3266methods that would cause runtime failures. Now trapped as errors are: 1) 3267References to objects within a non-parent control method. 2) Forward 3268references (within a method) -- for control methods, AML interpreters use 3269a one-pass parse of control methods. ACPICA BZ 1008. 3270 3271iASL: Added error checking for dependencies related to the _PSx power 3272methods. ACPICA BZ 1029. 32731) For _PS0, one of these must exist within the same scope: _PS1, _PS2, 3274_PS3. 32752) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same 3276scope. 3277 3278iASL and table compiler: Cleanup miscellaneous memory leaks by fully 3279deploying the existing object and string caches and adding new caches for 3280the table compiler. 3281 3282iASL: Split the huge parser source file into multiple subfiles to improve 3283manageability. Generation now requires the M4 macro preprocessor, which 3284is part of the Bison distribution on both unix and windows platforms. 3285 3286AcpiSrc: Fixed and removed all extraneous warnings generated during 3287entire ACPICA source code scan and/or conversion. 3288 3289 3290---------------------------------------- 3291 329224 July 2014. Summary of changes for version 20140724: 3293 3294The ACPI 5.1 specification has been released and is available at: 3295http://uefi.org/specs/access 3296 3297 32980) ACPI 5.1 support in ACPICA: 3299 3300ACPI 5.1 is fully supported in ACPICA as of this release. 3301 3302New predefined names. Support includes iASL and runtime ACPICA 3303validation. 3304 _CCA (Cache Coherency Attribute). 3305 _DSD (Device-Specific Data). David Box. 3306 3307Modifications to existing ACPI tables. Support includes headers, iASL 3308Data Table compiler, disassembler, and the template generator. 3309 FADT - New fields and flags. Graeme Gregory. 3310 GTDT - One new subtable and new fields. Tomasz Nowicki. 3311 MADT - Two new subtables. Tomasz Nowicki. 3312 PCCT - One new subtable. 3313 3314Miscellaneous. 3315 New notification type for System Resource Affinity change events. 3316 3317 33181) ACPICA kernel-resident subsystem: 3319 3320Fixed a regression introduced in 20140627 where a fault can happen during 3321the deletion of Alias AML namespace objects. The problem affected both 3322the core ACPICA and the ACPICA tools including iASL and AcpiExec. 3323 3324Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a 3325simple mechanism to enable wake GPEs that have no associated handler or 3326control method. Rafael Wysocki. 3327 3328Updated the AcpiEnableGpe interface to disallow the enable if there is no 3329handler or control method associated with the particular GPE. This will 3330help avoid meaningless GPEs and even GPE floods. Rafael Wysocki. 3331 3332Updated GPE handling and dispatch by disabling the GPE before clearing 3333the status bit for edge-triggered GPEs. Lv Zheng. 3334 3335Added Timer() support to the AML Debug object. The current timer value is 3336now displayed with each invocation of (Store to) the debug object to 3337enable simple generation of execution times for AML code (method 3338execution for example.) ACPICA BZ 1093. 3339 3340Example Code and Data Size: These are the sizes for the OS-independent 3341acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3342debug version of the code includes the debug output trace mechanism and 3343has a much larger code and data size. 3344 3345 Current Release: 3346 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total 3347 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 3348 Previous Release: 3349 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 3350 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 3351 3352 33532) iASL Compiler/Disassembler and Tools: 3354 3355Fixed an issue with the recently added local printf implementation, 3356concerning width/precision specifiers that could cause incorrect output. 3357Lv Zheng. ACPICA BZ 1094. 3358 3359Disassembler: Added support to detect buffers that contain UUIDs and 3360disassemble them to an invocation of the ToUUID operator. Also emit 3361commented descriptions of known ACPI-related UUIDs. 3362 3363AcpiHelp: Added support to display known ACPI-related UUIDs. New option, 3364-u. Adds three new files. 3365 3366iASL: Update table compiler and disassembler for DMAR table changes that 3367were introduced in September 2013. With assistance by David Woodhouse. 3368 3369---------------------------------------- 337027 June 2014. Summary of changes for version 20140627: 3371 33721) ACPICA kernel-resident subsystem: 3373 3374Formatted Output: Implemented local versions of standard formatted output 3375utilities such as printf, etc. Over time, it has been discovered that 3376there are in fact many portability issues with printf, and the addition 3377of this feature will fix/prevent these issues once and for all. Some 3378known issues are summarized below: 3379 33801) Output of 64-bit values is not portable. For example, UINT64 is %ull 3381for the Linux kernel and is %uI64 for some MSVC versions. 33822) Invoking printf consistently in a manner that is portable across both 338332-bit and 64-bit platforms is difficult at best in many situations. 33843) The output format for pointers varies from system to system (leading 3385zeros especially), and leads to inconsistent output from ACPICA across 3386platforms. 33874) Certain platform-specific printf formats may conflict with ACPICA use. 33885) If there is no local C library available, ACPICA now has local support 3389for printf. 3390 3391-- To address these printf issues in a complete manner, ACPICA now 3392directly implements a small subset of printf format specifiers, only 3393those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng. 3394 3395Implemented support for ACPICA generation within the EFI environment. 3396Initially, the AcpiDump utility is supported in the UEFI shell 3397environment. Lv Zheng. 3398 3399Added a new external interface, AcpiLogError, to improve ACPICA 3400portability. This allows the host to redirect error messages from the 3401ACPICA utilities. Lv Zheng. 3402 3403Added and deployed new OSL file I/O interfaces to improve ACPICA 3404portability: 3405 AcpiOsOpenFile 3406 AcpiOsCloseFile 3407 AcpiOsReadFile 3408 AcpiOsWriteFile 3409 AcpiOsGetFileOffset 3410 AcpiOsSetFileOffset 3411There are C library implementations of these functions in the new file 3412service_layers/oslibcfs.c -- however, the functions can be implemented by 3413the local host in any way necessary. Lv Zheng. 3414 3415Implemented a mechanism to disable/enable ACPI table checksum validation 3416at runtime. This can be useful when loading tables very early during OS 3417initialization when it may not be possible to map the entire table in 3418order to compute the checksum. Lv Zheng. 3419 3420Fixed a buffer allocation issue for the Generic Serial Bus support. 3421Originally, a fixed buffer length was used. This change allows for 3422variable-length buffers based upon the protocol indicated by the field 3423access attributes. Reported by Lan Tianyu. Lv Zheng. 3424 3425Fixed a problem where an object detached from a namespace node was not 3426properly terminated/cleared and could cause a circular list problem if 3427reattached. ACPICA BZ 1063. David Box. 3428 3429Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick. 3430 3431Fixed a possible memory leak in an error return path within the function 3432AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King. 3433 3434Example Code and Data Size: These are the sizes for the OS-independent 3435acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3436debug version of the code includes the debug output trace mechanism and 3437has a much larger code and data size. 3438 3439 Current Release: 3440 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 3441 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 3442 Previous Release: 3443 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 3444 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 3445 3446 34472) iASL Compiler/Disassembler and Tools: 3448 3449Disassembler: Add dump of ASCII equivalent text within a comment at the 3450end of each line of the output for the Buffer() ASL operator. 3451 3452AcpiDump: Miscellaneous changes: 3453 Fixed repetitive table dump in -n mode. 3454 For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if 3455the ACPI 2.0 GUID fails. 3456 3457iASL: Fixed a problem where the compiler could fault if incorrectly given 3458an acpidump output file as input. ACPICA BZ 1088. David Box. 3459 3460AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if 3461they are invoked without any arguments. 3462 3463Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ 34641086. Colin Ian King. 3465 3466Disassembler: Cleaned up a block of code that extracts a parent Op 3467object. Added a comment that explains that the parent is guaranteed to be 3468valid in this case. ACPICA BZ 1069. 3469 3470 3471---------------------------------------- 347224 April 2014. Summary of changes for version 20140424: 3473 34741) ACPICA kernel-resident subsystem: 3475 3476Implemented support to skip/ignore NULL address entries in the RSDT/XSDT. 3477Some of these tables are known to contain a trailing NULL entry. Lv 3478Zheng. 3479 3480Removed an extraneous error message for the case where there are a large 3481number of system GPEs (> 124). This was the "32-bit FADT register is too 3482long to convert to GAS struct" message, which is irrelevant for GPEs 3483since the GPEx_BLK_LEN fields of the FADT are always used instead of the 3484(limited capacity) GAS bit length. Also, several changes to ensure proper 3485support for GPE numbers > 255, where some "GPE number" fields were 8-bits 3486internally. 3487 3488Implemented and deployed additional configuration support for the public 3489ACPICA external interfaces. Entire classes of interfaces can now be 3490easily modified or configured out, replaced by stubbed inline functions 3491by default. Lv Zheng. 3492 3493Moved all public ACPICA runtime configuration globals to the public 3494ACPICA external interface file for convenience. Also, removed some 3495obsolete/unused globals. See the file acpixf.h. Lv Zheng. 3496 3497Documentation: Added a new section to the ACPICA reference describing the 3498maximum number of GPEs that can be supported by the FADT-defined GPEs in 3499block zero and one. About 1200 total. See section 4.4.1 of the ACPICA 3500reference. 3501 3502Example Code and Data Size: These are the sizes for the OS-independent 3503acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3504debug version of the code includes the debug output trace mechanism and 3505has a much larger code and data size. 3506 3507 Current Release: 3508 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 3509 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 3510 Previous Release: 3511 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 3512 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 3513 3514 35152) iASL Compiler/Disassembler and Tools: 3516 3517iASL and disassembler: Add full support for the LPIT table (Low Power 3518Idle Table). Includes support in the disassembler, data table compiler, 3519and template generator. 3520 3521AcpiDump utility: 35221) Add option to force the use of the RSDT (over the XSDT). 35232) Improve validation of the RSDP signature (use 8 chars instead of 4). 3524 3525iASL: Add check for predefined packages that are too large. For 3526predefined names that contain subpackages, check if each subpackage is 3527too large. (Check for too small already exists.) 3528 3529Debugger: Updated the GPE command (which simulates a GPE by executing the 3530GPE code paths in ACPICA). The GPE device is now optional, and defaults 3531to the GPE 0/1 FADT-defined blocks. 3532 3533Unix application OSL: Update line-editing support. Add additional error 3534checking and take care not to reset terminal attributes on exit if they 3535were never set. This should help guarantee that the terminal is always 3536left in the previous state on program exit. 3537 3538 3539---------------------------------------- 354025 March 2014. Summary of changes for version 20140325: 3541 35421) ACPICA kernel-resident subsystem: 3543 3544Updated the auto-serialize feature for control methods. This feature 3545automatically serializes all methods that create named objects in order 3546to prevent runtime errors. The update adds support to ignore the 3547currently executing AML SyncLevel when invoking such a method, in order 3548to prevent disruption of any existing SyncLevel priorities that may exist 3549in the AML code. Although the use of SyncLevels is relatively rare, this 3550change fixes a regression where an AE_AML_MUTEX_ORDER exception can 3551appear on some machines starting with the 20140214 release. 3552 3553Added a new external interface to allow the host to install ACPI tables 3554very early, before the namespace is even created. AcpiInstallTable gives 3555the host additional flexibility for ACPI table management. Tables can be 3556installed directly by the host as if they had originally appeared in the 3557XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables 3558(anything except the DSDT and FACS). Adds a new file, tbdata.c, along 3559with additional internal restructuring and cleanup. See the ACPICA 3560Reference for interface details. Lv Zheng. 3561 3562Added validation of the checksum for all incoming dynamically loaded 3563tables (via external interfaces or via AML Load/LoadTable operators). Lv 3564Zheng. 3565 3566Updated the use of the AcpiOsWaitEventsComplete interface during Notify 3567and GPE handler removal. Restructured calls to eliminate possible race 3568conditions. Lv Zheng. 3569 3570Added a warning for the use/execution of the ASL/AML Unload (table) 3571operator. This will help detect and identify machines that use this 3572operator if and when it is ever used. This operator has never been seen 3573in the field and the usage model and possible side-effects of the drastic 3574runtime action of a full table removal are unknown. 3575 3576Reverted the use of #pragma push/pop which was introduced in the 20140214 3577release. It appears that push and pop are not implemented by enough 3578compilers to make the use of this feature feasible for ACPICA at this 3579time. However, these operators may be deployed in a future ACPICA 3580release. 3581 3582Added the missing EXPORT_SYMBOL macros for the install and remove SCI 3583handler interfaces. 3584 3585Source code generation: 35861) Disabled the use of the "strchr" macro for the gcc-specific 3587generation. For some versions of gcc, this macro can periodically expose 3588a compiler bug which in turn causes compile-time error(s). 35892) Added support for PPC64 compilation. Colin Ian King. 3590 3591Example Code and Data Size: These are the sizes for the OS-independent 3592acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3593debug version of the code includes the debug output trace mechanism and 3594has a much larger code and data size. 3595 3596 Current Release: 3597 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 3598 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 3599 Previous Release: 3600 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 3601 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 3602 3603 36042) iASL Compiler/Disassembler and Tools: 3605 3606Disassembler: Added several new features to improve the readability of 3607the resulting ASL code. Extra information is emitted within comment 3608fields in the ASL code: 36091) Known _HID/_CID values are decoded to descriptive text. 36102) Standard values for the Notify() operator are decoded to descriptive 3611text. 36123) Target operands are expanded to full pathnames (in a comment) when 3613possible. 3614 3615Disassembler: Miscellaneous updates for extern() handling: 36161) Abort compiler if file specified by -fe option does not exist. 36172) Silence unnecessary warnings about argument count mismatches. 36183) Update warning messages concerning unresolved method externals. 36194) Emit "UnknownObj" keyword for externals whose type cannot be 3620determined. 3621 3622AcpiHelp utility: 36231) Added the -a option to display both the ASL syntax and the AML 3624encoding for an input ASL operator. This effectively displays all known 3625information about an ASL operator with one AcpiHelp invocation. 36262) Added substring match support (similar to a wildcard) for the -i 3627(_HID/PNP IDs) option. 3628 3629iASL/Disassembler: Since this tool does not yet support execution on big- 3630endian machines, added detection of endianness and an error message if 3631execution is attempted on big-endian. Support for big-endian within iASL 3632is a feature that is on the ACPICA to-be-done list. 3633 3634AcpiBin utility: 36351) Remove option to extract binary files from an acpidump; this function 3636is made obsolete by the AcpiXtract utility. 36372) General cleanup of open files and allocated buffers. 3638 3639 3640---------------------------------------- 364114 February 2014. Summary of changes for version 20140214: 3642 36431) ACPICA kernel-resident subsystem: 3644 3645Implemented a new mechanism to proactively prevent problems with ill- 3646behaved reentrant control methods that create named ACPI objects. This 3647behavior is illegal as per the ACPI specification, but is nonetheless 3648frequently seen in the field. Previously, this could lead to an 3649AE_ALREADY_EXISTS exception if the method was actually entered by more 3650than one thread. This new mechanism detects such methods at table load 3651time and marks them "serialized" to prevent reentrancy. A new global 3652option, AcpiGbl_AutoSerializeMethods, has been added to disable this 3653feature if desired. This mechanism and global option obsoletes and 3654supersedes the previous AcpiGbl_SerializeAllMethods option. 3655 3656Added the "Windows 2013" string to the _OSI support. ACPICA will now 3657respond TRUE to _OSI queries with this string. It is the stated policy of 3658ACPICA to add new strings to the _OSI support as soon as possible after 3659they are defined. See the full ACPICA _OSI policy which has been added to 3660the utilities/utosi.c file. 3661 3662Hardened/updated the _PRT return value auto-repair code: 36631) Do not abort the repair on a single subpackage failure, continue to 3664check all subpackages. 36652) Add check for the minimum subpackage length (4). 36663) Properly handle extraneous NULL package elements. 3667 3668Added support to avoid the possibility of infinite loops when traversing 3669object linked lists. Never allow an infinite loop, even in the face of 3670corrupted object lists. 3671 3672ACPICA headers: Deployed the use of #pragma pack(push) and #pragma 3673pack(pop) directives to ensure that the ACPICA headers are independent of 3674compiler settings or other host headers. 3675 3676Example Code and Data Size: These are the sizes for the OS-independent 3677acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3678debug version of the code includes the debug output trace mechanism and 3679has a much larger code and data size. 3680 3681 Current Release: 3682 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 3683 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 3684 Previous Release: 3685 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 3686 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 3687 3688 36892) iASL Compiler/Disassembler and Tools: 3690 3691iASL/Table-compiler: Fixed a problem with support for the SPMI table. The 3692first reserved field was incorrectly forced to have a value of zero. This 3693change correctly forces the field to have a value of one. ACPICA BZ 1081. 3694 3695Debugger: Added missing support for the "Extra" and "Data" subobjects 3696when displaying object data. 3697 3698Debugger: Added support to display entire object linked lists when 3699displaying object data. 3700 3701iASL: Removed the obsolete -g option to obtain ACPI tables from the 3702Windows registry. This feature has been superseded by the acpidump 3703utility. 3704 3705 3706---------------------------------------- 370714 January 2014. Summary of changes for version 20140114: 3708 37091) ACPICA kernel-resident subsystem: 3710 3711Updated all ACPICA copyrights and signons to 2014. Added the 2014 3712copyright to all module headers and signons, including the standard Linux 3713header. This affects virtually every file in the ACPICA core subsystem, 3714iASL compiler, all ACPICA utilities, and the test suites. 3715 3716Improved parameter validation for AcpiInstallGpeBlock. Added the 3717following checks: 37181) The incoming device handle refers to type ACPI_TYPE_DEVICE. 37192) There is not already a GPE block attached to the device. 3720Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a 3721device. 3722 3723Correctly support "references" in the ACPI_OBJECT. This change fixes the 3724support to allow references (namespace nodes) to be passed as arguments 3725to control methods via the evaluate object interface. This is probably 3726most useful for testing purposes, however. 3727 3728Improved support for 32/64 bit physical addresses in printf()-like 3729output. This change improves the support for physical addresses in printf 3730debug statements and other output on both 32-bit and 64-bit hosts. It 3731consistently outputs the appropriate number of bytes for each host. The 3732%p specifier is unsatisfactory since it does not emit uniform output on 3733all hosts/clib implementations (on some, leading zeros are not supported, 3734leading to difficult-to-read output). 3735 3736Example Code and Data Size: These are the sizes for the OS-independent 3737acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3738debug version of the code includes the debug output trace mechanism and 3739has a much larger code and data size. 3740 3741 Current Release: 3742 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 3743 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 3744 Previous Release: 3745 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 3746 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 3747 3748 37492) iASL Compiler/Disassembler and Tools: 3750 3751iASL: Fix a possible fault when using the Connection() operator. Fixes a 3752problem if the parent Field definition for the Connection operator refers 3753to an operation region that does not exist. ACPICA BZ 1064. 3754 3755AcpiExec: Load of local test tables is now optional. The utility has the 3756capability to load some various tables to test features of ACPICA. 3757However, there are enough of them that the output of the utility became 3758confusing. With this change, only the required local tables are displayed 3759(RSDP, XSDT, etc.) along with the actual tables loaded via the command 3760line specification. This makes the default output simler and easier to 3761understand. The -el command line option restores the original behavior 3762for testing purposes. 3763 3764AcpiExec: Added support for overlapping operation regions. This change 3765expands the simulation of operation regions by supporting regions that 3766overlap within the given address space. Supports SystemMemory and 3767SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031. 3768 3769AcpiExec: Added region handler support for PCI_Config and EC spaces. This 3770allows AcpiExec to simulate these address spaces, similar to the current 3771support for SystemMemory and SystemIO. 3772 3773Debugger: Added new command to read/write/compare all namespace objects. 3774The command "test objects" will exercise the entire namespace by writing 3775new values to each data object, and ensuring that the write was 3776successful. The original value is then restored and verified. 3777 3778Debugger: Added the "test predefined" command. This change makes this 3779test public and puts it under the new "test" command. The test executes 3780each and every predefined name within the current namespace. 3781 3782 3783---------------------------------------- 378418 December 2013. Summary of changes for version 20131218: 3785 3786Global note: The ACPI 5.0A specification was released this month. There 3787are no changes needed for ACPICA since this release of ACPI is an 3788errata/clarification release. The specification is available at 3789acpi.info. 3790 3791 37921) ACPICA kernel-resident subsystem: 3793 3794Added validation of the XSDT root table if it is present. Some older 3795platforms contain an XSDT that is ill-formed or otherwise invalid (such 3796as containing some or all entries that are NULL pointers). This change 3797adds a new function to validate the XSDT before actually using it. If the 3798XSDT is found to be invalid, ACPICA will now automatically fall back to 3799using the RSDT instead. Original implementation by Zhao Yakui. Ported to 3800ACPICA and enhanced by Lv Zheng and Bob Moore. 3801 3802Added a runtime option to ignore the XSDT and force the use of the RSDT. 3803This change adds a runtime option that will force ACPICA to use the RSDT 3804instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec 3805requires that an XSDT be used instead of the RSDT, the XSDT has been 3806found to be corrupt or ill-formed on some machines. Lv Zheng. 3807 3808Added a runtime option to favor 32-bit FADT register addresses over the 380964-bit addresses. This change adds an option to favor 32-bit FADT 3810addresses when there is a conflict between the 32-bit and 64-bit versions 3811of the same register. The default behavior is to use the 64-bit version 3812in accordance with the ACPI specification. This can now be overridden via 3813the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng. 3814 3815During the change above, the internal "Convert FADT" and "Verify FADT" 3816functions have been merged to simplify the code, making it easier to 3817understand and maintain. ACPICA BZ 933. 3818 3819Improve exception reporting and handling for GPE block installation. 3820Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the 3821status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019. 3822 3823Added helper macros to extract bus/segment numbers from the HEST table. 3824This change adds two macros to extract the encoded bus and segment 3825numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT. 3826Betty Dall <betty.dall@hp.com> 3827 3828Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used 3829by ACPICA. It is not a public macro, so it should have no effect on 3830existing OSV code. Lv Zheng. 3831 3832Example Code and Data Size: These are the sizes for the OS-independent 3833acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3834debug version of the code includes the debug output trace mechanism and 3835has a much larger code and data size. 3836 3837 Current Release: 3838 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 3839 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 3840 Previous Release: 3841 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 3842 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 3843 3844 38452) iASL Compiler/Disassembler and Tools: 3846 3847Disassembler: Improved pathname support for emitted External() 3848statements. This change adds full pathname support for external names 3849that have been resolved internally by the inclusion of additional ACPI 3850tables (via the iASL -e option). Without this change, the disassembler 3851can emit multiple externals for the same object, or it become confused 3852when the Scope() operator is used on an external object. Overall, greatly 3853improves the ability to actually recompile the emitted ASL code when 3854objects a referenced across multiple ACPI tables. Reported by Michael 3855Tsirkin (mst@redhat.com). 3856 3857Tests/ASLTS: Updated functional control suite to execute with no errors. 3858David Box. Fixed several errors related to the testing of the interpreter 3859slack mode. Lv Zheng. 3860 3861iASL: Added support to detect names that are declared within a control 3862method, but are unused (these are temporary names that are only valid 3863during the time the method is executing). A remark is issued for these 3864cases. ACPICA BZ 1022. 3865 3866iASL: Added full support for the DBG2 table. Adds full disassembler, 3867table compiler, and template generator support for the DBG2 table (Debug 3868Port 2 table). 3869 3870iASL: Added full support for the PCCT table, update the table definition. 3871Updates the PCCT table definition in the actbl3.h header and adds table 3872compiler and template generator support. 3873 3874iASL: Added an option to emit only error messages (no warnings/remarks). 3875The -ve option will enable only error messages, warnings and remarks are 3876suppressed. This can simplify debugging when only the errors are 3877important, such as when an ACPI table is disassembled and there are many 3878warnings and remarks -- but only the actual errors are of real interest. 3879 3880Example ACPICA code (source/tools/examples): Updated the example code so 3881that it builds to an actual working program, not just example code. Added 3882ACPI tables and execution of an example control method in the DSDT. Added 3883makefile support for Unix generation. 3884 3885 3886---------------------------------------- 388715 November 2013. Summary of changes for version 20131115: 3888 3889This release is available at https://acpica.org/downloads 3890 3891 38921) ACPICA kernel-resident subsystem: 3893 3894Resource Manager: Fixed loop termination for the "get AML length" 3895function. The loop previously had an error termination on a NULL resource 3896pointer, which can never happen since the loop simply increments a valid 3897resource pointer. This fix changes the loop to terminate with an error on 3898an invalid end-of-buffer condition. The problem can be seen as an 3899infinite loop by callers to AcpiSetCurrentResources with an invalid or 3900corrupted resource descriptor, or a resource descriptor that is missing 3901an END_TAG descriptor. Reported by Dan Carpenter 3902<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore. 3903 3904Table unload and ACPICA termination: Delete all attached data objects 3905during namespace node deletion. This fix updates namespace node deletion 3906to delete the entire list of attached objects (attached via 3907AcpiAttachObject) instead of just one of the attached items. ACPICA BZ 39081024. Tomasz Nowicki (tomasz.nowicki@linaro.org). 3909 3910ACPICA termination: Added support to delete all objects attached to the 3911root namespace node. This fix deletes any and all objects that have been 3912attached to the root node via AcpiAttachData. Previously, none of these 3913objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026. 3914 3915Debug output: Do not emit the function nesting level for the in-kernel 3916build. The nesting level is really only useful during a single-thread 3917execution. Therefore, only enable this output for the AcpiExec utility. 3918Also, only emit the thread ID when executing under AcpiExec (Context 3919switches are still always detected and a message is emitted). ACPICA BZ 3920972. 3921 3922Example Code and Data Size: These are the sizes for the OS-independent 3923acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3924debug version of the code includes the debug output trace mechanism and 3925has a much larger code and data size. 3926 3927 Current Release: 3928 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 3929 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 3930 Previous Release: 3931 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 3932 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 3933 3934 39352) iASL Compiler/Disassembler and Tools: 3936 3937AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the 3938correct portable POSIX header for terminal control functions. 3939 3940Disassembler: Fixed control method invocation issues related to the use 3941of the CondRefOf() operator. The problem is seen in the disassembly where 3942control method invocations may not be disassembled properly if the 3943control method name has been used previously as an argument to CondRefOf. 3944The solution is to not attempt to emit an external declaration for the 3945CondRefOf target (it is not necessary in the first place). This prevents 3946disassembler object type confusion. ACPICA BZ 988. 3947 3948Unix Makefiles: Added an option to disable compiler optimizations and the 3949_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA 3950with optimizations (reportedly, gcc 4.4 for example). This change adds a 3951command line option for make (NOOPT) that disables all compiler 3952optimizations and the _FORTIFY_SOURCE compiler flag. The default 3953optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ 39541034. Lv Zheng, Bob Moore. 3955 3956Tests/ASLTS: Added options to specify individual test cases and modes. 3957This allows testers running aslts.sh to optionally specify individual 3958test modes and test cases. Also added an option to disable the forced 3959generation of the ACPICA tools from source if desired. Lv Zheng. 3960 3961---------------------------------------- 396227 September 2013. Summary of changes for version 20130927: 3963 3964This release is available at https://acpica.org/downloads 3965 3966 39671) ACPICA kernel-resident subsystem: 3968 3969Fixed a problem with store operations to reference objects. This change 3970fixes a problem where a Store operation to an ArgX object that contained 3971a 3972reference to a field object did not complete the automatic dereference 3973and 3974then write to the actual field object. Instead, the object type of the 3975field object was inadvertently changed to match the type of the source 3976operand. The new behavior will actually write to the field object (buffer 3977field or field unit), thus matching the correct ACPI-defined behavior. 3978 3979Implemented support to allow the host to redefine individual OSL 3980prototypes. This change enables the host to redefine OSL prototypes found 3981in the acpiosxf.h file. This allows the host to implement OSL interfaces 3982with a macro or inlined function. Further, it allows the host to add any 3983additional required modifiers such as __iomem, __init, __exit, etc., as 3984necessary on a per-interface basis. Enables maximum flexibility for the 3985OSL interfaces. Lv Zheng. 3986 3987Hardcoded the access width for the FADT-defined reset register. The ACPI 3988specification requires the reset register width to be 8 bits. ACPICA now 3989hardcodes the width to 8 and ignores the FADT width value. This provides 3990compatibility with other ACPI implementations that have allowed BIOS code 3991with bad register width values to go unnoticed. Matthew Garett, Bob 3992Moore, 3993Lv Zheng. 3994 3995Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is 3996used 3997in the OSL header (acpiosxf). The change modifies the position of this 3998macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid 3999build issues if the OSL defines the implementation of the interface to be 4000an inline stub function. Lv Zheng. 4001 4002Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA 4003initialization interfaces. This change adds a new macro for the main init 4004and terminate external interfaces in order to support hosts that require 4005additional or different processing for these functions. Changed from 4006ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv 4007Zheng, Bob Moore. 4008 4009Cleaned up the memory allocation macros for configurability. In the 4010common 4011case, the ACPI_ALLOCATE and related macros now resolve directly to their 4012respective AcpiOs* OSL interfaces. Two options: 40131) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by 4014default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define. 40152) For AcpiExec (and for debugging), the macros can optionally be 4016resolved 4017to the local ACPICA interfaces that track each allocation (local tracking 4018is used to immediately detect memory leaks). 4019Lv Zheng. 4020 4021Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel 4022to predefine this macro to either TRUE or FALSE during the system build. 4023 4024Replaced __FUNCTION_ with __func__ in the gcc-specific header. 4025 4026Example Code and Data Size: These are the sizes for the OS-independent 4027acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4028debug version of the code includes the debug output trace mechanism and 4029has a much larger code and data size. 4030 4031 Current Release: 4032 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 4033 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 4034 Previous Release: 4035 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 4036 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 4037 4038 40392) iASL Compiler/Disassembler and Tools: 4040 4041iASL: Implemented wildcard support for the -e option. This simplifies use 4042when there are many SSDTs that must be included to resolve external 4043method 4044declarations. ACPICA BZ 1041. Example: 4045 iasl -e ssdt*.dat -d dsdt.dat 4046 4047AcpiExec: Add history/line-editing for Unix/Linux systems. This change 4048adds a portable module that implements full history and limited line 4049editing for Unix and Linux systems. It does not use readline() due to 4050portability issues. Instead it uses the POSIX termio interface to put the 4051terminal in raw input mode so that the various special keys can be 4052trapped 4053(such as up/down-arrow for history support and left/right-arrow for line 4054editing). Uses the existing debugger history mechanism. ACPICA BZ 1036. 4055 4056AcpiXtract: Add support to handle (ignore) "empty" lines containing only 4057one or more spaces. This provides compatible with early or different 4058versions of the AcpiDump utility. ACPICA BZ 1044. 4059 4060AcpiDump: Do not ignore tables that contain only an ACPI table header. 4061Apparently, some BIOSs create SSDTs that contain an ACPI table header but 4062no other data. This change adds support to dump these tables. Any tables 4063shorter than the length of an ACPI table header remain in error (an error 4064message is emitted). Reported by Yi Li. 4065 4066Debugger: Echo actual command along with the "unknown command" message. 4067 4068---------------------------------------- 406923 August 2013. Summary of changes for version 20130823: 4070 40711) ACPICA kernel-resident subsystem: 4072 4073Implemented support for host-installed System Control Interrupt (SCI) 4074handlers. Certain ACPI functionality requires the host to handle raw 4075SCIs. For example, the "SCI Doorbell" that is defined for memory power 4076state support requires the host device driver to handle SCIs to examine 4077if the doorbell has been activated. Multiple SCI handlers can be 4078installed to allow for future expansion. New external interfaces are 4079AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for 4080details. Lv Zheng, Bob Moore. ACPICA BZ 1032. 4081 4082Operation region support: Never locally free the handler "context" 4083pointer. This change removes some dangerous code that attempts to free 4084the handler context pointer in some (rare) circumstances. The owner of 4085the handler owns this pointer and the ACPICA code should never touch it. 4086Although not seen to be an issue in any kernel, it did show up as a 4087problem (fault) under AcpiExec. Also, set the internal storage field for 4088the context pointer to zero when the region is deactivated, simply for 4089sanity. David Box. ACPICA BZ 1039. 4090 4091AcpiRead: On error, do not modify the return value target location. If an 4092error happens in the middle of a split 32/32 64-bit I/O operation, do not 4093modify the target of the return value pointer. Makes the code consistent 4094with the rest of ACPICA. Bjorn Helgaas. 4095 4096Example Code and Data Size: These are the sizes for the OS-independent 4097acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4098debug version of the code includes the debug output trace mechanism and 4099has a much larger code and data size. 4100 4101 Current Release: 4102 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 4103 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 4104 Previous Release: 4105 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 4106 Debug Version: 185.4K Code, 77.1K Data, 262.5K Total 4107 4108 41092) iASL Compiler/Disassembler and Tools: 4110 4111AcpiDump: Implemented several new features and fixed some problems: 41121) Added support to dump the RSDP, RSDT, and XSDT tables. 41132) Added support for multiple table instances (SSDT, UEFI). 41143) Added option to dump "customized" (overridden) tables (-c). 41154) Fixed a problem where some table filenames were improperly 4116constructed. 41175) Improved some error messages, removed some unnecessary messages. 4118 4119iASL: Implemented additional support for disassembly of ACPI tables that 4120contain invocations of external control methods. The -fe<file> option 4121allows the import of a file that specifies the external methods along 4122with the required number of arguments for each -- allowing for the 4123correct disassembly of the table. This is a workaround for a limitation 4124of AML code where the disassembler often cannot determine the number of 4125arguments required for an external control method and generates incorrect 4126ASL code. See the iASL reference for details. ACPICA BZ 1030. 4127 4128Debugger: Implemented a new command (paths) that displays the full 4129pathnames (namepaths) and object types of all objects in the namespace. 4130This is an alternative to the namespace command. 4131 4132Debugger: Implemented a new command (sci) that invokes the SCI dispatch 4133mechanism and any installed handlers. 4134 4135iASL: Fixed a possible segfault for "too many parent prefixes" condition. 4136This can occur if there are too many parent prefixes in a namepath (for 4137example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035. 4138 4139Application OSLs: Set the return value for the PCI read functions. These 4140functions simply return AE_OK, but should set the return value to zero 4141also. This change implements this. ACPICA BZ 1038. 4142 4143Debugger: Prevent possible command line buffer overflow. Increase the 4144size of a couple of the debugger line buffers, and ensure that overflow 4145cannot happen. ACPICA BZ 1037. 4146 4147iASL: Changed to abort immediately on serious errors during the parsing 4148phase. Due to the nature of ASL, there is no point in attempting to 4149compile these types of errors, and they typically end up causing a 4150cascade of hundreds of errors which obscure the original problem. 4151 4152---------------------------------------- 415325 July 2013. Summary of changes for version 20130725: 4154 41551) ACPICA kernel-resident subsystem: 4156 4157Fixed a problem with the DerefOf operator where references to FieldUnits 4158and BufferFields incorrectly returned the parent object, not the actual 4159value of the object. After this change, a dereference of a FieldUnit 4160reference results in a read operation on the field to get the value, and 4161likewise, the appropriate BufferField value is extracted from the target 4162buffer. 4163 4164Fixed a problem where the _WAK method could cause a fault under these 4165circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK 4166method returned no value. The problem is rarely seen because most kernels 4167run ACPICA in slack mode. 4168 4169For the DerefOf operator, a fatal error now results if an attempt is made 4170to dereference a reference (created by the Index operator) to a NULL 4171package element. Provides compatibility with other ACPI implementations, 4172and this behavior will be added to a future version of the ACPI 4173specification. 4174 4175The ACPI Power Management Timer (defined in the FADT) is now optional. 4176This provides compatibility with other ACPI implementations and will 4177appear in the next version of the ACPI specification. If there is no PM 4178Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of 4179zero in the FADT indicates no PM timer. 4180 4181Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This 4182allows the host to globally enable/disable all vendor strings, all 4183feature strings, or both. Intended to be primarily used for debugging 4184purposes only. Lv Zheng. 4185 4186Expose the collected _OSI data to the host via a global variable. This 4187data tracks the highest level vendor ID that has been invoked by the BIOS 4188so that the host (and potentially ACPICA itself) can change behaviors 4189based upon the age of the BIOS. 4190 4191Example Code and Data Size: These are the sizes for the OS-independent 4192acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4193debug version of the code includes the debug output trace mechanism and 4194has a much larger code and data size. 4195 4196 Current Release: 4197 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 4198 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 4199 Previous Release: 4200 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 4201 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 4202 4203 42042) iASL Compiler/Disassembler and Tools: 4205 4206iASL: Created the following enhancements for the -so option (create 4207offset table): 42081)Add offsets for the last nameseg in each namepath for every supported 4209object type 42102)Add support for Processor, Device, Thermal Zone, and Scope objects 42113)Add the actual AML opcode for the parent object of every supported 4212object type 42134)Add support for the ZERO/ONE/ONES AML opcodes for integer objects 4214 4215Disassembler: Emit all unresolved external symbols in a single block. 4216These are external references to control methods that could not be 4217resolved, and thus, the disassembler had to make a guess at the number of 4218arguments to parse. 4219 4220iASL: The argument to the -T option (create table template) is now 4221optional. If not specified, the default table is a DSDT, typically the 4222most common case. 4223 4224---------------------------------------- 422526 June 2013. Summary of changes for version 20130626: 4226 42271) ACPICA kernel-resident subsystem: 4228 4229Fixed an issue with runtime repair of the _CST object. Null or invalid 4230elements were not always removed properly. Lv Zheng. 4231 4232Removed an arbitrary restriction of 256 GPEs per GPE block (such as the 4233FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, 4234the maximum number of GPEs is 1016. Use of multiple GPE block devices 4235makes the system-wide number of GPEs essentially unlimited. 4236 4237Example Code and Data Size: These are the sizes for the OS-independent 4238acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4239debug version of the code includes the debug output trace mechanism and 4240has a much larger code and data size. 4241 4242 Current Release: 4243 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 4244 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 4245 Previous Release: 4246 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 4247 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 4248 4249 42502) iASL Compiler/Disassembler and Tools: 4251 4252Portable AcpiDump: Implemented full support for the Linux and FreeBSD 4253hosts. Now supports Linux, FreeBSD, and Windows. 4254 4255Disassembler: Added some missing types for the HEST and EINJ tables: "Set 4256Error Type With Address", "CMCI", "MCE", and "Flush Cacheline". 4257 4258iASL/Preprocessor: Implemented full support for nested 4259#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. 4260 4261Disassembler: Expanded maximum output string length to 64K. Was 256 bytes 4262max. The original purpose of this constraint was to limit the amount of 4263debug output. However, the string function in question (UtPrintString) is 4264now used for the disassembler also, where 256 bytes is insufficient. 4265Reported by RehabMan@GitHub. 4266 4267iASL/DataTables: Fixed some problems and issues with compilation of DMAR 4268tables. ACPICA BZ 999. Lv Zheng. 4269 4270iASL: Fixed a couple of error exit issues that could result in a "Could 4271not delete <file>" message during ASL compilation. 4272 4273AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though 4274the actual signatures for these tables are "FACP" and "APIC", 4275respectively. 4276 4277AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI 4278tables are allowed to have multiple instances. 4279 4280---------------------------------------- 428117 May 2013. Summary of changes for version 20130517: 4282 42831) ACPICA kernel-resident subsystem: 4284 4285Fixed a regression introduced in version 20130328 for _INI methods. This 4286change fixes a problem introduced in 20130328 where _INI methods are no 4287longer executed properly because of a memory block that was not 4288initialized correctly. ACPICA BZ 1016. Tomasz Nowicki 4289<tomasz.nowicki@linaro.org>. 4290 4291Fixed a possible problem with the new extended sleep registers in the 4292ACPI 42935.0 FADT. Do not use these registers (even if populated) unless the HW- 4294reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 42951020. Lv Zheng. 4296 4297Implemented return value repair code for _CST predefined objects: Sort 4298the 4299list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. 4300 4301Implemented a debug-only option to disable loading of SSDTs from the 4302RSDT/XSDT during ACPICA initialization. This can be useful for debugging 4303ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in 4304acglobal.h - ACPICA BZ 1005. Lv Zheng. 4305 4306Fixed some issues in the ACPICA initialization and termination code: 4307Tomasz Nowicki <tomasz.nowicki@linaro.org> 43081) Clear events initialized flag upon event component termination. ACPICA 4309BZ 1013. 43102) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 43113) Delete global lock pending lock during termination. ACPICA BZ 1012. 43124) Clear debug buffer global on termination to prevent possible multiple 4313delete. ACPICA BZ 1010. 4314 4315Standardized all switch() blocks across the entire source base. After 4316many 4317years, different formatting for switch() had crept in. This change makes 4318the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. 4319 4320Split some files to enhance ACPICA modularity and configurability: 43211) Split buffer dump routines into utilities/utbuffer.c 43222) Split internal error message routines into utilities/uterror.c 43233) Split table print utilities into tables/tbprint.c 43244) Split iASL command-line option processing into asloptions.c 4325 4326Makefile enhancements: 43271) Support for all new files above. 43282) Abort make on errors from any subcomponent. Chao Guan. 43293) Add build support for Apple Mac OS X. Liang Qi. 4330 4331Example Code and Data Size: These are the sizes for the OS-independent 4332acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4333debug version of the code includes the debug output trace mechanism and 4334has a much larger code and data size. 4335 4336 Current Release: 4337 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 4338 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 4339 Previous Release: 4340 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 4341 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 4342 4343 43442) iASL Compiler/Disassembler and Tools: 4345 4346New utility: Implemented an easily portable version of the acpidump 4347utility to extract ACPI tables from the system (or a file) in an ASCII 4348hex 4349dump format. The top-level code implements the various command line 4350options, file I/O, and table dump routines. To port to a new host, only 4351three functions need to be implemented to get tables -- since this 4352functionality is OS-dependent. See the tools/acpidump/apmain.c module and 4353the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 43541) The Windows version obtains the ACPI tables from the Registry. 43552) The Linux version is under development. 43563) Other hosts - If an OS-dependent module is submitted, it will be 4357distributed with ACPICA. 4358 4359iASL: Fixed a regression for -D preprocessor option (define symbol). A 4360restructuring/change to the initialization sequence caused this option to 4361no longer work properly. 4362 4363iASL: Implemented a mechanism to disable specific warnings and remarks. 4364Adds a new command line option, "-vw <messageid> as well as "#pragma 4365disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore. 4366 4367iASL: Fix for too-strict package object validation. The package object 4368validation for return values from the predefined names is a bit too 4369strict, it does not allow names references within the package (which will 4370be resolved at runtime.) These types of references cannot be validated at 4371compile time. This change ignores named references within package objects 4372for names that return or define static packages. 4373 4374Debugger: Fixed the 80-character command line limitation for the History 4375command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. 4376 4377iASL: Added control method and package support for the -so option 4378(generates AML offset table for BIOS support.) 4379 4380iASL: issue a remark if a non-serialized method creates named objects. If 4381a thread blocks within the method for any reason, and another thread 4382enters the method, the method will fail because an attempt will be made 4383to 4384create the same (named) object twice. In this case, issue a remark that 4385the method should be marked serialized. NOTE: may become a warning later. 4386ACPICA BZ 909. 4387 4388---------------------------------------- 438918 April 2013. Summary of changes for version 20130418: 4390 43911) ACPICA kernel-resident subsystem: 4392 4393Fixed a possible buffer overrun during some rare but specific field unit 4394read operations. This overrun can only happen if the DSDT version is 1 -- 4395meaning that all AML integers are 32 bits -- and the field length is 4396between 33 and 55 bits long. During the read, an internal buffer object 4397is 4398created for the field unit because the field is larger than an integer 4399(32 4400bits). However, in this case, the buffer will be incorrectly written 4401beyond the end because the buffer length is less than the internal 4402minimum 4403of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes 4404long, but a full 8 bytes will be written. 4405 4406Updated the Embedded Controller "orphan" _REG method support. This refers 4407to _REG methods under the EC device that have no corresponding operation 4408region. This is allowed by the ACPI specification. This update removes a 4409dependency on the existence an ECDT table. It will execute an orphan _REG 4410method as long as the operation region handler for the EC is installed at 4411the EC device node and not the namespace root. Rui Zhang (original 4412update), Bob Moore (update/integrate). 4413 4414Implemented run-time argument typechecking for all predefined ACPI names 4415(_STA, _BIF, etc.) This change performs object typechecking on all 4416incoming arguments for all predefined names executed via 4417AcpiEvaluateObject. This ensures that ACPI-related device drivers are 4418passing correct object types as well as the correct number of arguments 4419(therefore identifying any issues immediately). Also, the ASL/namespace 4420definition of the predefined name is checked against the ACPI 4421specification for the proper argument count. Adds one new file, 4422nsarguments.c 4423 4424Changed an exception code for the ASL UnLoad() operator. Changed the 4425exception code for the case where the input DdbHandle is invalid, from 4426AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. 4427 4428Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the 4429global makefile. The use of this flag causes compiler errors on earlier 4430versions of GCC, so it has been removed for compatibility. 4431 4432Miscellaneous cleanup: 44331) Removed some unused/obsolete macros 44342) Fixed a possible memory leak in the _OSI support 44353) Removed an unused variable in the predefined name support 44364) Windows OSL: remove obsolete reference to a memory list field 4437 4438Example Code and Data Size: These are the sizes for the OS-independent 4439acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4440debug version of the code includes the debug output trace mechanism and 4441has a much larger code and data size. 4442 4443 Current Release: 4444 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 4445 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 4446 Previous Release: 4447 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 4448 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 4449 4450 44512) iASL Compiler/Disassembler and Tools: 4452 4453AcpiExec: Added installation of a handler for the SystemCMOS address 4454space. This prevents control method abort if a method accesses this 4455space. 4456 4457AcpiExec: Added support for multiple EC devices, and now install EC 4458operation region handler(s) at the actual EC device instead of the 4459namespace root. This reflects the typical behavior of host operating 4460systems. 4461 4462AcpiExec: Updated to ensure that all operation region handlers are 4463installed before the _REG methods are executed. This prevents a _REG 4464method from aborting if it accesses an address space has no handler. 4465AcpiExec installs a handler for every possible address space. 4466 4467Debugger: Enhanced the "handlers" command to display non-root handlers. 4468This change enhances the handlers command to display handlers associated 4469with individual devices throughout the namespace, in addition to the 4470currently supported display of handlers associated with the root 4471namespace 4472node. 4473 4474ASL Test Suite: Several test suite errors have been identified and 4475resolved, reducing the total error count during execution. Chao Guan. 4476 4477---------------------------------------- 447828 March 2013. Summary of changes for version 20130328: 4479 44801) ACPICA kernel-resident subsystem: 4481 4482Fixed several possible race conditions with the internal object reference 4483counting mechanism. Some of the external ACPICA interfaces update object 4484reference counts without holding the interpreter or namespace lock. This 4485change adds a spinlock to protect reference count updates on the internal 4486ACPICA objects. Reported by and with assistance from Andriy Gapon 4487(avg@FreeBSD.org). 4488 4489FADT support: Removed an extraneous warning for very large GPE register 4490sets. This change removes a size mismatch warning if the legacy length 4491field for a GPE register set is larger than the 64-bit GAS structure can 4492accommodate. GPE register sets can be larger than the 255-bit width 4493limitation of the GAS structure. Linn Crosetto (linn@hp.com). 4494 4495_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error 4496return from this interface. Handles a possible timeout case if 4497ACPI_WAIT_FOREVER is modified by the host to be a value less than 4498"forever". Jung-uk Kim. 4499 4500Predefined name support: Add allowed/required argument type information 4501to 4502the master predefined info table. This change adds the infrastructure to 4503enable typechecking on incoming arguments for all predefined 4504methods/objects. It does not actually contain the code that will fully 4505utilize this information, this is still under development. Also condenses 4506some duplicate code for the predefined names into a new module, 4507utilities/utpredef.c 4508 4509Example Code and Data Size: These are the sizes for the OS-independent 4510acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4511debug version of the code includes the debug output trace mechanism and 4512has a much larger code and data size. 4513 4514 Previous Release: 4515 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 4516 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 4517 Current Release: 4518 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 4519 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 4520 4521 45222) iASL Compiler/Disassembler and Tools: 4523 4524iASL: Implemented a new option to simplify the development of ACPI- 4525related 4526BIOS code. Adds support for a new "offset table" output file. The -so 4527option will create a C table containing the AML table offsets of various 4528named objects in the namespace so that BIOS code can modify them easily 4529at 4530boot time. This can simplify BIOS runtime code by eliminating expensive 4531searches for "magic values", enhancing boot times and adding greater 4532reliability. With assistance from Lee Hamel. 4533 4534iASL: Allow additional predefined names to return zero-length packages. 4535Now, all predefined names that are defined by the ACPI specification to 4536return a "variable-length package of packages" are allowed to return a 4537zero length top-level package. This allows the BIOS to tell the host that 4538the requested feature is not supported, and supports existing BIOS/ASL 4539code and practices. 4540 4541iASL: Changed the "result not used" warning to an error. This is the case 4542where an ASL operator is effectively a NOOP because the result of the 4543operation is not stored anywhere. For example: 4544 Add (4, Local0) 4545There is no target (missing 3rd argument), nor is the function return 4546value used. This is potentially a very serious problem -- since the code 4547was probably intended to do something, but for whatever reason, the value 4548was not stored. Therefore, this issue has been upgraded from a warning to 4549an error. 4550 4551AcpiHelp: Added allowable/required argument types to the predefined names 4552info display. This feature utilizes the recent update to the predefined 4553names table (above). 4554 4555---------------------------------------- 455614 February 2013. Summary of changes for version 20130214: 4557 45581) ACPICA Kernel-resident Subsystem: 4559 4560Fixed a possible regression on some hosts: Reinstated the safe return 4561macros (return_ACPI_STATUS, etc.) that ensure that the argument is 4562evaluated only once. Although these macros are not needed for the ACPICA 4563code itself, they are often used by ACPI-related host device drivers 4564where 4565the safe feature may be necessary. 4566 4567Fixed several issues related to the ACPI 5.0 reduced hardware support 4568(SOC): Now ensure that if the platform declares itself as hardware- 4569reduced 4570via the FADT, the following functions become NOOPs (and always return 4571AE_OK) because ACPI is always enabled by definition on these machines: 4572 AcpiEnable 4573 AcpiDisable 4574 AcpiHwGetMode 4575 AcpiHwSetMode 4576 4577Dynamic Object Repair: Implemented additional runtime repairs for 4578predefined name return values. Both of these repairs can simplify code in 4579the related device drivers that invoke these methods: 45801) For the _STR and _MLS names, automatically repair/convert an ASCII 4581string to a Unicode buffer. 45822) For the _CRS, _PRS, and _DMA names, return a resource descriptor with 4583a 4584lone end tag descriptor in the following cases: A Return(0) was executed, 4585a null buffer was returned, or no object at all was returned (non-slack 4586mode only). Adds a new file, nsconvert.c 4587ACPICA BZ 998. Bob Moore, Lv Zheng. 4588 4589Resource Manager: Added additional code to prevent possible infinite 4590loops 4591while traversing corrupted or ill-formed resource template buffers. Check 4592for zero-length resource descriptors in all code that loops through 4593resource templates (the length field is used to index through the 4594template). This change also hardens the external AcpiWalkResources and 4595AcpiWalkResourceBuffer interfaces. 4596 4597Local Cache Manager: Enhanced the main data structure to eliminate an 4598unnecessary mechanism to access the next object in the list. Actually 4599provides a small performance enhancement for hosts that use the local 4600ACPICA cache manager. Jung-uk Kim. 4601 4602Example Code and Data Size: These are the sizes for the OS-independent 4603acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4604debug version of the code includes the debug output trace mechanism and 4605has a much larger code and data size. 4606 4607 Previous Release: 4608 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 4609 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 4610 Current Release: 4611 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 4612 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 4613 4614 46152) iASL Compiler/Disassembler and Tools: 4616 4617iASL/Disassembler: Fixed several issues with the definition of the ACPI 46185.0 RASF table (RAS Feature Table). This change incorporates late changes 4619that were made to the ACPI 5.0 specification. 4620 4621iASL/Disassembler: Added full support for the following new ACPI tables: 4622 1) The MTMR table (MID Timer Table) 4623 2) The VRTC table (Virtual Real Time Clock Table). 4624Includes header file, disassembler, table compiler, and template support 4625for both tables. 4626 4627iASL: Implemented compile-time validation of package objects returned by 4628predefined names. This new feature validates static package objects 4629returned by the various predefined names defined to return packages. Both 4630object types and package lengths are validated, for both parent packages 4631and sub-packages, if any. The code is similar in structure and behavior 4632to 4633the runtime repair mechanism within the AML interpreter and uses the 4634existing predefined name information table. Adds a new file, aslprepkg.c. 4635ACPICA BZ 938. 4636 4637iASL: Implemented auto-detection of binary ACPI tables for disassembly. 4638This feature detects a binary file with a valid ACPI table header and 4639invokes the disassembler automatically. Eliminates the need to 4640specifically invoke the disassembler with the -d option. ACPICA BZ 862. 4641 4642iASL/Disassembler: Added several warnings for the case where there are 4643unresolved control methods during the disassembly. This can potentially 4644cause errors when the output file is compiled, because the disassembler 4645assumes zero method arguments in these cases (it cannot determine the 4646actual number of arguments without resolution/definition of the method). 4647 4648Debugger: Added support to display all resources with a single command. 4649Invocation of the resources command with no arguments will now display 4650all 4651resources within the current namespace. 4652 4653AcpiHelp: Added descriptive text for each ACPICA exception code displayed 4654via the -e option. 4655 4656---------------------------------------- 465717 January 2013. Summary of changes for version 20130117: 4658 46591) ACPICA Kernel-resident Subsystem: 4660 4661Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 4662return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 4663objects to return a package containing one integer, most BIOS code 4664returns 4665two integers and the previous code reflects that. However, we also need 4666to 4667support BIOS code that actually implements to the ACPI spec, and this 4668change reflects this. 4669 4670Fixed two issues with the ACPI_DEBUG_PRINT macros: 46711) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 4672C compilers that require this support. 46732) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 4674ACPI_DEBUG is already used by many of the various hosts. 4675 4676Updated all ACPICA copyrights and signons to 2013. Added the 2013 4677copyright to all module headers and signons, including the standard Linux 4678header. This affects virtually every file in the ACPICA core subsystem, 4679iASL compiler, all ACPICA utilities, and the test suites. 4680 4681Example Code and Data Size: These are the sizes for the OS-independent 4682acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4683debug version of the code includes the debug output trace mechanism and 4684has a much larger code and data size. 4685 4686 Previous Release: 4687 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 4688 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 4689 Current Release: 4690 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 4691 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 4692 4693 46942) iASL Compiler/Disassembler and Tools: 4695 4696Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 4697prevent a possible fault on some hosts. Some C libraries modify the arg 4698pointer parameter to vfprintf making it difficult to call it twice in the 4699AcpiOsVprintf function. Use a local buffer to workaround this issue. This 4700does not affect the Windows OSL since the Win C library does not modify 4701the arg pointer. Chao Guan, Bob Moore. 4702 4703iASL: Fixed a possible infinite loop when the maximum error count is 4704reached. If an output file other than the .AML file is specified (such as 4705a listing file), and the maximum number of errors is reached, do not 4706attempt to flush data to the output file(s) as the compiler is aborting. 4707This can cause an infinite loop as the max error count code essentially 4708keeps calling itself. 4709 4710iASL/Disassembler: Added an option (-in) to ignore NOOP 4711opcodes/operators. 4712Implemented for both the compiler and the disassembler. Often, the NOOP 4713opcode is used as padding for packages that are changed dynamically by 4714the 4715BIOS. When disassembled and recompiled, these NOOPs will cause syntax 4716errors. This option causes the disassembler to ignore all NOOP opcodes 4717(0xA3), and it also causes the compiler to ignore all ASL source code 4718NOOP 4719statements as well. 4720 4721Debugger: Enhanced the Sleep command to execute all sleep states. This 4722change allows Sleep to be invoked with no arguments and causes the 4723debugger to execute all of the sleep states, 0-5, automatically. 4724 4725---------------------------------------- 472620 December 2012. Summary of changes for version 20121220: 4727 47281) ACPICA Kernel-resident Subsystem: 4729 4730Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 4731alternate entry point for AcpiWalkResources and improves the usability of 4732the resource manager by accepting as input a buffer containing the output 4733of either a _CRS, _PRS, or _AEI method. The key functionality is that the 4734input buffer is not deleted by this interface so that it can be used by 4735the host later. See the ACPICA reference for details. 4736 4737Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 4738(DSDT version < 2). The constant will be truncated and this warning 4739reflects that behavior. 4740 4741Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 4742ExtendedInterrupt, and GpioInt descriptors. This change adds support to 4743both get and set the new wake bit in these descriptors, separately from 4744the existing share bit. Reported by Aaron Lu. 4745 4746Interpreter: Fix Store() when an implicit conversion is not possible. For 4747example, in the cases such as a store of a string to an existing package 4748object, implement the store as a CopyObject(). This is a small departure 4749from the ACPI specification which states that the control method should 4750be 4751aborted in this case. However, the ASLTS suite depends on this behavior. 4752 4753Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 4754macros: check if debug output is currently enabled as soon as possible to 4755minimize performance impact if debug is in fact not enabled. 4756 4757Source code restructuring: Cleanup to improve modularity. The following 4758new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 4759psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 4760Associated makefiles and project files have been updated. 4761 4762Changed an exception code for LoadTable operator. For the case where one 4763of the input strings is too long, change the returned exception code from 4764AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 4765 4766Fixed a possible memory leak in dispatcher error path. On error, delete 4767the mutex object created during method mutex creation. Reported by 4768tim.gardner@canonical.com. 4769 4770Example Code and Data Size: These are the sizes for the OS-independent 4771acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4772debug version of the code includes the debug output trace mechanism and 4773has a much larger code and data size. 4774 4775 Previous Release: 4776 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 4777 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 4778 Current Release: 4779 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 4780 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 4781 4782 47832) iASL Compiler/Disassembler and Tools: 4784 4785iASL: Disallow a method call as argument to the ObjectType ASL operator. 4786This change tracks an errata to the ACPI 5.0 document. The AML grammar 4787will not allow the interpreter to differentiate between a method and a 4788method invocation when these are used as an argument to the ObjectType 4789operator. The ACPI specification change is to disallow a method 4790invocation 4791(UserTerm) for the ObjectType operator. 4792 4793Finish support for the TPM2 and CSRT tables in the headers, table 4794compiler, and disassembler. 4795 4796Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 4797always expires immediately if the semaphore is not available. The 4798original 4799code was using a relative-time timeout, but sem_timedwait requires the 4800use 4801of an absolute time. 4802 4803iASL: Added a remark if the Timer() operator is used within a 32-bit 4804table. This operator returns a 64-bit time value that will be truncated 4805within a 32-bit table. 4806 4807iASL Source code restructuring: Cleanup to improve modularity. The 4808following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 4809aslmethod.c, and aslfileio.c. Associated makefiles and project files have 4810been updated. 4811 4812 4813---------------------------------------- 481414 November 2012. Summary of changes for version 20121114: 4815 48161) ACPICA Kernel-resident Subsystem: 4817 4818Implemented a performance enhancement for ACPI/AML Package objects. This 4819change greatly increases the performance of Package objects within the 4820interpreter. It changes the processing of reference counts for packages 4821by 4822optimizing for the most common case where the package sub-objects are 4823either Integers, Strings, or Buffers. Increases the overall performance 4824of 4825the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 48262X.) 4827Chao Guan. ACPICA BZ 943. 4828 4829Implemented and deployed common macros to extract flag bits from resource 4830descriptors. Improves readability and maintainability of the code. Fixes 4831a 4832problem with the UART serial bus descriptor for the number of data bits 4833flags (was incorrectly 2 bits, should be 3). 4834 4835Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 4836of the macros and changed the SETx macros to the style of (destination, 4837source). Also added ACPI_CASTx companion macros. Lv Zheng. 4838 4839Example Code and Data Size: These are the sizes for the OS-independent 4840acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4841debug version of the code includes the debug output trace mechanism and 4842has a much larger code and data size. 4843 4844 Previous Release: 4845 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 4846 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 4847 Current Release: 4848 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 4849 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 4850 4851 48522) iASL Compiler/Disassembler and Tools: 4853 4854Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 4855adds the ShareAndWake and ExclusiveAndWake flags which were added to the 4856Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 4857 4858Disassembler: Fixed a problem with external declaration generation. Fixes 4859a problem where an incorrect pathname could be generated for an external 4860declaration if the original reference to the object includes leading 4861carats (^). ACPICA BZ 984. 4862 4863Debugger: Completed a major update for the Disassemble<method> command. 4864This command was out-of-date and did not properly disassemble control 4865methods that had any reasonable complexity. This fix brings the command 4866up 4867to the same level as the rest of the disassembler. Adds one new file, 4868dmdeferred.c, which is existing code that is now common with the main 4869disassembler and the debugger disassemble command. ACPICA MZ 978. 4870 4871iASL: Moved the parser entry prototype to avoid a duplicate declaration. 4872Newer versions of Bison emit this prototype, so moved the prototype out 4873of 4874the iASL header to where it is actually used in order to avoid a 4875duplicate 4876declaration. 4877 4878iASL/Tools: Standardized use of the stream I/O functions: 4879 1) Ensure check for I/O error after every fopen/fread/fwrite 4880 2) Ensure proper order of size/count arguments for fread/fwrite 4881 3) Use test of (Actual != Requested) after all fwrite, and most fread 4882 4) Standardize I/O error messages 4883Improves reliability and maintainability of the code. Bob Moore, Lv 4884Zheng. 4885ACPICA BZ 981. 4886 4887Disassembler: Prevent duplicate External() statements. During generation 4888of external statements, detect similar pathnames that are actually 4889duplicates such as these: 4890 External (\ABCD) 4891 External (ABCD) 4892Remove all leading '\' characters from pathnames during the external 4893statement generation so that duplicates will be detected and tossed. 4894ACPICA BZ 985. 4895 4896Tools: Replace low-level I/O with stream I/O functions. Replace 4897open/read/write/close with the stream I/O equivalents 4898fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 4899Moore. 4900 4901AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 4902name header so that AcpiXtract recognizes the output file/table. 4903 4904iASL: Remove obsolete -2 option flag. Originally intended to force the 4905compiler/disassembler into an ACPI 2.0 mode, this was never implemented 4906and the entire concept is now obsolete. 4907 4908---------------------------------------- 490918 October 2012. Summary of changes for version 20121018: 4910 4911 49121) ACPICA Kernel-resident Subsystem: 4913 4914Updated support for the ACPI 5.0 MPST table. Fixes some problems 4915introduced by late changes to the table as it was added to the ACPI 5.0 4916specification. Includes header, disassembler, and data table compiler 4917support as well as a new version of the MPST template. 4918 4919AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 49205.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 4921methods: _HID, _CID, and _UID. 4922 4923Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 4924ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 4925name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 4926names for their various drivers. Affects the AcpiGetObjectInfo external 4927interface, and other internal interfaces as well. 4928 4929Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 4930This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 4931on machines that support non-aligned transfers. Optimizes for this case 4932rather than using a strncpy. With assistance from Zheng Lv. 4933 4934Resource Manager: Small fix for buffer size calculation. Fixed a one byte 4935error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 4936 4937Added a new debug print message for AML mutex objects that are force- 4938released. At control method termination, any currently acquired mutex 4939objects are force-released. Adds a new debug-only message for each one 4940that is released. 4941 4942Audited/updated all ACPICA return macros and the function debug depth 4943counter: 1) Ensure that all functions that use the various TRACE macros 4944also use the appropriate ACPICA return macros. 2) Ensure that all normal 4945return statements surround the return expression (value) with parens to 4946ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 4947Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 4948 4949Global source code changes/maintenance: All extra lines at the start and 4950end of each source file have been removed for consistency. Also, within 4951comments, all new sentences start with a single space instead of a double 4952space, again for consistency across the code base. 4953 4954Example Code and Data Size: These are the sizes for the OS-independent 4955acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4956debug version of the code includes the debug output trace mechanism and 4957has a much larger code and data size. 4958 4959 Previous Release: 4960 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 4961 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 4962 Current Release: 4963 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 4964 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 4965 4966 49672) iASL Compiler/Disassembler and Tools: 4968 4969AcpiExec: Improved the algorithm used for memory leak/corruption 4970detection. Added some intelligence to the code that maintains the global 4971list of allocated memory. The list is now ordered by allocated memory 4972address, significantly improving performance. When running AcpiExec on 4973the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 4974on the platform and/or the environment. Note, this performance 4975enhancement affects the AcpiExec utility only, not the kernel-resident 4976ACPICA code. 4977 4978Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 4979the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 4980incorrect table offset reported for invalid opcodes. Report the original 498132-bit value for bad ACPI_NAMEs (as well as the repaired name.) 4982 4983Disassembler: Enhanced the -vt option to emit the binary table data in 4984hex format to assist with debugging. 4985 4986Fixed a potential filename buffer overflow in osunixdir.c. Increased the 4987size of file structure. Colin Ian King. 4988 4989---------------------------------------- 499013 September 2012. Summary of changes for version 20120913: 4991 4992 49931) ACPICA Kernel-resident Subsystem: 4994 4995ACPI 5.0: Added two new notify types for the Hardware Error Notification 4996Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 4997and 4998MCE(6). 4999 5000Table Manager: Merged/removed duplicate code in the root table resize 5001functions. One function is external, the other is internal. Lv Zheng, 5002ACPICA 5003BZ 846. 5004 5005Makefiles: Completely removed the obsolete "Linux" makefiles under 5006acpica/generate/linux. These makefiles are obsolete and have been 5007replaced 5008by 5009the generic unix makefiles under acpica/generate/unix. 5010 5011Makefiles: Ensure that binary files always copied properly. Minor rule 5012change 5013to ensure that the final binary output files are always copied up to the 5014appropriate binary directory (bin32 or bin64.) 5015 5016Example Code and Data Size: These are the sizes for the OS-independent 5017acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5018debug 5019version of the code includes the debug output trace mechanism and has a 5020much 5021larger code and data size. 5022 5023 Previous Release: 5024 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 5025 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 5026 Current Release: 5027 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 5028 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 5029 5030 50312) iASL Compiler/Disassembler and Tools: 5032 5033Disassembler: Fixed a possible fault during the disassembly of resource 5034descriptors when a second parse is required because of the invocation of 5035external control methods within the table. With assistance from 5036adq@lidskialf.net. ACPICA BZ 976. 5037 5038iASL: Fixed a namepath optimization problem. An error can occur if the 5039parse 5040node that contains the namepath to be optimized does not have a parent 5041node 5042that is a named object. This change fixes the problem. 5043 5044iASL: Fixed a regression where the AML file is not deleted on errors. The 5045AML 5046output file should be deleted if there are any errors during the 5047compiler. 5048The 5049only exception is if the -f (force output) option is used. ACPICA BZ 974. 5050 5051iASL: Added a feature to automatically increase internal line buffer 5052sizes. 5053Via realloc(), automatically increase the internal line buffer sizes as 5054necessary to support very long source code lines. The current version of 5055the 5056preprocessor requires a buffer long enough to contain full source code 5057lines. 5058This change increases the line buffer(s) if the input lines go beyond the 5059current buffer size. This eliminates errors that occurred when a source 5060code 5061line was longer than the buffer. 5062 5063iASL: Fixed a problem with constant folding in method declarations. The 5064SyncLevel term is a ByteConstExpr, and incorrect code would be generated 5065if a 5066Type3 opcode was used. 5067 5068Debugger: Improved command help support. For incorrect argument count, 5069display 5070full help for the command. For help command itself, allow an argument to 5071specify a command. 5072 5073Test Suites: Several bug fixes for the ASLTS suite reduces the number of 5074errors during execution of the suite. Guan Chao. 5075 5076---------------------------------------- 507716 August 2012. Summary of changes for version 20120816: 5078 5079 50801) ACPICA Kernel-resident Subsystem: 5081 5082Removed all use of the deprecated _GTS and _BFS predefined methods. The 5083_GTS 5084(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 5085deprecated and will probably be removed from the ACPI specification. 5086Windows 5087does not invoke them, and reportedly never will. The final nail in the 5088coffin 5089is that the ACPI specification states that these methods must be run with 5090interrupts off, which is not going to happen in a kernel interpreter. 5091Note: 5092Linux has removed all use of the methods also. It was discovered that 5093invoking these functions caused failures on some machines, probably 5094because 5095they were never tested since Windows does not call them. Affects two 5096external 5097interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 5098ACPICA BZ 969. 5099 5100Implemented support for complex bit-packed buffers returned from the _PLD 5101(Physical Location of Device) predefined method. Adds a new external 5102interface, AcpiDecodePldBuffer that parses the buffer into a more usable 5103C 5104structure. Note: C Bitfields cannot be used for this type of predefined 5105structure since the memory layout of individual bitfields is not defined 5106by 5107the C language. In addition, there are endian concerns where a compiler 5108will 5109change the bitfield ordering based on the machine type. The new ACPICA 5110interface eliminates these issues, and should be called after _PLD is 5111executed. ACPICA BZ 954. 5112 5113Implemented a change to allow a scope change to root (via "Scope (\)") 5114during 5115execution of module-level ASL code (code that is executed at table load 5116time.) Lin Ming. 5117 5118Added the Windows8/Server2012 string for the _OSI method. This change 5119adds 5120a 5121new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 51222012. 5123 5124Added header support for the new ACPI tables DBG2 (Debug Port Table Type 51252) 5126and CSRT (Core System Resource Table). 5127 5128Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 5129names. This simplifies access to the buffers returned by these predefined 5130names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 5131 5132GPE support: Removed an extraneous parameter from the various low-level 5133internal GPE functions. Tang Feng. 5134 5135Removed the linux makefiles from the unix packages. The generate/linux 5136makefiles are obsolete and have been removed from the unix tarball 5137release 5138packages. The replacement makefiles are under generate/unix, and there is 5139a 5140top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 5141 5142Updates for Unix makefiles: 51431) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 51442) Update linker flags (move to end of command line) for AcpiExec 5145utility. 5146Guan Chao. 5147 5148Split ACPICA initialization functions to new file, utxfinit.c. Split from 5149utxface.c to improve modularity and reduce file size. 5150 5151Example Code and Data Size: These are the sizes for the OS-independent 5152acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5153debug version of the code includes the debug output trace mechanism and 5154has a 5155much larger code and data size. 5156 5157 Previous Release: 5158 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 5159 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 5160 Current Release: 5161 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 5162 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 5163 5164 51652) iASL Compiler/Disassembler and Tools: 5166 5167iASL: Fixed a problem with constant folding for fixed-length constant 5168expressions. The constant-folding code was not being invoked for constant 5169expressions that allow the use of type 3/4/5 opcodes to generate 5170constants 5171for expressions such as ByteConstExpr, WordConstExpr, etc. This could 5172result 5173in the generation of invalid AML bytecode. ACPICA BZ 970. 5174 5175iASL: Fixed a generation issue on newer versions of Bison. Newer versions 5176apparently automatically emit some of the necessary externals. This 5177change 5178handles these versions in order to eliminate generation warnings. 5179 5180Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 5181 5182Disassembler: Add support to decode _PLD buffers. The decoded buffer 5183appears 5184within comments in the output file. 5185 5186Debugger: Fixed a regression with the "Threads" command where 5187AE_BAD_PARAMETER was always returned. 5188 5189---------------------------------------- 519011 July 2012. Summary of changes for version 20120711: 5191 51921) ACPICA Kernel-resident Subsystem: 5193 5194Fixed a possible fault in the return package object repair code. Fixes a 5195problem that can occur when a lone package object is wrapped with an 5196outer 5197package object in order to force conformance to the ACPI specification. 5198Can 5199affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 5200_DLM, 5201_CSD, _PSD, _TSD. 5202 5203Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 5204PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 5205ARB_DIS bit must be implemented in the host-dependent C3 processor power 5206state 5207support. Note, ARB_DIS is obsolete and only applies to older chipsets, 5208both 5209Intel and other vendors. (for Intel: ICH4-M and earlier) 5210 5211This change removes the code to disable/enable bus master arbitration 5212during 5213suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 5214causes 5215resume problems on some machines. The change has been in use for over 5216seven 5217years within Linux. 5218 5219Implemented two new external interfaces to support host-directed dynamic 5220ACPI 5221table load and unload. They are intended to simplify the host 5222implementation 5223of hot-plug support: 5224 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 5225 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 5226table. 5227See the ACPICA reference for additional details. Adds one new file, 5228components/tables/tbxfload.c 5229 5230Implemented and deployed two new interfaces for errors and warnings that 5231are 5232known to be caused by BIOS/firmware issues: 5233 AcpiBiosError: Prints "ACPI Firmware Error" message. 5234 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 5235Deployed these new interfaces in the ACPICA Table Manager code for ACPI 5236table 5237and FADT errors. Additional deployment to be completed as appropriate in 5238the 5239future. The associated conditional macros are ACPI_BIOS_ERROR and 5240ACPI_BIOS_WARNING. See the ACPICA reference for additional details. 5241ACPICA 5242BZ 5243843. 5244 5245Implicit notify support: ensure that no memory allocation occurs within a 5246critical region. This fix moves a memory allocation outside of the time 5247that a 5248spinlock is held. Fixes issues on systems that do not allow this 5249behavior. 5250Jung-uk Kim. 5251 5252Split exception code utilities and tables into a new file, 5253utilities/utexcep.c 5254 5255Example Code and Data Size: These are the sizes for the OS-independent 5256acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5257debug 5258version of the code includes the debug output trace mechanism and has a 5259much 5260larger code and data size. 5261 5262 Previous Release: 5263 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 5264 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 5265 Current Release: 5266 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 5267 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 5268 5269 52702) iASL Compiler/Disassembler and Tools: 5271 5272iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 5273of 52740. Jung-uk Kim. 5275 5276Debugger: Enhanced the "tables" command to emit additional information 5277about 5278the current set of ACPI tables, including the owner ID and flags decode. 5279 5280Debugger: Reimplemented the "unload" command to use the new 5281AcpiUnloadParentTable external interface. This command was disable 5282previously 5283due to need for an unload interface. 5284 5285AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 5286option 5287will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 5288 5289---------------------------------------- 529020 June 2012. Summary of changes for version 20120620: 5291 5292 52931) ACPICA Kernel-resident Subsystem: 5294 5295Implemented support to expand the "implicit notify" feature to allow 5296multiple 5297devices to be notified by a single GPE. This feature automatically 5298generates a 5299runtime device notification in the absence of a BIOS-provided GPE control 5300method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 5301notify is 5302provided by ACPICA for Windows compatibility, and is a workaround for 5303BIOS 5304AML 5305code errors. See the description of the AcpiSetupGpeForWake interface in 5306the 5307APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 5308 5309Changed some comments and internal function names to simplify and ensure 5310correctness of the Linux code translation. No functional changes. 5311 5312Example Code and Data Size: These are the sizes for the OS-independent 5313acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5314debug 5315version of the code includes the debug output trace mechanism and has a 5316much 5317larger code and data size. 5318 5319 Previous Release: 5320 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 5321 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 5322 Current Release: 5323 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 5324 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 5325 5326 53272) iASL Compiler/Disassembler and Tools: 5328 5329Disassembler: Added support to emit short, commented descriptions for the 5330ACPI 5331predefined names in order to improve the readability of the disassembled 5332output. ACPICA BZ 959. Changes include: 5333 1) Emit descriptions for all standard predefined names (_INI, _STA, 5334_PRW, 5335etc.) 5336 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 5337 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 5338etc.) 5339 5340AcpiSrc: Fixed several long-standing Linux code translation issues. 5341Argument 5342descriptions in function headers are now translated properly to lower 5343case 5344and 5345underscores. ACPICA BZ 961. Also fixes translation problems such as 5346these: 5347(old -> new) 5348 i_aSL -> iASL 5349 00-7_f -> 00-7F 5350 16_k -> 16K 5351 local_fADT -> local_FADT 5352 execute_oSI -> execute_OSI 5353 5354iASL: Fixed a problem where null bytes were inadvertently emitted into 5355some 5356listing files. 5357 5358iASL: Added the existing debug options to the standard help screen. There 5359are 5360no longer two different help screens. ACPICA BZ 957. 5361 5362AcpiHelp: Fixed some typos in the various predefined name descriptions. 5363Also 5364expand some of the descriptions where appropriate. 5365 5366iASL: Fixed the -ot option (display compile times/statistics). Was not 5367working 5368properly for standard output; only worked for the debug file case. 5369 5370---------------------------------------- 537118 May 2012. Summary of changes for version 20120518: 5372 5373 53741) ACPICA Core Subsystem: 5375 5376Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 5377defined 5378to block until asynchronous events such as notifies and GPEs have 5379completed. 5380Within ACPICA, it is only called before a notify or GPE handler is 5381removed/uninstalled. It also may be useful for the host OS within related 5382drivers such as the Embedded Controller driver. See the ACPICA reference 5383for 5384additional information. ACPICA BZ 868. 5385 5386ACPI Tables: Added a new error message for a possible overflow failure 5387during 5388the conversion of FADT 32-bit legacy register addresses to internal 5389common 539064- 5391bit GAS structure representation. The GAS has a one-byte "bit length" 5392field, 5393thus limiting the register length to 255 bits. ACPICA BZ 953. 5394 5395Example Code and Data Size: These are the sizes for the OS-independent 5396acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5397debug 5398version of the code includes the debug output trace mechanism and has a 5399much 5400larger code and data size. 5401 5402 Previous Release: 5403 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 5404 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 5405 Current Release: 5406 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 5407 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 5408 5409 54102) iASL Compiler/Disassembler and Tools: 5411 5412iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 5413macro. 5414This keyword was added late in the ACPI 5.0 release cycle and was not 5415implemented until now. 5416 5417Disassembler: Added support for Operation Region externals. Adds missing 5418support for operation regions that are defined in another table, and 5419referenced locally via a Field or BankField ASL operator. Now generates 5420the 5421correct External statement. 5422 5423Disassembler: Several additional fixes for the External() statement 5424generation 5425related to some ASL operators. Also, order the External() statements 5426alphabetically in the disassembler output. Fixes the External() 5427generation 5428for 5429the Create* field, Alias, and Scope operators: 5430 1) Create* buffer field operators - fix type mismatch warning on 5431disassembly 5432 2) Alias - implement missing External support 5433 3) Scope - fix to make sure all necessary externals are emitted. 5434 5435iASL: Improved pathname support. For include files, merge the prefix 5436pathname 5437with the file pathname and eliminate unnecessary components. Convert 5438backslashes in all pathnames to forward slashes, for readability. Include 5439file 5440pathname changes affect both #include and Include() type operators. 5441 5442iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 5443end 5444of a valid line by inserting a newline and then returning the EOF during 5445the 5446next call to GetNextLine. Prevents the line from being ignored due to EOF 5447condition. 5448 5449iASL: Implemented some changes to enhance the IDE support (-vi option.) 5450Error 5451and Warning messages are now correctly recognized for both the source 5452code 5453browser and the global error and warning counts. 5454 5455---------------------------------------- 545620 April 2012. Summary of changes for version 20120420: 5457 5458 54591) ACPICA Core Subsystem: 5460 5461Implemented support for multiple notify handlers. This change adds 5462support 5463to 5464allow multiple system and device notify handlers on Device, Thermal Zone, 5465and 5466Processor objects. This can simplify the host OS notification 5467implementation. 5468Also re-worked and restructured the entire notify support code to 5469simplify 5470handler installation, handler removal, notify event queuing, and notify 5471dispatch to handler(s). Note: there can still only be two global notify 5472handlers - one for system notifies and one for device notifies. There are 5473no 5474changes to the existing handler install/remove interfaces. Lin Ming, Bob 5475Moore, Rafael Wysocki. 5476 5477Fixed a regression in the package repair code where the object reference 5478count was calculated incorrectly. Regression was introduced in the commit 5479"Support to add Package wrappers". 5480 5481Fixed a couple possible memory leaks in the AML parser, in the error 5482recovery 5483path. Jesper Juhl, Lin Ming. 5484 5485Example Code and Data Size: These are the sizes for the OS-independent 5486acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5487debug version of the code includes the debug output trace mechanism and 5488has a 5489much larger code and data size. 5490 5491 Previous Release: 5492 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 5493 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 5494 Current Release: 5495 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 5496 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 5497 5498 54992) iASL Compiler/Disassembler and Tools: 5500 5501iASL: Fixed a problem with the resource descriptor support where the 5502length 5503of the StartDependentFn and StartDependentFnNoPrio descriptors were not 5504included in cumulative descriptor offset, resulting in incorrect values 5505for 5506resource tags within resource descriptors appearing after a 5507StartDependent* 5508descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 5509 5510iASL and Preprocessor: Implemented full support for the #line directive 5511to 5512correctly track original source file line numbers through the .i 5513preprocessor 5514output file - for error and warning messages. 5515 5516iASL: Expand the allowable byte constants for address space IDs. 5517Previously, 5518the allowable range was 0x80-0xFF (user-defined spaces), now the range is 55190x0A-0xFF to allow for custom and new IDs without changing the compiler. 5520 5521iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 5522 5523iASL: Add option to completely disable the preprocessor (-Pn). 5524 5525iASL: Now emit all error/warning messages to standard error (stderr) by 5526default (instead of the previous stdout). 5527 5528ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 5529Update 5530for resource descriptor offset fix above. Update/cleanup error output 5531routines. Enable and send iASL errors/warnings to an error logfile 5532(error.txt). Send all other iASL output to a logfile (compiler.txt). 5533Fixed 5534several extraneous "unrecognized operator" messages. 5535 5536---------------------------------------- 553720 March 2012. Summary of changes for version 20120320: 5538 5539 55401) ACPICA Core Subsystem: 5541 5542Enhanced the sleep/wake interfaces to optionally execute the _GTS method 5543(Going To Sleep) and the _BFS method (Back From Sleep). Windows 5544apparently 5545does not execute these methods, and therefore these methods are often 5546untested. It has been seen on some systems where the execution of these 5547methods causes errors and also prevents the machine from entering S5. It 5548is 5549therefore suggested that host operating systems do not execute these 5550methods 5551by default. In the future, perhaps these methods can be optionally 5552executed 5553based on the age of the system and/or what is the newest version of 5554Windows 5555that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 5556and 5557AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 5558Ming. 5559 5560Fixed a problem where the length of the local/common FADT was set too 5561early. 5562The local FADT table length cannot be set to the common length until the 5563original length has been examined. There is code that checks the table 5564length 5565and sets various fields appropriately. This can affect older machines 5566with 5567early FADT versions. For example, this can cause inadvertent writes to 5568the 5569CST_CNT register. Julian Anastasov. 5570 5571Fixed a mapping issue related to a physical table override. Use the 5572deferred 5573mapping mechanism for tables loaded via the physical override OSL 5574interface. 5575This allows for early mapping before the virtual memory manager is 5576available. 5577Thomas Renninger, Bob Moore. 5578 5579Enhanced the automatic return-object repair code: Repair a common problem 5580with 5581predefined methods that are defined to return a variable-length Package 5582of 5583sub-objects. If there is only one sub-object, some BIOS ASL code 5584mistakenly 5585simply returns the single object instead of a Package with one sub- 5586object. 5587This new support will repair this error by wrapping a Package object 5588around 5589the original object, creating the correct and expected Package with one 5590sub- 5591object. Names that can be repaired in this manner include: _ALR, _CSD, 5592_HPX, 5593_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 5594939. 5595 5596Changed the exception code returned for invalid ACPI paths passed as 5597parameters to external interfaces such as AcpiEvaluateObject. Was 5598AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 5599 5600Example Code and Data Size: These are the sizes for the OS-independent 5601acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5602debug 5603version of the code includes the debug output trace mechanism and has a 5604much 5605larger code and data size. 5606 5607 Previous Release: 5608 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 5609 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 5610 Current Release: 5611 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 5612 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 5613 5614 56152) iASL Compiler/Disassembler and Tools: 5616 5617iASL: Added the infrastructure and initial implementation of a integrated 5618C- 5619like preprocessor. This will simplify BIOS development process by 5620eliminating 5621the need for a separate preprocessing step during builds. On Windows, it 5622also 5623eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 5624features including full #define() macro support are still under 5625development. 5626These preprocessor directives are supported: 5627 #define 5628 #elif 5629 #else 5630 #endif 5631 #error 5632 #if 5633 #ifdef 5634 #ifndef 5635 #include 5636 #pragma message 5637 #undef 5638 #warning 5639In addition, these new command line options are supported: 5640 -D <symbol> Define symbol for preprocessor use 5641 -li Create preprocessed output file (*.i) 5642 -P Preprocess only and create preprocessor output file (*.i) 5643 5644Table Compiler: Fixed a problem where the equals operator within an 5645expression 5646did not work properly. 5647 5648Updated iASL to use the current versions of Bison/Flex. Updated the 5649Windows 5650project file to invoke these tools from the standard location. ACPICA BZ 5651904. 5652Versions supported: 5653 Flex for Windows: V2.5.4 5654 Bison for Windows: V2.4.1 5655 5656---------------------------------------- 565715 February 2012. Summary of changes for version 20120215: 5658 5659 56601) ACPICA Core Subsystem: 5661 5662There have been some major changes to the sleep/wake support code, as 5663described below (a - e). 5664 5665a) The AcpiLeaveSleepState has been split into two interfaces, similar to 5666AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 5667AcpiLeaveSleepStatePrep. This allows the host to perform actions between 5668the 5669time the _BFS method is called and the _WAK method is called. NOTE: all 5670hosts 5671must update their wake/resume code or else sleep/wake will not work 5672properly. 5673Rafael Wysocki. 5674 5675b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 5676_WAK 5677method. Some machines require that the GPEs are enabled before the _WAK 5678method 5679is executed. Thomas Renninger. 5680 5681c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) 5682bit. 5683Some BIOS code assumes that WAK_STS will be cleared on resume and use it 5684to 5685determine whether the system is rebooting or resuming. Matthew Garrett. 5686 5687d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 5688Sleep) to 5689match the ACPI specification requirement. Rafael Wysocki. 5690 5691e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 5692registers within the V5 FADT. This support adds two new files: 5693hardware/hwesleep.c implements the support for the new registers. Moved 5694all 5695sleep/wake external interfaces to hardware/hwxfsleep.c. 5696 5697 5698Added a new OSL interface for ACPI table overrides, 5699AcpiOsPhysicalTableOverride. This interface allows the host to override a 5700table via a physical address, instead of the logical address required by 5701AcpiOsTableOverride. This simplifies the host implementation. Initial 5702implementation by Thomas Renninger. The ACPICA implementation creates a 5703single 5704shared function for table overrides that attempts both a logical and a 5705physical override. 5706 5707Expanded the OSL memory read/write interfaces to 64-bit data 5708(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 5709transfer support for GAS register structures passed to AcpiRead and 5710AcpiWrite. 5711 5712Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 5713custom 5714build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 5715model. 5716See the ACPICA reference for details. ACPICA BZ 942. This option removes 5717about 571810% of the code and 5% of the static data, and the following hardware 5719ACPI 5720features become unavailable: 5721 PM Event and Control registers 5722 SCI interrupt (and handler) 5723 Fixed Events 5724 General Purpose Events (GPEs) 5725 Global Lock 5726 ACPI PM timer 5727 FACS table (Waking vectors and Global Lock) 5728 5729Updated the unix tarball directory structure to match the ACPICA git 5730source 5731tree. This ensures that the generic unix makefiles work properly (in 5732generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 5733867. 5734 5735Updated the return value of the _REV predefined method to integer value 5 5736to 5737reflect ACPI 5.0 support. 5738 5739Moved the external ACPI PM timer interface prototypes to the public 5740acpixf.h 5741file where they belong. 5742 5743Example Code and Data Size: These are the sizes for the OS-independent 5744acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5745debug 5746version of the code includes the debug output trace mechanism and has a 5747much 5748larger code and data size. 5749 5750 Previous Release: 5751 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 5752 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 5753 Current Release: 5754 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 5755 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 5756 5757 57582) iASL Compiler/Disassembler and Tools: 5759 5760Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 5761descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 5762incorrectly displayed. 5763 5764AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 5765specification. 5766 5767---------------------------------------- 576811 January 2012. Summary of changes for version 20120111: 5769 5770 57711) ACPICA Core Subsystem: 5772 5773Implemented a new mechanism to allow host device drivers to check for 5774address 5775range conflicts with ACPI Operation Regions. Both SystemMemory and 5776SystemIO 5777address spaces are supported. A new external interface, 5778AcpiCheckAddressRange, 5779allows drivers to check an address range against the ACPI namespace. See 5780the 5781ACPICA reference for additional details. Adds one new file, 5782utilities/utaddress.c. Lin Ming, Bob Moore. 5783 5784Fixed several issues with the ACPI 5.0 FADT support: Add the sleep 5785Control 5786and 5787Status registers, update the ACPI 5.0 flags, and update internal data 5788structures to handle an FADT larger than 256 bytes. The size of the ACPI 57895.0 5790FADT is 268 bytes. 5791 5792Updated all ACPICA copyrights and signons to 2012. Added the 2012 5793copyright to 5794all module headers and signons, including the standard Linux header. This 5795affects virtually every file in the ACPICA core subsystem, iASL compiler, 5796and 5797all ACPICA utilities. 5798 5799Example Code and Data Size: These are the sizes for the OS-independent 5800acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5801debug 5802version of the code includes the debug output trace mechanism and has a 5803much 5804larger code and data size. 5805 5806 Previous Release: 5807 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 5808 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 5809 Current Release: 5810 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 5811 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 5812 5813 58142) iASL Compiler/Disassembler and Tools: 5815 5816Disassembler: fixed a problem with the automatic resource tag generation 5817support. Fixes a problem where the resource tags are inadvertently not 5818constructed if the table being disassembled contains external references 5819to 5820control methods. Moved the actual construction of the tags to after the 5821final 5822namespace is constructed (after 2nd parse is invoked due to external 5823control 5824method references.) ACPICA BZ 941. 5825 5826Table Compiler: Make all "generic" operators caseless. These are the 5827operators 5828like UINT8, String, etc. Making these caseless improves ease-of-use. 5829ACPICA BZ 5830934. 5831 5832---------------------------------------- 583323 November 2011. Summary of changes for version 20111123: 5834 58350) ACPI 5.0 Support: 5836 5837This release contains full support for the ACPI 5.0 specification, as 5838summarized below. 5839 5840Reduced Hardware Support: 5841------------------------- 5842 5843This support allows for ACPI systems without the usual ACPI hardware. 5844This 5845support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 5846will 5847not attempt to initialize or use any of the usual ACPI hardware. Note, 5848when 5849this flag is set, all of the following ACPI hardware is assumed to be not 5850present and is not initialized or accessed: 5851 5852 General Purpose Events (GPEs) 5853 Fixed Events (PM1a/PM1b and PM Control) 5854 Power Management Timer and Console Buttons (power/sleep) 5855 Real-time Clock Alarm 5856 Global Lock 5857 System Control Interrupt (SCI) 5858 The FACS is assumed to be non-existent 5859 5860ACPI Tables: 5861------------ 5862 5863All new tables and updates to existing tables are fully supported in the 5864ACPICA headers (for use by device drivers), the disassembler, and the 5865iASL 5866Data Table Compiler. ACPI 5.0 defines these new tables: 5867 5868 BGRT /* Boot Graphics Resource Table */ 5869 DRTM /* Dynamic Root of Trust for Measurement table */ 5870 FPDT /* Firmware Performance Data Table */ 5871 GTDT /* Generic Timer Description Table */ 5872 MPST /* Memory Power State Table */ 5873 PCCT /* Platform Communications Channel Table */ 5874 PMTT /* Platform Memory Topology Table */ 5875 RASF /* RAS Feature table */ 5876 5877Operation Regions/SpaceIDs: 5878--------------------------- 5879 5880All new operation regions are fully supported by the iASL compiler, the 5881disassembler, and the ACPICA runtime code (for dispatch to region 5882handlers.) 5883The new operation region Space IDs are: 5884 5885 GeneralPurposeIo 5886 GenericSerialBus 5887 5888Resource Descriptors: 5889--------------------- 5890 5891All new ASL resource descriptors are fully supported by the iASL 5892compiler, 5893the 5894ASL/AML disassembler, and the ACPICA runtime Resource Manager code 5895(including 5896all new predefined resource tags). New descriptors are: 5897 5898 FixedDma 5899 GpioIo 5900 GpioInt 5901 I2cSerialBus 5902 SpiSerialBus 5903 UartSerialBus 5904 5905ASL/AML Operators, New and Modified: 5906------------------------------------ 5907 5908One new operator is added, the Connection operator, which is used to 5909associate 5910a GeneralPurposeIo or GenericSerialBus resource descriptor with 5911individual 5912field objects within an operation region. Several new protocols are 5913associated 5914with the AccessAs operator. All are fully supported by the iASL compiler, 5915disassembler, and runtime ACPICA AML interpreter: 5916 5917 Connection // Declare Field Connection 5918attributes 5919 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 5920 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes 5921Protocol 5922 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 5923 RawDataBuffer // Data type for Vendor Data 5924fields 5925 5926Predefined ASL/AML Objects: 5927--------------------------- 5928 5929All new predefined objects/control-methods are supported by the iASL 5930compiler 5931and the ACPICA runtime validation/repair (arguments and return values.) 5932New 5933predefined names include the following: 5934 5935Standard Predefined Names (Objects or Control Methods): 5936 _AEI, _CLS, _CPC, _CWS, _DEP, 5937 _DLM, _EVT, _GCP, _CRT, _GWS, 5938 _HRV, _PRE, _PSE, _SRT, _SUB. 5939 5940Resource Tags (Names used to access individual fields within resource 5941descriptors): 5942 _DBT, _DPL, _DRS, _END, _FLC, 5943 _IOR, _LIN, _MOD, _PAR, _PHA, 5944 _PIN, _PPI, _POL, _RXL, _SLV, 5945 _SPE, _STB, _TXL, _VEN. 5946 5947ACPICA External Interfaces: 5948--------------------------- 5949 5950Several new interfaces have been defined for use by ACPI-related device 5951drivers and other host OS services: 5952 5953AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 5954to 5955acquire and release AML mutexes that are defined in the DSDT/SSDT tables 5956provided by the BIOS. They are intended to be used in conjunction with 5957the 5958ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 5959mutual exclusion with the AML code/interpreter. 5960 5961AcpiGetEventResources: Returns the (formatted) resource descriptors as 5962defined 5963by the ACPI 5.0 _AEI object (ACPI Event Information). This object 5964provides 5965resource descriptors associated with hardware-reduced platform events, 5966similar 5967to the AcpiGetCurrentResources interface. 5968 5969Operation Region Handlers: For General Purpose IO and Generic Serial Bus 5970operation regions, information about the Connection() object and any 5971optional 5972length information is passed to the region handler within the Context 5973parameter. 5974 5975AcpiBufferToResource: This interface converts a raw AML buffer containing 5976a 5977resource template or resource descriptor to the ACPI_RESOURCE internal 5978format 5979suitable for use by device drivers. Can be used by an operation region 5980handler 5981to convert the Connection() buffer object into a ACPI_RESOURCE. 5982 5983Miscellaneous/Tools/TestSuites: 5984------------------------------- 5985 5986Support for extended _HID names (Four alpha characters instead of three). 5987Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 5988Support for ACPI 5.0 features in the ASLTS test suite. 5989Fully updated documentation (ACPICA and iASL reference documents.) 5990 5991ACPI Table Definition Language: 5992------------------------------- 5993 5994Support for this language was implemented and released as a subsystem of 5995the 5996iASL compiler in 2010. (See the iASL compiler User Guide.) 5997 5998 5999Non-ACPI 5.0 changes for this release: 6000-------------------------------------- 6001 60021) ACPICA Core Subsystem: 6003 6004Fix a problem with operation region declarations where a failure can 6005occur 6006if 6007the region name and an argument that evaluates to an object (such as the 6008region address) are in different namespace scopes. Lin Ming, ACPICA BZ 6009937. 6010 6011Do not abort an ACPI table load if an invalid space ID is found within. 6012This 6013will be caught later if the offending method is executed. ACPICA BZ 925. 6014 6015Fixed an issue with the FFixedHW space ID where the ID was not always 6016recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 6017 6018Fixed a problem with the 32-bit generation of the unix-specific OSL 6019(osunixxf.c). Lin Ming, ACPICA BZ 936. 6020 6021Several changes made to enable generation with the GCC 4.6 compiler. 6022ACPICA BZ 6023935. 6024 6025New error messages: Unsupported I/O requests (not 8/16/32 bit), and 6026Index/Bank 6027field registers out-of-range. 6028 60292) iASL Compiler/Disassembler and Tools: 6030 6031iASL: Implemented the __PATH__ operator, which returns the full pathname 6032of 6033the current source file. 6034 6035AcpiHelp: Automatically display expanded keyword information for all ASL 6036operators. 6037 6038Debugger: Add "Template" command to disassemble/dump resource template 6039buffers. 6040 6041Added a new master script to generate and execute the ASLTS test suite. 6042Automatically handles 32- and 64-bit generation. See tests/aslts.sh 6043 6044iASL: Fix problem with listing generation during processing of the 6045Switch() 6046operator where AML listing was disabled until the entire Switch block was 6047completed. 6048 6049iASL: Improve support for semicolon statement terminators. Fix "invalid 6050character" message for some cases when the semicolon is used. Semicolons 6051are 6052now allowed after every <Term> grammar element. ACPICA BZ 927. 6053 6054iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 6055923. 6056 6057Disassembler: Fix problem with disassembly of the DataTableRegion 6058operator 6059where an inadvertent "Unhandled deferred opcode" message could be 6060generated. 6061 60623) Example Code and Data Size 6063 6064These are the sizes for the OS-independent acpica.lib produced by the 6065Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 6066includes the debug output trace mechanism and has a much larger code and 6067data 6068size. 6069 6070 Previous Release: 6071 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6072 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6073 Current Release: 6074 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 6075 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 6076 6077---------------------------------------- 607822 September 2011. Summary of changes for version 20110922: 6079 60800) ACPI 5.0 News: 6081 6082Support for ACPI 5.0 in ACPICA has been underway for several months and 6083will 6084be released at the same time that ACPI 5.0 is officially released. 6085 6086The ACPI 5.0 specification is on track for release in the next few 6087months. 6088 60891) ACPICA Core Subsystem: 6090 6091Fixed a problem where the maximum sleep time for the Sleep() operator was 6092intended to be limited to two seconds, but was inadvertently limited to 609320 6094seconds instead. 6095 6096Linux and Unix makefiles: Added header file dependencies to ensure 6097correct 6098generation of ACPICA core code and utilities. Also simplified the 6099makefiles 6100considerably through the use of the vpath variable to specify search 6101paths. 6102ACPICA BZ 924. 6103 61042) iASL Compiler/Disassembler and Tools: 6105 6106iASL: Implemented support to check the access length for all fields 6107created to 6108access named Resource Descriptor fields. For example, if a resource field 6109is 6110defined to be two bits, a warning is issued if a CreateXxxxField() is 6111used 6112with an incorrect bit length. This is implemented for all current 6113resource 6114descriptor names. ACPICA BZ 930. 6115 6116Disassembler: Fixed a byte ordering problem with the output of 24-bit and 611756- 6118bit integers. 6119 6120iASL: Fixed a couple of issues associated with variable-length package 6121objects. 1) properly handle constants like One, Ones, Zero -- do not make 6122a 6123VAR_PACKAGE when these are used as a package length. 2) Allow the 6124VAR_PACKAGE 6125opcode (in addition to PACKAGE) when validating object types for 6126predefined 6127names. 6128 6129iASL: Emit statistics for all output files (instead of just the ASL input 6130and 6131AML output). Includes listings, hex files, etc. 6132 6133iASL: Added -G option to the table compiler to allow the compilation of 6134custom 6135ACPI tables. The only part of a table that is required is the standard 613636- 6137byte 6138ACPI header. 6139 6140AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 6141headers), 6142which also adds correct 64-bit support. Also, now all output filenames 6143are 6144completely lower case. 6145 6146AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 6147loading table files. A warning is issued for any such tables. The only 6148exception is an FADT. This also fixes a possible fault when attempting to 6149load 6150non-AML tables. ACPICA BZ 932. 6151 6152AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where 6153a 6154missing table terminator could cause a fault when using the -p option. 6155 6156AcpiSrc: Fixed a possible divide-by-zero fault when generating file 6157statistics. 6158 61593) Example Code and Data Size 6160 6161These are the sizes for the OS-independent acpica.lib produced by the 6162Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 6163includes the debug output trace mechanism and has a much larger code and 6164data 6165size. 6166 6167 Previous Release (VC 9.0): 6168 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6169 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6170 Current Release (VC 9.0): 6171 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6172 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6173 6174 6175---------------------------------------- 617623 June 2011. Summary of changes for version 20110623: 6177 61781) ACPI CA Core Subsystem: 6179 6180Updated the predefined name repair mechanism to not attempt repair of a 6181_TSS 6182return object if a _PSS object is present. We can only sort the _TSS 6183return 6184package if there is no _PSS within the same scope. This is because if 6185_PSS 6186is 6187present, the ACPI specification dictates that the _TSS Power Dissipation 6188field 6189is to be ignored, and therefore some BIOSs leave garbage values in the 6190_TSS 6191Power field(s). In this case, it is best to just return the _TSS package 6192as- 6193is. Reported by, and fixed with assistance from Fenghua Yu. 6194 6195Added an option to globally disable the control method return value 6196validation 6197and repair. This runtime option can be used to disable return value 6198repair 6199if 6200this is causing a problem on a particular machine. Also added an option 6201to 6202AcpiExec (-dr) to set this disable flag. 6203 6204All makefiles and project files: Major changes to improve generation of 6205ACPICA 6206tools. ACPICA BZ 912: 6207 Reduce default optimization levels to improve compatibility 6208 For Linux, add strict-aliasing=0 for gcc 4 6209 Cleanup and simplify use of command line defines 6210 Cleanup multithread library support 6211 Improve usage messages 6212 6213Linux-specific header: update handling of THREAD_ID and pthread. For the 621432- 6215bit case, improve casting to eliminate possible warnings, especially with 6216the 6217acpica tools. 6218 6219Example Code and Data Size: These are the sizes for the OS-independent 6220acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6221debug 6222version of the code includes the debug output trace mechanism and has a 6223much 6224larger code and data size. 6225 6226 Previous Release (VC 9.0): 6227 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 6228 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6229 Current Release (VC 9.0): 6230 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6231 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6232 62332) iASL Compiler/Disassembler and Tools: 6234 6235With this release, a new utility named "acpihelp" has been added to the 6236ACPICA 6237package. This utility summarizes the ACPI specification chapters for the 6238ASL 6239and AML languages. It generates under Linux/Unix as well as Windows, and 6240provides the following functionality: 6241 Find/display ASL operator(s) -- with description and syntax. 6242 Find/display ASL keyword(s) -- with exact spelling and descriptions. 6243 Find/display ACPI predefined name(s) -- with description, number 6244 of arguments, and the return value data type. 6245 Find/display AML opcode name(s) -- with opcode, arguments, and 6246grammar. 6247 Decode/display AML opcode -- with opcode name, arguments, and 6248grammar. 6249 6250Service Layers: Make multi-thread support configurable. Conditionally 6251compile 6252the multi-thread support so that threading libraries will not be linked 6253if 6254not 6255necessary. The only tool that requires multi-thread support is AcpiExec. 6256 6257iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 6258of 6259Bison appear to want the interface to yyerror to be a const char * (or at 6260least this is a problem when generating iASL on some systems.) ACPICA BZ 6261923 6262Pierre Lejeune. 6263 6264Tools: Fix for systems where O_BINARY is not defined. Only used for 6265Windows 6266versions of the tools. 6267 6268---------------------------------------- 626927 May 2011. Summary of changes for version 20110527: 6270 62711) ACPI CA Core Subsystem: 6272 6273ASL Load() operator: Reinstate most restrictions on the incoming ACPI 6274table 6275signature. Now, only allow SSDT, OEMx, and a null signature. History: 6276 1) Originally, we checked the table signature for "SSDT" or "PSDT". 6277 (PSDT is now obsolete.) 6278 2) We added support for OEMx tables, signature "OEM" plus a fourth 6279 "don't care" character. 6280 3) Valid tables were encountered with a null signature, so we just 6281 gave up on validating the signature, (05/2008). 6282 4) We encountered non-AML tables such as the MADT, which caused 6283 interpreter errors and kernel faults. So now, we once again allow 6284 only SSDT, OEMx, and now, also a null signature. (05/2011). 6285 6286Added the missing _TDL predefined name to the global name list in order 6287to 6288enable validation. Affects both the core ACPICA code and the iASL 6289compiler. 6290 6291Example Code and Data Size: These are the sizes for the OS-independent 6292acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6293debug 6294version of the code includes the debug output trace mechanism and has a 6295much 6296larger code and data size. 6297 6298 Previous Release (VC 9.0): 6299 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 6300 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 6301 Current Release (VC 9.0): 6302 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 6303 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6304 63052) iASL Compiler/Disassembler and Tools: 6306 6307Debugger/AcpiExec: Implemented support for "complex" method arguments on 6308the 6309debugger command line. This adds support beyond simple integers -- 6310including 6311Strings, Buffers, and Packages. Includes support for nested packages. 6312Increased the default command line buffer size to accommodate these 6313arguments. 6314See the ACPICA reference for details and syntax. ACPICA BZ 917. 6315 6316Debugger/AcpiExec: Implemented support for "default" method arguments for 6317the 6318Execute/Debug command. Now, the debugger will always invoke a control 6319method 6320with the required number of arguments -- even if the command line 6321specifies 6322none or insufficient arguments. It uses default integer values for any 6323missing 6324arguments. Also fixes a bug where only six method arguments maximum were 6325supported instead of the required seven. 6326 6327Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 6328and 6329also return status in order to prevent buffer overruns. See the ACPICA 6330reference for details and syntax. ACPICA BZ 921 6331 6332iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 6333makefiles to simplify support for the two different but similar parser 6334generators, bison and yacc. 6335 6336Updated the generic unix makefile for gcc 4. The default gcc version is 6337now 6338expected to be 4 or greater, since options specific to gcc 4 are used. 6339 6340---------------------------------------- 634113 April 2011. Summary of changes for version 20110413: 6342 63431) ACPI CA Core Subsystem: 6344 6345Implemented support to execute a so-called "orphan" _REG method under the 6346EC 6347device. This change will force the execution of a _REG method underneath 6348the 6349EC 6350device even if there is no corresponding operation region of type 6351EmbeddedControl. Fixes a problem seen on some machines and apparently is 6352compatible with Windows behavior. ACPICA BZ 875. 6353 6354Added more predefined methods that are eligible for automatic NULL 6355package 6356element removal. This change adds another group of predefined names to 6357the 6358list 6359of names that can be repaired by having NULL package elements dynamically 6360removed. This group are those methods that return a single variable- 6361length 6362package containing simple data types such as integers, buffers, strings. 6363This 6364includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 6365_PSL, 6366_Sx, 6367and _TZD. ACPICA BZ 914. 6368 6369Split and segregated all internal global lock functions to a new file, 6370evglock.c. 6371 6372Updated internal address SpaceID for DataTable regions. Moved this 6373internal 6374space 6375id in preparation for ACPI 5.0 changes that will include some new space 6376IDs. 6377This 6378change should not affect user/host code. 6379 6380Example Code and Data Size: These are the sizes for the OS-independent 6381acpica.lib 6382produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 6383version of 6384the code includes the debug output trace mechanism and has a much larger 6385code 6386and 6387data size. 6388 6389 Previous Release (VC 9.0): 6390 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 6391 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 6392 Current Release (VC 9.0): 6393 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 6394 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 6395 63962) iASL Compiler/Disassembler and Tools: 6397 6398iASL/DTC: Major update for new grammar features. Allow generic data types 6399in 6400custom ACPI tables. Field names are now optional. Any line can be split 6401to 6402multiple lines using the continuation char (\). Large buffers now use 6403line- 6404continuation character(s) and no colon on the continuation lines. See the 6405grammar 6406update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 6407Moore. 6408 6409iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 6410statements. 6411Since the parser stuffs a "zero" as the return value for these statements 6412(due 6413to 6414the underlying AML grammar), they were seen as "return with value" by the 6415iASL 6416semantic checking. They are now seen correctly as "null" return 6417statements. 6418 6419iASL: Check if a_REG declaration has a corresponding Operation Region. 6420Adds a 6421check for each _REG to ensure that there is in fact a corresponding 6422operation 6423region declaration in the same scope. If not, the _REG method is not very 6424useful 6425since it probably won't be executed. ACPICA BZ 915. 6426 6427iASL/DTC: Finish support for expression evaluation. Added a new 6428expression 6429parser 6430that implements c-style operator precedence and parenthesization. ACPICA 6431bugzilla 6432908. 6433 6434Disassembler/DTC: Remove support for () and <> style comments in data 6435tables. 6436Now 6437that DTC has full expression support, we don't want to have comment 6438strings 6439that 6440start with a parentheses or a less-than symbol. Now, only the standard /* 6441and 6442// 6443comments are supported, as well as the bracket [] comments. 6444 6445AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 6446"unusual" 6447headers in the acpidump file. Update the header validation to support 6448these 6449tables. Problem introduced in previous AcpiXtract version in the change 6450to 6451support "wrong checksum" error messages emitted by acpidump utility. 6452 6453iASL: Add a * option to generate all template files (as a synonym for 6454ALL) 6455as 6456in 6457"iasl -T *" or "iasl -T ALL". 6458 6459iASL/DTC: Do not abort compiler on fatal errors. We do not want to 6460completely 6461abort the compiler on "fatal" errors, simply should abort the current 6462compile. 6463This allows multiple compiles with a single (possibly wildcard) compiler 6464invocation. 6465 6466---------------------------------------- 646716 March 2011. Summary of changes for version 20110316: 6468 64691) ACPI CA Core Subsystem: 6470 6471Fixed a problem caused by a _PRW method appearing at the namespace root 6472scope 6473during the setup of wake GPEs. A fault could occur if a _PRW directly 6474under 6475the 6476root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 6477 6478Implemented support for "spurious" Global Lock interrupts. On some 6479systems, a 6480global lock interrupt can occur without the pending flag being set. Upon 6481a 6482GL 6483interrupt, we now ensure that a thread is actually waiting for the lock 6484before 6485signaling GL availability. Rafael Wysocki, Bob Moore. 6486 6487Example Code and Data Size: These are the sizes for the OS-independent 6488acpica.lib 6489produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 6490version of 6491the code includes the debug output trace mechanism and has a much larger 6492code 6493and 6494data size. 6495 6496 Previous Release (VC 9.0): 6497 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 6498 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 6499 Current Release (VC 9.0): 6500 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 6501 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 6502 65032) iASL Compiler/Disassembler and Tools: 6504 6505Implemented full support for the "SLIC" ACPI table. Includes support in 6506the 6507header files, disassembler, table compiler, and template generator. Bob 6508Moore, 6509Lin Ming. 6510 6511AcpiXtract: Correctly handle embedded comments and messages from 6512AcpiDump. 6513Apparently some or all versions of acpidump will occasionally emit a 6514comment 6515like 6516"Wrong checksum", etc., into the dump file. This was causing problems for 6517AcpiXtract. ACPICA BZ 905. 6518 6519iASL: Fix the Linux makefile by removing an inadvertent double file 6520inclusion. 6521ACPICA BZ 913. 6522 6523AcpiExec: Update installation of operation region handlers. Install one 6524handler 6525for a user-defined address space. This is used by the ASL test suite 6526(ASLTS). 6527 6528---------------------------------------- 652911 February 2011. Summary of changes for version 20110211: 6530 65311) ACPI CA Core Subsystem: 6532 6533Added a mechanism to defer _REG methods for some early-installed 6534handlers. 6535Most user handlers should be installed before call to 6536AcpiEnableSubsystem. 6537However, Event handlers and region handlers should be installed after 6538AcpiInitializeObjects. Override handlers for the "default" regions should 6539be 6540installed early, however. This change executes all _REG methods for the 6541default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 6542chicken/egg issues between them. ACPICA BZ 848. 6543 6544Implemented an optimization for GPE detection. This optimization will 6545simply 6546ignore GPE registers that contain no enabled GPEs -- there is no need to 6547read the register since this information is available internally. This 6548becomes more important on machines with a large GPE space. ACPICA 6549bugzilla 6550884. Lin Ming. Suggestion from Joe Liu. 6551 6552Removed all use of the highly unreliable FADT revision field. The 6553revision 6554number in the FADT has been found to be completely unreliable and cannot 6555be 6556trusted. Only the actual table length can be used to infer the version. 6557This 6558change updates the ACPICA core and the disassembler so that both no 6559longer 6560even look at the FADT version and instead depend solely upon the FADT 6561length. 6562 6563Fix an unresolved name issue for the no-debug and no-error-message source 6564generation cases. The _AcpiModuleName was left undefined in these cases, 6565but 6566it is actually needed as a parameter to some interfaces. Define 6567_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 6568 6569Split several large files (makefiles and project files updated) 6570 utglobal.c -> utdecode.c 6571 dbcomds.c -> dbmethod.c dbnames.c 6572 dsopcode.c -> dsargs.c dscontrol.c 6573 dsload.c -> dsload2.c 6574 aslanalyze.c -> aslbtypes.c aslwalks.c 6575 6576Example Code and Data Size: These are the sizes for the OS-independent 6577acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6578debug version of the code includes the debug output trace mechanism and 6579has 6580a much larger code and data size. 6581 6582 Previous Release (VC 9.0): 6583 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 6584 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 6585 Current Release (VC 9.0): 6586 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 6587 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 6588 65892) iASL Compiler/Disassembler and Tools: 6590 6591iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 6592These are useful C-style macros with the standard definitions. ACPICA 6593bugzilla 898. 6594 6595iASL/DTC: Added support for integer expressions and labels. Support for 6596full 6597expressions for all integer fields in all ACPI tables. Support for labels 6598in 6599"generic" portions of tables such as UEFI. See the iASL reference manual. 6600 6601Debugger: Added a command to display the status of global handlers. The 6602"handlers" command will display op region, fixed event, and miscellaneous 6603global handlers. installation status -- and for op regions, whether 6604default 6605or user-installed handler will be used. 6606 6607iASL: Warn if reserved method incorrectly returns a value. Many 6608predefined 6609names are defined such that they do not return a value. If implemented as 6610a 6611method, issue a warning if such a name explicitly returns a value. ACPICA 6612Bugzilla 855. 6613 6614iASL: Added detection of GPE method name conflicts. Detects a conflict 6615where 6616there are two GPE methods of the form _Lxy and _Exy in the same scope. 6617(For 6618example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 6619 6620iASL/DTC: Fixed a couple input scanner issues with comments and line 6621numbers. Comment remover could get confused and miss a comment ending. 6622Fixed 6623a problem with line counter maintenance. 6624 6625iASL/DTC: Reduced the severity of some errors from fatal to error. There 6626is 6627no need to abort on simple errors within a field definition. 6628 6629Debugger: Simplified the output of the help command. All help output now 6630in 6631a single screen, instead of help subcommands. ACPICA Bugzilla 897. 6632 6633---------------------------------------- 663412 January 2011. Summary of changes for version 20110112: 6635 66361) ACPI CA Core Subsystem: 6637 6638Fixed a race condition between method execution and namespace walks that 6639can 6640possibly cause a fault. The problem was apparently introduced in version 664120100528 as a result of a performance optimization that reduces the 6642number 6643of 6644namespace walks upon method exit by using the delete_namespace_subtree 6645function instead of the delete_namespace_by_owner function used 6646previously. 6647Bug is a missing namespace lock in the delete_namespace_subtree function. 6648dana.myers@oracle.com 6649 6650Fixed several issues and a possible fault with the automatic "serialized" 6651method support. History: This support changes a method to "serialized" on 6652the 6653fly if the method generates an AE_ALREADY_EXISTS error, indicating the 6654possibility that it cannot handle reentrancy. This fix repairs a couple 6655of 6656issues seen in the field, especially on machines with many cores: 6657 6658 1) Delete method children only upon the exit of the last thread, 6659 so as to not delete objects out from under other running threads 6660 (and possibly causing a fault.) 6661 2) Set the "serialized" bit for the method only upon the exit of the 6662 Last thread, so as to not cause deadlock when running threads 6663 attempt to exit. 6664 3) Cleanup the use of the AML "MethodFlags" and internal method flags 6665 so that there is no longer any confusion between the two. 6666 6667 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 6668 6669Debugger: Now lock the namespace for duration of a namespace dump. 6670Prevents 6671issues if the namespace is changing dynamically underneath the debugger. 6672Especially affects temporary namespace nodes, since the debugger displays 6673these also. 6674 6675Updated the ordering of include files. The ACPICA headers should appear 6676before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 6677set 6678any necessary compiler-specific defines, etc. Affects the ACPI-related 6679tools 6680and utilities. 6681 6682Updated all ACPICA copyrights and signons to 2011. Added the 2011 6683copyright 6684to all module headers and signons, including the Linux header. This 6685affects 6686virtually every file in the ACPICA core subsystem, iASL compiler, and all 6687utilities. 6688 6689Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 6690project files for VC++ 6.0 are now obsolete. New project files can be 6691found 6692under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 6693details. 6694 6695Example Code and Data Size: These are the sizes for the OS-independent 6696acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6697debug version of the code includes the debug output trace mechanism and 6698has a 6699much larger code and data size. 6700 6701 Previous Release (VC 6.0): 6702 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 6703 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 6704 Current Release (VC 9.0): 6705 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 6706 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 6707 67082) iASL Compiler/Disassembler and Tools: 6709 6710iASL: Added generic data types to the Data Table compiler. Add "generic" 6711data 6712types such as UINT32, String, Unicode, etc., to simplify the generation 6713of 6714platform-defined tables such as UEFI. Lin Ming. 6715 6716iASL: Added listing support for the Data Table Compiler. Adds listing 6717support 6718(-l) to display actual binary output for each line of input code. 6719 6720---------------------------------------- 672109 December 2010. Summary of changes for version 20101209: 6722 67231) ACPI CA Core Subsystem: 6724 6725Completed the major overhaul of the GPE support code that was begun in 6726July 67272010. Major features include: removal of _PRW execution in ACPICA (host 6728executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 6729changes to existing interfaces, simplification of GPE handler operation, 6730and 6731a handful of new interfaces: 6732 6733 AcpiUpdateAllGpes 6734 AcpiFinishGpe 6735 AcpiSetupGpeForWake 6736 AcpiSetGpeWakeMask 6737 One new file, evxfgpe.c to consolidate all external GPE interfaces. 6738 6739See the ACPICA Programmer Reference for full details and programming 6740information. See the new section 4.4 "General Purpose Event (GPE) 6741Support" 6742for a full overview, and section 8.7 "ACPI General Purpose Event 6743Management" 6744for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin 6745Ming, 6746Bob Moore, Rafael Wysocki. 6747 6748Implemented a new GPE feature for Windows compatibility, the "Implicit 6749Wake 6750GPE Notify". This feature will automatically issue a Notify(2) on a 6751device 6752when a Wake GPE is received if there is no corresponding GPE method or 6753handler. ACPICA BZ 870. 6754 6755Fixed a problem with the Scope() operator during table parse and load 6756phase. 6757During load phase (table load or method execution), the scope operator 6758should 6759not enter the target into the namespace. Instead, it should open a new 6760scope 6761at the target location. Linux BZ 19462, ACPICA BZ 882. 6762 6763Example Code and Data Size: These are the sizes for the OS-independent 6764acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6765debug version of the code includes the debug output trace mechanism and 6766has a 6767much larger code and data size. 6768 6769 Previous Release: 6770 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 6771 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 6772 Current Release: 6773 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 6774 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 6775 67762) iASL Compiler/Disassembler and Tools: 6777 6778iASL: Relax the alphanumeric restriction on _CID strings. These strings 6779are 6780"bus-specific" per the ACPI specification, and therefore any characters 6781are 6782acceptable. The only checks that can be performed are for a null string 6783and 6784perhaps for a leading asterisk. ACPICA BZ 886. 6785 6786iASL: Fixed a problem where a syntax error that caused a premature EOF 6787condition on the source file emitted a very confusing error message. The 6788premature EOF is now detected correctly. ACPICA BZ 891. 6789 6790Disassembler: Decode the AccessSize within a Generic Address Structure 6791(byte 6792access, word access, etc.) Note, this field does not allow arbitrary bit 6793access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 6794 6795New: AcpiNames utility - Example namespace dump utility. Shows an example 6796of 6797ACPICA configuration for a minimal namespace dump utility. Uses table and 6798namespace managers, but no AML interpreter. Does not add any 6799functionality 6800over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 6801partition and configure ACPICA. ACPICA BZ 883. 6802 6803AML Debugger: Increased the debugger buffer size for method return 6804objects. 6805Was 4K, increased to 16K. Also enhanced error messages for debugger 6806method 6807execution, including the buffer overflow case. 6808 6809---------------------------------------- 681013 October 2010. Summary of changes for version 20101013: 6811 68121) ACPI CA Core Subsystem: 6813 6814Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 6815now 6816clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 6817HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 6818 6819Changed the type of the predefined namespace object _TZ from ThermalZone 6820to 6821Device. This was found to be confusing to the host software that 6822processes 6823the various thermal zones, since _TZ is not really a ThermalZone. 6824However, 6825a 6826Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 6827Zhang. 6828 6829Added Windows Vista SP2 to the list of supported _OSI strings. The actual 6830string is "Windows 2006 SP2". 6831 6832Eliminated duplicate code in AcpiUtExecute* functions. Now that the 6833nsrepair 6834code automatically repairs _HID-related strings, this type of code is no 6835longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 6836878. 6837 6838Example Code and Data Size: These are the sizes for the OS-independent 6839acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6840debug version of the code includes the debug output trace mechanism and 6841has a 6842much larger code and data size. 6843 6844 Previous Release: 6845 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 6846 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 6847 Current Release: 6848 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 6849 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 6850 68512) iASL Compiler/Disassembler and Tools: 6852 6853iASL: Implemented additional compile-time validation for _HID strings. 6854The 6855non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the 6856length 6857of 6858the string must be exactly seven or eight characters. For both _HID and 6859_CID 6860strings, all characters must be alphanumeric. ACPICA BZ 874. 6861 6862iASL: Allow certain "null" resource descriptors. Some BIOS code creates 6863descriptors that are mostly or all zeros, with the expectation that they 6864will 6865be filled in at runtime. iASL now allows this as long as there is a 6866"resource 6867tag" (name) associated with the descriptor, which gives the ASL a handle 6868needed to modify the descriptor. ACPICA BZ 873. 6869 6870Added single-thread support to the generic Unix application OSL. 6871Primarily 6872for iASL support, this change removes the use of semaphores in the 6873single- 6874threaded ACPICA tools/applications - increasing performance. The 6875_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 6876option. ACPICA BZ 879. 6877 6878AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 6879support 6880for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 6881 6882iASL: Moved all compiler messages to a new file, aslmessages.h. 6883 6884---------------------------------------- 688515 September 2010. Summary of changes for version 20100915: 6886 68871) ACPI CA Core Subsystem: 6888 6889Removed the AcpiOsDerivePciId OSL interface. The various host 6890implementations 6891of this function were not OS-dependent and are now obsolete and can be 6892removed from all host OSLs. This function has been replaced by 6893AcpiHwDerivePciId, which is now part of the ACPICA core code. 6894AcpiHwDerivePciId has been implemented without recursion. Adds one new 6895module, hwpci.c. ACPICA BZ 857. 6896 6897Implemented a dynamic repair for _HID and _CID strings. The following 6898problems are now repaired at runtime: 1) Remove a leading asterisk in the 6899string, and 2) the entire string is uppercased. Both repairs are in 6900accordance with the ACPI specification and will simplify host driver 6901code. 6902ACPICA BZ 871. 6903 6904The ACPI_THREAD_ID type is no longer configurable, internally it is now 6905always UINT64. This simplifies the ACPICA code, especially any printf 6906output. 6907UINT64 is the only common data type for all thread_id types across all 6908operating systems. It is now up to the host OSL to cast the native 6909thread_id 6910type to UINT64 before returning the value to ACPICA (via 6911AcpiOsGetThreadId). 6912Lin Ming, Bob Moore. 6913 6914Added the ACPI_INLINE type to enhance the ACPICA configuration. The 6915"inline" 6916keyword is not standard across compilers, and this type allows inline to 6917be 6918configured on a per-compiler basis. Lin Ming. 6919 6920Made the system global AcpiGbl_SystemAwakeAndRunning publicly 6921available. 6922Added an extern for this boolean in acpixf.h. Some hosts utilize this 6923value 6924during suspend/restore operations. ACPICA BZ 869. 6925 6926All code that implements error/warning messages with the "ACPI:" prefix 6927has 6928been moved to a new module, utxferror.c. 6929 6930The UINT64_OVERLAY was moved to utmath.c, which is the only module where 6931it 6932is used. ACPICA BZ 829. Lin Ming, Bob Moore. 6933 6934Example Code and Data Size: These are the sizes for the OS-independent 6935acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6936debug version of the code includes the debug output trace mechanism and 6937has a 6938much larger code and data size. 6939 6940 Previous Release: 6941 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 6942 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 6943 Current Release: 6944 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 6945 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 6946 69472) iASL Compiler/Disassembler and Tools: 6948 6949iASL/Disassembler: Write ACPI errors to stderr instead of the output 6950file. 6951This keeps the output files free of random error messages that may 6952originate 6953from within the namespace/interpreter code. Used this opportunity to 6954merge 6955all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 6956866. Lin Ming, Bob Moore. 6957 6958Tools: update some printfs for ansi warnings on size_t. Handle width 6959change 6960of size_t on 32-bit versus 64-bit generations. Lin Ming. 6961 6962---------------------------------------- 696306 August 2010. Summary of changes for version 20100806: 6964 69651) ACPI CA Core Subsystem: 6966 6967Designed and implemented a new host interface to the _OSI support code. 6968This 6969will allow the host to dynamically add or remove multiple _OSI strings, 6970as 6971well as install an optional handler that is called for each _OSI 6972invocation. 6973Also added a new AML debugger command, 'osi' to display and modify the 6974global 6975_OSI string table, and test support in the AcpiExec utility. See the 6976ACPICA 6977reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 6978New Functions: 6979 AcpiInstallInterface - Add an _OSI string. 6980 AcpiRemoveInterface - Delete an _OSI string. 6981 AcpiInstallInterfaceHandler - Install optional _OSI handler. 6982Obsolete Functions: 6983 AcpiOsValidateInterface - no longer used. 6984New Files: 6985 source/components/utilities/utosi.c 6986 6987Re-introduced the support to enable multi-byte transfers for Embedded 6988Controller (EC) operation regions. A reported problem was found to be a 6989bug 6990in the host OS, not in the multi-byte support. Previously, the maximum 6991data 6992size passed to the EC operation region handler was a single byte. There 6993are 6994often EC Fields larger than one byte that need to be transferred, and it 6995is 6996useful for the EC driver to lock these as a single transaction. This 6997change 6998enables single transfers larger than 8 bits. This effectively changes the 6999access to the EC space from ByteAcc to AnyAcc, and will probably require 7000changes to the host OS Embedded Controller driver to enable 16/32/64/256- 7001bit 7002transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 7003 7004Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 7005prototype in acpiosxf.h had the output value pointer as a (void *). 7006It should be a (UINT64 *). This may affect some host OSL code. 7007 7008Fixed a couple problems with the recently modified Linux makefiles for 7009iASL 7010and AcpiExec. These new makefiles place the generated object files in the 7011local directory so that there can be no collisions between the files that 7012are 7013shared between them that are compiled with different options. 7014 7015Example Code and Data Size: These are the sizes for the OS-independent 7016acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7017debug version of the code includes the debug output trace mechanism and 7018has a 7019much larger code and data size. 7020 7021 Previous Release: 7022 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7023 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 7024 Current Release: 7025 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 7026 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 7027 70282) iASL Compiler/Disassembler and Tools: 7029 7030iASL/Disassembler: Added a new option (-da, "disassemble all") to load 7031the 7032namespace from and disassemble an entire group of AML files. Useful for 7033loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 7034and 7035disassembling with one simple command. ACPICA BZ 865. Lin Ming. 7036 7037iASL: Allow multiple invocations of -e option. This change allows 7038multiple 7039uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 7040834. 7041Lin Ming. 7042 7043---------------------------------------- 704402 July 2010. Summary of changes for version 20100702: 7045 70461) ACPI CA Core Subsystem: 7047 7048Implemented several updates to the recently added GPE reference count 7049support. The model for "wake" GPEs is changing to give the host OS 7050complete 7051control of these GPEs. Eventually, the ACPICA core will not execute any 7052_PRW 7053methods, since the host already must execute them. Also, additional 7054changes 7055were made to help ensure that the reference counts are kept in proper 7056synchronization with reality. Rafael J. Wysocki. 7057 70581) Ensure that GPEs are not enabled twice during initialization. 70592) Ensure that GPE enable masks stay in sync with the reference count. 70603) Do not inadvertently enable GPEs when writing GPE registers. 70614) Remove the internal wake reference counter and add new AcpiGpeWakeup 7062interface. This interface will set or clear individual GPEs for wakeup. 70635) Remove GpeType argument from AcpiEnable and AcpiDisable. These 7064interfaces 7065are now used for "runtime" GPEs only. 7066 7067Changed the behavior of the GPE install/remove handler interfaces. The 7068GPE 7069is 7070no longer disabled during this process, as it was found to cause problems 7071on 7072some machines. Rafael J. Wysocki. 7073 7074Reverted a change introduced in version 20100528 to enable Embedded 7075Controller multi-byte transfers. This change was found to cause problems 7076with 7077Index Fields and possibly Bank Fields. It will be reintroduced when these 7078problems have been resolved. 7079 7080Fixed a problem with references to Alias objects within Package Objects. 7081A 7082reference to an Alias within the definition of a Package was not always 7083resolved properly. Aliases to objects like Processors, Thermal zones, 7084etc. 7085were resolved to the actual object instead of a reference to the object 7086as 7087it 7088should be. Package objects are only allowed to contain integer, string, 7089buffer, package, and reference objects. Redhat bugzilla 608648. 7090 7091Example Code and Data Size: These are the sizes for the OS-independent 7092acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7093debug version of the code includes the debug output trace mechanism and 7094has a 7095much larger code and data size. 7096 7097 Previous Release: 7098 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7099 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 7100 Current Release: 7101 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7102 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 7103 71042) iASL Compiler/Disassembler and Tools: 7105 7106iASL: Implemented a new compiler subsystem to allow definition and 7107compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 7108These 7109are called "ACPI Data Tables", and the new compiler is the "Data Table 7110Compiler". This compiler is intended to simplify the existing error-prone 7111process of creating these tables for the BIOS, as well as allowing the 7112disassembly, modification, recompilation, and override of existing ACPI 7113data 7114tables. See the iASL User Guide for detailed information. 7115 7116iASL: Implemented a new Template Generator option in support of the new 7117Data 7118Table Compiler. This option will create examples of all known ACPI tables 7119that can be used as the basis for table development. See the iASL 7120documentation and the -T option. 7121 7122Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 7123Descriptor Table). 7124 7125Updated the Linux makefiles for iASL and AcpiExec to place the generated 7126object files in the local directory so that there can be no collisions 7127between the shared files between them that are generated with different 7128options. 7129 7130Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. 7131Use 7132the #define __APPLE__ to enable this support. 7133 7134---------------------------------------- 713528 May 2010. Summary of changes for version 20100528: 7136 7137Note: The ACPI 4.0a specification was released on April 5, 2010 and is 7138available at www.acpi.info. This is primarily an errata release. 7139 71401) ACPI CA Core Subsystem: 7141 7142Undefined ACPI tables: We are looking for the definitions for the 7143following 7144ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 7145 7146Implemented support to enable multi-byte transfers for Embedded 7147Controller 7148(EC) operation regions. Previously, the maximum data size passed to the 7149EC 7150operation region handler was a single byte. There are often EC Fields 7151larger 7152than one byte that need to be transferred, and it is useful for the EC 7153driver 7154to lock these as a single transaction. This change enables single 7155transfers 7156larger than 8 bits. This effectively changes the access to the EC space 7157from 7158ByteAcc to AnyAcc, and will probably require changes to the host OS 7159Embedded 7160Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 7161bit 7162transfers. Alexey Starikovskiy, Lin Ming 7163 7164Implemented a performance enhancement for namespace search and access. 7165This 7166change enhances the performance of namespace searches and walks by adding 7167a 7168backpointer to the parent in each namespace node. On large namespaces, 7169this 7170change can improve overall ACPI performance by up to 9X. Adding a pointer 7171to 7172each namespace node increases the overall size of the internal namespace 7173by 7174about 5%, since each namespace entry usually consists of both a namespace 7175node and an ACPI operand object. However, this is the first growth of the 7176namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 7177 7178Implemented a performance optimization that reduces the number of 7179namespace 7180walks. On control method exit, only walk the namespace if the method is 7181known 7182to have created namespace objects outside of its local scope. Previously, 7183the 7184entire namespace was traversed on each control method exit. This change 7185can 7186improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 7187Moore. 7188 7189Added support to truncate I/O addresses to 16 bits for Windows 7190compatibility. 7191Some ASL code has been seen in the field that inadvertently has bits set 7192above bit 15. This feature is optional and is enabled if the BIOS 7193requests 7194any Windows OSI strings. It can also be enabled by the host OS. Matthew 7195Garrett, Bob Moore. 7196 7197Added support to limit the maximum time for the ASL Sleep() operator. To 7198prevent accidental deep sleeps, limit the maximum time that Sleep() will 7199actually sleep. Configurable, the default maximum is two seconds. ACPICA 7200bugzilla 854. 7201 7202Added run-time validation support for the _WDG and_WED Microsoft 7203predefined 7204methods. These objects are defined by "Windows Instrumentation", and are 7205not 7206part of the ACPI spec. ACPICA BZ 860. 7207 7208Expanded all statistic counters used during namespace and device 7209initialization from 16 to 32 bits in order to support very large 7210namespaces. 7211 7212Replaced all instances of %d in printf format specifiers with %u since 7213nearly 7214all integers in ACPICA are unsigned. 7215 7216Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 7217returned 7218as AE_NO_HANDLER. 7219 7220Example Code and Data Size: These are the sizes for the OS-independent 7221acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7222debug version of the code includes the debug output trace mechanism and 7223has a 7224much larger code and data size. 7225 7226 Previous Release: 7227 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 7228 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 7229 Current Release: 7230 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7231 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 7232 72332) iASL Compiler/Disassembler and Tools: 7234 7235iASL: Added compiler support for the _WDG and_WED Microsoft predefined 7236methods. These objects are defined by "Windows Instrumentation", and are 7237not 7238part of the ACPI spec. ACPICA BZ 860. 7239 7240AcpiExec: added option to disable the memory tracking mechanism. The -dt 7241option will disable the tracking mechanism, which improves performance 7242considerably. 7243 7244AcpiExec: Restructured the command line options into -d (disable) and -e 7245(enable) options. 7246 7247---------------------------------------- 724828 April 2010. Summary of changes for version 20100428: 7249 72501) ACPI CA Core Subsystem: 7251 7252Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 7253including FADT-based and GPE Block Devices, execute any _PRW methods in 7254the 7255new table, and process any _Lxx/_Exx GPE methods in the new table. Any 7256runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 7257immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 7258Devices. Provides compatibility with other ACPI implementations. Two new 7259files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 7260Moore. 7261 7262Fixed a regression introduced in version 20100331 within the table 7263manager 7264where initial table loading could fail. This was introduced in the fix 7265for 7266AcpiReallocateRootTable. Also, renamed some of fields in the table 7267manager 7268data structures to clarify their meaning and use. 7269 7270Fixed a possible allocation overrun during internal object copy in 7271AcpiUtCopySimpleObject. The original code did not correctly handle the 7272case 7273where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 7274847. 7275 7276Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 7277possible access beyond end-of-allocation. Also, now fully validate 7278descriptor 7279(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 7280 7281Example Code and Data Size: These are the sizes for the OS-independent 7282acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7283debug version of the code includes the debug output trace mechanism and 7284has a 7285much larger code and data size. 7286 7287 Previous Release: 7288 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 7289 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 7290 Current Release: 7291 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 7292 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 7293 72942) iASL Compiler/Disassembler and Tools: 7295 7296iASL: Implemented Min/Max/Len/Gran validation for address resource 7297descriptors. This change implements validation for the address fields 7298that 7299are common to all address-type resource descriptors. These checks are 7300implemented: Checks for valid Min/Max, length within the Min/Max window, 7301valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as 7302per 7303table 6-40 in the ACPI 4.0a specification. Also split the large 7304aslrestype1.c 7305and aslrestype2.c files into five new files. ACPICA BZ 840. 7306 7307iASL: Added support for the _Wxx predefined names. This support was 7308missing 7309and these names were not recognized by the compiler as valid predefined 7310names. ACPICA BZ 851. 7311 7312iASL: Added an error for all predefined names that are defined to return 7313no 7314value and thus must be implemented as Control Methods. These include all 7315of 7316the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 7317names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 7318 7319iASL: Implemented the -ts option to emit hex AML data in ASL format, as 7320an 7321ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 7322be 7323dynamically loaded via the Load() operator. Also cleaned up output for 7324the 7325- 7326ta and -tc options. ACPICA BZ 853. 7327 7328Tests: Added a new file with examples of extended iASL error checking. 7329Demonstrates the advanced error checking ability of the iASL compiler. 7330Available at tests/misc/badcode.asl. 7331 7332---------------------------------------- 733331 March 2010. Summary of changes for version 20100331: 7334 73351) ACPI CA Core Subsystem: 7336 7337Completed a major update for the GPE support in order to improve support 7338for 7339shared GPEs and to simplify both host OS and ACPICA code. Added a 7340reference 7341count mechanism to support shared GPEs that require multiple device 7342drivers. 7343Several external interfaces have changed. One external interface has been 7344removed. One new external interface was added. Most of the GPE external 7345interfaces now use the GPE spinlock instead of the events mutex (and the 7346Flags parameter for many GPE interfaces has been removed.) See the 7347updated 7348ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 7349Rafael 7350Wysocki. ACPICA BZ 831. 7351 7352Changed: 7353 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 7354Removed: 7355 AcpiSetGpeType 7356New: 7357 AcpiSetGpe 7358 7359Implemented write support for DataTable operation regions. These regions 7360are 7361defined via the DataTableRegion() operator. Previously, only read support 7362was 7363implemented. The ACPI specification allows DataTableRegions to be 7364read/write, 7365however. 7366 7367Implemented a new subsystem option to force a copy of the DSDT to local 7368memory. Optionally copy the entire DSDT to local memory (instead of 7369simply 7370mapping it.) There are some (albeit very rare) BIOSs that corrupt or 7371replace 7372the original DSDT, creating the need for this option. Default is FALSE, 7373do 7374not copy the DSDT. 7375 7376Implemented detection of a corrupted or replaced DSDT. This change adds 7377support to detect a DSDT that has been corrupted and/or replaced from 7378outside 7379the OS (by firmware). This is typically catastrophic for the system, but 7380has 7381been seen on some machines. Once this problem has been detected, the DSDT 7382copy option can be enabled via system configuration. Lin Ming, Bob Moore. 7383 7384Fixed two problems with AcpiReallocateRootTable during the root table 7385copy. 7386When copying the root table to the new allocation, the length used was 7387incorrect. The new size was used instead of the current table size, 7388meaning 7389too much data was copied. Also, the count of available slots for ACPI 7390tables 7391was not set correctly. Alexey Starikovskiy, Bob Moore. 7392 7393Example Code and Data Size: These are the sizes for the OS-independent 7394acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7395debug version of the code includes the debug output trace mechanism and 7396has a 7397much larger code and data size. 7398 7399 Previous Release: 7400 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 7401 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 7402 Current Release: 7403 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 7404 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 7405 74062) iASL Compiler/Disassembler and Tools: 7407 7408iASL: Implement limited typechecking for values returned from predefined 7409control methods. The type of any returned static (unnamed) object is now 7410validated. For example, Return(1). ACPICA BZ 786. 7411 7412iASL: Fixed a predefined name object verification regression. Fixes a 7413problem 7414introduced in version 20100304. An error is incorrectly generated if a 7415predefined name is declared as a static named object with a value defined 7416using the keywords "Zero", "One", or "Ones". Lin Ming. 7417 7418iASL: Added Windows 7 support for the -g option (get local ACPI tables) 7419by 7420reducing the requested registry access rights. ACPICA BZ 842. 7421 7422Disassembler: fixed a possible fault when generating External() 7423statements. 7424Introduced in commit ae7d6fd: Properly handle externals with parent- 7425prefix 7426(carat). Fixes a string length allocation calculation. Lin Ming. 7427 7428---------------------------------------- 742904 March 2010. Summary of changes for version 20100304: 7430 74311) ACPI CA Core Subsystem: 7432 7433Fixed a possible problem with the AML Mutex handling function 7434AcpiExReleaseMutex where the function could fault under the very rare 7435condition when the interpreter has blocked, the interpreter lock is 7436released, 7437the interpreter is then reentered via the same thread, and attempts to 7438acquire an AML mutex that was previously acquired. FreeBSD report 140979. 7439Lin 7440Ming. 7441 7442Implemented additional configuration support for the AML "Debug Object". 7443Output from the debug object can now be enabled via a global variable, 7444AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 7445debugging. 7446This debug output is now available in the release version of ACPICA 7447instead 7448of just the debug version. Also, the entire debug output module can now 7449be 7450configured out of the ACPICA build if desired. One new file added, 7451executer/exdebug.c. Lin Ming, Bob Moore. 7452 7453Added header support for the ACPI MCHI table (Management Controller Host 7454Interface Table). This table was added in ACPI 4.0, but the defining 7455document 7456has only recently become available. 7457 7458Standardized output of integer values for ACPICA warnings/errors. Always 7459use 74600x prefix for hex output, always use %u for unsigned integer decimal 7461output. 7462Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 7463400 7464invocations.) These invocations were converted from the original 7465ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 7466 7467Example Code and Data Size: These are the sizes for the OS-independent 7468acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7469debug version of the code includes the debug output trace mechanism and 7470has a 7471much larger code and data size. 7472 7473 Previous Release: 7474 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 7475 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 7476 Current Release: 7477 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 7478 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 7479 74802) iASL Compiler/Disassembler and Tools: 7481 7482iASL: Implemented typechecking support for static (non-control method) 7483predefined named objects that are declared with the Name() operator. For 7484example, the type of this object is now validated to be of type Integer: 7485Name(_BBN, 1). This change migrates the compiler to using the core 7486predefined 7487name table instead of maintaining a local version. Added a new file, 7488aslpredef.c. ACPICA BZ 832. 7489 7490Disassembler: Added support for the ACPI 4.0 MCHI table. 7491 7492---------------------------------------- 749321 January 2010. Summary of changes for version 20100121: 7494 74951) ACPI CA Core Subsystem: 7496 7497Added the 2010 copyright to all module headers and signons. This affects 7498virtually every file in the ACPICA core subsystem, the iASL compiler, the 7499tools/utilities, and the test suites. 7500 7501Implemented a change to the AcpiGetDevices interface to eliminate 7502unnecessary 7503invocations of the _STA method. In the case where a specific _HID is 7504requested, do not run _STA until a _HID match is found. This eliminates 7505potentially dozens of _STA calls during a search for a particular 7506device/HID, 7507which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 7508 7509Implemented an additional repair for predefined method return values. 7510Attempt 7511to repair unexpected NULL elements within returned Package objects. 7512Create 7513an 7514Integer of value zero, a NULL String, or a zero-length Buffer as 7515appropriate. 7516ACPICA BZ 818. Lin Ming, Bob Moore. 7517 7518Removed the obsolete ACPI_INTEGER data type. This type was introduced as 7519the 7520code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 7521(with 752264-bit AML integers). It is now obsolete and this change removes it from 7523the 7524ACPICA code base, replaced by UINT64. The original typedef has been 7525retained 7526for now for compatibility with existing device driver code. ACPICA BZ 7527824. 7528 7529Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field 7530in 7531the parse tree object. 7532 7533Added additional warning options for the gcc-4 generation. Updated the 7534source 7535accordingly. This includes some code restructuring to eliminate 7536unreachable 7537code, elimination of some gotos, elimination of unused return values, 7538some 7539additional casting, and removal of redundant declarations. 7540 7541Example Code and Data Size: These are the sizes for the OS-independent 7542acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7543debug version of the code includes the debug output trace mechanism and 7544has a 7545much larger code and data size. 7546 7547 Previous Release: 7548 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 7549 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 7550 Current Release: 7551 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 7552 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 7553 75542) iASL Compiler/Disassembler and Tools: 7555 7556No functional changes for this release. 7557 7558---------------------------------------- 755914 December 2009. Summary of changes for version 20091214: 7560 75611) ACPI CA Core Subsystem: 7562 7563Enhanced automatic data type conversions for predefined name repairs. 7564This 7565change expands the automatic repairs/conversions for predefined name 7566return 7567values to make Integers, Strings, and Buffers fully interchangeable. 7568Also, 7569a 7570Buffer can be converted to a Package of Integers if necessary. The 7571nsrepair.c 7572module was completely restructured. Lin Ming, Bob Moore. 7573 7574Implemented automatic removal of null package elements during predefined 7575name 7576repairs. This change will automatically remove embedded and trailing NULL 7577package elements from returned package objects that are defined to 7578contain 7579a 7580variable number of sub-packages. The driver is then presented with a 7581package 7582with no null elements to deal with. ACPICA BZ 819. 7583 7584Implemented a repair for the predefined _FDE and _GTM names. The expected 7585return value for both names is a Buffer of 5 DWORDs. This repair fixes 7586two 7587possible problems (both seen in the field), where a package of integers 7588is 7589returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 7590Kim. 7591 7592Implemented additional module-level code support. This change will 7593properly 7594execute module-level code that is not at the root of the namespace (under 7595a 7596Device object, etc.). Now executes the code within the current scope 7597instead 7598of the root. ACPICA BZ 762. Lin Ming. 7599 7600Fixed possible mutex acquisition errors when running _REG methods. Fixes 7601a 7602problem where mutex errors can occur when running a _REG method that is 7603in 7604the same scope as a method-defined operation region or an operation 7605region 7606under a module-level IF block. This type of code is rare, so the problem 7607has 7608not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 7609 7610Fixed a possible memory leak during module-level code execution. An 7611object 7612could be leaked for each block of executed module-level code if the 7613interpreter slack mode is enabled This change deletes any implicitly 7614returned 7615object from the module-level code block. Lin Ming. 7616 7617Removed messages for successful predefined repair(s). The repair 7618mechanism 7619was considered too wordy. Now, messages are only unconditionally emitted 7620if 7621the return object cannot be repaired. Existing messages for successful 7622repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 7623827. 7624 7625Example Code and Data Size: These are the sizes for the OS-independent 7626acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7627debug version of the code includes the debug output trace mechanism and 7628has a 7629much larger code and data size. 7630 7631 Previous Release: 7632 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 7633 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 7634 Current Release: 7635 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 7636 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 7637 76382) iASL Compiler/Disassembler and Tools: 7639 7640iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 7641files 7642were no longer automatically removed at the termination of the compile. 7643 7644acpiexec: Implemented the -f option to specify default region fill value. 7645This option specifies the value used to initialize buffers that simulate 7646operation regions. Default value is zero. Useful for debugging problems 7647that 7648depend on a specific initial value for a region or field. 7649 7650---------------------------------------- 765112 November 2009. Summary of changes for version 20091112: 7652 76531) ACPI CA Core Subsystem: 7654 7655Implemented a post-order callback to AcpiWalkNamespace. The existing 7656interface only has a pre-order callback. This change adds an additional 7657parameter for a post-order callback which will be more useful for bus 7658scans. 7659ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 7660 7661Modified the behavior of the operation region memory mapping cache for 7662SystemMemory. Ensure that the memory mappings created for operation 7663regions 7664do not cross 4K page boundaries. Crossing a page boundary while mapping 7665regions can cause kernel warnings on some hosts if the pages have 7666different 7667attributes. Such regions are probably BIOS bugs, and this is the 7668workaround. 7669Linux BZ 14445. Lin Ming. 7670 7671Implemented an automatic repair for predefined methods that must return 7672sorted lists. This change will repair (by sorting) packages returned by 7673_ALR, 7674_PSS, and _TSS. Drivers can now assume that the packages are correctly 7675sorted 7676and do not contain NULL package elements. Adds one new file, 7677namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 7678 7679Fixed a possible fault during predefined name validation if a return 7680Package 7681object contains NULL elements. Also adds a warning if a NULL element is 7682followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 7683may 7684include repair or removal of all such NULL elements where possible. 7685 7686Implemented additional module-level executable AML code support. This 7687change 7688will execute module-level code that is not at the root of the namespace 7689(under a Device object, etc.) at table load time. Module-level executable 7690AML 7691code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 7692 7693Implemented a new internal function to create Integer objects. This 7694function 7695simplifies miscellaneous object creation code. ACPICA BZ 823. 7696 7697Reduced the severity of predefined repair messages, Warning to Info. 7698Since 7699the object was successfully repaired, a warning is too severe. Reduced to 7700an 7701info message for now. These messages may eventually be changed to debug- 7702only. 7703ACPICA BZ 812. 7704 7705Example Code and Data Size: These are the sizes for the OS-independent 7706acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7707debug version of the code includes the debug output trace mechanism and 7708has a 7709much larger code and data size. 7710 7711 Previous Release: 7712 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 7713 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 7714 Current Release: 7715 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 7716 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 7717 77182) iASL Compiler/Disassembler and Tools: 7719 7720iASL: Implemented Switch() with While(1) so that Break works correctly. 7721This 7722change correctly implements the Switch operator with a surrounding 7723While(1) 7724so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 7725 7726iASL: Added a message if a package initializer list is shorter than 7727package 7728length. Adds a new remark for a Package() declaration if an initializer 7729list 7730exists, but is shorter than the declared length of the package. Although 7731technically legal, this is probably a coding error and it is seen in the 7732field. ACPICA BZ 815. Lin Ming, Bob Moore. 7733 7734iASL: Fixed a problem where the compiler could fault after the maximum 7735number 7736of errors was reached (200). 7737 7738acpixtract: Fixed a possible warning for pointer cast if the compiler 7739warning 7740level set very high. 7741 7742---------------------------------------- 774313 October 2009. Summary of changes for version 20091013: 7744 77451) ACPI CA Core Subsystem: 7746 7747Fixed a problem where an Operation Region _REG method could be executed 7748more 7749than once. If a custom address space handler is installed by the host 7750before 7751the "initialize operation regions" phase of the ACPICA initialization, 7752any 7753_REG methods for that address space could be executed twice. This change 7754fixes the problem. ACPICA BZ 427. Lin Ming. 7755 7756Fixed a possible memory leak for the Scope() ASL operator. When the exact 7757invocation of "Scope(\)" is executed (change scope to root), one internal 7758operand object was leaked. Lin Ming. 7759 7760Implemented a run-time repair for the _MAT predefined method. If the _MAT 7761return value is defined as a Field object in the AML, and the field 7762size is less than or equal to the default width of an integer (32 or 776364),_MAT 7764can incorrectly return an Integer instead of a Buffer. ACPICA now 7765automatically repairs this problem. ACPICA BZ 810. 7766 7767Implemented a run-time repair for the _BIF and _BIX predefined methods. 7768The 7769"OEM Information" field is often incorrectly returned as an Integer with 7770value zero if the field is not supported by the platform. This is due to 7771an 7772ambiguity in the ACPI specification. The field should always be a string. 7773ACPICA now automatically repairs this problem by returning a NULL string 7774within the returned Package. ACPICA BZ 807. 7775 7776Example Code and Data Size: These are the sizes for the OS-independent 7777acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7778debug version of the code includes the debug output trace mechanism and 7779has a 7780much larger code and data size. 7781 7782 Previous Release: 7783 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 7784 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 7785 Current Release: 7786 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 7787 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 7788 77892) iASL Compiler/Disassembler and Tools: 7790 7791Disassembler: Fixed a problem where references to external symbols that 7792contained one or more parent-prefixes (carats) were not handled 7793correctly, 7794possibly causing a fault. ACPICA BZ 806. Lin Ming. 7795 7796Disassembler: Restructured the code so that all functions that handle 7797external symbols are in a single module. One new file is added, 7798common/dmextern.c. 7799 7800AML Debugger: Added a max count argument for the Batch command (which 7801executes multiple predefined methods within the namespace.) 7802 7803iASL: Updated the compiler documentation (User Reference.) Available at 7804http://www.acpica.org/documentation/. ACPICA BZ 750. 7805 7806AcpiXtract: Updated for Lint and other formatting changes. Close all open 7807files. 7808 7809---------------------------------------- 781003 September 2009. Summary of changes for version 20090903: 7811 78121) ACPI CA Core Subsystem: 7813 7814For Windows Vista compatibility, added the automatic execution of an _INI 7815method located at the namespace root (\_INI). This method is executed at 7816table load time. This support is in addition to the automatic execution 7817of 7818\_SB._INI. Lin Ming. 7819 7820Fixed a possible memory leak in the interpreter for AML package objects 7821if 7822the package initializer list is longer than the defined size of the 7823package. 7824This apparently can only happen if the BIOS changes the package size on 7825the 7826fly (seen in a _PSS object), as ASL compilers do not allow this. The 7827interpreter will truncate the package to the defined size (and issue an 7828error 7829message), but previously could leave the extra objects undeleted if they 7830were 7831pre-created during the argument processing (such is the case if the 7832package 7833consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 7834 7835Fixed a problem seen when a Buffer or String is stored to itself via ASL. 7836This has been reported in the field. Previously, ACPICA would zero out 7837the 7838buffer/string. Now, the operation is treated as a noop. Provides Windows 7839compatibility. ACPICA BZ 803. Lin Ming. 7840 7841Removed an extraneous error message for ASL constructs of the form 7842Store(LocalX,LocalX) when LocalX is uninitialized. These curious 7843statements 7844are seen in many BIOSs and are once again treated as NOOPs and no error 7845is 7846emitted when they are encountered. ACPICA BZ 785. 7847 7848Fixed an extraneous warning message if a _DSM reserved method returns a 7849Package object. _DSM can return any type of object, so validation on the 7850return type cannot be performed. ACPICA BZ 802. 7851 7852Example Code and Data Size: These are the sizes for the OS-independent 7853acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7854debug version of the code includes the debug output trace mechanism and 7855has a 7856much larger code and data size. 7857 7858 Previous Release: 7859 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 7860 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 7861 Current Release: 7862 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 7863 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 7864 78652) iASL Compiler/Disassembler and Tools: 7866 7867iASL: Fixed a problem with the use of the Alias operator and Resource 7868Templates. The correct alias is now constructed and no error is emitted. 7869ACPICA BZ 738. 7870 7871iASL: Implemented the -I option to specify additional search directories 7872for 7873include files. Allows multiple additional search paths for include files. 7874Directories are searched in the order specified on the command line 7875(after 7876the local directory is searched.) ACPICA BZ 800. 7877 7878iASL: Fixed a problem where the full pathname for include files was not 7879emitted for warnings/errors. This caused the IDE support to not work 7880properly. ACPICA BZ 765. 7881 7882iASL: Implemented the -@ option to specify a Windows-style response file 7883containing additional command line options. ACPICA BZ 801. 7884 7885AcpiExec: Added support to load multiple AML files simultaneously (such 7886as 7887a 7888DSDT and multiple SSDTs). Also added support for wildcards within the AML 7889pathname. These features allow all machine tables to be easily loaded and 7890debugged together. ACPICA BZ 804. 7891 7892Disassembler: Added missing support for disassembly of HEST table Error 7893Bank 7894subtables. 7895 7896---------------------------------------- 789730 July 2009. Summary of changes for version 20090730: 7898 7899The ACPI 4.0 implementation for ACPICA is complete with this release. 7900 79011) ACPI CA Core Subsystem: 7902 7903ACPI 4.0: Added header file support for all new and changed ACPI tables. 7904Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are 7905new 7906for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 7907BERT, 7908EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 7909There 7910have been some ACPI 4.0 changes to other existing tables. Split the large 7911actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 7912 7913ACPI 4.0: Implemented predefined name validation for all new names. There 7914are 791531 new names in ACPI 4.0. The predefined validation module was split into 7916two 7917files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 7918 7919Implemented support for so-called "module-level executable code". This is 7920executable AML code that exists outside of any control method and is 7921intended 7922to be executed at table load time. Although illegal since ACPI 2.0, this 7923type 7924of code still exists and is apparently still being created. Blocks of 7925this 7926code are now detected and executed as intended. Currently, the code 7927blocks 7928must exist under either an If, Else, or While construct; these are the 7929typical cases seen in the field. ACPICA BZ 762. Lin Ming. 7930 7931Implemented an automatic dynamic repair for predefined names that return 7932nested Package objects. This applies to predefined names that are defined 7933to 7934return a variable-length Package of sub-packages. If the number of sub- 7935packages is one, BIOS code is occasionally seen that creates a simple 7936single 7937package with no sub-packages. This code attempts to fix the problem by 7938wrapping a new package object around the existing package. These methods 7939can 7940be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA 7941BZ 7942790. 7943 7944Fixed a regression introduced in 20090625 for the AcpiGetDevices 7945interface. 7946The _HID/_CID matching was broken and no longer matched IDs correctly. 7947ACPICA 7948BZ 793. 7949 7950Fixed a problem with AcpiReset where the reset would silently fail if the 7951register was one of the protected I/O ports. AcpiReset now bypasses the 7952port 7953validation mechanism. This may eventually be driven into the 7954AcpiRead/Write 7955interfaces. 7956 7957Fixed a regression related to the recent update of the AcpiRead/Write 7958interfaces. A sleep/suspend could fail if the optional PM2 Control 7959register 7960does not exist during an attempt to write the Bus Master Arbitration bit. 7961(However, some hosts already delete the code that writes this bit, and 7962the 7963code may in fact be obsolete at this date.) ACPICA BZ 799. 7964 7965Fixed a problem where AcpiTerminate could fault if inadvertently called 7966twice 7967in succession. ACPICA BZ 795. 7968 7969Example Code and Data Size: These are the sizes for the OS-independent 7970acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7971debug version of the code includes the debug output trace mechanism and 7972has a 7973much larger code and data size. 7974 7975 Previous Release: 7976 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 7977 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 7978 Current Release: 7979 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 7980 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 7981 79822) iASL Compiler/Disassembler and Tools: 7983 7984ACPI 4.0: Implemented disassembler support for all new ACPI tables and 7985changes to existing tables. ACPICA BZ 775. 7986 7987---------------------------------------- 798825 June 2009. Summary of changes for version 20090625: 7989 7990The ACPI 4.0 Specification was released on June 16 and is available at 7991www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 7992continue for the next few releases. 7993 79941) ACPI CA Core Subsystem: 7995 7996ACPI 4.0: Implemented interpreter support for the IPMI operation region 7997address space. Includes support for bi-directional data buffers and an 7998IPMI 7999address space handler (to be installed by an IPMI device driver.) ACPICA 8000BZ 8001773. Lin Ming. 8002 8003ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. 8004Includes 8005support in both the header files and the disassembler. 8006 8007Completed a major update for the AcpiGetObjectInfo external interface. 8008Changes include: 8009 - Support for variable, unlimited length HID, UID, and CID strings. 8010 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 8011etc.) 8012 - Call the _SxW power methods on behalf of a device object. 8013 - Determine if a device is a PCI root bridge. 8014 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 8015These changes will require an update to all callers of this interface. 8016See 8017the updated ACPICA Programmer Reference for details. One new source file 8018has 8019been added - utilities/utids.c. ACPICA BZ 368, 780. 8020 8021Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 8022transfers. The Value parameter has been extended from 32 bits to 64 bits 8023in 8024order to support new ACPI 4.0 tables. These changes will require an 8025update 8026to 8027all callers of these interfaces. See the ACPICA Programmer Reference for 8028details. ACPICA BZ 768. 8029 8030Fixed several problems with AcpiAttachData. The handler was not invoked 8031when 8032the host node was deleted. The data sub-object was not automatically 8033deleted 8034when the host node was deleted. The interface to the handler had an 8035unused 8036parameter, this was removed. ACPICA BZ 778. 8037 8038Enhanced the function that dumps ACPI table headers. All non-printable 8039characters in the string fields are now replaced with '?' (Signature, 8040OemId, 8041OemTableId, and CompilerId.) ACPI tables with non-printable characters in 8042these fields are occasionally seen in the field. ACPICA BZ 788. 8043 8044Fixed a problem with predefined method repair code where the code that 8045attempts to repair/convert an object of incorrect type is only executed 8046on 8047the first time the predefined method is called. The mechanism that 8048disables 8049warnings on subsequent calls was interfering with the repair mechanism. 8050ACPICA BZ 781. 8051 8052Fixed a possible memory leak in the predefined validation/repair code 8053when 8054a 8055buffer is automatically converted to an expected string object. 8056 8057Removed obsolete 16-bit files from the distribution and from the current 8058git 8059tree head. ACPICA BZ 776. 8060 8061Example Code and Data Size: These are the sizes for the OS-independent 8062acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8063debug version of the code includes the debug output trace mechanism and 8064has a 8065much larger code and data size. 8066 8067 Previous Release: 8068 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 8069 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 8070 Current Release: 8071 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 8072 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 8073 80742) iASL Compiler/Disassembler and Tools: 8075 8076ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 8077operation region keyword. ACPICA BZ 771, 772. Lin Ming. 8078 8079ACPI 4.0: iASL - implemented compile-time validation support for all new 8080predefined names and control methods (31 total). ACPICA BZ 769. 8081 8082---------------------------------------- 808321 May 2009. Summary of changes for version 20090521: 8084 80851) ACPI CA Core Subsystem: 8086 8087Disabled the preservation of the SCI enable bit in the PM1 control 8088register. 8089The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification 8090to 8091be 8092a "preserved" bit - "OSPM always preserves this bit position", section 80934.7.3.2.1. However, some machines fail if this bit is in fact preserved 8094because the bit needs to be explicitly set by the OS as a workaround. No 8095machines fail if the bit is not preserved. Therefore, ACPICA no longer 8096attempts to preserve this bit. 8097 8098Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 8099incorrectly formed _PRT package could cause a fault. Added validation to 8100ensure that each package element is actually a sub-package. 8101 8102Implemented a new interface to install or override a single control 8103method, 8104AcpiInstallMethod. This interface is useful when debugging in order to 8105repair 8106an existing method or to install a missing method without having to 8107override 8108the entire ACPI table. See the ACPICA Programmer Reference for use and 8109examples. Lin Ming, Bob Moore. 8110 8111Fixed several reference count issues with the DdbHandle object that is 8112created from a Load or LoadTable operator. Prevent premature deletion of 8113the 8114object. Also, mark the object as invalid once the table has been 8115unloaded. 8116This is needed because the handle itself may not be deleted after the 8117table 8118unload, depending on whether it has been stored in a named object by the 8119caller. Lin Ming. 8120 8121Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 8122mutexes of the same sync level are acquired but then not released in 8123strict 8124opposite order, the internally maintained Current Sync Level becomes 8125confused 8126and can cause subsequent execution errors. ACPICA BZ 471. 8127 8128Changed the allowable release order for ASL mutex objects. The ACPI 4.0 8129specification has been changed to make the SyncLevel for mutex objects 8130more 8131useful. When releasing a mutex, the SyncLevel of the mutex must now be 8132the 8133same as the current sync level. This makes more sense than the previous 8134rule 8135(SyncLevel less than or equal). This change updates the code to match the 8136specification. 8137 8138Fixed a problem with the local version of the AcpiOsPurgeCache function. 8139The 8140(local) cache must be locked during all cache object deletions. Andrew 8141Baumann. 8142 8143Updated the Load operator to use operation region interfaces. This 8144replaces 8145direct memory mapping with region access calls. Now, all region accesses 8146go 8147through the installed region handler as they should. 8148 8149Simplified and optimized the NsGetNextNode function. Reduced parameter 8150count 8151and reduced code for this frequently used function. 8152 8153Example Code and Data Size: These are the sizes for the OS-independent 8154acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8155debug version of the code includes the debug output trace mechanism and 8156has a 8157much larger code and data size. 8158 8159 Previous Release: 8160 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 8161 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 8162 Current Release: 8163 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 8164 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 8165 81662) iASL Compiler/Disassembler and Tools: 8167 8168Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 8169problems 8170with sub-table disassembly and handling invalid sub-tables. Attempt 8171recovery 8172after an invalid sub-table ID. 8173 8174---------------------------------------- 817522 April 2009. Summary of changes for version 20090422: 8176 81771) ACPI CA Core Subsystem: 8178 8179Fixed a compatibility issue with the recently released I/O port 8180protection 8181mechanism. For windows compatibility, 1) On a port protection violation, 8182simply ignore the request and do not return an exception (allow the 8183control 8184method to continue execution.) 2) If only part of the request overlaps a 8185protected port, read/write the individual ports that are not protected. 8186Linux 8187BZ 13036. Lin Ming 8188 8189Enhanced the execution of the ASL/AML BreakPoint operator so that it 8190actually 8191breaks into the AML debugger if the debugger is present. This matches the 8192ACPI-defined behavior. 8193 8194Fixed several possible warnings related to the use of the configurable 8195ACPI_THREAD_ID. This type can now be configured as either an integer or a 8196pointer with no warnings. Also fixes several warnings in printf-like 8197statements for the 64-bit build when the type is configured as a pointer. 8198ACPICA BZ 766, 767. 8199 8200Fixed a number of possible warnings when compiling with gcc 4+ (depending 8201on 8202warning options.) Examples include printf formats, aliasing, unused 8203globals, 8204missing prototypes, missing switch default statements, use of non-ANSI 8205library functions, use of non-ANSI constructs. See generate/unix/Makefile 8206for 8207a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 8208 8209Example Code and Data Size: These are the sizes for the OS-independent 8210acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8211debug version of the code includes the debug output trace mechanism and 8212has a 8213much larger code and data size. 8214 8215 Previous Release: 8216 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 8217 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 8218 Current Release: 8219 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 8220 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 8221 82222) iASL Compiler/Disassembler and Tools: 8223 8224iASL: Fixed a generation warning from Bison 2.3 and fixed several 8225warnings 8226on 8227the 64-bit build. 8228 8229iASL: Fixed a problem where the Unix/Linux versions of the compiler could 8230not 8231correctly digest Windows/DOS formatted files (with CR/LF). 8232 8233iASL: Added a new option for "quiet mode" (-va) that produces only the 8234compilation summary, not individual errors and warnings. Useful for large 8235batch compilations. 8236 8237AcpiExec: Implemented a new option (-z) to enable a forced 8238semaphore/mutex 8239timeout that can be used to detect hang conditions during execution of 8240AML 8241code (includes both internal semaphores and AML-defined mutexes and 8242events.) 8243 8244Added new makefiles for the generation of acpica in a generic unix-like 8245environment. These makefiles are intended to generate the acpica tools 8246and 8247utilities from the original acpica git source tree structure. 8248 8249Test Suites: Updated and cleaned up the documentation files. Updated the 8250copyrights to 2009, affecting all source files. Use the new version of 8251iASL 8252with quiet mode. Increased the number of available semaphores in the 8253Windows 8254OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 8255added 8256an alternate implementation of the semaphore timeout to allow aslts to 8257execute fully on Cygwin. 8258 8259---------------------------------------- 826020 March 2009. Summary of changes for version 20090320: 8261 82621) ACPI CA Core Subsystem: 8263 8264Fixed a possible race condition between AcpiWalkNamespace and dynamic 8265table 8266unloads. Added a reader/writer locking mechanism to allow multiple 8267concurrent 8268namespace walks (readers), but block a dynamic table unload until it can 8269gain 8270exclusive write access to the namespace. This fixes a problem where a 8271table 8272unload could (possibly catastrophically) delete the portion of the 8273namespace 8274that is currently being examined by a walk. Adds a new file, utlock.c, 8275that 8276implements the reader/writer lock mechanism. ACPICA BZ 749. 8277 8278Fixed a regression introduced in version 20090220 where a change to the 8279FADT 8280handling could cause the ACPICA subsystem to access non-existent I/O 8281ports. 8282 8283Modified the handling of FADT register and table (FACS/DSDT) addresses. 8284The 8285FADT can contain both 32-bit and 64-bit versions of these addresses. 8286Previously, the 64-bit versions were favored, meaning that if both 32 and 828764 8288versions were valid, but not equal, the 64-bit version was used. This was 8289found to cause some machines to fail. Now, in this case, the 32-bit 8290version 8291is used instead. This now matches the Windows behavior. 8292 8293Implemented a new mechanism to protect certain I/O ports. Provides 8294Microsoft 8295compatibility and protects the standard PC I/O ports from access via AML 8296code. Adds a new file, hwvalid.c 8297 8298Fixed a possible extraneous warning message from the FADT support. The 8299message warns of a 32/64 length mismatch between the legacy and GAS 8300definitions for a register. 8301 8302Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 8303is 8304made obsolete by the port protection mechanism above. It was previously 8305used 8306to validate the entire address range of an operation region, which could 8307be 8308incorrect if the range included illegal ports, but fields within the 8309operation region did not actually access those ports. Validation is now 8310performed on a per-field basis instead of the entire region. 8311 8312Modified the handling of the PM1 Status Register ignored bit (bit 11.) 8313Ignored bits must be "preserved" according to the ACPI spec. Usually, 8314this 8315means a read/modify/write when writing to the register. However, for 8316status 8317registers, writing a one means clear the event. Writing a zero means 8318preserve 8319the event (do not clear.) This behavior is clarified in the ACPI 4.0 8320spec, 8321and the ACPICA code now simply always writes a zero to the ignored bit. 8322 8323Modified the handling of ignored bits for the PM1 A/B Control Registers. 8324As 8325per the ACPI specification, for the control registers, preserve 8326(read/modify/write) all bits that are defined as either reserved or 8327ignored. 8328 8329Updated the handling of write-only bits in the PM1 A/B Control Registers. 8330When reading the register, zero the write-only bits as per the ACPI spec. 8331ACPICA BZ 443. Lin Ming. 8332 8333Removed "Linux" from the list of supported _OSI strings. Linux no longer 8334wants to reply true to this request. The Windows strings are the only 8335paths 8336through the AML that are tested and known to work properly. 8337 8338 Previous Release: 8339 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 8340 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 8341 Current Release: 8342 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 8343 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 8344 83452) iASL Compiler/Disassembler and Tools: 8346 8347Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 8348and 8349aetables.c 8350 8351---------------------------------------- 835220 February 2009. Summary of changes for version 20090220: 8353 83541) ACPI CA Core Subsystem: 8355 8356Optimized the ACPI register locking. Removed locking for reads from the 8357ACPI 8358bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock 8359is 8360not required when reading the single-bit registers. The 8361AcpiGetRegisterUnlocked function is no longer needed and has been 8362removed. 8363This will improve performance for reads on these registers. ACPICA BZ 8364760. 8365 8366Fixed the parameter validation for AcpiRead/Write. Now return 8367AE_BAD_PARAMETER if the input register pointer is null, and 8368AE_BAD_ADDRESS 8369if 8370the register has an address of zero. Previously, these cases simply 8371returned 8372AE_OK. For optional registers such as PM1B status/enable/control, the 8373caller 8374should check for a valid register address before calling. ACPICA BZ 748. 8375 8376Renamed the external ACPI bit register access functions. Renamed 8377AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 8378functions. The new names are AcpiReadBitRegister and 8379AcpiWriteBitRegister. 8380Also, restructured the code for these functions by simplifying the code 8381path 8382and condensing duplicate code to reduce code size. 8383 8384Added new functions to transparently handle the possibly split PM1 A/B 8385registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two 8386functions 8387now handle the split registers for PM1 Status, Enable, and Control. 8388ACPICA 8389BZ 8390746. 8391 8392Added a function to handle the PM1 control registers, 8393AcpiHwWritePm1Control. 8394This function writes both of the PM1 control registers (A/B). These 8395registers 8396are different than the PM1 A/B status and enable registers in that 8397different 8398values can be written to the A/B registers. Most notably, the SLP_TYP 8399bits 8400can be different, as per the values returned from the _Sx predefined 8401methods. 8402 8403Removed an extra register write within AcpiHwClearAcpiStatus. This 8404function 8405was writing an optional PM1B status register twice. The existing call to 8406the 8407low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 8408A/B 8409register. ACPICA BZ 751. 8410 8411Split out the PM1 Status registers from the FADT. Added new globals for 8412these 8413registers (A/B), similar to the way the PM1 Enable registers are handled. 8414Instead of overloading the FADT Event Register blocks. This makes the 8415code 8416clearer and less prone to error. 8417 8418Fixed the warning message for when the platform contains too many ACPI 8419tables 8420for the default size of the global root table data structure. The 8421calculation 8422for the truncation value was incorrect. 8423 8424Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 8425obsolete macro, since it is now a simple reference to ->common.type. 8426There 8427were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 8428 8429Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 8430TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 8431simply SLEEP_TYPE. ACPICA BZ 754. 8432 8433Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 8434function is only needed on 64-bit host operating systems and is thus not 8435included for 32-bit hosts. 8436 8437Debug output: print the input and result for invocations of the _OSI 8438reserved 8439control method via the ACPI_LV_INFO debug level. Also, reduced some of 8440the 8441verbosity of this debug level. Len Brown. 8442 8443Example Code and Data Size: These are the sizes for the OS-independent 8444acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8445debug version of the code includes the debug output trace mechanism and 8446has a 8447much larger code and data size. 8448 8449 Previous Release: 8450 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 8451 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 8452 Current Release: 8453 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 8454 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 8455 84562) iASL Compiler/Disassembler and Tools: 8457 8458Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 8459various legal performance profiles. 8460 8461---------------------------------------- 846223 January 2009. Summary of changes for version 20090123: 8463 84641) ACPI CA Core Subsystem: 8465 8466Added the 2009 copyright to all module headers and signons. This affects 8467virtually every file in the ACPICA core subsystem, the iASL compiler, and 8468the tools/utilities. 8469 8470Implemented a change to allow the host to override any ACPI table, 8471including 8472dynamically loaded tables. Previously, only the DSDT could be replaced by 8473the 8474host. With this change, the AcpiOsTableOverride interface is called for 8475each 8476table found in the RSDT/XSDT during ACPICA initialization, and also 8477whenever 8478a table is dynamically loaded via the AML Load operator. 8479 8480Updated FADT flag definitions, especially the Boot Architecture flags. 8481 8482Debugger: For the Find command, automatically pad the input ACPI name 8483with 8484underscores if the name is shorter than 4 characters. This enables a 8485match 8486with the actual namespace entry which is itself padded with underscores. 8487 8488Example Code and Data Size: These are the sizes for the OS-independent 8489acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8490debug version of the code includes the debug output trace mechanism and 8491has a 8492much larger code and data size. 8493 8494 Previous Release: 8495 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 8496 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 8497 Current Release: 8498 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 8499 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 8500 85012) iASL Compiler/Disassembler and Tools: 8502 8503Fix build error under Bison-2.4. 8504 8505Dissasembler: Enhanced FADT support. Added decoding of the Boot 8506Architecture 8507flags. Now decode all flags, regardless of the FADT version. Flag output 8508includes the FADT version which first defined each flag. 8509 8510The iASL -g option now dumps the RSDT to a file (in addition to the FADT 8511and 8512DSDT). Windows only. 8513 8514---------------------------------------- 851504 December 2008. Summary of changes for version 20081204: 8516 85171) ACPI CA Core Subsystem: 8518 8519The ACPICA Programmer Reference has been completely updated and revamped 8520for 8521this release. This includes updates to the external interfaces, OSL 8522interfaces, the overview sections, and the debugger reference. 8523 8524Several new ACPICA interfaces have been implemented and documented in the 8525programmer reference: 8526AcpiReset - Writes the reset value to the FADT-defined reset register. 8527AcpiDisableAllGpes - Disable all available GPEs. 8528AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 8529AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 8530AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 8531AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 8532AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 8533 8534Most of the public ACPI hardware-related interfaces have been moved to a 8535new 8536file, components/hardware/hwxface.c 8537 8538Enhanced the FADT parsing and low-level ACPI register access: The ACPI 8539register lengths within the FADT are now used, and the low level ACPI 8540register access no longer hardcodes the ACPI register lengths. Given that 8541there may be some risk in actually trusting the FADT register lengths, a 8542run- 8543time option was added to fall back to the default hardcoded lengths if 8544the 8545FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 8546option is set to true for now, and a warning is issued if a suspicious 8547FADT 8548register length is overridden with the default value. 8549 8550Fixed a reference count issue in NsRepairObject. This problem was 8551introduced 8552in version 20081031 as part of a fix to repair Buffer objects within 8553Packages. Lin Ming. 8554 8555Added semaphore support to the Linux/Unix application OS-services layer 8556(OSL). ACPICA BZ 448. Lin Ming. 8557 8558Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 8559will 8560be implemented in the OSL, or will binary semaphores be used instead. 8561 8562Example Code and Data Size: These are the sizes for the OS-independent 8563acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8564debug version of the code includes the debug output trace mechanism and 8565has a 8566much larger code and data size. 8567 8568 Previous Release: 8569 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 8570 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 8571 Current Release: 8572 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 8573 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 8574 85752) iASL Compiler/Disassembler and Tools: 8576 8577iASL: Completed the '-e' option to include additional ACPI tables in 8578order 8579to 8580aid with disassembly and External statement generation. ACPICA BZ 742. 8581Lin 8582Ming. 8583 8584iASL: Removed the "named object in while loop" error. The compiler cannot 8585determine how many times a loop will execute. ACPICA BZ 730. 8586 8587Disassembler: Implemented support for FADT revision 2 (MS extension). 8588ACPICA 8589BZ 743. 8590 8591Disassembler: Updates for several ACPI data tables (HEST, EINJ, and 8592MCFG). 8593 8594---------------------------------------- 859531 October 2008. Summary of changes for version 20081031: 8596 85971) ACPI CA Core Subsystem: 8598 8599Restructured the ACPICA header files into public/private. acpi.h now 8600includes 8601only the "public" acpica headers. All other acpica headers are "private" 8602and 8603should not be included by acpica users. One new file, accommon.h is used 8604to 8605include the commonly used private headers for acpica code generation. 8606Future 8607plans include moving all private headers to a new subdirectory. 8608 8609Implemented an automatic Buffer->String return value conversion for 8610predefined ACPI methods. For these methods (such as _BIF), added 8611automatic 8612conversion for return objects that are required to be a String, but a 8613Buffer 8614was found instead. This can happen when reading string battery data from 8615an 8616operation region, because it used to be difficult to convert the data 8617from 8618buffer to string from within the ASL. Ensures that the host OS is 8619provided 8620with a valid null-terminated string. Linux BZ 11822. 8621 8622Updated the FACS waking vector interfaces. Split 8623AcpiSetFirmwareWakingVector 8624into two: one for the 32-bit vector, another for the 64-bit vector. This 8625is 8626required because the host OS must setup the wake much differently for 8627each 8628vector (real vs. protected mode, etc.) and the interface itself should 8629not 8630be 8631deciding which vector to use. Also, eliminated the 8632GetFirmwareWakingVector 8633interface, as it served no purpose (only the firmware reads the vector, 8634OS 8635only writes the vector.) ACPICA BZ 731. 8636 8637Implemented a mechanism to escape infinite AML While() loops. Added a 8638loop 8639counter to force exit from AML While loops if the count becomes too 8640large. 8641This can occur in poorly written AML when the hardware does not respond 8642within a while loop and the loop does not implement a timeout. The 8643maximum 8644loop count is configurable. A new exception code is returned when a loop 8645is 8646broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 8647 8648Optimized the execution of AML While loops. Previously, a control state 8649object was allocated and freed for each execution of the loop. The 8650optimization is to simply reuse the control state for each iteration. 8651This 8652speeds up the raw loop execution time by about 5%. 8653 8654Enhanced the implicit return mechanism. For Windows compatibility, return 8655an 8656implicit integer of value zero for methods that contain no executable 8657code. 8658Such methods are seen in the field as stubs (presumably), and can cause 8659drivers to fail if they expect a return value. Lin Ming. 8660 8661Allow multiple backslashes as root prefixes in namepaths. In a fully 8662qualified namepath, allow multiple backslash prefixes. This can happen 8663(and 8664is seen in the field) because of the use of a double-backslash in strings 8665(since backslash is the escape character) causing confusion. ACPICA BZ 8666739 8667Lin Ming. 8668 8669Emit a warning if two different FACS or DSDT tables are discovered in the 8670FADT. Checks if there are two valid but different addresses for the FACS 8671and 8672DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 8673 8674Consolidated the method argument count validation code. Merged the code 8675that 8676validates control method argument counts into the predefined validation 8677module. Eliminates possible multiple warnings for incorrect argument 8678counts. 8679 8680Implemented ACPICA example code. Includes code for ACPICA initialization, 8681handler installation, and calling a control method. Available at 8682source/tools/examples. 8683 8684Added a global pointer for FACS table to simplify internal FACS access. 8685Use 8686the global pointer instead of using AcpiGetTableByIndex for each FACS 8687access. 8688This simplifies the code for the Global Lock and the Firmware Waking 8689Vector(s). 8690 8691Example Code and Data Size: These are the sizes for the OS-independent 8692acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8693debug version of the code includes the debug output trace mechanism and 8694has a 8695much larger code and data size. 8696 8697 Previous Release: 8698 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 8699 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 8700 Current Release: 8701 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 8702 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 8703 87042) iASL Compiler/Disassembler and Tools: 8705 8706iASL: Improved disassembly of external method calls. Added the -e option 8707to 8708allow the inclusion of additional ACPI tables to help with the 8709disassembly 8710of 8711method invocations and the generation of external declarations during the 8712disassembly. Certain external method invocations cannot be disassembled 8713properly without the actual declaration of the method. Use the -e option 8714to 8715include the table where the external method(s) are actually declared. 8716Most 8717useful for disassembling SSDTs that make method calls back to the master 8718DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 8719-d 8720-e dsdt.aml ssdt1.aml 8721 8722iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 8723problem where the use of an alias within a namepath would result in a not 8724found error or cause the compiler to fault. Also now allows forward 8725references from the Alias operator itself. ACPICA BZ 738. 8726 8727---------------------------------------- 872826 September 2008. Summary of changes for version 20080926: 8729 87301) ACPI CA Core Subsystem: 8731 8732Designed and implemented a mechanism to validate predefined ACPI methods 8733and 8734objects. This code validates the predefined ACPI objects (objects whose 8735names 8736start with underscore) that appear in the namespace, at the time they are 8737evaluated. The argument count and the type of the returned object are 8738validated against the ACPI specification. The purpose of this validation 8739is 8740to detect problems with the BIOS-implemented predefined ACPI objects 8741before 8742the results are returned to the ACPI-related drivers. Future enhancements 8743may 8744include actual repair of incorrect return objects where possible. Two new 8745files are nspredef.c and acpredef.h. 8746 8747Fixed a fault in the AML parser if a memory allocation fails during the 8748Op 8749completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 8750 8751Fixed an issue with implicit return compatibility. This change improves 8752the 8753implicit return mechanism to be more compatible with the MS interpreter. 8754Lin 8755Ming, ACPICA BZ 349. 8756 8757Implemented support for zero-length buffer-to-string conversions. Allow 8758zero 8759length strings during interpreter buffer-to-string conversions. For 8760example, 8761during the ToDecimalString and ToHexString operators, as well as implicit 8762conversions. Fiodor Suietov, ACPICA BZ 585. 8763 8764Fixed two possible memory leaks in the error exit paths of 8765AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions 8766are 8767similar in that they use a stack of state objects in order to eliminate 8768recursion. The stack must be fully unwound and deallocated if an error 8769occurs. Lin Ming. ACPICA BZ 383. 8770 8771Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 8772global 8773ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 8774Moore ACPICA BZ 442. 8775 8776Removed the obsolete version number in module headers. Removed the 8777"$Revision" number that appeared in each module header. This version 8778number 8779was useful under SourceSafe and CVS, but has no meaning under git. It is 8780not 8781only incorrect, it could also be misleading. 8782 8783Example Code and Data Size: These are the sizes for the OS-independent 8784acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8785debug version of the code includes the debug output trace mechanism and 8786has a 8787much larger code and data size. 8788 8789 Previous Release: 8790 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 8791 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 8792 Current Release: 8793 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 8794 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 8795 8796---------------------------------------- 879729 August 2008. Summary of changes for version 20080829: 8798 87991) ACPI CA Core Subsystem: 8800 8801Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 8802Reference. Changes include the elimination of cheating on the Object 8803field 8804for the DdbHandle subtype, addition of a reference class field to 8805differentiate the various reference types (instead of an AML opcode), and 8806the 8807cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 8808 8809Reduce an error to a warning for an incorrect method argument count. 8810Previously aborted with an error if too few arguments were passed to a 8811control method via the external ACPICA interface. Now issue a warning 8812instead 8813and continue. Handles the case where the method inadvertently declares 8814too 8815many arguments, but does not actually use the extra ones. Applies mainly 8816to 8817the predefined methods. Lin Ming. Linux BZ 11032. 8818 8819Disallow the evaluation of named object types with no intrinsic value. 8820Return 8821AE_TYPE for objects that have no value and therefore evaluation is 8822undefined: 8823Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 8824of 8825these types were allowed, but an exception would be generated at some 8826point 8827during the evaluation. Now, the error is generated up front. 8828 8829Fixed a possible memory leak in the AcpiNsGetExternalPathname function 8830(nsnames.c). Fixes a leak in the error exit path. 8831 8832Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 8833debug 8834levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 8835ACPI_EXCEPTION 8836interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 8837ACPI_LV_EVENTS. 8838 8839Removed obsolete and/or unused exception codes from the acexcep.h header. 8840There is the possibility that certain device drivers may be affected if 8841they 8842use any of these exceptions. 8843 8844The ACPICA documentation has been added to the public git source tree, 8845under 8846acpica/documents. Included are the ACPICA programmer reference, the iASL 8847compiler reference, and the changes.txt release logfile. 8848 8849Example Code and Data Size: These are the sizes for the OS-independent 8850acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8851debug version of the code includes the debug output trace mechanism and 8852has a 8853much larger code and data size. 8854 8855 Previous Release: 8856 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 8857 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 8858 Current Release: 8859 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 8860 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 8861 88622) iASL Compiler/Disassembler and Tools: 8863 8864Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 8865defines _SCP with 3 arguments. Previous versions defined it with only 1 8866argument. iASL now allows both definitions. 8867 8868iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for 8869zero- 8870length subtables when disassembling ACPI tables. Also fixed a couple of 8871errors where a full 16-bit table type field was not extracted from the 8872input 8873properly. 8874 8875acpisrc: Improve comment counting mechanism for generating source code 8876statistics. Count first and last lines of multi-line comments as 8877whitespace, 8878not comment lines. Handle Linux legal header in addition to standard 8879acpica 8880header. 8881 8882---------------------------------------- 8883 888429 July 2008. Summary of changes for version 20080729: 8885 88861) ACPI CA Core Subsystem: 8887 8888Fix a possible deadlock in the GPE dispatch. Remove call to 8889AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 8890attempt 8891to acquire the GPE lock but can deadlock since the GPE lock is already 8892held 8893at dispatch time. This code was introduced in version 20060831 as a 8894response 8895to Linux BZ 6881 and has since been removed from Linux. 8896 8897Add a function to dereference returned reference objects. Examines the 8898return 8899object from a call to AcpiEvaluateObject. Any Index or RefOf references 8900are 8901automatically dereferenced in an attempt to return something useful 8902(these 8903reference types cannot be converted into an external ACPI_OBJECT.) 8904Provides 8905MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 8906 8907x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 8908subtables for the MADT and one new subtable for the SRAT. Includes 8909disassembler and AcpiSrc support. Data from the Intel 64 Architecture 8910x2APIC 8911Specification, June 2008. 8912 8913Additional error checking for pathname utilities. Add error check after 8914all 8915calls to AcpiNsGetPathnameLength. Add status return from 8916AcpiNsBuildExternalPath and check after all calls. Add parameter 8917validation 8918to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 8919 8920Return status from the global init function AcpiUtGlobalInitialize. This 8921is 8922used by both the kernel subsystem and the utilities such as iASL 8923compiler. 8924The function could possibly fail when the caches are initialized. Yang 8925Yi. 8926 8927Add a function to decode reference object types to strings. Created for 8928improved error messages. 8929 8930Improve object conversion error messages. Better error messages during 8931object 8932conversion from internal to the external ACPI_OBJECT. Used for external 8933calls 8934to AcpiEvaluateObject. 8935 8936Example Code and Data Size: These are the sizes for the OS-independent 8937acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8938debug version of the code includes the debug output trace mechanism and 8939has a 8940much larger code and data size. 8941 8942 Previous Release: 8943 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 8944 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 8945 Current Release: 8946 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 8947 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 8948 89492) iASL Compiler/Disassembler and Tools: 8950 8951Debugger: fix a possible hang when evaluating non-methods. Fixes a 8952problem 8953introduced in version 20080701. If the object being evaluated (via 8954execute 8955command) is not a method, the debugger can hang while trying to obtain 8956non- 8957existent parameters. 8958 8959iASL: relax error for using reserved "_T_x" identifiers. These names can 8960appear in a disassembled ASL file if they were emitted by the original 8961compiler. Instead of issuing an error or warning and forcing the user to 8962manually change these names, issue a remark instead. 8963 8964iASL: error if named object created in while loop. Emit an error if any 8965named 8966object is created within a While loop. If allowed, this code will 8967generate 8968a 8969run-time error on the second iteration of the loop when an attempt is 8970made 8971to 8972create the same named object twice. ACPICA bugzilla 730. 8973 8974iASL: Support absolute pathnames for include files. Add support for 8975absolute 8976pathnames within the Include operator. previously, only relative 8977pathnames 8978were supported. 8979 8980iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 8981Descriptor. 8982The ACPI spec requires one interrupt minimum. BZ 423 8983 8984iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 8985Handles the case for the Interrupt Resource Descriptor where 8986the ResourceSource argument is omitted but ResourceSourceIndex 8987is present. Now leave room for the Index. BZ 426 8988 8989iASL: Prevent error message if CondRefOf target does not exist. Fixes 8990cases 8991where an error message is emitted if the target does not exist. BZ 516 8992 8993iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 8994(get ACPI tables on Windows). This was apparently broken in version 899520070919. 8996 8997AcpiXtract: Handle EOF while extracting data. Correctly handle the case 8998where 8999the EOF happens immediately after the last table in the input file. Print 9000completion message. Previously, no message was displayed in this case. 9001 9002---------------------------------------- 900301 July 2008. Summary of changes for version 20080701: 9004 90050) Git source tree / acpica.org 9006 9007Fixed a problem where a git-clone from http would not transfer the entire 9008source tree. 9009 90101) ACPI CA Core Subsystem: 9011 9012Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 9013enable bit. Now performs a read-change-write of the enable register 9014instead 9015of simply writing out the cached enable mask. This will prevent 9016inadvertent 9017enabling of GPEs if a rogue GPE is received during initialization (before 9018GPE 9019handlers are installed.) 9020 9021Implemented a copy for dynamically loaded tables. Previously, dynamically 9022loaded tables were simply mapped - but on some machines this memory is 9023corrupted after suspend. Now copy the table to a local buffer. For the 9024OpRegion case, added checksum verify. Use the table length from the table 9025header, not the region length. For the Buffer case, use the table length 9026also. Dennis Noordsij, Bob Moore. BZ 10734 9027 9028Fixed a problem where the same ACPI table could not be dynamically loaded 9029and 9030unloaded more than once. Without this change, a table cannot be loaded 9031again 9032once it has been loaded/unloaded one time. The current mechanism does not 9033unregister a table upon an unload. During a load, if the same table is 9034found, 9035this no longer returns an exception. BZ 722 9036 9037Fixed a problem where the wrong descriptor length was calculated for the 9038EndTag descriptor in 64-bit mode. The "minimal" descriptors such as 9039EndTag 9040are calculated as 12 bytes long, but the actual length in the internal 9041descriptor is 16 because of the round-up to 8 on the 64-bit build. 9042Reported 9043by Linn Crosetto. BZ 728 9044 9045Fixed a possible memory leak in the Unload operator. The DdbHandle 9046returned 9047by Load() did not have its reference count decremented during unload, 9048leading 9049to a memory leak. Lin Ming. BZ 727 9050 9051Fixed a possible memory leak when deleting thermal/processor objects. Any 9052associated notify handlers (and objects) were not being deleted. Fiodor 9053Suietov. BZ 506 9054 9055Fixed the ordering of the ASCII names in the global mutex table to match 9056the 9057actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 9058only. 9059Vegard Nossum. BZ 726 9060 9061Enhanced the AcpiGetObjectInfo interface to return the number of required 9062arguments if the object is a control method. Added this call to the 9063debugger 9064so the proper number of default arguments are passed to a method. This 9065prevents a warning when executing methods from AcpiExec. 9066 9067Added a check for an invalid handle in AcpiGetObjectInfo. Return 9068AE_BAD_PARAMETER if input handle is invalid. BZ 474 9069 9070Fixed an extraneous warning from exconfig.c on the 64-bit build. 9071 9072Example Code and Data Size: These are the sizes for the OS-independent 9073acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9074debug version of the code includes the debug output trace mechanism and 9075has a 9076much larger code and data size. 9077 9078 Previous Release: 9079 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 9080 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 9081 Current Release: 9082 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 9083 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 9084 90852) iASL Compiler/Disassembler and Tools: 9086 9087iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 9088resource descriptor names. 9089 9090iASL: Detect invalid ASCII characters in input (windows version). Removed 9091the 9092"-CF" flag from the flex compile, enables correct detection of non-ASCII 9093characters in the input. BZ 441 9094 9095iASL: Eliminate warning when result of LoadTable is not used. Eliminate 9096the 9097"result of operation not used" warning when the DDB handle returned from 9098LoadTable is not used. The warning is not needed. BZ 590 9099 9100AcpiExec: Add support for dynamic table load/unload. Now calls _CFG 9101method 9102to 9103pass address of table to the AML. Added option to disable OpRegion 9104simulation 9105to allow creation of an OpRegion with a real address that was passed to 9106_CFG. 9107All of this allows testing of the Load and Unload operators from 9108AcpiExec. 9109 9110Debugger: update tables command for unloaded tables. Handle unloaded 9111tables 9112and use the standard table header output routine. 9113 9114---------------------------------------- 911509 June 2008. Summary of changes for version 20080609: 9116 91171) ACPI CA Core Subsystem: 9118 9119Implemented a workaround for reversed _PRT entries. A significant number 9120of 9121BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 9122change dynamically detects and repairs this problem. Provides 9123compatibility 9124with MS ACPI. BZ 6859 9125 9126Simplified the internal ACPI hardware interfaces to eliminate the locking 9127flag parameter from Register Read/Write. Added a new external interface, 9128AcpiGetRegisterUnlocked. 9129 9130Fixed a problem where the invocation of a GPE control method could hang. 9131This 9132was a regression introduced in 20080514. The new method argument count 9133validation mechanism can enter an infinite loop when a GPE method is 9134dispatched. Problem fixed by removing the obsolete code that passed GPE 9135block 9136information to the notify handler via the control method parameter 9137pointer. 9138 9139Fixed a problem where the _SST execution status was incorrectly returned 9140to 9141the caller of AcpiEnterSleepStatePrep. This was a regression introduced 9142in 914320080514. _SST is optional and a NOT_FOUND exception should never be 9144returned. BZ 716 9145 9146Fixed a problem where a deleted object could be accessed from within the 9147AML 9148parser. This was a regression introduced in version 20080123 as a fix for 9149the 9150Unload operator. Lin Ming. BZ 10669 9151 9152Cleaned up the debug operand dump mechanism. Eliminated unnecessary 9153operands 9154and eliminated the use of a negative index in a loop. Operands are now 9155displayed in the correct order, not backwards. This also fixes a 9156regression 9157introduced in 20080514 on 64-bit systems where the elimination of 9158ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 9159715 9160 9161Fixed a possible memory leak in EvPciConfigRegionSetup where the error 9162exit 9163path did not delete a locally allocated structure. 9164 9165Updated definitions for the DMAR and SRAT tables to synchronize with the 9166current specifications. Includes disassembler support. 9167 9168Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 9169loop termination value was used. Loop terminated on iteration early, 9170missing 9171one mutex. Linn Crosetto 9172 9173Example Code and Data Size: These are the sizes for the OS-independent 9174acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9175debug version of the code includes the debug output trace mechanism and 9176has a 9177much larger code and data size. 9178 9179 Previous Release: 9180 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 9181 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 9182 Current Release: 9183 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 9184 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 9185 91862) iASL Compiler/Disassembler and Tools: 9187 9188Disassembler: Implemented support for EisaId() within _CID objects. Now 9189disassemble integer _CID objects back to EisaId invocations, including 9190multiple integers within _CID packages. Includes single-step support for 9191debugger also. 9192 9193Disassembler: Added support for DMAR and SRAT table definition changes. 9194 9195---------------------------------------- 919614 May 2008. Summary of changes for version 20080514: 9197 91981) ACPI CA Core Subsystem: 9199 9200Fixed a problem where GPEs were enabled too early during the ACPICA 9201initialization. This could lead to "handler not installed" errors on some 9202machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 9203This 9204ensures that all operation regions and devices throughout the namespace 9205have 9206been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 9207 9208Implemented a change to the enter sleep code. Moved execution of the _GTS 9209method to just before setting sleep enable bit. The execution was moved 9210from 9211AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 9212immediately before the SLP_EN bit is set, as per the ACPI specification. 9213Luming Yu, BZ 1653. 9214 9215Implemented a fix to disable unknown GPEs (2nd version). Now always 9216disable 9217the GPE, even if ACPICA thinks that that it is already disabled. It is 9218possible that the AML or some other code has enabled the GPE unbeknownst 9219to 9220the ACPICA code. 9221 9222Fixed a problem with the Field operator where zero-length fields would 9223return 9224an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 9225ASL 9226field declarations in Field(), BankField(), and IndexField(). BZ 10606. 9227 9228Implemented a fix for the Load operator, now load the table at the 9229namespace 9230root. This reverts a change introduced in version 20071019. The table is 9231now 9232loaded at the namespace root even though this goes against the ACPI 9233specification. This provides compatibility with other ACPI 9234implementations. 9235The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 9236Ming. 9237 9238Fixed a problem where ACPICA would not Load() tables with unusual 9239signatures. 9240Now ignore ACPI table signature for Load() operator. Only "SSDT" is 9241acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 9242Therefore, signature validation is worthless. Apparently MS ACPI accepts 9243such 9244signatures, ACPICA must be compatible. BZ 10454. 9245 9246Fixed a possible negative array index in AcpiUtValidateException. Added 9247NULL 9248fields to the exception string arrays to eliminate a -1 subtraction on 9249the 9250SubStatus field. 9251 9252Updated the debug tracking macros to reduce overall code and data size. 9253Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 9254instead of pointers to static strings. Jan Beulich and Bob Moore. 9255 9256Implemented argument count checking in control method invocation via 9257AcpiEvaluateObject. Now emit an error if too few arguments, warning if 9258too 9259many. This applies only to extern programmatic control method execution, 9260not 9261method-to-method calls within the AML. Lin Ming. 9262 9263Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 9264no 9265longer needed, especially with the removal of 16-bit support. It was 9266replaced 9267mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 9268bit 9269on 927032/64-bit platforms is required. 9271 9272Added the C const qualifier for appropriate string constants -- mostly 9273MODULE_NAME and printf format strings. Jan Beulich. 9274 9275Example Code and Data Size: These are the sizes for the OS-independent 9276acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9277debug version of the code includes the debug output trace mechanism and 9278has a 9279much larger code and data size. 9280 9281 Previous Release: 9282 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 9283 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 9284 Current Release: 9285 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 9286 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 9287 92882) iASL Compiler/Disassembler and Tools: 9289 9290Implemented ACPI table revision ID validation in the disassembler. Zero 9291is 9292always invalid. For DSDTs, the ID controls the interpreter integer width. 92931 9294means 32-bit and this is unusual. 2 or greater is 64-bit. 9295 9296---------------------------------------- 929721 March 2008. Summary of changes for version 20080321: 9298 92991) ACPI CA Core Subsystem: 9300 9301Implemented an additional change to the GPE support in order to suppress 9302spurious or stray GPEs. The AcpiEvDisableGpe function will now 9303permanently 9304disable incoming GPEs that are neither enabled nor disabled -- meaning 9305that 9306the GPE is unknown to the system. This should prevent future interrupt 9307floods 9308from that GPE. BZ 6217 (Zhang Rui) 9309 9310Fixed a problem where NULL package elements were not returned to the 9311AcpiEvaluateObject interface correctly. The element was simply ignored 9312instead of returning a NULL ACPI_OBJECT package element, potentially 9313causing 9314a buffer overflow and/or confusing the caller who expected a fixed number 9315of 9316elements. BZ 10132 (Lin Ming, Bob Moore) 9317 9318Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 9319Dword, 9320Qword), Field, BankField, and IndexField operators when invoked from 9321inside 9322an executing control method. In this case, these operators created 9323namespace 9324nodes that were incorrectly left marked as permanent nodes instead of 9325temporary nodes. This could cause a problem if there is race condition 9326between an exiting control method and a running namespace walk. (Reported 9327by 9328Linn Crosetto) 9329 9330Fixed a problem where the CreateField and CreateXXXField operators would 9331incorrectly allow duplicate names (the name of the field) with no 9332exception 9333generated. 9334 9335Implemented several changes for Notify handling. Added support for new 9336Notify 9337values (ACPI 2.0+) and improved the Notify debug output. Notify on 9338PowerResource objects is no longer allowed, as per the ACPI 9339specification. 9340(Bob Moore, Zhang Rui) 9341 9342All Reference Objects returned via the AcpiEvaluateObject interface are 9343now 9344marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 9345for 9346NULL objects - either NULL package elements or unresolved named 9347references. 9348 9349Fixed a problem where an extraneous debug message was produced for 9350package 9351objects (when debugging enabled). The message "Package List length larger 9352than NumElements count" is now produced in the correct case, and is now 9353an 9354error message rather than a debug message. Added a debug message for the 9355opposite case, where NumElements is larger than the Package List (the 9356package 9357will be padded out with NULL elements as per the ACPI spec.) 9358 9359Implemented several improvements for the output of the ASL "Debug" object 9360to 9361clarify and keep all data for a given object on one output line. 9362 9363Fixed two size calculation issues with the variable-length Start 9364Dependent 9365resource descriptor. 9366 9367Example Code and Data Size: These are the sizes for the OS-independent 9368acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9369debug version of the code includes the debug output trace mechanism and 9370has 9371a much larger code and data size. 9372 9373 Previous Release: 9374 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 9375 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 9376 Current Release: 9377 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 9378 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 9379 93802) iASL Compiler/Disassembler and Tools: 9381 9382Fixed a problem with the use of the Switch operator where execution of 9383the 9384containing method by multiple concurrent threads could cause an 9385AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 9386actual Switch opcode, it must be simulated with local named temporary 9387variables and if/else pairs. The solution chosen was to mark any method 9388that 9389uses Switch as Serialized, thus preventing multiple thread entries. BZ 9390469. 9391 9392---------------------------------------- 939313 February 2008. Summary of changes for version 20080213: 9394 93951) ACPI CA Core Subsystem: 9396 9397Implemented another MS compatibility design change for GPE/Notify 9398handling. 9399GPEs are now cleared/enabled asynchronously to allow all pending notifies 9400to 9401complete first. It is expected that the OSL will queue the enable request 9402behind all pending notify requests (may require changes to the local host 9403OSL 9404in AcpiOsExecute). Alexey Starikovskiy. 9405 9406Fixed a problem where buffer and package objects passed as arguments to a 9407control method via the external AcpiEvaluateObject interface could cause 9408an 9409AE_AML_INTERNAL exception depending on the order and type of operators 9410executed by the target control method. 9411 9412Fixed a problem where resource descriptor size optimization could cause a 9413problem when a _CRS resource template is passed to a _SRS method. The 9414_SRS 9415resource template must use the same descriptors (with the same size) as 9416returned from _CRS. This change affects the following resource 9417descriptors: 9418IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 94199487) 9420 9421Fixed a problem where a CopyObject to RegionField, BankField, and 9422IndexField 9423objects did not perform an implicit conversion as it should. These types 9424must 9425retain their initial type permanently as per the ACPI specification. 9426However, 9427a CopyObject to all other object types should not perform an implicit 9428conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 9429 9430Fixed a problem with the AcpiGetDevices interface where the mechanism to 9431match device CIDs did not examine the entire list of available CIDs, but 9432instead aborted on the first non-matching CID. Andrew Patterson. 9433 9434Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 9435was 9436inadvertently changed to return a 16-bit value instead of a 32-bit value, 9437truncating the upper dword of a 64-bit value. This macro is only used to 9438display debug output, so no incorrect calculations were made. Also, 9439reimplemented the macro so that a 64-bit shift is not performed by 9440inefficient compilers. 9441 9442Added missing va_end statements that should correspond with each va_start 9443statement. 9444 9445Example Code and Data Size: These are the sizes for the OS-independent 9446acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9447debug version of the code includes the debug output trace mechanism and 9448has 9449a much larger code and data size. 9450 9451 Previous Release: 9452 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 9453 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 9454 Current Release: 9455 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 9456 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 9457 94582) iASL Compiler/Disassembler and Tools: 9459 9460Implemented full disassembler support for the following new ACPI tables: 9461BERT, EINJ, and ERST. Implemented partial disassembler support for the 9462complicated HEST table. These tables support the Windows Hardware Error 9463Architecture (WHEA). 9464 9465---------------------------------------- 946623 January 2008. Summary of changes for version 20080123: 9467 94681) ACPI CA Core Subsystem: 9469 9470Added the 2008 copyright to all module headers and signons. This affects 9471virtually every file in the ACPICA core subsystem, the iASL compiler, and 9472the tools/utilities. 9473 9474Fixed a problem with the SizeOf operator when used with Package and 9475Buffer 9476objects. These objects have deferred execution for some arguments, and 9477the 9478execution is now completed before the SizeOf is executed. This problem 9479caused 9480unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 9481BZ 94829558 9483 9484Implemented an enhancement to the interpreter "slack mode". In the 9485absence 9486of 9487an explicit return or an implicitly returned object from the last 9488executed 9489opcode, a control method will now implicitly return an integer of value 0 9490for 9491Microsoft compatibility. (Lin Ming) BZ 392 9492 9493Fixed a problem with the Load operator where an exception was not 9494returned 9495in 9496the case where the table is already loaded. (Lin Ming) BZ 463 9497 9498Implemented support for the use of DDBHandles as an Indexed Reference, as 9499per 9500the ACPI spec. (Lin Ming) BZ 486 9501 9502Implemented support for UserTerm (Method invocation) for the Unload 9503operator 9504as per the ACPI spec. (Lin Ming) BZ 580 9505 9506Fixed a problem with the LoadTable operator where the OemId and 9507OemTableId 9508input strings could cause unexpected failures if they were shorter than 9509the 9510maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 9511 9512Implemented support for UserTerm (Method invocation) for the Unload 9513operator 9514as per the ACPI spec. (Lin Ming) BZ 580 9515 9516Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 9517HEST, 9518IBFT, UEFI, WDAT. Disassembler support is forthcoming. 9519 9520Example Code and Data Size: These are the sizes for the OS-independent 9521acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9522debug version of the code includes the debug output trace mechanism and 9523has 9524a much larger code and data size. 9525 9526 Previous Release: 9527 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 9528 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 9529 Current Release: 9530 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 9531 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 9532 95332) iASL Compiler/Disassembler and Tools: 9534 9535Implemented support in the disassembler for checksum validation on 9536incoming 9537binary DSDTs and SSDTs. If incorrect, a message is displayed within the 9538table 9539header dump at the start of the disassembly. 9540 9541Implemented additional debugging information in the namespace listing 9542file 9543created during compilation. In addition to the namespace hierarchy, the 9544full 9545pathname to each namespace object is displayed. 9546 9547Fixed a problem with the disassembler where invalid ACPI tables could 9548cause 9549faults or infinite loops. 9550 9551Fixed an unexpected parse error when using the optional "parameter types" 9552list in a control method declaration. (Lin Ming) BZ 397 9553 9554Fixed a problem where two External declarations with the same name did 9555not 9556cause an error (Lin Ming) BZ 509 9557 9558Implemented support for full TermArgs (adding Argx, Localx and method 9559invocation) for the ParameterData parameter to the LoadTable operator. 9560(Lin 9561Ming) BZ 583,587 9562 9563---------------------------------------- 956419 December 2007. Summary of changes for version 20071219: 9565 95661) ACPI CA Core Subsystem: 9567 9568Implemented full support for deferred execution for the TermArg string 9569arguments for DataTableRegion. This enables forward references and full 9570operand resolution for the three string arguments. Similar to 9571OperationRegion 9572deferred argument execution.) Lin Ming. BZ 430 9573 9574Implemented full argument resolution support for the BankValue argument 9575to 9576BankField. Previously, only constants were supported, now any TermArg may 9577be 9578used. Lin Ming BZ 387, 393 9579 9580Fixed a problem with AcpiGetDevices where the search of a branch of the 9581device tree could be terminated prematurely. In accordance with the ACPI 9582specification, the search down the current branch is terminated if a 9583device 9584is both not present and not functional (instead of just not present.) 9585Yakui 9586Zhao. 9587 9588Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 9589if 9590the underlying AML code changed the GPE enable registers. Now, any 9591unknown 9592incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 9593disabled 9594instead of simply ignored. Rui Zhang. 9595 9596Fixed a problem with Index Fields where the Index register was 9597incorrectly 9598limited to a maximum of 32 bits. Now any size may be used. 9599 9600Fixed a couple memory leaks associated with "implicit return" objects 9601when 9602the AML Interpreter slack mode is enabled. Lin Ming BZ 349 9603 9604Example Code and Data Size: These are the sizes for the OS-independent 9605acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9606debug version of the code includes the debug output trace mechanism and 9607has 9608a much larger code and data size. 9609 9610 Previous Release: 9611 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 9612 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 9613 Current Release: 9614 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 9615 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 9616 9617---------------------------------------- 961814 November 2007. Summary of changes for version 20071114: 9619 96201) ACPI CA Core Subsystem: 9621 9622Implemented event counters for each of the Fixed Events, the ACPI SCI 9623(interrupt) itself, and control methods executed. Named 9624AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 9625These 9626should be useful for debugging and statistics. 9627 9628Implemented a new external interface, AcpiGetStatistics, to retrieve the 9629contents of the various event counters. Returns the current values for 9630AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 9631AcpiMethodCount. The interface can be expanded in the future if new 9632counters 9633are added. Device drivers should use this interface rather than access 9634the 9635counters directly. 9636 9637Fixed a problem with the FromBCD and ToBCD operators. With some 9638compilers, 9639the ShortDivide function worked incorrectly, causing problems with the 9640BCD 9641functions with large input values. A truncation from 64-bit to 32-bit 9642inadvertently occurred. Internal BZ 435. Lin Ming 9643 9644Fixed a problem with Index references passed as method arguments. 9645References 9646passed as arguments to control methods were dereferenced immediately 9647(before 9648control was passed to the called method). The references are now 9649correctly 9650passed directly to the called method. BZ 5389. Lin Ming 9651 9652Fixed a problem with CopyObject used in conjunction with the Index 9653operator. 9654The reference was incorrectly dereferenced before the copy. The reference 9655is 9656now correctly copied. BZ 5391. Lin Ming 9657 9658Fixed a problem with Control Method references within Package objects. 9659These 9660references are now correctly generated. This completes the package 9661construction overhaul that began in version 20071019. 9662 9663Example Code and Data Size: These are the sizes for the OS-independent 9664acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9665debug version of the code includes the debug output trace mechanism and 9666has 9667a much larger code and data size. 9668 9669 Previous Release: 9670 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 9671 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 9672 Current Release: 9673 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 9674 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 9675 9676 96772) iASL Compiler/Disassembler and Tools: 9678 9679The AcpiExec utility now installs handlers for all of the predefined 9680Operation Region types. New types supported are: PCI_Config, CMOS, and 9681PCIBARTarget. 9682 9683Fixed a problem with the 64-bit version of AcpiExec where the extended 9684(64- 9685bit) address fields for the DSDT and FACS within the FADT were not being 9686used, causing truncation of the upper 32-bits of these addresses. Lin 9687Ming 9688and Bob Moore 9689 9690---------------------------------------- 969119 October 2007. Summary of changes for version 20071019: 9692 96931) ACPI CA Core Subsystem: 9694 9695Fixed a problem with the Alias operator when the target of the alias is a 9696named ASL operator that opens a new scope -- Scope, Device, 9697PowerResource, 9698Processor, and ThermalZone. In these cases, any children of the original 9699operator could not be accessed via the alias, potentially causing 9700unexpected 9701AE_NOT_FOUND exceptions. (BZ 9067) 9702 9703Fixed a problem with the Package operator where all named references were 9704created as object references and left otherwise unresolved. According to 9705the 9706ACPI specification, a Package can only contain Data Objects or references 9707to 9708control methods. The implication is that named references to Data Objects 9709(Integer, Buffer, String, Package, BufferField, Field) should be resolved 9710immediately upon package creation. This is the approach taken with this 9711change. References to all other named objects (Methods, Devices, Scopes, 9712etc.) are all now properly created as reference objects. (BZ 5328) 9713 9714Reverted a change to Notify handling that was introduced in version 971520070508. This version changed the Notify handling from asynchronous to 9716fully synchronous (Device driver Notify handling with respect to the 9717Notify 9718ASL operator). It was found that this change caused more problems than it 9719solved and was removed by most users. 9720 9721Fixed a problem with the Increment and Decrement operators where the type 9722of 9723the target object could be unexpectedly and incorrectly changed. (BZ 353) 9724Lin Ming. 9725 9726Fixed a problem with the Load and LoadTable operators where the table 9727location within the namespace was ignored. Instead, the table was always 9728loaded into the root or current scope. Lin Ming. 9729 9730Fixed a problem with the Load operator when loading a table from a buffer 9731object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 9732 9733Fixed a problem with the Debug object where a store of a DdbHandle 9734reference 9735object to the Debug object could cause a fault. 9736 9737Added a table checksum verification for the Load operator, in the case 9738where 9739the load is from a buffer. (BZ 578). 9740 9741Implemented additional parameter validation for the LoadTable operator. 9742The 9743length of the input strings SignatureString, OemIdString, and OemTableId 9744are 9745now checked for maximum lengths. (BZ 582) Lin Ming. 9746 9747Example Code and Data Size: These are the sizes for the OS-independent 9748acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9749debug version of the code includes the debug output trace mechanism and 9750has 9751a much larger code and data size. 9752 9753 Previous Release: 9754 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 9755 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 9756 Current Release: 9757 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 9758 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 9759 9760 97612) iASL Compiler/Disassembler: 9762 9763Fixed a problem where if a single file was specified and the file did not 9764exist, no error message was emitted. (Introduced with wildcard support in 9765version 20070917.) 9766 9767---------------------------------------- 976819 September 2007. Summary of changes for version 20070919: 9769 97701) ACPI CA Core Subsystem: 9771 9772Designed and implemented new external interfaces to install and remove 9773handlers for ACPI table-related events. Current events that are defined 9774are 9775LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 9776they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 9777AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 9778 9779Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 9780(acpi_serialized option on Linux) could cause some systems to hang during 9781initialization. (Bob Moore) BZ 8171 9782 9783Fixed a problem where objects of certain types (Device, ThermalZone, 9784Processor, PowerResource) can be not found if they are declared and 9785referenced from within the same control method (Lin Ming) BZ 341 9786 9787Example Code and Data Size: These are the sizes for the OS-independent 9788acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9789debug version of the code includes the debug output trace mechanism and 9790has 9791a much larger code and data size. 9792 9793 Previous Release: 9794 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 9795 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 9796 Current Release: 9797 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 9798 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 9799 9800 98012) iASL Compiler/Disassembler: 9802 9803Implemented support to allow multiple files to be compiled/disassembled 9804in 9805a 9806single invocation. This includes command line wildcard support for both 9807the 9808Windows and Unix versions of the compiler. This feature simplifies the 9809disassembly and compilation of multiple ACPI tables in a single 9810directory. 9811 9812---------------------------------------- 981308 May 2007. Summary of changes for version 20070508: 9814 98151) ACPI CA Core Subsystem: 9816 9817Implemented a Microsoft compatibility design change for the handling of 9818the 9819Notify AML operator. Previously, notify handlers were dispatched and 9820executed completely asynchronously in a deferred thread. The new design 9821still executes the notify handlers in a different thread, but the 9822original 9823thread that executed the Notify() now waits at a synchronization point 9824for 9825the notify handler to complete. Some machines depend on a synchronous 9826Notify 9827operator in order to operate correctly. 9828 9829Implemented support to allow Package objects to be passed as method 9830arguments to the external AcpiEvaluateObject interface. Previously, this 9831would return the AE_NOT_IMPLEMENTED exception. This feature had not been 9832implemented since there were no reserved control methods that required it 9833until recently. 9834 9835Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 9836that 9837contained invalid non-zero values in reserved fields could cause later 9838failures because these fields have meaning in later revisions of the 9839FADT. 9840For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 9841fields 9842are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 9843 9844Fixed a problem where the Global Lock handle was not properly updated if 9845a 9846thread that acquired the Global Lock via executing AML code then 9847attempted 9848to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 9849Joe 9850Liu. 9851 9852Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 9853could be corrupted if the interrupt being removed was at the head of the 9854list. Reported by Linn Crosetto. 9855 9856Example Code and Data Size: These are the sizes for the OS-independent 9857acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9858debug version of the code includes the debug output trace mechanism and 9859has 9860a much larger code and data size. 9861 9862 Previous Release: 9863 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 9864 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 9865 Current Release: 9866 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 9867 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 9868 9869---------------------------------------- 987020 March 2007. Summary of changes for version 20070320: 9871 98721) ACPI CA Core Subsystem: 9873 9874Implemented a change to the order of interpretation and evaluation of AML 9875operand objects within the AML interpreter. The interpreter now evaluates 9876operands in the order that they appear in the AML stream (and the 9877corresponding ASL code), instead of in the reverse order (after the 9878entire 9879operand list has been parsed). The previous behavior caused several 9880subtle 9881incompatibilities with the Microsoft AML interpreter as well as being 9882somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 9883 9884Implemented a change to the ACPI Global Lock support. All interfaces to 9885the 9886global lock now allow the same thread to acquire the lock multiple times. 9887This affects the AcpiAcquireGlobalLock external interface to the global 9888lock 9889as well as the internal use of the global lock to support AML fields -- a 9890control method that is holding the global lock can now simultaneously 9891access 9892AML fields that require global lock protection. Previously, in both 9893cases, 9894this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 9895to 9896AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 9897Controller. There is no change to the behavior of the AML Acquire 9898operator, 9899as this can already be used to acquire a mutex multiple times by the same 9900thread. BZ 8066. With assistance from Alexey Starikovskiy. 9901 9902Fixed a problem where invalid objects could be referenced in the AML 9903Interpreter after error conditions. During operand evaluation, ensure 9904that 9905the internal "Return Object" field is cleared on error and only valid 9906pointers are stored there. Caused occasional access to deleted objects 9907that 9908resulted in "large reference count" warning messages. Valery Podrezov. 9909 9910Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 9911on 9912deeply nested control method invocations. BZ 7873, local BZ 487. Valery 9913Podrezov. 9914 9915Fixed an internal problem with the handling of result objects on the 9916interpreter result stack. BZ 7872. Valery Podrezov. 9917 9918Removed obsolete code that handled the case where AML_NAME_OP is the 9919target 9920of a reference (Reference.Opcode). This code was no longer necessary. BZ 99217874. Valery Podrezov. 9922 9923Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This 9924was 9925a 9926remnant from the previously discontinued 16-bit support. 9927 9928Example Code and Data Size: These are the sizes for the OS-independent 9929acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9930debug version of the code includes the debug output trace mechanism and 9931has 9932a much larger code and data size. 9933 9934 Previous Release: 9935 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 9936 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 9937 Current Release: 9938 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 9939 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 9940 9941---------------------------------------- 994226 January 2007. Summary of changes for version 20070126: 9943 99441) ACPI CA Core Subsystem: 9945 9946Added the 2007 copyright to all module headers and signons. This affects 9947virtually every file in the ACPICA core subsystem, the iASL compiler, and 9948the utilities. 9949 9950Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 9951during a table load. A bad pointer was passed in the case where the DSDT 9952is 9953overridden, causing a fault in this case. 9954 9955Example Code and Data Size: These are the sizes for the OS-independent 9956acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9957debug version of the code includes the debug output trace mechanism and 9958has 9959a much larger code and data size. 9960 9961 Previous Release: 9962 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 9963 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 9964 Current Release: 9965 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 9966 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 9967 9968---------------------------------------- 996915 December 2006. Summary of changes for version 20061215: 9970 99711) ACPI CA Core Subsystem: 9972 9973Support for 16-bit ACPICA has been completely removed since it is no 9974longer 9975necessary and it clutters the code. All 16-bit macros, types, and 9976conditional compiles have been removed, cleaning up and simplifying the 9977code 9978across the entire subsystem. DOS support is no longer needed since the 9979bootable Linux firmware kit is now available. 9980 9981The handler for the Global Lock is now removed during AcpiTerminate to 9982enable a clean subsystem restart, via the implementation of the 9983AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 9984HP) 9985 9986Implemented enhancements to the multithreading support within the 9987debugger 9988to enable improved multithreading debugging and evaluation of the 9989subsystem. 9990(Valery Podrezov) 9991 9992Debugger: Enhanced the Statistics/Memory command to emit the total 9993(maximum) 9994memory used during the execution, as well as the maximum memory consumed 9995by 9996each of the various object types. (Valery Podrezov) 9997 9998Example Code and Data Size: These are the sizes for the OS-independent 9999acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10000debug version of the code includes the debug output trace mechanism and 10001has 10002a much larger code and data size. 10003 10004 Previous Release: 10005 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 10006 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 10007 Current Release: 10008 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10009 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 10010 10011 100122) iASL Compiler/Disassembler and Tools: 10013 10014AcpiExec: Implemented a new option (-m) to display full memory use 10015statistics upon subsystem/program termination. (Valery Podrezov) 10016 10017---------------------------------------- 1001809 November 2006. Summary of changes for version 20061109: 10019 100201) ACPI CA Core Subsystem: 10021 10022Optimized the Load ASL operator in the case where the source operand is 10023an 10024operation region. Simply map the operation region memory, instead of 10025performing a bytewise read. (Region must be of type SystemMemory, see 10026below.) 10027 10028Fixed the Load ASL operator for the case where the source operand is a 10029region field. A buffer object is also allowed as the source operand. BZ 10030480 10031 10032Fixed a problem where the Load ASL operator allowed the source operand to 10033be 10034an operation region of any type. It is now restricted to regions of type 10035SystemMemory, as per the ACPI specification. BZ 481 10036 10037Additional cleanup and optimizations for the new Table Manager code. 10038 10039AcpiEnable will now fail if all of the required ACPI tables are not 10040loaded 10041(FADT, FACS, DSDT). BZ 477 10042 10043Added #pragma pack(8/4) to acobject.h to ensure that the structures in 10044this 10045header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 10046manually optimized to be aligned and will not work if it is byte-packed. 10047 10048Example Code and Data Size: These are the sizes for the OS-independent 10049acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10050debug version of the code includes the debug output trace mechanism and 10051has 10052a much larger code and data size. 10053 10054 Previous Release: 10055 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 10056 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 10057 Current Release: 10058 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 10059 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 10060 10061 100622) iASL Compiler/Disassembler and Tools: 10063 10064Fixed a problem where the presence of the _OSI predefined control method 10065within complex expressions could cause an internal compiler error. 10066 10067AcpiExec: Implemented full region support for multiple address spaces. 10068SpaceId is now part of the REGION object. BZ 429 10069 10070---------------------------------------- 1007111 October 2006. Summary of changes for version 20061011: 10072 100731) ACPI CA Core Subsystem: 10074 10075Completed an AML interpreter performance enhancement for control method 10076execution. Previously a 2-pass parse/execution, control methods are now 10077completely parsed and executed in a single pass. This improves overall 10078interpreter performance by ~25%, reduces code size, and reduces CPU stack 10079use. (Valery Podrezov + interpreter changes in version 20051202 that 10080eliminated namespace loading during the pass one parse.) 10081 10082Implemented _CID support for PCI Root Bridge detection. If the _HID does 10083not 10084match the predefined PCI Root Bridge IDs, the _CID list (if present) is 10085now 10086obtained and also checked for an ID match. 10087 10088Implemented additional support for the PCI _ADR execution: upsearch until 10089a 10090device scope is found before executing _ADR. This allows PCI_Config 10091operation regions to be declared locally within control methods 10092underneath 10093PCI device objects. 10094 10095Fixed a problem with a possible race condition between threads executing 10096AcpiWalkNamespace and the AML interpreter. This condition was removed by 10097modifying AcpiWalkNamespace to (by default) ignore all temporary 10098namespace 10099entries created during any concurrent control method execution. An 10100additional namespace race condition is known to exist between 10101AcpiWalkNamespace and the Load/Unload ASL operators and is still under 10102investigation. 10103 10104Restructured the AML ParseLoop function, breaking it into several 10105subfunctions in order to reduce CPU stack use and improve 10106maintainability. 10107(Mikhail Kouzmich) 10108 10109AcpiGetHandle: Fix for parameter validation to detect invalid 10110combinations 10111of prefix handle and pathname. BZ 478 10112 10113Example Code and Data Size: These are the sizes for the OS-independent 10114acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10115debug version of the code includes the debug output trace mechanism and 10116has 10117a much larger code and data size. 10118 10119 Previous Release: 10120 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10121 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 10122 Current Release: 10123 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 10124 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 10125 101262) iASL Compiler/Disassembler and Tools: 10127 10128Ported the -g option (get local ACPI tables) to the new ACPICA Table 10129Manager 10130to restore original behavior. 10131 10132---------------------------------------- 1013327 September 2006. Summary of changes for version 20060927: 10134 101351) ACPI CA Core Subsystem: 10136 10137Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 10138These functions now use a spinlock for mutual exclusion and the interrupt 10139level indication flag is not needed. 10140 10141Fixed a problem with the Global Lock where the lock could appear to be 10142obtained before it is actually obtained. The global lock semaphore was 10143inadvertently created with one unit instead of zero units. (BZ 464) 10144Fiodor 10145Suietov. 10146 10147Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 10148during 10149a read from a buffer or region field. (BZ 458) Fiodor Suietov. 10150 10151Example Code and Data Size: These are the sizes for the OS-independent 10152acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10153debug version of the code includes the debug output trace mechanism and 10154has 10155a much larger code and data size. 10156 10157 Previous Release: 10158 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10159 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 10160 Current Release: 10161 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10162 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 10163 10164 101652) iASL Compiler/Disassembler and Tools: 10166 10167Fixed a compilation problem with the pre-defined Resource Descriptor 10168field 10169names where an "object does not exist" error could be incorrectly 10170generated 10171if the parent ResourceTemplate pathname places the template within a 10172different namespace scope than the current scope. (BZ 7212) 10173 10174Fixed a problem where the compiler could hang after syntax errors 10175detected 10176in an ElseIf construct. (BZ 453) 10177 10178Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 10179operator. An incorrect output filename was produced when this parameter 10180was 10181a null string (""). Now, the original input filename is used as the AML 10182output filename, with an ".aml" extension. 10183 10184Implemented a generic batch command mode for the AcpiExec utility 10185(execute 10186any AML debugger command) (Valery Podrezov). 10187 10188---------------------------------------- 1018912 September 2006. Summary of changes for version 20060912: 10190 101911) ACPI CA Core Subsystem: 10192 10193Enhanced the implementation of the "serialized mode" of the interpreter 10194(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 10195specified, instead of creating a serialization semaphore per control 10196method, 10197the interpreter lock is simply no longer released before a blocking 10198operation during control method execution. This effectively makes the AML 10199Interpreter single-threaded. The overhead of a semaphore per-method is 10200eliminated. 10201 10202Fixed a regression where an error was no longer emitted if a control 10203method 10204attempts to create 2 objects of the same name. This once again returns 10205AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 10206that 10207will dynamically serialize the control method to possible prevent future 10208errors. (BZ 440) 10209 10210Integrated a fix for a problem with PCI Express HID detection in the PCI 10211Config Space setup procedure. (BZ 7145) 10212 10213Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 10214AcpiHwInitialize function - the FADT registers are now validated when the 10215table is loaded. 10216 10217Added two new warnings during FADT verification - 1) if the FADT is 10218larger 10219than the largest known FADT version, and 2) if there is a mismatch 10220between 10221a 1022232-bit block address and the 64-bit X counterpart (when both are non- 10223zero.) 10224 10225Example Code and Data Size: These are the sizes for the OS-independent 10226acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10227debug version of the code includes the debug output trace mechanism and 10228has 10229a much larger code and data size. 10230 10231 Previous Release: 10232 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 10233 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 10234 Current Release: 10235 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10236 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 10237 10238 102392) iASL Compiler/Disassembler and Tools: 10240 10241Fixed a problem with the implementation of the Switch() operator where 10242the 10243temporary variable was declared too close to the actual Switch, instead 10244of 10245at method level. This could cause a problem if the Switch() operator is 10246within a while loop, causing an error on the second iteration. (BZ 460) 10247 10248Disassembler - fix for error emitted for unknown type for target of scope 10249operator. Now, ignore it and continue. 10250 10251Disassembly of an FADT now verifies the input FADT and reports any errors 10252found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 10253 10254Disassembly of raw data buffers with byte initialization data now 10255prefixes 10256each output line with the current buffer offset. 10257 10258Disassembly of ASF! table now includes all variable-length data fields at 10259the end of some of the subtables. 10260 10261The disassembler now emits a comment if a buffer appears to be a 10262ResourceTemplate, but cannot be disassembled as such because the EndTag 10263does 10264not appear at the very end of the buffer. 10265 10266AcpiExec - Added the "-t" command line option to enable the serialized 10267mode 10268of the AML interpreter. 10269 10270---------------------------------------- 1027131 August 2006. Summary of changes for version 20060831: 10272 102731) ACPI CA Core Subsystem: 10274 10275Miscellaneous fixes for the Table Manager: 10276- Correctly initialize internal common FADT for all 64-bit "X" fields 10277- Fixed a couple table mapping issues during table load 10278- Fixed a couple alignment issues for IA64 10279- Initialize input array to zero in AcpiInitializeTables 10280- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 10281AcpiGetTableByIndex 10282 10283Change for GPE support: when a "wake" GPE is received, all wake GPEs are 10284now 10285immediately disabled to prevent the waking GPE from firing again and to 10286prevent other wake GPEs from interrupting the wake process. 10287 10288Added the AcpiGpeCount global that tracks the number of processed GPEs, 10289to 10290be used for debugging systems with a large number of ACPI interrupts. 10291 10292Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 10293both the ACPICA headers and the disassembler. 10294 10295Example Code and Data Size: These are the sizes for the OS-independent 10296acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10297debug version of the code includes the debug output trace mechanism and 10298has 10299a much larger code and data size. 10300 10301 Previous Release: 10302 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 10303 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 10304 Current Release: 10305 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 10306 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 10307 10308 103092) iASL Compiler/Disassembler and Tools: 10310 10311Disassembler support for the DMAR ACPI table. 10312 10313---------------------------------------- 1031423 August 2006. Summary of changes for version 20060823: 10315 103161) ACPI CA Core Subsystem: 10317 10318The Table Manager component has been completely redesigned and 10319reimplemented. The new design is much simpler, and reduces the overall 10320code 10321and data size of the kernel-resident ACPICA by approximately 5%. Also, it 10322is 10323now possible to obtain the ACPI tables very early during kernel 10324initialization, even before dynamic memory management is initialized. 10325(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 10326 10327Obsolete ACPICA interfaces: 10328 10329- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 10330init 10331time). 10332- AcpiLoadTable: Not needed. 10333- AcpiUnloadTable: Not needed. 10334 10335New ACPICA interfaces: 10336 10337- AcpiInitializeTables: Must be called before the table manager can be 10338used. 10339- AcpiReallocateRootTable: Used to transfer the root table to dynamically 10340allocated memory after it becomes available. 10341- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI 10342tables 10343in the RSDT/XSDT. 10344 10345Other ACPICA changes: 10346 10347- AcpiGetTableHeader returns the actual mapped table header, not a copy. 10348Use 10349AcpiOsUnmapMemory to free this mapping. 10350- AcpiGetTable returns the actual mapped table. The mapping is managed 10351internally and must not be deleted by the caller. Use of this interface 10352causes no additional dynamic memory allocation. 10353- AcpiFindRootPointer: Support for physical addressing has been 10354eliminated, 10355it appeared to be unused. 10356- The interface to AcpiOsMapMemory has changed to be consistent with the 10357other allocation interfaces. 10358- The interface to AcpiOsGetRootPointer has changed to eliminate 10359unnecessary 10360parameters. 10361- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 1036264- 10363bit platforms. Was previously 64 bits on all platforms. 10364- The interface to the ACPI Global Lock acquire/release macros have 10365changed 10366slightly since ACPICA no longer keeps a local copy of the FACS with a 10367constructed pointer to the actual global lock. 10368 10369Porting to the new table manager: 10370 10371- AcpiInitializeTables: Must be called once, and can be called anytime 10372during the OS initialization process. It allows the host to specify an 10373area 10374of memory to be used to store the internal version of the RSDT/XSDT (root 10375table). This allows the host to access ACPI tables before memory 10376management 10377is initialized and running. 10378- AcpiReallocateRootTable: Can be called after memory management is 10379running 10380to copy the root table to a dynamically allocated array, freeing up the 10381scratch memory specified in the call to AcpiInitializeTables. 10382- AcpiSubsystemInitialize: This existing interface is independent of the 10383Table Manager, and does not have to be called before the Table Manager 10384can 10385be used, it only must be called before the rest of ACPICA can be used. 10386- ACPI Tables: Some changes have been made to the names and structure of 10387the 10388actbl.h and actbl1.h header files and may require changes to existing 10389code. 10390For example, bitfields have been completely removed because of their lack 10391of 10392portability across C compilers. 10393- Update interfaces to the Global Lock acquire/release macros if local 10394versions are used. (see acwin.h) 10395 10396Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 10397 10398New files: tbfind.c 10399 10400Example Code and Data Size: These are the sizes for the OS-independent 10401acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10402debug version of the code includes the debug output trace mechanism and 10403has 10404a much larger code and data size. 10405 10406 Previous Release: 10407 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 10408 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 10409 Current Release: 10410 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 10411 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 10412 10413 104142) iASL Compiler/Disassembler and Tools: 10415 10416No changes for this release. 10417 10418---------------------------------------- 1041921 July 2006. Summary of changes for version 20060721: 10420 104211) ACPI CA Core Subsystem: 10422 10423The full source code for the ASL test suite used to validate the iASL 10424compiler and the ACPICA core subsystem is being released with the ACPICA 10425source for the first time. The source is contained in a separate package 10426and 10427consists of over 1100 files that exercise all ASL/AML operators. The 10428package 10429should appear on the Intel/ACPI web site shortly. (Valery Podrezov, 10430Fiodor 10431Suietov) 10432 10433Completed a new design and implementation for support of the ACPI Global 10434Lock. On the OS side, the global lock is now treated as a standard AML 10435mutex. Previously, multiple OS threads could "acquire" the global lock 10436simultaneously. However, this could cause the BIOS to be starved out of 10437the 10438lock - especially in cases such as the Embedded Controller driver where 10439there is a tight coupling between the OS and the BIOS. 10440 10441Implemented an optimization for the ACPI Global Lock interrupt mechanism. 10442The Global Lock interrupt handler no longer queues the execution of a 10443separate thread to signal the global lock semaphore. Instead, the 10444semaphore 10445is signaled directly from the interrupt handler. 10446 10447Implemented support within the AML interpreter for package objects that 10448contain a larger AML length (package list length) than the package 10449element 10450count. In this case, the length of the package is truncated to match the 10451package element count. Some BIOS code apparently modifies the package 10452length 10453on the fly, and this change supports this behavior. Provides 10454compatibility 10455with the MS AML interpreter. (With assistance from Fiodor Suietov) 10456 10457Implemented a temporary fix for the BankValue parameter of a Bank Field 10458to 10459support all constant values, now including the Zero and One opcodes. 10460Evaluation of this parameter must eventually be converted to a full 10461TermArg 10462evaluation. A not-implemented error is now returned (temporarily) for 10463non- 10464constant values for this parameter. 10465 10466Fixed problem reports (Fiodor Suietov) integrated: 10467- Fix for premature object deletion after CopyObject on Operation Region 10468(BZ 10469350) 10470 10471Example Code and Data Size: These are the sizes for the OS-independent 10472acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10473debug version of the code includes the debug output trace mechanism and 10474has 10475a much larger code and data size. 10476 10477 Previous Release: 10478 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 10479 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 10480 Current Release: 10481 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 10482 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 10483 10484 104852) iASL Compiler/Disassembler and Tools: 10486 10487No changes for this release. 10488 10489---------------------------------------- 1049007 July 2006. Summary of changes for version 20060707: 10491 104921) ACPI CA Core Subsystem: 10493 10494Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 10495that do not allow the initialization of address pointers within packed 10496structures - even though the hardware itself may support misaligned 10497transfers. Some of the debug data structures are packed by default to 10498minimize size. 10499 10500Added an error message for the case where AcpiOsGetThreadId() returns 10501zero. 10502A non-zero value is required by the core ACPICA code to ensure the proper 10503operation of AML mutexes and recursive control methods. 10504 10505The DSDT is now the only ACPI table that determines whether the AML 10506interpreter is in 32-bit or 64-bit mode. Not really a functional change, 10507but 10508the hooks for per-table 32/64 switching have been removed from the code. 10509A 10510clarification to the ACPI specification is forthcoming in ACPI 3.0B. 10511 10512Fixed a possible leak of an OwnerID in the error path of 10513AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 10514deletion to a single place in AcpiTbUninstallTable to correct possible 10515leaks 10516when using the AcpiTbDeleteTablesByType interface (with assistance from 10517Lance Ortiz.) 10518 10519Fixed a problem with Serialized control methods where the semaphore 10520associated with the method could be over-signaled after multiple method 10521invocations. 10522 10523Fixed two issues with the locking of the internal namespace data 10524structure. 10525Both the Unload() operator and AcpiUnloadTable interface now lock the 10526namespace during the namespace deletion associated with the table unload 10527(with assistance from Linn Crosetto.) 10528 10529Fixed problem reports (Valery Podrezov) integrated: 10530- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 10531 10532Fixed problem reports (Fiodor Suietov) integrated: 10533- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 10534- On Address Space handler deletion, needless deactivation call (BZ 374) 10535- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 10536375) 10537- Possible memory leak, Notify sub-objects of Processor, Power, 10538ThermalZone 10539(BZ 376) 10540- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 10541- Minimum Length of RSDT should be validated (BZ 379) 10542- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 10543Handler (BZ (380) 10544- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 10545loaded 10546(BZ 381) 10547 10548Example Code and Data Size: These are the sizes for the OS-independent 10549acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10550debug version of the code includes the debug output trace mechanism and 10551has 10552a much larger code and data size. 10553 10554 Previous Release: 10555 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 10556 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 10557 Current Release: 10558 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 10559 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 10560 10561 105622) iASL Compiler/Disassembler and Tools: 10563 10564Fixed problem reports: 10565Compiler segfault when ASL contains a long (>1024) String declaration (BZ 10566436) 10567 10568---------------------------------------- 1056923 June 2006. Summary of changes for version 20060623: 10570 105711) ACPI CA Core Subsystem: 10572 10573Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 10574allows the type to be customized to the host OS for improved efficiency 10575(since a spinlock is usually a very small object.) 10576 10577Implemented support for "ignored" bits in the ACPI registers. According 10578to 10579the ACPI specification, these bits should be preserved when writing the 10580registers via a read/modify/write cycle. There are 3 bits preserved in 10581this 10582manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 10583 10584Implemented the initial deployment of new OSL mutex interfaces. Since 10585some 10586host operating systems have separate mutex and semaphore objects, this 10587feature was requested. The base code now uses mutexes (and the new mutex 10588interfaces) wherever a binary semaphore was used previously. However, for 10589the current release, the mutex interfaces are defined as macros to map 10590them 10591to the existing semaphore interfaces. Therefore, no OSL changes are 10592required 10593at this time. (See acpiosxf.h) 10594 10595Fixed several problems with the support for the control method SyncLevel 10596parameter. The SyncLevel now works according to the ACPI specification 10597and 10598in concert with the Mutex SyncLevel parameter, since the current 10599SyncLevel 10600is a property of the executing thread. Mutual exclusion for control 10601methods 10602is now implemented with a mutex instead of a semaphore. 10603 10604Fixed three instances of the use of the C shift operator in the bitfield 10605support code (exfldio.c) to avoid the use of a shift value larger than 10606the 10607target data width. The behavior of C compilers is undefined in this case 10608and 10609can cause unpredictable results, and therefore the case must be detected 10610and 10611avoided. (Fiodor Suietov) 10612 10613Added an info message whenever an SSDT or OEM table is loaded dynamically 10614via the Load() or LoadTable() ASL operators. This should improve 10615debugging 10616capability since it will show exactly what tables have been loaded 10617(beyond 10618the tables present in the RSDT/XSDT.) 10619 10620Example Code and Data Size: These are the sizes for the OS-independent 10621acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10622debug version of the code includes the debug output trace mechanism and 10623has 10624a much larger code and data size. 10625 10626 Previous Release: 10627 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 10628 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 10629 Current Release: 10630 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 10631 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 10632 10633 106342) iASL Compiler/Disassembler and Tools: 10635 10636No changes for this release. 10637 10638---------------------------------------- 1063908 June 2006. Summary of changes for version 20060608: 10640 106411) ACPI CA Core Subsystem: 10642 10643Converted the locking mutex used for the ACPI hardware to a spinlock. 10644This 10645change should eliminate all problems caused by attempting to acquire a 10646semaphore at interrupt level, and it means that all ACPICA external 10647interfaces that directly access the ACPI hardware can be safely called 10648from 10649interrupt level. OSL code that implements the semaphore interfaces should 10650be 10651able to eliminate any workarounds for being called at interrupt level. 10652 10653Fixed a regression introduced in 20060526 where the ACPI device 10654initialization could be prematurely aborted with an AE_NOT_FOUND if a 10655device 10656did not have an optional _INI method. 10657 10658Fixed an IndexField issue where a write to the Data Register should be 10659limited in size to the AccessSize (width) of the IndexField itself. (BZ 10660433, 10661Fiodor Suietov) 10662 10663Fixed problem reports (Valery Podrezov) integrated: 10664- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 10665 10666Fixed problem reports (Fiodor Suietov) integrated: 10667- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 10668 10669Removed four global mutexes that were obsolete and were no longer being 10670used. 10671 10672Example Code and Data Size: These are the sizes for the OS-independent 10673acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10674debug version of the code includes the debug output trace mechanism and 10675has 10676a much larger code and data size. 10677 10678 Previous Release: 10679 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 10680 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 10681 Current Release: 10682 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 10683 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 10684 10685 106862) iASL Compiler/Disassembler and Tools: 10687 10688Fixed a fault when using -g option (get tables from registry) on Windows 10689machines. 10690 10691Fixed problem reports integrated: 10692- Generate error if CreateField NumBits parameter is zero. (BZ 405) 10693- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 10694Suietov) 10695- Global table revision override (-r) is ignored (BZ 413) 10696 10697---------------------------------------- 1069826 May 2006. Summary of changes for version 20060526: 10699 107001) ACPI CA Core Subsystem: 10701 10702Restructured, flattened, and simplified the internal interfaces for 10703namespace object evaluation - resulting in smaller code, less CPU stack 10704use, 10705and fewer interfaces. (With assistance from Mikhail Kouzmich) 10706 10707Fixed a problem with the CopyObject operator where the first parameter 10708was 10709not typed correctly for the parser, interpreter, compiler, and 10710disassembler. 10711Caused various errors and unexpected behavior. 10712 10713Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 10714produced incorrect results with some C compilers. Since the behavior of C 10715compilers when the shift value is larger than the datatype width is 10716apparently not well defined, the interpreter now detects this condition 10717and 10718simply returns zero as expected in all such cases. (BZ 395) 10719 10720Fixed problem reports (Valery Podrezov) integrated: 10721- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 10722- Allow interpreter to handle nested method declarations (BZ 5361) 10723 10724Fixed problem reports (Fiodor Suietov) integrated: 10725- AcpiTerminate doesn't free debug memory allocation list objects (BZ 10726355) 10727- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 10728356) 10729- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 10730- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 10731- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 10732- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 10733- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 10734- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 10735- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 10736365) 10737- Status of the Global Initialization Handler call not used (BZ 366) 10738- Incorrect object parameter to Global Initialization Handler (BZ 367) 10739 10740Example Code and Data Size: These are the sizes for the OS-independent 10741acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10742debug version of the code includes the debug output trace mechanism and 10743has 10744a much larger code and data size. 10745 10746 Previous Release: 10747 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 10748 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 10749 Current Release: 10750 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 10751 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 10752 10753 107542) iASL Compiler/Disassembler and Tools: 10755 10756Modified the parser to allow the names IO, DMA, and IRQ to be used as 10757namespace identifiers with no collision with existing resource descriptor 10758macro names. This provides compatibility with other ASL compilers and is 10759most useful for disassembly/recompilation of existing tables without 10760parse 10761errors. (With assistance from Thomas Renninger) 10762 10763Disassembler: fixed an incorrect disassembly problem with the 10764DataTableRegion and CopyObject operators. Fixed a possible fault during 10765disassembly of some Alias operators. 10766 10767---------------------------------------- 1076812 May 2006. Summary of changes for version 20060512: 10769 107701) ACPI CA Core Subsystem: 10771 10772Replaced the AcpiOsQueueForExecution interface with a new interface named 10773AcpiOsExecute. The major difference is that the new interface does not 10774have 10775a Priority parameter, this appeared to be useless and has been replaced 10776by 10777a 10778Type parameter. The Type tells the host what type of execution is being 10779requested, such as global lock handler, notify handler, GPE handler, etc. 10780This allows the host to queue and execute the request as appropriate for 10781the 10782request type, possibly using different work queues and different 10783priorities 10784for the various request types. This enables fixes for multithreading 10785deadlock problems such as BZ #5534, and will require changes to all 10786existing 10787OS interface layers. (Alexey Starikovskiy and Bob Moore) 10788 10789Fixed a possible memory leak associated with the support for the so- 10790called 10791"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 10792Suietov) 10793 10794Fixed a problem with the Load() operator where a table load from an 10795operation region could overwrite an internal table buffer by up to 7 10796bytes 10797and cause alignment faults on IPF systems. (With assistance from Luming 10798Yu) 10799 10800Example Code and Data Size: These are the sizes for the OS-independent 10801acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10802debug version of the code includes the debug output trace mechanism and 10803has 10804a much larger code and data size. 10805 10806 Previous Release: 10807 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 10808 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 10809 Current Release: 10810 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 10811 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 10812 10813 10814 108152) iASL Compiler/Disassembler and Tools: 10816 10817Disassembler: Implemented support to cross reference the internal 10818namespace 10819and automatically generate ASL External() statements for symbols not 10820defined 10821within the current table being disassembled. This will simplify the 10822disassembly and recompilation of interdependent tables such as SSDTs 10823since 10824these statements will no longer have to be added manually. 10825 10826Disassembler: Implemented experimental support to automatically detect 10827invocations of external control methods and generate appropriate 10828External() 10829statements. This is problematic because the AML cannot be correctly 10830parsed 10831until the number of arguments for each control method is known. 10832Currently, 10833standalone method invocations and invocations as the source operand of a 10834Store() statement are supported. 10835 10836Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 10837LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 10838LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 10839more readable and likely closer to the original ASL source. 10840 10841---------------------------------------- 1084221 April 2006. Summary of changes for version 20060421: 10843 108441) ACPI CA Core Subsystem: 10845 10846Removed a device initialization optimization introduced in 20051216 where 10847the _STA method was not run unless an _INI was also present for the same 10848device. This optimization could cause problems because it could allow 10849_INI 10850methods to be run within a not-present device subtree. (If a not-present 10851device had no _INI, _STA would not be run, the not-present status would 10852not 10853be discovered, and the children of the device would be incorrectly 10854traversed.) 10855 10856Implemented a new _STA optimization where namespace subtrees that do not 10857contain _INI are identified and ignored during device initialization. 10858Selectively running _STA can significantly improve boot time on large 10859machines (with assistance from Len Brown.) 10860 10861Implemented support for the device initialization case where the returned 10862_STA flags indicate a device not-present but functioning. In this case, 10863_INI 10864is not run, but the device children are examined for presence, as per the 10865ACPI specification. 10866 10867Implemented an additional change to the IndexField support in order to 10868conform to MS behavior. The value written to the Index Register is not 10869simply a byte offset, it is a byte offset in units of the access width of 10870the parent Index Field. (Fiodor Suietov) 10871 10872Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 10873interface is called during the creation of all AML operation regions, and 10874allows the host OS to exert control over what addresses it will allow the 10875AML code to access. Operation Regions whose addresses are disallowed will 10876cause a runtime exception when they are actually accessed (will not 10877affect 10878or abort table loading.) See oswinxf or osunixxf for an example 10879implementation. 10880 10881Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 10882interface allows the host OS to match the various "optional" 10883interface/behavior strings for the _OSI predefined control method as 10884appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 10885for an example implementation. 10886 10887Restructured and corrected various problems in the exception handling 10888code 10889paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 10890(with assistance from Takayoshi Kochi.) 10891 10892Modified the Linux source converter to ignore quoted string literals 10893while 10894converting identifiers from mixed to lower case. This will correct 10895problems 10896with the disassembler and other areas where such strings must not be 10897modified. 10898 10899The ACPI_FUNCTION_* macros no longer require quotes around the function 10900name. This allows the Linux source converter to convert the names, now 10901that 10902the converter ignores quoted strings. 10903 10904Example Code and Data Size: These are the sizes for the OS-independent 10905acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10906debug version of the code includes the debug output trace mechanism and 10907has 10908a much larger code and data size. 10909 10910 Previous Release: 10911 10912 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 10913 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 10914 Current Release: 10915 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 10916 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 10917 10918 109192) iASL Compiler/Disassembler and Tools: 10920 10921Implemented 3 new warnings for iASL, and implemented multiple warning 10922levels 10923(w2 flag). 10924 109251) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 10926not 10927WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 10928check for the possible timeout, a warning is issued. 10929 109302) Useless operators: If an ASL operator does not specify an optional 10931target 10932operand and it also does not use the function return value from the 10933operator, a warning is issued since the operator effectively does 10934nothing. 10935 109363) Unreferenced objects: If a namespace object is created, but never 10937referenced, a warning is issued. This is a warning level 2 since there 10938are 10939cases where this is ok, such as when a secondary table is loaded that 10940uses 10941the unreferenced objects. Even so, care is taken to only flag objects 10942that 10943don't look like they will ever be used. For example, the reserved methods 10944(starting with an underscore) are usually not referenced because it is 10945expected that the OS will invoke them. 10946 10947---------------------------------------- 1094831 March 2006. Summary of changes for version 20060331: 10949 109501) ACPI CA Core Subsystem: 10951 10952Implemented header file support for the following additional ACPI tables: 10953ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 10954support, 10955all current and known ACPI tables are now defined in the ACPICA headers 10956and 10957are available for use by device drivers and other software. 10958 10959Implemented support to allow tables that contain ACPI names with invalid 10960characters to be loaded. Previously, this would cause the table load to 10961fail, but since there are several known cases of such tables on existing 10962machines, this change was made to enable ACPI support for them. Also, 10963this 10964matches the behavior of the Microsoft ACPI implementation. 10965 10966Fixed a couple regressions introduced during the memory optimization in 10967the 1096820060317 release. The namespace node definition required additional 10969reorganization and an internal datatype that had been changed to 8-bit 10970was 10971restored to 32-bit. (Valery Podrezov) 10972 10973Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 10974could be passed through to AcpiOsReleaseObject which is unexpected. Such 10975null pointers are now trapped and ignored, matching the behavior of the 10976previous implementation before the deployment of AcpiOsReleaseObject. 10977(Valery Podrezov, Fiodor Suietov) 10978 10979Fixed a memory mapping leak during the deletion of a SystemMemory 10980operation 10981region where a cached memory mapping was not deleted. This became a 10982noticeable problem for operation regions that are defined within 10983frequently 10984used control methods. (Dana Meyers) 10985 10986Reorganized the ACPI table header files into two main files: one for the 10987ACPI tables consumed by the ACPICA core, and another for the 10988miscellaneous 10989ACPI tables that are consumed by the drivers and other software. The 10990various 10991FADT definitions were merged into one common section and three different 10992tables (ACPI 1.0, 1.0+, and 2.0) 10993 10994Example Code and Data Size: These are the sizes for the OS-independent 10995acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10996debug version of the code includes the debug output trace mechanism and 10997has 10998a much larger code and data size. 10999 11000 Previous Release: 11001 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 11002 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 11003 Current Release: 11004 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 11005 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 11006 11007 110082) iASL Compiler/Disassembler and Tools: 11009 11010Disassembler: Implemented support to decode and format all non-AML ACPI 11011tables (tables other than DSDTs and SSDTs.) This includes the new tables 11012added to the ACPICA headers, therefore all current and known ACPI tables 11013are 11014supported. 11015 11016Disassembler: The change to allow ACPI names with invalid characters also 11017enables the disassembly of such tables. Invalid characters within names 11018are 11019changed to '*' to make the name printable; the iASL compiler will still 11020generate an error for such names, however, since this is an invalid ACPI 11021character. 11022 11023Implemented an option for AcpiXtract (-a) to extract all tables found in 11024the 11025input file. The default invocation extracts only the DSDTs and SSDTs. 11026 11027Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 11028makefile for the AcpiXtract utility. 11029 11030---------------------------------------- 1103117 March 2006. Summary of changes for version 20060317: 11032 110331) ACPI CA Core Subsystem: 11034 11035Implemented the use of a cache object for all internal namespace nodes. 11036Since there are about 1000 static nodes in a typical system, this will 11037decrease memory use for cache implementations that minimize per- 11038allocation 11039overhead (such as a slab allocator.) 11040 11041Removed the reference count mechanism for internal namespace nodes, since 11042it 11043was deemed unnecessary. This reduces the size of each namespace node by 11044about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit 11045case, 11046and 32 bytes for the 64-bit case. 11047 11048Optimized several internal data structures to reduce object size on 64- 11049bit 11050platforms by packing data within the 64-bit alignment. This includes the 11051frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 11052instances corresponding to the namespace objects. 11053 11054Added two new strings for the predefined _OSI method: "Windows 2001.1 11055SP1" 11056and "Windows 2006". 11057 11058Split the allocation tracking mechanism out to a separate file, from 11059utalloc.c to uttrack.c. This mechanism appears to be only useful for 11060application-level code. Kernels may wish to not include uttrack.c in 11061distributions. 11062 11063Removed all remnants of the obsolete ACPI_REPORT_* macros and the 11064associated 11065code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 11066macros.) 11067 11068Code and Data Size: These are the sizes for the acpica.lib produced by 11069the 11070Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 11071ACPI 11072driver or OSPM code. The debug version of the code includes the debug 11073output 11074trace mechanism and has a much larger code and data size. Note that these 11075values will vary depending on the efficiency of the compiler and the 11076compiler options used during generation. 11077 11078 Previous Release: 11079 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11080 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 11081 Current Release: 11082 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 11083 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 11084 11085 110862) iASL Compiler/Disassembler and Tools: 11087 11088Implemented an ANSI C version of the acpixtract utility. This version 11089will 11090automatically extract the DSDT and all SSDTs from the input acpidump text 11091file and dump the binary output to separate files. It can also display a 11092summary of the input file including the headers for each table found and 11093will extract any single ACPI table, with any signature. (See 11094source/tools/acpixtract) 11095 11096---------------------------------------- 1109710 March 2006. Summary of changes for version 20060310: 11098 110991) ACPI CA Core Subsystem: 11100 11101Tagged all external interfaces to the subsystem with the new 11102ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to 11103assist 11104kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 11105macro. The default definition is NULL. 11106 11107Added the ACPI_THREAD_ID type for the return value from 11108AcpiOsGetThreadId. 11109This allows the host to define this as necessary to simplify kernel 11110integration. The default definition is ACPI_NATIVE_UINT. 11111 11112Fixed two interpreter problems related to error processing, the deletion 11113of 11114objects, and placing invalid pointers onto the internal operator result 11115stack. BZ 6028, 6151 (Valery Podrezov) 11116 11117Increased the reference count threshold where a warning is emitted for 11118large 11119reference counts in order to eliminate unnecessary warnings on systems 11120with 11121large namespaces (especially 64-bit.) Increased the value from 0x400 to 111220x800. 11123 11124Due to universal disagreement as to the meaning of the 'c' in the 11125calloc() 11126function, the ACPI_MEM_CALLOCATE macro has been renamed to 11127ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 11128ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 11129ACPI_FREE. 11130 11131Code and Data Size: These are the sizes for the acpica.lib produced by 11132the 11133Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 11134ACPI 11135driver or OSPM code. The debug version of the code includes the debug 11136output 11137trace mechanism and has a much larger code and data size. Note that these 11138values will vary depending on the efficiency of the compiler and the 11139compiler options used during generation. 11140 11141 Previous Release: 11142 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 11143 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 11144 Current Release: 11145 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11146 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 11147 11148 111492) iASL Compiler/Disassembler: 11150 11151Disassembler: implemented support for symbolic resource descriptor 11152references. If a CreateXxxxField operator references a fixed offset 11153within 11154a 11155resource descriptor, a name is assigned to the descriptor and the offset 11156is 11157translated to the appropriate resource tag and pathname. The addition of 11158this support brings the disassembled code very close to the original ASL 11159source code and helps eliminate run-time errors when the disassembled 11160code 11161is modified (and recompiled) in such a way as to invalidate the original 11162fixed offsets. 11163 11164Implemented support for a Descriptor Name as the last parameter to the 11165ASL 11166Register() macro. This parameter was inadvertently left out of the ACPI 11167specification, and will be added for ACPI 3.0b. 11168 11169Fixed a problem where the use of the "_OSI" string (versus the full path 11170"\_OSI") caused an internal compiler error. ("No back ptr to op") 11171 11172Fixed a problem with the error message that occurs when an invalid string 11173is 11174used for a _HID object (such as one with an embedded asterisk: 11175"*PNP010A".) 11176The correct message is now displayed. 11177 11178---------------------------------------- 1117917 February 2006. Summary of changes for version 20060217: 11180 111811) ACPI CA Core Subsystem: 11182 11183Implemented a change to the IndexField support to match the behavior of 11184the 11185Microsoft AML interpreter. The value written to the Index register is now 11186a 11187byte offset, no longer an index based upon the width of the Data 11188register. 11189This should fix IndexField problems seen on some machines where the Data 11190register is not exactly one byte wide. The ACPI specification will be 11191clarified on this point. 11192 11193Fixed a problem where several resource descriptor types could overrun the 11194internal descriptor buffer due to size miscalculation: VendorShort, 11195VendorLong, and Interrupt. This was noticed on IA64 machines, but could 11196affect all platforms. 11197 11198Fixed a problem where individual resource descriptors were misaligned 11199within 11200the internal buffer, causing alignment faults on IA64 platforms. 11201 11202Code and Data Size: These are the sizes for the acpica.lib produced by 11203the 11204Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 11205ACPI 11206driver or OSPM code. The debug version of the code includes the debug 11207output 11208trace mechanism and has a much larger code and data size. Note that these 11209values will vary depending on the efficiency of the compiler and the 11210compiler options used during generation. 11211 11212 Previous Release: 11213 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11214 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 11215 Current Release: 11216 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 11217 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 11218 11219 112202) iASL Compiler/Disassembler: 11221 11222Implemented support for new reserved names: _WDG and _WED are Microsoft 11223extensions for Windows Instrumentation Management, _TDL is a new ACPI- 11224defined method (Throttling Depth Limit.) 11225 11226Fixed a problem where a zero-length VendorShort or VendorLong resource 11227descriptor was incorrectly emitted as a descriptor of length one. 11228 11229---------------------------------------- 1123010 February 2006. Summary of changes for version 20060210: 11231 112321) ACPI CA Core Subsystem: 11233 11234Removed a couple of extraneous ACPI_ERROR messages that appeared during 11235normal execution. These became apparent after the conversion from 11236ACPI_DEBUG_PRINT. 11237 11238Fixed a problem where the CreateField operator could hang if the BitIndex 11239or 11240NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 11241 11242Fixed a problem where a DeRefOf operation on a buffer object incorrectly 11243failed with an exception. This also fixes a couple of related RefOf and 11244DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 11245 11246Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 11247of 11248AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 11249BZ 112505480) 11251 11252Implemented a memory cleanup at the end of the execution of each 11253iteration 11254of an AML While() loop, preventing the accumulation of outstanding 11255objects. 11256(Valery Podrezov, BZ 5427) 11257 11258Eliminated a chunk of duplicate code in the object resolution code. 11259(Valery 11260Podrezov, BZ 5336) 11261 11262Fixed several warnings during the 64-bit code generation. 11263 11264The AcpiSrc source code conversion tool now inserts one line of 11265whitespace 11266after an if() statement that is followed immediately by a comment, 11267improving 11268readability of the Linux code. 11269 11270Code and Data Size: The current and previous library sizes for the core 11271subsystem are shown below. These are the code and data sizes for the 11272acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11273These 11274values do not include any ACPI driver or OSPM code. The debug version of 11275the 11276code includes the debug output trace mechanism and has a much larger code 11277and data size. Note that these values will vary depending on the 11278efficiency 11279of the compiler and the compiler options used during generation. 11280 11281 Previous Release: 11282 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 11283 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 11284 Current Release: 11285 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11286 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 11287 11288 112892) iASL Compiler/Disassembler: 11290 11291Fixed a problem with the disassembly of a BankField operator with a 11292complex 11293expression for the BankValue parameter. 11294 11295---------------------------------------- 1129627 January 2006. Summary of changes for version 20060127: 11297 112981) ACPI CA Core Subsystem: 11299 11300Implemented support in the Resource Manager to allow unresolved 11301namestring 11302references within resource package objects for the _PRT method. This 11303support 11304is in addition to the previously implemented unresolved reference support 11305within the AML parser. If the interpreter slack mode is enabled, these 11306unresolved references will be passed through to the caller as a NULL 11307package 11308entry. 11309 11310Implemented and deployed new macros and functions for error and warning 11311messages across the subsystem. These macros are simpler and generate less 11312code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 11313ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 11314macros remain defined to allow ACPI drivers time to migrate to the new 11315macros. 11316 11317Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of 11318the 11319Acquire/Release Lock OSL interfaces. 11320 11321Fixed a problem where Alias ASL operators are sometimes not correctly 11322resolved, in both the interpreter and the iASL compiler. 11323 11324Fixed several problems with the implementation of the 11325ConcatenateResTemplate 11326ASL operator. As per the ACPI specification, zero length buffers are now 11327treated as a single EndTag. One-length buffers always cause a fatal 11328exception. Non-zero length buffers that do not end with a full 2-byte 11329EndTag 11330cause a fatal exception. 11331 11332Fixed a possible structure overwrite in the AcpiGetObjectInfo external 11333interface. (With assistance from Thomas Renninger) 11334 11335Code and Data Size: The current and previous library sizes for the core 11336subsystem are shown below. These are the code and data sizes for the 11337acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11338These 11339values do not include any ACPI driver or OSPM code. The debug version of 11340the 11341code includes the debug output trace mechanism and has a much larger code 11342and data size. Note that these values will vary depending on the 11343efficiency 11344of the compiler and the compiler options used during generation. 11345 11346 Previous Release: 11347 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 11348 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 11349 Current Release: 11350 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 11351 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 11352 11353 113542) iASL Compiler/Disassembler: 11355 11356Fixed an internal error that was generated for any forward references to 11357ASL 11358Alias objects. 11359 11360---------------------------------------- 1136113 January 2006. Summary of changes for version 20060113: 11362 113631) ACPI CA Core Subsystem: 11364 11365Added 2006 copyright to all module headers and signons. This affects 11366virtually every file in the ACPICA core subsystem, iASL compiler, and the 11367utilities. 11368 11369Enhanced the ACPICA error reporting in order to simplify user migration 11370to 11371the non-debug version of ACPICA. Replaced all instances of the 11372ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN 11373debug 11374levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 11375respectively. This preserves all error and warning messages in the non- 11376debug 11377version of the ACPICA code (this has been referred to as the "debug lite" 11378option.) Over 200 cases were converted to create a total of over 380 11379error/warning messages across the ACPICA code. This increases the code 11380and 11381data size of the default non-debug version of the code somewhat (about 1138213K), 11383but all error/warning reporting may be disabled if desired (and code 11384eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 11385configuration option. The size of the debug version of ACPICA remains 11386about 11387the same. 11388 11389Fixed a memory leak within the AML Debugger "Set" command. One object was 11390not properly deleted for every successful invocation of the command. 11391 11392Code and Data Size: The current and previous library sizes for the core 11393subsystem are shown below. These are the code and data sizes for the 11394acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11395These 11396values do not include any ACPI driver or OSPM code. The debug version of 11397the 11398code includes the debug output trace mechanism and has a much larger code 11399and data size. Note that these values will vary depending on the 11400efficiency 11401of the compiler and the compiler options used during generation. 11402 11403 Previous Release: 11404 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 11405 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 11406 Current Release: 11407 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 11408 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 11409 11410 114112) iASL Compiler/Disassembler: 11412 11413The compiler now officially supports the ACPI 3.0a specification that was 11414released on December 30, 2005. (Specification is available at 11415www.acpi.info) 11416 11417---------------------------------------- 1141816 December 2005. Summary of changes for version 20051216: 11419 114201) ACPI CA Core Subsystem: 11421 11422Implemented optional support to allow unresolved names within ASL Package 11423objects. A null object is inserted in the package when a named reference 11424cannot be located in the current namespace. Enabled via the interpreter 11425slack flag, this should eliminate AE_NOT_FOUND exceptions seen on 11426machines 11427that contain such code. 11428 11429Implemented an optimization to the initialization sequence that can 11430improve 11431boot time. During ACPI device initialization, the _STA method is now run 11432if 11433and only if the _INI method exists. The _STA method is used to determine 11434if 11435the device is present; An _INI can only be run if _STA returns present, 11436but 11437it is a waste of time to run the _STA method if the _INI does not exist. 11438(Prototype and assistance from Dong Wei) 11439 11440Implemented use of the C99 uintptr_t for the pointer casting macros if it 11441is 11442available in the current compiler. Otherwise, the default (void *) cast 11443is 11444used as before. 11445 11446Fixed some possible memory leaks found within the execution path of the 11447Break, Continue, If, and CreateField operators. (Valery Podrezov) 11448 11449Fixed a problem introduced in the 20051202 release where an exception is 11450generated during method execution if a control method attempts to declare 11451another method. 11452 11453Moved resource descriptor string constants that are used by both the AML 11454disassembler and AML debugger to the common utilities directory so that 11455these components are independent. 11456 11457Implemented support in the AcpiExec utility (-e switch) to globally 11458ignore 11459exceptions during control method execution (method is not aborted.) 11460 11461Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 11462generation. 11463 11464Code and Data Size: The current and previous library sizes for the core 11465subsystem are shown below. These are the code and data sizes for the 11466acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11467These 11468values do not include any ACPI driver or OSPM code. The debug version of 11469the 11470code includes the debug output trace mechanism and has a much larger code 11471and data size. Note that these values will vary depending on the 11472efficiency 11473of the compiler and the compiler options used during generation. 11474 11475 Previous Release: 11476 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 11477 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 11478 Current Release: 11479 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 11480 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 11481 11482 114832) iASL Compiler/Disassembler: 11484 11485Fixed a problem where a CPU stack overflow fault could occur if a 11486recursive 11487method call was made from within a Return statement. 11488 11489---------------------------------------- 1149002 December 2005. Summary of changes for version 20051202: 11491 114921) ACPI CA Core Subsystem: 11493 11494Modified the parsing of control methods to no longer create namespace 11495objects during the first pass of the parse. Objects are now created only 11496during the execute phase, at the moment the namespace creation operator 11497is 11498encountered in the AML (Name, OperationRegion, CreateByteField, etc.) 11499This 11500should eliminate ALREADY_EXISTS exceptions seen on some machines where 11501reentrant control methods are protected by an AML mutex. The mutex will 11502now 11503correctly block multiple threads from attempting to create the same 11504object 11505more than once. 11506 11507Increased the number of available Owner Ids for namespace object tracking 11508from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 11509on 11510some machines with a large number of ACPI tables (either static or 11511dynamic). 11512 11513Fixed a problem with the AcpiExec utility where a fault could occur when 11514the 11515-b switch (batch mode) is used. 11516 11517Enhanced the namespace dump routine to output the owner ID for each 11518namespace object. 11519 11520Code and Data Size: The current and previous library sizes for the core 11521subsystem are shown below. These are the code and data sizes for the 11522acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11523These 11524values do not include any ACPI driver or OSPM code. The debug version of 11525the 11526code includes the debug output trace mechanism and has a much larger code 11527and data size. Note that these values will vary depending on the 11528efficiency 11529of the compiler and the compiler options used during generation. 11530 11531 Previous Release: 11532 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 11533 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 11534 Current Release: 11535 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 11536 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 11537 11538 115392) iASL Compiler/Disassembler: 11540 11541Fixed a parse error during compilation of certain Switch/Case constructs. 11542To 11543simplify the parse, the grammar now allows for multiple Default 11544statements 11545and this error is now detected and flagged during the analysis phase. 11546 11547Disassembler: The disassembly now includes the contents of the original 11548table header within a comment at the start of the file. This includes the 11549name and version of the original ASL compiler. 11550 11551---------------------------------------- 1155217 November 2005. Summary of changes for version 20051117: 11553 115541) ACPI CA Core Subsystem: 11555 11556Fixed a problem in the AML parser where the method thread count could be 11557decremented below zero if any errors occurred during the method parse 11558phase. 11559This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 11560machines. 11561This also fixed a related regression with the mechanism that detects and 11562corrects methods that cannot properly handle reentrancy (related to the 11563deployment of the new OwnerId mechanism.) 11564 11565Eliminated the pre-parsing of control methods (to detect errors) during 11566table load. Related to the problem above, this was causing unwind issues 11567if 11568any errors occurred during the parse, and it seemed to be overkill. A 11569table 11570load should not be aborted if there are problems with any single control 11571method, thus rendering this feature rather pointless. 11572 11573Fixed a problem with the new table-driven resource manager where an 11574internal 11575buffer overflow could occur for small resource templates. 11576 11577Implemented a new external interface, AcpiGetVendorResource. This 11578interface 11579will find and return a vendor-defined resource descriptor within a _CRS 11580or 11581_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 11582Helgaas. 11583 11584Removed the length limit (200) on string objects as per the upcoming ACPI 115853.0A specification. This affects the following areas of the interpreter: 115861) 11587any implicit conversion of a Buffer to a String, 2) a String object 11588result 11589of the ASL Concatenate operator, 3) the String object result of the ASL 11590ToString operator. 11591 11592Fixed a problem in the Windows OS interface layer (OSL) where a 11593WAIT_FOREVER 11594on a semaphore object would incorrectly timeout. This allows the 11595multithreading features of the AcpiExec utility to work properly under 11596Windows. 11597 11598Updated the Linux makefiles for the iASL compiler and AcpiExec to include 11599the recently added file named "utresrc.c". 11600 11601Code and Data Size: The current and previous library sizes for the core 11602subsystem are shown below. These are the code and data sizes for the 11603acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11604These 11605values do not include any ACPI driver or OSPM code. The debug version of 11606the 11607code includes the debug output trace mechanism and has a much larger code 11608and data size. Note that these values will vary depending on the 11609efficiency 11610of the compiler and the compiler options used during generation. 11611 11612 Previous Release: 11613 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 11614 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 11615 Current Release: 11616 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 11617 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 11618 11619 116202) iASL Compiler/Disassembler: 11621 11622Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 11623specification. For the iASL compiler, this means that string literals 11624within 11625the source ASL can be of any length. 11626 11627Enhanced the listing output to dump the AML code for resource descriptors 11628immediately after the ASL code for each descriptor, instead of in a block 11629at 11630the end of the entire resource template. 11631 11632Enhanced the compiler debug output to dump the entire original parse tree 11633constructed during the parse phase, before any transforms are applied to 11634the 11635tree. The transformed tree is dumped also. 11636 11637---------------------------------------- 1163802 November 2005. Summary of changes for version 20051102: 11639 116401) ACPI CA Core Subsystem: 11641 11642Modified the subsystem initialization sequence to improve GPE support. 11643The 11644GPE initialization has been split into two parts in order to defer 11645execution 11646of the _PRW methods (Power Resources for Wake) until after the hardware 11647is 11648fully initialized and the SCI handler is installed. This allows the _PRW 11649methods to access fields protected by the Global Lock. This will fix 11650systems 11651where a NO_GLOBAL_LOCK exception has been seen during initialization. 11652 11653Converted the ACPI internal object disassemble and display code within 11654the 11655AML debugger to fully table-driven operation, reducing code size and 11656increasing maintainability. 11657 11658Fixed a regression with the ConcatenateResTemplate() ASL operator 11659introduced 11660in the 20051021 release. 11661 11662Implemented support for "local" internal ACPI object types within the 11663debugger "Object" command and the AcpiWalkNamespace external interfaces. 11664These local types include RegionFields, BankFields, IndexFields, Alias, 11665and 11666reference objects. 11667 11668Moved common AML resource handling code into a new file, "utresrc.c". 11669This 11670code is shared by both the Resource Manager and the AML Debugger. 11671 11672Code and Data Size: The current and previous library sizes for the core 11673subsystem are shown below. These are the code and data sizes for the 11674acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11675These 11676values do not include any ACPI driver or OSPM code. The debug version of 11677the 11678code includes the debug output trace mechanism and has a much larger code 11679and data size. Note that these values will vary depending on the 11680efficiency 11681of the compiler and the compiler options used during generation. 11682 11683 Previous Release: 11684 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 11685 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 11686 Current Release: 11687 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 11688 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 11689 11690 116912) iASL Compiler/Disassembler: 11692 11693Fixed a problem with very large initializer lists (more than 4000 11694elements) 11695for both Buffer and Package objects where the parse stack could overflow. 11696 11697Enhanced the pre-compile source code scan for non-ASCII characters to 11698ignore 11699characters within comment fields. The scan is now always performed and is 11700no 11701longer optional, detecting invalid characters within a source file 11702immediately rather than during the parse phase or later. 11703 11704Enhanced the ASL grammar definition to force early reductions on all 11705list- 11706style grammar elements so that the overall parse stack usage is greatly 11707reduced. This should improve performance and reduce the possibility of 11708parse 11709stack overflow. 11710 11711Eliminated all reduce/reduce conflicts in the iASL parser generation. 11712Also, 11713with the addition of a %expected statement, the compiler generates from 11714source with no warnings. 11715 11716Fixed a possible segment fault in the disassembler if the input filename 11717does not contain a "dot" extension (Thomas Renninger). 11718 11719---------------------------------------- 1172021 October 2005. Summary of changes for version 20051021: 11721 117221) ACPI CA Core Subsystem: 11723 11724Implemented support for the EM64T and other x86-64 processors. This 11725essentially entails recognizing that these processors support non-aligned 11726memory transfers. Previously, all 64-bit processors were assumed to lack 11727hardware support for non-aligned transfers. 11728 11729Completed conversion of the Resource Manager to nearly full table-driven 11730operation. Specifically, the resource conversion code (convert AML to 11731internal format and the reverse) and the debug code to dump internal 11732resource descriptors are fully table-driven, reducing code and data size 11733and 11734improving maintainability. 11735 11736The OSL interfaces for Acquire and Release Lock now use a 64-bit flag 11737word 11738on 64-bit processors instead of a fixed 32-bit word. (With assistance 11739from 11740Alexey Starikovskiy) 11741 11742Implemented support within the resource conversion code for the Type- 11743Specific byte within the various ACPI 3.0 *WordSpace macros. 11744 11745Fixed some issues within the resource conversion code for the type- 11746specific 11747flags for both Memory and I/O address resource descriptors. For Memory, 11748implemented support for the MTP and TTP flags. For I/O, split the TRS and 11749TTP flags into two separate fields. 11750 11751Code and Data Size: The current and previous library sizes for the core 11752subsystem are shown below. These are the code and data sizes for the 11753acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11754These 11755values do not include any ACPI driver or OSPM code. The debug version of 11756the 11757code includes the debug output trace mechanism and has a much larger code 11758and data size. Note that these values will vary depending on the 11759efficiency 11760of the compiler and the compiler options used during generation. 11761 11762 Previous Release: 11763 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 11764 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 11765 Current Release: 11766 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 11767 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 11768 11769 11770 117712) iASL Compiler/Disassembler: 11772 11773Relaxed a compiler restriction that disallowed a ResourceIndex byte if 11774the 11775corresponding ResourceSource string was not also present in a resource 11776descriptor declaration. This restriction caused problems with existing 11777AML/ASL code that includes the Index byte without the string. When such 11778AML 11779was disassembled, it could not be compiled without modification. Further, 11780the modified code created a resource template with a different size than 11781the 11782original, breaking code that used fixed offsets into the resource 11783template 11784buffer. 11785 11786Removed a recent feature of the disassembler to ignore a lone 11787ResourceIndex 11788byte. This byte is now emitted if present so that the exact AML can be 11789reproduced when the disassembled code is recompiled. 11790 11791Improved comments and text alignment for the resource descriptor code 11792emitted by the disassembler. 11793 11794Implemented disassembler support for the ACPI 3.0 AccessSize field within 11795a 11796Register() resource descriptor. 11797 11798---------------------------------------- 1179930 September 2005. Summary of changes for version 20050930: 11800 118011) ACPI CA Core Subsystem: 11802 11803Completed a major overhaul of the Resource Manager code - specifically, 11804optimizations in the area of the AML/internal resource conversion code. 11805The 11806code has been optimized to simplify and eliminate duplicated code, CPU 11807stack 11808use has been decreased by optimizing function parameters and local 11809variables, and naming conventions across the manager have been 11810standardized 11811for clarity and ease of maintenance (this includes function, parameter, 11812variable, and struct/typedef names.) The update may force changes in some 11813driver code, depending on how resources are handled by the host OS. 11814 11815All Resource Manager dispatch and information tables have been moved to a 11816single location for clarity and ease of maintenance. One new file was 11817created, named "rsinfo.c". 11818 11819The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 11820guarantee that the argument is not evaluated twice, making them less 11821prone 11822to macro side-effects. However, since there exists the possibility of 11823additional stack use if a particular compiler cannot optimize them (such 11824as 11825in the debug generation case), the original macros are optionally 11826available. 11827Note that some invocations of the return_VALUE macro may now cause size 11828mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 11829to 11830eliminate these. (From Randy Dunlap) 11831 11832Implemented a new mechanism to enable debug tracing for individual 11833control 11834methods. A new external interface, AcpiDebugTrace, is provided to enable 11835this mechanism. The intent is to allow the host OS to easily enable and 11836disable tracing for problematic control methods. This interface can be 11837easily exposed to a user or debugger interface if desired. See the file 11838psxface.c for details. 11839 11840AcpiUtCallocate will now return a valid pointer if a length of zero is 11841specified - a length of one is used and a warning is issued. This matches 11842the behavior of AcpiUtAllocate. 11843 11844Code and Data Size: The current and previous library sizes for the core 11845subsystem are shown below. These are the code and data sizes for the 11846acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11847These 11848values do not include any ACPI driver or OSPM code. The debug version of 11849the 11850code includes the debug output trace mechanism and has a much larger code 11851and data size. Note that these values will vary depending on the 11852efficiency 11853of the compiler and the compiler options used during generation. 11854 11855 Previous Release: 11856 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 11857 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 11858 Current Release: 11859 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 11860 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 11861 11862 118632) iASL Compiler/Disassembler: 11864 11865A remark is issued if the effective compile-time length of a package or 11866buffer is zero. Previously, this was a warning. 11867 11868---------------------------------------- 1186916 September 2005. Summary of changes for version 20050916: 11870 118711) ACPI CA Core Subsystem: 11872 11873Fixed a problem within the Resource Manager where support for the Generic 11874Register descriptor was not fully implemented. This descriptor is now 11875fully 11876recognized, parsed, disassembled, and displayed. 11877 11878Completely restructured the Resource Manager code to utilize table-driven 11879dispatch and lookup, eliminating many of the large switch() statements. 11880This 11881reduces overall subsystem code size and code complexity. Affects the 11882resource parsing and construction, disassembly, and debug dump output. 11883 11884Cleaned up and restructured the debug dump output for all resource 11885descriptors. Improved readability of the output and reduced code size. 11886 11887Fixed a problem where changes to internal data structures caused the 11888optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 11889 11890Code and Data Size: The current and previous library sizes for the core 11891subsystem are shown below. These are the code and data sizes for the 11892acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11893These 11894values do not include any ACPI driver or OSPM code. The debug version of 11895the 11896code includes the debug output trace mechanism and has a much larger code 11897and data size. Note that these values will vary depending on the 11898efficiency 11899of the compiler and the compiler options used during generation. 11900 11901 Previous Release: 11902 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 11903 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 11904 Current Release: 11905 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 11906 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 11907 11908 119092) iASL Compiler/Disassembler: 11910 11911Updated the disassembler to automatically insert an EndDependentFn() 11912macro 11913into the ASL stream if this macro is missing in the original AML code, 11914simplifying compilation of the resulting ASL module. 11915 11916Fixed a problem in the disassembler where a disassembled ResourceSource 11917string (within a large resource descriptor) was not surrounded by quotes 11918and 11919not followed by a comma, causing errors when the resulting ASL module was 11920compiled. Also, escape sequences within a ResourceSource string are now 11921handled correctly (especially "\\") 11922 11923---------------------------------------- 1192402 September 2005. Summary of changes for version 20050902: 11925 119261) ACPI CA Core Subsystem: 11927 11928Fixed a problem with the internal Owner ID allocation and deallocation 11929mechanisms for control method execution and recursive method invocation. 11930This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 11931messages seen on some systems. Recursive method invocation depth is 11932currently limited to 255. (Alexey Starikovskiy) 11933 11934Completely eliminated all vestiges of support for the "module-level 11935executable code" until this support is fully implemented and debugged. 11936This 11937should eliminate the NO_RETURN_VALUE exceptions seen during table load on 11938some systems that invoke this support. 11939 11940Fixed a problem within the resource manager code where the transaction 11941flags 11942for a 64-bit address descriptor were handled incorrectly in the type- 11943specific flag byte. 11944 11945Consolidated duplicate code within the address descriptor resource 11946manager 11947code, reducing overall subsystem code size. 11948 11949Fixed a fault when using the AML debugger "disassemble" command to 11950disassemble individual control methods. 11951 11952Removed references to the "release_current" directory within the Unix 11953release package. 11954 11955Code and Data Size: The current and previous core subsystem library sizes 11956are shown below. These are the code and data sizes for the acpica.lib 11957produced by the Microsoft Visual C++ 6.0 compiler. These values do not 11958include any ACPI driver or OSPM code. The debug version of the code 11959includes 11960the debug output trace mechanism and has a much larger code and data 11961size. 11962Note that these values will vary depending on the efficiency of the 11963compiler 11964and the compiler options used during generation. 11965 11966 Previous Release: 11967 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 11968 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 11969 Current Release: 11970 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 11971 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 11972 11973 119742) iASL Compiler/Disassembler: 11975 11976Implemented an error check for illegal duplicate values in the interrupt 11977and 11978dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 11979Interrupt(). 11980 11981Implemented error checking for the Irq() and IrqNoFlags() macros to 11982detect 11983too many values in the interrupt list (16 max) and invalid values in the 11984list (range 0 - 15) 11985 11986The maximum length string literal within an ASL file is now restricted to 11987200 characters as per the ACPI specification. 11988 11989Fixed a fault when using the -ln option (generate namespace listing). 11990 11991Implemented an error check to determine if a DescriptorName within a 11992resource descriptor has already been used within the current scope. 11993 11994---------------------------------------- 1199515 August 2005. Summary of changes for version 20050815: 11996 119971) ACPI CA Core Subsystem: 11998 11999Implemented a full bytewise compare to determine if a table load request 12000is 12001attempting to load a duplicate table. The compare is performed if the 12002table 12003signatures and table lengths match. This will allow different tables with 12004the same OEM Table ID and revision to be loaded - probably against the 12005ACPI 12006specification, but discovered in the field nonetheless. 12007 12008Added the changes.txt logfile to each of the zipped release packages. 12009 12010Code and Data Size: Current and previous core subsystem library sizes are 12011shown below. These are the code and data sizes for the acpica.lib 12012produced 12013by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12014any ACPI driver or OSPM code. The debug version of the code includes the 12015debug output trace mechanism and has a much larger code and data size. 12016Note 12017that these values will vary depending on the efficiency of the compiler 12018and 12019the compiler options used during generation. 12020 12021 Previous Release: 12022 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 12023 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 12024 Current Release: 12025 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 12026 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 12027 12028 120292) iASL Compiler/Disassembler: 12030 12031Fixed a problem where incorrect AML code could be generated for Package 12032objects if optimization is disabled (via the -oa switch). 12033 12034Fixed a problem with where incorrect AML code is generated for variable- 12035length packages when the package length is not specified and the number 12036of 12037initializer values is greater than 255. 12038 12039 12040---------------------------------------- 1204129 July 2005. Summary of changes for version 20050729: 12042 120431) ACPI CA Core Subsystem: 12044 12045Implemented support to ignore an attempt to install/load a particular 12046ACPI 12047table more than once. Apparently there exists BIOS code that repeatedly 12048attempts to load the same SSDT upon certain events. With assistance from 12049Venkatesh Pallipadi. 12050 12051Restructured the main interface to the AML parser in order to correctly 12052handle all exceptional conditions. This will prevent leakage of the 12053OwnerId 12054resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 12055some 12056machines. With assistance from Alexey Starikovskiy. 12057 12058Support for "module level code" has been disabled in this version due to 12059a 12060number of issues that have appeared on various machines. The support can 12061be 12062enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 12063compilation. When the issues are fully resolved, the code will be enabled 12064by 12065default again. 12066 12067Modified the internal functions for debug print support to define the 12068FunctionName parameter as a (const char *) for compatibility with 12069compiler 12070built-in macros such as __FUNCTION__, etc. 12071 12072Linted the entire ACPICA source tree for both 32-bit and 64-bit. 12073 12074Implemented support to display an object count summary for the AML 12075Debugger 12076commands Object and Methods. 12077 12078Code and Data Size: Current and previous core subsystem library sizes are 12079shown below. These are the code and data sizes for the acpica.lib 12080produced 12081by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12082any ACPI driver or OSPM code. The debug version of the code includes the 12083debug output trace mechanism and has a much larger code and data size. 12084Note 12085that these values will vary depending on the efficiency of the compiler 12086and 12087the compiler options used during generation. 12088 12089 Previous Release: 12090 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 12091 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 12092 Current Release: 12093 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 12094 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 12095 12096 120972) iASL Compiler/Disassembler: 12098 12099Fixed a regression that appeared in the 20050708 version of the compiler 12100where an error message was inadvertently emitted for invocations of the 12101_OSI 12102reserved control method. 12103 12104---------------------------------------- 1210508 July 2005. Summary of changes for version 20050708: 12106 121071) ACPI CA Core Subsystem: 12108 12109The use of the CPU stack in the debug version of the subsystem has been 12110considerably reduced. Previously, a debug structure was declared in every 12111function that used the debug macros. This structure has been removed in 12112favor of declaring the individual elements as parameters to the debug 12113functions. This reduces the cumulative stack use during nested execution 12114of 12115ACPI function calls at the cost of a small increase in the code size of 12116the 12117debug version of the subsystem. With assistance from Alexey Starikovskiy 12118and 12119Len Brown. 12120 12121Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 12122headers to define a macro that will return the current function name at 12123runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 12124by 12125the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 12126compiler-dependent header, the function name is saved on the CPU stack 12127(one 12128pointer per function.) This mechanism is used because apparently there 12129exists no standard ANSI-C defined macro that that returns the function 12130name. 12131 12132Redesigned and reimplemented the "Owner ID" mechanism used to track 12133namespace objects created/deleted by ACPI tables and control method 12134execution. A bitmap is now used to allocate and free the IDs, thus 12135solving 12136the wraparound problem present in the previous implementation. The size 12137of 12138the namespace node descriptor was reduced by 2 bytes as a result (Alexey 12139Starikovskiy). 12140 12141Removed the UINT32_BIT and UINT16_BIT types that were used for the 12142bitfield 12143flag definitions within the headers for the predefined ACPI tables. These 12144have been replaced by UINT8_BIT in order to increase the code portability 12145of 12146the subsystem. If the use of UINT8 remains a problem, we may be forced to 12147eliminate bitfields entirely because of a lack of portability. 12148 12149Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 12150This 12151is a frequently used function and this improvement increases the 12152performance 12153of the entire subsystem (Alexey Starikovskiy). 12154 12155Fixed several possible memory leaks and the inverse - premature object 12156deletion (Alexey Starikovskiy). 12157 12158Code and Data Size: Current and previous core subsystem library sizes are 12159shown below. These are the code and data sizes for the acpica.lib 12160produced 12161by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12162any ACPI driver or OSPM code. The debug version of the code includes the 12163debug output trace mechanism and has a much larger code and data size. 12164Note 12165that these values will vary depending on the efficiency of the compiler 12166and 12167the compiler options used during generation. 12168 12169 Previous Release: 12170 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 12171 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 12172 Current Release: 12173 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 12174 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 12175 12176---------------------------------------- 1217724 June 2005. Summary of changes for version 20050624: 12178 121791) ACPI CA Core Subsystem: 12180 12181Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 12182the host-defined cache object. This allows the OSL implementation to 12183define 12184and type this object in any manner desired, simplifying the OSL 12185implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 12186Linux, and should be defined in the OS-specific header file for other 12187operating systems as required. 12188 12189Changed the interface to AcpiOsAcquireObject to directly return the 12190requested object as the function return (instead of ACPI_STATUS.) This 12191change was made for performance reasons, since this is the purpose of the 12192interface in the first place. AcpiOsAcquireObject is now similar to the 12193AcpiOsAllocate interface. 12194 12195Implemented a new AML debugger command named Businfo. This command 12196displays 12197information about all devices that have an associate _PRT object. The 12198_ADR, 12199_HID, _UID, and _CID are displayed for these devices. 12200 12201Modified the initialization sequence in AcpiInitializeSubsystem to call 12202the 12203OSL interface AcpiOslInitialize first, before any local initialization. 12204This 12205change was required because the global initialization now calls OSL 12206interfaces. 12207 12208Enhanced the Dump command to display the entire contents of Package 12209objects 12210(including all sub-objects and their values.) 12211 12212Restructured the code base to split some files because of size and/or 12213because the code logically belonged in a separate file. New files are 12214listed 12215below. All makefiles and project files included in the ACPI CA release 12216have 12217been updated. 12218 utilities/utcache.c /* Local cache interfaces */ 12219 utilities/utmutex.c /* Local mutex support */ 12220 utilities/utstate.c /* State object support */ 12221 interpreter/parser/psloop.c /* Main AML parse loop */ 12222 12223Code and Data Size: Current and previous core subsystem library sizes are 12224shown below. These are the code and data sizes for the acpica.lib 12225produced 12226by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12227any ACPI driver or OSPM code. The debug version of the code includes the 12228debug output trace mechanism and has a much larger code and data size. 12229Note 12230that these values will vary depending on the efficiency of the compiler 12231and 12232the compiler options used during generation. 12233 12234 Previous Release: 12235 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 12236 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 12237 Current Release: 12238 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 12239 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 12240 12241 122422) iASL Compiler/Disassembler: 12243 12244Fixed a regression introduced in version 20050513 where the use of a 12245Package 12246object within a Case() statement caused a compile time exception. The 12247original behavior has been restored (a Match() operator is emitted.) 12248 12249---------------------------------------- 1225017 June 2005. Summary of changes for version 20050617: 12251 122521) ACPI CA Core Subsystem: 12253 12254Moved the object cache operations into the OS interface layer (OSL) to 12255allow 12256the host OS to handle these operations if desired (for example, the Linux 12257OSL will invoke the slab allocator). This support is optional; the 12258compile 12259time define ACPI_USE_LOCAL_CACHE may be used to utilize the original 12260cache 12261code in the ACPI CA core. The new OSL interfaces are shown below. See 12262utalloc.c for an example implementation, and acpiosxf.h for the exact 12263interface definitions. With assistance from Alexey Starikovskiy. 12264 AcpiOsCreateCache 12265 AcpiOsDeleteCache 12266 AcpiOsPurgeCache 12267 AcpiOsAcquireObject 12268 AcpiOsReleaseObject 12269 12270Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 12271return 12272and restore a flags parameter. This fits better with many OS lock models. 12273Note: the current execution state (interrupt handler or not) is no longer 12274passed to these interfaces. If necessary, the OSL must determine this 12275state 12276by itself, a simple and fast operation. With assistance from Alexey 12277Starikovskiy. 12278 12279Fixed a problem in the ACPI table handling where a valid XSDT was assumed 12280present if the revision of the RSDP was 2 or greater. According to the 12281ACPI 12282specification, the XSDT is optional in all cases, and the table manager 12283therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 12284Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs 12285contain 12286only the RSDT. 12287 12288Fixed an interpreter problem with the Mid() operator in the case of an 12289input 12290string where the resulting output string is of zero length. It now 12291correctly 12292returns a valid, null terminated string object instead of a string object 12293with a null pointer. 12294 12295Fixed a problem with the control method argument handling to allow a 12296store 12297to an Arg object that already contains an object of type Device. The 12298Device 12299object is now correctly overwritten. Previously, an error was returned. 12300 12301 12302Enhanced the debugger Find command to emit object values in addition to 12303the 12304found object pathnames. The output format is the same as the dump 12305namespace 12306command. 12307 12308Enhanced the debugger Set command. It now has the ability to set the 12309value 12310of any Named integer object in the namespace (Previously, only method 12311locals 12312and args could be set.) 12313 12314Code and Data Size: Current and previous core subsystem library sizes are 12315shown below. These are the code and data sizes for the acpica.lib 12316produced 12317by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12318any ACPI driver or OSPM code. The debug version of the code includes the 12319debug output trace mechanism and has a much larger code and data size. 12320Note 12321that these values will vary depending on the efficiency of the compiler 12322and 12323the compiler options used during generation. 12324 12325 Previous Release: 12326 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 12327 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 12328 Current Release: 12329 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 12330 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 12331 12332 123332) iASL Compiler/Disassembler: 12334 12335Fixed a regression in the disassembler where if/else/while constructs 12336were 12337output incorrectly. This problem was introduced in the previous release 12338(20050526). This problem also affected the single-step disassembly in the 12339debugger. 12340 12341Fixed a problem where compiling the reserved _OSI method would randomly 12342(but 12343rarely) produce compile errors. 12344 12345Enhanced the disassembler to emit compilable code in the face of 12346incorrect 12347AML resource descriptors. If the optional ResourceSourceIndex is present, 12348but the ResourceSource is not, do not emit the ResourceSourceIndex in the 12349disassembly. Otherwise, the resulting code cannot be compiled without 12350errors. 12351 12352---------------------------------------- 1235326 May 2005. Summary of changes for version 20050526: 12354 123551) ACPI CA Core Subsystem: 12356 12357Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 12358the module level (not within a control method.) These opcodes are 12359executed 12360exactly once at the time the table is loaded. This type of code was legal 12361up 12362until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 12363in 12364order to provide backwards compatibility with earlier BIOS 12365implementations. 12366This eliminates the "Encountered executable code at module level" warning 12367that was previously generated upon detection of such code. 12368 12369Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 12370inadvertently be generated during the lookup of namespace objects in the 12371second pass parse of ACPI tables and control methods. It appears that 12372this 12373problem could occur during the resolution of forward references to 12374namespace 12375objects. 12376 12377Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 12378corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 12379allows the deadlock detection debug code to be compiled out in the normal 12380case, improving mutex performance (and overall subsystem performance) 12381considerably. 12382 12383Implemented a handful of miscellaneous fixes for possible memory leaks on 12384error conditions and error handling control paths. These fixes were 12385suggested by FreeBSD and the Coverity Prevent source code analysis tool. 12386 12387Added a check for a null RSDT pointer in AcpiGetFirmwareTable 12388(tbxfroot.c) 12389to prevent a fault in this error case. 12390 12391Code and Data Size: Current and previous core subsystem library sizes are 12392shown below. These are the code and data sizes for the acpica.lib 12393produced 12394by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12395any ACPI driver or OSPM code. The debug version of the code includes the 12396debug output trace mechanism and has a much larger code and data size. 12397Note 12398that these values will vary depending on the efficiency of the compiler 12399and 12400the compiler options used during generation. 12401 12402 Previous Release: 12403 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 12404 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 12405 Current Release: 12406 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 12407 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 12408 12409 124102) iASL Compiler/Disassembler: 12411 12412Implemented support to allow Type 1 and Type 2 ASL operators to appear at 12413the module level (not within a control method.) These operators will be 12414executed once at the time the table is loaded. This type of code was 12415legal 12416up until the release of ACPI 2.0B (2002) and is now supported by the iASL 12417compiler in order to provide backwards compatibility with earlier BIOS 12418ASL 12419code. 12420 12421The ACPI integer width (specified via the table revision ID or the -r 12422override, 32 or 64 bits) is now used internally during compile-time 12423constant 12424folding to ensure that constants are truncated to 32 bits if necessary. 12425Previously, the revision ID value was only emitted in the AML table 12426header. 12427 12428An error message is now generated for the Mutex and Method operators if 12429the 12430SyncLevel parameter is outside the legal range of 0 through 15. 12431 12432Fixed a problem with the Method operator ParameterTypes list handling 12433(ACPI 124343.0). Previously, more than 2 types or 2 arguments generated a syntax 12435error. 12436The actual underlying implementation of method argument typechecking is 12437still under development, however. 12438 12439---------------------------------------- 1244013 May 2005. Summary of changes for version 20050513: 12441 124421) ACPI CA Core Subsystem: 12443 12444Implemented support for PCI Express root bridges -- added support for 12445device 12446PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 12447 12448The interpreter now automatically truncates incoming 64-bit constants to 1244932 12450bits if currently executing out of a 32-bit ACPI table (Revision < 2). 12451This 12452also affects the iASL compiler constant folding. (Note: as per below, the 12453iASL compiler no longer allows 64-bit constants within 32-bit tables.) 12454 12455Fixed a problem where string and buffer objects with "static" pointers 12456(pointers to initialization data within an ACPI table) were not handled 12457consistently. The internal object copy operation now always copies the 12458data 12459to a newly allocated buffer, regardless of whether the source object is 12460static or not. 12461 12462Fixed a problem with the FromBCD operator where an implicit result 12463conversion was improperly performed while storing the result to the 12464target 12465operand. Since this is an "explicit conversion" operator, the implicit 12466conversion should never be performed on the output. 12467 12468Fixed a problem with the CopyObject operator where a copy to an existing 12469named object did not always completely overwrite the existing object 12470stored 12471at name. Specifically, a buffer-to-buffer copy did not delete the 12472existing 12473buffer. 12474 12475Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces 12476and 12477structs for consistency. 12478 12479Code and Data Size: Current and previous core subsystem library sizes are 12480shown below. These are the code and data sizes for the acpica.lib 12481produced 12482by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12483any ACPI driver or OSPM code. The debug version of the code includes the 12484debug output trace mechanism and has a much larger code and data size. 12485Note 12486that these values will vary depending on the efficiency of the compiler 12487and 12488the compiler options used during generation. 12489 12490 Previous Release: 12491 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 12492 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 12493 Current Release: (Same sizes) 12494 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 12495 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 12496 12497 124982) iASL Compiler/Disassembler: 12499 12500The compiler now emits a warning if an attempt is made to generate a 64- 12501bit 12502integer constant from within a 32-bit ACPI table (Revision < 2). The 12503integer 12504is truncated to 32 bits. 12505 12506Fixed a problem with large package objects: if the static length of the 12507package is greater than 255, the "variable length package" opcode is 12508emitted. Previously, this caused an error. This requires an update to the 12509ACPI spec, since it currently (incorrectly) states that packages larger 12510than 12511255 elements are not allowed. 12512 12513The disassembler now correctly handles variable length packages and 12514packages 12515larger than 255 elements. 12516 12517---------------------------------------- 1251808 April 2005. Summary of changes for version 20050408: 12519 125201) ACPI CA Core Subsystem: 12521 12522Fixed three cases in the interpreter where an "index" argument to an ASL 12523function was still (internally) 32 bits instead of the required 64 bits. 12524This was the Index argument to the Index, Mid, and Match operators. 12525 12526The "strupr" function is now permanently local (AcpiUtStrupr), since this 12527is 12528not a POSIX-defined function and not present in most kernel-level C 12529libraries. All references to the C library strupr function have been 12530removed 12531from the headers. 12532 12533Completed the deployment of static functions/prototypes. All prototypes 12534with 12535the static attribute have been moved from the headers to the owning C 12536file. 12537 12538Implemented an extract option (-e) for the AcpiBin utility (AML binary 12539utility). This option allows the utility to extract individual ACPI 12540tables 12541from the output of AcpiDmp. It provides the same functionality of the 12542acpixtract.pl perl script without the worry of setting the correct perl 12543options. AcpiBin runs on Windows and has not yet been generated/validated 12544in 12545the Linux/Unix environment (but should be soon). 12546 12547Updated and fixed the table dump option for AcpiBin (-d). This option 12548converts a single ACPI table to a hex/ascii file, similar to the output 12549of 12550AcpiDmp. 12551 12552Code and Data Size: Current and previous core subsystem library sizes are 12553shown below. These are the code and data sizes for the acpica.lib 12554produced 12555by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12556any ACPI driver or OSPM code. The debug version of the code includes the 12557debug output trace mechanism and has a much larger code and data size. 12558Note 12559that these values will vary depending on the efficiency of the compiler 12560and 12561the compiler options used during generation. 12562 12563 Previous Release: 12564 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 12565 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 12566 Current Release: 12567 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 12568 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 12569 12570 125712) iASL Compiler/Disassembler: 12572 12573Disassembler fix: Added a check to ensure that the table length found in 12574the 12575ACPI table header within the input file is not longer than the actual 12576input 12577file size. This indicates some kind of file or table corruption. 12578 12579---------------------------------------- 1258029 March 2005. Summary of changes for version 20050329: 12581 125821) ACPI CA Core Subsystem: 12583 12584An error is now generated if an attempt is made to create a Buffer Field 12585of 12586length zero (A CreateField with a length operand of zero.) 12587 12588The interpreter now issues a warning whenever executable code at the 12589module 12590level is detected during ACPI table load. This will give some idea of the 12591prevalence of this type of code. 12592 12593Implemented support for references to named objects (other than control 12594methods) within package objects. 12595 12596Enhanced package object output for the debug object. Package objects are 12597now 12598completely dumped, showing all elements. 12599 12600Enhanced miscellaneous object output for the debug object. Any object can 12601now be written to the debug object (for example, a device object can be 12602written, and the type of the object will be displayed.) 12603 12604The "static" qualifier has been added to all local functions across both 12605the 12606core subsystem and the iASL compiler. 12607 12608The number of "long" lines (> 80 chars) within the source has been 12609significantly reduced, by about 1/3. 12610 12611Cleaned up all header files to ensure that all CA/iASL functions are 12612prototyped (even static functions) and the formatting is consistent. 12613 12614Two new header files have been added, acopcode.h and acnames.h. 12615 12616Removed several obsolete functions that were no longer used. 12617 12618Code and Data Size: Current and previous core subsystem library sizes are 12619shown below. These are the code and data sizes for the acpica.lib 12620produced 12621by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12622any ACPI driver or OSPM code. The debug version of the code includes the 12623debug output trace mechanism and has a much larger code and data size. 12624Note 12625that these values will vary depending on the efficiency of the compiler 12626and 12627the compiler options used during generation. 12628 12629 Previous Release: 12630 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 12631 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 12632 Current Release: 12633 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 12634 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 12635 12636 12637 126382) iASL Compiler/Disassembler: 12639 12640Fixed a problem with the resource descriptor generation/support. For the 12641ResourceSourceIndex and the ResourceSource fields, both must be present, 12642or 12643both must be not present - can't have one without the other. 12644 12645The compiler now returns non-zero from the main procedure if any errors 12646have 12647occurred during the compilation. 12648 12649 12650---------------------------------------- 1265109 March 2005. Summary of changes for version 20050309: 12652 126531) ACPI CA Core Subsystem: 12654 12655The string-to-buffer implicit conversion code has been modified again 12656after 12657a change to the ACPI specification. In order to match the behavior of 12658the 12659other major ACPI implementation, the target buffer is no longer truncated 12660if 12661the source string is smaller than an existing target buffer. This change 12662requires an update to the ACPI spec, and should eliminate the recent 12663AE_AML_BUFFER_LIMIT issues. 12664 12665The "implicit return" support was rewritten to a new algorithm that 12666solves 12667the general case. Rather than attempt to determine when a method is about 12668to 12669exit, the result of every ASL operator is saved momentarily until the 12670very 12671next ASL operator is executed. Therefore, no matter how the method exits, 12672there will always be a saved implicit return value. This feature is only 12673enabled with the AcpiGbl_EnableInterpreterSlack flag, and should 12674eliminate 12675AE_AML_NO_RETURN_VALUE errors when enabled. 12676 12677Implemented implicit conversion support for the predicate (operand) of 12678the 12679If, Else, and While operators. String and Buffer arguments are 12680automatically 12681converted to Integers. 12682 12683Changed the string-to-integer conversion behavior to match the new ACPI 12684errata: "If no integer object exists, a new integer is created. The ASCII 12685string is interpreted as a hexadecimal constant. Each string character is 12686interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 12687with the first character as the most significant digit, and ending with 12688the 12689first non-hexadecimal character or end-of-string." This means that the 12690first 12691non-hex character terminates the conversion and this is the code that was 12692changed. 12693 12694Fixed a problem where the ObjectType operator would fail (fault) when 12695used 12696on an Index of a Package which pointed to a null package element. The 12697operator now properly returns zero (Uninitialized) in this case. 12698 12699Fixed a problem where the While operator used excessive memory by not 12700properly popping the result stack during execution. There was no memory 12701leak 12702after execution, however. (Code provided by Valery Podrezov.) 12703 12704Fixed a problem where references to control methods within Package 12705objects 12706caused the method to be invoked, instead of producing a reference object 12707pointing to the method. 12708 12709Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) 12710to 12711improve performance and reduce code size. (Code provided by Alexey 12712Starikovskiy.) 12713 12714Code and Data Size: Current and previous core subsystem library sizes are 12715shown below. These are the code and data sizes for the acpica.lib 12716produced 12717by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12718any ACPI driver or OSPM code. The debug version of the code includes the 12719debug output trace mechanism and has a much larger code and data size. 12720Note 12721that these values will vary depending on the efficiency of the compiler 12722and 12723the compiler options used during generation. 12724 12725 Previous Release: 12726 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 12727 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 12728 Current Release: 12729 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 12730 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 12731 12732 127332) iASL Compiler/Disassembler: 12734 12735Fixed a problem with the Return operator with no arguments. Since the AML 12736grammar for the byte encoding requires an operand for the Return opcode, 12737the 12738compiler now emits a Return(Zero) for this case. An ACPI specification 12739update has been written for this case. 12740 12741For tables other than the DSDT, namepath optimization is automatically 12742disabled. This is because SSDTs can be loaded anywhere in the namespace, 12743the 12744compiler has no knowledge of where, and thus cannot optimize namepaths. 12745 12746Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 12747inadvertently omitted from the ACPI specification, and will require an 12748update to the spec. 12749 12750The source file scan for ASCII characters is now optional (-a). This 12751change 12752was made because some vendors place non-ascii characters within comments. 12753However, the scan is simply a brute-force byte compare to ensure all 12754characters in the file are in the range 0x00 to 0x7F. 12755 12756Fixed a problem with the CondRefOf operator where the compiler was 12757inappropriately checking for the existence of the target. Since the point 12758of 12759the operator is to check for the existence of the target at run-time, the 12760compiler no longer checks for the target existence. 12761 12762Fixed a problem where errors generated from the internal AML interpreter 12763during constant folding were not handled properly, causing a fault. 12764 12765Fixed a problem with overly aggressive range checking for the Stall 12766operator. The valid range (max 255) is now only checked if the operand is 12767of 12768type Integer. All other operand types cannot be statically checked. 12769 12770Fixed a problem where control method references within the RefOf, 12771DeRefOf, 12772and ObjectType operators were not treated properly. They are now treated 12773as 12774actual references, not method invocations. 12775 12776Fixed and enhanced the "list namespace" option (-ln). This option was 12777broken 12778a number of releases ago. 12779 12780Improved error handling for the Field, IndexField, and BankField 12781operators. 12782The compiler now cleanly reports and recovers from errors in the field 12783component (FieldUnit) list. 12784 12785Fixed a disassembler problem where the optional ResourceDescriptor fields 12786TRS and TTP were not always handled correctly. 12787 12788Disassembler - Comments in output now use "//" instead of "/*" 12789 12790---------------------------------------- 1279128 February 2005. Summary of changes for version 20050228: 12792 127931) ACPI CA Core Subsystem: 12794 12795Fixed a problem where the result of an Index() operator (an object 12796reference) must increment the reference count on the target object for 12797the 12798life of the object reference. 12799 12800Implemented AML Interpreter and Debugger support for the new ACPI 3.0 12801Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 12802WordSpace 12803resource descriptors. 12804 12805Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 12806Space Descriptor" string, indicating interpreter support for the 12807descriptors 12808above. 12809 12810Implemented header support for the new ACPI 3.0 FADT flag bits. 12811 12812Implemented header support for the new ACPI 3.0 PCI Express bits for the 12813PM1 12814status/enable registers. 12815 12816Updated header support for the MADT processor local Apic struct and MADT 12817platform interrupt source struct for new ACPI 3.0 fields. 12818 12819Implemented header support for the SRAT and SLIT ACPI tables. 12820 12821Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 12822flag 12823at runtime. 12824 12825Code and Data Size: Current and previous core subsystem library sizes are 12826shown below. These are the code and data sizes for the acpica.lib 12827produced 12828by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12829any ACPI driver or OSPM code. The debug version of the code includes the 12830debug output trace mechanism and has a much larger code and data size. 12831Note 12832that these values will vary depending on the efficiency of the compiler 12833and 12834the compiler options used during generation. 12835 12836 Previous Release: 12837 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 12838 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 12839 Current Release: 12840 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 12841 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 12842 12843 128442) iASL Compiler/Disassembler: 12845 12846Fixed a problem with the internal 64-bit String-to-integer conversion 12847with 12848strings less than two characters long. 12849 12850Fixed a problem with constant folding where the result of the Index() 12851operator can not be considered a constant. This means that Index() cannot 12852be 12853a type3 opcode and this will require an update to the ACPI specification. 12854 12855Disassembler: Implemented support for the TTP, MTP, and TRS resource 12856descriptor fields. These fields were inadvertently ignored and not output 12857in 12858the disassembly of the resource descriptor. 12859 12860 12861 ---------------------------------------- 1286211 February 2005. Summary of changes for version 20050211: 12863 128641) ACPI CA Core Subsystem: 12865 12866Implemented ACPI 3.0 support for implicit conversion within the Match() 12867operator. MatchObjects can now be of type integer, buffer, or string 12868instead 12869of just type integer. Package elements are implicitly converted to the 12870type 12871of the MatchObject. This change aligns the behavior of Match() with the 12872behavior of the other logical operators (LLess(), etc.) It also requires 12873an 12874errata change to the ACPI specification as this support was intended for 12875ACPI 3.0, but was inadvertently omitted. 12876 12877Fixed a problem with the internal implicit "to buffer" conversion. 12878Strings 12879that are converted to buffers will cause buffer truncation if the string 12880is 12881smaller than the target buffer. Integers that are converted to buffers 12882will 12883not cause buffer truncation, only zero extension (both as per the ACPI 12884spec.) The problem was introduced when code was added to truncate the 12885buffer, but this should not be performed in all cases, only the string 12886case. 12887 12888Fixed a problem with the Buffer and Package operators where the 12889interpreter 12890would get confused if two such operators were used as operands to an ASL 12891operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 12892stack was not being popped after the execution of these operators, 12893resulting 12894in an AE_NO_RETURN_VALUE exception. 12895 12896Fixed a problem with constructs of the form Store(Index(...),...). The 12897reference object returned from Index was inadvertently resolved to an 12898actual 12899value. This problem was introduced in version 20050114 when the behavior 12900of 12901Store() was modified to restrict the object types that can be used as the 12902source operand (to match the ACPI specification.) 12903 12904Reduced excessive stack use within the AcpiGetObjectInfo procedure. 12905 12906Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 12907 12908Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 12909 12910Code and Data Size: Current and previous core subsystem library sizes are 12911shown below. These are the code and data sizes for the acpica.lib 12912produced 12913by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12914any ACPI driver or OSPM code. The debug version of the code includes the 12915debug output trace mechanism and has a much larger code and data size. 12916Note 12917that these values will vary depending on the efficiency of the compiler 12918and 12919the compiler options used during generation. 12920 12921 Previous Release: 12922 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 12923 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 12924 Current Release: 12925 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 12926 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 12927 12928 129292) iASL Compiler/Disassembler: 12930 12931Fixed a code generation problem in the constant folding optimization code 12932where incorrect code was generated if a constant was reduced to a buffer 12933object (i.e., a reduced type 5 opcode.) 12934 12935Fixed a typechecking problem for the ToBuffer operator. Caused by an 12936incorrect return type in the internal opcode information table. 12937 12938---------------------------------------- 1293925 January 2005. Summary of changes for version 20050125: 12940 129411) ACPI CA Core Subsystem: 12942 12943Fixed a recently introduced problem with the Global Lock where the 12944underlying semaphore was not created. This problem was introduced in 12945version 20050114, and caused an AE_AML_NO_OPERAND exception during an 12946Acquire() operation on _GL. 12947 12948The local object cache is now optional, and is disabled by default. Both 12949AcpiExec and the iASL compiler enable the cache because they run in user 12950mode and this enhances their performance. #define 12951ACPI_ENABLE_OBJECT_CACHE 12952to enable the local cache. 12953 12954Fixed an issue in the internal function AcpiUtEvaluateObject concerning 12955the 12956optional "implicit return" support where an error was returned if no 12957return 12958object was expected, but one was implicitly returned. AE_OK is now 12959returned 12960in this case and the implicitly returned object is deleted. 12961AcpiUtEvaluateObject is only occasionally used, and only to execute 12962reserved 12963methods such as _STA and _INI where the return type is known up front. 12964 12965Fixed a few issues with the internal convert-to-integer code. It now 12966returns 12967an error if an attempt is made to convert a null string, a string of only 12968blanks/tabs, or a zero-length buffer. This affects both implicit 12969conversion 12970and explicit conversion via the ToInteger() operator. 12971 12972The internal debug code in AcpiUtAcquireMutex has been commented out. It 12973is 12974not needed for normal operation and should increase the performance of 12975the 12976entire subsystem. The code remains in case it is needed for debug 12977purposes 12978again. 12979 12980The AcpiExec source and makefile are included in the Unix/Linux package 12981for 12982the first time. 12983 12984Code and Data Size: Current and previous core subsystem library sizes are 12985shown below. These are the code and data sizes for the acpica.lib 12986produced 12987by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12988any ACPI driver or OSPM code. The debug version of the code includes the 12989debug output trace mechanism and has a much larger code and data size. 12990Note 12991that these values will vary depending on the efficiency of the compiler 12992and 12993the compiler options used during generation. 12994 12995 Previous Release: 12996 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 12997 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 12998 Current Release: 12999 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 13000 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 13001 130022) iASL Compiler/Disassembler: 13003 13004Switch/Case support: A warning is now issued if the type of the Switch 13005value 13006cannot be determined at compile time. For example, Switch(Arg0) will 13007generate the warning, and the type is assumed to be an integer. As per 13008the 13009ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 13010the 13011warning. 13012 13013Switch/Case support: Implemented support for buffer and string objects as 13014the switch value. This is an ACPI 3.0 feature, now that LEqual supports 13015buffers and strings. 13016 13017Switch/Case support: The emitted code for the LEqual() comparisons now 13018uses 13019the switch value as the first operand, not the second. The case value is 13020now 13021the second operand, and this allows the case value to be implicitly 13022converted to the type of the switch value, not the other way around. 13023 13024Switch/Case support: Temporary variables are now emitted immediately 13025within 13026the control method, not at the global level. This means that there are 13027now 1302836 temps available per-method, not 36 temps per-module as was the case 13029with 13030the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 13031 13032---------------------------------------- 1303314 January 2005. Summary of changes for version 20050114: 13034 13035Added 2005 copyright to all module headers. This affects every module in 13036the core subsystem, iASL compiler, and the utilities. 13037 130381) ACPI CA Core Subsystem: 13039 13040Fixed an issue with the String-to-Buffer conversion code where the string 13041null terminator was not included in the buffer after conversion, but 13042there 13043is existing ASL that assumes the string null terminator is included. This 13044is 13045the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 13046introduced in the previous version when the code was updated to correctly 13047set the converted buffer size as per the ACPI specification. The ACPI 13048spec 13049is ambiguous and will be updated to specify that the null terminator must 13050be 13051included in the converted buffer. This also affects the ToBuffer() ASL 13052operator. 13053 13054Fixed a problem with the Mid() ASL/AML operator where it did not work 13055correctly on Buffer objects. Newly created sub-buffers were not being 13056marked 13057as initialized. 13058 13059 13060Fixed a problem in AcpiTbFindTable where incorrect string compares were 13061performed on the OemId and OemTableId table header fields. These fields 13062are 13063not null terminated, so strncmp is now used instead of strcmp. 13064 13065Implemented a restriction on the Store() ASL/AML operator to align the 13066behavior with the ACPI specification. Previously, any object could be 13067used 13068as the source operand. Now, the only objects that may be used are 13069Integers, 13070Buffers, Strings, Packages, Object References, and DDB Handles. If 13071necessary, the original behavior can be restored by enabling the 13072EnableInterpreterSlack flag. 13073 13074Enhanced the optional "implicit return" support to allow an implicit 13075return 13076value from methods that are invoked externally via the AcpiEvaluateObject 13077interface. This enables implicit returns from the _STA and _INI methods, 13078for example. 13079 13080Changed the Revision() ASL/AML operator to return the current version of 13081the 13082AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 13083returned 13084the supported ACPI version (This is the function of the _REV method). 13085 13086Updated the _REV predefined method to return the currently supported 13087version 13088of ACPI, now 3. 13089 13090Implemented batch mode option for the AcpiExec utility (-b). 13091 13092Code and Data Size: Current and previous core subsystem library sizes are 13093shown below. These are the code and data sizes for the acpica.lib 13094produced 13095by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13096any ACPI driver or OSPM code. The debug version of the code includes the 13097debug output trace mechanism and has a much larger code and data size. 13098Note 13099that these values will vary depending on the efficiency of the compiler 13100and 13101the compiler options used during generation. 13102 13103 Previous Release: 13104 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13105 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 13106 Current Release: 13107 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 13108 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 13109 13110---------------------------------------- 1311110 December 2004. Summary of changes for version 20041210: 13112 13113ACPI 3.0 support is nearing completion in both the iASL compiler and the 13114ACPI CA core subsystem. 13115 131161) ACPI CA Core Subsystem: 13117 13118Fixed a problem in the ToDecimalString operator where the resulting 13119string 13120length was incorrectly calculated. The length is now calculated exactly, 13121eliminating incorrect AE_STRING_LIMIT exceptions. 13122 13123Fixed a problem in the ToHexString operator to allow a maximum 200 13124character 13125string to be produced. 13126 13127Fixed a problem in the internal string-to-buffer and buffer-to-buffer 13128copy 13129routine where the length of the resulting buffer was not truncated to the 13130new size (if the target buffer already existed). 13131 13132Code and Data Size: Current and previous core subsystem library sizes are 13133shown below. These are the code and data sizes for the acpica.lib 13134produced 13135by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13136any ACPI driver or OSPM code. The debug version of the code includes the 13137debug output trace mechanism and has a much larger code and data size. 13138Note 13139that these values will vary depending on the efficiency of the compiler 13140and 13141the compiler options used during generation. 13142 13143 Previous Release: 13144 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13145 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 13146 Current Release: 13147 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13148 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 13149 13150 131512) iASL Compiler/Disassembler: 13152 13153Implemented the new ACPI 3.0 resource template macros - DWordSpace, 13154ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 13155Includes support in the disassembler. 13156 13157Implemented support for the new (ACPI 3.0) parameter to the Register 13158macro, 13159AccessSize. 13160 13161Fixed a problem where the _HE resource name for the Interrupt macro was 13162referencing bit 0 instead of bit 1. 13163 13164Implemented check for maximum 255 interrupts in the Interrupt macro. 13165 13166Fixed a problem with the predefined resource descriptor names where 13167incorrect AML code was generated if the offset within the resource buffer 13168was 0 or 1. The optimizer shortened the AML code to a single byte opcode 13169but did not update the surrounding package lengths. 13170 13171Changes to the Dma macro: All channels within the channel list must be 13172in 13173the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 13174optional (default is BusMaster). 13175 13176Implemented check for maximum 7 data bytes for the VendorShort macro. 13177 13178The ReadWrite parameter is now optional for the Memory32 and similar 13179macros. 13180 13181---------------------------------------- 1318203 December 2004. Summary of changes for version 20041203: 13183 131841) ACPI CA Core Subsystem: 13185 13186The low-level field insertion/extraction code (exfldio) has been 13187completely 13188rewritten to eliminate unnecessary complexity, bugs, and boundary 13189conditions. 13190 13191Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 13192ToDecimalString 13193operators where the input operand could be inadvertently deleted if no 13194conversion was necessary (e.g., if the input to ToInteger was an Integer 13195object.) 13196 13197Fixed a problem with the ToDecimalString and ToHexString where an 13198incorrect 13199exception code was returned if the resulting string would be > 200 chars. 13200AE_STRING_LIMIT is now returned. 13201 13202Fixed a problem with the Concatenate operator where AE_OK was always 13203returned, even if the operation failed. 13204 13205Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 13206semaphores to be allocated. 13207 13208Code and Data Size: Current and previous core subsystem library sizes are 13209shown below. These are the code and data sizes for the acpica.lib 13210produced 13211by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13212any ACPI driver or OSPM code. The debug version of the code includes the 13213debug output trace mechanism and has a much larger code and data size. 13214Note 13215that these values will vary depending on the efficiency of the compiler 13216and 13217the compiler options used during generation. 13218 13219 Previous Release: 13220 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13221 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13222 Current Release: 13223 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13224 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 13225 13226 132272) iASL Compiler/Disassembler: 13228 13229Fixed typechecking for the ObjectType and SizeOf operators. Problem was 13230recently introduced in 20041119. 13231 13232Fixed a problem with the ToUUID macro where the upper nybble of each 13233buffer 13234byte was inadvertently set to zero. 13235 13236---------------------------------------- 1323719 November 2004. Summary of changes for version 20041119: 13238 132391) ACPI CA Core Subsystem: 13240 13241Fixed a problem in the internal ConvertToInteger routine where new 13242integers 13243were not truncated to 32 bits for 32-bit ACPI tables. This routine 13244converts 13245buffers and strings to integers. 13246 13247Implemented support to store a value to an Index() on a String object. 13248This 13249is an ACPI 2.0 feature that had not yet been implemented. 13250 13251Implemented new behavior for storing objects to individual package 13252elements 13253(via the Index() operator). The previous behavior was to invoke the 13254implicit 13255conversion rules if an object was already present at the index. The new 13256behavior is to simply delete any existing object and directly store the 13257new 13258object. Although the ACPI specification seems unclear on this subject, 13259other 13260ACPI implementations behave in this manner. (This is the root of the 13261AE_BAD_HEX_CONSTANT issue.) 13262 13263Modified the RSDP memory scan mechanism to support the extended checksum 13264for 13265ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 13266RSDP signature is found with a valid checksum. 13267 13268Code and Data Size: Current and previous core subsystem library sizes are 13269shown below. These are the code and data sizes for the acpica.lib 13270produced 13271by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13272any ACPI driver or OSPM code. The debug version of the code includes the 13273debug output trace mechanism and has a much larger code and data size. 13274Note 13275that these values will vary depending on the efficiency of the compiler 13276and 13277the compiler options used during generation. 13278 13279 Previous Release: 13280 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13281 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13282 Current Release: 13283 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13284 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13285 13286 132872) iASL Compiler/Disassembler: 13288 13289Fixed a missing semicolon in the aslcompiler.y file. 13290 13291---------------------------------------- 1329205 November 2004. Summary of changes for version 20041105: 13293 132941) ACPI CA Core Subsystem: 13295 13296Implemented support for FADT revision 2. This was an interim table 13297(between 13298ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 13299 13300Implemented optional support to allow uninitialized LocalX and ArgX 13301variables in a control method. The variables are initialized to an 13302Integer 13303object with a value of zero. This support is enabled by setting the 13304AcpiGbl_EnableInterpreterSlack flag to TRUE. 13305 13306Implemented support for Integer objects for the SizeOf operator. Either 133074 13308or 8 is returned, depending on the current integer size (32-bit or 64- 13309bit, 13310depending on the parent table revision). 13311 13312Fixed a problem in the implementation of the SizeOf and ObjectType 13313operators 13314where the operand was resolved to a value too early, causing incorrect 13315return values for some objects. 13316 13317Fixed some possible memory leaks during exceptional conditions. 13318 13319Code and Data Size: Current and previous core subsystem library sizes are 13320shown below. These are the code and data sizes for the acpica.lib 13321produced 13322by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13323any ACPI driver or OSPM code. The debug version of the code includes the 13324debug output trace mechanism and has a much larger code and data size. 13325Note 13326that these values will vary depending on the efficiency of the compiler 13327and 13328the compiler options used during generation. 13329 13330 Previous Release: 13331 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 13332 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 13333 Current Release: 13334 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13335 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13336 13337 133382) iASL Compiler/Disassembler: 13339 13340Implemented support for all ACPI 3.0 reserved names and methods. 13341 13342Implemented all ACPI 3.0 grammar elements in the front-end, including 13343support for semicolons. 13344 13345Implemented the ACPI 3.0 Function() and ToUUID() macros 13346 13347Fixed a problem in the disassembler where a Scope() operator would not be 13348emitted properly if the target of the scope was in another table. 13349 13350---------------------------------------- 1335115 October 2004. Summary of changes for version 20041015: 13352 13353Note: ACPI CA is currently undergoing an in-depth and complete formal 13354evaluation to test/verify the following areas. Other suggestions are 13355welcome. This will result in an increase in the frequency of releases and 13356the number of bug fixes in the next few months. 13357 - Functional tests for all ASL/AML operators 13358 - All implicit/explicit type conversions 13359 - Bit fields and operation regions 13360 - 64-bit math support and 32-bit-only "truncated" math support 13361 - Exceptional conditions, both compiler and interpreter 13362 - Dynamic object deletion and memory leaks 13363 - ACPI 3.0 support when implemented 13364 - External interfaces to the ACPI subsystem 13365 13366 133671) ACPI CA Core Subsystem: 13368 13369Fixed two alignment issues on 64-bit platforms - within debug statements 13370in 13371AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 13372Address 13373field within the non-aligned ACPI generic address structure. 13374 13375Fixed a problem in the Increment and Decrement operators where incorrect 13376operand resolution could result in the inadvertent modification of the 13377original integer when the integer is passed into another method as an 13378argument and the arg is then incremented/decremented. 13379 13380Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 13381bit 13382BCD number were truncated during conversion. 13383 13384Fixed a problem in the ToDecimal operator where the length of the 13385resulting 13386string could be set incorrectly too long if the input operand was a 13387Buffer 13388object. 13389 13390Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 13391(0) 13392within a buffer would prematurely terminate a compare between buffer 13393objects. 13394 13395Added a check for string overflow (>200 characters as per the ACPI 13396specification) during the Concatenate operator with two string operands. 13397 13398Code and Data Size: Current and previous core subsystem library sizes are 13399shown below. These are the code and data sizes for the acpica.lib 13400produced 13401by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13402any ACPI driver or OSPM code. The debug version of the code includes the 13403debug output trace mechanism and has a much larger code and data size. 13404Note 13405that these values will vary depending on the efficiency of the compiler 13406and 13407the compiler options used during generation. 13408 13409 Previous Release: 13410 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 13411 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 13412 Current Release: 13413 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 13414 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 13415 13416 13417 134182) iASL Compiler/Disassembler: 13419 13420Allow the use of the ObjectType operator on uninitialized Locals and Args 13421(returns 0 as per the ACPI specification). 13422 13423Fixed a problem where the compiler would fault if there was a syntax 13424error 13425in the FieldName of all of the various CreateXXXField operators. 13426 13427Disallow the use of lower case letters within the EISAID macro, as per 13428the 13429ACPI specification. All EISAID strings must be of the form "UUUNNNN" 13430Where 13431U is an uppercase letter and N is a hex digit. 13432 13433 13434---------------------------------------- 1343506 October 2004. Summary of changes for version 20041006: 13436 134371) ACPI CA Core Subsystem: 13438 13439Implemented support for the ACPI 3.0 Timer operator. This ASL function 13440implements a 64-bit timer with 100 nanosecond granularity. 13441 13442Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 13443implement the ACPI 3.0 Timer operator. This allows the host OS to 13444implement 13445the timer with the best clock available. Also, it keeps the core 13446subsystem 13447out of the clock handling business, since the host OS (usually) performs 13448this function. 13449 13450Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 13451functions use a 64-bit address which is part of the packed ACPI Generic 13452Address Structure. Since the structure is non-aligned, the alignment 13453macros 13454are now used to extract the address to a local variable before use. 13455 13456Fixed a problem where the ToInteger operator assumed all input strings 13457were 13458hexadecimal. The operator now handles both decimal strings and hex 13459strings 13460(prefixed with "0x"). 13461 13462Fixed a problem where the string length in the string object created as a 13463result of the internal ConvertToString procedure could be incorrect. This 13464potentially affected all implicit conversions and also the 13465ToDecimalString 13466and ToHexString operators. 13467 13468Fixed two problems in the ToString operator. If the length parameter was 13469zero, an incorrect string object was created and the value of the input 13470length parameter was inadvertently changed from zero to Ones. 13471 13472Fixed a problem where the optional ResourceSource string in the 13473ExtendedIRQ 13474resource macro was ignored. 13475 13476Simplified the interfaces to the internal division functions, reducing 13477code 13478size and complexity. 13479 13480Code and Data Size: Current and previous core subsystem library sizes are 13481shown below. These are the code and data sizes for the acpica.lib 13482produced 13483by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13484any ACPI driver or OSPM code. The debug version of the code includes the 13485debug output trace mechanism and has a much larger code and data size. 13486Note 13487that these values will vary depending on the efficiency of the compiler 13488and 13489the compiler options used during generation. 13490 13491 Previous Release: 13492 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 13493 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 13494 Current Release: 13495 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 13496 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 13497 13498 134992) iASL Compiler/Disassembler: 13500 13501Implemented support for the ACPI 3.0 Timer operator. 13502 13503Fixed a problem where the Default() operator was inadvertently ignored in 13504a 13505Switch/Case block. This was a problem in the translation of the Switch 13506statement to If...Else pairs. 13507 13508Added support to allow a standalone Return operator, with no parentheses 13509(or 13510operands). 13511 13512Fixed a problem with code generation for the ElseIf operator where the 13513translated Else...If parse tree was improperly constructed leading to the 13514loss of some code. 13515 13516---------------------------------------- 1351722 September 2004. Summary of changes for version 20040922: 13518 135191) ACPI CA Core Subsystem: 13520 13521Fixed a problem with the implementation of the LNot() operator where 13522"Ones" 13523was not returned for the TRUE case. Changed the code to return Ones 13524instead 13525of (!Arg) which was usually 1. This change affects iASL constant folding 13526for 13527this operator also. 13528 13529Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was 13530not 13531initialized properly -- Now zero the entire buffer in this case where the 13532buffer already exists. 13533 13534Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 13535Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 13536related code considerably. This will require changes/updates to all OS 13537interface layers (OSLs.) 13538 13539Implemented a new external interface, AcpiInstallExceptionHandler, to 13540allow 13541a system exception handler to be installed. This handler is invoked upon 13542any 13543run-time exception that occurs during control method execution. 13544 13545Added support for the DSDT in AcpiTbFindTable. This allows the 13546DataTableRegion() operator to access the local copy of the DSDT. 13547 13548Code and Data Size: Current and previous core subsystem library sizes are 13549shown below. These are the code and data sizes for the acpica.lib 13550produced 13551by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13552any ACPI driver or OSPM code. The debug version of the code includes the 13553debug output trace mechanism and has a much larger code and data size. 13554Note 13555that these values will vary depending on the efficiency of the compiler 13556and 13557the compiler options used during generation. 13558 13559 Previous Release: 13560 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 13561 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 13562 Current Release: 13563 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 13564 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 13565 13566 135672) iASL Compiler/Disassembler: 13568 13569Fixed a problem with constant folding and the LNot operator. LNot was 13570returning 1 in the TRUE case, not Ones as per the ACPI specification. 13571This 13572could result in the generation of an incorrect folded/reduced constant. 13573 13574End-Of-File is now allowed within a "//"-style comment. A parse error no 13575longer occurs if such a comment is at the very end of the input ASL 13576source 13577file. 13578 13579Implemented the "-r" option to override the Revision in the table header. 13580The initial use of this option will be to simplify the evaluation of the 13581AML 13582interpreter by allowing a single ASL source module to be compiled for 13583either 1358432-bit or 64-bit integers. 13585 13586 13587---------------------------------------- 1358827 August 2004. Summary of changes for version 20040827: 13589 135901) ACPI CA Core Subsystem: 13591 13592- Implemented support for implicit object conversion in the non-numeric 13593logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, 13594and 13595LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 13596the second operand is implicitly converted on the fly to match the type 13597of 13598the first operand. For example: 13599 13600 LEqual (Source1, Source2) 13601 13602Source1 and Source2 must each evaluate to an integer, a string, or a 13603buffer. 13604The data type of Source1 dictates the required type of Source2. Source2 13605is 13606implicitly converted if necessary to match the type of Source1. 13607 13608- Updated and corrected the behavior of the string conversion support. 13609The 13610rules concerning conversion of buffers to strings (according to the ACPI 13611specification) are as follows: 13612 13613ToDecimalString - explicit byte-wise conversion of buffer to string of 13614decimal values (0-255) separated by commas. ToHexString - explicit byte- 13615wise 13616conversion of buffer to string of hex values (0-FF) separated by commas. 13617ToString - explicit byte-wise conversion of buffer to string. Byte-by- 13618byte 13619copy with no transform except NULL terminated. Any other implicit buffer- 13620to- 13621string conversion - byte-wise conversion of buffer to string of hex 13622values 13623(0-FF) separated by spaces. 13624 13625- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 13626 13627- Fixed a problem in AcpiNsGetPathnameLength where the returned length 13628was 13629one byte too short in the case of a node in the root scope. This could 13630cause a fault during debug output. 13631 13632- Code and Data Size: Current and previous core subsystem library sizes 13633are 13634shown below. These are the code and data sizes for the acpica.lib 13635produced 13636by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13637any ACPI driver or OSPM code. The debug version of the code includes the 13638debug output trace mechanism and has a much larger code and data size. 13639Note 13640that these values will vary depending on the efficiency of the compiler 13641and 13642the compiler options used during generation. 13643 13644 Previous Release: 13645 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 13646 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 13647 Current Release: 13648 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 13649 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 13650 13651 136522) iASL Compiler/Disassembler: 13653 13654- Fixed a Linux generation error. 13655 13656 13657---------------------------------------- 1365816 August 2004. Summary of changes for version 20040816: 13659 136601) ACPI CA Core Subsystem: 13661 13662Designed and implemented support within the AML interpreter for the so- 13663called "implicit return". This support returns the result of the last 13664ASL 13665operation within a control method, in the absence of an explicit Return() 13666operator. A few machines depend on this behavior, even though it is not 13667explicitly supported by the ASL language. It is optional support that 13668can 13669be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 13670 13671Removed support for the PCI_Config address space from the internal low 13672level 13673hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 13674support was not used internally, and would not work correctly anyway 13675because 13676the PCI bus number and segment number were not supported. There are 13677separate interfaces for PCI configuration space access because of the 13678unique 13679interface. 13680 13681Code and Data Size: Current and previous core subsystem library sizes are 13682shown below. These are the code and data sizes for the acpica.lib 13683produced 13684by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13685any ACPI driver or OSPM code. The debug version of the code includes the 13686debug output trace mechanism and has a much larger code and data size. 13687Note 13688that these values will vary depending on the efficiency of the compiler 13689and 13690the compiler options used during generation. 13691 13692 Previous Release: 13693 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 13694 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 13695 Current Release: 13696 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 13697 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 13698 13699 137002) iASL Compiler/Disassembler: 13701 13702Fixed a problem where constants in ASL expressions at the root level (not 13703within a control method) could be inadvertently truncated during code 13704generation. This problem was introduced in the 20040715 release. 13705 13706 13707---------------------------------------- 1370815 July 2004. Summary of changes for version 20040715: 13709 137101) ACPI CA Core Subsystem: 13711 13712Restructured the internal HW GPE interfaces to pass/track the current 13713state 13714of interrupts (enabled/disabled) in order to avoid possible deadlock and 13715increase flexibility of the interfaces. 13716 13717Implemented a "lexicographical compare" for String and Buffer objects 13718within 13719the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual - 13720- 13721as per further clarification to the ACPI specification. Behavior is 13722similar 13723to C library "strcmp". 13724 13725Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 13726external function. In the 32-bit non-debug case, the stack use has been 13727reduced from 168 bytes to 32 bytes. 13728 13729Deployed a new run-time configuration flag, 13730AcpiGbl_EnableInterpreterSlack, 13731whose purpose is to allow the AML interpreter to forgive certain bad AML 13732constructs. Default setting is FALSE. 13733 13734Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 13735IO 13736support code. If enabled, it allows field access to go beyond the end of 13737a 13738region definition if the field is within the region length rounded up to 13739the 13740next access width boundary (a common coding error.) 13741 13742Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 13743ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 13744these 13745symbols are lowercase by the latest version of the AcpiSrc tool. 13746 13747The prototypes for the PCI interfaces in acpiosxf.h have been updated to 13748rename "Register" to simply "Reg" to prevent certain compilers from 13749complaining. 13750 13751Code and Data Size: Current and previous core subsystem library sizes are 13752shown below. These are the code and data sizes for the acpica.lib 13753produced 13754by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13755any ACPI driver or OSPM code. The debug version of the code includes the 13756debug output trace mechanism and has a much larger code and data size. 13757Note 13758that these values will vary depending on the efficiency of the compiler 13759and 13760the compiler options used during generation. 13761 13762 Previous Release: 13763 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 13764 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 13765 Current Release: 13766 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 13767 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 13768 13769 137702) iASL Compiler/Disassembler: 13771 13772Implemented full support for Package objects within the Case() operator. 13773Note: The Break() operator is currently not supported within Case blocks 13774(TermLists) as there is some question about backward compatibility with 13775ACPI 137761.0 interpreters. 13777 13778 13779Fixed a problem where complex terms were not supported properly within 13780the 13781Switch() operator. 13782 13783Eliminated extraneous warning for compiler-emitted reserved names of the 13784form "_T_x". (Used in Switch/Case operators.) 13785 13786Eliminated optimization messages for "_T_x" objects and small constants 13787within the DefinitionBlock operator. 13788 13789 13790---------------------------------------- 1379115 June 2004. Summary of changes for version 20040615: 13792 137931) ACPI CA Core Subsystem: 13794 13795Implemented support for Buffer and String objects (as per ACPI 2.0) for 13796the 13797following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 13798LLessEqual. 13799 13800All directory names in the entire source package are lower case, as they 13801were in earlier releases. 13802 13803Implemented "Disassemble" command in the AML debugger that will 13804disassemble 13805a single control method. 13806 13807Code and Data Size: Current and previous core subsystem library sizes are 13808shown below. These are the code and data sizes for the acpica.lib 13809produced 13810by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13811any ACPI driver or OSPM code. The debug version of the code includes the 13812debug output trace mechanism and has a much larger code and data size. 13813Note 13814that these values will vary depending on the efficiency of the compiler 13815and 13816the compiler options used during generation. 13817 13818 Previous Release: 13819 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 13820 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 13821 13822 Current Release: 13823 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 13824 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 13825 13826 138272) iASL Compiler/Disassembler: 13828 13829Implemented support for Buffer and String objects (as per ACPI 2.0) for 13830the 13831following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 13832LLessEqual. 13833 13834All directory names in the entire source package are lower case, as they 13835were in earlier releases. 13836 13837Fixed a fault when using the -g or -d<nofilename> options if the FADT was 13838not found. 13839 13840Fixed an issue with the Windows version of the compiler where later 13841versions 13842of Windows place the FADT in the registry under the name "FADT" and not 13843"FACP" as earlier versions did. This applies when using the -g or - 13844d<nofilename> options. The compiler now looks for both strings as 13845necessary. 13846 13847Fixed a problem with compiler namepath optimization where a namepath 13848within 13849the Scope() operator could not be optimized if the namepath was a subpath 13850of 13851the current scope path. 13852 13853---------------------------------------- 1385427 May 2004. Summary of changes for version 20040527: 13855 138561) ACPI CA Core Subsystem: 13857 13858Completed a new design and implementation for EBDA (Extended BIOS Data 13859Area) 13860support in the RSDP scan code. The original code improperly scanned for 13861the 13862EBDA by simply scanning from memory location 0 to 0x400. The correct 13863method 13864is to first obtain the EBDA pointer from within the BIOS data area, then 13865scan 1K of memory starting at the EBDA pointer. There appear to be few 13866if 13867any machines that place the RSDP in the EBDA, however. 13868 13869Integrated a fix for a possible fault during evaluation of BufferField 13870arguments. Obsolete code that was causing the problem was removed. 13871 13872Found and fixed a problem in the Field Support Code where data could be 13873corrupted on a bit field read that starts on an aligned boundary but does 13874not end on an aligned boundary. Merged the read/write "datum length" 13875calculation code into a common procedure. 13876 13877Rolled in a couple of changes to the FreeBSD-specific header. 13878 13879 13880Code and Data Size: Current and previous core subsystem library sizes are 13881shown below. These are the code and data sizes for the acpica.lib 13882produced 13883by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13884any ACPI driver or OSPM code. The debug version of the code includes the 13885debug output trace mechanism and has a much larger code and data size. 13886Note 13887that these values will vary depending on the efficiency of the compiler 13888and 13889the compiler options used during generation. 13890 13891 Previous Release: 13892 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 13893 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 13894 Current Release: 13895 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 13896 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 13897 13898 138992) iASL Compiler/Disassembler: 13900 13901Fixed a generation warning produced by some overly-verbose compilers for 13902a 1390364-bit constant. 13904 13905---------------------------------------- 1390614 May 2004. Summary of changes for version 20040514: 13907 139081) ACPI CA Core Subsystem: 13909 13910Fixed a problem where hardware GPE enable bits sometimes not set properly 13911during and after GPE method execution. Result of 04/27 changes. 13912 13913Removed extra "clear all GPEs" when sleeping/waking. 13914 13915Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 13916AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 13917to 13918the new AcpiEv* calls as appropriate. 13919 13920ACPI_OS_NAME was removed from the OS-specific headers. The default name 13921is 13922now "Microsoft Windows NT" for maximum compatibility. However this can 13923be 13924changed by modifying the acconfig.h file. 13925 13926Allow a single invocation of AcpiInstallNotifyHandler for a handler that 13927traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 13928 13929Run _INI methods on ThermalZone objects. This is against the ACPI 13930specification, but there is apparently ASL code in the field that has 13931these 13932_INI methods, and apparently "other" AML interpreters execute them. 13933 13934Performed a full 16/32/64 bit lint that resulted in some small changes. 13935 13936Added a sleep simulation command to the AML debugger to test sleep code. 13937 13938Code and Data Size: Current and previous core subsystem library sizes are 13939shown below. These are the code and data sizes for the acpica.lib 13940produced 13941by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13942any ACPI driver or OSPM code. The debug version of the code includes the 13943debug output trace mechanism and has a much larger code and data size. 13944Note 13945that these values will vary depending on the efficiency of the compiler 13946and 13947the compiler options used during generation. 13948 13949 Previous Release: 13950 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 13951 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 13952 Current Release: 13953 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 13954 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 13955 13956---------------------------------------- 1395727 April 2004. Summary of changes for version 20040427: 13958 139591) ACPI CA Core Subsystem: 13960 13961Completed a major overhaul of the GPE handling within ACPI CA. There are 13962now three types of GPEs: wake-only, runtime-only, and combination 13963wake/run. 13964The only GPEs allowed to be combination wake/run are for button-style 13965devices such as a control-method power button, control-method sleep 13966button, 13967or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 13968not 13969referenced by any _PRW methods are marked for "runtime" and hardware 13970enabled. Any GPE that is referenced by a _PRW method is marked for 13971"wake" 13972(and disabled at runtime). However, at sleep time, only those GPEs that 13973have been specifically enabled for wake via the AcpiEnableGpe interface 13974will 13975actually be hardware enabled. 13976 13977A new external interface has been added, AcpiSetGpeType(), that is meant 13978to 13979be used by device drivers to force a GPE to a particular type. It will 13980be 13981especially useful for the drivers for the button devices mentioned above. 13982 13983Completed restructuring of the ACPI CA initialization sequence so that 13984default operation region handlers are installed before GPEs are 13985initialized 13986and the _PRW methods are executed. This will prevent errors when the 13987_PRW 13988methods attempt to access system memory or I/O space. 13989 13990GPE enable/disable no longer reads the GPE enable register. We now keep 13991the 13992enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 13993thus no longer depend on the hardware to maintain these bits. 13994 13995Always clear the wake status and fixed/GPE status bits before sleep, even 13996for state S5. 13997 13998Improved the AML debugger output for displaying the GPE blocks and their 13999current status. 14000 14001Added new strings for the _OSI method, of the form "Windows 2001 SPx" 14002where 14003x = 0,1,2,3,4. 14004 14005Fixed a problem where the physical address was incorrectly calculated 14006when 14007the Load() operator was used to directly load from an Operation Region 14008(vs. 14009loading from a Field object.) Also added check for minimum table length 14010for 14011this case. 14012 14013Fix for multiple mutex acquisition. Restore original thread SyncLevel on 14014mutex release. 14015 14016Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 14017consistency with the other fields returned. 14018 14019Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 14020structure for each GPE in the system, so the size of this structure is 14021important. 14022 14023CPU stack requirement reduction: Cleaned up the method execution and 14024object 14025evaluation paths so that now a parameter structure is passed, instead of 14026copying the various method parameters over and over again. 14027 14028In evregion.c: Correctly exit and reenter the interpreter region if and 14029only if dispatching an operation region request to a user-installed 14030handler. 14031Do not exit/reenter when dispatching to a default handler (e.g., default 14032system memory or I/O handlers) 14033 14034 14035Notes for updating drivers for the new GPE support. The following 14036changes 14037must be made to ACPI-related device drivers that are attached to one or 14038more 14039GPEs: (This information will be added to the ACPI CA Programmer 14040Reference.) 14041 140421) AcpiInstallGpeHandler no longer automatically enables the GPE, you 14043must 14044explicitly call AcpiEnableGpe. 140452) There is a new interface called AcpiSetGpeType. This should be called 14046before enabling the GPE. Also, this interface will automatically disable 14047the GPE if it is currently enabled. 140483) AcpiEnableGpe no longer supports a GPE type flag. 14049 14050Specific drivers that must be changed: 140511) EC driver: 14052 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 14053AeGpeHandler, NULL); 14054 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 14055 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 14056 140572) Button Drivers (Power, Lid, Sleep): 14058Run _PRW method under parent device 14059If _PRW exists: /* This is a control-method button */ 14060 Extract GPE number and possibly GpeDevice 14061 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 14062 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 14063 14064For all other devices that have _PRWs, we automatically set the GPE type 14065to 14066ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. 14067This 14068must be done on a selective basis, usually requiring some kind of user 14069app 14070to allow the user to pick the wake devices. 14071 14072 14073Code and Data Size: Current and previous core subsystem library sizes are 14074shown below. These are the code and data sizes for the acpica.lib 14075produced 14076by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14077any ACPI driver or OSPM code. The debug version of the code includes the 14078debug output trace mechanism and has a much larger code and data size. 14079Note 14080that these values will vary depending on the efficiency of the compiler 14081and 14082the compiler options used during generation. 14083 14084 Previous Release: 14085 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 14086 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 14087 Current Release: 14088 14089 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 14090 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 14091 14092 14093 14094---------------------------------------- 1409502 April 2004. Summary of changes for version 20040402: 14096 140971) ACPI CA Core Subsystem: 14098 14099Fixed an interpreter problem where an indirect store through an ArgX 14100parameter was incorrectly applying the "implicit conversion rules" during 14101the store. From the ACPI specification: "If the target is a method local 14102or 14103argument (LocalX or ArgX), no conversion is performed and the result is 14104stored directly to the target". The new behavior is to disable implicit 14105conversion during ALL stores to an ArgX. 14106 14107Changed the behavior of the _PRW method scan to ignore any and all errors 14108returned by a given _PRW. This prevents the scan from aborting from the 14109failure of any single _PRW. 14110 14111Moved the runtime configuration parameters from the global init procedure 14112to 14113static variables in acglobal.h. This will allow the host to override the 14114default values easily. 14115 14116Code and Data Size: Current and previous core subsystem library sizes are 14117shown below. These are the code and data sizes for the acpica.lib 14118produced 14119by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14120any ACPI driver or OSPM code. The debug version of the code includes the 14121debug output trace mechanism and has a much larger code and data size. 14122Note 14123that these values will vary depending on the efficiency of the compiler 14124and 14125the compiler options used during generation. 14126 14127 Previous Release: 14128 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 14129 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 14130 Current Release: 14131 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 14132 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 14133 14134 141352) iASL Compiler/Disassembler: 14136 14137iASL now fully disassembles SSDTs. However, External() statements are 14138not 14139generated automatically for unresolved symbols at this time. This is a 14140planned feature for future implementation. 14141 14142Fixed a scoping problem in the disassembler that occurs when the type of 14143the 14144target of a Scope() operator is overridden. This problem caused an 14145incorrectly nested internal namespace to be constructed. 14146 14147Any warnings or errors that are emitted during disassembly are now 14148commented 14149out automatically so that the resulting file can be recompiled without 14150any 14151hand editing. 14152 14153---------------------------------------- 1415426 March 2004. Summary of changes for version 20040326: 14155 141561) ACPI CA Core Subsystem: 14157 14158Implemented support for "wake" GPEs via interaction between GPEs and the 14159_PRW methods. Every GPE that is pointed to by one or more _PRWs is 14160identified as a WAKE GPE and by default will no longer be enabled at 14161runtime. Previously, we were blindly enabling all GPEs with a 14162corresponding 14163_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 14164We 14165believe this has been the cause of thousands of "spurious" GPEs on some 14166systems. 14167 14168This new GPE behavior is can be reverted to the original behavior (enable 14169ALL GPEs at runtime) via a runtime flag. 14170 14171Fixed a problem where aliased control methods could not access objects 14172properly. The proper scope within the namespace was not initialized 14173(transferred to the target of the aliased method) before executing the 14174target method. 14175 14176Fixed a potential race condition on internal object deletion on the 14177return 14178object in AcpiEvaluateObject. 14179 14180Integrated a fix for resource descriptors where both _MEM and _MTP were 14181being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 14182wide, 0x0F instead of 0x03.) 14183 14184Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, 14185preventing 14186a 14187fault in some cases. 14188 14189Updated Notify() values for debug statements in evmisc.c 14190 14191Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 14192 14193Code and Data Size: Current and previous core subsystem library sizes are 14194shown below. These are the code and data sizes for the acpica.lib 14195produced 14196by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14197any ACPI driver or OSPM code. The debug version of the code includes the 14198debug output trace mechanism and has a much larger code and data size. 14199Note 14200that these values will vary depending on the efficiency of the compiler 14201and 14202the compiler options used during generation. 14203 14204 Previous Release: 14205 14206 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 14207 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 14208 Current Release: 14209 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 14210 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 14211 14212---------------------------------------- 1421311 March 2004. Summary of changes for version 20040311: 14214 142151) ACPI CA Core Subsystem: 14216 14217Fixed a problem where errors occurring during the parse phase of control 14218method execution did not abort cleanly. For example, objects created and 14219installed in the namespace were not deleted. This caused all subsequent 14220invocations of the method to return the AE_ALREADY_EXISTS exception. 14221 14222Implemented a mechanism to force a control method to "Serialized" 14223execution 14224if the method attempts to create namespace objects. (The root of the 14225AE_ALREADY_EXISTS problem.) 14226 14227Implemented support for the predefined _OSI "internal" control method. 14228Initial supported strings are "Linux", "Windows 2000", "Windows 2001", 14229and 14230"Windows 2001.1", and can be easily upgraded for new strings as 14231necessary. 14232This feature will allow "other" operating systems to execute the fully 14233tested, "Windows" code path through the ASL code 14234 14235Global Lock Support: Now allows multiple acquires and releases with any 14236internal thread. Removed concept of "owning thread" for this special 14237mutex. 14238 14239Fixed two functions that were inappropriately declaring large objects on 14240the 14241CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 14242during 14243method execution considerably. 14244 14245Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 14246S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 14247 14248Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 14249defined on the machine. 14250 14251Implemented two runtime options: One to force all control method 14252execution 14253to "Serialized" to mimic Windows behavior, another to disable _OSI 14254support 14255if it causes problems on a given machine. 14256 14257Code and Data Size: Current and previous core subsystem library sizes are 14258shown below. These are the code and data sizes for the acpica.lib 14259produced 14260by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14261any ACPI driver or OSPM code. The debug version of the code includes the 14262debug output trace mechanism and has a much larger code and data size. 14263Note 14264that these values will vary depending on the efficiency of the compiler 14265and 14266the compiler options used during generation. 14267 14268 Previous Release: 14269 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 14270 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 14271 Current Release: 14272 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 14273 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 14274 142752) iASL Compiler/Disassembler: 14276 14277Fixed an array size problem for FreeBSD that would cause the compiler to 14278fault. 14279 14280---------------------------------------- 1428120 February 2004. Summary of changes for version 20040220: 14282 14283 142841) ACPI CA Core Subsystem: 14285 14286Implemented execution of _SxD methods for Device objects in the 14287GetObjectInfo interface. 14288 14289Fixed calls to _SST method to pass the correct arguments. 14290 14291Added a call to _SST on wake to restore to "working" state. 14292 14293Check for End-Of-Buffer failure case in the WalkResources interface. 14294 14295Integrated fix for 64-bit alignment issue in acglobal.h by moving two 14296structures to the beginning of the file. 14297 14298After wake, clear GPE status register(s) before enabling GPEs. 14299 14300After wake, clear/enable power button. (Perhaps we should clear/enable 14301all 14302fixed events upon wake.) 14303 14304Fixed a couple of possible memory leaks in the Namespace manager. 14305 14306Integrated latest acnetbsd.h file. 14307 14308---------------------------------------- 1430911 February 2004. Summary of changes for version 20040211: 14310 14311 143121) ACPI CA Core Subsystem: 14313 14314Completed investigation and implementation of the call-by-reference 14315mechanism for control method arguments. 14316 14317Fixed a problem where a store of an object into an indexed package could 14318fail if the store occurs within a different method than the method that 14319created the package. 14320 14321Fixed a problem where the ToDecimal operator could return incorrect 14322results. 14323 14324Fixed a problem where the CopyObject operator could fail on some of the 14325more 14326obscure objects (e.g., Reference objects.) 14327 14328Improved the output of the Debug object to display buffer, package, and 14329index objects. 14330 14331Fixed a problem where constructs of the form "RefOf (ArgX)" did not 14332return 14333the expected result. 14334 14335Added permanent ACPI_REPORT_ERROR macros for all instances of the 14336ACPI_AML_INTERNAL exception. 14337 14338Integrated latest version of acfreebsd.h 14339 14340---------------------------------------- 1434116 January 2004. Summary of changes for version 20040116: 14342 14343The purpose of this release is primarily to update the copyright years in 14344each module, thus causing a huge number of diffs. There are a few small 14345functional changes, however. 14346 143471) ACPI CA Core Subsystem: 14348 14349Improved error messages when there is a problem finding one or more of 14350the 14351required base ACPI tables 14352 14353Reintroduced the definition of APIC_HEADER in actbl.h 14354 14355Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 14356 14357Removed extraneous reference to NewObj in dsmthdat.c 14358 143592) iASL compiler 14360 14361Fixed a problem introduced in December that disabled the correct 14362disassembly 14363of Resource Templates 14364 14365 14366---------------------------------------- 1436703 December 2003. Summary of changes for version 20031203: 14368 143691) ACPI CA Core Subsystem: 14370 14371Changed the initialization of Operation Regions during subsystem 14372init to perform two entire walks of the ACPI namespace; The first 14373to initialize the regions themselves, the second to execute the 14374_REG methods. This fixed some interdependencies across _REG 14375methods found on some machines. 14376 14377Fixed a problem where a Store(Local0, Local1) could simply update 14378the object reference count, and not create a new copy of the 14379object if the Local1 is uninitialized. 14380 14381Implemented support for the _SST reserved method during sleep 14382transitions. 14383 14384Implemented support to clear the SLP_TYP and SLP_EN bits when 14385waking up, this is apparently required by some machines. 14386 14387When sleeping, clear the wake status only if SleepState is not S5. 14388 14389Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 14390pointer arithmetic advanced a string pointer too far. 14391 14392Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 14393could be returned if the requested table has not been loaded. 14394 14395Within the support for IRQ resources, restructured the handling of 14396the active and edge/level bits. 14397 14398Fixed a few problems in AcpiPsxExecute() where memory could be 14399leaked under certain error conditions. 14400 14401Improved error messages for the cases where the ACPI mode could 14402not be entered. 14403 14404Code and Data Size: Current and previous core subsystem library 14405sizes are shown below. These are the code and data sizes for the 14406acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 14407these values do not include any ACPI driver or OSPM code. The 14408debug version of the code includes the debug output trace 14409mechanism and has a much larger code and data size. Note that 14410these values will vary depending on the efficiency of the compiler 14411and the compiler options used during generation. 14412 14413 Previous Release (20031029): 14414 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 14415 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 14416 Current Release: 14417 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 14418 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 14419 144202) iASL Compiler/Disassembler: 14421 14422Implemented a fix for the iASL disassembler where a bad index was 14423generated. This was most noticeable on 64-bit platforms 14424 14425 14426---------------------------------------- 1442729 October 2003. Summary of changes for version 20031029: 14428 144291) ACPI CA Core Subsystem: 14430 14431 14432Fixed a problem where a level-triggered GPE with an associated 14433_Lxx control method was incorrectly cleared twice. 14434 14435Fixed a problem with the Field support code where an access can 14436occur beyond the end-of-region if the field is non-aligned but 14437extends to the very end of the parent region (resulted in an 14438AE_AML_REGION_LIMIT exception.) 14439 14440Fixed a problem with ACPI Fixed Events where an RT Clock handler 14441would not get invoked on an RTC event. The RTC event bitmasks for 14442the PM1 registers were not being initialized properly. 14443 14444Implemented support for executing _STA and _INI methods for 14445Processor objects. Although this is currently not part of the 14446ACPI specification, there is existing ASL code that depends on the 14447init-time execution of these methods. 14448 14449Implemented and deployed a GetDescriptorName function to decode 14450the various types of internal descriptors. Guards against null 14451descriptors during debug output also. 14452 14453Implemented and deployed a GetNodeName function to extract the 4- 14454character namespace node name. This function simplifies the debug 14455and error output, as well as guarding against null pointers during 14456output. 14457 14458Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 14459simplify the debug and error output of 64-bit integers. This 14460macro replaces the HIDWORD and LODWORD macros for dumping these 14461integers. 14462 14463Updated the implementation of the Stall() operator to only call 14464AcpiOsStall(), and also return an error if the operand is larger 14465than 255. This preserves the required behavior of not 14466relinquishing the processor, as would happen if AcpiOsSleep() was 14467called for "long stalls". 14468 14469Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 14470initialized are now treated as NOOPs. 14471 14472Cleaned up a handful of warnings during 64-bit generation. 14473 14474Fixed a reported error where and incorrect GPE number was passed 14475to the GPE dispatch handler. This value is only used for error 14476output, however. Used this opportunity to clean up and streamline 14477the GPE dispatch code. 14478 14479Code and Data Size: Current and previous core subsystem library 14480sizes are shown below. These are the code and data sizes for the 14481acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 14482these values do not include any ACPI driver or OSPM code. The 14483 14484debug version of the code includes the debug output trace 14485mechanism and has a much larger code and data size. Note that 14486these values will vary depending on the efficiency of the compiler 14487and the compiler options used during generation. 14488 14489 Previous Release (20031002): 14490 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 14491 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 14492 Current Release: 14493 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 14494 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 14495 14496 144972) iASL Compiler/Disassembler: 14498 14499Updated the iASL compiler to return an error if the operand to the 14500Stall() operator is larger than 255. 14501 14502 14503---------------------------------------- 1450402 October 2003. Summary of changes for version 20031002: 14505 14506 145071) ACPI CA Core Subsystem: 14508 14509Fixed a problem with Index Fields where the index was not 14510incremented for fields that require multiple writes to the 14511index/data registers (Fields that are wider than the data 14512register.) 14513 14514Fixed a problem with all Field objects where a write could go 14515beyond the end-of-field if the field was larger than the access 14516granularity and therefore required multiple writes to complete the 14517request. An extra write beyond the end of the field could happen 14518inadvertently. 14519 14520Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 14521would incorrectly be returned if the width of the Data Register 14522was larger than the specified field access width. 14523 14524Completed fixes for LoadTable() and Unload() and verified their 14525operation. Implemented full support for the "DdbHandle" object 14526throughout the ACPI CA subsystem. 14527 14528Implemented full support for the MADT and ECDT tables in the ACPI 14529CA header files. Even though these tables are not directly 14530consumed by ACPI CA, the header definitions are useful for ACPI 14531device drivers. 14532 14533Integrated resource descriptor fixes posted to the Linux ACPI 14534list. This included checks for minimum descriptor length, and 14535support for trailing NULL strings within descriptors that have 14536optional string elements. 14537 14538Code and Data Size: Current and previous core subsystem library 14539sizes are shown below. These are the code and data sizes for the 14540acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 14541these values do not include any ACPI driver or OSPM code. The 14542debug version of the code includes the debug output trace 14543mechanism and has a much larger code and data size. Note that 14544these values will vary depending on the efficiency of the compiler 14545and the compiler options used during generation. 14546 14547 Previous Release (20030918): 14548 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 14549 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 14550 Current Release: 14551 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 14552 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 14553 14554 145552) iASL Compiler: 14556 14557Implemented detection of non-ASCII characters within the input 14558source ASL file. This catches attempts to compile binary (AML) 14559files early in the compile, with an informative error message. 14560 14561Fixed a problem where the disassembler would fault if the output 14562filename could not be generated or if the output file could not be 14563opened. 14564 14565---------------------------------------- 1456618 September 2003. Summary of changes for version 20030918: 14567 14568 145691) ACPI CA Core Subsystem: 14570 14571Found and fixed a longstanding problem with the late execution of 14572the various deferred AML opcodes (such as Operation Regions, 14573Buffer Fields, Buffers, and Packages). If the name string 14574specified for the name of the new object placed the object in a 14575scope other than the current scope, the initialization/execution 14576of the opcode failed. The solution to this problem was to 14577implement a mechanism where the late execution of such opcodes 14578does not attempt to lookup/create the name a second time in an 14579incorrect scope. This fixes the "region size computed 14580incorrectly" problem. 14581 14582Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 14583Global Lock AE_BAD_PARAMETER error. 14584 14585Fixed several 64-bit issues with prototypes, casting and data 14586types. 14587 14588Removed duplicate prototype from acdisasm.h 14589 14590Fixed an issue involving EC Operation Region Detach (Shaohua Li) 14591 14592Code and Data Size: Current and previous core subsystem library 14593sizes are shown below. These are the code and data sizes for the 14594acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 14595these values do not include any ACPI driver or OSPM code. The 14596debug version of the code includes the debug output trace 14597mechanism and has a much larger code and data size. Note that 14598these values will vary depending on the efficiency of the compiler 14599and the compiler options used during generation. 14600 14601 Previous Release: 14602 14603 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 14604 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 14605 Current Release: 14606 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 14607 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 14608 14609 146102) Linux: 14611 14612Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 14613correct sleep time in seconds. 14614 14615---------------------------------------- 1461614 July 2003. Summary of changes for version 20030619: 14617 146181) ACPI CA Core Subsystem: 14619 14620Parse SSDTs in order discovered, as opposed to reverse order 14621(Hrvoje Habjanic) 14622 14623Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 14624Klausner, 14625 Nate Lawson) 14626 14627 146282) Linux: 14629 14630Dynamically allocate SDT list (suggested by Andi Kleen) 14631 14632proc function return value cleanups (Andi Kleen) 14633 14634Correctly handle NMI watchdog during long stalls (Andrew Morton) 14635 14636Make it so acpismp=force works (reported by Andrew Morton) 14637 14638 14639---------------------------------------- 1464019 June 2003. Summary of changes for version 20030619: 14641 146421) ACPI CA Core Subsystem: 14643 14644Fix To/FromBCD, eliminating the need for an arch-specific #define. 14645 14646Do not acquire a semaphore in the S5 shutdown path. 14647 14648Fix ex_digits_needed for 0. (Takayoshi Kochi) 14649 14650Fix sleep/stall code reversal. (Andi Kleen) 14651 14652Revert a change having to do with control method calling 14653semantics. 14654 146552) Linux: 14656 14657acpiphp update (Takayoshi Kochi) 14658 14659Export acpi_disabled for sonypi (Stelian Pop) 14660 14661Mention acpismp=force in config help 14662 14663Re-add acpitable.c and acpismp=force. This improves backwards 14664 14665compatibility and also cleans up the code to a significant degree. 14666 14667Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 14668 14669---------------------------------------- 1467022 May 2003. Summary of changes for version 20030522: 14671 146721) ACPI CA Core Subsystem: 14673 14674Found and fixed a reported problem where an AE_NOT_FOUND error 14675occurred occasionally during _BST evaluation. This turned out to 14676be an Owner ID allocation issue where a called method did not get 14677a new ID assigned to it. Eventually, (after 64k calls), the Owner 14678ID UINT16 would wraparound so that the ID would be the same as the 14679caller's and the called method would delete the caller's 14680namespace. 14681 14682Implemented extended error reporting for control methods that are 14683aborted due to a run-time exception. Output includes the exact 14684AML instruction that caused the method abort, a dump of the method 14685locals and arguments at the time of the abort, and a trace of all 14686nested control method calls. 14687 14688Modified the interpreter to allow the creation of buffers of zero 14689length from the AML code. Implemented new code to ensure that no 14690attempt is made to actually allocate a memory buffer (of length 14691zero) - instead, a simple buffer object with a NULL buffer pointer 14692and length zero is created. A warning is no longer issued when 14693the AML attempts to create a zero-length buffer. 14694 14695Implemented a workaround for the "leading asterisk issue" in 14696_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 14697asterisk is automatically removed if present in any HID, UID, or 14698CID strings. The iASL compiler will still flag this asterisk as 14699an error, however. 14700 14701Implemented full support for _CID methods that return a package of 14702multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 14703now additionally returns a device _CID list if present. This 14704required a change to the external interface in order to pass an 14705ACPI_BUFFER object as a parameter since the _CID list is of 14706variable length. 14707 14708Fixed a problem with the new AE_SAME_HANDLER exception where 14709handler initialization code did not know about this exception. 14710 14711Code and Data Size: Current and previous core subsystem library 14712sizes are shown below. These are the code and data sizes for the 14713acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 14714these values do not include any ACPI driver or OSPM code. The 14715debug version of the code includes the debug output trace 14716mechanism and has a much larger code and data size. Note that 14717these values will vary depending on the efficiency of the compiler 14718and the compiler options used during generation. 14719 14720 Previous Release (20030509): 14721 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 14722 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 14723 Current Release: 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 14727 147282) Linux: 14729 14730Fixed a bug in which we would reinitialize the ACPI interrupt 14731after it was already working, thus disabling all ACPI and the IRQs 14732for any other device sharing the interrupt. (Thanks to Stian 14733Jordet) 14734 14735Toshiba driver update (John Belmonte) 14736 14737Return only 0 or 1 for our interrupt handler status (Andrew 14738Morton) 14739 14740 147413) iASL Compiler: 14742 14743Fixed a reported problem where multiple (nested) ElseIf() 14744statements were not handled correctly by the compiler, resulting 14745in incorrect warnings and incorrect AML code. This was a problem 14746in both the ASL parser and the code generator. 14747 14748 147494) Documentation: 14750 14751Added changes to existing interfaces, new exception codes, and new 14752text concerning reference count object management versus garbage 14753collection. 14754 14755---------------------------------------- 1475609 May 2003. Summary of changes for version 20030509. 14757 14758 147591) ACPI CA Core Subsystem: 14760 14761Changed the subsystem initialization sequence to hold off 14762installation of address space handlers until the hardware has been 14763initialized and the system has entered ACPI mode. This is because 14764the installation of space handlers can cause _REG methods to be 14765run. Previously, the _REG methods could potentially be run before 14766ACPI mode was enabled. 14767 14768Fixed some memory leak issues related to address space handler and 14769notify handler installation. There were some problems with the 14770reference count mechanism caused by the fact that the handler 14771objects are shared across several namespace objects. 14772 14773Fixed a reported problem where reference counts within the 14774namespace were not properly updated when named objects created by 14775method execution were deleted. 14776 14777Fixed a reported problem where multiple SSDTs caused a deletion 14778issue during subsystem termination. Restructured the table data 14779structures to simplify the linked lists and the related code. 14780 14781Fixed a problem where the table ID associated with secondary 14782tables (SSDTs) was not being propagated into the namespace objects 14783created by those tables. This would only present a problem for 14784tables that are unloaded at run-time, however. 14785 14786Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 14787type as the length parameter (instead of UINT32). 14788 14789Solved a long-standing problem where an ALREADY_EXISTS error 14790appears on various systems. This problem could happen when there 14791are multiple PCI_Config operation regions under a single PCI root 14792bus. This doesn't happen very frequently, but there are some 14793systems that do this in the ASL. 14794 14795Fixed a reported problem where the internal DeleteNode function 14796was incorrectly handling the case where a namespace node was the 14797first in the parent's child list, and had additional peers (not 14798the only child, but first in the list of children.) 14799 14800Code and Data Size: Current core subsystem library sizes are shown 14801below. These are the code and data sizes for the acpica.lib 14802produced by the Microsoft Visual C++ 6.0 compiler, and these 14803values do not include any ACPI driver or OSPM code. The debug 14804version of the code includes the debug output trace mechanism and 14805has a much larger code and data size. Note that these values will 14806vary depending on the efficiency of the compiler and the compiler 14807options used during generation. 14808 14809 Previous Release 14810 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 14811 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 14812 Current Release: 14813 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 14814 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 14815 14816 148172) Linux: 14818 14819Allow ":" in OS override string (Ducrot Bruno) 14820 14821Kobject fix (Greg KH) 14822 14823 148243 iASL Compiler/Disassembler: 14825 14826Fixed a problem in the generation of the C source code files (AML 14827is emitted in C source statements for BIOS inclusion) where the 14828Ascii dump that appears within a C comment at the end of each line 14829could cause a compile time error if the AML sequence happens to 14830have an open comment or close comment sequence embedded. 14831 14832 14833---------------------------------------- 1483424 April 2003. Summary of changes for version 20030424. 14835 14836 148371) ACPI CA Core Subsystem: 14838 14839Support for big-endian systems has been implemented. Most of the 14840support has been invisibly added behind big-endian versions of the 14841ACPI_MOVE_* macros. 14842 14843Fixed a problem in AcpiHwDisableGpeBlock() and 14844AcpiHwClearGpeBlock() where an incorrect offset was passed to the 14845low level hardware write routine. The offset parameter was 14846actually eliminated from the low level read/write routines because 14847they had become obsolete. 14848 14849Fixed a problem where a handler object was deleted twice during 14850the removal of a fixed event handler. 14851 14852 148532) Linux: 14854 14855A fix for SMP systems with link devices was contributed by 14856 14857Compaq's Dan Zink. 14858 14859(2.5) Return whether we handled the interrupt in our IRQ handler. 14860(Linux ISRs no longer return void, so we can propagate the handler 14861return value from the ACPI CA core back to the OS.) 14862 14863 14864 148653) Documentation: 14866 14867The ACPI CA Programmer Reference has been updated to reflect new 14868interfaces and changes to existing interfaces. 14869 14870---------------------------------------- 1487128 March 2003. Summary of changes for version 20030328. 14872 148731) ACPI CA Core Subsystem: 14874 14875The GPE Block Device support has been completed. New interfaces 14876are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 14877interfaces (enable, disable, clear, getstatus) have been split 14878into separate interfaces for Fixed Events and General Purpose 14879Events (GPEs) in order to support GPE Block Devices properly. 14880 14881Fixed a problem where the error message "Failed to acquire 14882semaphore" would appear during operations on the embedded 14883controller (EC). 14884 14885Code and Data Size: Current core subsystem library sizes are shown 14886below. These are the code and data sizes for the acpica.lib 14887produced by the Microsoft Visual C++ 6.0 compiler, and these 14888values do not include any ACPI driver or OSPM code. The debug 14889version of the code includes the debug output trace mechanism and 14890has a much larger code and data size. Note that these values will 14891vary depending on the efficiency of the compiler and the compiler 14892options used during generation. 14893 14894 Previous Release 14895 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 14896 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 14897 Current Release: 14898 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 14899 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 14900 14901 14902---------------------------------------- 1490328 February 2003. Summary of changes for version 20030228. 14904 14905 149061) ACPI CA Core Subsystem: 14907 14908The GPE handling and dispatch code has been completely overhauled 14909in preparation for support of GPE Block Devices (ID ACPI0006). 14910This affects internal data structures and code only; there should 14911be no differences visible externally. One new file has been 14912added, evgpeblk.c 14913 14914The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 14915fields that are used to determine the GPE block lengths. The 14916REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 14917structures are ignored. This is per the ACPI specification but it 14918isn't very clear. The full 256 Block 0/1 GPEs are now supported 14919(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 14920 14921In the SCI interrupt handler, removed the read of the PM1_CONTROL 14922register to look at the SCI_EN bit. On some machines, this read 14923causes an SMI event and greatly slows down SCI events. (This may 14924in fact be the cause of slow battery status response on some 14925systems.) 14926 14927Fixed a problem where a store of a NULL string to a package object 14928could cause the premature deletion of the object. This was seen 14929during execution of the battery _BIF method on some systems, 14930resulting in no battery data being returned. 14931 14932Added AcpiWalkResources interface to simplify parsing of resource 14933lists. 14934 14935Code and Data Size: Current core subsystem library sizes are shown 14936below. These are the code and data sizes for the acpica.lib 14937produced by the Microsoft Visual C++ 6.0 compiler, and these 14938values do not include any ACPI driver or OSPM code. The debug 14939version of the code includes the debug output trace mechanism and 14940has a much larger code and data size. Note that these values will 14941vary depending on the efficiency of the compiler and the compiler 14942options used during generation. 14943 14944 Previous Release 14945 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 14946 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 14947 Current Release: 14948 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 14949 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 14950 14951 149522) Linux 14953 14954S3 fixes (Ole Rohne) 14955 14956Update ACPI PHP driver with to use new acpi_walk_resource API 14957(Bjorn Helgaas) 14958 14959Add S4BIOS support (Pavel Machek) 14960 14961Map in entire table before performing checksum (John Stultz) 14962 14963Expand the mem= cmdline to allow the specification of reserved and 14964ACPI DATA blocks (Pavel Machek) 14965 14966Never use ACPI on VISWS 14967 14968Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 14969 14970Revert a change that allowed P_BLK lengths to be 4 or 5. This is 14971causing us to think that some systems support C2 when they really 14972don't. 14973 14974Do not count processor objects for non-present CPUs (Thanks to 14975Dominik Brodowski) 14976 14977 149783) iASL Compiler: 14979 14980Fixed a problem where ASL include files could not be found and 14981opened. 14982 14983Added support for the _PDC reserved name. 14984 14985 14986---------------------------------------- 1498722 January 2003. Summary of changes for version 20030122. 14988 14989 149901) ACPI CA Core Subsystem: 14991 14992Added a check for constructs of the form: Store (Local0, Local0) 14993where Local0 is not initialized. Apparently, some BIOS 14994programmers believe that this is a NOOP. Since this store doesn't 14995do anything anyway, the new prototype behavior will ignore this 14996error. This is a case where we can relax the strict checking in 14997the interpreter in the name of compatibility. 14998 14999 150002) Linux 15001 15002The AcpiSrc Source Conversion Utility has been released with the 15003Linux package for the first time. This is the utility that is 15004used to convert the ACPI CA base source code to the Linux version. 15005 15006(Both) Handle P_BLK lengths shorter than 6 more gracefully 15007 15008(Both) Move more headers to include/acpi, and delete an unused 15009header. 15010 15011(Both) Move drivers/acpi/include directory to include/acpi 15012 15013(Both) Boot functions don't use cmdline, so don't pass it around 15014 15015(Both) Remove include of unused header (Adrian Bunk) 15016 15017(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 15018the 15019former now also includes the latter, acpiphp.h only needs the one, 15020now. 15021 15022(2.5) Make it possible to select method of bios restoring after S3 15023resume. [=> no more ugly ifdefs] (Pavel Machek) 15024 15025(2.5) Make proc write interfaces work (Pavel Machek) 15026 15027(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 15028 15029(2.5) Break out ACPI Perf code into its own module, under cpufreq 15030(Dominik Brodowski) 15031 15032(2.4) S4BIOS support (Ducrot Bruno) 15033 15034(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 15035Visinoni) 15036 15037 150383) iASL Compiler: 15039 15040Added support to disassemble SSDT and PSDTs. 15041 15042Implemented support to obtain SSDTs from the Windows registry if 15043available. 15044 15045 15046---------------------------------------- 1504709 January 2003. Summary of changes for version 20030109. 15048 150491) ACPI CA Core Subsystem: 15050 15051Changed the behavior of the internal Buffer-to-String conversion 15052function. The current ACPI specification states that the contents 15053of the buffer are "converted to a string of two-character 15054hexadecimal numbers, each separated by a space". Unfortunately, 15055this definition is not backwards compatible with existing ACPI 1.0 15056implementations (although the behavior was not defined in the ACPI 150571.0 specification). The new behavior simply copies data from the 15058buffer to the string until a null character is found or the end of 15059the buffer is reached. The new String object is always null 15060terminated. This problem was seen during the generation of _BIF 15061battery data where incorrect strings were returned for battery 15062type, etc. This will also require an errata to the ACPI 15063specification. 15064 15065Renamed all instances of NATIVE_UINT and NATIVE_INT to 15066ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 15067 15068Copyright in all module headers (both Linux and non-Linux) has be 15069updated to 2003. 15070 15071Code and Data Size: Current core subsystem library sizes are shown 15072below. These are the code and data sizes for the acpica.lib 15073produced by the Microsoft Visual C++ 6.0 compiler, and these 15074values do not include any ACPI driver or OSPM code. The debug 15075version of the code includes the debug output trace mechanism and 15076has a much larger code and data size. Note that these values will 15077vary depending on the efficiency of the compiler and the compiler 15078options used during generation. 15079 15080 Previous Release 15081 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 15082 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 15083 Current Release: 15084 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 15085 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 15086 15087 150882) Linux 15089 15090Fixed an oops on module insertion/removal (Matthew Tippett) 15091 15092(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 15093 15094(2.5) Replace pr_debug (Randy Dunlap) 15095 15096(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 15097 15098(Both) Eliminate spawning of thread from timer callback, in favor 15099of schedule_work() 15100 15101(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 15102 15103(Both) Added define for Fixed Function HW region (Matthew Wilcox) 15104 15105(Both) Add missing statics to button.c (Pavel Machek) 15106 15107Several changes have been made to the source code translation 15108utility that generates the Linux Code in order to make the code 15109more "Linux-like": 15110 15111All typedefs on structs and unions have been removed in keeping 15112with the Linux coding style. 15113 15114Removed the non-Linux SourceSafe module revision number from each 15115module header. 15116 15117Completed major overhaul of symbols to be lowercase for linux. 15118Doubled the number of symbols that are lowercase. 15119 15120Fixed a problem where identifiers within procedure headers and 15121within quotes were not fully lower cased (they were left with a 15122starting capital.) 15123 15124Some C macros whose only purpose is to allow the generation of 16- 15125bit code are now completely removed in the Linux code, increasing 15126readability and maintainability. 15127 15128---------------------------------------- 15129 1513012 December 2002. Summary of changes for version 20021212. 15131 15132 151331) ACPI CA Core Subsystem: 15134 15135Fixed a problem where the creation of a zero-length AML Buffer 15136would cause a fault. 15137 15138Fixed a problem where a Buffer object that pointed to a static AML 15139buffer (in an ACPI table) could inadvertently be deleted, causing 15140memory corruption. 15141 15142Fixed a problem where a user buffer (passed in to the external 15143ACPI CA interfaces) could be overwritten if the buffer was too 15144small to complete the operation, causing memory corruption. 15145 15146Fixed a problem in the Buffer-to-String conversion code where a 15147string of length one was always returned, regardless of the size 15148of the input Buffer object. 15149 15150Removed the NATIVE_CHAR data type across the entire source due to 15151lack of need and lack of consistent use. 15152 15153Code and Data Size: Current core subsystem library sizes are shown 15154below. These are the code and data sizes for the acpica.lib 15155produced by the Microsoft Visual C++ 6.0 compiler, and these 15156values do not include any ACPI driver or OSPM code. The debug 15157version of the code includes the debug output trace mechanism and 15158has a much larger code and data size. Note that these values will 15159vary depending on the efficiency of the compiler and the compiler 15160options used during generation. 15161 15162 Previous Release 15163 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 15164 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 15165 Current Release: 15166 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 15167 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 15168 15169 15170---------------------------------------- 1517105 December 2002. Summary of changes for version 20021205. 15172 151731) ACPI CA Core Subsystem: 15174 15175Fixed a problem where a store to a String or Buffer object could 15176cause corruption of the DSDT if the object type being stored was 15177the same as the target object type and the length of the object 15178being stored was equal to or smaller than the original (existing) 15179target object. This was seen to cause corruption of battery _BIF 15180buffers if the _BIF method modified the buffer on the fly. 15181 15182Fixed a problem where an internal error was generated if a control 15183method invocation was used in an OperationRegion, Buffer, or 15184Package declaration. This was caused by the deferred parsing of 15185the control method and thus the deferred creation of the internal 15186method object. The solution to this problem was to create the 15187internal method object at the moment the method is encountered in 15188the first pass - so that subsequent references to the method will 15189able to obtain the required parameter count and thus properly 15190parse the method invocation. This problem presented itself as an 15191AE_AML_INTERNAL during the pass 1 parse phase during table load. 15192 15193Fixed a problem where the internal String object copy routine did 15194not always allocate sufficient memory for the target String object 15195and caused memory corruption. This problem was seen to cause 15196"Allocation already present in list!" errors as memory allocation 15197became corrupted. 15198 15199Implemented a new function for the evaluation of namespace objects 15200that allows the specification of the allowable return object 15201types. This simplifies a lot of code that checks for a return 15202object of one or more specific objects returned from the 15203evaluation (such as _STA, etc.) This may become and external 15204function if it would be useful to ACPI-related drivers. 15205 15206Completed another round of prefixing #defines with "ACPI_" for 15207clarity. 15208 15209Completed additional code restructuring to allow more modular 15210linking for iASL compiler and AcpiExec. Several files were split 15211creating new files. New files: nsparse.c dsinit.c evgpe.c 15212 15213Implemented an abort mechanism to terminate an executing control 15214method via the AML debugger. This feature is useful for debugging 15215control methods that depend (wait) for specific hardware 15216responses. 15217 15218Code and Data Size: Current core subsystem library sizes are shown 15219below. These are the code and data sizes for the acpica.lib 15220produced by the Microsoft Visual C++ 6.0 compiler, and these 15221values do not include any ACPI driver or OSPM code. The debug 15222version of the code includes the debug output trace mechanism and 15223has a much larger code and data size. Note that these values will 15224vary depending on the efficiency of the compiler and the compiler 15225options used during generation. 15226 15227 Previous Release 15228 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 15229 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 15230 Current Release: 15231 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 15232 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 15233 15234 152352) iASL Compiler/Disassembler 15236 15237Fixed a compiler code generation problem for "Interrupt" Resource 15238Descriptors. If specified in the ASL, the optional "Resource 15239Source Index" and "Resource Source" fields were not inserted into 15240the correct location within the AML resource descriptor, creating 15241an invalid descriptor. 15242 15243Fixed a disassembler problem for "Interrupt" resource descriptors. 15244The optional "Resource Source Index" and "Resource Source" fields 15245were ignored. 15246 15247 15248---------------------------------------- 1524922 November 2002. Summary of changes for version 20021122. 15250 15251 152521) ACPI CA Core Subsystem: 15253 15254Fixed a reported problem where an object stored to a Method Local 15255or Arg was not copied to a new object during the store - the 15256object pointer was simply copied to the Local/Arg. This caused 15257all subsequent operations on the Local/Arg to also affect the 15258original source of the store operation. 15259 15260Fixed a problem where a store operation to a Method Local or Arg 15261was not completed properly if the Local/Arg contained a reference 15262(from RefOf) to a named field. The general-purpose store-to- 15263namespace-node code is now used so that this case is handled 15264automatically. 15265 15266Fixed a problem where the internal object copy routine would cause 15267a protection fault if the object being copied was a Package and 15268contained either 1) a NULL package element or 2) a nested sub- 15269package. 15270 15271Fixed a problem with the GPE initialization that resulted from an 15272ambiguity in the ACPI specification. One section of the 15273specification states that both the address and length of the GPE 15274block must be zero if the block is not supported. Another section 15275implies that only the address need be zero if the block is not 15276supported. The code has been changed so that both the address and 15277the length must be non-zero to indicate a valid GPE block (i.e., 15278if either the address or the length is zero, the GPE block is 15279invalid.) 15280 15281Code and Data Size: Current core subsystem library sizes are shown 15282below. These are the code and data sizes for the acpica.lib 15283produced by the Microsoft Visual C++ 6.0 compiler, and these 15284values do not include any ACPI driver or OSPM code. The debug 15285version of the code includes the debug output trace mechanism and 15286has a much larger code and data size. Note that these values will 15287vary depending on the efficiency of the compiler and the compiler 15288options used during generation. 15289 15290 Previous Release 15291 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 15292 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 15293 Current Release: 15294 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 15295 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 15296 15297 152982) Linux 15299 15300Cleaned up EC driver. Exported an external EC read/write 15301interface. By going through this, other drivers (most notably 15302sonypi) will be able to serialize access to the EC. 15303 15304 153053) iASL Compiler/Disassembler 15306 15307Implemented support to optionally generate include files for both 15308ASM and C (the -i switch). This simplifies BIOS development by 15309automatically creating include files that contain external 15310declarations for the symbols that are created within the 15311 15312(optionally generated) ASM and C AML source files. 15313 15314 15315---------------------------------------- 1531615 November 2002. Summary of changes for version 20021115. 15317 153181) ACPI CA Core Subsystem: 15319 15320Fixed a memory leak problem where an error during resolution of 15321 15322method arguments during a method invocation from another method 15323failed to cleanup properly by deleting all successfully resolved 15324argument objects. 15325 15326Fixed a problem where the target of the Index() operator was not 15327correctly constructed if the source object was a package. This 15328problem has not been detected because the use of a target operand 15329with Index() is very rare. 15330 15331Fixed a problem with the Index() operator where an attempt was 15332made to delete the operand objects twice. 15333 15334Fixed a problem where an attempt was made to delete an operand 15335twice during execution of the CondRefOf() operator if the target 15336did not exist. 15337 15338Implemented the first of perhaps several internal create object 15339functions that create and initialize a specific object type. This 15340consolidates duplicated code wherever the object is created, thus 15341shrinking the size of the subsystem. 15342 15343Implemented improved debug/error messages for errors that occur 15344during nested method invocations. All executing method pathnames 15345are displayed (with the error) as the call stack is unwound - thus 15346simplifying debug. 15347 15348Fixed a problem introduced in the 10/02 release that caused 15349premature deletion of a buffer object if a buffer was used as an 15350ASL operand where an integer operand is required (Thus causing an 15351implicit object conversion from Buffer to Integer.) The change in 15352the 10/02 release was attempting to fix a memory leak (albeit 15353incorrectly.) 15354 15355Code and Data Size: Current core subsystem library sizes are shown 15356below. These are the code and data sizes for the acpica.lib 15357produced by the Microsoft Visual C++ 6.0 compiler, and these 15358values do not include any ACPI driver or OSPM code. The debug 15359version of the code includes the debug output trace mechanism and 15360has a much larger code and data size. Note that these values will 15361vary depending on the efficiency of the compiler and the compiler 15362options used during generation. 15363 15364 Previous Release 15365 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 15366 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 15367 Current Release: 15368 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 15369 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 15370 15371 153722) Linux 15373 15374Changed the implementation of the ACPI semaphores to use down() 15375instead of down_interruptable(). It is important that the 15376execution of ACPI control methods not be interrupted by signals. 15377Methods must run to completion, or the system may be left in an 15378unknown/unstable state. 15379 15380Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 15381(Shawn Starr) 15382 15383 153843) iASL Compiler/Disassembler 15385 15386 15387Changed the default location of output files. All output files 15388are now placed in the current directory by default instead of in 15389the directory of the source file. This change may affect some 15390existing makefiles, but it brings the behavior of the compiler in 15391line with other similar tools. The location of the output files 15392can be overridden with the -p command line switch. 15393 15394 15395---------------------------------------- 1539611 November 2002. Summary of changes for version 20021111. 15397 15398 153990) ACPI Specification 2.0B is released and is now available at: 15400http://www.acpi.info/index.html 15401 15402 154031) ACPI CA Core Subsystem: 15404 15405Implemented support for the ACPI 2.0 SMBus Operation Regions. 15406This includes the early detection and handoff of the request to 15407the SMBus region handler (avoiding all of the complex field 15408support code), and support for the bidirectional return packet 15409from an SMBus write operation. This paves the way for the 15410development of SMBus drivers in each host operating system. 15411 15412Fixed a problem where the semaphore WAIT_FOREVER constant was 15413defined as 32 bits, but must be 16 bits according to the ACPI 15414specification. This had the side effect of causing ASL 15415Mutex/Event timeouts even though the ASL code requested a wait 15416forever. Changed all internal references to the ACPI timeout 15417parameter to 16 bits to prevent future problems. Changed the name 15418of WAIT_FOREVER to ACPI_WAIT_FOREVER. 15419 15420Code and Data Size: Current core subsystem library sizes are shown 15421below. These are the code and data sizes for the acpica.lib 15422produced by the Microsoft Visual C++ 6.0 compiler, and these 15423values do not include any ACPI driver or OSPM code. The debug 15424version of the code includes the debug output trace mechanism and 15425has a much larger code and data size. Note that these values will 15426vary depending on the efficiency of the compiler and the compiler 15427options used during generation. 15428 15429 Previous Release 15430 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 15431 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 15432 Current Release: 15433 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 15434 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 15435 15436 154372) Linux 15438 15439Module loading/unloading fixes (John Cagle) 15440 15441 154423) iASL Compiler/Disassembler 15443 15444Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 15445 15446Implemented support for the disassembly of all SMBus protocol 15447keywords (SMBQuick, SMBWord, etc.) 15448 15449---------------------------------------- 1545001 November 2002. Summary of changes for version 20021101. 15451 15452 154531) ACPI CA Core Subsystem: 15454 15455Fixed a problem where platforms that have a GPE1 block but no GPE0 15456block were not handled correctly. This resulted in a "GPE 15457overlap" error message. GPE0 is no longer required. 15458 15459Removed code added in the previous release that inserted nodes 15460into the namespace in alphabetical order. This caused some side- 15461effects on various machines. The root cause of the problem is 15462still under investigation since in theory, the internal ordering 15463of the namespace nodes should not matter. 15464 15465 15466Enhanced error reporting for the case where a named object is not 15467found during control method execution. The full ACPI namepath 15468(name reference) of the object that was not found is displayed in 15469this case. 15470 15471Note: as a result of the overhaul of the namespace object types in 15472the previous release, the namespace nodes for the predefined 15473scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 15474instead of ACPI_TYPE_ANY. This simplifies the namespace 15475management code but may affect code that walks the namespace tree 15476looking for specific object types. 15477 15478Code and Data Size: Current core subsystem library sizes are shown 15479below. These are the code and data sizes for the acpica.lib 15480produced by the Microsoft Visual C++ 6.0 compiler, and these 15481values do not include any ACPI driver or OSPM code. The debug 15482version of the code includes the debug output trace mechanism and 15483has a much larger code and data size. Note that these values will 15484vary depending on the efficiency of the compiler and the compiler 15485options used during generation. 15486 15487 Previous Release 15488 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 15489 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 15490 Current Release: 15491 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 15492 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 15493 15494 154952) Linux 15496 15497Fixed a problem introduced in the previous release where the 15498Processor and Thermal objects were not recognized and installed in 15499/proc. This was related to the scope type change described above. 15500 15501 155023) iASL Compiler/Disassembler 15503 15504Implemented the -g option to get all of the required ACPI tables 15505from the registry and save them to files (Windows version of the 15506compiler only.) The required tables are the FADT, FACS, and DSDT. 15507 15508Added ACPI table checksum validation during table disassembly in 15509order to catch corrupted tables. 15510 15511 15512---------------------------------------- 1551322 October 2002. Summary of changes for version 20021022. 15514 155151) ACPI CA Core Subsystem: 15516 15517Implemented a restriction on the Scope operator that the target 15518must already exist in the namespace at the time the operator is 15519encountered (during table load or method execution). In other 15520words, forward references are not allowed and Scope() cannot 15521create a new object. This changes the previous behavior where the 15522interpreter would create the name if not found. This new behavior 15523correctly enables the search-to-root algorithm during namespace 15524lookup of the target name. Because of this upsearch, this fixes 15525the known Compaq _SB_.OKEC problem and makes both the AML 15526interpreter and iASL compiler compatible with other ACPI 15527implementations. 15528 15529Completed a major overhaul of the internal ACPI object types for 15530the ACPI Namespace and the associated operand objects. Many of 15531these types had become obsolete with the introduction of the two- 15532pass namespace load. This cleanup simplifies the code and makes 15533the entire namespace load mechanism much clearer and easier to 15534understand. 15535 15536Improved debug output for tracking scope opening/closing to help 15537diagnose scoping issues. The old scope name as well as the new 15538scope name are displayed. Also improved error messages for 15539problems with ASL Mutex objects and error messages for GPE 15540problems. 15541 15542Cleaned up the namespace dump code, removed obsolete code. 15543 15544All string output (for all namespace/object dumps) now uses the 15545common ACPI string output procedure which handles escapes properly 15546and does not emit non-printable characters. 15547 15548Fixed some issues with constants in the 64-bit version of the 15549local C library (utclib.c) 15550 15551 155522) Linux 15553 15554EC Driver: No longer attempts to acquire the Global Lock at 15555interrupt level. 15556 15557 155583) iASL Compiler/Disassembler 15559 15560Implemented ACPI 2.0B grammar change that disallows all Type 1 and 155612 opcodes outside of a control method. This means that the 15562"executable" operators (versus the "namespace" operators) cannot 15563be used at the table level; they can only be used within a control 15564method. 15565 15566Implemented the restriction on the Scope() operator where the 15567target must already exist in the namespace at the time the 15568operator is encountered (during ASL compilation). In other words, 15569forward references are not allowed and Scope() cannot create a new 15570object. This makes the iASL compiler compatible with other ACPI 15571implementations and makes the Scope() implementation adhere to the 15572ACPI specification. 15573 15574Fixed a problem where namepath optimization for the Alias operator 15575was optimizing the wrong path (of the two namepaths.) This caused 15576a "Missing alias link" error message. 15577 15578Fixed a problem where an "unknown reserved name" warning could be 15579incorrectly generated for names like "_SB" when the trailing 15580underscore is not used in the original ASL. 15581 15582Fixed a problem where the reserved name check did not handle 15583NamePaths with multiple NameSegs correctly. The first nameseg of 15584the NamePath was examined instead of the last NameSeg. 15585 15586 15587---------------------------------------- 15588 1558902 October 2002. Summary of changes for this release. 15590 15591 155921) ACPI CA Core Subsystem version 20021002: 15593 15594Fixed a problem where a store/copy of a string to an existing 15595string did not always set the string length properly in the String 15596object. 15597 15598Fixed a reported problem with the ToString operator where the 15599behavior was identical to the ToHexString operator instead of just 15600simply converting a raw buffer to a string data type. 15601 15602Fixed a problem where CopyObject and the other "explicit" 15603conversion operators were not updating the internal namespace node 15604type as part of the store operation. 15605 15606Fixed a memory leak during implicit source operand conversion 15607where the original object was not deleted if it was converted to a 15608new object of a different type. 15609 15610Enhanced error messages for all problems associated with namespace 15611lookups. Common procedure generates and prints the lookup name as 15612well as the formatted status. 15613 15614Completed implementation of a new design for the Alias support 15615within the namespace. The existing design did not handle the case 15616where a new object was assigned to one of the two names due to the 15617use of an explicit conversion operator, resulting in the two names 15618pointing to two different objects. The new design simply points 15619the Alias name to the original name node - not to the object. 15620This results in a level of indirection that must be handled in the 15621name resolution mechanism. 15622 15623Code and Data Size: Current core subsystem library sizes are shown 15624below. These are the code and data sizes for the acpica.lib 15625produced by the Microsoft Visual C++ 6.0 compiler, and these 15626values do not include any ACPI driver or OSPM code. The debug 15627version of the code includes the debug output trace mechanism and 15628has a larger code and data size. Note that these values will vary 15629depending on the efficiency of the compiler and the compiler 15630options used during generation. 15631 15632 Previous Release 15633 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 15634 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 15635 Current Release: 15636 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 15637 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 15638 15639 156402) Linux 15641 15642Initialize thermal driver's timer before it is used. (Knut 15643Neumann) 15644 15645Allow handling negative celsius values. (Kochi Takayoshi) 15646 15647Fix thermal management and make trip points. R/W (Pavel Machek) 15648 15649Fix /proc/acpi/sleep. (P. Christeas) 15650 15651IA64 fixes. (David Mosberger) 15652 15653Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 15654 15655Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 15656Brodowski) 15657 15658 156593) iASL Compiler/Disassembler 15660 15661Clarified some warning/error messages. 15662 15663 15664---------------------------------------- 1566518 September 2002. Summary of changes for this release. 15666 15667 156681) ACPI CA Core Subsystem version 20020918: 15669 15670Fixed a reported problem with reference chaining (via the Index() 15671and RefOf() operators) in the ObjectType() and SizeOf() operators. 15672The definition of these operators includes the dereferencing of 15673all chained references to return information on the base object. 15674 15675Fixed a problem with stores to indexed package elements - the 15676existing code would not complete the store if an "implicit 15677conversion" was not performed. In other words, if the existing 15678object (package element) was to be replaced completely, the code 15679didn't handle this case. 15680 15681Relaxed typechecking on the ASL "Scope" operator to allow the 15682target name to refer to an object of type Integer, String, or 15683Buffer, in addition to the scoping object types (Device, 15684predefined Scopes, Processor, PowerResource, and ThermalZone.) 15685This allows existing AML code that has workarounds for a bug in 15686Windows to function properly. A warning is issued, however. This 15687affects both the AML interpreter and the iASL compiler. Below is 15688an example of this type of ASL code: 15689 15690 Name(DEB,0x00) 15691 Scope(DEB) 15692 { 15693 15694Fixed some reported problems with 64-bit integer support in the 15695local implementation of C library functions (clib.c) 15696 15697 156982) Linux 15699 15700Use ACPI fix map region instead of IOAPIC region, since it is 15701undefined in non-SMP. 15702 15703Ensure that the SCI has the proper polarity and trigger, even on 15704systems that do not have an interrupt override entry in the MADT. 15705 157062.5 big driver reorganization (Pat Mochel) 15707 15708Use early table mapping code from acpitable.c (Andi Kleen) 15709 15710New blacklist entries (Andi Kleen) 15711 15712Blacklist improvements. Split blacklist code out into a separate 15713file. Move checking the blacklist to very early. Previously, we 15714would use ACPI tables, and then halfway through init, check the 15715blacklist -- too late. Now, it's early enough to completely fall- 15716back to non-ACPI. 15717 15718 157193) iASL Compiler/Disassembler version 20020918: 15720 15721Fixed a problem where the typechecking code didn't know that an 15722alias could point to a method. In other words, aliases were not 15723being dereferenced during typechecking. 15724 15725 15726---------------------------------------- 1572729 August 2002. Summary of changes for this release. 15728 157291) ACPI CA Core Subsystem Version 20020829: 15730 15731If the target of a Scope() operator already exists, it must be an 15732object type that actually opens a scope -- such as a Device, 15733Method, Scope, etc. This is a fatal runtime error. Similar error 15734check has been added to the iASL compiler also. 15735 15736Tightened up the namespace load to disallow multiple names in the 15737same scope. This previously was allowed if both objects were of 15738the same type. (i.e., a lookup was the same as entering a new 15739name). 15740 15741 157422) Linux 15743 15744Ensure that the ACPI interrupt has the proper trigger and 15745polarity. 15746 15747local_irq_disable is extraneous. (Matthew Wilcox) 15748 15749Make "acpi=off" actually do what it says, and not use the ACPI 15750interpreter *or* the tables. 15751 15752Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 15753Takayoshi) 15754 15755 157563) iASL Compiler/Disassembler Version 20020829: 15757 15758Implemented namepath optimization for name declarations. For 15759example, a declaration like "Method (\_SB_.ABCD)" would get 15760optimized to "Method (ABCD)" if the declaration is within the 15761\_SB_ scope. This optimization is in addition to the named 15762reference path optimization first released in the previous 15763version. This would seem to complete all possible optimizations 15764for namepaths within the ASL/AML. 15765 15766If the target of a Scope() operator already exists, it must be an 15767object type that actually opens a scope -- such as a Device, 15768Method, Scope, etc. 15769 15770Implemented a check and warning for unreachable code in the same 15771block below a Return() statement. 15772 15773Fixed a problem where the listing file was not generated if the 15774compiler aborted if the maximum error count was exceeded (200). 15775 15776Fixed a problem where the typechecking of method return values was 15777broken. This includes the check for a return value when the 15778method is invoked as a TermArg (a return value is expected.) 15779 15780Fixed a reported problem where EOF conditions during a quoted 15781string or comment caused a fault. 15782 15783 15784---------------------------------------- 1578515 August 2002. Summary of changes for this release. 15786 157871) ACPI CA Core Subsystem Version 20020815: 15788 15789Fixed a reported problem where a Store to a method argument that 15790contains a reference did not perform the indirect store correctly. 15791This problem was created during the conversion to the new 15792reference object model - the indirect store to a method argument 15793code was not updated to reflect the new model. 15794 15795Reworked the ACPI mode change code to better conform to ACPI 2.0, 15796handle corner cases, and improve code legibility (Kochi Takayoshi) 15797 15798Fixed a problem with the pathname parsing for the carat (^) 15799prefix. The heavy use of the carat operator by the new namepath 15800optimization in the iASL compiler uncovered a problem with the AML 15801interpreter handling of this prefix. In the case where one or 15802more carats precede a single nameseg, the nameseg was treated as 15803standalone and the search rule (to root) was inadvertently 15804applied. This could cause both the iASL compiler and the 15805interpreter to find the wrong object or to miss the error that 15806should occur if the object does not exist at that exact pathname. 15807 15808Found and fixed the problem where the HP Pavilion DSDT would not 15809load. This was a relatively minor tweak to the table loading code 15810(a problem caused by the unexpected encounter with a method 15811invocation not within a control method), but it does not solve the 15812overall issue of the execution of AML code at the table level. 15813This investigation is still ongoing. 15814 15815Code and Data Size: Current core subsystem library sizes are shown 15816below. These are the code and data sizes for the acpica.lib 15817produced by the Microsoft Visual C++ 6.0 compiler, and these 15818values do not include any ACPI driver or OSPM code. The debug 15819version of the code includes the debug output trace mechanism and 15820has a larger code and data size. Note that these values will vary 15821depending on the efficiency of the compiler and the compiler 15822options used during generation. 15823 15824 Previous Release 15825 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 15826 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 15827 Current Release: 15828 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 15829 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 15830 15831 158322) Linux 15833 15834Remove redundant slab.h include (Brad Hards) 15835 15836Fix several bugs in thermal.c (Herbert Nachtnebel) 15837 15838Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 15839 15840Change acpi_system_suspend to use updated irq functions (Pavel 15841Machek) 15842 15843Export acpi_get_firmware_table (Matthew Wilcox) 15844 15845Use proper root proc entry for ACPI (Kochi Takayoshi) 15846 15847Fix early-boot table parsing (Bjorn Helgaas) 15848 15849 158503) iASL Compiler/Disassembler 15851 15852Reworked the compiler options to make them more consistent and to 15853use two-letter options where appropriate. We were running out of 15854sensible letters. This may break some makefiles, so check the 15855current options list by invoking the compiler with no parameters. 15856 15857Completed the design and implementation of the ASL namepath 15858optimization option for the compiler. This option optimizes all 15859references to named objects to the shortest possible path. The 15860first attempt tries to utilize a single nameseg (4 characters) and 15861the "search-to-root" algorithm used by the interpreter. If that 15862cannot be used (because either the name is not in the search path 15863or there is a conflict with another object with the same name), 15864the pathname is optimized using the carat prefix (usually a 15865shorter string than specifying the entire path from the root.) 15866 15867Implemented support to obtain the DSDT from the Windows registry 15868(when the disassembly option is specified with no input file). 15869Added this code as the implementation for AcpiOsTableOverride in 15870the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 15871utility) to scan memory for the DSDT to the AcpiOsTableOverride 15872function in the DOS OSL to make the disassembler truly OS 15873independent. 15874 15875Implemented a new option to disassemble and compile in one step. 15876When used without an input filename, this option will grab the 15877DSDT from the local machine, disassemble it, and compile it in one 15878step. 15879 15880Added a warning message for invalid escapes (a backslash followed 15881by any character other than the allowable escapes). This catches 15882the quoted string error "\_SB_" (which should be "\\_SB_" ). 15883 15884Also, there are numerous instances in the ACPI specification where 15885this error occurs. 15886 15887Added a compiler option to disable all optimizations. This is 15888basically the "compatibility mode" because by using this option, 15889the AML code will come out exactly the same as other ASL 15890compilers. 15891 15892Added error messages for incorrectly ordered dependent resource 15893functions. This includes: missing EndDependentFn macro at end of 15894dependent resource list, nested dependent function macros (both 15895start and end), and missing StartDependentFn macro. These are 15896common errors that should be caught at compile time. 15897 15898Implemented _OSI support for the disassembler and compiler. _OSI 15899must be included in the namespace for proper disassembly (because 15900the disassembler must know the number of arguments.) 15901 15902Added an "optimization" message type that is optional (off by 15903default). This message is used for all optimizations - including 15904constant folding, integer optimization, and namepath optimization. 15905 15906---------------------------------------- 1590725 July 2002. Summary of changes for this release. 15908 15909 159101) ACPI CA Core Subsystem Version 20020725: 15911 15912The AML Disassembler has been enhanced to produce compilable ASL 15913code and has been integrated into the iASL compiler (see below) as 15914well as the single-step disassembly for the AML debugger and the 15915disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 15916resource templates and macros are fully supported. The 15917disassembler has been tested on over 30 different AML files, 15918producing identical AML when the resulting disassembled ASL file 15919is recompiled with the same ASL compiler. 15920 15921Modified the Resource Manager to allow zero interrupts and zero 15922dma channels during the GetCurrentResources call. This was 15923causing problems on some platforms. 15924 15925Added the AcpiOsRedirectOutput interface to the OSL to simplify 15926output redirection for the AcpiOsPrintf and AcpiOsVprintf 15927interfaces. 15928 15929Code and Data Size: Current core subsystem library sizes are shown 15930below. These are the code and data sizes for the acpica.lib 15931produced by the Microsoft Visual C++ 6.0 compiler, and these 15932values do not include any ACPI driver or OSPM code. The debug 15933version of the code includes the debug output trace mechanism and 15934has a larger code and data size. Note that these values will vary 15935depending on the efficiency of the compiler and the compiler 15936options used during generation. 15937 15938 Previous Release 15939 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 15940 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 15941 Current Release: 15942 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 15943 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 15944 15945 159462) Linux 15947 15948Fixed a panic in the EC driver (Dominik Brodowski) 15949 15950Implemented checksum of the R/XSDT itself during Linux table scan 15951(Richard Schaal) 15952 15953 159543) iASL compiler 15955 15956The AML disassembler is integrated into the compiler. The "-d" 15957option invokes the disassembler to completely disassemble an 15958input AML file, producing as output a text ASL file with the 15959extension ".dsl" (to avoid name collisions with existing .asl 15960source files.) A future enhancement will allow the disassembler 15961to obtain the BIOS DSDT from the registry under Windows. 15962 15963Fixed a problem with the VendorShort and VendorLong resource 15964descriptors where an invalid AML sequence was created. 15965 15966Implemented a fix for BufferData term in the ASL parser. It was 15967inadvertently defined twice, allowing invalid syntax to pass and 15968causing reduction conflicts. 15969 15970Fixed a problem where the Ones opcode could get converted to a 15971value of zero if "Ones" was used where a byte, word or dword value 15972was expected. The 64-bit value is now truncated to the correct 15973size with the correct value. 15974 15975 15976 15977---------------------------------------- 1597802 July 2002. Summary of changes for this release. 15979 15980 159811) ACPI CA Core Subsystem Version 20020702: 15982 15983The Table Manager code has been restructured to add several new 15984features. Tables that are not required by the core subsystem 15985(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 15986validated in any way and are returned from AcpiGetFirmwareTable if 15987requested. The AcpiOsTableOverride interface is now called for 15988each table that is loaded by the subsystem in order to allow the 15989host to override any table it chooses. Previously, only the DSDT 15990could be overridden. Added one new files, tbrsdt.c and 15991tbgetall.c. 15992 15993Fixed a problem with the conversion of internal package objects to 15994external objects (when a package is returned from a control 15995method.) The return buffer length was set to zero instead of the 15996proper length of the package object. 15997 15998Fixed a reported problem with the use of the RefOf and DeRefOf 15999operators when passing reference arguments to control methods. A 16000new type of Reference object is used internally for references 16001produced by the RefOf operator. 16002 16003Added additional error messages in the Resource Manager to explain 16004AE_BAD_DATA errors when they occur during resource parsing. 16005 16006Split the AcpiEnableSubsystem into two primitives to enable a 16007finer granularity initialization sequence. These two calls should 16008be called in this order: AcpiEnableSubsystem (flags), 16009AcpiInitializeObjects (flags). The flags parameter remains the 16010same. 16011 16012 160132) Linux 16014 16015Updated the ACPI utilities module to understand the new style of 16016fully resolved package objects that are now returned from the core 16017subsystem. This eliminates errors of the form: 16018 16019 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 16020 acpi_utils-0430 [145] acpi_evaluate_reference: 16021 Invalid element in package (not a device reference) 16022 16023The method evaluation utility uses the new buffer allocation 16024scheme instead of calling AcpiEvaluate Object twice. 16025 16026Added support for ECDT. This allows the use of the Embedded 16027 16028Controller before the namespace has been fully initialized, which 16029is necessary for ACPI 2.0 support, and for some laptops to 16030initialize properly. (Laptops using ECDT are still rare, so only 16031limited testing was performed of the added functionality.) 16032 16033Fixed memory leaks in the EC driver. 16034 16035Eliminated a brittle code structure in acpi_bus_init(). 16036 16037Eliminated the acpi_evaluate() helper function in utils.c. It is 16038no longer needed since acpi_evaluate_object can optionally 16039allocate memory for the return object. 16040 16041Implemented fix for keyboard hang when getting battery readings on 16042some systems (Stephen White) 16043 16044PCI IRQ routing update (Dominik Brodowski) 16045 16046Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 16047support 16048 16049---------------------------------------- 1605011 June 2002. Summary of changes for this release. 16051 16052 160531) ACPI CA Core Subsystem Version 20020611: 16054 16055Fixed a reported problem where constants such as Zero and One 16056appearing within _PRT packages were not handled correctly within 16057the resource manager code. Originally reported against the ASL 16058compiler because the code generator now optimizes integers to 16059their minimal AML representation (i.e. AML constants if possible.) 16060The _PRT code now handles all AML constant opcodes correctly 16061(Zero, One, Ones, Revision). 16062 16063Fixed a problem with the Concatenate operator in the AML 16064interpreter where a buffer result object was incorrectly marked as 16065not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 16066 16067All package sub-objects are now fully resolved before they are 16068returned from the external ACPI interfaces. This means that name 16069strings are resolved to object handles, and constant operators 16070(Zero, One, Ones, Revision) are resolved to Integers. 16071 16072Implemented immediate resolution of the AML Constant opcodes 16073(Zero, One, Ones, Revision) to Integer objects upon detection 16074within the AML stream. This has simplified and reduced the 16075generated code size of the subsystem by eliminating about 10 16076switch statements for these constants (which previously were 16077contained in Reference objects.) The complicating issues are that 16078the Zero opcode is used as a "placeholder" for unspecified 16079optional target operands and stores to constants are defined to be 16080no-ops. 16081 16082Code and Data Size: Current core subsystem library sizes are shown 16083below. These are the code and data sizes for the acpica.lib 16084produced by the Microsoft Visual C++ 6.0 compiler, and these 16085values do not include any ACPI driver or OSPM code. The debug 16086version of the code includes the debug output trace mechanism and 16087has a larger code and data size. Note that these values will vary 16088depending on the efficiency of the compiler and the compiler 16089options used during generation. 16090 16091 Previous Release 16092 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 16093 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 16094 Current Release: 16095 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 16096 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 16097 16098 160992) Linux 16100 16101 16102Added preliminary support for obtaining _TRA data for PCI root 16103bridges (Bjorn Helgaas). 16104 16105 161063) iASL Compiler Version X2046: 16107 16108Fixed a problem where the "_DDN" reserved name was defined to be a 16109control method with one argument. There are no arguments, and 16110_DDN does not have to be a control method. 16111 16112Fixed a problem with the Linux version of the compiler where the 16113source lines printed with error messages were the wrong lines. 16114This turned out to be the "LF versus CR/LF" difference between 16115Windows and Unix. This appears to be the longstanding issue 16116concerning listing output and error messages. 16117 16118Fixed a problem with the Linux version of compiler where opcode 16119names within error messages were wrong. This was caused by a 16120slight difference in the output of the Flex tool on Linux versus 16121Windows. 16122 16123Fixed a problem with the Linux compiler where the hex output files 16124contained some garbage data caused by an internal buffer overrun. 16125 16126 16127---------------------------------------- 1612817 May 2002. Summary of changes for this release. 16129 16130 161311) ACPI CA Core Subsystem Version 20020517: 16132 16133Implemented a workaround to an BIOS bug discovered on the HP 16134OmniBook where the FADT revision number and the table size are 16135inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 16136behavior is to fallback to using only the ACPI 1.0 fields of the 16137FADT if the table is too small to be a ACPI 2.0 table as claimed 16138by the revision number. Although this is a BIOS bug, this is a 16139case where the workaround is simple enough and with no side 16140effects, so it seemed prudent to add it. A warning message is 16141issued, however. 16142 16143Implemented minimum size checks for the fixed-length ACPI tables - 16144- the FADT and FACS, as well as consistency checks between the 16145revision number and the table size. 16146 16147Fixed a reported problem in the table override support where the 16148new table pointer was incorrectly treated as a physical address 16149instead of a logical address. 16150 16151Eliminated the use of the AE_AML_ERROR exception and replaced it 16152with more descriptive codes. 16153 16154Fixed a problem where an exception would occur if an ASL Field was 16155defined with no named Field Units underneath it (used by some 16156index fields). 16157 16158Code and Data Size: Current core subsystem library sizes are shown 16159below. These are the code and data sizes for the acpica.lib 16160produced by the Microsoft Visual C++ 6.0 compiler, and these 16161values do not include any ACPI driver or OSPM code. The debug 16162version of the code includes the debug output trace mechanism and 16163has a larger code and data size. Note that these values will vary 16164depending on the efficiency of the compiler and the compiler 16165options used during generation. 16166 16167 Previous Release 16168 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 16169 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 16170 Current Release: 16171 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 16172 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 16173 16174 16175 161762) Linux 16177 16178Much work done on ACPI init (MADT and PCI IRQ routing support). 16179(Paul D. and Dominik Brodowski) 16180 16181Fix PCI IRQ-related panic on boot (Sam Revitch) 16182 16183Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 16184 16185Fix "MHz" typo (Dominik Brodowski) 16186 16187Fix RTC year 2000 issue (Dominik Brodowski) 16188 16189Preclude multiple button proc entries (Eric Brunet) 16190 16191Moved arch-specific code out of include/platform/aclinux.h 16192 161933) iASL Compiler Version X2044: 16194 16195Implemented error checking for the string used in the EISAID macro 16196(Usually used in the definition of the _HID object.) The code now 16197strictly enforces the PnP format - exactly 7 characters, 3 16198uppercase letters and 4 hex digits. 16199 16200If a raw string is used in the definition of the _HID object 16201(instead of the EISAID macro), the string must contain all 16202alphanumeric characters (e.g., "*PNP0011" is not allowed because 16203of the asterisk.) 16204 16205Implemented checking for invalid use of ACPI reserved names for 16206most of the name creation operators (Name, Device, Event, Mutex, 16207OperationRegion, PowerResource, Processor, and ThermalZone.) 16208Previously, this check was only performed for control methods. 16209 16210Implemented an additional check on the Name operator to emit an 16211error if a reserved name that must be implemented in ASL as a 16212control method is used. We know that a reserved name must be a 16213method if it is defined with input arguments. 16214 16215The warning emitted when a namespace object reference is not found 16216during the cross reference phase has been changed into an error. 16217The "External" directive should be used for names defined in other 16218modules. 16219 16220 162214) Tools and Utilities 16222 16223The 16-bit tools (adump16 and aexec16) have been regenerated and 16224tested. 16225 16226Fixed a problem with the output of both acpidump and adump16 where 16227the indentation of closing parentheses and brackets was not 16228 16229aligned properly with the parent block. 16230 16231 16232---------------------------------------- 1623303 May 2002. Summary of changes for this release. 16234 16235 162361) ACPI CA Core Subsystem Version 20020503: 16237 16238Added support a new OSL interface that allows the host operating 16239 16240system software to override the DSDT found in the firmware - 16241AcpiOsTableOverride. With this interface, the OSL can examine the 16242version of the firmware DSDT and replace it with a different one 16243if desired. 16244 16245Added new external interfaces for accessing ACPI registers from 16246device drivers and other system software - AcpiGetRegister and 16247AcpiSetRegister. This was simply an externalization of the 16248existing AcpiHwBitRegister interfaces. 16249 16250Fixed a regression introduced in the previous build where the 16251ASL/AML CreateField operator always returned an error, 16252"destination must be a NS Node". 16253 16254Extended the maximum time (before failure) to successfully enable 16255ACPI mode to 3 seconds. 16256 16257Code and Data Size: Current core subsystem library sizes are shown 16258below. These are the code and data sizes for the acpica.lib 16259produced by the Microsoft Visual C++ 6.0 compiler, and these 16260values do not include any ACPI driver or OSPM code. The debug 16261version of the code includes the debug output trace mechanism and 16262has a larger code and data size. Note that these values will vary 16263depending on the efficiency of the compiler and the compiler 16264options used during generation. 16265 16266 Previous Release 16267 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 16268 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 16269 Current Release: 16270 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 16271 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 16272 16273 162742) Linux 16275 16276Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 16277free. While 3 out of 4 of our in-house systems work fine, the last 16278one still hangs when testing the LAPIC timer. 16279 16280Renamed many files in 2.5 kernel release to omit "acpi_" from the 16281name. 16282 16283Added warning on boot for Presario 711FR. 16284 16285Sleep improvements (Pavel Machek) 16286 16287ACPI can now be built without CONFIG_PCI enabled. 16288 16289IA64: Fixed memory map functions (JI Lee) 16290 16291 162923) iASL Compiler Version X2043: 16293 16294Added support to allow the compiler to be integrated into the MS 16295VC++ development environment for one-button compilation of single 16296files or entire projects -- with error-to-source-line mapping. 16297 16298Implemented support for compile-time constant folding for the 16299Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 16300specification. This allows the ASL writer to use expressions 16301instead of Integer/Buffer/String constants in terms that must 16302evaluate to constants at compile time and will also simplify the 16303emitted AML in any such sub-expressions that can be folded 16304(evaluated at compile-time.) This increases the size of the 16305compiler significantly because a portion of the ACPI CA AML 16306interpreter is included within the compiler in order to pre- 16307evaluate constant expressions. 16308 16309 16310Fixed a problem with the "Unicode" ASL macro that caused the 16311compiler to fault. (This macro is used in conjunction with the 16312_STR reserved name.) 16313 16314Implemented an AML opcode optimization to use the Zero, One, and 16315Ones opcodes where possible to further reduce the size of integer 16316constants and thus reduce the overall size of the generated AML 16317code. 16318 16319Implemented error checking for new reserved terms for ACPI version 163202.0A. 16321 16322Implemented the -qr option to display the current list of ACPI 16323reserved names known to the compiler. 16324 16325Implemented the -qc option to display the current list of ASL 16326operators that are allowed within constant expressions and can 16327therefore be folded at compile time if the operands are constants. 16328 16329 163304) Documentation 16331 16332Updated the Programmer's Reference for new interfaces, data types, 16333and memory allocation model options. 16334 16335Updated the iASL Compiler User Reference to apply new format and 16336add information about new features and options. 16337 16338---------------------------------------- 1633919 April 2002. Summary of changes for this release. 16340 163411) ACPI CA Core Subsystem Version 20020419: 16342 16343The source code base for the Core Subsystem has been completely 16344cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 16345versions. The Lint option files used are included in the 16346/acpi/generate/lint directory. 16347 16348Implemented enhanced status/error checking across the entire 16349Hardware manager subsystem. Any hardware errors (reported from 16350the OSL) are now bubbled up and will abort a running control 16351method. 16352 16353 16354Fixed a problem where the per-ACPI-table integer width (32 or 64) 16355was stored only with control method nodes, causing a fault when 16356non-control method code was executed during table loading. The 16357solution implemented uses a global variable to indicate table 16358width across the entire ACPI subsystem. Therefore, ACPI CA does 16359not support mixed integer widths across different ACPI tables 16360(DSDT, SSDT). 16361 16362Fixed a problem where NULL extended fields (X fields) in an ACPI 163632.0 ACPI FADT caused the table load to fail. Although the 16364existing ACPI specification is a bit fuzzy on this topic, the new 16365behavior is to fall back on a ACPI 1.0 field if the corresponding 16366ACPI 2.0 X field is zero (even though the table revision indicates 16367a full ACPI 2.0 table.) The ACPI specification will be updated to 16368clarify this issue. 16369 16370Fixed a problem with the SystemMemory operation region handler 16371where memory was always accessed byte-wise even if the AML- 16372specified access width was larger than a byte. This caused 16373problems on systems with memory-mapped I/O. Memory is now 16374accessed with the width specified. On systems that do not support 16375non-aligned transfers, a check is made to guarantee proper address 16376alignment before proceeding in order to avoid an AML-caused 16377alignment fault within the kernel. 16378 16379 16380Fixed a problem with the ExtendedIrq resource where only one byte 16381of the 4-byte Irq field was extracted. 16382 16383Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 16384function was out of date and required a rewrite. 16385 16386Code and Data Size: Current core subsystem library sizes are shown 16387below. These are the code and data sizes for the acpica.lib 16388produced by the Microsoft Visual C++ 6.0 compiler, and these 16389values do not include any ACPI driver or OSPM code. The debug 16390version of the code includes the debug output trace mechanism and 16391has a larger code and data size. Note that these values will vary 16392depending on the efficiency of the compiler and the compiler 16393options used during generation. 16394 16395 Previous Release 16396 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 16397 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 16398 Current Release: 16399 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 16400 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 16401 16402 164032) Linux 16404 16405PCI IRQ routing fixes (Dominik Brodowski) 16406 16407 164083) iASL Compiler Version X2042: 16409 16410Implemented an additional compile-time error check for a field 16411unit whose size + minimum access width would cause a run-time 16412access beyond the end-of-region. Previously, only the field size 16413itself was checked. 16414 16415The Core subsystem and iASL compiler now share a common parse 16416object in preparation for compile-time evaluation of the type 164173/4/5 ASL operators. 16418 16419 16420---------------------------------------- 16421Summary of changes for this release: 03_29_02 16422 164231) ACPI CA Core Subsystem Version 20020329: 16424 16425Implemented support for late evaluation of TermArg operands to 16426Buffer and Package objects. This allows complex expressions to be 16427used in the declarations of these object types. 16428 16429Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 164301.0, if the field was larger than 32 bits, it was returned as a 16431buffer - otherwise it was returned as an integer. In ACPI 2.0, 16432the field is returned as a buffer only if the field is larger than 1643364 bits. The TableRevision is now considered when making this 16434conversion to avoid incompatibility with existing ASL code. 16435 16436Implemented logical addressing for AcpiOsGetRootPointer. This 16437allows an RSDP with either a logical or physical address. With 16438this support, the host OS can now override all ACPI tables with 16439one logical RSDP. Includes implementation of "typed" pointer 16440support to allow a common data type for both physical and logical 16441pointers internally. This required a change to the 16442AcpiOsGetRootPointer interface. 16443 16444Implemented the use of ACPI 2.0 Generic Address Structures for all 16445GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 16446mapped I/O for these ACPI features. 16447 16448Initialization now ignores not only non-required tables (All 16449tables other than the FADT, FACS, DSDT, and SSDTs), but also does 16450not validate the table headers of unrecognized tables. 16451 16452Fixed a problem where a notify handler could only be 16453installed/removed on an object of type Device. All "notify" 16454 16455objects are now supported -- Devices, Processor, Power, and 16456Thermal. 16457 16458Removed most verbosity from the ACPI_DB_INFO debug level. Only 16459critical information is returned when this debug level is enabled. 16460 16461Code and Data Size: Current core subsystem library sizes are shown 16462below. These are the code and data sizes for the acpica.lib 16463produced by the Microsoft Visual C++ 6.0 compiler, and these 16464values do not include any ACPI driver or OSPM code. The debug 16465version of the code includes the debug output trace mechanism and 16466has a larger code and data size. Note that these values will vary 16467depending on the efficiency of the compiler and the compiler 16468options used during generation. 16469 16470 Previous Release 16471 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 16472 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 16473 Current Release: 16474 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 16475 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 16476 16477 164782) Linux: 16479 16480The processor driver (acpi_processor.c) now fully supports ACPI 164812.0-based processor performance control (e.g. Intel(R) 16482SpeedStep(TM) technology) Note that older laptops that only have 16483the Intel "applet" interface are not supported through this. The 16484'limit' and 'performance' interface (/proc) are fully functional. 16485[Note that basic policy for controlling performance state 16486transitions will be included in the next version of ospmd.] The 16487idle handler was modified to more aggressively use C2, and PIIX4 16488errata handling underwent a complete overhaul (big thanks to 16489Dominik Brodowski). 16490 16491Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 16492based devices in the ACPI namespace are now dynamically bound 16493(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 16494This allows, among other things, ACPI to resolve bus numbers for 16495subordinate PCI bridges. 16496 16497Enhanced PCI IRQ routing to get the proper bus number for _PRT 16498entries defined underneath PCI bridges. 16499 16500Added IBM 600E to bad bios list due to invalid _ADR value for 16501PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 16502 16503In the process of adding full MADT support (e.g. IOAPIC) for IA32 16504(acpi.c, mpparse.c) -- stay tuned. 16505 16506Added back visual differentiation between fixed-feature and 16507control-method buttons in dmesg. Buttons are also subtyped (e.g. 16508button/power/PWRF) to simplify button identification. 16509 16510We no longer use -Wno-unused when compiling debug. Please ignore 16511any "_THIS_MODULE defined but not used" messages. 16512 16513Can now shut down the system using "magic sysrq" key. 16514 16515 165163) iASL Compiler version 2041: 16517 16518Fixed a problem where conversion errors for hex/octal/decimal 16519constants were not reported. 16520 16521Implemented a fix for the General Register template Address field. 16522This field was 8 bits when it should be 64. 16523 16524Fixed a problem where errors/warnings were no longer being emitted 16525within the listing output file. 16526 16527Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 16528exactly 4 characters, alphanumeric only. 16529 16530 16531 16532 16533---------------------------------------- 16534Summary of changes for this release: 03_08_02 16535 16536 165371) ACPI CA Core Subsystem Version 20020308: 16538 16539Fixed a problem with AML Fields where the use of the "AccessAny" 16540keyword could cause an interpreter error due to attempting to read 16541or write beyond the end of the parent Operation Region. 16542 16543Fixed a problem in the SystemMemory Operation Region handler where 16544an attempt was made to map memory beyond the end of the region. 16545This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 16546errors on some Linux systems. 16547 16548Fixed a problem where the interpreter/namespace "search to root" 16549algorithm was not functioning for some object types. Relaxed the 16550internal restriction on the search to allow upsearches for all 16551external object types as well as most internal types. 16552 16553 165542) Linux: 16555 16556We now use safe_halt() macro versus individual calls to sti | hlt. 16557 16558Writing to the processor limit interface should now work. "echo 1" 16559will increase the limit, 2 will decrease, and 0 will reset to the 16560 16561default. 16562 16563 165643) ASL compiler: 16565 16566Fixed segfault on Linux version. 16567 16568 16569---------------------------------------- 16570Summary of changes for this release: 02_25_02 16571 165721) ACPI CA Core Subsystem: 16573 16574 16575Fixed a problem where the GPE bit masks were not initialized 16576properly, causing erratic GPE behavior. 16577 16578Implemented limited support for multiple calling conventions. The 16579code can be generated with either the VPL (variable parameter 16580list, or "C") convention, or the FPL (fixed parameter list, or 16581"Pascal") convention. The core subsystem is about 3.4% smaller 16582when generated with FPL. 16583 16584 165852) Linux 16586 16587Re-add some /proc/acpi/event functionality that was lost during 16588the rewrite 16589 16590Resolved issue with /proc events for fixed-feature buttons showing 16591up as the system device. 16592 16593Fixed checks on C2/C3 latencies to be inclusive of maximum values. 16594 16595Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 16596 16597Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 16598 16599Fixed limit interface & usage to fix bugs with passive cooling 16600hysterisis. 16601 16602Restructured PRT support. 16603 16604 16605---------------------------------------- 16606Summary of changes for this label: 02_14_02 16607 16608 166091) ACPI CA Core Subsystem: 16610 16611Implemented support in AcpiLoadTable to allow loading of FACS and 16612FADT tables. 16613 16614Support for the now-obsolete interim 0.71 64-bit ACPI tables has 16615been removed. All 64-bit platforms should be migrated to the ACPI 166162.0 tables. The actbl71.h header has been removed from the source 16617tree. 16618 16619All C macros defined within the subsystem have been prefixed with 16620"ACPI_" to avoid collision with other system include files. 16621 16622Removed the return value for the two AcpiOsPrint interfaces, since 16623it is never used and causes lint warnings for ignoring the return 16624value. 16625 16626Added error checking to all internal mutex acquire and release 16627calls. Although a failure from one of these interfaces is 16628probably a fatal system error, these checks will cause the 16629immediate abort of the currently executing method or interface. 16630 16631Fixed a problem where the AcpiSetCurrentResources interface could 16632fault. This was a side effect of the deployment of the new memory 16633allocation model. 16634 16635Fixed a couple of problems with the Global Lock support introduced 16636in the last major build. The "common" (1.0/2.0) internal FACS was 16637being overwritten with the FACS signature and clobbering the 16638Global Lock pointer. Also, the actual firmware FACS was being 16639unmapped after construction of the "common" FACS, preventing 16640access to the actual Global Lock field within it. The "common" 16641internal FACS is no longer installed as an actual ACPI table; it 16642is used simply as a global. 16643 16644Code and Data Size: Current core subsystem library sizes are shown 16645below. These are the code and data sizes for the acpica.lib 16646produced by the Microsoft Visual C++ 6.0 compiler, and these 16647values do not include any ACPI driver or OSPM code. The debug 16648version of the code includes the debug output trace mechanism and 16649has a larger code and data size. Note that these values will vary 16650depending on the efficiency of the compiler and the compiler 16651options used during generation. 16652 16653 Previous Release (02_07_01) 16654 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 16655 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 16656 Current Release: 16657 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 16658 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 16659 16660 166612) Linux 16662 16663Updated Linux-specific code for core macro and OSL interface 16664changes described above. 16665 16666Improved /proc/acpi/event. It now can be opened only once and has 16667proper poll functionality. 16668 16669Fixed and restructured power management (acpi_bus). 16670 16671Only create /proc "view by type" when devices of that class exist. 16672 16673Fixed "charging/discharging" bug (and others) in acpi_battery. 16674 16675Improved thermal zone code. 16676 16677 166783) ASL Compiler, version X2039: 16679 16680 16681Implemented the new compiler restriction on ASL String hex/octal 16682escapes to non-null, ASCII values. An error results if an invalid 16683value is used. (This will require an ACPI 2.0 specification 16684change.) 16685 16686AML object labels that are output to the optional C and ASM source 16687are now prefixed with both the ACPI table signature and table ID 16688to help guarantee uniqueness within a large BIOS project. 16689 16690 16691---------------------------------------- 16692Summary of changes for this label: 02_01_02 16693 166941) ACPI CA Core Subsystem: 16695 16696ACPI 2.0 support is complete in the entire Core Subsystem and the 16697ASL compiler. All new ACPI 2.0 operators are implemented and all 16698other changes for ACPI 2.0 support are complete. With 16699simultaneous code and data optimizations throughout the subsystem, 16700ACPI 2.0 support has been implemented with almost no additional 16701cost in terms of code and data size. 16702 16703Implemented a new mechanism for allocation of return buffers. If 16704the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 16705be allocated on behalf of the caller. Consolidated all return 16706buffer validation and allocation to a common procedure. Return 16707buffers will be allocated via the primary OSL allocation interface 16708since it appears that a separate pool is not needed by most users. 16709If a separate pool is required for these buffers, the caller can 16710still use the original mechanism and pre-allocate the buffer(s). 16711 16712Implemented support for string operands within the DerefOf 16713operator. 16714 16715Restructured the Hardware and Event managers to be table driven, 16716simplifying the source code and reducing the amount of generated 16717code. 16718 16719Split the common read/write low-level ACPI register bitfield 16720procedure into a separate read and write, simplifying the code 16721considerably. 16722 16723Obsoleted the AcpiOsCallocate OSL interface. This interface was 16724used only a handful of times and didn't have enough critical mass 16725for a separate interface. Replaced with a common calloc procedure 16726in the core. 16727 16728Fixed a reported problem with the GPE number mapping mechanism 16729that allows GPE1 numbers to be non-contiguous with GPE0. 16730Reorganized the GPE information and shrunk a large array that was 16731originally large enough to hold info for all possible GPEs (256) 16732to simply large enough to hold all GPEs up to the largest GPE 16733number on the machine. 16734 16735Fixed a reported problem with resource structure alignment on 64- 16736bit platforms. 16737 16738Changed the AcpiEnableEvent and AcpiDisableEvent external 16739interfaces to not require any flags for the common case of 16740enabling/disabling a GPE. 16741 16742Implemented support to allow a "Notify" on a Processor object. 16743 16744Most TBDs in comments within the source code have been resolved 16745and eliminated. 16746 16747 16748Fixed a problem in the interpreter where a standalone parent 16749prefix (^) was not handled correctly in the interpreter and 16750debugger. 16751 16752Removed obsolete and unnecessary GPE save/restore code. 16753 16754Implemented Field support in the ASL Load operator. This allows a 16755table to be loaded from a named field, in addition to loading a 16756table directly from an Operation Region. 16757 16758Implemented timeout and handle support in the external Global Lock 16759interfaces. 16760 16761Fixed a problem in the AcpiDump utility where pathnames were no 16762longer being generated correctly during the dump of named objects. 16763 16764Modified the AML debugger to give a full display of if/while 16765predicates instead of just one AML opcode at a time. (The 16766predicate can have several nested ASL statements.) The old method 16767was confusing during single stepping. 16768 16769Code and Data Size: Current core subsystem library sizes are shown 16770below. These are the code and data sizes for the acpica.lib 16771produced by the Microsoft Visual C++ 6.0 compiler, and these 16772values do not include any ACPI driver or OSPM code. The debug 16773version of the code includes the debug output trace mechanism and 16774has a larger code and data size. Note that these values will vary 16775depending on the efficiency of the compiler and the compiler 16776options used during generation. 16777 16778 Previous Release (12_18_01) 16779 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 16780 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 16781 Current Release: 16782 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 16783 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 16784 167852) Linux 16786 16787 Implemented fix for PIIX reverse throttling errata (Processor 16788driver) 16789 16790Added new Limit interface (Processor and Thermal drivers) 16791 16792New thermal policy (Thermal driver) 16793 16794Many updates to /proc 16795 16796Battery "low" event support (Battery driver) 16797 16798Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 16799 16800IA32 - IA64 initialization unification, no longer experimental 16801 16802Menuconfig options redesigned 16803 168043) ASL Compiler, version X2037: 16805 16806Implemented several new output features to simplify integration of 16807AML code into firmware: 1) Output the AML in C source code with 16808labels for each named ASL object. The original ASL source code 16809is interleaved as C comments. 2) Output the AML in ASM source code 16810with labels and interleaved ASL source. 3) Output the AML in 16811raw hex table form, in either C or ASM. 16812 16813Implemented support for optional string parameters to the 16814LoadTable operator. 16815 16816Completed support for embedded escape sequences within string 16817literals. The compiler now supports all single character escapes 16818as well as the Octal and Hex escapes. Note: the insertion of a 16819null byte into a string literal (via the hex/octal escape) causes 16820the string to be immediately terminated. A warning is issued. 16821 16822Fixed a problem where incorrect AML was generated for the case 16823where an ASL namepath consists of a single parent prefix ( 16824 16825) with no trailing name segments. 16826 16827The compiler has been successfully generated with a 64-bit C 16828compiler. 16829 16830 16831 16832 16833---------------------------------------- 16834Summary of changes for this label: 12_18_01 16835 168361) Linux 16837 16838Enhanced blacklist with reason and severity fields. Any table's 16839signature may now be used to identify a blacklisted system. 16840 16841Call _PIC control method to inform the firmware which interrupt 16842model the OS is using. Turn on any disabled link devices. 16843 16844Cleaned up busmgr /proc error handling (Andreas Dilger) 16845 16846 2) ACPI CA Core Subsystem: 16847 16848Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 16849while loop) 16850 16851Completed implementation of the ACPI 2.0 "Continue", 16852"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 16853operators. All new ACPI 2.0 operators are now implemented in both 16854the ASL compiler and the AML interpreter. The only remaining ACPI 168552.0 task is support for the String data type in the DerefOf 16856operator. Fixed a problem with AcquireMutex where the status code 16857was lost if the caller had to actually wait for the mutex. 16858 16859Increased the maximum ASL Field size from 64K bits to 4G bits. 16860 16861Completed implementation of the external Global Lock interfaces -- 16862AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 16863Handler parameters were added. 16864 16865Completed another pass at removing warnings and issues when 16866compiling with 64-bit compilers. The code now compiles cleanly 16867with the Intel 64-bit C/C++ compiler. Most notably, the pointer 16868add and subtract (diff) macros have changed considerably. 16869 16870 16871Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1687264-bit platforms, 32-bits on all others. This type is used 16873wherever memory allocation and/or the C sizeof() operator is used, 16874and affects the OSL memory allocation interfaces AcpiOsAllocate 16875and AcpiOsCallocate. 16876 16877Implemented sticky user breakpoints in the AML debugger. 16878 16879Code and Data Size: Current core subsystem library sizes are shown 16880below. These are the code and data sizes for the acpica.lib 16881produced by the Microsoft Visual C++ 6.0 compiler, and these 16882values do not include any ACPI driver or OSPM code. The debug 16883version of the code includes the debug output trace mechanism and 16884has a larger code and data size. Note that these values will vary 16885depending on the efficiency of the compiler and the compiler 16886options used during generation. 16887 16888 Previous Release (12_05_01) 16889 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 16890 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 16891 Current Release: 16892 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 16893 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 16894 16895 3) ASL Compiler, version X2034: 16896 16897Now checks for (and generates an error if detected) the use of a 16898Break or Continue statement without an enclosing While statement. 16899 16900 16901Successfully generated the compiler with the Intel 64-bit C 16902compiler. 16903 16904 ---------------------------------------- 16905Summary of changes for this label: 12_05_01 16906 16907 1) ACPI CA Core Subsystem: 16908 16909The ACPI 2.0 CopyObject operator is fully implemented. This 16910operator creates a new copy of an object (and is also used to 16911bypass the "implicit conversion" mechanism of the Store operator.) 16912 16913The ACPI 2.0 semantics for the SizeOf operator are fully 16914implemented. The change is that performing a SizeOf on a 16915reference object causes an automatic dereference of the object to 16916tha actual value before the size is evaluated. This behavior was 16917undefined in ACPI 1.0. 16918 16919The ACPI 2.0 semantics for the Extended IRQ resource descriptor 16920have been implemented. The interrupt polarity and mode are now 16921independently set. 16922 16923Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 16924appearing in Package objects were not properly converted to 16925integers when the internal Package was converted to an external 16926object (via the AcpiEvaluateObject interface.) 16927 16928Fixed a problem with the namespace object deletion mechanism for 16929objects created by control methods. There were two parts to this 16930problem: 1) Objects created during the initialization phase method 16931parse were not being deleted, and 2) The object owner ID mechanism 16932to track objects was broken. 16933 16934Fixed a problem where the use of the ASL Scope operator within a 16935control method would result in an invalid opcode exception. 16936 16937Fixed a problem introduced in the previous label where the buffer 16938length required for the _PRT structure was not being returned 16939correctly. 16940 16941Code and Data Size: Current core subsystem library sizes are shown 16942below. These are the code and data sizes for the acpica.lib 16943produced by the Microsoft Visual C++ 6.0 compiler, and these 16944values do not include any ACPI driver or OSPM code. The debug 16945version of the code includes the debug output trace mechanism and 16946has a larger code and data size. Note that these values will vary 16947depending on the efficiency of the compiler and the compiler 16948options used during generation. 16949 16950 Previous Release (11_20_01) 16951 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 16952 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 16953 16954 Current Release: 16955 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 16956 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 16957 16958 2) Linux: 16959 16960Updated all files to apply cleanly against 2.4.16. 16961 16962Added basic PCI Interrupt Routing Table (PRT) support for IA32 16963(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 16964version supports both static and dynamic PRT entries, but dynamic 16965entries are treated as if they were static (not yet 16966reconfigurable). Architecture- specific code to use this data is 16967absent on IA32 but should be available shortly. 16968 16969Changed the initialization sequence to start the ACPI interpreter 16970(acpi_init) prior to initialization of the PCI driver (pci_init) 16971in init/main.c. This ordering is required to support PRT and 16972facilitate other (future) enhancement. A side effect is that the 16973ACPI bus driver and certain device drivers can no longer be loaded 16974as modules. 16975 16976Modified the 'make menuconfig' options to allow PCI Interrupt 16977Routing support to be included without the ACPI Bus and other 16978device drivers. 16979 16980 3) ASL Compiler, version X2033: 16981 16982Fixed some issues with the use of the new CopyObject and 16983DataTableRegion operators. Both are fully functional. 16984 16985 ---------------------------------------- 16986Summary of changes for this label: 11_20_01 16987 16988 20 November 2001. Summary of changes for this release. 16989 16990 1) ACPI CA Core Subsystem: 16991 16992Updated Index support to match ACPI 2.0 semantics. Storing a 16993Integer, String, or Buffer to an Index of a Buffer will store only 16994the least-significant byte of the source to the Indexed buffer 16995byte. Multiple writes are not performed. 16996 16997Fixed a problem where the access type used in an AccessAs ASL 16998operator was not recorded correctly into the field object. 16999 17000Fixed a problem where ASL Event objects were created in a 17001signalled state. Events are now created in an unsignalled state. 17002 17003The internal object cache is now purged after table loading and 17004initialization to reduce the use of dynamic kernel memory -- on 17005the assumption that object use is greatest during the parse phase 17006of the entire table (versus the run-time use of individual control 17007methods.) 17008 17009ACPI 2.0 variable-length packages are now fully operational. 17010 17011Code and Data Size: Code and Data optimizations have permitted new 17012feature development with an actual reduction in the library size. 17013Current core subsystem library sizes are shown below. These are 17014the code and data sizes for the acpica.lib produced by the 17015Microsoft Visual C++ 6.0 compiler, and these values do not include 17016any ACPI driver or OSPM code. The debug version of the code 17017includes the debug output trace mechanism and has a larger code 17018and data size. Note that these values will vary depending on the 17019efficiency of the compiler and the compiler options used during 17020generation. 17021 17022 Previous Release (11_09_01): 17023 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 17024 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 17025 17026 Current Release: 17027 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 17028 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 17029 17030 2) Linux: 17031 17032Enhanced the ACPI boot-time initialization code to allow the use 17033of Local APIC tables for processor enumeration on IA-32, and to 17034pave the way for a fully MPS-free boot (on SMP systems) in the 17035near future. This functionality replaces 17036arch/i386/kernel/acpitables.c, which was introduced in an earlier 170372.4.15-preX release. To enable this feature you must add 17038"acpi_boot=on" to the kernel command line -- see the help entry 17039for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 17040the works... 17041 17042Restructured the configuration options to allow boot-time table 17043parsing support without inclusion of the ACPI Interpreter (and 17044other) code. 17045 17046NOTE: This release does not include fixes for the reported events, 17047power-down, and thermal passive cooling issues (coming soon). 17048 17049 3) ASL Compiler: 17050 17051Added additional typechecking for Fields within restricted access 17052Operation Regions. All fields within EC and CMOS regions must be 17053declared with ByteAcc. All fields within SMBus regions must be 17054declared with the BufferAcc access type. 17055 17056Fixed a problem where the listing file output of control methods 17057no longer interleaved the actual AML code with the ASL source 17058code. 17059 17060 17061 17062 17063---------------------------------------- 17064Summary of changes for this label: 11_09_01 17065 170661) ACPI CA Core Subsystem: 17067 17068Implemented ACPI 2.0-defined support for writes to fields with a 17069Buffer, String, or Integer source operand that is smaller than the 17070target field. In these cases, the source operand is zero-extended 17071to fill the target field. 17072 17073Fixed a problem where a Field starting bit offset (within the 17074parent operation region) was calculated incorrectly if the 17075 17076alignment of the field differed from the access width. This 17077affected CreateWordField, CreateDwordField, CreateQwordField, and 17078possibly other fields that use the "AccessAny" keyword. 17079 17080Fixed a problem introduced in the 11_02_01 release where indirect 17081stores through method arguments did not operate correctly. 17082 170832) Linux: 17084 17085Implemented boot-time ACPI table parsing support 17086(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 17087facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 17088legacy BIOS interfaces (e.g. MPS) for the configuration of system 17089processors, memory, and interrupts during setup_arch(). Note that 17090this patch does not include the required architecture-specific 17091changes required to apply this information -- subsequent patches 17092will be posted for both IA32 and IA64 to achieve this. 17093 17094Added low-level sleep support for IA32 platforms, courtesy of Pat 17095Mochel. This allows IA32 systems to transition to/from various 17096sleeping states (e.g. S1, S3), although the lack of a centralized 17097driver model and power-manageable drivers will prevent its 17098(successful) use on most systems. 17099 17100Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 17101submenu, unified IA32 and IA64 options, added new "Boot using ACPI 17102tables" option, etc. 17103 17104Increased the default timeout for the EC driver from 1ms to 10ms 17105(1000 cycles of 10us) to try to address AE_TIME errors during EC 17106transactions. 17107 17108 ---------------------------------------- 17109Summary of changes for this label: 11_02_01 17110 171111) ACPI CA Core Subsystem: 17112 17113ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 17114(QWordAcc keyword). All ACPI 2.0 64-bit support is now 17115implemented. 17116 17117OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 17118changes to support ACPI 2.0 Qword field access. Read/Write 17119PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 17120accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 17121the value parameter for the address space handler interface is now 17122an ACPI_INTEGER. OSL implementations of these interfaces must now 17123handle the case where the Width parameter is 64. 17124 17125Index Fields: Fixed a problem where unaligned bit assembly and 17126disassembly for IndexFields was not supported correctly. 17127 17128Index and Bank Fields: Nested Index and Bank Fields are now 17129supported. During field access, a check is performed to ensure 17130that the value written to an Index or Bank register is not out of 17131the range of the register. The Index (or Bank) register is 17132written before each access to the field data. Future support will 17133include allowing individual IndexFields to be wider than the 17134DataRegister width. 17135 17136Fields: Fixed a problem where the AML interpreter was incorrectly 17137attempting to write beyond the end of a Field/OpRegion. This was 17138a boundary case that occurred when a DWORD field was written to a 17139BYTE access OpRegion, forcing multiple writes and causing the 17140interpreter to write one datum too many. 17141 17142Fields: Fixed a problem with Field/OpRegion access where the 17143starting bit address of a field was incorrectly calculated if the 17144current access type was wider than a byte (WordAcc, DwordAcc, or 17145QwordAcc). 17146 17147Fields: Fixed a problem where forward references to individual 17148FieldUnits (individual Field names within a Field definition) were 17149not resolved during the AML table load. 17150 17151Fields: Fixed a problem where forward references from a Field 17152definition to the parent Operation Region definition were not 17153resolved during the AML table load. 17154 17155Fields: Duplicate FieldUnit names within a scope are now detected 17156during AML table load. 17157 17158Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 17159returned an incorrect name for the root node. 17160 17161Code and Data Size: Code and Data optimizations have permitted new 17162feature development with an actual reduction in the library size. 17163Current core subsystem library sizes are shown below. These are 17164the code and data sizes for the acpica.lib produced by the 17165Microsoft Visual C++ 6.0 compiler, and these values do not include 17166any ACPI driver or OSPM code. The debug version of the code 17167includes the debug output trace mechanism and has a larger code 17168and data size. Note that these values will vary depending on the 17169efficiency of the compiler and the compiler options used during 17170generation. 17171 17172 Previous Release (10_18_01): 17173 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 17174 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 17175 17176 Current Release: 17177 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 17178 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 17179 17180 2) Linux: 17181 17182Improved /proc processor output (Pavel Machek) Re-added 17183MODULE_LICENSE("GPL") to all modules. 17184 17185 3) ASL Compiler version X2030: 17186 17187Duplicate FieldUnit names within a scope are now detected and 17188flagged as errors. 17189 17190 4) Documentation: 17191 17192Programmer Reference updated to reflect OSL and address space 17193handler interface changes described above. 17194 17195---------------------------------------- 17196Summary of changes for this label: 10_18_01 17197 17198ACPI CA Core Subsystem: 17199 17200Fixed a problem with the internal object reference count mechanism 17201that occasionally caused premature object deletion. This resolves 17202all of the outstanding problem reports where an object is deleted 17203in the middle of an interpreter evaluation. Although this problem 17204only showed up in rather obscure cases, the solution to the 17205problem involved an adjustment of all reference counts involving 17206objects attached to namespace nodes. 17207 17208Fixed a problem with Field support in the interpreter where 17209writing to an aligned field whose length is an exact multiple (2 17210or greater) of the field access granularity would cause an attempt 17211to write beyond the end of the field. 17212 17213The top level AML opcode execution functions within the 17214interpreter have been renamed with a more meaningful and 17215consistent naming convention. The modules exmonad.c and 17216exdyadic.c were eliminated. New modules are exoparg1.c, 17217exoparg2.c, exoparg3.c, and exoparg6.c. 17218 17219Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 17220 17221Fixed a problem where the AML debugger was causing some internal 17222objects to not be deleted during subsystem termination. 17223 17224Fixed a problem with the external AcpiEvaluateObject interface 17225where the subsystem would fault if the named object to be 17226evaluated referred to a constant such as Zero, Ones, etc. 17227 17228Fixed a problem with IndexFields and BankFields where the 17229subsystem would fault if the index, data, or bank registers were 17230not defined in the same scope as the field itself. 17231 17232Added printf format string checking for compilers that support 17233this feature. Corrected more than 50 instances of issues with 17234format specifiers within invocations of ACPI_DEBUG_PRINT 17235throughout the core subsystem code. 17236 17237The ASL "Revision" operator now returns the ACPI support level 17238implemented in the core - the value "2" since the ACPI 2.0 support 17239is more than 50% implemented. 17240 17241Enhanced the output of the AML debugger "dump namespace" command 17242to output in a more human-readable form. 17243 17244Current core subsystem library code sizes are shown below. These 17245 17246are the code and data sizes for the acpica.lib produced by the 17247Microsoft Visual C++ 6.0 compiler, and these values do not include 17248any ACPI driver or OSPM code. The debug version of the code 17249includes the full debug trace mechanism -- leading to a much 17250 17251larger code and data size. Note that these values will vary 17252depending on the efficiency of the compiler and the compiler 17253options used during generation. 17254 17255 Previous Label (09_20_01): 17256 Non-Debug Version: 65K Code, 5K Data, 70K Total 17257 Debug Version: 138K Code, 58K Data, 196K Total 17258 17259 This Label: 17260 17261 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 17262 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 17263 17264Linux: 17265 17266Implemented a "Bad BIOS Blacklist" to track machines that have 17267known ASL/AML problems. 17268 17269Enhanced the /proc interface for the thermal zone driver and added 17270support for _HOT (the critical suspend trip point). The 'info' 17271file now includes threshold/policy information, and allows setting 17272of _SCP (cooling preference) and _TZP (polling frequency) values 17273to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 17274frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 17275preference to the passive/quiet mode (if supported by the ASL). 17276 17277Implemented a workaround for a gcc bug that resuted in an OOPs 17278when loading the control method battery driver. 17279 17280 ---------------------------------------- 17281Summary of changes for this label: 09_20_01 17282 17283 ACPI CA Core Subsystem: 17284 17285The AcpiEnableEvent and AcpiDisableEvent interfaces have been 17286modified to allow individual GPE levels to be flagged as wake- 17287enabled (i.e., these GPEs are to remain enabled when the platform 17288sleeps.) 17289 17290The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 17291support wake-enabled GPEs. This means that upon entering the 17292sleep state, all GPEs that are not wake-enabled are disabled. 17293When leaving the sleep state, these GPEs are re-enabled. 17294 17295A local double-precision divide/modulo module has been added to 17296enhance portability to OS kernels where a 64-bit math library is 17297not available. The new module is "utmath.c". 17298 17299Several optimizations have been made to reduce the use of CPU 17300stack. Originally over 2K, the maximum stack usage is now below 173012K at 1860 bytes (1.82k) 17302 17303Fixed a problem with the AcpiGetFirmwareTable interface where the 17304root table pointer was not mapped into a logical address properly. 17305 17306Fixed a problem where a NULL pointer was being dereferenced in the 17307interpreter code for the ASL Notify operator. 17308 17309Fixed a problem where the use of the ASL Revision operator 17310returned an error. This operator now returns the current version 17311of the ACPI CA core subsystem. 17312 17313Fixed a problem where objects passed as control method parameters 17314to AcpiEvaluateObject were always deleted at method termination. 17315However, these objects may end up being stored into the namespace 17316by the called method. The object reference count mechanism was 17317applied to these objects instead of a force delete. 17318 17319Fixed a problem where static strings or buffers (contained in the 17320AML code) that are declared as package elements within the ASL 17321code could cause a fault because the interpreter would attempt to 17322delete them. These objects are now marked with the "static 17323object" flag to prevent any attempt to delete them. 17324 17325Implemented an interpreter optimization to use operands directly 17326from the state object instead of extracting the operands to local 17327variables. This reduces stack use and code size, and improves 17328performance. 17329 17330The module exxface.c was eliminated as it was an unnecessary extra 17331layer of code. 17332 17333Current core subsystem library code sizes are shown below. These 17334are the code and data sizes for the acpica.lib produced by the 17335Microsoft Visual C++ 6.0 compiler, and these values do not include 17336any ACPI driver or OSPM code. The debug version of the code 17337includes the full debug trace mechanism -- leading to a much 17338larger code and data size. Note that these values will vary 17339depending on the efficiency of the compiler and the compiler 17340options used during generation. 17341 17342 Non-Debug Version: 65K Code, 5K Data, 70K Total 17343(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 17344Total (Previously 195K) 17345 17346Linux: 17347 17348Support for ACPI 2.0 64-bit integers has been added. All ACPI 17349Integer objects are now 64 bits wide 17350 17351All Acpi data types and structures are now in lower case. Only 17352Acpi macros are upper case for differentiation. 17353 17354 Documentation: 17355 17356Changes to the external interfaces as described above. 17357 17358 ---------------------------------------- 17359Summary of changes for this label: 08_31_01 17360 17361 ACPI CA Core Subsystem: 17362 17363A bug with interpreter implementation of the ASL Divide operator 17364was found and fixed. The implicit function return value (not the 17365explicit store operands) was returning the remainder instead of 17366the quotient. This was a longstanding bug and it fixes several 17367known outstanding issues on various platforms. 17368 17369The ACPI_DEBUG_PRINT and function trace entry/exit macros have 17370been further optimized for size. There are 700 invocations of the 17371DEBUG_PRINT macro alone, so each optimization reduces the size of 17372the debug version of the subsystem significantly. 17373 17374A stack trace mechanism has been implemented. The maximum stack 17375usage is about 2K on 32-bit platforms. The debugger command "stat 17376stack" will display the current maximum stack usage. 17377 17378All public symbols and global variables within the subsystem are 17379now prefixed with the string "Acpi". This keeps all of the 17380symbols grouped together in a kernel map, and avoids conflicts 17381with other kernel subsystems. 17382 17383Most of the internal fixed lookup tables have been moved into the 17384code segment via the const operator. 17385 17386Several enhancements have been made to the interpreter to both 17387reduce the code size and improve performance. 17388 17389Current core subsystem library code sizes are shown below. These 17390are the code and data sizes for the acpica.lib produced by the 17391Microsoft Visual C++ 6.0 compiler, and these values do not include 17392any ACPI driver or OSPM code. The debug version of the code 17393includes the full debug trace mechanism which contains over 700 17394invocations of the DEBUG_PRINT macro, 500 function entry macro 17395invocations, and over 900 function exit macro invocations -- 17396leading to a much larger code and data size. Note that these 17397values will vary depending on the efficiency of the compiler and 17398the compiler options used during generation. 17399 17400 Non-Debug Version: 64K Code, 5K Data, 69K Total 17401Debug Version: 137K Code, 58K Data, 195K Total 17402 17403 Linux: 17404 17405Implemented wbinvd() macro, pending a kernel-wide definition. 17406 17407Fixed /proc/acpi/event to handle poll() and short reads. 17408 17409 ASL Compiler, version X2026: 17410 17411Fixed a problem introduced in the previous label where the AML 17412 17413code emitted for package objects produced packages with zero 17414length. 17415 17416 ---------------------------------------- 17417Summary of changes for this label: 08_16_01 17418 17419ACPI CA Core Subsystem: 17420 17421The following ACPI 2.0 ASL operators have been implemented in the 17422AML interpreter (These are already supported by the Intel ASL 17423compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 17424ToBuffer. Support for 64-bit AML constants is implemented in the 17425AML parser, debugger, and disassembler. 17426 17427The internal memory tracking mechanism (leak detection code) has 17428been upgraded to reduce the memory overhead (a separate tracking 17429block is no longer allocated for each memory allocation), and now 17430supports all of the internal object caches. 17431 17432The data structures and code for the internal object caches have 17433been coelesced and optimized so that there is a single cache and 17434memory list data structure and a single group of functions that 17435implement generic cache management. This has reduced the code 17436size in both the debug and release versions of the subsystem. 17437 17438The DEBUG_PRINT macro(s) have been optimized for size and replaced 17439by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 17440different, because it generates a single call to an internal 17441function. This results in a savings of about 90 bytes per 17442invocation, resulting in an overall code and data savings of about 1744316% in the debug version of the subsystem. 17444 17445 Linux: 17446 17447Fixed C3 disk corruption problems and re-enabled C3 on supporting 17448machines. 17449 17450Integrated low-level sleep code by Patrick Mochel. 17451 17452Further tweaked source code Linuxization. 17453 17454Other minor fixes. 17455 17456 ASL Compiler: 17457 17458Support for ACPI 2.0 variable length packages is fixed/completed. 17459 17460Fixed a problem where the optional length parameter for the ACPI 174612.0 ToString operator. 17462 17463Fixed multiple extraneous error messages when a syntax error is 17464detected within the declaration line of a control method. 17465 17466 ---------------------------------------- 17467Summary of changes for this label: 07_17_01 17468 17469ACPI CA Core Subsystem: 17470 17471Added a new interface named AcpiGetFirmwareTable to obtain any 17472ACPI table via the ACPI signature. The interface can be called at 17473any time during kernel initialization, even before the kernel 17474virtual memory manager is initialized and paging is enabled. This 17475allows kernel subsystems to obtain ACPI tables very early, even 17476before the ACPI CA subsystem is initialized. 17477 17478Fixed a problem where Fields defined with the AnyAcc attribute 17479could be resolved to the incorrect address under the following 17480conditions: 1) the field width is larger than 8 bits and 2) the 17481parent operation region is not defined on a DWORD boundary. 17482 17483Fixed a problem where the interpreter is not being locked during 17484namespace initialization (during execution of the _INI control 17485methods), causing an error when an attempt is made to release it 17486later. 17487 17488ACPI 2.0 support in the AML Interpreter has begun and will be 17489ongoing throughout the rest of this year. In this label, The Mod 17490operator is implemented. 17491 17492Added a new data type to contain full PCI addresses named 17493ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 17494and Function values. 17495 17496 Linux: 17497 17498Enhanced the Linux version of the source code to change most 17499capitalized ACPI type names to lowercase. For example, all 17500instances of ACPI_STATUS are changed to acpi_status. This will 17501result in a large diff, but the change is strictly cosmetic and 17502aligns the CA code closer to the Linux coding standard. 17503 17504OSL Interfaces: 17505 17506The interfaces to the PCI configuration space have been changed to 17507add the PCI Segment number and to split the single 32-bit combined 17508DeviceFunction field into two 16-bit fields. This was 17509accomplished by moving the four values that define an address in 17510PCI configuration space (segment, bus, device, and function) to 17511the new ACPI_PCI_ID structure. 17512 17513The changes to the PCI configuration space interfaces led to a 17514reexamination of the complete set of address space access 17515interfaces for PCI, I/O, and Memory. The previously existing 18 17516interfaces have proven difficult to maintain (any small change 17517must be propagated across at least 6 interfaces) and do not easily 17518allow for future expansion to 64 bits if necessary. Also, on some 17519systems, it would not be appropriate to demultiplex the access 17520width (8, 16, 32,or 64) before calling the OSL if the 17521corresponding native OS interfaces contain a similar access width 17522parameter. For these reasons, the 18 address space interfaces 17523have been replaced by these 6 new ones: 17524 17525AcpiOsReadPciConfiguration 17526AcpiOsWritePciConfiguration 17527AcpiOsReadMemory 17528AcpiOsWriteMemory 17529AcpiOsReadPort 17530AcpiOsWritePort 17531 17532Added a new interface named AcpiOsGetRootPointer to allow the OSL 17533to perform the platform and/or OS-specific actions necessary to 17534obtain the ACPI RSDP table pointer. On IA-32 platforms, this 17535interface will simply call down to the CA core to perform the low- 17536memory search for the table. On IA-64, the RSDP is obtained from 17537EFI. Migrating this interface to the OSL allows the CA core to 17538 17539remain OS and platform independent. 17540 17541Added a new interface named AcpiOsSignal to provide a generic 17542"function code and pointer" interface for various miscellaneous 17543signals and notifications that must be made to the host OS. The 17544first such signals are intended to support the ASL Fatal and 17545Breakpoint operators. In the latter case, the AcpiOsBreakpoint 17546interface has been obsoleted. 17547 17548The definition of the AcpiFormatException interface has been 17549changed to simplify its use. The caller no longer must supply a 17550buffer to the call; A pointer to a const string is now returned 17551directly. This allows the call to be easily used in printf 17552statements, etc. since the caller does not have to manage a local 17553buffer. 17554 17555 17556 ASL Compiler, Version X2025: 17557 17558The ACPI 2.0 Switch/Case/Default operators have been implemented 17559and are fully functional. They will work with all ACPI 1.0 17560interpreters, since the operators are simply translated to If/Else 17561pairs. 17562 17563The ACPI 2.0 ElseIf operator is implemented and will also work 17564with 1.0 interpreters, for the same reason. 17565 17566Implemented support for ACPI 2.0 variable-length packages. These 17567packages have a separate opcode, and their size is determined by 17568the interpreter at run-time. 17569 17570Documentation The ACPI CA Programmer Reference has been updated to 17571reflect the new interfaces and changes to existing interfaces. 17572 17573 ------------------------------------------ 17574Summary of changes for this label: 06_15_01 17575 17576 ACPI CA Core Subsystem: 17577 17578Fixed a problem where a DWORD-accessed field within a Buffer 17579object would get its byte address inadvertently rounded down to 17580the nearest DWORD. Buffers are always Byte-accessible. 17581 17582 ASL Compiler, version X2024: 17583 17584Fixed a problem where the Switch() operator would either fault or 17585hang the compiler. Note however, that the AML code for this ACPI 175862.0 operator is not yet implemented. 17587 17588Compiler uses the new AcpiOsGetTimer interface to obtain compile 17589timings. 17590 17591Implementation of the CreateField operator automatically converts 17592a reference to a named field within a resource descriptor from a 17593byte offset to a bit offset if required. 17594 17595Added some missing named fields from the resource descriptor 17596support. These are the names that are automatically created by the 17597compiler to reference fields within a descriptor. They are only 17598valid at compile time and are not passed through to the AML 17599interpreter. 17600 17601Resource descriptor named fields are now typed as Integers and 17602subject to compile-time typechecking when used in expressions. 17603 17604 ------------------------------------------ 17605Summary of changes for this label: 05_18_01 17606 17607 ACPI CA Core Subsystem: 17608 17609Fixed a couple of problems in the Field support code where bits 17610from adjacent fields could be returned along with the proper field 17611bits. Restructured the field support code to improve performance, 17612readability and maintainability. 17613 17614New DEBUG_PRINTP macro automatically inserts the procedure name 17615into the output, saving hundreds of copies of procedure name 17616strings within the source, shrinking the memory footprint of the 17617debug version of the core subsystem. 17618 17619 Source Code Structure: 17620 17621The source code directory tree was restructured to reflect the 17622current organization of the component architecture. Some files 17623and directories have been moved and/or renamed. 17624 17625 Linux: 17626 17627Fixed leaking kacpidpc processes. 17628 17629Fixed queueing event data even when /proc/acpi/event is not 17630opened. 17631 17632 ASL Compiler, version X2020: 17633 17634Memory allocation performance enhancement - over 24X compile time 17635improvement on large ASL files. Parse nodes and namestring 17636buffers are now allocated from a large internal compiler buffer. 17637 17638The temporary .SRC file is deleted unless the "-s" option is 17639specified 17640 17641The "-d" debug output option now sends all output to the .DBG file 17642instead of the console. 17643 17644"External" second parameter is now optional 17645 17646"ElseIf" syntax now properly allows the predicate 17647 17648Last operand to "Load" now recognized as a Target operand 17649 17650Debug object can now be used anywhere as a normal object. 17651 17652ResourceTemplate now returns an object of type BUFFER 17653 17654EISAID now returns an object of type INTEGER 17655 17656"Index" now works with a STRING operand 17657 17658"LoadTable" now accepts optional parameters 17659 17660"ToString" length parameter is now optional 17661 17662"Interrupt (ResourceType," parse error fixed. 17663 17664"Register" with a user-defined region space parse error fixed 17665 17666Escaped backslash at the end of a string ("\\") scan/parse error 17667fixed 17668 17669"Revision" is now an object of type INTEGER. 17670 17671 17672 17673------------------------------------------ 17674Summary of changes for this label: 05_02_01 17675 17676Linux: 17677 17678/proc/acpi/event now blocks properly. 17679 17680Removed /proc/sys/acpi. You can still dump your DSDT from 17681/proc/acpi/dsdt. 17682 17683 ACPI CA Core Subsystem: 17684 17685Fixed a problem introduced in the previous label where some of the 17686"small" resource descriptor types were not recognized. 17687 17688Improved error messages for the case where an ASL Field is outside 17689the range of the parent operation region. 17690 17691 ASL Compiler, version X2018: 17692 17693 17694Added error detection for ASL Fields that extend beyond the length 17695of the parent operation region (only if the length of the region 17696is known at compile time.) This includes fields that have a 17697minimum access width that is smaller than the parent region, and 17698individual field units that are partially or entirely beyond the 17699extent of the parent. 17700 17701 17702 17703------------------------------------------ 17704Summary of changes for this label: 04_27_01 17705 17706 ACPI CA Core Subsystem: 17707 17708Fixed a problem where the namespace mutex could be released at the 17709wrong time during execution of AcpiRemoveAddressSpaceHandler. 17710 17711Added optional thread ID output for debug traces, to simplify 17712debugging of multiple threads. Added context switch notification 17713when the debug code realizes that a different thread is now 17714executing ACPI code. 17715 17716Some additional external data types have been prefixed with the 17717string "ACPI_" for consistency. This may effect existing code. 17718The data types affected are the external callback typedefs - e.g., 17719 17720WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 17721 17722 Linux: 17723 17724Fixed an issue with the OSL semaphore implementation where a 17725thread was waking up with an error from receiving a SIGCHLD 17726signal. 17727 17728Linux version of ACPI CA now uses the system C library for string 17729manipulation routines instead of a local implementation. 17730 17731Cleaned up comments and removed TBDs. 17732 17733 ASL Compiler, version X2017: 17734 17735Enhanced error detection and reporting for all file I/O 17736operations. 17737 17738 Documentation: 17739 17740Programmer Reference updated to version 1.06. 17741 17742 17743 17744------------------------------------------ 17745Summary of changes for this label: 04_13_01 17746 17747 ACPI CA Core Subsystem: 17748 17749Restructured support for BufferFields and RegionFields. 17750BankFields support is now fully operational. All known 32-bit 17751limitations on field sizes have been removed. Both BufferFields 17752and (Operation) RegionFields are now supported by the same field 17753management code. 17754 17755Resource support now supports QWORD address and IO resources. The 1775616/32/64 bit address structures and the Extended IRQ structure 17757have been changed to properly handle Source Resource strings. 17758 17759A ThreadId of -1 is now used to indicate a "mutex not acquired" 17760condition internally and must never be returned by AcpiOsThreadId. 17761This reserved value was changed from 0 since Unix systems allow a 17762thread ID of 0. 17763 17764Linux: 17765 17766Driver code reorganized to enhance portability 17767 17768Added a kernel configuration option to control ACPI_DEBUG 17769 17770Fixed the EC driver to honor _GLK. 17771 17772ASL Compiler, version X2016: 17773 17774Fixed support for the "FixedHw" keyword. Previously, the FixedHw 17775address space was set to 0, not 0x7f as it should be. 17776 17777 ------------------------------------------ 17778Summary of changes for this label: 03_13_01 17779 17780 ACPI CA Core Subsystem: 17781 17782During ACPI initialization, the _SB_._INI method is now run if 17783present. 17784 17785Notify handler fix - notifies are deferred until the parent method 17786completes execution. This fixes the "mutex already acquired" 17787issue seen occasionally. 17788 17789Part of the "implicit conversion" rules in ACPI 2.0 have been 17790found to cause compatibility problems with existing ASL/AML. The 17791convert "result-to-target-type" implementation has been removed 17792for stores to method Args and Locals. Source operand conversion 17793is still fully implemented. Possible changes to ACPI 2.0 17794specification pending. 17795 17796Fix to AcpiRsCalculatePciRoutingTableLength to return correct 17797length. 17798 17799Fix for compiler warnings for 64-bit compiles. 17800 17801 Linux: 17802 17803/proc output aligned for easier parsing. 17804 17805Release-version compile problem fixed. 17806 17807New kernel configuration options documented in Configure.help. 17808 17809IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 17810context" message. 17811 17812 OSPM: 17813 17814Power resource driver integrated with bus manager. 17815 17816Fixed kernel fault during active cooling for thermal zones. 17817 17818Source Code: 17819 17820The source code tree has been restructured. 17821 17822 17823 17824------------------------------------------ 17825Summary of changes for this label: 03_02_01 17826 17827 Linux OS Services Layer (OSL): 17828 17829Major revision of all Linux-specific code. 17830 17831Modularized all ACPI-specific drivers. 17832 17833Added new thermal zone and power resource drivers. 17834 17835Revamped /proc interface (new functionality is under /proc/acpi). 17836 17837New kernel configuration options. 17838 17839 Linux known issues: 17840 17841New kernel configuration options not documented in Configure.help 17842yet. 17843 17844 17845Module dependencies not currently implemented. If used, they 17846should be loaded in this order: busmgr, power, ec, system, 17847processor, battery, ac_adapter, button, thermal. 17848 17849Modules will not load if CONFIG_MODVERSION is set. 17850 17851IBM 600E - entering S5 may reboot instead of shutting down. 17852 17853IBM 600E - Sleep button may generate "Invalid <NULL> context" 17854message. 17855 17856Some systems may fail with "execution mutex already acquired" 17857message. 17858 17859 ACPI CA Core Subsystem: 17860 17861Added a new OSL Interface, AcpiOsGetThreadId. This was required 17862for the deadlock detection code. Defined to return a non-zero, 32- 17863bit thread ID for the currently executing thread. May be a non- 17864zero constant integer on single-thread systems. 17865 17866Implemented deadlock detection for internal subsystem mutexes. We 17867may add conditional compilation for this code (debug only) later. 17868 17869ASL/AML Mutex object semantics are now fully supported. This 17870includes multiple acquires/releases by owner and support for the 17871 17872Mutex SyncLevel parameter. 17873 17874A new "Force Release" mechanism automatically frees all ASL 17875Mutexes that have been acquired but not released when a thread 17876exits the interpreter. This forces conformance to the ACPI spec 17877("All mutexes must be released when an invocation exits") and 17878prevents deadlocked ASL threads. This mechanism can be expanded 17879(later) to monitor other resource acquisitions if OEM ASL code 17880continues to misbehave (which it will). 17881 17882Several new ACPI exception codes have been added for the Mutex 17883support. 17884 17885Recursive method calls are now allowed and supported (the ACPI 17886spec does in fact allow recursive method calls.) The number of 17887recursive calls is subject to the restrictions imposed by the 17888SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 17889parameter. 17890 17891Implemented support for the SyncLevel parameter for control 17892methods (ACPI 2.0 feature) 17893 17894Fixed a deadlock problem when multiple threads attempted to use 17895the interpreter. 17896 17897Fixed a problem where the string length of a String package 17898element was not always set in a package returned from 17899AcpiEvaluateObject. 17900 17901Fixed a problem where the length of a String package element was 17902not always included in the length of the overall package returned 17903from AcpiEvaluateObject. 17904 17905Added external interfaces (Acpi*) to the ACPI debug memory 17906manager. This manager keeps a list of all outstanding 17907allocations, and can therefore detect memory leaks and attempts to 17908free memory blocks more than once. Useful for code such as the 17909power manager, etc. May not be appropriate for device drivers. 17910Performance with the debug code enabled is slow. 17911 17912The ACPI Global Lock is now an optional hardware element. 17913 17914 ASL Compiler Version X2015: 17915 17916Integrated changes to allow the compiler to be generated on 17917multiple platforms. 17918 17919Linux makefile added to generate the compiler on Linux 17920 17921 Source Code: 17922 17923All platform-specific headers have been moved to their own 17924subdirectory, Include/Platform. 17925 17926New source file added, Interpreter/ammutex.c 17927 17928New header file, Include/acstruct.h 17929 17930 Documentation: 17931 17932The programmer reference has been updated for the following new 17933interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 17934 17935 ------------------------------------------ 17936Summary of changes for this label: 02_08_01 17937 17938Core ACPI CA Subsystem: Fixed a problem where an error was 17939incorrectly returned if the return resource buffer was larger than 17940the actual data (in the resource interfaces). 17941 17942References to named objects within packages are resolved to the 17943 17944full pathname string before packages are returned directly (via 17945the AcpiEvaluateObject interface) or indirectly via the resource 17946interfaces. 17947 17948Linux OS Services Layer (OSL): 17949 17950Improved /proc battery interface. 17951 17952 17953Added C-state debugging output and other miscellaneous fixes. 17954 17955ASL Compiler Version X2014: 17956 17957All defined method arguments can now be used as local variables, 17958including the ones that are not actually passed in as parameters. 17959The compiler tracks initialization of the arguments and issues an 17960exception if they are used without prior assignment (just like 17961locals). 17962 17963The -o option now specifies a filename prefix that is used for all 17964output files, including the AML output file. Otherwise, the 17965default behavior is as follows: 1) the AML goes to the file 17966specified in the DSDT. 2) all other output files use the input 17967source filename as the base. 17968 17969 ------------------------------------------ 17970Summary of changes for this label: 01_25_01 17971 17972Core ACPI CA Subsystem: Restructured the implementation of object 17973store support within the interpreter. This includes support for 17974the Store operator as well as any ASL operators that include a 17975target operand. 17976 17977Partially implemented support for Implicit Result-to-Target 17978conversion. This is when a result object is converted on the fly 17979to the type of an existing target object. Completion of this 17980support is pending further analysis of the ACPI specification 17981concerning this matter. 17982 17983CPU-specific code has been removed from the subsystem (hardware 17984directory). 17985 17986New Power Management Timer functions added 17987 17988Linux OS Services Layer (OSL): Moved system state transition code 17989to the core, fixed it, and modified Linux OSL accordingly. 17990 17991Fixed C2 and C3 latency calculations. 17992 17993 17994We no longer use the compilation date for the version message on 17995initialization, but retrieve the version from AcpiGetSystemInfo(). 17996 17997Incorporated for fix Sony VAIO machines. 17998 17999Documentation: The Programmer Reference has been updated and 18000reformatted. 18001 18002 18003ASL Compiler: Version X2013: Fixed a problem where the line 18004numbering and error reporting could get out of sync in the 18005presence of multiple include files. 18006 18007 ------------------------------------------ 18008Summary of changes for this label: 01_15_01 18009 18010Core ACPI CA Subsystem: 18011 18012Implemented support for type conversions in the execution of the 18013ASL Concatenate operator (The second operand is converted to 18014match the type of the first operand before concatenation.) 18015 18016Support for implicit source operand conversion is partially 18017implemented. The ASL source operand types Integer, Buffer, and 18018String are freely interchangeable for most ASL operators and are 18019converted by the interpreter on the fly as required. Implicit 18020Target operand conversion (where the result is converted to the 18021target type before storing) is not yet implemented. 18022 18023Support for 32-bit and 64-bit BCD integers is implemented. 18024 18025Problem fixed where a field read on an aligned field could cause a 18026read past the end of the field. 18027 18028New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 18029does not return a value, but the caller expects one. (The ASL 18030compiler flags this as a warning.) 18031 18032ASL Compiler: 18033 18034Version X2011: 180351. Static typechecking of all operands is implemented. This 18036prevents the use of invalid objects (such as using a Package where 18037an Integer is required) at compile time instead of at interpreter 18038run-time. 180392. The ASL source line is printed with ALL errors and warnings. 180403. Bug fix for source EOF without final linefeed. 180414. Debug option is split into a parse trace and a namespace trace. 180425. Namespace output option (-n) includes initial values for 18043integers and strings. 180446. Parse-only option added for quick syntax checking. 180457. Compiler checks for duplicate ACPI name declarations 18046 18047Version X2012: 180481. Relaxed typechecking to allow interchangeability between 18049strings, integers, and buffers. These types are now converted by 18050the interpreter at runtime. 180512. Compiler reports time taken by each internal subsystem in the 18052debug output file. 18053 18054 18055 ------------------------------------------ 18056Summary of changes for this label: 12_14_00 18057 18058ASL Compiler: 18059 18060This is the first official release of the compiler. Since the 18061compiler requires elements of the Core Subsystem, this label 18062synchronizes everything. 18063 18064------------------------------------------ 18065Summary of changes for this label: 12_08_00 18066 18067 18068Fixed a problem where named references within the ASL definition 18069of both OperationRegions and CreateXXXFields did not work 18070properly. The symptom was an AE_AML_OPERAND_TYPE during 18071initialization of the region/field. This is similar (but not 18072related internally) to the problem that was fixed in the last 18073label. 18074 18075Implemented both 32-bit and 64-bit support for the BCD ASL 18076functions ToBCD and FromBCD. 18077 18078Updated all legal headers to include "2000" in the copyright 18079years. 18080 18081 ------------------------------------------ 18082Summary of changes for this label: 12_01_00 18083 18084Fixed a problem where method invocations within the ASL definition 18085of both OperationRegions and CreateXXXFields did not work 18086properly. The symptom was an AE_AML_OPERAND_TYPE during 18087initialization of the region/field: 18088 18089 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 18090[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 18091(0x3005) 18092 18093Fixed a problem where operators with more than one nested 18094subexpression would fail. The symptoms were varied, by mostly 18095AE_AML_OPERAND_TYPE errors. This was actually a rather serious 18096problem that has gone unnoticed until now. 18097 18098 Subtract (Add (1,2), Multiply (3,4)) 18099 18100Fixed a problem where AcpiGetHandle didn't quite get fixed in the 18101previous build (The prefix part of a relative path was handled 18102incorrectly). 18103 18104Fixed a problem where Operation Region initialization failed if 18105the operation region name was a "namepath" instead of a simple 18106"nameseg". Symptom was an AE_NO_OPERAND error. 18107 18108Fixed a problem where an assignment to a local variable via the 18109indirect RefOf mechanism only worked for the first such 18110assignment. Subsequent assignments were ignored. 18111 18112 ------------------------------------------ 18113Summary of changes for this label: 11_15_00 18114 18115ACPI 2.0 table support with backwards support for ACPI 1.0 and the 181160.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 18117the AML interpreter does NOT have support for the new 2.0 ASL 18118grammar terms at this time. 18119 18120All ACPI hardware access is via the GAS structures in the ACPI 2.0 18121FADT. 18122 18123All physical memory addresses across all platforms are now 64 bits 18124wide. Logical address width remains dependent on the platform 18125(i.e., "void *"). 18126 18127AcpiOsMapMemory interface changed to a 64-bit physical address. 18128 18129The AML interpreter integer size is now 64 bits, as per the ACPI 181302.0 specification. 18131 18132For backwards compatibility with ACPI 1.0, ACPI tables with a 18133revision number less than 2 use 32-bit integers only. 18134 18135Fixed a problem where the evaluation of OpRegion operands did not 18136always resolve them to numbers properly. 18137 18138------------------------------------------ 18139Summary of changes for this label: 10_20_00 18140 18141Fix for CBN_._STA issue. This fix will allow correct access to 18142CBN_ OpRegions when the _STA returns 0x8. 18143 18144Support to convert ACPI constants (Ones, Zeros, One) to actual 18145values before a package object is returned 18146 18147Fix for method call as predicate to if/while construct causing 18148incorrect if/while behavior 18149 18150Fix for Else block package lengths sometimes calculated wrong (if 18151block > 63 bytes) 18152 18153Fix for Processor object length field, was always zero 18154 18155Table load abort if FACP sanity check fails 18156 18157Fix for problem with Scope(name) if name already exists 18158 18159Warning emitted if a named object referenced cannot be found 18160(resolved) during method execution. 18161 18162 18163 18164 18165 18166------------------------------------------ 18167Summary of changes for this label: 9_29_00 18168 18169New table initialization interfaces: AcpiInitializeSubsystem no 18170longer has any parameters AcpiFindRootPointer - Find the RSDP (if 18171necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 18172>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 18173AcpiLoadTables 18174 18175Note: These interface changes require changes to all existing OSDs 18176 18177The PCI_Config default address space handler is always installed 18178at the root namespace object. 18179 18180------------------------------------------- 18181Summary of changes for this label: 09_15_00 18182 18183The new initialization architecture is implemented. New 18184interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 18185AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 18186 18187(Namespace is automatically loaded when a table is loaded) 18188 18189The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1819052 bytes to 32 bytes. There is usually one of these for every 18191namespace object, so the memory savings is significant. 18192 18193Implemented just-in-time evaluation of the CreateField operators. 18194 18195Bug fixes for IA-64 support have been integrated. 18196 18197Additional code review comments have been implemented 18198 18199The so-called "third pass parse" has been replaced by a final walk 18200through the namespace to initialize all operation regions (address 18201spaces) and fields that have not yet been initialized during the 18202execution of the various _INI and REG methods. 18203 18204New file - namespace/nsinit.c 18205 18206------------------------------------------- 18207Summary of changes for this label: 09_01_00 18208 18209Namespace manager data structures have been reworked to change the 18210primary object from a table to a single object. This has 18211resulted in dynamic memory savings of 3X within the namespace and 182122X overall in the ACPI CA subsystem. 18213 18214Fixed problem where the call to AcpiEvFindPciRootBuses was 18215inadvertently left commented out. 18216 18217Reduced the warning count when generating the source with the GCC 18218compiler. 18219 18220Revision numbers added to each module header showing the 18221SourceSafe version of the file. Please refer to this version 18222number when giving us feedback or comments on individual modules. 18223 18224The main object types within the subsystem have been renamed to 18225clarify their purpose: 18226 18227ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 18228ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 18229ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 18230 18231NOTE: no changes to the initialization sequence are included in 18232this label. 18233 18234------------------------------------------- 18235Summary of changes for this label: 08_23_00 18236 18237Fixed problem where TerminateControlMethod was being called 18238multiple times per method 18239 18240Fixed debugger problem where single stepping caused a semaphore to 18241be oversignalled 18242 18243Improved performance through additional parse object caching - 18244added ACPI_EXTENDED_OP type 18245 18246------------------------------------------- 18247Summary of changes for this label: 08_10_00 18248 18249Parser/Interpreter integration: Eliminated the creation of 18250complete parse trees for ACPI tables and control methods. 18251Instead, parse subtrees are created and then deleted as soon as 18252they are processed (Either entered into the namespace or executed 18253by the interpreter). This reduces the use of dynamic kernel 18254memory significantly. (about 10X) 18255 18256Exception codes broken into classes and renumbered. Be sure to 18257recompile all code that includes acexcep.h. Hopefully we won't 18258have to renumber the codes again now that they are split into 18259classes (environment, programmer, AML code, ACPI table, and 18260internal). 18261 18262Fixed some additional alignment issues in the Resource Manager 18263subcomponent 18264 18265Implemented semaphore tracking in the AcpiExec utility, and fixed 18266several places where mutexes/semaphores were being unlocked 18267without a corresponding lock operation. There are no known 18268semaphore or mutex "leaks" at this time. 18269 18270Fixed the case where an ASL Return operator is used to return an 18271unnamed package. 18272 18273------------------------------------------- 18274Summary of changes for this label: 07_28_00 18275 18276Fixed a problem with the way addresses were calculated in 18277AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 18278manifested itself when a Field was created with WordAccess or 18279DwordAccess, but the field unit defined within the Field was less 18280 18281than a Word or Dword. 18282 18283Fixed a problem in AmlDumpOperands() module's loop to pull 18284operands off of the operand stack to display information. The 18285problem manifested itself as a TLB error on 64-bit systems when 18286accessing an operand stack with two or more operands. 18287 18288Fixed a problem with the PCI configuration space handlers where 18289context was getting confused between accesses. This required a 18290change to the generic address space handler and address space 18291setup definitions. Handlers now get both a global handler context 18292(this is the one passed in by the user when executing 18293AcpiInstallAddressSpaceHandler() and a specific region context 18294that is unique to each region (For example, the _ADR, _SEG and 18295_BBN values associated with a specific region). The generic 18296function definitions have changed to the following: 18297 18298typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 18299UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 18300*HandlerContext, // This used to be void *Context void 18301*RegionContext); // This is an additional parameter 18302 18303typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 18304RegionHandle, UINT32 Function, void *HandlerContext, void 18305**RegionContext); // This used to be **ReturnContext 18306 18307------------------------------------------- 18308Summary of changes for this label: 07_21_00 18309 18310Major file consolidation and rename. All files within the 18311interpreter have been renamed as well as most header files. This 18312was done to prevent collisions with existing files in the host 18313OSs -- filenames such as "config.h" and "global.h" seem to be 18314quite common. The VC project files have been updated. All 18315makefiles will require modification. 18316 18317The parser/interpreter integration continues in Phase 5 with the 18318implementation of a complete 2-pass parse (the AML is parsed 18319twice) for each table; This avoids the construction of a huge 18320parse tree and therefore reduces the amount of dynamic memory 18321required by the subsystem. Greater use of the parse object cache 18322means that performance is unaffected. 18323 18324Many comments from the two code reviews have been rolled in. 18325 18326The 64-bit alignment support is complete. 18327 18328------------------------------------------- 18329Summary of changes for this label: 06_30_00 18330 18331With a nod and a tip of the hat to the technology of yesteryear, 18332we've added support in the source code for 80 column output 18333devices. The code is now mostly constrained to 80 columns or 18334less to support environments and editors that 1) cannot display 18335or print more than 80 characters on a single line, and 2) cannot 18336disable line wrapping. 18337 18338A major restructuring of the namespace data structure has been 18339completed. The result is 1) cleaner and more 18340understandable/maintainable code, and 2) a significant reduction 18341in the dynamic memory requirement for each named ACPI object 18342(almost half). 18343 18344------------------------------------------- 18345Summary of changes for this label: 06_23_00 18346 18347Linux support has been added. In order to obtain approval to get 18348the ACPI CA subsystem into the Linux kernel, we've had to make 18349quite a few changes to the base subsystem that will affect all 18350users (all the changes are generic and OS- independent). The 18351effects of these global changes have been somewhat far reaching. 18352Files have been merged and/or renamed and interfaces have been 18353renamed. The major changes are described below. 18354 18355Osd* interfaces renamed to AcpiOs* to eliminate namespace 18356pollution/confusion within our target kernels. All OSD 18357interfaces must be modified to match the new naming convention. 18358 18359Files merged across the subsystem. A number of the smaller source 18360and header files have been merged to reduce the file count and 18361increase the density of the existing files. There are too many 18362to list here. In general, makefiles that call out individual 18363files will require rebuilding. 18364 18365Interpreter files renamed. All interpreter files now have the 18366prefix am* instead of ie* and is*. 18367 18368Header files renamed: The acapi.h file is now acpixf.h. The 18369acpiosd.h file is now acpiosxf.h. We are removing references to 18370the acronym "API" since it is somewhat windowsy. The new name is 18371"external interface" or xface or xf in the filenames.j 18372 18373 18374All manifest constants have been forced to upper case (some were 18375mixed case.) Also, the string "ACPI_" has been prepended to many 18376(not all) of the constants, typedefs, and structs. 18377 18378The globals "DebugLevel" and "DebugLayer" have been renamed 18379"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 18380 18381All other globals within the subsystem are now prefixed with 18382"AcpiGbl_" Internal procedures within the subsystem are now 18383prefixed with "Acpi" (with only a few exceptions). The original 18384two-letter abbreviation for the subcomponent remains after "Acpi" 18385- for example, CmCallocate became AcpiCmCallocate. 18386 18387Added a source code translation/conversion utility. Used to 18388generate the Linux source code, it can be modified to generate 18389other types of source as well. Can also be used to cleanup 18390existing source by removing extraneous spaces and blank lines. 18391Found in tools/acpisrc/* 18392 18393OsdUnMapMemory was renamed to OsdUnmapMemory and then 18394AcpiOsUnmapMemory. (UnMap became Unmap). 18395 18396A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 18397When set to one, this indicates that the caller wants to use the 18398 18399semaphore as a mutex, not a counting semaphore. ACPI CA uses 18400both types. However, implementers of this call may want to use 18401different OS primitives depending on the type of semaphore 18402requested. For example, some operating systems provide separate 18403 18404"mutex" and "semaphore" interfaces - where the mutex interface is 18405much faster because it doesn't have all the overhead of a full 18406semaphore implementation. 18407 18408Fixed a deadlock problem where a method that accesses the PCI 18409address space can block forever if it is the first access to the 18410space. 18411 18412------------------------------------------- 18413Summary of changes for this label: 06_02_00 18414 18415Support for environments that cannot handle unaligned data 18416accesses (e.g. firmware and OS environments devoid of alignment 18417handler technology namely SAL/EFI and the IA-64 Linux kernel) has 18418been added (via configurable macros) in these three areas: - 18419Transfer of data from the raw AML byte stream is done via byte 18420moves instead of word/dword/qword moves. - External objects are 18421aligned within the user buffer, including package elements (sub- 18422objects). - Conversion of name strings to UINT32 Acpi Names is now 18423done byte-wise. 18424 18425The Store operator was modified to mimic Microsoft's 18426implementation when storing to a Buffer Field. 18427 18428Added a check of the BM_STS bit before entering C3. 18429 18430The methods subdirectory has been obsoleted and removed. A new 18431file, cmeval.c subsumes the functionality. 18432 18433A 16-bit (DOS) version of AcpiExec has been developed. The 18434makefile is under the acpiexec directory. 18435