1---------------------------------------- 2 3 428 May 2020. Summary of changes for version 20200528: 5 6 71) ACPICA kernel-resident subsystem: 8 9Removed old/obsolete Visual Studio files which were used to build the 10Windows versions of the ACPICA tools. Since we have moved to Visual 11Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 12project files. The new subdirectory and solution file are located at: 13 14 acpica/generate/msvc2017/AcpiComponents.sln 15 16 172) iASL Compiler/Disassembler and ACPICA tools: 18 19iASL: added support for a new OperationRegion Address Space (subtype): 20PlatformRtMechanism. Support for this new keyword is being released for 21early prototyping. It will appear in the next release of the ACPI 22specification. 23 24iASL: do not optimize the NameString parameter of the CondRefOf operator. 25In the previous iASL compiler release, the NameString parameter of the 26CondRefOf was optimized. There is evidence that some implementations of 27the AML interpreter do not perform the recursive search-to-parent search 28during the execution of the CondRefOf operator. Therefore, the CondRefOf 29operator behaves differently when the NameString parameter is a single 30name segment (a NameSeg) as opposed to a full NamePath (starting at the 31root scope) or a NameString containing parent prefixes. 32 33iASL: Prevent an inadvertent remark message. This change prevents a 34remark if within a control method the following exist: 351) An Operation Region is defined, and 362) A Field operator is defined that refers to the region. 37This happens because at the top level, the Field operator does not 38actually create a new named object, it simply references the operation 39region. 40 41Removed support for the acpinames utility. The acpinames was a simple 42utility used to populate and display the ACPI namespace without executing 43any AML code. However, ACPICA now supports executable opcodes outside of 44control methods. This means that executable AML opcodes such as If and 45Store opcodes need to be executed during table load. Therefore, acpinames 46would need to be updated to match the same behavior as the acpiexec 47utility and since acpiexec can already dump the entire namespace (via the 48'namespace' command), we no longer have the need to maintain acpinames. 49 50 In order to dump the contents of the ACPI namepsace using acpiexec, 51execute the following command from the command line: 52 53 acpiexec -b "n" [aml files] 54 55---------------------------------------- 56 57 5830 April 2020. Summary of changes for version 20200430: 59 601) ACPICA kernel-resident subsystem: 61 62Cleaned up the coding style of a couple of global variables 63(AcpiGbl_NextCmdNum and AcpiProtocolLengths) caught by static analyzers. 64AcpiProtocolLengths was made static, and the definition of 65AcpiGbl_NextCmdNum was moved to acglobal.h. 66 67 682) iASL Compiler/Disassembler and ACPICA tools: 69 70iASL DataTable Compiler: Fixed a segfault on errors that aren't directly 71associated with a field. 72 73Disassembler: has been made more resilient so that it will continue to 74parse AML even if the AML generates ACPI namespace errors. This enables 75iASL to disassemble some AML that may have been compiled using older 76versions of iASL that no longer compile with newer versions of iASL. 77 78iASL: Fixed the required parameters for _NIH and _NIG. Previously, there 79was a mixup where _NIG required one parameter and _NIH required zero 80parameters. This change swaps these parameter requirements. Now it is 81required that _NIH must be called with one parameter and _NIG requires 82zero parameters. 83 84iASL: Allow use of undefined externals as long as they are protected by 85an if (CondRefOf (...)) block when compiling multiple definition blocks. 86 87iASL: Fixed the type override behavior of named objects that are declared 88as External. External declarations will no longer override the type of 89the actual definition if it already exists. 90 91AcpiNames: Added setargv.obj to the MSVC 2017 link sequence to enable 92command line wildcard support on Windows. Note: the AcpiNames utility is 93essentially redundant with the AcpiExec utility (using the "namespace" 94command) and is therefore deprecated. It will be removed in future 95releases of ACPICA. 96 97Disassembler: ignore AE_ALREADY_EXISTS status when parsing create* 98operators. The disassembler is intended to emit existing ASL code as-is. 99Therefore, error messages emitted during disassembly should be ignored or 100handled in a way such that the disassembler can continue to parse the 101AML. This change ignores AE_ALREADY_EXISTS errors during the deferred Op 102parsing for create operators in order to complete parsing ASL termlists. 103 104iASL DataTable Compiler: IVRS table: fix potentially uninitialized 105variable warning. Some compilers catch potential uninitialized variables. 106This is done by examining branches of if/else statements. This change 107replaces an "else if" with an "else" to fix the uninitialized variable 108warning. 109 110 111---------------------------------------- 11226 March 2020. Summary of changes for version 20200326: 113 114 1151) ACPICA kernel-resident subsystem: 116 117Performed a code clean-up to prevent build errors on early versions of 118GCC-10. 119 120Added the NHLT table signature. iASL data table compiler/disassembler 121support for this table is coming soon. 122 123 1242) iASL Compiler/Disassembler and ACPICA tools: 125 126AcpiExec: Fixed several problems with the namespace initialization file 127(-fi<filename> option). Includes fixes to prevent AE_ALREADY_EXISTS 128errors, several seg faults, and enhancements to line parsing within the 129init file. In addition, each object found in the init file and it's new 130value is displayed, as well as any such entries that do not have a 131corresponding name in the namespace. For reference, the syntax for the 132various supported data types are presented below: 133 PCHG 0x777788889999BBBB // Integer 134 \DEV1.STR1 "XYZ" // String 135 BUF1 (88 99 AA) // Buffer 136 PKG1 [0x1111 0x2222] // Package 137 \BF1 0x7980 // BufferField 138 RCRV 0x0123456789ABCDEF // Field Unit 139 140iASL: Added a custom iASL macro __EXPECT__(iASL-Error-Code). This macro 141can be used anywhere in a given ASL file to configure iASL to expect an 142iASL compiler error code on the line where this macro was placed. If the 143error code does not exist, an error is generated. This is intended to be 144used for ACPICA's ASL test suite, but can be used by ASL developers as 145well. 146 147iASL: table compiler: Implemented IVRS IVHD type 11h parsing. The AMD 148IVRS table parsing supported only IVHD type 10h structures. Parsing an 149IVHD type 11h caused the iasl to report unknown subtable type. Add 150necessary structure definition for IVHD type 11h and apply correct 151parsing method based on subtable type. Micha? ?ygowski. 152 153iASL: table compiler: Fixed IVRS table IVHD type 10h reserved field name 154According to AMD IOMMU Specification Revision 3.05 the reserved field 155should be IOMMU Feature Reporting. Change the name of the field to the 156correct one. Micha? ?ygowski. 157 158acpiexec: removed redeclaration of AcpiGbl_DbOpt_NoRegionSupport. Patch 159based on suggestions by David Seifert and Benjamin Berg. 160 161iASL: table compiler: removed an unused variable (DtCompilerParserResult) 162causing linking errors. Patch based on suggestions by David Seifert and 163Benjamin Berg. 164 165iASL: table compiler: make LexBuffer static to avoid linking errors in 166newer compilers. Patch based on suggestions by David Seifert and Benjamin 167Berg. 168 169iASL: fixed type matching between External and Named objects. External 170object types can only be expressed with ACPI object type values that are 171defined in the ACPI spec. However, iASL uses ACPI object type values that 172are local to ACPICA in addition to the values defined in the ACPI spec. 173This change implements type matching to map some object type values 174specific to ACPICA to ones that are defined in the ACPI spec. 175 176iASL: Dropped the type mismatch compiler error that can arise from 177External declarations to a warning. This warning can occur when there is 178a type difference between the external declaration and the actual object 179declaration (when compiling multiple files/modules simultaneously). 180 181iASL: removed an incorrect error message regarding externals. This change 182removes an incorrect error that is emitted when a duplicate external 183declaration does not contain a type that opens a scope. This is incorrect 184because the duplicate external with conflicting types are already caught 185by iASL and it doesn't make any sense to enforce what this conflicting 186type should be. 187 188AcpiXtract: fix AX_IS_TABLE_BLOCK_HEADER macro. This macro needs to be 189surrounded by parens. Otherwise, a logical statement that applies a 190logical not operator to this macro could result in a computation that 191applies the operator to the left side of the logical and but not the 192right. Reported-by: John Levon <john.levon@joyent.com> 193 194Fixed a problem with the local version of sprint(): On 32-bit, the 195provided sprintf() is non-functional: with a size of ACPI_UINT32_MAX, 196String + Size will wrap, meaning End < Start, and 197AcpiUtBoundStringOutput() will never output anything as a result. The 198symptom seen of this was acpixtract failing to output anything -- with a 199custom build that included utprint.c. Signed-off-by: John Levon 200<john.levon@joyent.com> 201 202iASL: Changed the "PlatformCommChannel" ASL keyword to "PCC", as per the 203ACPI specification. 204 205 206---------------------------------------- 20714 February 2020. Summary of changes for version 20200214: 208 209 2101) ACPICA kernel-resident subsystem: 211 212Enable sleep button on ACPI legacy wake: Hibernation (S4) is triggered 213in a guest when it receives a sleep trigger from the hypervisor. When the 214guest resumes from this power state, it does not see the SleepEnabled 215bit. In other words, the sleepHibernation (S4) is triggered in a guest 216when it receives a sleep trigger from the hypervisor. When the guest 217resumes from this power state, it does not see the SleepEnabled bit. In 218other words, the sleep button is not enabled on waking from an S4 state. 219This causes subsequent invocation of sleep state to fail since the 220guest.button is not enabled on waking from an S4 state. This causes 221subsequent invocation of sleep state to fail in the guest. Fix this 222problem by enabling the sleep button in ACPI legacy wake. From Anchal 223Agarwal <anchalag@amazon.com>. 224 225Implemented a new external interface, AcpiAnyGpeStatusSet (). To be used 226for checking the status bits of all enabled GPEs in one go. It is needed 227to distinguish spurious SCIs from genuine ones when deciding whether or 228not to wake up the system from suspend-to-idle. 229 230Generic Makefiles: replace HOST name with ACPI_HOST: Some machines may be 231using HOST in their environment to represent the host name for their 232machines. Avoid this problem by renaming this variable from HOST to 233ACPI_HOST. 234 235MSVC 2017 project files: Enable multiprocessor generation to improve 236build performance. 237 238Added a macro to get the byte width of a Generic Address structure. New 239ACPI_ACCESS_BYTE_WIDTH is in addition to the existing 240ACPI_ACCESS_BIT_WIDTH. From Mika Westerberg. 241 242 2432) iASL Compiler/Disassembler and ACPICA tools: 244 245iASL: Implemented full support for the (optional, rarely used) ReturnType 246and ParameterTypesList for the Method, Function, and External operators. 247For Method declarations, the number of individual ParameterTypes must 248match the declaration of the number of arguments (NumArgs). This also 249Fixes a problem with the External operator where extra/extraneous bytes 250were emitted in the AML code if the optional ReturnType/ParameterTypes 251were specified for a MethodObj declaration. 252New error message: 2531) Method NumArgs count does not match length of ParameterTypes list 254 255iASL: Implemented detection of type mismatches between External 256declarations and named object declarations. Also, detect type mismatches 257between multiple External declarations of the same Name. 258New error messages: 2591) Type mismatch between external declaration and actual object 260declaration detected 2612) Type mismatch between multiple external declarations detected 262 263iASL: Implemented new error messages for External operators that specify 264a ReturnType and/or ParameterTypesList for any object type other than 265control methods (MethodObj). 266New error messages: 2671) Return type is only allowed for Externals declared as MethodObj 2682) Parameter type is only allowed for Externals declared as MethodObj 269 270iASL: Implemented two new remark/warning messages for ASL code that 271creates named objects from within a control method. This is very 272inefficient since the named object must be created and deleted each time 273the method is executed. 274New messages: 2751) Creation of named objects within a method is highly inefficient, use 276globals or method local variables instead (remark) 2772) Static OperationRegion should be declared outside control method 278(warning) 279 280iASL: Improved illegal forward reference detection by adding support to 281detect forward-reference method invocations. 282 283iASL: Detect and issue an error message for NameStrings that contain too 284many individual NameSegs (>255). This is an AML limitation that is 285defined in the ACPI specification. 286New message: 2871) NameString contains too many NameSegs (>255) 288 289acpidump: windows: use GetSystemFirmwareTable API for all tables except 290SSDT. By using this API, acpidump is able to get all tables in the XSDT 291 292iASL: Removed unused parser file and updated msvc2017 project files. 293Removed the obsolete AslCompiler.y from the repository. 294 295iASL: msvc2017: Fixed macros in the file dependency list to prevent 296unnecessary rebuilds. Replace %(Directory) with %(RelativeDir). 297 298Disassembler: Prevent spilling error messages to the output file. All 299errors are directed to the console instead. These error messages 300prevented re-compilation of the resulting disassembled ASL output file 301(.DSL). 302 303 304---------------------------------------- 30510 January 2020. Summary of changes for version 20200110: 306 307 3081) ACPICA kernel-resident subsystem: 309 310Updated all copyrights to 2020. This affects all ACPICA source code 311modules. 312 313 3142) iASL Compiler/Disassembler and ACPICA tools: 315 316ASL test suite (ASLTS): Updated all copyrights to 2020. 317 318Tools and utilities: Updated all signon copyrights to 2020. 319 320iASL: fix forward reference analysis for field declarations. Fixes 321forward reference analysis for field declarations by searching the 322parent scope for the named object when the object is not present in 323the current scope. 324 325iASL: Improved the error output for ALREADY_EXISTS errors. Now, the 326full pathname of the name that already exists is printed. 327 328iASL: Enhance duplicate Case() detection for buffers. Add check for 329buffers with no initializer list (these buffers will be filled with 330zeros at runtime.) 331 332 333---------------------------------------- 33413 December 2019. Summary of changes for version 20191213: 335 336 3371) ACPICA kernel-resident subsystem: 338 339Return a Buffer object for all fields created via the CreateField 340operator. Previously, an Integer would be returned if the size of 341the field was less than or equal to the current size of an Integer. 342Although this goes against the ACPI specification, it provides 343compatibility with other ACPI implementations. Also updated the 344ASLTS test suite to reflect this new behavior. 345 3462) iASL Compiler/Disassembler and ACPICA tools: 347 348iASL: Implemented detection of (and throw an error for) duplicate 349values for Case statements within a single Switch statement. Duplicate 350Integers, Strings, and Buffers are supported. 351 352iASL: Fix error logging issue during multiple file compilation -- 353Switch to the correct input file during error node creation. 354 355iASL: For duplicate named object creation, now emit an error instead 356of a warning - since this will cause a runtime error. 357 358AcpiSrc: Add unix line-ending support for non-Windows builds. 359 360iASL: Add an error condition for an attempt to create a NameString 361with > 255 NameSegs (the max allowable via the AML definition). 362 363 364---------------------------------------- 36518 October 2019. Summary of changes for version 20191018: 366 367 3681) ACPICA kernel-resident subsystem: 369 370Debugger: added a new command: ?Fields [address space ID]?. This command 371dumps the contents of all field units that are defined within the 372namespace with a particular address space ID. 373 374Modified the external interface AcpiLoadTable() to return a table index. 375This table index can be used for unloading a table for debugging. 376 ACPI_STATUS 377 AcpiLoadTable ( 378 ACPI_TABLE_HEADER *Table, 379 UINT32 *TableIndex)) 380 381Implemented a new external interface: AcpiUnloadTable() This new function 382takes a table index as an argument and unloads the table. Useful for 383debugging only. 384 ACPI_STATUS 385 AcpiUnloadTable ( 386 UINT32 TableIndex)) 387 388Ported the AcpiNames utility to use the new table initialization 389sequence. The utility was broken before this change. Also, it was 390required to include most of the AML interpreter into the utility in order 391to process table initialization (module-level code execution.) 392 393Update for results from running Clang V8.0.1. This fixes all "dead 394assignment" warnings. There are still several "Dereference of NULL 395pointer" warnings, but these have been found to be false positive 396warnings. 397 398 3992) iASL Compiler/Disassembler and ACPICA tools: 400 401iASL: numerous table compiler changes to ensure that the usage of 402yacc/bison syntax is POSIX-compliant. 403 404iASL/disassembler: several simple bug fixes in the data table 405disassembler. 406 407Acpiexec: expanded the initialization file (the -fi option) to initialize 408strings, buffers, packages, and field units. 409 410 411---------------------------------------- 41216 August 2019. Summary of changes for version 20190816: 413 414This release is available at https://acpica.org/downloads 415 416 4171) ACPICA kernel-resident subsystem: 418 419Modified the OwnerId mechanism to allow for more Owner Ids. The previous 420limit was 256 Ids, now it is 4096 Ids. This prevents OWNER_ID_LIMIT 421exceptions on machines with a large number of initialization threads, 422many CPU cores and nested initialization control methods. 423 424Introduced acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe() for 425checking if the given GPE (as represented by a GPE device handle and a 426GPE number) is currently active and dispatching it (if that's the case) 427outside of interrupt context. 428 429Table load: exit the interpreter before initializing objects within the 430new table This prevents re-acquiring the interpreter lock when loading 431tables 432 433Added the "Windows 2019" string to the _OSI support (version 1903). Jung- 434uk Kim 435 436Macros: removed pointer math on a null pointer. Causes warnings on some 437compilers and/or tools. Changed ACPI_TO_POINTER to use ACPI_CAST_PTR 438instead of using arithmetic. 439 440Fully deployed the ACPI_PRINTF_LIKE macro. This macro was not being used 441across all "printf-like" internal functions. Also, cleanup all calls to 442such functions (both in 32-bit mode and 64-bit mode) now that they are 443analyzed by the gcc compiler via ACPI_PRINTF_LIKE. 444 445 4462) iASL Compiler/Disassembler and ACPICA tools: 447 448iASL: implemented a new data table compiler flex/bison front-end. This 449change is internal and is not intended to result in changes to the 450compiled code. This new compiler front-end can be invoked using the -tp 451option for now, until the old mechanism is removed. 452 453ASLTS: Implemented a new data table compiler test suite. This test suite 454generates all table templates and compile/disassemble/re-compile/binary- 455compare each file. 456 457iASL: return -1 if AML files were not generated due to compiler errors 458 459iASL: added a warning on use of the now-legacy ASL Processor () keyword. 460 461iASL: added an error on _UID object declaration that returns a String 462within a Processor () declaration. A _UID for a processor must be an 463Integer. 464 465iASL: added a null terminator to name strings that consist only of 466multiple parent prefixes (^) 467 468iASL: added support to compile both ASL and data table files in a single 469command. 470 471Updated the tool generation project files that were recently migrated to 472MSVC 2017 to eliminate all new warnings. The new project files appear in 473the directory \acpica\generate\msvc2017. This change effectively 474deprecates the older project files in \acpica\generate\msvc9. 475 476 477---------------------------------------- 47803 July 2019. Summary of changes for version 20190703: 479 480 4811) ACPICA kernel-resident subsystem: 482 483Remove legacy module-level support code. There were still some remnants 484of the legacy module-level code executions. Since we no longer support 485this option, this is essentially dead code and has been removed from the 486ACPICA source. 487 488iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root 489scope. If these named objects are declared outside the root scope, they 490will not be invoked by any host Operating System. 491 492Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC 493one) can be enabled in two situations. First, the GPEs with existing _Lxx 494and _Exx methods are enabled implicitly by ACPICA during system 495initialization. Second, the GPEs without these methods (like GPEs listed 496by _PRW objects for wakeup devices) need to be enabled directly by the 497code that is going to use them (e.g. ACPI power management or device 498drivers). 499 500In the former case, if the status of a given GPE is set to start with, 501its handler method (either _Lxx or _Exx) needs to be invoked to take care 502of the events (possibly) signaled before the GPE was enabled. In the 503latter case, however, the first caller of AcpiEnableGpe() for a given GPE 504should not be expected to care about any events that might be signaled 505through it earlier. In that case, it is better to clear the status of 506the GPE before enabling it, to prevent stale events from triggering 507unwanted actions (like spurious system resume, for example). 508 509For this reason, modify AcpiEvAddGpeReference() to take an additional 510boolean argument indicating whether or not the GPE status needs to be 511cleared when its reference counter changes from zero to one and make 512AcpiEnableGpe() pass TRUE to it through that new argument. 513 514 5152) iASL Compiler/Disassembler and ACPICA tools: 516 517The tool generation process has been migrated to MSVC 2017, and all 518project files have been upgraded. The new project files appear in the 519directory \acpica\generate\msvc2017. This change effectively deprecates 520the older project files in \acpica\generate\msvc9. 521 522iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root 523scope. If these named objects are declared outside the root scope, they 524will not be invoked by any host Operating System 525 526---------------------------------------- 52709 May 2019. Summary of changes for version 20190509: 528 529 5301) ACPICA kernel-resident subsystem: 531 532Revert commit 6c43e1a ("ACPICA: Clear status of GPEs before enabling 533them") that causes problems with Thunderbolt controllers to occur if a 534dock device is connected at init time (the xhci_hcd and thunderbolt 535modules crash which prevents peripherals connected through them from 536working). Commit 6c43e1a effectively causes commit ecc1165b8b74 ("ACPICA: 537Dispatch active GPEs at init time") to get undone, so the problem 538addressed by commit ecc1165b8b74 appears again as a result of it. 539 540 5412) iASL Compiler/Disassembler and ACPICA tools: 542 543Reverted iASL: Additional forward reference detection. This change 544reverts forward reference detection for field declarations. The feature 545unintentionally emitted AML bytecode with incorrect package lengths for 546some ASL code related to Fields and OperationRegions. This malformed AML 547can cause systems to crash 548during boot. The malformed AML bytecode is emitted in iASL version 54920190329 and 20190405. 550 551iASL: improve forward reference detection. This change improves forward 552reference detection for named objects inside of scopes. If a parse object 553has the OP_NOT_FOUND_DURING_LOAD set, it means that Op is a reference to 554a named object that is declared later in the AML bytecode. This is 555allowed if the reference is inside of a method and the declaration is 556outside of a method like so: 557 558DefinitionBlock(...) 559{ 560 Method (TEST) 561 { 562 Return (NUM0) 563 } 564 Name (NUM0,0) 565} 566 567However, if the declaration and reference are both in the same method or 568outside any methods, this is a forward reference and should be marked as 569an error because it would result in runtime errors. 570 571DefinitionBlock(...) 572{ 573 Name (BUFF, Buffer (NUM0) {}) // Forward reference 574 Name (NUM0, 0x0) 575 576 Method (TEST) 577 { 578 Local0 = NUM1 579 Name (NUM1, 0x1) // Forward reference 580 return (Local0) 581 } 582} 583 584iASL: Implemented additional buffer overflow analysis for BufferField 585declarations. Check if a buffer index argument to a create buffer field 586operation is beyond the end of the target buffer. 587 588This affects these AML operators: 589 590 AML_CREATE_FIELD_OP 591 AML_CREATE_BIT_FIELD_OP 592 AML_CREATE_BYTE_FIELD_OP 593 AML_CREATE_WORD_FIELD_OP 594 AML_CREATE_DWORD_FIELD_OP 595 AML_CREATE_QWORD_FIELD_OP 596 597 There are three conditions that must be satisfied in order to allow this 598validation at compile time: 599 600 1) The length of the target buffer must be an integer constant 601 2) The index specified in the create* must be an integer constant 602 3) For CreateField, the bit length argument must be non-zero. 603 604Example: 605 Name (BUF1, Buffer() {1,2}) 606 CreateField (BUF1, 7, 9, CF03) // 3: ERR 607 608dsdt.asl 14: CreateField (BUF1, 7, 9, CF03) // 3: ERR 609Error 6165 - ^ Buffer index beyond end of 610target buffer 611 612 613---------------------------------------- 61405 April 2019. Summary of changes for version 20190405: 615 616 6171) ACPICA kernel-resident subsystem: 618 619Event Manager: History: Commit 18996f2db918 ("ACPICA: Events: Stop 620unconditionally clearing ACPI IRQs during suspend/resume") was added 621earlier to stop clearing of event status bits unconditionally on suspend 622and resume paths. Though this change fixed an issue on suspend path, it 623introduced regressions on several resume paths. In the case of S0ix, 624events are enabled as part of device suspend path. If status bits for the 625events are set when they are enabled, it could result in premature wake 626from S0ix. If status is cleared for any event that is being enabled so 627that any stale events are cleared out. In case of S0ix, events are 628enabled as part of device suspend path. If status bits for the events are 629set when they are enabled, it could result in premature wake from S0ix. 630 631This change ensures that status is cleared for any event that is being 632enabled so that any stale events are cleared out. 633 634 6352) iASL Compiler/Disassembler and ACPICA tools: 636 637iASL: Implemented an enhanced multiple file compilation that combines 638named objects from all input files to a single namespace. With this 639feature, any unresolved external declarations as well as duplicate named 640object declarations can be detected during compilation rather than 641generating errors much later at runtime. The following commands are 642examples that utilize this feature: 643 iasl dsdt.asl ssdt.asl 644 iasl dsdt.asl ssdt1.asl ssdt2.asl 645 iasl dsdt.asl ssdt*.asl 646 647---------------------------------------- 64829 March 2019. Summary of changes for version 20190329: 649 650 6511) ACPICA kernel-resident subsystem: 652 653Namespace support: Remove the address nodes from global list after method 654termination. The global address list contains pointers to namespace nodes 655that represent Operation Regions. This change properly removes Operation 656Region namespace nodes that are declared dynamically during method 657execution. 658 659Linux: Use a different debug default than ACPICA. There was a divergence 660between Linux and the ACPICA codebases. In order to resolve this 661divergence, Linux now declares its own debug default in aclinux.h 662 663Renamed some internal macros to improve code understanding and 664maintenance. The macros below all operate on single 4-character ACPI 665NameSegs, not generic strings (old -> new): 666 ACPI_NAME_SIZE -> ACPI_NAMESEG_SIZE 667 ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG 668 ACPI_MOVE_NAME -> ACPI_COPY_NAMESEG 669 670Fix for missing comma in array declaration for the AcpiGbl_GenericNotify 671table. 672 673Test suite: Update makefiles, add PCC operation region support 674 675 6762) iASL Compiler/Disassembler and Tools: 677 678iASL: Implemented additional illegal forward reference detection. Now 679detect and emit an error upon detection of a forward reference from a 680Field to an Operation Region. This will fail at runtime if allowed to 681pass the compiler. 682 683AcpiExec: Add an address list check for dynamic Operation Regions. This 684feature performs a sanity test for each node the global address list. 685This is done in order to ensure that all dynamic operation regions are 686properly removed from the global address list and no dangling pointers 687are left behind. 688 689Disassembler: Improved generation of resource pathnames. This change 690improves the code that generates resource descriptor and resource tag 691pathnames. The original code used a bunch of str* C library functions 692that caused warnings on some compilers. 693 694iASL: Removed some uses of strncpy and replaced with memmove. The strncpy 695function can overwrite buffers if the calling code is not very careful. 696In the case of generating a module/table header, use of memmove is a 697better implementation. 698 699 7003) Status of new features that have not been completed at this time: 701 702iASL: Implementing an enhanced multiple file compilation into a single 703namespace feature (Status): This feature will be released soon, and 704allows multiple ASL files to be compiled into the same single namespace. 705By doing so, any unresolved external declarations as well as duplicate 706named object declarations can be detected during compilation (rather than 707later during runtime). The following commands are examples that utilize 708this feature: 709 iasl dsdt.asl ssdt.asl 710 iasl dsdt.asl ssdt1.asl ssdt2.asl 711 iasl dsdt.asl ssdt*.asl 712 713ASL tutorial status: Feedback is being gathered internally and the 714current plan is to publish this tutorial on the ACPICA website after a 715final review by a tech writer. 716 717---------------------------------------- 71815 February 2019. Summary of changes for version 20190215: 719 720 7210) Support for ACPI specification version 6.3: 722 723Add PCC operation region support for the AML interpreter. This adds PCC 724operation region support in the AML interpreter and a default handler for 725acpiexec. The change also renames the PCC region address space keyword to 726PlatformCommChannel. 727 728Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG. 729These methods provide OSPM with health information and device boot 730status. 731 732PDTT: Add TriggerOrder to the PCC Identifier structure. The field value 733defines if the trigger needs to be invoked by OSPM before or at the end 734of kernel crash dump processing/handling operation. 735 736SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT 737is used for describing devices such as heterogeneous processors, 738accelerators, GPUs, and IO devices with integrated compute or DMA 739engines. 740 741MADT: Add support for statistical profiling in GICC. Statistical 742profiling extension (SPE) is an architecture-specific feature for ARM. 743 744MADT: Add online capable flag. If this bit is set, system hardware 745supports enabling this processor during OS runtime. 746 747New Error Disconnect Recover Notification value. There are a number of 748scenarios where system Firmware in collaboration with hardware may 749disconnect one or more devices from the rest of the system for purposes 750of error containment. Firmware can use this new notification value to 751alert OSPM of such a removal. 752 753PPTT: New additional fields in Processor Structure Flags. These flags 754provide more information about processor topology. 755 756NFIT/Disassembler: Change a field name from "Address Range" to "Region 757Type". 758 759HMAT updates: make several existing fields to be reserved as well as 760rename subtable 0 to "memory proximity domain attributes". 761 762GTDT: Add support for new GTDT Revision 3. This revision adds information 763for the EL2 timer. 764 765iASL: Update the HMAT example template for new fields. 766 767iASL: Add support for the new revision of the GTDT (Rev 3). 768 769 7701) ACPICA kernel-resident subsystem: 771 772AML Parser: fix the main AML parse loop to correctly skip erroneous 773extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2- 774byte extended opcodes. If an error occurs during an AML table load, the 775AML parser will continue loading the table by skipping the offending 776opcode. This implements a "load table at any cost" philosophy. 777 778 7792) iASL Compiler/Disassembler and Tools: 780 781iASL: Add checks for illegal object references, such as a reference 782outside of method to an object within a method. Such an object is only 783temporary. 784 785iASL: Emit error for creation of a zero-length operation region. Such a 786region is rather pointless. If encountered, a runtime error is also 787implemented in the interpreter. 788 789Debugger: Fix a possible fault with the "test objects" command. 790 791iASL: Makefile: support parent directory filenames containing embedded 792spaces. 793 794iASL: Update the TPM2 template to revision 4. 795 796iASL: Add the ability to report specific warnings or remarks as errors. 797 798Disassembler: Disassemble OEMx tables as actual AML byte code. 799Previously, these tables were treated as "unknown table". 800 801iASL: Add definition and disassembly for TPM2 revision 3. 802 803iASL: Add support for TPM2 rev 3 compilation. 804 805 806---------------------------------------- 80708 January 2019. Summary of changes for version 20190108: 808 809 8101) ACPICA kernel-resident subsystem: 811 812Updated all copyrights to 2019. This affects all source code modules. 813 814 8152) iASL Compiler/Disassembler and Tools: 816 817ASL test suite (ASLTS): Updated all copyrights to 2019. 818 819Tools: Updated all signon copyrights to 2019. 820 821AcpiExec: Added a new option to dump extra information concerning any 822memory leaks detected by the internal object/cache tracking mechanism. - 823va 824 825iASL: Updated the table template for the TPM2 table to the newest version 826of the table (Revision 4) 827 828 829---------------------------------------- 83013 December 2018. Summary of changes for version 20181213: 831 832 8331) ACPICA Kernel-resident Subsystem: 834 835Fixed some buffer length issues with the GenericSerialBus, related to two 836of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes, 837which are rarely seen in the field. For these, the LEN field of the ASL 838buffer is now ignored. Hans de Goede 839 840Implemented a new object evaluation trace mechanism for control methods 841and data objects. This includes nested control methods. It is 842particularly useful for examining the ACPI execution during system 843initialization since the output is relatively terse. The flag below 844enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface: 845 #define ACPI_LV_EVALUATION 0x00080000 846 847Examples: 848 Enter evaluation : _SB.PCI0._INI (Method) 849 Exit evaluation : _SB.PCI0._INI 850 Enter evaluation : _OSI (Method) 851 Exit evaluation : _OSI 852 Enter evaluation : _SB.PCI0.TEST (Method) 853 Nested method call : _SB.PCI0.NST1 854 Exit nested method : _SB.PCI0.NST1 855 Exit evaluation : _SB.PCI0.TEST 856 857Added two recently-defined _OSI strings. See 858https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi- 859osi. 860 "Windows 2018" 861 "Windows 2018.2" 862 863Update for buffer-to-string conversions via the ToHexString ASL operator. 864A "0x" is now prepended to each of the hex values in the output string. 865This provides compatibility with other ACPI implementations. The ACPI 866specification is somewhat vague on this issue. 867 Example output string after conversion: 868"0x01,0x02,0x03,0x04,0x05,0x06" 869 870Return a run-time error for TermArg expressions within individual package 871elements. Although this is technically supported by the ASL grammar, 872other ACPI implementations do not support this either. Also, this fixes a 873fault if this type of construct is ever encountered (it never has been). 874 875 8762) iASL Compiler/Disassembler and Tools: 877 878iASL: Implemented a new compile option (-ww) that will promote individual 879warnings and remarks to errors. This is intended to enhance the firmware 880build process. 881 882AcpiExec: Implemented a new command-line option (-eo) to support the new 883object evaluation trace mechanism described above. 884 885Disassembler: Added support to disassemble OEMx tables as AML/ASL tables 886instead of a "unknown table" message. 887 888AcpiHelp: Improved support for the "special" predefined names such as 889_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be 890used for "xx" and "x". 891 892---------------------------------------- 89331 October 2018. Summary of changes for version 20181031: 894 895 896An Operation Region regression was fixed by properly adding address 897ranges to a global list during initialization. This allows OS to 898accurately check for overlapping regions between native devices (such as 899PCI) and Operation regions as well as checking for region conflicts 900between two Operation Regions. 901 902Added support for the 2-byte extended opcodes in the code/feature that 903attempts to continue parsing during the table load phase. Skip parsing 904Device declarations (and other extended opcodes) when an error occurs 905during parsing. Previously, only single-byte opcodes were supported. 906 907Cleanup: Simplified the module-level code support by eliminating a 908useless global variable (AcpiGbl_GroupModuleLeveCode). 909 910 9112) iASL Compiler/Disassembler and Tools: 912 913iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE 914could cause a fault in the preprocessor. This was an inadvertent side- 915effect from moving more allocations/frees to the local cache/memory 916mechanism. 917 918iASL: Enhanced error detection by validating that all NameSeg elements 919within a NamePatch actually exist. The previous behavior was spotty at 920best, and such errors could be improperly ignored at compiler time (never 921at runtime, however. There are two new error messages, as shown in the 922examples below: 923 924dsdt.asl 33: CreateByteField (TTTT.BXXX, 1, CBF1) 925Error 6161 - ^ One or more objects within 926the Pathname do not exist (TTTT.BXXX) 927 928dsdt.asl 34: CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1) 929Error 6160 - One or more prefix Scopes do not exist ^ 930(BBBB.CBF1) 931 932iASL: Disassembler/table-compiler: Added support for the static data 933table TPM2 revision 3 (an older version of TPM2). The support has been 934added for the compiler and the disassembler. 935 936Fixed compilation of DOS format data table file on Unix/Linux systems. 937iASL now properly detects line continuations (\) for DOS format data 938table definition language files on when executing on Unix/Linux. 939 940---------------------------------------- 94103 October 2018. Summary of changes for version 20181003: 942 943 9442) iASL Compiler/Disassembler and Tools: 945 946Fixed a regression introduced in version 20180927 that could cause the 947compiler to fault, especially with NamePaths containing one or more 948carats (^). Such as: ^^_SB_PCI0 949 950Added a new remark for the Sleep() operator when the sleep time operand 951is larger than one second. This is a very long time for the ASL/BIOS code 952and may not be what was intended by the ASL writer. 953 954---------------------------------------- 95527 September 2018. Summary of changes for version 20180927: 956 957 9581) ACPICA kernel-resident subsystem: 959 960Updated the GPE support to clear the status of all ACPI events when 961entering any/all sleep states in order to avoid premature wakeups. In 962theory, this may cause some wakeup events to be missed, but the 963likelihood of this is small. This change restores the original behavior 964of the ACPICA code in order to fix a regression seen from the previous 965"Stop unconditionally clearing ACPI IRQs during suspend/resume" change. 966This regression could cause some systems to incorrectly wake immediately. 967 968Updated the execution of the _REG methods during initialization and 969namespace loading to bring the behavior into closer conformance to the 970ACPI specification and other ACPI implementations: 971 972From the ACPI specification 6.2A, section 6.5.4 "_REG (Region): 973 "Control methods must assume all operation regions are inaccessible 974until the _REG(RegionSpace, 1) method is executed" 975 976 "The exceptions to this rule are: 9771. OSPM must guarantee that the following operation regions are always 978accessible: 979 SystemIO operation regions. 980 SystemMemory operation regions when accessing memory returned by the 981System Address Map reporting interfaces." 982 983Since the state of both the SystemIO and SystemMemory address spaces are 984defined by the specification to never change, this ACPICA change ensures 985that now _REG is never called on them. This solves some problems seen in 986the field and provides compatibility with other ACPI implementations. An 987update to the upcoming new version of the ACPI specification will help 988clarify this behavior. 989 990Updated the implementation of support for the Generic Serial Bus. For the 991"bidirectional" protocols, the internal implementation now automatically 992creates a return data buffer of the maximum size (255). This handles the 993worst-case for data that is returned from the serial bus handler, and 994fixes some problems seen in the field. This new buffer is directly 995returned to the ASL. As such, there is no true "bidirectional" buffer, 996which matches the ACPI specification. This is the reason for the "double 997store" seen in the example ASL code in the specification, shown below: 998 999Word Process Call (AttribProcessCall): 1000 OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100) 1001 Field(TOP1, BufferAcc, NoLock, Preserve) 1002 { 1003 FLD1, 8, // Virtual register at command value 1. 1004 } 1005 1006 Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer 1007 // as BUFF 1008 CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word) 1009 1010 Store(0x5416, DATA) // Save 0x5416 into the data buffer 1011 Store(Store(BUFF, FLD1), BUFF) // Invoke a write/read Process Call 1012transaction 1013 // This is the "double store". The write to 1014 // FLD1 returns a new buffer, which is stored 1015 // back into BUFF with the second Store. 1016 1017 10182) iASL Compiler/Disassembler and Tools: 1019 1020iASL: Implemented detection of extraneous/redundant uses of the Offset() 1021operator within a Field Unit list. A remark is now issued for these. For 1022example, the first two of the Offset() operators below are extraneous. 1023Because both the compiler and the interpreter track the offsets 1024automatically, these Offsets simply refer to the current offset and are 1025unnecessary. Note, when optimization is enabled, the iASL compiler will 1026in fact remove the redundant Offset operators and will not emit any AML 1027code for them. 1028 1029 OperationRegion (OPR1, SystemMemory, 0x100, 0x100) 1030 Field (OPR1) 1031 { 1032 Offset (0), // Never needed 1033 FLD1, 32, 1034 Offset (4), // Redundant, offset is already 4 (bytes) 1035 FLD2, 8, 1036 Offset (64), // OK use of Offset. 1037 FLD3, 16, 1038 } 1039dsdt.asl 14: Offset (0), 1040Remark 2158 - ^ Unnecessary/redundant use of Offset 1041operator 1042 1043dsdt.asl 16: Offset (4), 1044Remark 2158 - ^ Unnecessary/redundant use of Offset 1045operator 1046 1047---------------------------------------- 104810 August 2018. Summary of changes for version 20180810: 1049 1050 10511) ACPICA kernel-resident subsystem: 1052 1053Initial ACPI table loading: Attempt to continue loading ACPI tables 1054regardless of malformed AML. Since migrating table initialization to the 1055new module-level code support, the AML interpreter rejected tables upon 1056any ACPI error encountered during table load. This is a problem because 1057non-serious ACPI errors during table load do not necessarily mean that 1058the entire definition block (DSDT or SSDT) is invalid. This change 1059improves the table loading by ignoring some types of errors that can be 1060generated by incorrect AML. This can range from object type errors, scope 1061errors, and index errors. 1062 1063Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs 1064during suspend/resume. The status of ACPI events is no longer cleared 1065when entering the ACPI S5 system state (power off) which caused some 1066systems to power up immediately after turning off power in certain 1067situations. This was a functional regression. It was fixed by clearing 1068the status of all ACPI events again when entering S5 (for system-wide 1069suspend or hibernation the clearing of the status of all events is not 1070desirable, as it might cause the kernel to miss wakeup events sometimes). 1071Rafael Wysocki. 1072 1073 10742) iASL Compiler/Disassembler and Tools: 1075 1076AcpiExec: Enhanced the -fi option (Namespace initialization file). Field 1077elements listed in the initialization file were previously initialized 1078after the table load and before executing module-level code blocks. 1079Recent changes in the module-level code support means that the table load 1080becomes a large control method execution. If fields are used within 1081module-level code and we are executing with the -fi option, the 1082initialization values were used to initialize the namespace object(s) 1083only after the table was finished loading. This change Provides an early 1084initialization of objects specified in the initialization file so that 1085field unit values are populated during the table load (not after the 1086load). 1087 1088AcpiExec: Fixed a small memory leak regression that could result in 1089warnings during exit of the utility. These warnings were similar to 1090these: 1091 0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small] 1092 0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001 1093 1094---------------------------------------- 109529 June 2018. Summary of changes for version 20180629: 1096 1097 10981) iASL Compiler/Disassembler and Tools: 1099 1100iASL: Fixed a regression related to the use of the ASL External 1101statement. Error checking for the use of the External() statement has 1102been relaxed. Previously, a restriction on the use of External meant that 1103the referenced named object was required to be defined in a different 1104table (an SSDT). Thus it would be an error to declare an object as an 1105external and then define the same named object in the same table. For 1106example: 1107 DefinitionBlock (...) 1108 { 1109 External (DEV1) 1110 Device (DEV1){...} // This was an error 1111 } 1112However, this behavior has caused regressions in some existing ASL code, 1113because there is code that depends on named objects and externals (with 1114the same name) being declared in the same table. This change will allow 1115the ASL code above to compile without errors or warnings. 1116 1117iASL: Implemented ASL language extensions for four operators to make some 1118of their arguments optional instead of required: 1119 1) Field (RegionName, AccessType, LockRule, UpdateRule) 1120 2) BankField (RegionName, BankName, BankValue, 1121 AccessType, LockRule, UpdateRule) 1122 3) IndexField (IndexName, DataName, 1123 AccessType, LockRule, UpdateRule) 1124For the Field operators above, the AccessType, LockRule, and UpdateRule 1125are now optional arguments. The default values are: 1126 AccessType: AnyAcc 1127 LockRule: NoLock 1128 UpdateRule: Preserve 1129 4) Mutex (MutexName, SyncLevel) 1130For this operator, the SyncLevel argument is now optional. This argument 1131is rarely used in any meaningful way by ASL code, and thus it makes sense 1132to make it optional. The default value is: 1133 SyncLevel: 0 1134 1135iASL: Attempted use of the ASL Unload() operator now results in the 1136following warning: 1137 "Unload is not supported by all operating systems" 1138This is in fact very true, and the Unload operator may be completely 1139deprecated in the near future. 1140 1141AcpiExec: Fixed a regression for the -fi option (Namespace initialization 1142file. Recent changes in the ACPICA module-level code support altered the 1143table load/initialization sequence . This means that the table load has 1144become a large method execution of the table itself. If Operation Region 1145Fields are used within any module-level code and the -fi option was 1146specified, the initialization values were populated only after the table 1147had completely finished loading (and thus the module-level code had 1148already been executed). This change moves the initialization of objects 1149listed in the initialization file to before the table is executed as a 1150method. Field unit values are now initialized before the table execution 1151is performed. 1152 1153---------------------------------------- 115431 May 2018. Summary of changes for version 20180531: 1155 1156 11571) ACPICA kernel-resident Subsystem: 1158 1159Implemented additional support to help ensure that a DSDT or SSDT is 1160fully loaded even if errors are incurred during the load. The majority of 1161the problems that are seen is the failure of individual AML operators 1162that occur during execution of any module-level code (MLC) existing in 1163the table. This support adds a mechanism to abort the current ASL 1164statement (AML opcode), emit an error message, and to simply move on to 1165the next opcode -- instead of aborting the entire table load. This is 1166different than the execution of a control method where the entire method 1167is aborted upon any error. The goal is to perform a very "best effort" to 1168load the ACPI tables. The most common MLC errors that have been seen in 1169the field are direct references to unresolved ASL/AML symbols (referenced 1170directly without the use of the CondRefOf operator to validate the 1171symbol). This new ACPICA behavior is now compatible with other ACPI 1172implementations. 1173 1174Interpreter: The Unload AML operator is no longer supported for the 1175reasons below. An AE_NOT_IMPLEMENTED exception is returned. 11761) A correct implementation on at least some hosts may not be possible. 11772) Other ACPI implementations do not correctly/fully support it. 11783) It requires host device driver support which is not known to exist. 1179 (To properly support namespace unload out from underneath.) 11804) This AML operator has never been seen in the field. 1181 1182Parser: Added a debug option to dump AML parse sub-trees as they are 1183being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is 1184ACPI_DB_PARSE_TREES. 1185 1186Debugger: Reduced the verbosity for errors incurred during table load and 1187module-level code execution. 1188 1189Completed an investigation into adding a namespace node "owner list" 1190instead of the current "owner ID" associated with namespace nodes. This 1191list would link together all nodes that are owned by an individual 1192control method. The purpose would be to enhance control method execution 1193by speeding up cleanup during method exit (all namespace nodes created by 1194a method are deleted upon method termination.) Currently, the entire 1195namespace must be searched for matching owner IDs if (and only if) the 1196method creates named objects outside of the local scope. However, by far 1197the most common case is that methods create objects locally, not outside 1198the method scope. There is already an ACPICA optimization in place that 1199only searches the entire namespace in the rare case of a method creating 1200objects elsewhere in the namespace. Therefore, it is felt that the 1201overhead of adding an additional pointer to each namespace node to 1202implement the owner list makes this feature unnecessary. 1203 1204 12052) iASL Compiler/Disassembler and Tools: 1206 1207iASL, Disassembler, and Template generator: Implemented support for 1208Revision D of the IORT table. Adds a new subtable that is used to specify 1209SMMUv3 PMCGs. rmurphy-arm. 1210 1211Disassembler: Restored correct table header validation for the "special" 1212ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI 1213table header and must be special-cased. This was a regression that has 1214been present for apparently a long time. 1215 1216AcpiExec: Reduced verbosity of the local exception handler implemented 1217within acpiexec. This handler is invoked by ACPICA upon any exceptions 1218generated during control method execution. A new option was added: -vh 1219restores the original verbosity level if desired. 1220 1221AcpiExec: Changed the default base from decimal to hex for the -x option 1222(set debug level). This simplifies the use of this option and matches the 1223behavior of the corresponding iASL -x option. 1224 1225AcpiExec: Restored a force-exit on multiple control-c (sigint) 1226interrupts. This allows program termination even if other issues cause 1227the control-c to fail. 1228 1229ASL test suite (ASLTS): Added tests for the recently implemented package 1230element resolution mechanism that allows forward references to named 1231objects from individual package elements (this mechanism provides 1232compatibility with other ACPI implementations.) 1233 1234 1235---------------------------------------- 12368 May 2018. Summary of changes for version 20180508: 1237 1238 12391) ACPICA kernel-resident subsystem: 1240 1241Completed the new (recently deployed) package resolution mechanism for 1242the Load and LoadTable ASL/AML operators. This fixes a regression that 1243was introduced in version 20180209 that could result in an 1244AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table 1245(SSDT) that contains package objects. 1246 1247 12482) iASL Compiler/Disassembler and Tools: 1249 1250AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than 12511 MB. This change allows for table offsets within the acpidump file to be 1252up to 8 characters. These changes are backwards compatible with existing 1253acpidump files. 1254 1255 1256---------------------------------------- 125727 April 2018. Summary of changes for version 20180427: 1258 1259 12601) ACPICA kernel-resident subsystem: 1261 1262Debugger: Added support for Package objects in the "Test Objects" 1263command. This command walks the entire namespace and evaluates all named 1264data objects (Integers, Strings, Buffers, and now Packages). 1265 1266Improved error messages for the namespace root node. Originally, the root 1267was referred to by the confusing string "\___". This has been replaced by 1268"Namespace Root" for clarification. 1269 1270Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin 1271Ian King <colin.king@canonical.com>. 1272 1273 12742) iASL Compiler/Disassembler and Tools: 1275 1276iASL: Implemented support to detect and flag illegal forward references. 1277For compatibility with other ACPI implementations, these references are 1278now illegal at the root level of the DSDT or SSDTs. Forward references 1279have always been illegal within control methods. This change should not 1280affect existing ASL/AML code because of the fact that these references 1281have always been illegal in the other ACPI implementation. 1282 1283iASL: Added error messages for the case where a table OEM ID and OEM 1284TABLE ID strings are longer than the ACPI-defined length. Previously, 1285these strings were simply silently truncated. 1286 1287iASL: Enhanced the -tc option (which creates an AML hex file in C, 1288suitable for import into a firmware project): 1289 1) Create a unique name for the table, to simplify use of multiple 1290SSDTs. 1291 2) Add a protection #ifdef in the file, similar to a .h header file. 1292With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd, 1293evan.lloyd@arm.com 1294 1295AcpiExec: Added a new option, -df, to disable the local fault handler. 1296This is useful during debugging, where it may be desired to drop into a 1297debugger on a fault. 1298 1299---------------------------------------- 130013 March 2018. Summary of changes for version 20180313: 1301 1302 13031) ACPICA kernel-resident subsystem: 1304 1305Implemented various improvements to the GPE support: 1306 13071) Dispatch all active GPEs at initialization time so that no GPEs are 1308lost. 13092) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled 1310before devices are enumerated. 13113) Don't unconditionally clear ACPI IRQs during suspend/resume, so that 1312IRQs are not lost. 13134) Add parallel GPE handling to eliminate the possibility of dispatching 1314the same GPE twice. 13155) Dispatch any pending GPEs after enabling for the first time. 1316 1317AcpiGetObjectInfo - removed support for the _STA method. This was causing 1318problems on some platforms. 1319 1320Added a new _OSI string, "Windows 2017.2". 1321 1322Cleaned up and simplified the module-level code support. These changes 1323are in preparation for the eventual removal of the legacy MLC support 1324(deferred execution), replaced by the new MLC architecture which executes 1325the MLC as a table is loaded (DSDT/SSDTs). 1326 1327Changed a compile-time option to a runtime option. Changes the option to 1328ignore ACPI table load-time package resolution errors into a runtime 1329option. Used only for platforms that generate many AE_NOT_FOUND errors 1330during boot. AcpiGbl_IgnorePackageResolutionErrors. 1331 1332Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some 1333ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid 1334compilation errors from unused variables (seen with some compilers). 1335 1336 13372) iASL Compiler/Disassembler and Tools: 1338 1339ASLTS: parallelized execution in order to achieve an (approximately) 2X 1340performance increase. 1341 1342ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves 1343error reporting. 1344 1345---------------------------------------- 134609 February 2018. Summary of changes for version 20180209: 1347 1348 13491) ACPICA kernel-resident subsystem: 1350 1351Completed the final integration of the recent changes to Package Object 1352handling and the module-level AML code support. This allows forward 1353references from individual package elements when the package object is 1354declared from within module-level code blocks. Provides compatibility 1355with other ACPI implementations. 1356 1357The new architecture for the AML module-level code has been completed and 1358is now the default for the ACPICA code. This new architecture executes 1359the module-level code in-line as the ACPI table is loaded/parsed instead 1360of the previous architecture which deferred this code until after the 1361table was fully loaded. This solves some ASL code ordering issues and 1362provides compatibility with other ACPI implementations. At this time, 1363there is an option to fallback to the earlier architecture, but this 1364support is deprecated and is planned to be completely removed later this 1365year. 1366 1367Added a compile-time option to ignore AE_NOT_FOUND exceptions during 1368resolution of named reference elements within Package objects. Although 1369this is potentially a serious problem, it can generate a lot of 1370noise/errors on platforms whose firmware carries around a bunch of unused 1371Package objects. To disable these errors, define 1372ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All 1373errors are always reported for ACPICA applications such as AcpiExec. 1374 1375Fixed a regression related to the explicit type-conversion AML operators 1376(ToXXXX). The regression was introduced early in 2017 but was not seen 1377until recently because these operators are not fully supported by other 1378ACPI implementations and are thus rarely used by firmware developers. The 1379operators are defined by the ACPI specification to not implement the 1380"implicit result object conversion". The regression incorrectly 1381introduced this object conversion for the following explicit conversion 1382operators: 1383 ToInteger 1384 ToString 1385 ToBuffer 1386 ToDecimalString 1387 ToHexString 1388 ToBCD 1389 FromBCD 1390 1391 13922) iASL Compiler/Disassembler and Tools: 1393 1394iASL: Fixed a problem with the compiler constant folding feature as 1395related to the ToXXXX explicit conversion operators. These operators do 1396not support the "implicit result object conversion" by definition. Thus, 1397ASL expressions that use these operators cannot be folded to a simple 1398Store operator because Store implements the implicit conversion. This 1399change uses the CopyObject operator for the ToXXXX operator folding 1400instead. CopyObject is defined to not implement implicit result 1401conversions and is thus appropriate for folding the ToXXXX operators. 1402 1403iASL: Changed the severity of an error condition to a simple warning for 1404the case where a symbol is declared both locally and as an external 1405symbol. This accommodates existing ASL code. 1406 1407AcpiExec: The -ep option to enable the new architecture for module-level 1408code has been removed. It is replaced by the -dp option which instead has 1409the opposite effect: it disables the new architecture (the default) and 1410enables the legacy architecture. When the legacy code is removed in the 1411future, the -dp option will be removed also. 1412 1413---------------------------------------- 141405 January 2018. Summary of changes for version 20180105: 1415 1416 14171) ACPICA kernel-resident subsystem: 1418 1419Updated all copyrights to 2018. This affects all source code modules. 1420 1421Fixed a possible build error caused by an unresolved reference to the 1422AcpiUtSafeStrncpy function. 1423 1424Removed NULL pointer arithmetic in the various pointer manipulation 1425macros. All "(void *) NULL" constructs are converted to "(void *) 0". 1426This eliminates warnings/errors in newer C compilers. Jung-uk Kim. 1427 1428Added support for A32 ABI compilation, which uses the ILP32 model. Anuj 1429Mittal. 1430 1431 14322) iASL Compiler/Disassembler and Tools: 1433 1434ASLTS: Updated all copyrights to 2018. 1435 1436Tools: Updated all signon copyrights to 2018. 1437 1438AcpiXtract: Fixed a regression related to ACPI table signatures where the 1439signature was truncated to 3 characters (instead of 4). 1440 1441AcpiExec: Restore the original terminal mode after the use of the -v and 1442-vd options. 1443 1444ASLTS: Deployed the iASL __METHOD__ macro across the test suite. 1445 1446---------------------------------------- 144714 December 2017. Summary of changes for version 20171214: 1448 1449 14501) ACPICA kernel-resident subsystem: 1451 1452Fixed a regression in the external (public) AcpiEvaluateObjectTyped 1453interface where the optional "pathname" argument had inadvertently become 1454a required argument returning an error if omitted (NULL pointer 1455argument). 1456 1457Fixed two possible memory leaks related to the recently developed "late 1458resolution" of reference objects within ASL Package Object definitions. 1459 1460Added two recently defined _OSI strings: "Windows 2016" and "Windows 14612017". Mario Limonciello. 1462 1463Implemented and deployed a safer version of the C library function 1464strncpy: AcpiUtSafeStrncpy. The intent is to at least prevent the 1465creation of unterminated strings as a possible result of a standard 1466strncpy. 1467 1468Cleaned up and restructured the global variable file (acglobal.h). There 1469are many changes, but no functional changes. 1470 1471 14722) iASL Compiler/Disassembler and Tools: 1473 1474iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the 1475optional OemData field at the end of the table was incorrectly required 1476for proper compilation. It is now correctly an optional field. 1477 1478ASLTS: The entire suite was converted from standard ASL to the ASL+ 1479language, using the ASL-to-ASL+ converter which is integrated into the 1480iASL compiler. A binary compare of all output files has verified the 1481correctness of the conversion. 1482 1483iASL: Fixed the source code build for platforms where "char" is unsigned. 1484This affected the iASL lexer only. Jung-uk Kim. 1485 1486---------------------------------------- 148710 November 2017. Summary of changes for version 20171110: 1488 1489 14901) ACPICA kernel-resident subsystem: 1491 1492This release implements full support for ACPI 6.2A: 1493 NFIT - Added a new subtable, "Platform Capabilities Structure" 1494No other changes to ACPICA were required, since ACPI 6.2A is primarily an 1495errata release of the specification. 1496 1497Other ACPI table changes: 1498 IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo 1499 PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy 1500Linton 1501 1502Utilities: Modified the string/integer conversion functions to use 1503internal 64-bit divide support instead of a native divide. On 32-bit 1504platforms, a 64-bit divide typically requires a library function which 1505may not be present in the build (kernel or otherwise). 1506 1507Implemented a targeted error message for timeouts returned from the 1508Embedded Controller device driver. This is seen frequently enough to 1509special-case an AE_TIME returned from an EC operation region access: 1510 "Timeout from EC hardware or EC device driver" 1511 1512Changed the "ACPI Exception" message prefix to "ACPI Error" so that all 1513runtime error messages have the identical prefix. 1514 1515 15162) iASL Compiler/Disassembler and Tools: 1517 1518AcpiXtract: Fixed a problem with table header detection within the 1519acpidump file. Processing a table could be ended early if a 0x40 (@) 1520appears in the original binary table, resulting in the @ symbol appearing 1521in the decoded ASCII field at the end of the acpidump text line. The 1522symbol caused acpixtract to incorrectly think it had reached the end of 1523the current table and the beginning of a new table. 1524 1525AcpiXtract: Added an option (-f) to ignore some errors during table 1526extraction. This initial implementation ignores non-ASCII and non- 1527printable characters found in the acpidump text file. 1528 1529TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics 1530for ASLTS. This feature is used to track memory allocations from 1531different memory caches within the ACPICA code. At the end of an ASLTS 1532run, these memory statistics are recorded and stored in a log file. 1533 1534Debugger (user-space version): Implemented a simple "Background" command. 1535Creates a new thread to execute a control method in the background, while 1536control returns to the debugger prompt to allow additional commands. 1537 Syntax: Background <Namepath> [Arguments] 1538 1539---------------------------------------- 154029 September 2017. Summary of changes for version 20170929: 1541 1542 15431) ACPICA kernel-resident subsystem: 1544 1545Redesigned and implemented an improved ASL While() loop timeout 1546mechanism. This mechanism is used to prevent infinite loops in the kernel 1547AML interpreter caused by either non-responsive hardware or incorrect AML 1548code. The new implementation uses AcpiOsGetTimer instead of a simple 1549maximum loop count, and is thus more accurate and constant across 1550different machines. The default timeout is currently 30 seconds, but this 1551may be adjusted later. 1552 1553Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to 1554better reflect the new implementation of the loop timeout mechanism. 1555 1556Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support 1557and to fix an off-by-one error. Jung-uk Kim. 1558 1559Fixed an EFI build problem by updating the makefiles to for a new file 1560that was added, utstrsuppt.c 1561 1562 15632) iASL Compiler/Disassembler and Tools: 1564 1565Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This 1566includes support in the table disassembler, compiler, and template 1567generator. 1568 1569iASL: Added an exception for an illegal type of recursive method 1570invocation. If a method creates named objects, the first recursive call 1571will fail at runtime. This change adds an error detection at compile time 1572to catch the problem up front. Note: Marking such a method as 1573"serialized" will not help with this problem, because the same thread can 1574acquire the method mutex more than once. Example compiler and runtime 1575output: 1576 1577 Method (MTH1) 1578 { 1579 Name (INT1, 1) 1580 MTH1 () 1581 } 1582 1583 dsdt.asl 22: MTH1 () 1584 Error 6152 - ^ Illegal recursive call to method 1585 that creates named objects (MTH1) 1586 1587Previous runtime exception: 1588 ACPI Error: [INT1] Namespace lookup failure, 1589 AE_ALREADY_EXISTS (20170831/dswload2-465) 1590 1591iASL: Updated support for External() opcodes to improve namespace 1592management and error detection. These changes are related to issues seen 1593with multiple-segment namespace pathnames within External declarations, 1594such as below: 1595 1596 External(\_SB.PCI0.GFX0, DeviceObj) 1597 External(\_SB.PCI0.GFX0.ALSI) 1598 1599iASL: Implemented support for multi-line error/warning messages. This 1600enables more detailed and helpful error messages as below, from the 1601initial deployment for the duplicate names error: 1602 1603 DSDT.iiii 1692: Device(PEG2) { 1604 Error 6074 - ^ Name already exists in scope 1605(PEG2) 1606 1607 Original name creation/declaration below: 1608 DSDT.iiii 93: External(\_SB.PCI0.PEG2, DeviceObj) 1609 1610AcpiXtract: Added additional flexibility to support differing input hex 1611dump formats. Specifically, hex dumps that contain partial disassembly 1612and/or comments within the ACPI table data definition. There exist some 1613dump utilities seen in the field that create this type of hex dump (such 1614as Simics). For example: 1615 1616 DSDT @ 0xdfffd0c0 (10999 bytes) 1617 Signature DSDT 1618 Length 10999 1619 Revision 1 1620 Checksum 0xf3 (Ok) 1621 OEM_ID BXPC 1622 OEM_table_id BXDSDT 1623 OEM_revision 1 1624 Creator_id 1280593481 1625 Creator_revision 537399345 1626 0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00 1627 ... 1628 2af0: 5f 4c 30 46 00 a4 01 1629 1630Test suite: Miscellaneous changes/fixes: 1631 More cleanup and simplification of makefiles 1632 Continue compilation of test cases after a compile failure 1633 Do not perform binary compare unless both files actually exist 1634 1635iASL: Performed some code/module restructuring. Moved all memory 1636allocation functions to new modules. Two new files, aslallocate.c and 1637aslcache.c 1638 1639---------------------------------------- 164031 August 2017. Summary of changes for version 20170831: 1641 1642 16431) ACPICA kernel-resident subsystem: 1644 1645Implemented internal support for full 64-bit addresses that appear in all 1646Generic Address Structure (GAS) structures. Previously, only the lower 32 1647bits were used. Affects the use of GAS structures in the FADT and other 1648tables, as well as the GAS structures passed to the AcpiRead and 1649AcpiWrite public external interfaces that are used by drivers. Lv Zheng. 1650 1651Added header support for the PDTT ACPI table (Processor Debug Trigger 1652Table). Full support in the iASL Data Table Compiler and disassembler is 1653forthcoming. 1654 1655 16562) iASL Compiler/Disassembler and Tools: 1657 1658iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor 1659Properties Topology Table) where a flag bit was specified in the wrong 1660bit position ("Line Size Valid", bit 6). 1661 1662iASL: Implemented support for Octal integer constants as defined by the 1663ASL language grammar, per the ACPI specification. Any integer constant 1664that starts with a zero is an octal constant. For example, 1665 Store (037777, Local0) /* Octal constant */ 1666 Store (0x3FFF, Local0) /* Hex equivalent */ 1667 Store (16383, Local0) /* Decimal equivalent */ 1668 1669iASL: Improved overflow detection for 64-bit string conversions during 1670compilation of integer constants. "Overflow" in this case means a string 1671that represents an integer that is too large to fit into a 64-bit value. 1672Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to 1673the low-order 32 bits with a warning, as previously implemented. Several 1674new exceptions are defined that indicate a 64-bit overflow, as well as 1675the base (radix) that was used during the attempted conversion. Examples: 1676 Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF // AE_HEX_OVERFLOW 1677 Local0 = 01111222233334444555566667777 // AE_OCTAL_OVERFLOW 1678 Local0 = 11112222333344445555666677778888 // AE_DECIMAL_OVERFLOW 1679 1680iASL: Added a warning for the case where a ResourceTemplate is declared 1681with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In 1682this case, the resulting template is created with a single END_TAG 1683descriptor, which is essentially useless. 1684 1685iASL: Expanded the -vw option (ignore specific warnings/remarks) to 1686include compilation error codes as well. 1687 1688---------------------------------------- 168928 July 2017. Summary of changes for version 20170728: 1690 1691 16921) ACPICA kernel-resident subsystem: 1693 1694Fixed a regression seen with small resource descriptors that could cause 1695an inadvertent AE_AML_NO_RESOURCE_END_TAG exception. 1696 1697AML interpreter: Implemented a new feature that allows forward references 1698from individual named references within package objects that are 1699contained within blocks of "module-level code". This provides 1700compatibility with other ACPI implementations and supports existing 1701firmware that depends on this feature. Example: 1702 1703 Name (ABCD, 1) 1704 If (ABCD) /* An If() at module-level */ 1705 { 1706 Name (PKG1, Package() 1707 { 1708 INT1 /* Forward reference to object INT1 1709*/ 1710 }) 1711 Name (INT1, 0x1234) 1712 } 1713 1714AML Interpreter: Fixed a problem with the Alias() operator where aliases 1715to some ASL objects were not handled properly. Objects affected are: 1716Mutex, Event, and OperationRegion. 1717 1718AML Debugger: Enhanced to properly handle AML Alias objects. These 1719objects have one level of indirection which was not fully supported by 1720the debugger. 1721 1722Table Manager: Added support to detect and ignore duplicate SSDTs within 1723the XSDT/RSDT. This error in the XSDT has been seen in the field. 1724 1725EFI and EDK2 support: 1726 Enabled /WX flag for MSVC builds 1727 Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer 1728 Added local support for 64-bit multiply and shift operations 1729 Added support to compile acpidump.efi on Windows 1730 Added OSL function stubs for interfaces not used under EFI 1731 1732Added additional support for the _DMA predefined name. _DMA returns a 1733buffer containing a resource template. This change add support within the 1734resource manager (AcpiWalkResourceBuffer) to walk and parse this list of 1735resource descriptors. Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> 1736 1737 17382) iASL Compiler/Disassembler and Tools: 1739 1740iASL: Fixed a problem where the internal input line buffer(s) could 1741overflow if there are very long lines in the input ASL source code file. 1742Implemented buffer management that automatically increases the size of 1743the buffers as necessary. 1744 1745iASL: Added an option (-vx) to "expect" particular remarks, warnings and 1746errors. If the specified exception is not raised during compilation, the 1747compiler emits an error. This is intended to support the ASL test suite, 1748but may be useful in other contexts. 1749 1750iASL: Implemented a new predefined macro, __METHOD__, which returns a 1751string containing the name of the current control method that is being 1752compiled. 1753 1754iASL: Implemented debugger and table compiler support for the SDEI ACPI 1755table (Software Delegated Exception Interface). James Morse 1756<james.morse@arm.com> 1757 1758Unix/Linux makefiles: Added an option to disable compile optimizations. 1759The disable occurs when the NOOPT flag is set to TRUE. 1760theracermaster@gmail.com 1761 1762Acpidump: Added support for multiple DSDT and FACS tables. This can occur 1763when there are different tables for 32-bit versus 64-bit. 1764 1765Enhanced error reporting for the ASL test suite (ASLTS) by removing 1766unnecessary/verbose text, and emit the actual line number where an error 1767has occurred. These changes are intended to improve the usefulness of the 1768test suite. 1769 1770---------------------------------------- 177129 June 2017. Summary of changes for version 20170629: 1772 1773 17741) ACPICA kernel-resident subsystem: 1775 1776Tables: Implemented a deferred ACPI table verification. This is useful 1777for operating systems where the tables cannot be verified in the early 1778initialization stage due to early memory mapping limitations on some 1779architectures. Lv Zheng. 1780 1781Tables: Removed the signature validation for dynamically loaded tables. 1782Provides compatibility with other ACPI implementations. Previously, only 1783SSDT tables were allowed, as per the ACPI specification. Now, any table 1784signature can be used via the Load() operator. Lv Zheng. 1785 1786Tables: Fixed several mutex issues that could cause errors during table 1787acquisition. Lv Zheng. 1788 1789Tables: Fixed a problem where an ACPI warning could be generated if a 1790null pointer was passed to the AcpiPutTable interface. Lv Zheng. 1791 1792Tables: Added a mechanism to handle imbalances for the AcpiGetTable and 1793AcpiPutTable interfaces. This applies to the "late stage" table loading 1794when the use of AcpiPutTable is no longer required (since the system 1795memory manager is fully running and available). Lv Zheng. 1796 1797Fixed/Reverted a regression during processing of resource descriptors 1798that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG 1799exception in this case. 1800 1801Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the 1802I/O Remapping specification. Robin Murphy <robin.murphy@arm.com> 1803 1804Interpreter: Fixed a possible fault if an Alias operator with an invalid 1805or duplicate target is encountered during Alias creation in 1806AcpiExCreateAlias. Alex James <theracermaster@gmail.com> 1807 1808Added an option to use designated initializers for function pointers. 1809Kees Cook <keescook@google.com> 1810 1811 18122) iASL Compiler/Disassembler and Tools: 1813 1814iASL: Allow compilation of External declarations with target pathnames 1815that refer to existing named objects within the table. Erik Schmauss. 1816 1817iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a 1818FieldUnit name also is declared via External in the same table. Erik 1819Schmauss. 1820 1821iASL: Allow existing scope names within pathnames used in External 1822statements. For example: 1823 External (ABCD.EFGH) // ABCD exists, but EFGH is truly external 1824 Device (ABCD) 1825 1826iASL: IORT ACPI table: Implemented changes required to decode the new 1827Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table 1828compiler. Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com> 1829 1830Disassembler: Don't abort disassembly on errors from External() 1831statements. Erik Schmauss. 1832 1833Disassembler: fixed a possible fault when one of the Create*Field 1834operators references a Resource Template. ACPICA Bugzilla 1396. 1835 1836iASL: In the source code, resolved some naming inconsistences across the 1837parsing support. Fixes confusion between "Parse Op" and "Parse Node". 1838Adds a new file, aslparseop.c 1839 1840---------------------------------------- 184131 May 2017. Summary of changes for version 20170531: 1842 1843 18440) ACPI 6.2 support: 1845 1846The ACPI specification version 6.2 has been released and is available at 1847http://uefi.org/specifications 1848 1849This version of ACPICA fully supports the ACPI 6.2 specification. Changes 1850are summarized below. 1851 1852New ACPI tables (Table Compiler/Disassembler/Templates): 1853 HMAT (Heterogeneous Memory Attributes Table) 1854 WSMT (Windows SMM Security Mitigation Table) 1855 PPTT (Processor Properties Topology Table) 1856 1857New subtables for existing ACPI tables: 1858 HEST (New subtable, Arch-deferred machine check) 1859 SRAT (New subtable, Arch-specific affinity structure) 1860 PCCT (New subtables, Extended PCC subspaces (types 3 and 4)) 1861 1862Simple updates for existing ACPI tables: 1863 BGRT (two new flag bits) 1864 HEST (New bit defined for several subtables, GHES_ASSIST) 1865 1866New Resource Descriptors and Resource macros (Compiler/Disassembler): 1867 PinConfig() 1868 PinFunction() 1869 PinGroup() 1870 PinGroupConfig() 1871 PinGroupFunction() 1872 New type for hardware error notification (section 18.3.2.9) 1873 1874New predefined names/methods (Compiler/Interpreter): 1875 _HMA (Heterogeneous Memory Attributes) 1876 _LSI (Label Storage Information) 1877 _LSR (Label Storage Read) 1878 _LSW (Label Storage Write) 1879 1880ASL grammar/macro changes (Compiler): 1881 For() ASL macro, implemented with the AML while operator 1882 Extensions to Concatenate operator 1883 Support for multiple definition blocks in same ASL file 1884 Clarification for Buffer operator 1885 Allow executable AML code underneath all scopes (Devices, etc.) 1886 Clarification/change for the _OSI return value 1887 ASL grammar update for reference operators 1888 Allow a zero-length string for AML filename in DefinitionBlock 1889 1890Miscellaneous: 1891 New device object notification value 1892 Remove a notify value (0x0C) for graceful shutdown 1893 New UUIDs for processor/cache properties and 1894 physical package property 1895 New _HID, ACPI0014 (Wireless Power Calibration Device) 1896 1897 18981) ACPICA kernel-resident subsystem: 1899 1900Added support to disable ACPI events on hardware-reduced platforms. 1901Eliminates error messages of the form "Could not enable fixed event". Lv 1902Zheng 1903 1904Fixed a problem using Device/Thermal objects with the ObjectType and 1905DerefOf ASL operators. This support had not been fully/properly 1906implemented. 1907 1908Fixed a problem where if a Buffer object containing a resource template 1909was longer than the actual resource template, an error was generated -- 1910even though the AML is legal. This case has been seen in the field. 1911 1912Fixed a problem with the header definition of the MADT PCAT_COMPAT flag. 1913The values for DUAL_PIC and MULTIPLE_APIC were reversed. 1914 1915Added header file changes for the TPM2 ACPI table. Update to new version 1916of the TCG specification. Adds a new TPM2 subtable for ARM SMC. 1917 1918Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex. 1919These interfaces are intended to be used only in conjunction with the 1920predefined _DLM method (Device Lock Method). "This object appears in a 1921device scope when AML access to the device must be synchronized with the 1922OS environment". 1923 1924Example Code and Data Size: These are the sizes for the OS-independent 1925acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1926debug version of the code includes the debug output trace mechanism and 1927has a much larger code and data size. 1928 1929 Current Release: 1930 Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total 1931 Debug Version: 204.0K Code, 84.3K Data, 288.3K Total 1932 Previous Release: 1933 Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total 1934 Debug Version: 207.5K Code, 82.7K Data, 290.2K Total 1935 1936 19372) iASL Compiler/Disassembler and Tools: 1938 1939iASL: Fixed a problem where an External() declaration could not refer to 1940a Field Unit. Erik Schmauss. 1941 1942Disassembler: Improved support for the Switch/Case operators. This 1943feature will disassemble AML code back to the original Switch operators 1944when possible, instead of an If..Else sequence. David Box 1945 1946iASL and disassembler: Improved the handling of multiple extraneous 1947parentheses for both ASL input and disassembled ASL output. 1948 1949Improved the behavior of the iASL compiler and disassembler to detect 1950improper use of external declarations 1951 1952Disassembler: Now aborts immediately upon detection of an unknown AML 1953opcode. The AML parser has no real way to recover from this, and can 1954result in the creation of an ill-formed parse tree that causes errors 1955later during the disassembly. 1956 1957All tools: Fixed a problem where the Unix application OSL did not handle 1958control-c correctly. For example, a control-c could incorrectly wake the 1959debugger. 1960 1961AcpiExec: Improved the Control-C handling and added a handler for 1962segmentation faults (SIGSEGV). Supports both Windows and Unix-like 1963environments. 1964 1965Reduced the verbosity of the generic unix makefiles. Previously, each 1966compilation displayed the full set of compiler options. This has been 1967eliminated as the options are easily inspected within the makefiles. Each 1968compilation now results in a single line of output. 1969 1970---------------------------------------- 197103 March 2017. Summary of changes for version 20170303: 1972 1973 19740) ACPICA licensing: 1975 1976The licensing information at the start of each source code module has 1977been updated. In addition to the Intel license, the dual GPLv2/BSD 1978license has been added for completeness. Now, a single version of the 1979source code should be suitable for all ACPICA customers. This is the 1980major change for this release since it affects all source code modules. 1981 1982 19831) ACPICA kernel-resident subsystem: 1984 1985Fixed two issues with the common asltypes.h header that could cause 1986problems in some environments: (Kim Jung-uk) 1987 Removed typedef for YY_BUFFER_STATE ? 1988 Fixes an error with earlier versions of Flex. 1989 Removed use of FILE typedef (which is only defined in stdio.h) 1990 1991 19922) iASL Compiler/Disassembler and Tools: 1993 1994Disassembler: fixed a regression introduced in 20170224. A fix for a 1995memory leak related to resource descriptor tags (names) could fault when 1996the disassembler was generated with 64-bit compilers. 1997 1998The ASLTS test suite has been updated to implement a new testing 1999architecture. During generation of the suite from ASL source, both the 2000ASL and ASL+ compilers are now validated, as well as the disassembler 2001itself (Erik Schmauss). The architecture executes as follows: 2002 2003 For every ASL source module: 2004 Compile (legacy ASL compilation) 2005 Disassemble the resulting AML to ASL+ source code 2006 Compile the new ASL+ module 2007 Perform a binary compare on the legacy AML and the new ASL+ AML 2008 The ASLTS suite then executes normally using the AML binaries. 2009 2010---------------------------------------- 201124 February 2017. Summary of changes for version 20170224: 2012 2013 20141) ACPICA kernel-resident subsystem: 2015 2016Interpreter: Fixed two issues with the control method return value auto- 2017repair feature, where an attempt to double-delete an internal object 2018could result in an ACPICA warning (for _CID repair and others). No fault 2019occurs, however, because the attempted deletion (actually a release to an 2020internal cache) is detected and ignored via object poisoning. 2021 2022Debugger: Fixed an AML interpreter mutex issue during the single stepping 2023of control methods. If certain debugger commands are executed during 2024stepping, a mutex acquire/release error could occur. Lv Zheng. 2025 2026Fixed some issues generating ACPICA with the Intel C compiler by 2027restoring the original behavior and compiler-specific include file in 2028acenv.h. Lv Zheng. 2029 2030Example Code and Data Size: These are the sizes for the OS-independent 2031acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2032debug version of the code includes the debug output trace mechanism and 2033has a much larger code and data size. 2034 2035 Current Release: 2036 Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total 2037 Debug Version: 207.5K Code, 82.7K Data, 290.2K Total 2038 Previous Release: 2039 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 2040 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 2041 2042 20432) iASL Compiler/Disassembler and Tools: 2044 2045iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion 2046tool has been designed, implemented, and included in this release. The 2047key feature of this utility is that the original comments within the 2048input ASL file are preserved during the conversion process, and included 2049within the converted ASL+ file -- thus creating a transparent conversion 2050of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss. 2051 2052 Usage: iasl -ca <ASL-filename> // Output is a .dsl file with 2053converted code 2054 2055iASL/Disassembler: Improved the detection and correct disassembly of 2056Switch/Case operators. This feature detects sequences of if/elseif/else 2057operators that originated from ASL Switch/Case/Default operators and 2058emits the original operators. David Box. 2059 2060iASL: Improved the IORT ACPI table support in the following areas. Lv 2061Zheng: 2062 Clear MappingOffset if the MappingCount is zero. 2063 Fix the disassembly of the SMMU GSU interrupt offset. 2064 Update the template file for the IORT table. 2065 2066Disassembler: Enhanced the detection and disassembly of resource 2067template/descriptor within a Buffer object. An EndTag descriptor is now 2068required to have a zero second byte, since all known ASL compilers emit 2069this. This helps eliminate incorrect decisions when a buffer is 2070disassembled (false positives on resource templates). 2071 2072---------------------------------------- 207319 January 2017. Summary of changes for version 20170119: 2074 2075 20761) General ACPICA software: 2077 2078Entire source code base: Added the 2017 copyright to all source code 2079legal/licensing module headers and utility/tool signons. This includes 2080the standard Linux dual-license header. This affects virtually every file 2081in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and 2082the ACPICA test suite. 2083 2084 20852) iASL Compiler/Disassembler and Tools: 2086 2087iASL: Removed/fixed an inadvertent remark when a method argument 2088containing a reference is used as a target operand within the method (and 2089never used as a simple argument), as in the example below. Jeffrey Hugo. 2090 2091 dsdt.asl 1507: Store(0x1, Arg0) 2092 Remark 2146 - ^ Method Argument is never used (Arg0) 2093 2094All tools: Removed the bit width of the compiler that generated the tool 2095from the common signon for all user space tools. This proved to be 2096confusing and unnecessary. This includes similar removal of HARDWARE_NAME 2097from the generic makefiles (Thomas Petazzoni). Example below. 2098 2099 Old: 2100 ASL+ Optimizing Compiler version 20170119-32 2101 ASL+ Optimizing Compiler version 20170119-64 2102 2103 New: 2104 ASL+ Optimizing Compiler version 20170119 2105 2106---------------------------------------- 210722 December 2016. Summary of changes for version 20161222: 2108 2109 21101) ACPICA kernel-resident subsystem: 2111 2112AML Debugger: Implemented a new mechanism to simplify and enhance 2113debugger integration into all environments, including kernel debuggers 2114and user-space utilities, as well as remote debug services. This 2115mechanism essentially consists of new OSL interfaces to support debugger 2116initialization/termination, as well as wait/notify interfaces to perform 2117the debugger handshake with the host. Lv Zheng. 2118 2119 New OSL interfaces: 2120 AcpiOsInitializeDebugger (void) 2121 AcpiOsTerminateDebugger (void) 2122 AcpiOsWaitCommandReady (void) 2123 AcpiOsNotifyCommandComplete (void) 2124 2125 New OS services layer: 2126 osgendbg.c -- Example implementation, and used for AcpiExec 2127 2128Update for Generic Address Space (GAS) support: Although the AccessWidth 2129and/or BitOffset fields of the GAS are not often used, this change now 2130fully supports these fields. This affects the internal support for FADT 2131registers, registers in other ACPI data tables, and the AcpiRead and 2132AcpiWrite public interfaces. Lv Zheng. 2133 2134Sleep support: In order to simplify integration of ACPI sleep for the 2135various host operating systems, a new OSL interface has been introduced. 2136AcpiOsEnterSleep allows the host to perform any required operations 2137before the final write to the sleep control register(s) is performed by 2138ACPICA. Lv Zheng. 2139 2140 New OSL interface: 2141 AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue) 2142 2143 Called from these internal interfaces: 2144 AcpiHwLegacySleep 2145 AcpiHwExtendedSleep 2146 2147EFI support: Added a very small EFI/ACPICA example application. Provides 2148a simple demo for EFI integration, as well as assisting with resolution 2149of issues related to customer ACPICA/EFI integration. Lv Zheng. See: 2150 2151 source/tools/efihello/efihello.c 2152 2153Local C library: Implemented several new functions to enhance ACPICA 2154portability, for environments where these clib functions are not 2155available (such as EFI). Lv Zheng: 2156 putchar 2157 getchar 2158 strpbrk 2159 strtok 2160 memmove 2161 2162Fixed a regression where occasionally a valid resource descriptor was 2163incorrectly detected as invalid at runtime, and a 2164AE_AML_NO_RESOURCE_END_TAG was returned. 2165 2166Fixed a problem with the recently implemented support that enables 2167control method invocations as Target operands to many ASL operators. 2168Warnings of this form: "Needed type [Reference], found [Processor]" were 2169seen at runtime for some method invocations. 2170 2171Example Code and Data Size: These are the sizes for the OS-independent 2172acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2173debug version of the code includes the debug output trace mechanism and 2174has a much larger code and data size. 2175 2176 Current Release: 2177 Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total 2178 Debug Version: 201.7K Code, 82.7K Data, 284.4K Total 2179 Previous Release: 2180 Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total 2181 Debug Version: 201.3K Code, 82.7K Data, 284.0K Total 2182 2183 21842) iASL Compiler/Disassembler and Tools: 2185 2186Disassembler: Enhanced output by adding the capability to detect and 2187disassemble ASL Switch/Case statements back to the original ASL source 2188code instead of if/else blocks. David Box. 2189 2190AcpiHelp: Split a large file into separate files based upon 2191functionality/purpose. New files are: 2192 ahaml.c 2193 ahasl.c 2194 2195---------------------------------------- 219617 November 2016. Summary of changes for version 20161117: 2197 2198 21991) ACPICA kernel-resident subsystem: 2200 2201Table Manager: Fixed a regression introduced in 20160729, "FADT support 2202cleanup". This was an attempt to remove all references in the source to 2203the FADT version 2, which never was a legal version number. It was 2204skipped because it was an early version of 64-bit support that was 2205eventually abandoned for the current 64-bit support. 2206 2207Interpreter: Fixed a problem where runtime implicit conversion was 2208incorrectly disabled for the ASL operators below. This brings the 2209behavior into compliance with the ACPI specification: 2210 FromBCD 2211 ToBCD 2212 ToDecimalString 2213 ToHexString 2214 ToInteger 2215 ToBuffer 2216 2217Table Manager: Added a new public interface, AcpiPutTable, used to 2218release and free an ACPI table returned by AcpiGetTable and related 2219interfaces. Lv Zheng. 2220 2221Example Code and Data Size: These are the sizes for the OS-independent 2222acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2223debug version of the code includes the debug output trace mechanism and 2224has a much larger code and data size. 2225 2226 Current Release: 2227 Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total 2228 Debug Version: 201.3K Code, 82.7K Data, 284.0K Total 2229 Previous Release: 2230 Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total 2231 Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 2232 2233 22342) iASL Compiler/Disassembler and Tools: 2235 2236Disassembler: Fixed a regression for disassembly of Resource Template. 2237Detection of templates in the AML stream missed some types of templates. 2238 2239iASL: Fixed a problem where an Access Size error was returned for the PCC 2240address space when the AccessSize of the GAS register is greater than a 2241DWORD. Hoan Tran. 2242 2243iASL: Implemented several grammar changes for the operators below. These 2244changes are slated for the next version of the ACPI specification: 2245 RefOf - Disallow method invocation as an operand 2246 CondRefOf - Disallow method invocation as an operand 2247 DerefOf - Disallow operands that use the result from operators 2248that 2249 do not return a reference (Changed TermArg to 2250SuperName). 2251 2252iASL: Control method invocations are now allowed for Target operands, as 2253per the ACPI specification. Removed error for using a control method 2254invocation as a Target operand. 2255 2256Disassembler: Improved detection of Resource Templates, Unicode, and 2257Strings within Buffer objects. These subtypes do not contain a specific 2258opcode to indicate the originating ASL code, and they must be detected by 2259other means within the disassembler. 2260 2261iASL: Implemented an optimization improvement for 32-bit ACPI tables 2262(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode 2263only after 64-bit to 32-bit truncation. A truncation warning message is 2264still emitted, however. 2265 2266AcpiXtract: Implemented handling for both types of line terminators (LF 2267or CR/LF) so that it can accept AcpiDump output files from any system. 2268Peter Wu. 2269 2270AcpiBin: Added two new options for comparing AML files: 2271 -a: compare and display ALL mismatches 2272 -o: start compare at this offset into the second file 2273 2274---------------------------------------- 227530 September 2016. Summary of changes for version 20160930: 2276 2277 22781) ACPICA kernel-resident subsystem: 2279 2280Fixed a regression in the internal AcpiTbFindTable function where a non 2281AE_OK exception could inadvertently be returned even if the function did 2282not fail. This problem affects the following operators: 2283 DataTableRegion 2284 LoadTable 2285 2286Fixed a regression in the LoadTable operator where a load to any 2287namespace location other than the root no longer worked properly. 2288 2289Increased the maximum loop count value that will result in the 2290AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to 2291prevent infinite loops within the AML interpreter and thus the host OS 2292kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to 22931,048,575). 2294 2295Moved the AcpiGbl_MaxLoopIterations configuration variable to the public 2296acpixf.h file. This allows hosts to easily configure the maximum loop 2297count at runtime. 2298 2299Removed an illegal character in the strtoul64.c file. This character 2300caused errors with some C compilers. 2301 2302Example Code and Data Size: These are the sizes for the OS-independent 2303acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2304debug version of the code includes the debug output trace mechanism and 2305has a much larger code and data size. 2306 2307 Current Release: 2308 Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total 2309 Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 2310 Previous Release: 2311 Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total 2312 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 2313 2314 23152) iASL Compiler/Disassembler and Tools: 2316 2317Disassembler: Fixed a problem with the conversion of Else{If{ blocks into 2318the simpler ASL ElseIf keyword. During the conversion, a trailing If 2319block could be lost and missing from the disassembled output. 2320 2321iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+, 2322the missing rule caused a parse error when using the Index operator as an 2323operand to ObjectType. This construct now compiles properly. Example: 2324 ObjectType(PKG1[4]). 2325 2326iASL: Correctly handle unresolved symbols in the hardware map file (-lm 2327option). Previously, unresolved symbols could cause a protection fault. 2328Such symbols are now marked as unresolved in the map file. 2329 2330iASL: Implemented support to allow control method invocations as an 2331operand to the ASL DeRefOf operator. Example: 2332 DeRefOf(MTH1(Local0)) 2333 2334Disassembler: Improved support for the ToPLD ASL macro. Detection of a 2335possible _PLD buffer now includes examination of both the normal buffer 2336length (16 or 20) as well as the surrounding AML package length. 2337 2338Disassembler: Fixed a problem with the decoding of complex expressions 2339within the Divide operator for ASL+. For the case where both the quotient 2340and remainder targets are specified, the entire statement cannot be 2341disassembled. Previously, the output incorrectly contained a mix of ASL- 2342and ASL+ operators. This mixed statement causes a syntax error when 2343compiled. Example: 2344 Divide (Add (INT1, 6), 128, RSLT, QUOT) // was incorrectly 2345disassembled to: 2346 Divide (INT1 + 6, 128, RSLT, QUOT) 2347 2348iASL/Tools: Added support to process AML and non-AML ACPI tables 2349consistently. For the disassembler and AcpiExec, allow all types of ACPI 2350tables (AML and data tables). For the iASL -e option, allow only AML 2351tables (DSDT/SSDT). 2352 2353---------------------------------------- 235431 August 2016. Summary of changes for version 20160831: 2355 2356 23571) ACPICA kernel-resident subsystem: 2358 2359Improve support for the so-called "module-level code", which is defined 2360to be math, logical and control AML opcodes that appear outside of any 2361control method. This change improves the support by adding more opcodes 2362that can be executed in the manner. Some other issues have been solved, 2363and the ASL grammar changes to support such code under all scope 2364operators (Device, etc.) are complete. Lv Zheng. 2365 2366UEFI support: these OSL functions have been implemented. This is an 2367additional step toward supporting the AcpiExec utility natively (with 2368full hardware access) under UEFI. Marcelo Ferreira. 2369 AcpiOsReadPciConfiguration 2370 AcpiOsWritePciConfiguration 2371 2372Fixed a possible mutex error during control method auto-serialization. Lv 2373Zheng. 2374 2375Updated support for the Generic Address Structure by fully implementing 2376all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv 2377Zheng. 2378 2379Updated the return value for the internal _OSI method. Instead of 23800xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF 2381for 64-bit ACPI tables. This fixes an incompatibility with other ACPI 2382implementations, and will be reflected and clarified in the next version 2383of the ACPI specification. 2384 2385Implemented two new table events that can be passed to an ACPICA table 2386handler. These events are used to indicate a table installation or 2387uninstallation. These events are used in addition to existed table load 2388and unload events. Lv Zheng. 2389 2390Implemented a cleanup for all internal string-to-integer conversions. 2391Consolidate multiple versions of this functionality and limit possible 2392bases to either 10 or 16 to simplify the code. Adds a new file, 2393utstrtoul64. 2394 2395Cleanup the inclusion order of the various compiler-specific headers. 2396This simplifies build configuration management. The compiler-specific 2397headers are now split out from the host-specific headers. Lv Zheng. 2398 2399Example Code and Data Size: These are the sizes for the OS-independent 2400acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2401debug version of the code includes the debug output trace mechanism and 2402has a much larger code and data size. 2403 2404 Current Release: 2405 Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total 2406 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 2407 2408 24092) iASL Compiler/Disassembler and Tools: 2410 2411iASL/AcpiExec: Added a command line option to display the build date/time 2412of the tool (-vd). This can be useful to verify that the correct version 2413of the tools are being used. 2414 2415AML Debugger: Implemented a new subcommand ("execute predef") to execute 2416all predefined control methods and names within the current namespace. 2417This can be useful for debugging problems with ACPI tables and the ACPI 2418namespace. 2419 2420---------------------------------------- 242129 July 2016. Summary of changes for version 20160729: 2422 2423 24241) ACPICA kernel-resident subsystem: 2425 2426Implemented basic UEFI support for the various ACPICA tools. This 2427includes: 24281) An OSL to implement the various AcpiOs* interfaces on UEFI. 24292) Support to obtain the ACPI tables on UEFI. 24303) Local implementation of required C library functions not available on 2431UEFI. 24324) A front-end (main) function for the tools for UEFI-related 2433initialization. 2434 2435The initial deployment of this support is the AcpiDump utility executing 2436as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit"). 2437Current environments supported are Linux/Unix. MSVC generation is not 2438supported at this time. See the generate/efi/README file for build 2439instructions. Lv Zheng. 2440 2441Future plans include porting the AcpiExec utility to execute natively on 2442the platform with I/O and memory access. This will allow viewing/dump of 2443the platform namespace and native execution of ACPI control methods that 2444access the actual hardware. To fully implement this support, the OSL 2445functions below must be implemented with UEFI interfaces. Any community 2446help in the implementation of these functions would be appreciated: 2447 AcpiOsReadPort 2448 AcpiOsWritePort 2449 AcpiOsReadMemory 2450 AcpiOsWriteMemory 2451 AcpiOsReadPciConfiguration 2452 AcpiOsWritePciConfiguration 2453 2454Restructured and standardized the C library configuration for ACPICA, 2455resulting in the various configuration options below. This includes a 2456global restructuring of the compiler-dependent and platform-dependent 2457include files. These changes may affect the existing platform-dependent 2458configuration files on some hosts. Lv Zheng. 2459 2460The current C library configuration options appear below. For any issues, 2461it may be helpful to examine the existing compiler-dependent and 2462platform-dependent files as examples. Lv Zheng. 2463 24641) Linux kernel: 2465 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 2466library. 2467 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 24682) Unix/Windows/BSD applications: 2469 ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C 2470library. 2471 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 24723) UEFI applications: 2473 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 2474library. 2475 ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library. 24764) UEFI applications (EDK2/StdLib): 2477 ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library. 2478 ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library. 2479 2480 2481AML interpreter: "module-level code" support. Allows for execution of so- 2482called "executable" AML code (math/logical operations, etc.) outside of 2483control methods not just at the module level (top level) but also within 2484any scope declared outside of a control method - Scope{}, Device{}, 2485Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng. 2486 2487Simplified the configuration of the "maximum AML loops" global option by 2488adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be 2489modified at runtime. 2490 2491 2492Example Code and Data Size: These are the sizes for the OS-independent 2493acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2494debug version of the code includes the debug output trace mechanism and 2495has a much larger code and data size. 2496 2497 Current Release: 2498 Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total 2499 Debug Version: 199.0K Code, 81.8K Data, 280.8K Total 2500 2501 25022) iASL Compiler/Disassembler and Tools: 2503 2504iASL: Add full support for the RASF ACPI table (RAS Features Table). 2505Includes disassembler, data table compiler, and header support. 2506 2507iASL Expand "module-level code" support. Allows for 2508compilation/disassembly of so-called "executable" AML code (math/logical 2509operations, etc.) outside of control methods not just at the module level 2510(top level) but also within any scope declared outside of a control 2511method - Scope{}, Device{}, Processor{}, PowerResource{}, and 2512ThermalZone{}. 2513 2514AcpiDump: Added support for dumping all SSDTs on newer versions of 2515Windows. These tables are now easily available -- SSDTs are not available 2516through the registry on older versions. 2517 2518---------------------------------------- 251927 May 2016. Summary of changes for version 20160527: 2520 2521 25221) ACPICA kernel-resident subsystem: 2523 2524Temporarily reverted the new arbitrary bit length/alignment support in 2525AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been 2526a number of regressions with the new code that need to be fully resolved 2527and tested before this support can be finally integrated into ACPICA. 2528Apologies for any inconveniences these issues may have caused. 2529 2530The ACPI message macros are not configurable (ACPI_MSG_ERROR, 2531ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR, 2532and ACPI_MSG_BIOS_WARNING). Lv Zheng. 2533 2534Fixed a couple of GCC warnings associated with the use of the -Wcast-qual 2535option. Adds a new return macro, return_STR. Junk-uk Kim. 2536 2537Example Code and Data Size: These are the sizes for the OS-independent 2538acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2539debug version of the code includes the debug output trace mechanism and 2540has a much larger code and data size. 2541 2542 Current Release: 2543 Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total 2544 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 2545 Previous Release: 2546 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 2547 Debug Version: 200.9K Code, 82.2K Data, 283.1K Total 2548 2549---------------------------------------- 255022 April 2016. Summary of changes for version 20160422: 2551 25521) ACPICA kernel-resident subsystem: 2553 2554Fixed a regression in the GAS (generic address structure) arbitrary bit 2555support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior 2556and incorrect return values. Lv Zheng. ACPICA BZ 1270. 2557 2558ACPI 6.0: Added support for new/renamed resource macros. One new argument 2559was added to each of these macros, and the original name has been 2560deprecated. The AML disassembler will always disassemble to the new 2561names. Support for the new macros was added to iASL, disassembler, 2562resource manager, and the acpihelp utility. ACPICA BZ 1274. 2563 2564 I2cSerialBus -> I2cSerialBusV2 2565 SpiSerialBus -> SpiSerialBusV2 2566 UartSerialBus -> UartSerialBusV2 2567 2568ACPI 6.0: Added support for a new integer field that was appended to the 2569package object returned by the _BIX method. This adds iASL compile-time 2570and AML runtime error checking. ACPICA BZ 1273. 2571 2572ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm 2573Subspace Type2" (Headers, Disassembler, and data table compiler). 2574 2575Example Code and Data Size: These are the sizes for the OS-independent 2576acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2577debug version of the code includes the debug output trace mechanism and 2578has a much larger code and data size. 2579 2580 Current Release: 2581 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 2582 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 2583 Previous Release: 2584 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 2585 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 2586 2587 25882) iASL Compiler/Disassembler and Tools: 2589 2590iASL: Implemented an ASL grammar extension to allow/enable executable 2591"module-level code" to be created and executed under the various 2592operators that create new scopes. This type of AML code is already 2593supported in all known AML interpreters, and the grammar change will 2594appear in the next version of the ACPI specification. Simplifies the 2595conditional runtime creation of named objects under these object types: 2596 2597 Device 2598 PowerResource 2599 Processor 2600 Scope 2601 ThermalZone 2602 2603iASL: Implemented a new ASL extension, a "For" loop macro to add greater 2604ease-of-use to the ASL language. The syntax is similar to the 2605corresponding C operator, and is implemented with the existing AML While 2606opcode -- thus requiring no changes to existing AML interpreters. 2607 2608 For (Initialize, Predicate, Update) {TermList} 2609 2610Grammar: 2611 ForTerm := 2612 For ( 2613 Initializer // Nothing | TermArg => ComputationalData 2614 Predicate // Nothing | TermArg => ComputationalData 2615 Update // Nothing | TermArg => ComputationalData 2616 ) {TermList} 2617 2618 2619iASL: The _HID/_ADR detection and validation has been enhanced to search 2620under conditionals in order to allow these objects to be conditionally 2621created at runtime. 2622 2623iASL: Fixed several issues with the constant folding feature. The 2624improvement allows better detection and resolution of statements that can 2625be folded at compile time. ACPICA BZ 1266. 2626 2627iASL/Disassembler: Fixed a couple issues with the Else{If{}...} 2628conversion to the ASL ElseIf operator where incorrect ASL code could be 2629generated. 2630 2631iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where 2632sometimes an extra (and extraneous) set of parentheses were emitted for 2633some combinations of operators. Although this did not cause any problems 2634with recompilation of the disassembled code, it made the code more 2635difficult to read. David Box. ACPICA BZ 1231. 2636 2637iASL: Changed to ignore the unreferenced detection for predefined names 2638of resource descriptor elements, when the resource descriptor is 2639created/defined within a control method. 2640 2641iASL: Disassembler: Fix a possible fault with externally declared Buffer 2642objects. 2643 2644---------------------------------------- 264518 March 2016. Summary of changes for version 20160318: 2646 26471) ACPICA kernel-resident subsystem: 2648 2649Added support for arbitrary bit lengths and bit offsets for registers 2650defined by the Generic Address Structure. Previously, only aligned bit 2651lengths of 8/16/32/64 were supported. This was sufficient for many years, 2652but recently some machines have been seen that require arbitrary bit- 2653level support. ACPICA BZ 1240. Lv Zheng. 2654 2655Fixed an issue where the \_SB._INI method sometimes must be evaluated 2656before any _REG methods are evaluated. Lv Zheng. 2657 2658Implemented several changes related to ACPI table support 2659(Headers/Disassembler/TableCompiler): 2660NFIT: For ACPI 6.1, updated to add some additional new fields and 2661constants. 2662FADT: Updated a warning message and set compliance to ACPI 6.1 (Version 26636). 2664DMAR: Added new constants per the 10/2014 DMAR spec. 2665IORT: Added new subtable per the 10/2015 IORT spec. 2666HEST: For ACPI 6.1, added new constants and new subtable. 2667DBG2: Added new constants per the 12/2015 DBG2 spec. 2668FPDT: Fixed several incorrect fields, add the FPDT boot record structure. 2669ACPICA BZ 1249. 2670ERST/EINJ: Updated disassembler with new "Execute Timings" actions. 2671 2672Updated header support for the DMAR table to match the current version of 2673the related spec. 2674 2675Added extensions to the ASL Concatenate operator to allow any ACPI object 2676to be passed as an operand. Any object other than Integer/String/Buffer 2677simply returns a string containing the object type. This extends the 2678usefulness of the Printf macros. Previously, Concatenate would abort the 2679control method if a non-data object was encountered. 2680 2681ACPICA source code: Deployed the C "const" keyword across the source code 2682where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD). 2683 2684Example Code and Data Size: These are the sizes for the OS-independent 2685acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2686debug version of the code includes the debug output trace mechanism and 2687has a much larger code and data size. 2688 2689 Current Release: 2690 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 2691 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 2692 Previous Release: 2693 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 2694 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 2695 2696 26972) iASL Compiler/Disassembler and Tools: 2698 2699iASL/Disassembler: Improved the heuristic used to determine the number of 2700arguments for an externally defined control method (a method in another 2701table). Although this is an improvement, there is no deterministic way to 2702"guess" the number of method arguments. Only the ACPI 6.0 External opcode 2703will completely solve this problem as it is deployed (automatically) in 2704newer BIOS code. 2705 2706iASL/Disassembler: Fixed an ordering issue for emitted External() ASL 2707statements that could cause errors when the disassembled file is 2708compiled. ACPICA BZ 1243. David Box. 2709 2710iASL: Fixed a regression caused by the merger of the two versions of the 2711local strtoul64. Because of a dependency on a global variable, strtoul64 2712could return an error for integers greater than a 32-bit value. ACPICA BZ 27131260. 2714 2715iASL: Fixed a regression where a fault could occur for an ASL Return 2716statement if it invokes a control method that is not resolved. ACPICA BZ 27171264. 2718 2719AcpiXtract: Improved input file validation: detection of binary files and 2720non-acpidump text files. 2721 2722---------------------------------------- 272312 February 2016. Summary of changes for version 20160212: 2724 27251) ACPICA kernel-resident subsystem: 2726 2727Implemented full support for the ACPI 6.1 specification (released in 2728January). This version of the specification is available at: 2729http://www.uefi.org/specifications 2730 2731Only a relatively small number of changes were required in ACPICA to 2732support ACPI 6.1, in these areas: 2733- New predefined names 2734- New _HID values 2735- A new subtable for HEST 2736- A few other header changes for new values 2737 2738Ensure \_SB_._INI is executed before any _REG methods are executed. There 2739appears to be existing BIOS code that relies on this behavior. Lv Zheng. 2740 2741Reverted a change made in version 20151218 which enabled method 2742invocations to be targets of various ASL operators (SuperName and Target 2743grammar elements). While the new behavior is supported by the ACPI 2744specification, other AML interpreters do not support this behavior and 2745never will. The ACPI specification will be updated for ACPI 6.2 to remove 2746this support. Therefore, the change was reverted to the original ACPICA 2747behavior. 2748 2749ACPICA now supports the GCC 6 compiler. 2750 2751Current Release: (Note: build changes increased sizes) 2752 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 2753 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 2754Previous Release: 2755 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 2756 Debug Version: 200.4K Code, 81.9K Data, 282.3K Total 2757 2758 27592) iASL Compiler/Disassembler and Tools: 2760 2761Completed full support for the ACPI 6.0 External() AML opcode. The 2762compiler emits an external AML opcode for each ASL External statement. 2763This opcode is used by the disassembler to assist with the disassembly of 2764external control methods by specifying the required number of arguments 2765for the method. AML interpreters do not use this opcode. To ensure that 2766interpreters do not even see the opcode, a block of one or more external 2767opcodes is surrounded by an "If(0)" construct. As this feature becomes 2768commonly deployed in BIOS code, the ability of disassemblers to correctly 2769disassemble AML code will be greatly improved. David Box. 2770 2771iASL: Implemented support for an optional cross-reference output file. 2772The -lx option will create a the cross-reference file with the suffix 2773"xrf". Three different types of cross-reference are created in this file: 2774- List of object references made from within each control method 2775- Invocation (caller) list for each user-defined control method 2776- List of references to each non-method object in the namespace 2777 2778iASL: Method invocations as ASL Target operands are now disallowed and 2779flagged as errors in preparation for ACPI 6.2 (see the description of the 2780problem above). 2781 2782---------------------------------------- 27838 January 2016. Summary of changes for version 20160108: 2784 27851) ACPICA kernel-resident subsystem: 2786 2787Updated all ACPICA copyrights and signons to 2016: Added the 2016 2788copyright to all source code module headers and utility/tool signons. 2789This includes the standard Linux dual-license header. This affects 2790virtually every file in the ACPICA core subsystem, iASL compiler, all 2791ACPICA utilities, and the ACPICA test suite. 2792 2793Fixed a regression introduced in version 20151218 concerning the 2794execution of so-called module-level ASL/AML code. Namespace objects 2795created under a module-level If() construct were not properly/fully 2796entered into the namespace and could cause an interpreter fault when 2797accessed. 2798 2799Example Code and Data Size: These are the sizes for the OS-independent 2800acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2801debug version of the code includes the debug output trace mechanism and 2802has a much larger code and data size. 2803 2804Current Release: 2805 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 2806 Debug Version: 200.4K Code, 81.9K Data, 282.4K Total 2807 Previous Release: 2808 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 2809 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 2810 2811 28122) iASL Compiler/Disassembler and Tools: 2813 2814Fixed a problem with the compilation of the GpioIo and GpioInt resource 2815descriptors. The _PIN field name was incorrectly defined to be an array 2816of 32-bit values, but the _PIN values are in fact 16 bits each. This 2817would cause incorrect bit width warnings when using Word (16-bit) fields 2818to access the descriptors. 2819 2820 2821---------------------------------------- 282218 December 2015. Summary of changes for version 20151218: 2823 28241) ACPICA kernel-resident subsystem: 2825 2826Implemented per-AML-table execution of "module-level code" as individual 2827ACPI tables are loaded into the namespace during ACPICA initialization. 2828In other words, any module-level code within an AML table is executed 2829immediately after the table is loaded, instead of batched and executed 2830after all of the tables have been loaded. This provides compatibility 2831with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng, 2832David Box. 2833 2834To fully support the feature above, the default operation region handlers 2835for the SystemMemory, SystemIO, and PCI_Config address spaces are now 2836installed before any ACPI tables are loaded. This enables module-level 2837code to access these address spaces during the table load and module- 2838level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David 2839Box. 2840 2841Implemented several changes to the internal _REG support in conjunction 2842with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples 2843utilities for the changes above. Although these tools were changed, host 2844operating systems that simply use the default handlers for SystemMemory, 2845SystemIO, and PCI_Config spaces should not require any update. Lv Zheng. 2846 2847For example, in the code below, DEV1 is conditionally added to the 2848namespace by the DSDT via module-level code that accesses an operation 2849region. The SSDT references DEV1 via the Scope operator. DEV1 must be 2850created immediately after the DSDT is loaded in order for the SSDT to 2851successfully reference DEV1. Previously, this code would cause an 2852AE_NOT_EXIST exception during the load of the SSDT. Now, this code is 2853fully supported by ACPICA. 2854 2855 DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1) 2856 { 2857 OperationRegion (OPR1, SystemMemory, 0x400, 32) 2858 Field (OPR1, AnyAcc, NoLock, Preserve) 2859 { 2860 FLD1, 1 2861 } 2862 If (FLD1) 2863 { 2864 Device (\DEV1) 2865 { 2866 } 2867 } 2868 } 2869 DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1) 2870 { 2871 External (\DEV1, DeviceObj) 2872 Scope (\DEV1) 2873 { 2874 } 2875 } 2876 2877Fixed an AML interpreter problem where control method invocations were 2878not handled correctly when the invocation was itself a SuperName argument 2879to another ASL operator. In these cases, the method was not invoked. 2880ACPICA BZ 1002. Affects the following ASL operators that have a SuperName 2881argument: 2882 Store 2883 Acquire, Wait 2884 CondRefOf, RefOf 2885 Decrement, Increment 2886 Load, Unload 2887 Notify 2888 Signal, Release, Reset 2889 SizeOf 2890 2891Implemented automatic String-to-ObjectReference conversion support for 2892packages returned by predefined names (such as _DEP). A common BIOS error 2893is to add double quotes around an ObjectReference namepath, which turns 2894the reference into an unexpected string object. This support detects the 2895problem and corrects it before the package is returned to the caller that 2896invoked the method. Lv Zheng. 2897 2898Implemented extensions to the Concatenate operator. Concatenate now 2899accepts any type of object, it is not restricted to simply 2900Integer/String/Buffer. For objects other than these 3 basic data types, 2901the argument is treated as a string containing the name of the object 2902type. This expands the utility of Concatenate and the Printf/Fprintf 2903macros. ACPICA BZ 1222. 2904 2905Cleaned up the output of the ASL Debug object. The timer() value is now 2906optional and no longer emitted by default. Also, the basic data types of 2907Integer/String/Buffer are simply emitted as their values, without a data 2908type string -- since the data type is obvious from the output. ACPICA BZ 29091221. 2910 2911Example Code and Data Size: These are the sizes for the OS-independent 2912acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2913debug version of the code includes the debug output trace mechanism and 2914has a much larger code and data size. 2915 2916 Current Release: 2917 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 2918 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 2919 Previous Release: 2920 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 2921 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 2922 2923 29242) iASL Compiler/Disassembler and Tools: 2925 2926iASL: Fixed some issues with the ASL Include() operator. This operator 2927was incorrectly defined in the iASL parser rules, causing a new scope to 2928be opened for the code within the include file. This could lead to 2929several issues, including allowing ASL code that is technically illegal 2930and not supported by AML interpreters. Note, this does not affect the 2931related #include preprocessor operator. ACPICA BZ 1212. 2932 2933iASL/Disassembler: Implemented support for the ASL ElseIf operator. This 2934operator is essentially an ASL macro since there is no AML opcode 2935associated with it. The code emitted by the iASL compiler for ElseIf is 2936an Else opcode followed immediately by an If opcode. The disassembler 2937will now emit an ElseIf if it finds an Else immediately followed by an 2938If. This simplifies the decoded ASL, especially for deeply nested 2939If..Else and large Switch constructs. Thus, the disassembled code more 2940closely follows the original source ASL. ACPICA BZ 1211. Example: 2941 2942 Old disassembly: 2943 Else 2944 { 2945 If (Arg0 == 0x02) 2946 { 2947 Local0 = 0x05 2948 } 2949 } 2950 2951 New disassembly: 2952 ElseIf (Arg0 == 0x02) 2953 { 2954 Local0 = 0x05 2955 } 2956 2957AcpiExec: Added support for the new module level code behavior and the 2958early region installation. This required a small change to the 2959initialization, since AcpiExec must install its own operation region 2960handlers. 2961 2962AcpiExec: Added support to make the debug object timer optional. Default 2963is timer disabled. This cleans up the debug object output -- the timer 2964data is rarely used. 2965 2966AcpiExec: Multiple ACPI tables are now loaded in the order that they 2967appear on the command line. This can be important when there are 2968interdependencies/references between the tables. 2969 2970iASL/Templates. Add support to generate template files with multiple 2971SSDTs within a single output file. Also added ommand line support to 2972specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ 29731223, 1225. 2974 2975 2976---------------------------------------- 297724 November 2015. Summary of changes for version 20151124: 2978 29791) ACPICA kernel-resident subsystem: 2980 2981Fixed a possible regression for a previous update to FADT handling. The 2982FADT no longer has a fixed table ID, causing some issues with code that 2983was hardwired to a specific ID. Lv Zheng. 2984 2985Fixed a problem where the method auto-serialization could interfere with 2986the current SyncLevel. This change makes the auto-serialization support 2987transparent to the SyncLevel support and management. 2988 2989Removed support for the _SUB predefined name in AcpiGetObjectInfo. This 2990interface is intended for early access to the namespace during the 2991initial namespace device discovery walk. The _SUB method has been seen to 2992access operation regions in some cases, causing errors because the 2993operation regions are not fully initialized. 2994 2995AML Debugger: Fixed some issues with the terminate/quit/exit commands 2996that can cause faults. Lv Zheng. 2997 2998AML Debugger: Add thread ID support so that single-step mode only applies 2999to the AML Debugger thread. This prevents runtime errors within some 3000kernels. Lv Zheng. 3001 3002Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx 3003methods that are invoked by this interface are optional, removed warnings 3004emitted for the case where one or more of these methods do not exist. 3005ACPICA BZ 1208, original change by Prarit Bhargava. 3006 3007Made a major pass through the entire ACPICA source code base to 3008standardize formatting that has diverged a bit over time. There are no 3009functional changes, but this will of course cause quite a few code 3010differences from the previous ACPICA release. 3011 3012Example Code and Data Size: These are the sizes for the OS-independent 3013acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3014debug version of the code includes the debug output trace mechanism and 3015has a much larger code and data size. 3016 3017 Current Release: 3018 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 3019 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 3020 Previous Release: 3021 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 3022 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 3023 3024 30252) iASL Compiler/Disassembler and Tools: 3026 3027iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple 3028definition blocks within a single ASL file and the resulting AML file. 3029Support for this type of file was also added to the various tools that 3030use binary AML files: acpiexec, acpixtract, and the AML disassembler. The 3031example code below shows two definition blocks within the same file: 3032 3033 DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template", 30340x12345678) 3035 { 3036 } 3037 DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01) 3038 { 3039 } 3040 3041iASL: Enhanced typechecking for the Name() operator. All expressions for 3042the value of the named object must be reduced/folded to a single constant 3043at compile time, as per the ACPI specification (the AML definition of 3044Name()). 3045 3046iASL: Fixed some code indentation issues for the -ic and -ia options (C 3047and assembly headers). Now all emitted code correctly begins in column 1. 3048 3049iASL: Added an error message for an attempt to open a Scope() on an 3050object defined in an SSDT. The DSDT is always loaded into the namespace 3051first, so any attempt to open a Scope on an SSDT object will fail at 3052runtime. 3053 3054 3055---------------------------------------- 305630 September 2015. Summary of changes for version 20150930: 3057 30581) ACPICA kernel-resident subsystem: 3059 3060Debugger: Implemented several changes and bug fixes to assist support for 3061the in-kernel version of the AML debugger. Lv Zheng. 3062- Fix the "predefined" command for in-kernel debugger. 3063- Do not enter debug command loop for the help and version commands. 3064- Disallow "execute" command during execution/single-step of a method. 3065 3066Interpreter: Updated runtime typechecking for all operators that have 3067target operands. The operand is resolved and validated that it is legal. 3068For example, the target cannot be a non-data object such as a Device, 3069Mutex, ThermalZone, etc., as per the ACPI specification. 3070 3071Debugger: Fixed the double-mutex user I/O handshake to work when local 3072deadlock detection is enabled. 3073 3074Debugger: limited display of method locals and arguments (LocalX and 3075ArgX) to only those that have actually been initialized. This prevents 3076lines of extraneous output. 3077 3078Updated the definition of the NFIT table to correct the bit polarity of 3079one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED 3080 3081Example Code and Data Size: These are the sizes for the OS-independent 3082acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3083debug version of the code includes the debug output trace mechanism and 3084has a much larger code and data size. 3085 3086 Current Release: 3087 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 3088 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 3089 Previous Release: 3090 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 3091 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 3092 3093 30942) iASL Compiler/Disassembler and Tools: 3095 3096iASL: Improved the compile-time typechecking for operands of many of the 3097ASL operators: 3098 3099-- Added an option to disable compiler operand/operator typechecking (- 3100ot). 3101 3102-- For the following operators, the TermArg operands are now validated 3103when possible to be Integer data objects: BankField, OperationRegion, 3104DataTableRegion, Buffer, and Package. 3105 3106-- Store (Source, Target): Both the source and target operands are 3107resolved and checked that the operands are both legal. For example, 3108neither operand can be a non-data object such as a Device, Mutex, 3109ThermalZone, etc. Note, as per the ACPI specification, the CopyObject 3110operator can be used to store an object to any type of target object. 3111 3112-- Store (Source, Target): If the source is a Package object, the target 3113must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target 3114is a Package, the source must also be a Package. 3115 3116-- Store (Source, Target): A warning is issued if the source and target 3117resolve to the identical named object. 3118 3119-- Store (Source, <method invocation>): An error is generated for the 3120target method invocation, as this construct is not supported by the AML 3121interpreter. 3122 3123-- For all ASL math and logic operators, the target operand must be a 3124data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This 3125includes the function return value also. 3126 3127-- External declarations are also included in the typechecking where 3128possible. External objects defined using the UnknownObj keyword cannot be 3129typechecked, however. 3130 3131iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index 3132operator: 3133- Legacy code: Index(PKG1, 3) 3134- New ASL+ code: PKG1[3] 3135This completes the ACPI 6.0 ASL+ support as it was the only operator not 3136supported. 3137 3138iASL: Fixed the file suffix for the preprocessor output file (.i). Two 3139spaces were inadvertently appended to the filename, causing file access 3140and deletion problems on some systems. 3141 3142ASL Test Suite (ASLTS): Updated the master makefile to generate all 3143possible compiler output files when building the test suite -- thus 3144exercising these features of the compiler. These files are automatically 3145deleted when the test suite exits. 3146 3147 3148---------------------------------------- 314918 August 2015. Summary of changes for version 20150818: 3150 31511) ACPICA kernel-resident subsystem: 3152 3153Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv 3154Zheng. ACPICA BZ 1186. 3155 3156Completed development to ensure that the ACPICA Disassembler and Debugger 3157are fully standalone components of ACPICA. Removed cross-component 3158dependences. Lv Zheng. 3159 3160The max-number-of-AML-loops is now runtime configurable (previously was 3161compile-time only). This is essentially a loop timeout to force-abort 3162infinite AML loops. ACPCIA BZ 1192. 3163 3164Debugger: Cleanup output to dump ACPI names and namepaths without any 3165trailing underscores. Lv Zheng. ACPICA BZ 1135. 3166 3167Removed unnecessary conditional compilations across the Debugger and 3168Disassembler components where entire modules could be left uncompiled. 3169 3170The aapits test is deprecated and has been removed from the ACPICA git 3171tree. The test has never been completed and has not been maintained, thus 3172becoming rather useless. ACPICA BZ 1015, 794. 3173 3174A batch of small changes to close bugzilla and other reports: 3175- Remove duplicate code for _PLD processing. ACPICA BZ 1176. 3176- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185. 3177- iASL: Support POSIX yacc again in makefile. Jung-uk Kim. 3178- ACPI table support: general cleanup and simplification. Lv Zheng, Bob 3179Moore. 3180- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable. 3181ACPICA BZ 1184. 3182- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML 3183operators. 3184- Debugger: Split debugger initialization/termination interfaces. Lv 3185Zheng. 3186- AcpiExec: Emit OemTableId for SSDTs during the load phase for table 3187identification. 3188- AcpiExec: Add debug message during _REG method phase during table 3189load/init. 3190- AcpiNames: Fix a regression where some output was missing and no longer 3191emitted. 3192- Debugger: General cleanup and simplification. Lv Zheng. 3193- Disassembler: Cleanup use of several global option variables. Lv Zheng. 3194 3195Example Code and Data Size: These are the sizes for the OS-independent 3196acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3197debug version of the code includes the debug output trace mechanism and 3198has a much larger code and data size. 3199 3200 Current Release: 3201 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 3202 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 3203 Previous Release: 3204 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 3205 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 3206 3207 32082) iASL Compiler/Disassembler and Tools: 3209 3210AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT 3211were not handled properly and caused load errors. Now, properly invoke 3212and use the ACPICA auto-reallocate mechanism for ACPI table data 3213structures. ACPICA BZ 1188 3214 3215AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA 3216BZ 1190. 3217 3218AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For 3219AcpiExec, this means that no control methods (like _REG/_INI/_STA) are 3220executed during initialization. ACPICA BZ 1187, 1189. 3221 3222iASL/Disassembler: Implemented a prototype "listing" mode that emits AML 3223that corresponds to each disassembled ASL statement, to simplify 3224debugging. ACPICA BZ 1191. 3225 3226Debugger: Add option to the "objects" command to display a summary of the 3227current namespace objects (Object type and count). This is displayed if 3228the command is entered with no arguments. 3229 3230AcpiNames: Add -x option to specify debug level, similar to AcpiExec. 3231 3232 3233---------------------------------------- 323417 July 2015. Summary of changes for version 20150717: 3235 32361) ACPICA kernel-resident subsystem: 3237 3238Improved the partitioning between the Debugger and Disassembler 3239components. This allows the Debugger to be used standalone within kernel 3240code without the Disassembler (which is used for single stepping also). 3241This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng. 3242 3243Debugger: Implemented a new command to trace the execution of control 3244methods (Trace). This is especially useful for the in-kernel version of 3245the debugger when file I/O may not be available for method trace output. 3246See the ACPICA reference for more information. Lv Zheng. 3247 3248Moved all C library prototypes (used for the local versions of these 3249functions when requested) to a new header, acclib.h 3250Cleaned up the use of non-ANSI C library functions. These functions are 3251implemented locally in ACPICA. Moved all such functions to a common 3252source file, utnonansi.c 3253 3254Debugger: Fixed a problem with the "!!" command (get last command 3255executed) where the debugger could enter an infinite loop and eventually 3256crash. 3257 3258Removed the use of local macros that were used for some of the standard C 3259library functions to automatically cast input parameters. This mostly 3260affected the is* functions where the input parameter is defined to be an 3261int. This required a few modifications to the main ACPICA source code to 3262provide casting for these functions and eliminate possible compiler 3263warnings for these parameters. 3264 3265Across the source code, added additional status/error checking to resolve 3266issues discovered by static source code analysis tools such as Coverity. 3267 3268Example Code and Data Size: These are the sizes for the OS-independent 3269acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3270debug version of the code includes the debug output trace mechanism and 3271has a much larger code and data size. 3272 3273 Current Release: 3274 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 3275 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 3276 Previous Release: 3277 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 3278 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 3279 3280 32812) iASL Compiler/Disassembler and Tools: 3282 3283iASL: Fixed a regression where the device map file feature no longer 3284worked properly when used in conjunction with the disassembler. It only 3285worked properly with the compiler itself. 3286 3287iASL: Implemented a new warning for method LocalX variables that are set 3288but never used (similar to a C compiler such as gcc). This also applies 3289to ArgX variables that are not defined by the parent method, and are 3290instead (legally) used as local variables. 3291 3292iASL/Preprocessor: Finished the pass-through of line numbers from the 3293preprocessor to the compiler. This ensures that compiler errors/warnings 3294have the correct original line numbers and filenames, regardless of any 3295#include files. 3296 3297iASL/Preprocessor: Fixed a couple of issues with comment handling and the 3298pass-through of comments to the preprocessor output file (which becomes 3299the compiler input file). Also fixed a problem with // comments that 3300appear after a math expression. 3301 3302iASL: Added support for the TCPA server table to the table compiler and 3303template generator. (The client table was already previously supported) 3304 3305iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to 3306identify the iASL compiler. 3307 3308Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined 3309multiple times. The new names are ACPI_SIGN_NEGATIVE and 3310ACPI_SIGN_POSITIVE. 3311 3312AcpiHelp: Update to expand help messages for the iASL preprocessor 3313directives. 3314 3315 3316---------------------------------------- 331719 June 2015. Summary of changes for version 20150619: 3318 3319Two regressions in version 20150616 have been addressed: 3320 3321Fixes some problems/issues with the C library macro removal (ACPI_STRLEN, 3322etc.) This update changes ACPICA to only use the standard headers for 3323functions, or the prototypes for the local versions of the C library 3324functions. Across the source code, this required some additional casts 3325for some Clib invocations for portability. Moved all local prototypes to 3326a new file, acclib.h 3327 3328Fixes several problems with recent changes to the handling of the FACS 3329table that could cause some systems not to boot. 3330 3331 3332---------------------------------------- 333316 June 2015. Summary of changes for version 20150616: 3334 3335 33361) ACPICA kernel-resident subsystem: 3337 3338Across the entire ACPICA source code base, the various macros for the C 3339library functions (such as ACPI_STRLEN, etc.) have been removed and 3340replaced by the standard C library names (strlen, etc.) The original 3341purpose for these macros is no longer applicable. This simplification 3342reduces the number of macros used in the ACPICA source code 3343significantly, improving readability and maintainability. 3344 3345Implemented support for a new ACPI table, the OSDT. This table, the 3346"override" SDT, can be loaded directly by the host OS at boot time. It 3347enables the replacement of existing namespace objects that were installed 3348via the DSDT and/or SSDTs. The primary purpose for this is to replace 3349buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated 3350for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob 3351Moore. 3352 3353Added support for systems with (improperly) two FACS tables -- a "32-bit" 3354table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit 3355X field). This change will support both automatically. There continues to 3356be systems found with this issue. This support requires a change to the 3357AcpiSetFirmwareWakingVector interface. Also, a public global variable has 3358been added to allow the host to select which FACS is desired 3359(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more 3360details Lv Zheng. 3361 3362Added a new feature to allow for systems that do not contain an FACS. 3363Although this is already supported on hardware-reduced platforms, the 3364feature has been extended for all platforms. The reasoning is that we do 3365not want to abort the entire ACPICA initialization just because the 3366system is seriously buggy and has no FACS. 3367 3368Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were 3369not correctly transcribed from the ACPI specification in ACPICA version 337020150515. 3371 3372Implemented support for the _CLS object in the AcpiGetObjectInfo external 3373interface. 3374 3375Updated the definitions of the TCPA and TPM2 ACPI tables to the more 3376recent TCG ACPI Specification, December 14, 2014. Table disassembler and 3377compiler also updated. Note: The TCPA "server" table is not supported by 3378the disassembler/table-compiler at this time. 3379 3380ACPI 6.0: Added definitions for the new GIC version field in the MADT. 3381 3382Example Code and Data Size: These are the sizes for the OS-independent 3383acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3384debug version of the code includes the debug output trace mechanism and 3385has a much larger code and data size. 3386 3387 Current Release: 3388 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 3389 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 3390 Previous Release: 3391 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 3392 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 3393 3394 33952) iASL Compiler/Disassembler and Tools: 3396 3397Disassembler: Fixed a problem with the new symbolic operator disassembler 3398where incorrect ASL code could be emitted in some cases for the "non- 3399commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and 3400ShiftRight. The actual problem cases seem to be rather unusual in common 3401ASL code, however. David Box. 3402 3403Modified the linux version of acpidump to obtain ACPI tables from not 3404just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv 3405Zheng. 3406 3407iASL: Fixed a problem where the user preprocessor output file (.i) 3408contained extra data that was not expected. The compiler was using this 3409file as a temporary file and passed through #line directives in order to 3410keep compiler error messages in sync with the input file and line number 3411across multiple include files. The (.i) is no longer a temporary file as 3412the compiler uses a new, different file for the original purpose. 3413 3414iASL: Fixed a problem where comments within the original ASL source code 3415file were not passed through to the preprocessor output file, nor any 3416listing files. 3417 3418iASL: Fixed some issues for the handling of the "#include" preprocessor 3419directive and the similar (but not the same) "Include" ASL operator. 3420 3421iASL: Add support for the new OSDT in both the disassembler and compiler. 3422 3423iASL: Fixed a problem with the constant folding support where a Buffer 3424object could be incorrectly generated (incorrectly formed) during a 3425conversion to a Store() operator. 3426 3427AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new 3428description text for the _REV predefined name. _REV now permanently 3429returns 2, as per the ACPI 6.0 specification. 3430 3431Debugger: Enhanced the output of the Debug ASL object for references 3432produced by the Index operator. For Buffers and strings, only output the 3433actual byte pointed to by the index. For packages, only print the single 3434package element decoded by the index. Previously, the entire 3435buffer/string/package was emitted. 3436 3437iASL/Table-compiler: Fixed a regression where the "generic" data types 3438were no longer recognized, causing errors. 3439 3440 3441---------------------------------------- 344215 May 2015. Summary of changes for version 20150515: 3443 3444This release implements most of ACPI 6.0 as described below. 3445 34461) ACPICA kernel-resident subsystem: 3447 3448Implemented runtime argument checking and return value checking for all 3449new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI, 3450_MTL, _PRR, _RDI, _RST, _TFP, _TSN. 3451 3452Example Code and Data Size: These are the sizes for the OS-independent 3453acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3454debug version of the code includes the debug output trace mechanism and 3455has a much larger code and data size. 3456 3457 Current Release: 3458 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 3459 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 3460 Previous Release: 3461 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 3462 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 3463 3464 34652) iASL Compiler/Disassembler and Tools: 3466 3467iASL compiler: Added compile-time support for all new ACPI 6.0 predefined 3468names (argument count validation and return value typechecking.) 3469 3470iASL disassembler and table compiler: implemented support for all new 3471ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV. 3472 3473iASL disassembler and table compiler: Added ACPI 6.0 changes to existing 3474tables: FADT, MADT. 3475 3476iASL preprocessor: Added a new directive to enable inclusion of binary 3477blobs into ASL code. The new directive is #includebuffer. It takes a 3478binary file as input and emits a named ascii buffer object into the ASL 3479code. 3480 3481AcpiHelp: Added support for all new ACPI 6.0 predefined names. 3482 3483AcpiHelp: Added a new option, -d, to display all iASL preprocessor 3484directives. 3485 3486AcpiHelp: Added a new option, -t, to display all known/supported ACPI 3487tables. 3488 3489 3490---------------------------------------- 349110 April 2015. Summary of changes for version 20150410: 3492 3493Reverted a change introduced in version 20150408 that caused 3494a regression in the disassembler where incorrect operator 3495symbols could be emitted. 3496 3497 3498---------------------------------------- 349908 April 2015. Summary of changes for version 20150408: 3500 3501 35021) ACPICA kernel-resident subsystem: 3503 3504Permanently set the return value for the _REV predefined name. It now 3505returns 2 (was 5). This matches other ACPI implementations. _REV will be 3506deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2 3507for ACPI 2.0 and later. It should never be used to differentiate or 3508identify operating systems. 3509 3510Added the "Windows 2015" string to the _OSI support. ACPICA will now 3511return TRUE to a query with this string. 3512 3513Fixed several issues with the local version of the printf function. 3514 3515Added the C99 compiler option (-std=c99) to the Unix makefiles. 3516 3517 Current Release: 3518 Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total 3519 Debug Version: 195.2K Code, 80.7K Data, 275.9K Total 3520 Previous Release: 3521 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 3522 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 3523 3524 35252) iASL Compiler/Disassembler and Tools: 3526 3527iASL: Implemented an enhancement to the constant folding feature to 3528transform the parse tree to a simple Store operation whenever possible: 3529 Add (2, 3, X) ==> is converted to: Store (5, X) 3530 X = 2 + 3 ==> is converted to: Store (5, X) 3531 3532Updated support for the SLIC table (Software Licensing Description Table) 3533in both the Data Table compiler and the disassembler. The SLIC table 3534support now conforms to "Microsoft Software Licensing Tables (SLIC and 3535MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data 3536following the ACPI header is now defined to be "Proprietary Data", and as 3537such, can only be entered or displayed as a hex data block. 3538 3539Implemented full support for the MSDM table as described in the document 3540above. Note: The format of MSDM is similar to SLIC. Any MSDM data 3541following the ACPI header is defined to be "Proprietary Data", and can 3542only be entered or displayed as a hex data block. 3543 3544Implemented the -Pn option for the iASL Table Compiler (was only 3545implemented for the ASL compiler). This option disables the iASL 3546preprocessor. 3547 3548Disassembler: For disassembly of Data Tables, added a comment field 3549around the Ascii equivalent data that is emitted as part of the "Raw 3550Table Data" block. This prevents the iASL Preprocessor from possible 3551confusion if/when the table is compiled. 3552 3553Disassembler: Added an option (-df) to force the disassembler to assume 3554that the table being disassembled contains valid AML. This feature is 3555useful for disassembling AML files that contain ACPI signatures other 3556than DSDT or SSDT (such as OEMx or other signatures). 3557 3558Changes for the EFI version of the tools: 35591) Fixed a build error/issue 35602) Fixed a cast warning 3561 3562iASL: Fixed a path issue with the __FILE__ operator by making the 3563directory prefix optional within the internal SplitInputFilename 3564function. 3565 3566Debugger: Removed some unused global variables. 3567 3568Tests: Updated the makefile for proper generation of the AAPITS suite. 3569 3570 3571---------------------------------------- 357204 February 2015. Summary of changes for version 20150204: 3573 3574ACPICA kernel-resident subsystem: 3575 3576Updated all ACPICA copyrights and signons to 2014. Added the 2014 3577copyright to all module headers and signons, including the standard Linux 3578header. This affects virtually every file in the ACPICA core subsystem, 3579iASL compiler, all ACPICA utilities, and the test suites. 3580 3581Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues. 3582A raw gpe handling mechanism was created to allow better handling of GPE 3583storms that aren't easily managed by the normal handler. The raw handler 3584allows disabling/renabling of the the GPE so that interrupt storms can be 3585avoided in cases where events cannot be timely serviced. In this 3586scenario, handlers should use the AcpiSetGpe() API to disable/enable the 3587GPE. This API will leave the reference counts undisturbed, thereby 3588preventing unintentional clearing of the GPE when the intent in only to 3589temporarily disable it. Raw handlers allow enabling and disabling of a 3590GPE by removing GPE register locking. As such, raw handlers much provide 3591their own locks while using GPE API's to protect access to GPE data 3592structures. 3593Lv Zheng 3594 3595Events: Always modify GPE registers under the GPE lock. 3596Applies GPE lock around AcpiFinishGpe() to protect access to GPE register 3597values. Reported as bug by joe.liu@apple.com. 3598 3599Unix makefiles: Separate option to disable optimizations and 3600_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the 3601NOOPT disable option and creates a separate flag (NOFORTIFY) for this 3602purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined 3603errors when building ACPICA. This allows disabling the option without 3604also having to disable optimazations. 3605David Box 3606 3607 Current Release: 3608 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 3609 Debug Version: 199.2K Code, 82.4K Data, 281.6K Total 3610 3611-- 3612-------------------------------------- 361307 November 2014. Summary of changes for version 20141107: 3614 3615This release is available at https://acpica.org/downloads 3616 3617This release introduces and implements language extensions to ASL that 3618provide support for symbolic ("C-style") operators and expressions. These 3619language extensions are known collectively as ASL+. 3620 3621 36221) iASL Compiler/Disassembler and Tools: 3623 3624Disassembler: Fixed a problem with disassembly of the UartSerialBus 3625macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E. 3626Box. 3627 3628Disassembler: Fixed the Unicode macro support to add escape sequences. 3629All non-printable ASCII values are emitted as escape sequences, as well 3630as the standard escapes for quote and backslash. Ensures that the 3631disassembled macro can be correctly recompiled. 3632 3633iASL: Added Printf/Fprintf macros for formatted output. These macros are 3634translated to existing AML Concatenate and Store operations. Printf 3635writes to the ASL Debug object. Fprintf allows the specification of an 3636ASL name as the target. Only a single format specifier is required, %o, 3637since the AML interpreter dynamically converts objects to the required 3638type. David E. Box. 3639 3640 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 3641 (Concatenate (Concatenate (Concatenate ("", Arg0), 3642 ": Unexpected value for "), Arg1), ", "), Arg2), 3643 " at line "), Arg3), Debug) 3644 3645 (new) Printf ("%o: Unexpected value for %o, %o at line %o", 3646 Arg0, Arg1, Arg2, Arg3) 3647 3648 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 3649 ("", Arg1), ": "), Arg0), " Successful"), STR1) 3650 3651 (new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0) 3652 3653iASL: Added debug options (-bp, -bt) to dynamically prune levels of the 3654ASL parse tree before the AML code is generated. This allows blocks of 3655ASL code to be removed in order to help locate and identify problem 3656devices and/or code. David E. Box. 3657 3658AcpiExec: Added support (-fi) for an optional namespace object 3659initialization file. This file specifies initial values for namespace 3660objects as necessary for debugging and testing different ASL code paths 3661that may be taken as a result of BIOS options. 3662 3663 36642) Overview of symbolic operator support for ASL (ASL+) 3665------------------------------------------------------- 3666 3667As an extension to the ASL language, iASL implements support for symbolic 3668(C-style) operators for math and logical expressions. This can greatly 3669simplify ASL code as well as improve both readability and 3670maintainability. These language extensions can exist concurrently with 3671all legacy ASL code and expressions. 3672 3673The symbolic extensions are 100% compatible with existing AML 3674interpreters, since no new AML opcodes are created. To implement the 3675extensions, the iASL compiler transforms the symbolic expressions into 3676the legacy ASL/AML equivalents at compile time. 3677 3678Full symbolic expressions are supported, along with the standard C 3679precedence and associativity rules. 3680 3681Full disassembler support for the symbolic expressions is provided, and 3682creates an automatic migration path for existing ASL code to ASL+ code 3683via the disassembly process. By default, the disassembler now emits ASL+ 3684code with symbolic expressions. An option (-dl) is provided to force the 3685disassembler to emit legacy ASL code if desired. 3686 3687Below is the complete list of the currently supported symbolic operators 3688with examples. See the iASL User Guide for additional information. 3689 3690 3691ASL+ Syntax Legacy ASL Equivalent 3692----------- --------------------- 3693 3694 // Math operators 3695 3696Z = X + Y Add (X, Y, Z) 3697Z = X - Y Subtract (X, Y, Z) 3698Z = X * Y Multiply (X, Y, Z) 3699Z = X / Y Divide (X, Y, , Z) 3700Z = X % Y Mod (X, Y, Z) 3701Z = X << Y ShiftLeft (X, Y, Z) 3702Z = X >> Y ShiftRight (X, Y, Z) 3703Z = X & Y And (X, Y, Z) 3704Z = X | Y Or (X, Y, Z) 3705Z = X ^ Y Xor (X, Y, Z) 3706Z = ~X Not (X, Z) 3707X++ Increment (X) 3708X-- Decrement (X) 3709 3710 // Logical operators 3711 3712(X == Y) LEqual (X, Y) 3713(X != Y) LNotEqual (X, Y) 3714(X < Y) LLess (X, Y) 3715(X > Y) LGreater (X, Y) 3716(X <= Y) LLessEqual (X, Y) 3717(X >= Y) LGreaterEqual (X, Y) 3718(X && Y) LAnd (X, Y) 3719(X || Y) LOr (X, Y) 3720(!X) LNot (X) 3721 3722 // Assignment and compound assignment operations 3723 3724X = Y Store (Y, X) 3725X += Y Add (X, Y, X) 3726X -= Y Subtract (X, Y, X) 3727X *= Y Multiply (X, Y, X) 3728X /= Y Divide (X, Y, , X) 3729X %= Y Mod (X, Y, X) 3730X <<= Y ShiftLeft (X, Y, X) 3731X >>= Y ShiftRight (X, Y, X) 3732X &= Y And (X, Y, X) 3733X |= Y Or (X, Y, X) 3734X ^= Y Xor (X, Y, X) 3735 3736 37373) ASL+ Examples: 3738----------------- 3739 3740Legacy ASL: 3741 If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual ( 3742 And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 37430x03FB), 3744 0x02E0), LEqual (And (R540, 0x03FB), 0x02E0)))) 3745 { 3746 And (MEMB, 0xFFFFFFF0, SRMB) 3747 Store (MEMB, Local2) 3748 Store (PDBM, Local1) 3749 And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) 3750 Store (SRMB, MEMB) 3751 Or (PDBM, 0x02, PDBM) 3752 } 3753 3754ASL+ version: 3755 If (((R510 & 0x03FB) == 0x02E0) || 3756 ((R520 & 0x03FB) == 0x02E0) || 3757 ((R530 & 0x03FB) == 0x02E0) || 3758 ((R540 & 0x03FB) == 0x02E0)) 3759 { 3760 SRMB = (MEMB & 0xFFFFFFF0) 3761 Local2 = MEMB 3762 Local1 = PDBM 3763 PDBM &= 0xFFFFFFFFFFFFFFF9 3764 MEMB = SRMB 3765 PDBM |= 0x02 3766 } 3767 3768Legacy ASL: 3769 Store (0x1234, Local1) 3770 Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3) 3771 Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3) 3772 Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3) 3773 Store (Index (PKG1, 0x03), Local6) 3774 Store (Add (Local3, Local2), Debug) 3775 Add (Local1, 0x0F, Local2) 3776 Add (Local1, Multiply (Local2, Local3), Local2) 3777 Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3) 3778 3779ASL+ version: 3780 Local1 = 0x1234 3781 Local3 = (((Local1 + TEST) + 0x20) * Local2) 3782 Local3 = (Local2 * ((Local1 + TEST) + 0x20)) 3783 Local3 = (Local1 + (TEST + (0x20 * Local2))) 3784 Local6 = Index (PKG1, 0x03) 3785 Debug = (Local3 + Local2) 3786 Local2 = (Local1 + 0x0F) 3787 Local2 = (Local1 + (Local2 * Local3)) 3788 Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1)) 3789 3790 3791---------------------------------------- 379226 September 2014. Summary of changes for version 20140926: 3793 37941) ACPICA kernel-resident subsystem: 3795 3796Updated the GPIO operation region handler interface (GeneralPurposeIo). 3797In order to support GPIO Connection objects with multiple pins, along 3798with the related Field objects, the following changes to the interface 3799have been made: The Address is now defined to be the offset in bits of 3800the field unit from the previous invocation of a Connection. It can be 3801viewed as a "Pin Number Index" into the connection resource descriptor. 3802The BitWidth is the exact bit width of the field. It is usually one bit, 3803but not always. See the ACPICA reference guide (section 8.8.6.2.1) for 3804additional information and examples. 3805 3806GPE support: During ACPICA/GPE initialization, ensure that all GPEs with 3807corresponding _Lxx/_Exx methods are disabled (they may have been enabled 3808by the firmware), so that they cannot fire until they are enabled via 3809AcpiUpdateAllGpes. Rafael J. Wysocki. 3810 3811Added a new return flag for the Event/GPE status interfaces -- 3812AcpiGetEventStatus and AcpiGetGpeStatus. The new 3813ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or 3814GPE currently has a handler associated with it, and can thus actually 3815affect the system. Lv Zheng. 3816 3817Example Code and Data Size: These are the sizes for the OS-independent 3818acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3819debug version of the code includes the debug output trace mechanism and 3820has a much larger code and data size. 3821 3822 Current Release: 3823 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 3824 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 3825 Previous Release: 3826 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 3827 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 3828 38292) iASL Compiler/Disassembler and Tools: 3830 3831iASL: Fixed a memory allocation/free regression introduced in 20140828 3832that could cause the compiler to crash. This was introduced inadvertently 3833during the effort to eliminate compiler memory leaks. ACPICA BZ 1111, 38341113. 3835 3836iASL: Removed two error messages that have been found to create false 3837positives, until they can be fixed and fully validated (ACPICA BZ 1112): 38381) Illegal forward reference within a method 38392) Illegal reference across two methods 3840 3841iASL: Implemented a new option (-lm) to create a hardware mapping file 3842that summarizes all GPIO, I2C, SPI, and UART connections. This option 3843works for both the compiler and disassembler. See the iASL compiler user 3844guide for additional information and examples (section 6.4.6). 3845 3846AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to 3847version 2. This corrects the AE_BAD_HEADER exception seen on systems with 3848a version 1 RSDP. Lv Zheng ACPICA BZ 1097. 3849 3850AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode 3851unless STDIN is actually a terminal. Assists with batch-mode processing. 3852ACPICA BZ 1114. 3853 3854Disassembler/AcpiHelp: Added another large group of recognized _HID 3855values. 3856 3857 3858---------------------------------------- 385928 August 2014. Summary of changes for version 20140828: 3860 38611) ACPICA kernel-resident subsystem: 3862 3863Fixed a problem related to the internal use of the Timer() operator where 3864a 64-bit divide could cause an attempted link to a double-precision math 3865library. This divide is not actually necessary, so the code was 3866restructured to eliminate it. Lv Zheng. 3867 3868ACPI 5.1: Added support for the runtime validation of the _DSD package 3869(similar to the iASL support). 3870 3871ACPI 5.1/Headers: Added support for the GICC affinity subtable to the 3872SRAT table. Hanjun Guo <hanjun.guo@linaro.org>. 3873 3874Example Code and Data Size: These are the sizes for the OS-independent 3875acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3876debug version of the code includes the debug output trace mechanism and 3877has a much larger code and data size. 3878 3879 Current Release: 3880 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 3881 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 3882 Previous Release: 3883 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total1 3884 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 3885 38862) iASL Compiler/Disassembler and Tools: 3887 3888AcpiExec: Fixed a problem on unix systems where the original terminal 3889state was not always properly restored upon exit. Seen when using the -v 3890option. ACPICA BZ 1104. 3891 3892iASL: Fixed a problem with the validation of the ranges/length within the 3893Memory24 resource descriptor. There was a boundary condition when the 3894range was equal to the (length -1) caused by the fact that these values 3895are defined in 256-byte blocks, not bytes. ACPICA BZ 1098 3896 3897Disassembler: Fixed a problem with the GpioInt descriptor interrupt 3898polarity 3899flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword 3900is 3901now supported properly. 3902 3903ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported 3904in the disassembler, data table compiler, and table template generator. 3905 3906iASL: Added a requirement for Device() objects that one of either a _HID 3907or _ADR must exist within the scope of a Device, as per the ACPI 3908specification. Remove a similar requirement that was incorrectly in place 3909for the _DSD object. 3910 3911iASL: Added error detection for illegal named references within control 3912methods that would cause runtime failures. Now trapped as errors are: 1) 3913References to objects within a non-parent control method. 2) Forward 3914references (within a method) -- for control methods, AML interpreters use 3915a one-pass parse of control methods. ACPICA BZ 1008. 3916 3917iASL: Added error checking for dependencies related to the _PSx power 3918methods. ACPICA BZ 1029. 39191) For _PS0, one of these must exist within the same scope: _PS1, _PS2, 3920_PS3. 39212) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same 3922scope. 3923 3924iASL and table compiler: Cleanup miscellaneous memory leaks by fully 3925deploying the existing object and string caches and adding new caches for 3926the table compiler. 3927 3928iASL: Split the huge parser source file into multiple subfiles to improve 3929manageability. Generation now requires the M4 macro preprocessor, which 3930is part of the Bison distribution on both unix and windows platforms. 3931 3932AcpiSrc: Fixed and removed all extraneous warnings generated during 3933entire ACPICA source code scan and/or conversion. 3934 3935 3936---------------------------------------- 3937 393824 July 2014. Summary of changes for version 20140724: 3939 3940The ACPI 5.1 specification has been released and is available at: 3941http://uefi.org/specs/access 3942 3943 39440) ACPI 5.1 support in ACPICA: 3945 3946ACPI 5.1 is fully supported in ACPICA as of this release. 3947 3948New predefined names. Support includes iASL and runtime ACPICA 3949validation. 3950 _CCA (Cache Coherency Attribute). 3951 _DSD (Device-Specific Data). David Box. 3952 3953Modifications to existing ACPI tables. Support includes headers, iASL 3954Data Table compiler, disassembler, and the template generator. 3955 FADT - New fields and flags. Graeme Gregory. 3956 GTDT - One new subtable and new fields. Tomasz Nowicki. 3957 MADT - Two new subtables. Tomasz Nowicki. 3958 PCCT - One new subtable. 3959 3960Miscellaneous. 3961 New notification type for System Resource Affinity change events. 3962 3963 39641) ACPICA kernel-resident subsystem: 3965 3966Fixed a regression introduced in 20140627 where a fault can happen during 3967the deletion of Alias AML namespace objects. The problem affected both 3968the core ACPICA and the ACPICA tools including iASL and AcpiExec. 3969 3970Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a 3971simple mechanism to enable wake GPEs that have no associated handler or 3972control method. Rafael Wysocki. 3973 3974Updated the AcpiEnableGpe interface to disallow the enable if there is no 3975handler or control method associated with the particular GPE. This will 3976help avoid meaningless GPEs and even GPE floods. Rafael Wysocki. 3977 3978Updated GPE handling and dispatch by disabling the GPE before clearing 3979the status bit for edge-triggered GPEs. Lv Zheng. 3980 3981Added Timer() support to the AML Debug object. The current timer value is 3982now displayed with each invocation of (Store to) the debug object to 3983enable simple generation of execution times for AML code (method 3984execution for example.) ACPICA BZ 1093. 3985 3986Example Code and Data Size: These are the sizes for the OS-independent 3987acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3988debug version of the code includes the debug output trace mechanism and 3989has a much larger code and data size. 3990 3991 Current Release: 3992 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total 3993 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 3994 Previous Release: 3995 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 3996 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 3997 3998 39992) iASL Compiler/Disassembler and Tools: 4000 4001Fixed an issue with the recently added local printf implementation, 4002concerning width/precision specifiers that could cause incorrect output. 4003Lv Zheng. ACPICA BZ 1094. 4004 4005Disassembler: Added support to detect buffers that contain UUIDs and 4006disassemble them to an invocation of the ToUUID operator. Also emit 4007commented descriptions of known ACPI-related UUIDs. 4008 4009AcpiHelp: Added support to display known ACPI-related UUIDs. New option, 4010-u. Adds three new files. 4011 4012iASL: Update table compiler and disassembler for DMAR table changes that 4013were introduced in September 2013. With assistance by David Woodhouse. 4014 4015---------------------------------------- 401627 June 2014. Summary of changes for version 20140627: 4017 40181) ACPICA kernel-resident subsystem: 4019 4020Formatted Output: Implemented local versions of standard formatted output 4021utilities such as printf, etc. Over time, it has been discovered that 4022there are in fact many portability issues with printf, and the addition 4023of this feature will fix/prevent these issues once and for all. Some 4024known issues are summarized below: 4025 40261) Output of 64-bit values is not portable. For example, UINT64 is %ull 4027for the Linux kernel and is %uI64 for some MSVC versions. 40282) Invoking printf consistently in a manner that is portable across both 402932-bit and 64-bit platforms is difficult at best in many situations. 40303) The output format for pointers varies from system to system (leading 4031zeros especially), and leads to inconsistent output from ACPICA across 4032platforms. 40334) Certain platform-specific printf formats may conflict with ACPICA use. 40345) If there is no local C library available, ACPICA now has local support 4035for printf. 4036 4037-- To address these printf issues in a complete manner, ACPICA now 4038directly implements a small subset of printf format specifiers, only 4039those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng. 4040 4041Implemented support for ACPICA generation within the EFI environment. 4042Initially, the AcpiDump utility is supported in the UEFI shell 4043environment. Lv Zheng. 4044 4045Added a new external interface, AcpiLogError, to improve ACPICA 4046portability. This allows the host to redirect error messages from the 4047ACPICA utilities. Lv Zheng. 4048 4049Added and deployed new OSL file I/O interfaces to improve ACPICA 4050portability: 4051 AcpiOsOpenFile 4052 AcpiOsCloseFile 4053 AcpiOsReadFile 4054 AcpiOsWriteFile 4055 AcpiOsGetFileOffset 4056 AcpiOsSetFileOffset 4057There are C library implementations of these functions in the new file 4058service_layers/oslibcfs.c -- however, the functions can be implemented by 4059the local host in any way necessary. Lv Zheng. 4060 4061Implemented a mechanism to disable/enable ACPI table checksum validation 4062at runtime. This can be useful when loading tables very early during OS 4063initialization when it may not be possible to map the entire table in 4064order to compute the checksum. Lv Zheng. 4065 4066Fixed a buffer allocation issue for the Generic Serial Bus support. 4067Originally, a fixed buffer length was used. This change allows for 4068variable-length buffers based upon the protocol indicated by the field 4069access attributes. Reported by Lan Tianyu. Lv Zheng. 4070 4071Fixed a problem where an object detached from a namespace node was not 4072properly terminated/cleared and could cause a circular list problem if 4073reattached. ACPICA BZ 1063. David Box. 4074 4075Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick. 4076 4077Fixed a possible memory leak in an error return path within the function 4078AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King. 4079 4080Example Code and Data Size: These are the sizes for the OS-independent 4081acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4082debug version of the code includes the debug output trace mechanism and 4083has a much larger code and data size. 4084 4085 Current Release: 4086 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 4087 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 4088 Previous Release: 4089 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 4090 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 4091 4092 40932) iASL Compiler/Disassembler and Tools: 4094 4095Disassembler: Add dump of ASCII equivalent text within a comment at the 4096end of each line of the output for the Buffer() ASL operator. 4097 4098AcpiDump: Miscellaneous changes: 4099 Fixed repetitive table dump in -n mode. 4100 For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if 4101the ACPI 2.0 GUID fails. 4102 4103iASL: Fixed a problem where the compiler could fault if incorrectly given 4104an acpidump output file as input. ACPICA BZ 1088. David Box. 4105 4106AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if 4107they are invoked without any arguments. 4108 4109Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ 41101086. Colin Ian King. 4111 4112Disassembler: Cleaned up a block of code that extracts a parent Op 4113object. Added a comment that explains that the parent is guaranteed to be 4114valid in this case. ACPICA BZ 1069. 4115 4116 4117---------------------------------------- 411824 April 2014. Summary of changes for version 20140424: 4119 41201) ACPICA kernel-resident subsystem: 4121 4122Implemented support to skip/ignore NULL address entries in the RSDT/XSDT. 4123Some of these tables are known to contain a trailing NULL entry. Lv 4124Zheng. 4125 4126Removed an extraneous error message for the case where there are a large 4127number of system GPEs (> 124). This was the "32-bit FADT register is too 4128long to convert to GAS struct" message, which is irrelevant for GPEs 4129since the GPEx_BLK_LEN fields of the FADT are always used instead of the 4130(limited capacity) GAS bit length. Also, several changes to ensure proper 4131support for GPE numbers > 255, where some "GPE number" fields were 8-bits 4132internally. 4133 4134Implemented and deployed additional configuration support for the public 4135ACPICA external interfaces. Entire classes of interfaces can now be 4136easily modified or configured out, replaced by stubbed inline functions 4137by default. Lv Zheng. 4138 4139Moved all public ACPICA runtime configuration globals to the public 4140ACPICA external interface file for convenience. Also, removed some 4141obsolete/unused globals. See the file acpixf.h. Lv Zheng. 4142 4143Documentation: Added a new section to the ACPICA reference describing the 4144maximum number of GPEs that can be supported by the FADT-defined GPEs in 4145block zero and one. About 1200 total. See section 4.4.1 of the ACPICA 4146reference. 4147 4148Example Code and Data Size: These are the sizes for the OS-independent 4149acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4150debug version of the code includes the debug output trace mechanism and 4151has a much larger code and data size. 4152 4153 Current Release: 4154 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 4155 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 4156 Previous Release: 4157 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 4158 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 4159 4160 41612) iASL Compiler/Disassembler and Tools: 4162 4163iASL and disassembler: Add full support for the LPIT table (Low Power 4164Idle Table). Includes support in the disassembler, data table compiler, 4165and template generator. 4166 4167AcpiDump utility: 41681) Add option to force the use of the RSDT (over the XSDT). 41692) Improve validation of the RSDP signature (use 8 chars instead of 4). 4170 4171iASL: Add check for predefined packages that are too large. For 4172predefined names that contain subpackages, check if each subpackage is 4173too large. (Check for too small already exists.) 4174 4175Debugger: Updated the GPE command (which simulates a GPE by executing the 4176GPE code paths in ACPICA). The GPE device is now optional, and defaults 4177to the GPE 0/1 FADT-defined blocks. 4178 4179Unix application OSL: Update line-editing support. Add additional error 4180checking and take care not to reset terminal attributes on exit if they 4181were never set. This should help guarantee that the terminal is always 4182left in the previous state on program exit. 4183 4184 4185---------------------------------------- 418625 March 2014. Summary of changes for version 20140325: 4187 41881) ACPICA kernel-resident subsystem: 4189 4190Updated the auto-serialize feature for control methods. This feature 4191automatically serializes all methods that create named objects in order 4192to prevent runtime errors. The update adds support to ignore the 4193currently executing AML SyncLevel when invoking such a method, in order 4194to prevent disruption of any existing SyncLevel priorities that may exist 4195in the AML code. Although the use of SyncLevels is relatively rare, this 4196change fixes a regression where an AE_AML_MUTEX_ORDER exception can 4197appear on some machines starting with the 20140214 release. 4198 4199Added a new external interface to allow the host to install ACPI tables 4200very early, before the namespace is even created. AcpiInstallTable gives 4201the host additional flexibility for ACPI table management. Tables can be 4202installed directly by the host as if they had originally appeared in the 4203XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables 4204(anything except the DSDT and FACS). Adds a new file, tbdata.c, along 4205with additional internal restructuring and cleanup. See the ACPICA 4206Reference for interface details. Lv Zheng. 4207 4208Added validation of the checksum for all incoming dynamically loaded 4209tables (via external interfaces or via AML Load/LoadTable operators). Lv 4210Zheng. 4211 4212Updated the use of the AcpiOsWaitEventsComplete interface during Notify 4213and GPE handler removal. Restructured calls to eliminate possible race 4214conditions. Lv Zheng. 4215 4216Added a warning for the use/execution of the ASL/AML Unload (table) 4217operator. This will help detect and identify machines that use this 4218operator if and when it is ever used. This operator has never been seen 4219in the field and the usage model and possible side-effects of the drastic 4220runtime action of a full table removal are unknown. 4221 4222Reverted the use of #pragma push/pop which was introduced in the 20140214 4223release. It appears that push and pop are not implemented by enough 4224compilers to make the use of this feature feasible for ACPICA at this 4225time. However, these operators may be deployed in a future ACPICA 4226release. 4227 4228Added the missing EXPORT_SYMBOL macros for the install and remove SCI 4229handler interfaces. 4230 4231Source code generation: 42321) Disabled the use of the "strchr" macro for the gcc-specific 4233generation. For some versions of gcc, this macro can periodically expose 4234a compiler bug which in turn causes compile-time error(s). 42352) Added support for PPC64 compilation. Colin Ian King. 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: 97.0K Code, 27.2K Data, 124.2K Total 4244 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 4245 Previous Release: 4246 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 4247 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 4248 4249 42502) iASL Compiler/Disassembler and Tools: 4251 4252Disassembler: Added several new features to improve the readability of 4253the resulting ASL code. Extra information is emitted within comment 4254fields in the ASL code: 42551) Known _HID/_CID values are decoded to descriptive text. 42562) Standard values for the Notify() operator are decoded to descriptive 4257text. 42583) Target operands are expanded to full pathnames (in a comment) when 4259possible. 4260 4261Disassembler: Miscellaneous updates for extern() handling: 42621) Abort compiler if file specified by -fe option does not exist. 42632) Silence unnecessary warnings about argument count mismatches. 42643) Update warning messages concerning unresolved method externals. 42654) Emit "UnknownObj" keyword for externals whose type cannot be 4266determined. 4267 4268AcpiHelp utility: 42691) Added the -a option to display both the ASL syntax and the AML 4270encoding for an input ASL operator. This effectively displays all known 4271information about an ASL operator with one AcpiHelp invocation. 42722) Added substring match support (similar to a wildcard) for the -i 4273(_HID/PNP IDs) option. 4274 4275iASL/Disassembler: Since this tool does not yet support execution on big- 4276endian machines, added detection of endianness and an error message if 4277execution is attempted on big-endian. Support for big-endian within iASL 4278is a feature that is on the ACPICA to-be-done list. 4279 4280AcpiBin utility: 42811) Remove option to extract binary files from an acpidump; this function 4282is made obsolete by the AcpiXtract utility. 42832) General cleanup of open files and allocated buffers. 4284 4285 4286---------------------------------------- 428714 February 2014. Summary of changes for version 20140214: 4288 42891) ACPICA kernel-resident subsystem: 4290 4291Implemented a new mechanism to proactively prevent problems with ill- 4292behaved reentrant control methods that create named ACPI objects. This 4293behavior is illegal as per the ACPI specification, but is nonetheless 4294frequently seen in the field. Previously, this could lead to an 4295AE_ALREADY_EXISTS exception if the method was actually entered by more 4296than one thread. This new mechanism detects such methods at table load 4297time and marks them "serialized" to prevent reentrancy. A new global 4298option, AcpiGbl_AutoSerializeMethods, has been added to disable this 4299feature if desired. This mechanism and global option obsoletes and 4300supersedes the previous AcpiGbl_SerializeAllMethods option. 4301 4302Added the "Windows 2013" string to the _OSI support. ACPICA will now 4303respond TRUE to _OSI queries with this string. It is the stated policy of 4304ACPICA to add new strings to the _OSI support as soon as possible after 4305they are defined. See the full ACPICA _OSI policy which has been added to 4306the utilities/utosi.c file. 4307 4308Hardened/updated the _PRT return value auto-repair code: 43091) Do not abort the repair on a single subpackage failure, continue to 4310check all subpackages. 43112) Add check for the minimum subpackage length (4). 43123) Properly handle extraneous NULL package elements. 4313 4314Added support to avoid the possibility of infinite loops when traversing 4315object linked lists. Never allow an infinite loop, even in the face of 4316corrupted object lists. 4317 4318ACPICA headers: Deployed the use of #pragma pack(push) and #pragma 4319pack(pop) directives to ensure that the ACPICA headers are independent of 4320compiler settings or other host headers. 4321 4322Example Code and Data Size: These are the sizes for the OS-independent 4323acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4324debug version of the code includes the debug output trace mechanism and 4325has a much larger code and data size. 4326 4327 Current Release: 4328 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 4329 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 4330 Previous Release: 4331 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 4332 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 4333 4334 43352) iASL Compiler/Disassembler and Tools: 4336 4337iASL/Table-compiler: Fixed a problem with support for the SPMI table. The 4338first reserved field was incorrectly forced to have a value of zero. This 4339change correctly forces the field to have a value of one. ACPICA BZ 1081. 4340 4341Debugger: Added missing support for the "Extra" and "Data" subobjects 4342when displaying object data. 4343 4344Debugger: Added support to display entire object linked lists when 4345displaying object data. 4346 4347iASL: Removed the obsolete -g option to obtain ACPI tables from the 4348Windows registry. This feature has been superseded by the acpidump 4349utility. 4350 4351 4352---------------------------------------- 435314 January 2014. Summary of changes for version 20140114: 4354 43551) ACPICA kernel-resident subsystem: 4356 4357Updated all ACPICA copyrights and signons to 2014. Added the 2014 4358copyright to all module headers and signons, including the standard Linux 4359header. This affects virtually every file in the ACPICA core subsystem, 4360iASL compiler, all ACPICA utilities, and the test suites. 4361 4362Improved parameter validation for AcpiInstallGpeBlock. Added the 4363following checks: 43641) The incoming device handle refers to type ACPI_TYPE_DEVICE. 43652) There is not already a GPE block attached to the device. 4366Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a 4367device. 4368 4369Correctly support "references" in the ACPI_OBJECT. This change fixes the 4370support to allow references (namespace nodes) to be passed as arguments 4371to control methods via the evaluate object interface. This is probably 4372most useful for testing purposes, however. 4373 4374Improved support for 32/64 bit physical addresses in printf()-like 4375output. This change improves the support for physical addresses in printf 4376debug statements and other output on both 32-bit and 64-bit hosts. It 4377consistently outputs the appropriate number of bytes for each host. The 4378%p specifier is unsatisfactory since it does not emit uniform output on 4379all hosts/clib implementations (on some, leading zeros are not supported, 4380leading to difficult-to-read output). 4381 4382Example Code and Data Size: These are the sizes for the OS-independent 4383acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4384debug version of the code includes the debug output trace mechanism and 4385has a much larger code and data size. 4386 4387 Current Release: 4388 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 4389 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 4390 Previous Release: 4391 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 4392 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 4393 4394 43952) iASL Compiler/Disassembler and Tools: 4396 4397iASL: Fix a possible fault when using the Connection() operator. Fixes a 4398problem if the parent Field definition for the Connection operator refers 4399to an operation region that does not exist. ACPICA BZ 1064. 4400 4401AcpiExec: Load of local test tables is now optional. The utility has the 4402capability to load some various tables to test features of ACPICA. 4403However, there are enough of them that the output of the utility became 4404confusing. With this change, only the required local tables are displayed 4405(RSDP, XSDT, etc.) along with the actual tables loaded via the command 4406line specification. This makes the default output simler and easier to 4407understand. The -el command line option restores the original behavior 4408for testing purposes. 4409 4410AcpiExec: Added support for overlapping operation regions. This change 4411expands the simulation of operation regions by supporting regions that 4412overlap within the given address space. Supports SystemMemory and 4413SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031. 4414 4415AcpiExec: Added region handler support for PCI_Config and EC spaces. This 4416allows AcpiExec to simulate these address spaces, similar to the current 4417support for SystemMemory and SystemIO. 4418 4419Debugger: Added new command to read/write/compare all namespace objects. 4420The command "test objects" will exercise the entire namespace by writing 4421new values to each data object, and ensuring that the write was 4422successful. The original value is then restored and verified. 4423 4424Debugger: Added the "test predefined" command. This change makes this 4425test public and puts it under the new "test" command. The test executes 4426each and every predefined name within the current namespace. 4427 4428 4429---------------------------------------- 443018 December 2013. Summary of changes for version 20131218: 4431 4432Global note: The ACPI 5.0A specification was released this month. There 4433are no changes needed for ACPICA since this release of ACPI is an 4434errata/clarification release. The specification is available at 4435acpi.info. 4436 4437 44381) ACPICA kernel-resident subsystem: 4439 4440Added validation of the XSDT root table if it is present. Some older 4441platforms contain an XSDT that is ill-formed or otherwise invalid (such 4442as containing some or all entries that are NULL pointers). This change 4443adds a new function to validate the XSDT before actually using it. If the 4444XSDT is found to be invalid, ACPICA will now automatically fall back to 4445using the RSDT instead. Original implementation by Zhao Yakui. Ported to 4446ACPICA and enhanced by Lv Zheng and Bob Moore. 4447 4448Added a runtime option to ignore the XSDT and force the use of the RSDT. 4449This change adds a runtime option that will force ACPICA to use the RSDT 4450instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec 4451requires that an XSDT be used instead of the RSDT, the XSDT has been 4452found to be corrupt or ill-formed on some machines. Lv Zheng. 4453 4454Added a runtime option to favor 32-bit FADT register addresses over the 445564-bit addresses. This change adds an option to favor 32-bit FADT 4456addresses when there is a conflict between the 32-bit and 64-bit versions 4457of the same register. The default behavior is to use the 64-bit version 4458in accordance with the ACPI specification. This can now be overridden via 4459the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng. 4460 4461During the change above, the internal "Convert FADT" and "Verify FADT" 4462functions have been merged to simplify the code, making it easier to 4463understand and maintain. ACPICA BZ 933. 4464 4465Improve exception reporting and handling for GPE block installation. 4466Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the 4467status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019. 4468 4469Added helper macros to extract bus/segment numbers from the HEST table. 4470This change adds two macros to extract the encoded bus and segment 4471numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT. 4472Betty Dall <betty.dall@hp.com> 4473 4474Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used 4475by ACPICA. It is not a public macro, so it should have no effect on 4476existing OSV code. Lv Zheng. 4477 4478Example Code and Data Size: These are the sizes for the OS-independent 4479acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4480debug version of the code includes the debug output trace mechanism and 4481has a much larger code and data size. 4482 4483 Current Release: 4484 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 4485 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 4486 Previous Release: 4487 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 4488 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 4489 4490 44912) iASL Compiler/Disassembler and Tools: 4492 4493Disassembler: Improved pathname support for emitted External() 4494statements. This change adds full pathname support for external names 4495that have been resolved internally by the inclusion of additional ACPI 4496tables (via the iASL -e option). Without this change, the disassembler 4497can emit multiple externals for the same object, or it become confused 4498when the Scope() operator is used on an external object. Overall, greatly 4499improves the ability to actually recompile the emitted ASL code when 4500objects a referenced across multiple ACPI tables. Reported by Michael 4501Tsirkin (mst@redhat.com). 4502 4503Tests/ASLTS: Updated functional control suite to execute with no errors. 4504David Box. Fixed several errors related to the testing of the interpreter 4505slack mode. Lv Zheng. 4506 4507iASL: Added support to detect names that are declared within a control 4508method, but are unused (these are temporary names that are only valid 4509during the time the method is executing). A remark is issued for these 4510cases. ACPICA BZ 1022. 4511 4512iASL: Added full support for the DBG2 table. Adds full disassembler, 4513table compiler, and template generator support for the DBG2 table (Debug 4514Port 2 table). 4515 4516iASL: Added full support for the PCCT table, update the table definition. 4517Updates the PCCT table definition in the actbl3.h header and adds table 4518compiler and template generator support. 4519 4520iASL: Added an option to emit only error messages (no warnings/remarks). 4521The -ve option will enable only error messages, warnings and remarks are 4522suppressed. This can simplify debugging when only the errors are 4523important, such as when an ACPI table is disassembled and there are many 4524warnings and remarks -- but only the actual errors are of real interest. 4525 4526Example ACPICA code (source/tools/examples): Updated the example code so 4527that it builds to an actual working program, not just example code. Added 4528ACPI tables and execution of an example control method in the DSDT. Added 4529makefile support for Unix generation. 4530 4531 4532---------------------------------------- 453315 November 2013. Summary of changes for version 20131115: 4534 4535This release is available at https://acpica.org/downloads 4536 4537 45381) ACPICA kernel-resident subsystem: 4539 4540Resource Manager: Fixed loop termination for the "get AML length" 4541function. The loop previously had an error termination on a NULL resource 4542pointer, which can never happen since the loop simply increments a valid 4543resource pointer. This fix changes the loop to terminate with an error on 4544an invalid end-of-buffer condition. The problem can be seen as an 4545infinite loop by callers to AcpiSetCurrentResources with an invalid or 4546corrupted resource descriptor, or a resource descriptor that is missing 4547an END_TAG descriptor. Reported by Dan Carpenter 4548<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore. 4549 4550Table unload and ACPICA termination: Delete all attached data objects 4551during namespace node deletion. This fix updates namespace node deletion 4552to delete the entire list of attached objects (attached via 4553AcpiAttachObject) instead of just one of the attached items. ACPICA BZ 45541024. Tomasz Nowicki (tomasz.nowicki@linaro.org). 4555 4556ACPICA termination: Added support to delete all objects attached to the 4557root namespace node. This fix deletes any and all objects that have been 4558attached to the root node via AcpiAttachData. Previously, none of these 4559objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026. 4560 4561Debug output: Do not emit the function nesting level for the in-kernel 4562build. The nesting level is really only useful during a single-thread 4563execution. Therefore, only enable this output for the AcpiExec utility. 4564Also, only emit the thread ID when executing under AcpiExec (Context 4565switches are still always detected and a message is emitted). ACPICA BZ 4566972. 4567 4568Example Code and Data Size: These are the sizes for the OS-independent 4569acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4570debug version of the code includes the debug output trace mechanism and 4571has a much larger code and data size. 4572 4573 Current Release: 4574 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 4575 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 4576 Previous Release: 4577 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 4578 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 4579 4580 45812) iASL Compiler/Disassembler and Tools: 4582 4583AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the 4584correct portable POSIX header for terminal control functions. 4585 4586Disassembler: Fixed control method invocation issues related to the use 4587of the CondRefOf() operator. The problem is seen in the disassembly where 4588control method invocations may not be disassembled properly if the 4589control method name has been used previously as an argument to CondRefOf. 4590The solution is to not attempt to emit an external declaration for the 4591CondRefOf target (it is not necessary in the first place). This prevents 4592disassembler object type confusion. ACPICA BZ 988. 4593 4594Unix Makefiles: Added an option to disable compiler optimizations and the 4595_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA 4596with optimizations (reportedly, gcc 4.4 for example). This change adds a 4597command line option for make (NOOPT) that disables all compiler 4598optimizations and the _FORTIFY_SOURCE compiler flag. The default 4599optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ 46001034. Lv Zheng, Bob Moore. 4601 4602Tests/ASLTS: Added options to specify individual test cases and modes. 4603This allows testers running aslts.sh to optionally specify individual 4604test modes and test cases. Also added an option to disable the forced 4605generation of the ACPICA tools from source if desired. Lv Zheng. 4606 4607---------------------------------------- 460827 September 2013. Summary of changes for version 20130927: 4609 4610This release is available at https://acpica.org/downloads 4611 4612 46131) ACPICA kernel-resident subsystem: 4614 4615Fixed a problem with store operations to reference objects. This change 4616fixes a problem where a Store operation to an ArgX object that contained 4617a 4618reference to a field object did not complete the automatic dereference 4619and 4620then write to the actual field object. Instead, the object type of the 4621field object was inadvertently changed to match the type of the source 4622operand. The new behavior will actually write to the field object (buffer 4623field or field unit), thus matching the correct ACPI-defined behavior. 4624 4625Implemented support to allow the host to redefine individual OSL 4626prototypes. This change enables the host to redefine OSL prototypes found 4627in the acpiosxf.h file. This allows the host to implement OSL interfaces 4628with a macro or inlined function. Further, it allows the host to add any 4629additional required modifiers such as __iomem, __init, __exit, etc., as 4630necessary on a per-interface basis. Enables maximum flexibility for the 4631OSL interfaces. Lv Zheng. 4632 4633Hardcoded the access width for the FADT-defined reset register. The ACPI 4634specification requires the reset register width to be 8 bits. ACPICA now 4635hardcodes the width to 8 and ignores the FADT width value. This provides 4636compatibility with other ACPI implementations that have allowed BIOS code 4637with bad register width values to go unnoticed. Matthew Garett, Bob 4638Moore, 4639Lv Zheng. 4640 4641Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is 4642used 4643in the OSL header (acpiosxf). The change modifies the position of this 4644macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid 4645build issues if the OSL defines the implementation of the interface to be 4646an inline stub function. Lv Zheng. 4647 4648Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA 4649initialization interfaces. This change adds a new macro for the main init 4650and terminate external interfaces in order to support hosts that require 4651additional or different processing for these functions. Changed from 4652ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv 4653Zheng, Bob Moore. 4654 4655Cleaned up the memory allocation macros for configurability. In the 4656common 4657case, the ACPI_ALLOCATE and related macros now resolve directly to their 4658respective AcpiOs* OSL interfaces. Two options: 46591) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by 4660default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define. 46612) For AcpiExec (and for debugging), the macros can optionally be 4662resolved 4663to the local ACPICA interfaces that track each allocation (local tracking 4664is used to immediately detect memory leaks). 4665Lv Zheng. 4666 4667Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel 4668to predefine this macro to either TRUE or FALSE during the system build. 4669 4670Replaced __FUNCTION_ with __func__ in the gcc-specific header. 4671 4672Example Code and Data Size: These are the sizes for the OS-independent 4673acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4674debug version of the code includes the debug output trace mechanism and 4675has a much larger code and data size. 4676 4677 Current Release: 4678 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 4679 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 4680 Previous Release: 4681 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 4682 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 4683 4684 46852) iASL Compiler/Disassembler and Tools: 4686 4687iASL: Implemented wildcard support for the -e option. This simplifies use 4688when there are many SSDTs that must be included to resolve external 4689method 4690declarations. ACPICA BZ 1041. Example: 4691 iasl -e ssdt*.dat -d dsdt.dat 4692 4693AcpiExec: Add history/line-editing for Unix/Linux systems. This change 4694adds a portable module that implements full history and limited line 4695editing for Unix and Linux systems. It does not use readline() due to 4696portability issues. Instead it uses the POSIX termio interface to put the 4697terminal in raw input mode so that the various special keys can be 4698trapped 4699(such as up/down-arrow for history support and left/right-arrow for line 4700editing). Uses the existing debugger history mechanism. ACPICA BZ 1036. 4701 4702AcpiXtract: Add support to handle (ignore) "empty" lines containing only 4703one or more spaces. This provides compatible with early or different 4704versions of the AcpiDump utility. ACPICA BZ 1044. 4705 4706AcpiDump: Do not ignore tables that contain only an ACPI table header. 4707Apparently, some BIOSs create SSDTs that contain an ACPI table header but 4708no other data. This change adds support to dump these tables. Any tables 4709shorter than the length of an ACPI table header remain in error (an error 4710message is emitted). Reported by Yi Li. 4711 4712Debugger: Echo actual command along with the "unknown command" message. 4713 4714---------------------------------------- 471523 August 2013. Summary of changes for version 20130823: 4716 47171) ACPICA kernel-resident subsystem: 4718 4719Implemented support for host-installed System Control Interrupt (SCI) 4720handlers. Certain ACPI functionality requires the host to handle raw 4721SCIs. For example, the "SCI Doorbell" that is defined for memory power 4722state support requires the host device driver to handle SCIs to examine 4723if the doorbell has been activated. Multiple SCI handlers can be 4724installed to allow for future expansion. New external interfaces are 4725AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for 4726details. Lv Zheng, Bob Moore. ACPICA BZ 1032. 4727 4728Operation region support: Never locally free the handler "context" 4729pointer. This change removes some dangerous code that attempts to free 4730the handler context pointer in some (rare) circumstances. The owner of 4731the handler owns this pointer and the ACPICA code should never touch it. 4732Although not seen to be an issue in any kernel, it did show up as a 4733problem (fault) under AcpiExec. Also, set the internal storage field for 4734the context pointer to zero when the region is deactivated, simply for 4735sanity. David Box. ACPICA BZ 1039. 4736 4737AcpiRead: On error, do not modify the return value target location. If an 4738error happens in the middle of a split 32/32 64-bit I/O operation, do not 4739modify the target of the return value pointer. Makes the code consistent 4740with the rest of ACPICA. Bjorn Helgaas. 4741 4742Example Code and Data Size: These are the sizes for the OS-independent 4743acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4744debug version of the code includes the debug output trace mechanism and 4745has a much larger code and data size. 4746 4747 Current Release: 4748 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 4749 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 4750 Previous Release: 4751 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 4752 Debug Version: 185.4K Code, 77.1K Data, 262.5K Total 4753 4754 47552) iASL Compiler/Disassembler and Tools: 4756 4757AcpiDump: Implemented several new features and fixed some problems: 47581) Added support to dump the RSDP, RSDT, and XSDT tables. 47592) Added support for multiple table instances (SSDT, UEFI). 47603) Added option to dump "customized" (overridden) tables (-c). 47614) Fixed a problem where some table filenames were improperly 4762constructed. 47635) Improved some error messages, removed some unnecessary messages. 4764 4765iASL: Implemented additional support for disassembly of ACPI tables that 4766contain invocations of external control methods. The -fe<file> option 4767allows the import of a file that specifies the external methods along 4768with the required number of arguments for each -- allowing for the 4769correct disassembly of the table. This is a workaround for a limitation 4770of AML code where the disassembler often cannot determine the number of 4771arguments required for an external control method and generates incorrect 4772ASL code. See the iASL reference for details. ACPICA BZ 1030. 4773 4774Debugger: Implemented a new command (paths) that displays the full 4775pathnames (namepaths) and object types of all objects in the namespace. 4776This is an alternative to the namespace command. 4777 4778Debugger: Implemented a new command (sci) that invokes the SCI dispatch 4779mechanism and any installed handlers. 4780 4781iASL: Fixed a possible segfault for "too many parent prefixes" condition. 4782This can occur if there are too many parent prefixes in a namepath (for 4783example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035. 4784 4785Application OSLs: Set the return value for the PCI read functions. These 4786functions simply return AE_OK, but should set the return value to zero 4787also. This change implements this. ACPICA BZ 1038. 4788 4789Debugger: Prevent possible command line buffer overflow. Increase the 4790size of a couple of the debugger line buffers, and ensure that overflow 4791cannot happen. ACPICA BZ 1037. 4792 4793iASL: Changed to abort immediately on serious errors during the parsing 4794phase. Due to the nature of ASL, there is no point in attempting to 4795compile these types of errors, and they typically end up causing a 4796cascade of hundreds of errors which obscure the original problem. 4797 4798---------------------------------------- 479925 July 2013. Summary of changes for version 20130725: 4800 48011) ACPICA kernel-resident subsystem: 4802 4803Fixed a problem with the DerefOf operator where references to FieldUnits 4804and BufferFields incorrectly returned the parent object, not the actual 4805value of the object. After this change, a dereference of a FieldUnit 4806reference results in a read operation on the field to get the value, and 4807likewise, the appropriate BufferField value is extracted from the target 4808buffer. 4809 4810Fixed a problem where the _WAK method could cause a fault under these 4811circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK 4812method returned no value. The problem is rarely seen because most kernels 4813run ACPICA in slack mode. 4814 4815For the DerefOf operator, a fatal error now results if an attempt is made 4816to dereference a reference (created by the Index operator) to a NULL 4817package element. Provides compatibility with other ACPI implementations, 4818and this behavior will be added to a future version of the ACPI 4819specification. 4820 4821The ACPI Power Management Timer (defined in the FADT) is now optional. 4822This provides compatibility with other ACPI implementations and will 4823appear in the next version of the ACPI specification. If there is no PM 4824Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of 4825zero in the FADT indicates no PM timer. 4826 4827Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This 4828allows the host to globally enable/disable all vendor strings, all 4829feature strings, or both. Intended to be primarily used for debugging 4830purposes only. Lv Zheng. 4831 4832Expose the collected _OSI data to the host via a global variable. This 4833data tracks the highest level vendor ID that has been invoked by the BIOS 4834so that the host (and potentially ACPICA itself) can change behaviors 4835based upon the age of the BIOS. 4836 4837Example Code and Data Size: These are the sizes for the OS-independent 4838acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4839debug version of the code includes the debug output trace mechanism and 4840has a much larger code and data size. 4841 4842 Current Release: 4843 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 4844 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 4845 Previous Release: 4846 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 4847 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 4848 4849 48502) iASL Compiler/Disassembler and Tools: 4851 4852iASL: Created the following enhancements for the -so option (create 4853offset table): 48541)Add offsets for the last nameseg in each namepath for every supported 4855object type 48562)Add support for Processor, Device, Thermal Zone, and Scope objects 48573)Add the actual AML opcode for the parent object of every supported 4858object type 48594)Add support for the ZERO/ONE/ONES AML opcodes for integer objects 4860 4861Disassembler: Emit all unresolved external symbols in a single block. 4862These are external references to control methods that could not be 4863resolved, and thus, the disassembler had to make a guess at the number of 4864arguments to parse. 4865 4866iASL: The argument to the -T option (create table template) is now 4867optional. If not specified, the default table is a DSDT, typically the 4868most common case. 4869 4870---------------------------------------- 487126 June 2013. Summary of changes for version 20130626: 4872 48731) ACPICA kernel-resident subsystem: 4874 4875Fixed an issue with runtime repair of the _CST object. Null or invalid 4876elements were not always removed properly. Lv Zheng. 4877 4878Removed an arbitrary restriction of 256 GPEs per GPE block (such as the 4879FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, 4880the maximum number of GPEs is 1016. Use of multiple GPE block devices 4881makes the system-wide number of GPEs essentially unlimited. 4882 4883Example Code and Data Size: These are the sizes for the OS-independent 4884acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4885debug version of the code includes the debug output trace mechanism and 4886has a much larger code and data size. 4887 4888 Current Release: 4889 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 4890 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 4891 Previous Release: 4892 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 4893 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 4894 4895 48962) iASL Compiler/Disassembler and Tools: 4897 4898Portable AcpiDump: Implemented full support for the Linux and FreeBSD 4899hosts. Now supports Linux, FreeBSD, and Windows. 4900 4901Disassembler: Added some missing types for the HEST and EINJ tables: "Set 4902Error Type With Address", "CMCI", "MCE", and "Flush Cacheline". 4903 4904iASL/Preprocessor: Implemented full support for nested 4905#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. 4906 4907Disassembler: Expanded maximum output string length to 64K. Was 256 bytes 4908max. The original purpose of this constraint was to limit the amount of 4909debug output. However, the string function in question (UtPrintString) is 4910now used for the disassembler also, where 256 bytes is insufficient. 4911Reported by RehabMan@GitHub. 4912 4913iASL/DataTables: Fixed some problems and issues with compilation of DMAR 4914tables. ACPICA BZ 999. Lv Zheng. 4915 4916iASL: Fixed a couple of error exit issues that could result in a "Could 4917not delete <file>" message during ASL compilation. 4918 4919AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though 4920the actual signatures for these tables are "FACP" and "APIC", 4921respectively. 4922 4923AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI 4924tables are allowed to have multiple instances. 4925 4926---------------------------------------- 492717 May 2013. Summary of changes for version 20130517: 4928 49291) ACPICA kernel-resident subsystem: 4930 4931Fixed a regression introduced in version 20130328 for _INI methods. This 4932change fixes a problem introduced in 20130328 where _INI methods are no 4933longer executed properly because of a memory block that was not 4934initialized correctly. ACPICA BZ 1016. Tomasz Nowicki 4935<tomasz.nowicki@linaro.org>. 4936 4937Fixed a possible problem with the new extended sleep registers in the 4938ACPI 49395.0 FADT. Do not use these registers (even if populated) unless the HW- 4940reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 49411020. Lv Zheng. 4942 4943Implemented return value repair code for _CST predefined objects: Sort 4944the 4945list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. 4946 4947Implemented a debug-only option to disable loading of SSDTs from the 4948RSDT/XSDT during ACPICA initialization. This can be useful for debugging 4949ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in 4950acglobal.h - ACPICA BZ 1005. Lv Zheng. 4951 4952Fixed some issues in the ACPICA initialization and termination code: 4953Tomasz Nowicki <tomasz.nowicki@linaro.org> 49541) Clear events initialized flag upon event component termination. ACPICA 4955BZ 1013. 49562) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 49573) Delete global lock pending lock during termination. ACPICA BZ 1012. 49584) Clear debug buffer global on termination to prevent possible multiple 4959delete. ACPICA BZ 1010. 4960 4961Standardized all switch() blocks across the entire source base. After 4962many 4963years, different formatting for switch() had crept in. This change makes 4964the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. 4965 4966Split some files to enhance ACPICA modularity and configurability: 49671) Split buffer dump routines into utilities/utbuffer.c 49682) Split internal error message routines into utilities/uterror.c 49693) Split table print utilities into tables/tbprint.c 49704) Split iASL command-line option processing into asloptions.c 4971 4972Makefile enhancements: 49731) Support for all new files above. 49742) Abort make on errors from any subcomponent. Chao Guan. 49753) Add build support for Apple Mac OS X. Liang Qi. 4976 4977Example Code and Data Size: These are the sizes for the OS-independent 4978acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4979debug version of the code includes the debug output trace mechanism and 4980has a much larger code and data size. 4981 4982 Current Release: 4983 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 4984 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 4985 Previous Release: 4986 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 4987 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 4988 4989 49902) iASL Compiler/Disassembler and Tools: 4991 4992New utility: Implemented an easily portable version of the acpidump 4993utility to extract ACPI tables from the system (or a file) in an ASCII 4994hex 4995dump format. The top-level code implements the various command line 4996options, file I/O, and table dump routines. To port to a new host, only 4997three functions need to be implemented to get tables -- since this 4998functionality is OS-dependent. See the tools/acpidump/apmain.c module and 4999the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 50001) The Windows version obtains the ACPI tables from the Registry. 50012) The Linux version is under development. 50023) Other hosts - If an OS-dependent module is submitted, it will be 5003distributed with ACPICA. 5004 5005iASL: Fixed a regression for -D preprocessor option (define symbol). A 5006restructuring/change to the initialization sequence caused this option to 5007no longer work properly. 5008 5009iASL: Implemented a mechanism to disable specific warnings and remarks. 5010Adds a new command line option, "-vw <messageid> as well as "#pragma 5011disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore. 5012 5013iASL: Fix for too-strict package object validation. The package object 5014validation for return values from the predefined names is a bit too 5015strict, it does not allow names references within the package (which will 5016be resolved at runtime.) These types of references cannot be validated at 5017compile time. This change ignores named references within package objects 5018for names that return or define static packages. 5019 5020Debugger: Fixed the 80-character command line limitation for the History 5021command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. 5022 5023iASL: Added control method and package support for the -so option 5024(generates AML offset table for BIOS support.) 5025 5026iASL: issue a remark if a non-serialized method creates named objects. If 5027a thread blocks within the method for any reason, and another thread 5028enters the method, the method will fail because an attempt will be made 5029to 5030create the same (named) object twice. In this case, issue a remark that 5031the method should be marked serialized. NOTE: may become a warning later. 5032ACPICA BZ 909. 5033 5034---------------------------------------- 503518 April 2013. Summary of changes for version 20130418: 5036 50371) ACPICA kernel-resident subsystem: 5038 5039Fixed a possible buffer overrun during some rare but specific field unit 5040read operations. This overrun can only happen if the DSDT version is 1 -- 5041meaning that all AML integers are 32 bits -- and the field length is 5042between 33 and 55 bits long. During the read, an internal buffer object 5043is 5044created for the field unit because the field is larger than an integer 5045(32 5046bits). However, in this case, the buffer will be incorrectly written 5047beyond the end because the buffer length is less than the internal 5048minimum 5049of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes 5050long, but a full 8 bytes will be written. 5051 5052Updated the Embedded Controller "orphan" _REG method support. This refers 5053to _REG methods under the EC device that have no corresponding operation 5054region. This is allowed by the ACPI specification. This update removes a 5055dependency on the existence an ECDT table. It will execute an orphan _REG 5056method as long as the operation region handler for the EC is installed at 5057the EC device node and not the namespace root. Rui Zhang (original 5058update), Bob Moore (update/integrate). 5059 5060Implemented run-time argument typechecking for all predefined ACPI names 5061(_STA, _BIF, etc.) This change performs object typechecking on all 5062incoming arguments for all predefined names executed via 5063AcpiEvaluateObject. This ensures that ACPI-related device drivers are 5064passing correct object types as well as the correct number of arguments 5065(therefore identifying any issues immediately). Also, the ASL/namespace 5066definition of the predefined name is checked against the ACPI 5067specification for the proper argument count. Adds one new file, 5068nsarguments.c 5069 5070Changed an exception code for the ASL UnLoad() operator. Changed the 5071exception code for the case where the input DdbHandle is invalid, from 5072AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. 5073 5074Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the 5075global makefile. The use of this flag causes compiler errors on earlier 5076versions of GCC, so it has been removed for compatibility. 5077 5078Miscellaneous cleanup: 50791) Removed some unused/obsolete macros 50802) Fixed a possible memory leak in the _OSI support 50813) Removed an unused variable in the predefined name support 50824) Windows OSL: remove obsolete reference to a memory list field 5083 5084Example Code and Data Size: These are the sizes for the OS-independent 5085acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5086debug version of the code includes the debug output trace mechanism and 5087has a much larger code and data size. 5088 5089 Current Release: 5090 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 5091 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 5092 Previous Release: 5093 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 5094 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 5095 5096 50972) iASL Compiler/Disassembler and Tools: 5098 5099AcpiExec: Added installation of a handler for the SystemCMOS address 5100space. This prevents control method abort if a method accesses this 5101space. 5102 5103AcpiExec: Added support for multiple EC devices, and now install EC 5104operation region handler(s) at the actual EC device instead of the 5105namespace root. This reflects the typical behavior of host operating 5106systems. 5107 5108AcpiExec: Updated to ensure that all operation region handlers are 5109installed before the _REG methods are executed. This prevents a _REG 5110method from aborting if it accesses an address space has no handler. 5111AcpiExec installs a handler for every possible address space. 5112 5113Debugger: Enhanced the "handlers" command to display non-root handlers. 5114This change enhances the handlers command to display handlers associated 5115with individual devices throughout the namespace, in addition to the 5116currently supported display of handlers associated with the root 5117namespace 5118node. 5119 5120ASL Test Suite: Several test suite errors have been identified and 5121resolved, reducing the total error count during execution. Chao Guan. 5122 5123---------------------------------------- 512428 March 2013. Summary of changes for version 20130328: 5125 51261) ACPICA kernel-resident subsystem: 5127 5128Fixed several possible race conditions with the internal object reference 5129counting mechanism. Some of the external ACPICA interfaces update object 5130reference counts without holding the interpreter or namespace lock. This 5131change adds a spinlock to protect reference count updates on the internal 5132ACPICA objects. Reported by and with assistance from Andriy Gapon 5133(avg@FreeBSD.org). 5134 5135FADT support: Removed an extraneous warning for very large GPE register 5136sets. This change removes a size mismatch warning if the legacy length 5137field for a GPE register set is larger than the 64-bit GAS structure can 5138accommodate. GPE register sets can be larger than the 255-bit width 5139limitation of the GAS structure. Linn Crosetto (linn@hp.com). 5140 5141_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error 5142return from this interface. Handles a possible timeout case if 5143ACPI_WAIT_FOREVER is modified by the host to be a value less than 5144"forever". Jung-uk Kim. 5145 5146Predefined name support: Add allowed/required argument type information 5147to 5148the master predefined info table. This change adds the infrastructure to 5149enable typechecking on incoming arguments for all predefined 5150methods/objects. It does not actually contain the code that will fully 5151utilize this information, this is still under development. Also condenses 5152some duplicate code for the predefined names into a new module, 5153utilities/utpredef.c 5154 5155Example Code and Data Size: These are the sizes for the OS-independent 5156acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5157debug version of the code includes the debug output trace mechanism and 5158has a much larger code and data size. 5159 5160 Previous Release: 5161 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 5162 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 5163 Current Release: 5164 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 5165 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 5166 5167 51682) iASL Compiler/Disassembler and Tools: 5169 5170iASL: Implemented a new option to simplify the development of ACPI- 5171related 5172BIOS code. Adds support for a new "offset table" output file. The -so 5173option will create a C table containing the AML table offsets of various 5174named objects in the namespace so that BIOS code can modify them easily 5175at 5176boot time. This can simplify BIOS runtime code by eliminating expensive 5177searches for "magic values", enhancing boot times and adding greater 5178reliability. With assistance from Lee Hamel. 5179 5180iASL: Allow additional predefined names to return zero-length packages. 5181Now, all predefined names that are defined by the ACPI specification to 5182return a "variable-length package of packages" are allowed to return a 5183zero length top-level package. This allows the BIOS to tell the host that 5184the requested feature is not supported, and supports existing BIOS/ASL 5185code and practices. 5186 5187iASL: Changed the "result not used" warning to an error. This is the case 5188where an ASL operator is effectively a NOOP because the result of the 5189operation is not stored anywhere. For example: 5190 Add (4, Local0) 5191There is no target (missing 3rd argument), nor is the function return 5192value used. This is potentially a very serious problem -- since the code 5193was probably intended to do something, but for whatever reason, the value 5194was not stored. Therefore, this issue has been upgraded from a warning to 5195an error. 5196 5197AcpiHelp: Added allowable/required argument types to the predefined names 5198info display. This feature utilizes the recent update to the predefined 5199names table (above). 5200 5201---------------------------------------- 520214 February 2013. Summary of changes for version 20130214: 5203 52041) ACPICA Kernel-resident Subsystem: 5205 5206Fixed a possible regression on some hosts: Reinstated the safe return 5207macros (return_ACPI_STATUS, etc.) that ensure that the argument is 5208evaluated only once. Although these macros are not needed for the ACPICA 5209code itself, they are often used by ACPI-related host device drivers 5210where 5211the safe feature may be necessary. 5212 5213Fixed several issues related to the ACPI 5.0 reduced hardware support 5214(SOC): Now ensure that if the platform declares itself as hardware- 5215reduced 5216via the FADT, the following functions become NOOPs (and always return 5217AE_OK) because ACPI is always enabled by definition on these machines: 5218 AcpiEnable 5219 AcpiDisable 5220 AcpiHwGetMode 5221 AcpiHwSetMode 5222 5223Dynamic Object Repair: Implemented additional runtime repairs for 5224predefined name return values. Both of these repairs can simplify code in 5225the related device drivers that invoke these methods: 52261) For the _STR and _MLS names, automatically repair/convert an ASCII 5227string to a Unicode buffer. 52282) For the _CRS, _PRS, and _DMA names, return a resource descriptor with 5229a 5230lone end tag descriptor in the following cases: A Return(0) was executed, 5231a null buffer was returned, or no object at all was returned (non-slack 5232mode only). Adds a new file, nsconvert.c 5233ACPICA BZ 998. Bob Moore, Lv Zheng. 5234 5235Resource Manager: Added additional code to prevent possible infinite 5236loops 5237while traversing corrupted or ill-formed resource template buffers. Check 5238for zero-length resource descriptors in all code that loops through 5239resource templates (the length field is used to index through the 5240template). This change also hardens the external AcpiWalkResources and 5241AcpiWalkResourceBuffer interfaces. 5242 5243Local Cache Manager: Enhanced the main data structure to eliminate an 5244unnecessary mechanism to access the next object in the list. Actually 5245provides a small performance enhancement for hosts that use the local 5246ACPICA cache manager. Jung-uk Kim. 5247 5248Example Code and Data Size: These are the sizes for the OS-independent 5249acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5250debug version of the code includes the debug output trace mechanism and 5251has a much larger code and data size. 5252 5253 Previous Release: 5254 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 5255 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 5256 Current Release: 5257 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 5258 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 5259 5260 52612) iASL Compiler/Disassembler and Tools: 5262 5263iASL/Disassembler: Fixed several issues with the definition of the ACPI 52645.0 RASF table (RAS Feature Table). This change incorporates late changes 5265that were made to the ACPI 5.0 specification. 5266 5267iASL/Disassembler: Added full support for the following new ACPI tables: 5268 1) The MTMR table (MID Timer Table) 5269 2) The VRTC table (Virtual Real Time Clock Table). 5270Includes header file, disassembler, table compiler, and template support 5271for both tables. 5272 5273iASL: Implemented compile-time validation of package objects returned by 5274predefined names. This new feature validates static package objects 5275returned by the various predefined names defined to return packages. Both 5276object types and package lengths are validated, for both parent packages 5277and sub-packages, if any. The code is similar in structure and behavior 5278to 5279the runtime repair mechanism within the AML interpreter and uses the 5280existing predefined name information table. Adds a new file, aslprepkg.c. 5281ACPICA BZ 938. 5282 5283iASL: Implemented auto-detection of binary ACPI tables for disassembly. 5284This feature detects a binary file with a valid ACPI table header and 5285invokes the disassembler automatically. Eliminates the need to 5286specifically invoke the disassembler with the -d option. ACPICA BZ 862. 5287 5288iASL/Disassembler: Added several warnings for the case where there are 5289unresolved control methods during the disassembly. This can potentially 5290cause errors when the output file is compiled, because the disassembler 5291assumes zero method arguments in these cases (it cannot determine the 5292actual number of arguments without resolution/definition of the method). 5293 5294Debugger: Added support to display all resources with a single command. 5295Invocation of the resources command with no arguments will now display 5296all 5297resources within the current namespace. 5298 5299AcpiHelp: Added descriptive text for each ACPICA exception code displayed 5300via the -e option. 5301 5302---------------------------------------- 530317 January 2013. Summary of changes for version 20130117: 5304 53051) ACPICA Kernel-resident Subsystem: 5306 5307Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 5308return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 5309objects to return a package containing one integer, most BIOS code 5310returns 5311two integers and the previous code reflects that. However, we also need 5312to 5313support BIOS code that actually implements to the ACPI spec, and this 5314change reflects this. 5315 5316Fixed two issues with the ACPI_DEBUG_PRINT macros: 53171) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 5318C compilers that require this support. 53192) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 5320ACPI_DEBUG is already used by many of the various hosts. 5321 5322Updated all ACPICA copyrights and signons to 2013. Added the 2013 5323copyright to all module headers and signons, including the standard Linux 5324header. This affects virtually every file in the ACPICA core subsystem, 5325iASL compiler, all ACPICA utilities, and the test suites. 5326 5327Example Code and Data Size: These are the sizes for the OS-independent 5328acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5329debug version of the code includes the debug output trace mechanism and 5330has a much larger code and data size. 5331 5332 Previous Release: 5333 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 5334 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 5335 Current Release: 5336 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 5337 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 5338 5339 53402) iASL Compiler/Disassembler and Tools: 5341 5342Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 5343prevent a possible fault on some hosts. Some C libraries modify the arg 5344pointer parameter to vfprintf making it difficult to call it twice in the 5345AcpiOsVprintf function. Use a local buffer to workaround this issue. This 5346does not affect the Windows OSL since the Win C library does not modify 5347the arg pointer. Chao Guan, Bob Moore. 5348 5349iASL: Fixed a possible infinite loop when the maximum error count is 5350reached. If an output file other than the .AML file is specified (such as 5351a listing file), and the maximum number of errors is reached, do not 5352attempt to flush data to the output file(s) as the compiler is aborting. 5353This can cause an infinite loop as the max error count code essentially 5354keeps calling itself. 5355 5356iASL/Disassembler: Added an option (-in) to ignore NOOP 5357opcodes/operators. 5358Implemented for both the compiler and the disassembler. Often, the NOOP 5359opcode is used as padding for packages that are changed dynamically by 5360the 5361BIOS. When disassembled and recompiled, these NOOPs will cause syntax 5362errors. This option causes the disassembler to ignore all NOOP opcodes 5363(0xA3), and it also causes the compiler to ignore all ASL source code 5364NOOP 5365statements as well. 5366 5367Debugger: Enhanced the Sleep command to execute all sleep states. This 5368change allows Sleep to be invoked with no arguments and causes the 5369debugger to execute all of the sleep states, 0-5, automatically. 5370 5371---------------------------------------- 537220 December 2012. Summary of changes for version 20121220: 5373 53741) ACPICA Kernel-resident Subsystem: 5375 5376Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 5377alternate entry point for AcpiWalkResources and improves the usability of 5378the resource manager by accepting as input a buffer containing the output 5379of either a _CRS, _PRS, or _AEI method. The key functionality is that the 5380input buffer is not deleted by this interface so that it can be used by 5381the host later. See the ACPICA reference for details. 5382 5383Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 5384(DSDT version < 2). The constant will be truncated and this warning 5385reflects that behavior. 5386 5387Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 5388ExtendedInterrupt, and GpioInt descriptors. This change adds support to 5389both get and set the new wake bit in these descriptors, separately from 5390the existing share bit. Reported by Aaron Lu. 5391 5392Interpreter: Fix Store() when an implicit conversion is not possible. For 5393example, in the cases such as a store of a string to an existing package 5394object, implement the store as a CopyObject(). This is a small departure 5395from the ACPI specification which states that the control method should 5396be 5397aborted in this case. However, the ASLTS suite depends on this behavior. 5398 5399Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 5400macros: check if debug output is currently enabled as soon as possible to 5401minimize performance impact if debug is in fact not enabled. 5402 5403Source code restructuring: Cleanup to improve modularity. The following 5404new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 5405psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 5406Associated makefiles and project files have been updated. 5407 5408Changed an exception code for LoadTable operator. For the case where one 5409of the input strings is too long, change the returned exception code from 5410AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 5411 5412Fixed a possible memory leak in dispatcher error path. On error, delete 5413the mutex object created during method mutex creation. Reported by 5414tim.gardner@canonical.com. 5415 5416Example Code and Data Size: These are the sizes for the OS-independent 5417acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5418debug version of the code includes the debug output trace mechanism and 5419has a much larger code and data size. 5420 5421 Previous Release: 5422 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 5423 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 5424 Current Release: 5425 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 5426 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 5427 5428 54292) iASL Compiler/Disassembler and Tools: 5430 5431iASL: Disallow a method call as argument to the ObjectType ASL operator. 5432This change tracks an errata to the ACPI 5.0 document. The AML grammar 5433will not allow the interpreter to differentiate between a method and a 5434method invocation when these are used as an argument to the ObjectType 5435operator. The ACPI specification change is to disallow a method 5436invocation 5437(UserTerm) for the ObjectType operator. 5438 5439Finish support for the TPM2 and CSRT tables in the headers, table 5440compiler, and disassembler. 5441 5442Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 5443always expires immediately if the semaphore is not available. The 5444original 5445code was using a relative-time timeout, but sem_timedwait requires the 5446use 5447of an absolute time. 5448 5449iASL: Added a remark if the Timer() operator is used within a 32-bit 5450table. This operator returns a 64-bit time value that will be truncated 5451within a 32-bit table. 5452 5453iASL Source code restructuring: Cleanup to improve modularity. The 5454following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 5455aslmethod.c, and aslfileio.c. Associated makefiles and project files have 5456been updated. 5457 5458 5459---------------------------------------- 546014 November 2012. Summary of changes for version 20121114: 5461 54621) ACPICA Kernel-resident Subsystem: 5463 5464Implemented a performance enhancement for ACPI/AML Package objects. This 5465change greatly increases the performance of Package objects within the 5466interpreter. It changes the processing of reference counts for packages 5467by 5468optimizing for the most common case where the package sub-objects are 5469either Integers, Strings, or Buffers. Increases the overall performance 5470of 5471the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 54722X.) 5473Chao Guan. ACPICA BZ 943. 5474 5475Implemented and deployed common macros to extract flag bits from resource 5476descriptors. Improves readability and maintainability of the code. Fixes 5477a 5478problem with the UART serial bus descriptor for the number of data bits 5479flags (was incorrectly 2 bits, should be 3). 5480 5481Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 5482of the macros and changed the SETx macros to the style of (destination, 5483source). Also added ACPI_CASTx companion macros. Lv Zheng. 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 much larger code and data size. 5489 5490 Previous Release: 5491 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 5492 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 5493 Current Release: 5494 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 5495 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 5496 5497 54982) iASL Compiler/Disassembler and Tools: 5499 5500Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 5501adds the ShareAndWake and ExclusiveAndWake flags which were added to the 5502Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 5503 5504Disassembler: Fixed a problem with external declaration generation. Fixes 5505a problem where an incorrect pathname could be generated for an external 5506declaration if the original reference to the object includes leading 5507carats (^). ACPICA BZ 984. 5508 5509Debugger: Completed a major update for the Disassemble<method> command. 5510This command was out-of-date and did not properly disassemble control 5511methods that had any reasonable complexity. This fix brings the command 5512up 5513to the same level as the rest of the disassembler. Adds one new file, 5514dmdeferred.c, which is existing code that is now common with the main 5515disassembler and the debugger disassemble command. ACPICA MZ 978. 5516 5517iASL: Moved the parser entry prototype to avoid a duplicate declaration. 5518Newer versions of Bison emit this prototype, so moved the prototype out 5519of 5520the iASL header to where it is actually used in order to avoid a 5521duplicate 5522declaration. 5523 5524iASL/Tools: Standardized use of the stream I/O functions: 5525 1) Ensure check for I/O error after every fopen/fread/fwrite 5526 2) Ensure proper order of size/count arguments for fread/fwrite 5527 3) Use test of (Actual != Requested) after all fwrite, and most fread 5528 4) Standardize I/O error messages 5529Improves reliability and maintainability of the code. Bob Moore, Lv 5530Zheng. 5531ACPICA BZ 981. 5532 5533Disassembler: Prevent duplicate External() statements. During generation 5534of external statements, detect similar pathnames that are actually 5535duplicates such as these: 5536 External (\ABCD) 5537 External (ABCD) 5538Remove all leading '\' characters from pathnames during the external 5539statement generation so that duplicates will be detected and tossed. 5540ACPICA BZ 985. 5541 5542Tools: Replace low-level I/O with stream I/O functions. Replace 5543open/read/write/close with the stream I/O equivalents 5544fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 5545Moore. 5546 5547AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 5548name header so that AcpiXtract recognizes the output file/table. 5549 5550iASL: Remove obsolete -2 option flag. Originally intended to force the 5551compiler/disassembler into an ACPI 2.0 mode, this was never implemented 5552and the entire concept is now obsolete. 5553 5554---------------------------------------- 555518 October 2012. Summary of changes for version 20121018: 5556 5557 55581) ACPICA Kernel-resident Subsystem: 5559 5560Updated support for the ACPI 5.0 MPST table. Fixes some problems 5561introduced by late changes to the table as it was added to the ACPI 5.0 5562specification. Includes header, disassembler, and data table compiler 5563support as well as a new version of the MPST template. 5564 5565AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 55665.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 5567methods: _HID, _CID, and _UID. 5568 5569Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 5570ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 5571name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 5572names for their various drivers. Affects the AcpiGetObjectInfo external 5573interface, and other internal interfaces as well. 5574 5575Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 5576This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 5577on machines that support non-aligned transfers. Optimizes for this case 5578rather than using a strncpy. With assistance from Zheng Lv. 5579 5580Resource Manager: Small fix for buffer size calculation. Fixed a one byte 5581error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 5582 5583Added a new debug print message for AML mutex objects that are force- 5584released. At control method termination, any currently acquired mutex 5585objects are force-released. Adds a new debug-only message for each one 5586that is released. 5587 5588Audited/updated all ACPICA return macros and the function debug depth 5589counter: 1) Ensure that all functions that use the various TRACE macros 5590also use the appropriate ACPICA return macros. 2) Ensure that all normal 5591return statements surround the return expression (value) with parens to 5592ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 5593Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 5594 5595Global source code changes/maintenance: All extra lines at the start and 5596end of each source file have been removed for consistency. Also, within 5597comments, all new sentences start with a single space instead of a double 5598space, again for consistency across the code base. 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 version of the code includes the debug output trace mechanism and 5603has a much larger code and data size. 5604 5605 Previous Release: 5606 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 5607 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 5608 Current Release: 5609 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 5610 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 5611 5612 56132) iASL Compiler/Disassembler and Tools: 5614 5615AcpiExec: Improved the algorithm used for memory leak/corruption 5616detection. Added some intelligence to the code that maintains the global 5617list of allocated memory. The list is now ordered by allocated memory 5618address, significantly improving performance. When running AcpiExec on 5619the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 5620on the platform and/or the environment. Note, this performance 5621enhancement affects the AcpiExec utility only, not the kernel-resident 5622ACPICA code. 5623 5624Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 5625the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 5626incorrect table offset reported for invalid opcodes. Report the original 562732-bit value for bad ACPI_NAMEs (as well as the repaired name.) 5628 5629Disassembler: Enhanced the -vt option to emit the binary table data in 5630hex format to assist with debugging. 5631 5632Fixed a potential filename buffer overflow in osunixdir.c. Increased the 5633size of file structure. Colin Ian King. 5634 5635---------------------------------------- 563613 September 2012. Summary of changes for version 20120913: 5637 5638 56391) ACPICA Kernel-resident Subsystem: 5640 5641ACPI 5.0: Added two new notify types for the Hardware Error Notification 5642Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 5643and 5644MCE(6). 5645 5646Table Manager: Merged/removed duplicate code in the root table resize 5647functions. One function is external, the other is internal. Lv Zheng, 5648ACPICA 5649BZ 846. 5650 5651Makefiles: Completely removed the obsolete "Linux" makefiles under 5652acpica/generate/linux. These makefiles are obsolete and have been 5653replaced 5654by 5655the generic unix makefiles under acpica/generate/unix. 5656 5657Makefiles: Ensure that binary files always copied properly. Minor rule 5658change 5659to ensure that the final binary output files are always copied up to the 5660appropriate binary directory (bin32 or bin64.) 5661 5662Example Code and Data Size: These are the sizes for the OS-independent 5663acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5664debug 5665version of the code includes the debug output trace mechanism and has a 5666much 5667larger code and data size. 5668 5669 Previous Release: 5670 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 5671 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 5672 Current Release: 5673 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 5674 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 5675 5676 56772) iASL Compiler/Disassembler and Tools: 5678 5679Disassembler: Fixed a possible fault during the disassembly of resource 5680descriptors when a second parse is required because of the invocation of 5681external control methods within the table. With assistance from 5682adq@lidskialf.net. ACPICA BZ 976. 5683 5684iASL: Fixed a namepath optimization problem. An error can occur if the 5685parse 5686node that contains the namepath to be optimized does not have a parent 5687node 5688that is a named object. This change fixes the problem. 5689 5690iASL: Fixed a regression where the AML file is not deleted on errors. The 5691AML 5692output file should be deleted if there are any errors during the 5693compiler. 5694The 5695only exception is if the -f (force output) option is used. ACPICA BZ 974. 5696 5697iASL: Added a feature to automatically increase internal line buffer 5698sizes. 5699Via realloc(), automatically increase the internal line buffer sizes as 5700necessary to support very long source code lines. The current version of 5701the 5702preprocessor requires a buffer long enough to contain full source code 5703lines. 5704This change increases the line buffer(s) if the input lines go beyond the 5705current buffer size. This eliminates errors that occurred when a source 5706code 5707line was longer than the buffer. 5708 5709iASL: Fixed a problem with constant folding in method declarations. The 5710SyncLevel term is a ByteConstExpr, and incorrect code would be generated 5711if a 5712Type3 opcode was used. 5713 5714Debugger: Improved command help support. For incorrect argument count, 5715display 5716full help for the command. For help command itself, allow an argument to 5717specify a command. 5718 5719Test Suites: Several bug fixes for the ASLTS suite reduces the number of 5720errors during execution of the suite. Guan Chao. 5721 5722---------------------------------------- 572316 August 2012. Summary of changes for version 20120816: 5724 5725 57261) ACPICA Kernel-resident Subsystem: 5727 5728Removed all use of the deprecated _GTS and _BFS predefined methods. The 5729_GTS 5730(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 5731deprecated and will probably be removed from the ACPI specification. 5732Windows 5733does not invoke them, and reportedly never will. The final nail in the 5734coffin 5735is that the ACPI specification states that these methods must be run with 5736interrupts off, which is not going to happen in a kernel interpreter. 5737Note: 5738Linux has removed all use of the methods also. It was discovered that 5739invoking these functions caused failures on some machines, probably 5740because 5741they were never tested since Windows does not call them. Affects two 5742external 5743interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 5744ACPICA BZ 969. 5745 5746Implemented support for complex bit-packed buffers returned from the _PLD 5747(Physical Location of Device) predefined method. Adds a new external 5748interface, AcpiDecodePldBuffer that parses the buffer into a more usable 5749C 5750structure. Note: C Bitfields cannot be used for this type of predefined 5751structure since the memory layout of individual bitfields is not defined 5752by 5753the C language. In addition, there are endian concerns where a compiler 5754will 5755change the bitfield ordering based on the machine type. The new ACPICA 5756interface eliminates these issues, and should be called after _PLD is 5757executed. ACPICA BZ 954. 5758 5759Implemented a change to allow a scope change to root (via "Scope (\)") 5760during 5761execution of module-level ASL code (code that is executed at table load 5762time.) Lin Ming. 5763 5764Added the Windows8/Server2012 string for the _OSI method. This change 5765adds 5766a 5767new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 57682012. 5769 5770Added header support for the new ACPI tables DBG2 (Debug Port Table Type 57712) 5772and CSRT (Core System Resource Table). 5773 5774Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 5775names. This simplifies access to the buffers returned by these predefined 5776names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 5777 5778GPE support: Removed an extraneous parameter from the various low-level 5779internal GPE functions. Tang Feng. 5780 5781Removed the linux makefiles from the unix packages. The generate/linux 5782makefiles are obsolete and have been removed from the unix tarball 5783release 5784packages. The replacement makefiles are under generate/unix, and there is 5785a 5786top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 5787 5788Updates for Unix makefiles: 57891) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 57902) Update linker flags (move to end of command line) for AcpiExec 5791utility. 5792Guan Chao. 5793 5794Split ACPICA initialization functions to new file, utxfinit.c. Split from 5795utxface.c to improve modularity and reduce file size. 5796 5797Example Code and Data Size: These are the sizes for the OS-independent 5798acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5799debug version of the code includes the debug output trace mechanism and 5800has a 5801much larger code and data size. 5802 5803 Previous Release: 5804 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 5805 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 5806 Current Release: 5807 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 5808 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 5809 5810 58112) iASL Compiler/Disassembler and Tools: 5812 5813iASL: Fixed a problem with constant folding for fixed-length constant 5814expressions. The constant-folding code was not being invoked for constant 5815expressions that allow the use of type 3/4/5 opcodes to generate 5816constants 5817for expressions such as ByteConstExpr, WordConstExpr, etc. This could 5818result 5819in the generation of invalid AML bytecode. ACPICA BZ 970. 5820 5821iASL: Fixed a generation issue on newer versions of Bison. Newer versions 5822apparently automatically emit some of the necessary externals. This 5823change 5824handles these versions in order to eliminate generation warnings. 5825 5826Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 5827 5828Disassembler: Add support to decode _PLD buffers. The decoded buffer 5829appears 5830within comments in the output file. 5831 5832Debugger: Fixed a regression with the "Threads" command where 5833AE_BAD_PARAMETER was always returned. 5834 5835---------------------------------------- 583611 July 2012. Summary of changes for version 20120711: 5837 58381) ACPICA Kernel-resident Subsystem: 5839 5840Fixed a possible fault in the return package object repair code. Fixes a 5841problem that can occur when a lone package object is wrapped with an 5842outer 5843package object in order to force conformance to the ACPI specification. 5844Can 5845affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 5846_DLM, 5847_CSD, _PSD, _TSD. 5848 5849Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 5850PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 5851ARB_DIS bit must be implemented in the host-dependent C3 processor power 5852state 5853support. Note, ARB_DIS is obsolete and only applies to older chipsets, 5854both 5855Intel and other vendors. (for Intel: ICH4-M and earlier) 5856 5857This change removes the code to disable/enable bus master arbitration 5858during 5859suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 5860causes 5861resume problems on some machines. The change has been in use for over 5862seven 5863years within Linux. 5864 5865Implemented two new external interfaces to support host-directed dynamic 5866ACPI 5867table load and unload. They are intended to simplify the host 5868implementation 5869of hot-plug support: 5870 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 5871 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 5872table. 5873See the ACPICA reference for additional details. Adds one new file, 5874components/tables/tbxfload.c 5875 5876Implemented and deployed two new interfaces for errors and warnings that 5877are 5878known to be caused by BIOS/firmware issues: 5879 AcpiBiosError: Prints "ACPI Firmware Error" message. 5880 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 5881Deployed these new interfaces in the ACPICA Table Manager code for ACPI 5882table 5883and FADT errors. Additional deployment to be completed as appropriate in 5884the 5885future. The associated conditional macros are ACPI_BIOS_ERROR and 5886ACPI_BIOS_WARNING. See the ACPICA reference for additional details. 5887ACPICA 5888BZ 5889843. 5890 5891Implicit notify support: ensure that no memory allocation occurs within a 5892critical region. This fix moves a memory allocation outside of the time 5893that a 5894spinlock is held. Fixes issues on systems that do not allow this 5895behavior. 5896Jung-uk Kim. 5897 5898Split exception code utilities and tables into a new file, 5899utilities/utexcep.c 5900 5901Example Code and Data Size: These are the sizes for the OS-independent 5902acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5903debug 5904version of the code includes the debug output trace mechanism and has a 5905much 5906larger code and data size. 5907 5908 Previous Release: 5909 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 5910 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 5911 Current Release: 5912 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 5913 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 5914 5915 59162) iASL Compiler/Disassembler and Tools: 5917 5918iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 5919of 59200. Jung-uk Kim. 5921 5922Debugger: Enhanced the "tables" command to emit additional information 5923about 5924the current set of ACPI tables, including the owner ID and flags decode. 5925 5926Debugger: Reimplemented the "unload" command to use the new 5927AcpiUnloadParentTable external interface. This command was disable 5928previously 5929due to need for an unload interface. 5930 5931AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 5932option 5933will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 5934 5935---------------------------------------- 593620 June 2012. Summary of changes for version 20120620: 5937 5938 59391) ACPICA Kernel-resident Subsystem: 5940 5941Implemented support to expand the "implicit notify" feature to allow 5942multiple 5943devices to be notified by a single GPE. This feature automatically 5944generates a 5945runtime device notification in the absence of a BIOS-provided GPE control 5946method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 5947notify is 5948provided by ACPICA for Windows compatibility, and is a workaround for 5949BIOS 5950AML 5951code errors. See the description of the AcpiSetupGpeForWake interface in 5952the 5953APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 5954 5955Changed some comments and internal function names to simplify and ensure 5956correctness of the Linux code translation. No functional changes. 5957 5958Example Code and Data Size: These are the sizes for the OS-independent 5959acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5960debug 5961version of the code includes the debug output trace mechanism and has a 5962much 5963larger code and data size. 5964 5965 Previous Release: 5966 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 5967 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 5968 Current Release: 5969 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 5970 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 5971 5972 59732) iASL Compiler/Disassembler and Tools: 5974 5975Disassembler: Added support to emit short, commented descriptions for the 5976ACPI 5977predefined names in order to improve the readability of the disassembled 5978output. ACPICA BZ 959. Changes include: 5979 1) Emit descriptions for all standard predefined names (_INI, _STA, 5980_PRW, 5981etc.) 5982 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 5983 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 5984etc.) 5985 5986AcpiSrc: Fixed several long-standing Linux code translation issues. 5987Argument 5988descriptions in function headers are now translated properly to lower 5989case 5990and 5991underscores. ACPICA BZ 961. Also fixes translation problems such as 5992these: 5993(old -> new) 5994 i_aSL -> iASL 5995 00-7_f -> 00-7F 5996 16_k -> 16K 5997 local_fADT -> local_FADT 5998 execute_oSI -> execute_OSI 5999 6000iASL: Fixed a problem where null bytes were inadvertently emitted into 6001some 6002listing files. 6003 6004iASL: Added the existing debug options to the standard help screen. There 6005are 6006no longer two different help screens. ACPICA BZ 957. 6007 6008AcpiHelp: Fixed some typos in the various predefined name descriptions. 6009Also 6010expand some of the descriptions where appropriate. 6011 6012iASL: Fixed the -ot option (display compile times/statistics). Was not 6013working 6014properly for standard output; only worked for the debug file case. 6015 6016---------------------------------------- 601718 May 2012. Summary of changes for version 20120518: 6018 6019 60201) ACPICA Core Subsystem: 6021 6022Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 6023defined 6024to block until asynchronous events such as notifies and GPEs have 6025completed. 6026Within ACPICA, it is only called before a notify or GPE handler is 6027removed/uninstalled. It also may be useful for the host OS within related 6028drivers such as the Embedded Controller driver. See the ACPICA reference 6029for 6030additional information. ACPICA BZ 868. 6031 6032ACPI Tables: Added a new error message for a possible overflow failure 6033during 6034the conversion of FADT 32-bit legacy register addresses to internal 6035common 603664- 6037bit GAS structure representation. The GAS has a one-byte "bit length" 6038field, 6039thus limiting the register length to 255 bits. ACPICA BZ 953. 6040 6041Example Code and Data Size: These are the sizes for the OS-independent 6042acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6043debug 6044version of the code includes the debug output trace mechanism and has a 6045much 6046larger code and data size. 6047 6048 Previous Release: 6049 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 6050 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 6051 Current Release: 6052 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 6053 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 6054 6055 60562) iASL Compiler/Disassembler and Tools: 6057 6058iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 6059macro. 6060This keyword was added late in the ACPI 5.0 release cycle and was not 6061implemented until now. 6062 6063Disassembler: Added support for Operation Region externals. Adds missing 6064support for operation regions that are defined in another table, and 6065referenced locally via a Field or BankField ASL operator. Now generates 6066the 6067correct External statement. 6068 6069Disassembler: Several additional fixes for the External() statement 6070generation 6071related to some ASL operators. Also, order the External() statements 6072alphabetically in the disassembler output. Fixes the External() 6073generation 6074for 6075the Create* field, Alias, and Scope operators: 6076 1) Create* buffer field operators - fix type mismatch warning on 6077disassembly 6078 2) Alias - implement missing External support 6079 3) Scope - fix to make sure all necessary externals are emitted. 6080 6081iASL: Improved pathname support. For include files, merge the prefix 6082pathname 6083with the file pathname and eliminate unnecessary components. Convert 6084backslashes in all pathnames to forward slashes, for readability. Include 6085file 6086pathname changes affect both #include and Include() type operators. 6087 6088iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 6089end 6090of a valid line by inserting a newline and then returning the EOF during 6091the 6092next call to GetNextLine. Prevents the line from being ignored due to EOF 6093condition. 6094 6095iASL: Implemented some changes to enhance the IDE support (-vi option.) 6096Error 6097and Warning messages are now correctly recognized for both the source 6098code 6099browser and the global error and warning counts. 6100 6101---------------------------------------- 610220 April 2012. Summary of changes for version 20120420: 6103 6104 61051) ACPICA Core Subsystem: 6106 6107Implemented support for multiple notify handlers. This change adds 6108support 6109to 6110allow multiple system and device notify handlers on Device, Thermal Zone, 6111and 6112Processor objects. This can simplify the host OS notification 6113implementation. 6114Also re-worked and restructured the entire notify support code to 6115simplify 6116handler installation, handler removal, notify event queuing, and notify 6117dispatch to handler(s). Note: there can still only be two global notify 6118handlers - one for system notifies and one for device notifies. There are 6119no 6120changes to the existing handler install/remove interfaces. Lin Ming, Bob 6121Moore, Rafael Wysocki. 6122 6123Fixed a regression in the package repair code where the object reference 6124count was calculated incorrectly. Regression was introduced in the commit 6125"Support to add Package wrappers". 6126 6127Fixed a couple possible memory leaks in the AML parser, in the error 6128recovery 6129path. Jesper Juhl, Lin Ming. 6130 6131Example Code and Data Size: These are the sizes for the OS-independent 6132acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6133debug version of the code includes the debug output trace mechanism and 6134has a 6135much larger code and data size. 6136 6137 Previous Release: 6138 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 6139 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 6140 Current Release: 6141 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 6142 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 6143 6144 61452) iASL Compiler/Disassembler and Tools: 6146 6147iASL: Fixed a problem with the resource descriptor support where the 6148length 6149of the StartDependentFn and StartDependentFnNoPrio descriptors were not 6150included in cumulative descriptor offset, resulting in incorrect values 6151for 6152resource tags within resource descriptors appearing after a 6153StartDependent* 6154descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 6155 6156iASL and Preprocessor: Implemented full support for the #line directive 6157to 6158correctly track original source file line numbers through the .i 6159preprocessor 6160output file - for error and warning messages. 6161 6162iASL: Expand the allowable byte constants for address space IDs. 6163Previously, 6164the allowable range was 0x80-0xFF (user-defined spaces), now the range is 61650x0A-0xFF to allow for custom and new IDs without changing the compiler. 6166 6167iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 6168 6169iASL: Add option to completely disable the preprocessor (-Pn). 6170 6171iASL: Now emit all error/warning messages to standard error (stderr) by 6172default (instead of the previous stdout). 6173 6174ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 6175Update 6176for resource descriptor offset fix above. Update/cleanup error output 6177routines. Enable and send iASL errors/warnings to an error logfile 6178(error.txt). Send all other iASL output to a logfile (compiler.txt). 6179Fixed 6180several extraneous "unrecognized operator" messages. 6181 6182---------------------------------------- 618320 March 2012. Summary of changes for version 20120320: 6184 6185 61861) ACPICA Core Subsystem: 6187 6188Enhanced the sleep/wake interfaces to optionally execute the _GTS method 6189(Going To Sleep) and the _BFS method (Back From Sleep). Windows 6190apparently 6191does not execute these methods, and therefore these methods are often 6192untested. It has been seen on some systems where the execution of these 6193methods causes errors and also prevents the machine from entering S5. It 6194is 6195therefore suggested that host operating systems do not execute these 6196methods 6197by default. In the future, perhaps these methods can be optionally 6198executed 6199based on the age of the system and/or what is the newest version of 6200Windows 6201that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 6202and 6203AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 6204Ming. 6205 6206Fixed a problem where the length of the local/common FADT was set too 6207early. 6208The local FADT table length cannot be set to the common length until the 6209original length has been examined. There is code that checks the table 6210length 6211and sets various fields appropriately. This can affect older machines 6212with 6213early FADT versions. For example, this can cause inadvertent writes to 6214the 6215CST_CNT register. Julian Anastasov. 6216 6217Fixed a mapping issue related to a physical table override. Use the 6218deferred 6219mapping mechanism for tables loaded via the physical override OSL 6220interface. 6221This allows for early mapping before the virtual memory manager is 6222available. 6223Thomas Renninger, Bob Moore. 6224 6225Enhanced the automatic return-object repair code: Repair a common problem 6226with 6227predefined methods that are defined to return a variable-length Package 6228of 6229sub-objects. If there is only one sub-object, some BIOS ASL code 6230mistakenly 6231simply returns the single object instead of a Package with one sub- 6232object. 6233This new support will repair this error by wrapping a Package object 6234around 6235the original object, creating the correct and expected Package with one 6236sub- 6237object. Names that can be repaired in this manner include: _ALR, _CSD, 6238_HPX, 6239_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 6240939. 6241 6242Changed the exception code returned for invalid ACPI paths passed as 6243parameters to external interfaces such as AcpiEvaluateObject. Was 6244AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 6245 6246Example Code and Data Size: These are the sizes for the OS-independent 6247acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6248debug 6249version of the code includes the debug output trace mechanism and has a 6250much 6251larger code and data size. 6252 6253 Previous Release: 6254 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 6255 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 6256 Current Release: 6257 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 6258 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 6259 6260 62612) iASL Compiler/Disassembler and Tools: 6262 6263iASL: Added the infrastructure and initial implementation of a integrated 6264C- 6265like preprocessor. This will simplify BIOS development process by 6266eliminating 6267the need for a separate preprocessing step during builds. On Windows, it 6268also 6269eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 6270features including full #define() macro support are still under 6271development. 6272These preprocessor directives are supported: 6273 #define 6274 #elif 6275 #else 6276 #endif 6277 #error 6278 #if 6279 #ifdef 6280 #ifndef 6281 #include 6282 #pragma message 6283 #undef 6284 #warning 6285In addition, these new command line options are supported: 6286 -D <symbol> Define symbol for preprocessor use 6287 -li Create preprocessed output file (*.i) 6288 -P Preprocess only and create preprocessor output file (*.i) 6289 6290Table Compiler: Fixed a problem where the equals operator within an 6291expression 6292did not work properly. 6293 6294Updated iASL to use the current versions of Bison/Flex. Updated the 6295Windows 6296project file to invoke these tools from the standard location. ACPICA BZ 6297904. 6298Versions supported: 6299 Flex for Windows: V2.5.4 6300 Bison for Windows: V2.4.1 6301 6302---------------------------------------- 630315 February 2012. Summary of changes for version 20120215: 6304 6305 63061) ACPICA Core Subsystem: 6307 6308There have been some major changes to the sleep/wake support code, as 6309described below (a - e). 6310 6311a) The AcpiLeaveSleepState has been split into two interfaces, similar to 6312AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 6313AcpiLeaveSleepStatePrep. This allows the host to perform actions between 6314the 6315time the _BFS method is called and the _WAK method is called. NOTE: all 6316hosts 6317must update their wake/resume code or else sleep/wake will not work 6318properly. 6319Rafael Wysocki. 6320 6321b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 6322_WAK 6323method. Some machines require that the GPEs are enabled before the _WAK 6324method 6325is executed. Thomas Renninger. 6326 6327c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) 6328bit. 6329Some BIOS code assumes that WAK_STS will be cleared on resume and use it 6330to 6331determine whether the system is rebooting or resuming. Matthew Garrett. 6332 6333d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 6334Sleep) to 6335match the ACPI specification requirement. Rafael Wysocki. 6336 6337e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 6338registers within the V5 FADT. This support adds two new files: 6339hardware/hwesleep.c implements the support for the new registers. Moved 6340all 6341sleep/wake external interfaces to hardware/hwxfsleep.c. 6342 6343 6344Added a new OSL interface for ACPI table overrides, 6345AcpiOsPhysicalTableOverride. This interface allows the host to override a 6346table via a physical address, instead of the logical address required by 6347AcpiOsTableOverride. This simplifies the host implementation. Initial 6348implementation by Thomas Renninger. The ACPICA implementation creates a 6349single 6350shared function for table overrides that attempts both a logical and a 6351physical override. 6352 6353Expanded the OSL memory read/write interfaces to 64-bit data 6354(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 6355transfer support for GAS register structures passed to AcpiRead and 6356AcpiWrite. 6357 6358Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 6359custom 6360build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 6361model. 6362See the ACPICA reference for details. ACPICA BZ 942. This option removes 6363about 636410% of the code and 5% of the static data, and the following hardware 6365ACPI 6366features become unavailable: 6367 PM Event and Control registers 6368 SCI interrupt (and handler) 6369 Fixed Events 6370 General Purpose Events (GPEs) 6371 Global Lock 6372 ACPI PM timer 6373 FACS table (Waking vectors and Global Lock) 6374 6375Updated the unix tarball directory structure to match the ACPICA git 6376source 6377tree. This ensures that the generic unix makefiles work properly (in 6378generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 6379867. 6380 6381Updated the return value of the _REV predefined method to integer value 5 6382to 6383reflect ACPI 5.0 support. 6384 6385Moved the external ACPI PM timer interface prototypes to the public 6386acpixf.h 6387file where they belong. 6388 6389Example Code and Data Size: These are the sizes for the OS-independent 6390acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6391debug 6392version of the code includes the debug output trace mechanism and has a 6393much 6394larger code and data size. 6395 6396 Previous Release: 6397 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 6398 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 6399 Current Release: 6400 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 6401 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 6402 6403 64042) iASL Compiler/Disassembler and Tools: 6405 6406Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 6407descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 6408incorrectly displayed. 6409 6410AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 6411specification. 6412 6413---------------------------------------- 641411 January 2012. Summary of changes for version 20120111: 6415 6416 64171) ACPICA Core Subsystem: 6418 6419Implemented a new mechanism to allow host device drivers to check for 6420address 6421range conflicts with ACPI Operation Regions. Both SystemMemory and 6422SystemIO 6423address spaces are supported. A new external interface, 6424AcpiCheckAddressRange, 6425allows drivers to check an address range against the ACPI namespace. See 6426the 6427ACPICA reference for additional details. Adds one new file, 6428utilities/utaddress.c. Lin Ming, Bob Moore. 6429 6430Fixed several issues with the ACPI 5.0 FADT support: Add the sleep 6431Control 6432and 6433Status registers, update the ACPI 5.0 flags, and update internal data 6434structures to handle an FADT larger than 256 bytes. The size of the ACPI 64355.0 6436FADT is 268 bytes. 6437 6438Updated all ACPICA copyrights and signons to 2012. Added the 2012 6439copyright to 6440all module headers and signons, including the standard Linux header. This 6441affects virtually every file in the ACPICA core subsystem, iASL compiler, 6442and 6443all ACPICA utilities. 6444 6445Example Code and Data Size: These are the sizes for the OS-independent 6446acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6447debug 6448version of the code includes the debug output trace mechanism and has a 6449much 6450larger code and data size. 6451 6452 Previous Release: 6453 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 6454 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 6455 Current Release: 6456 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 6457 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 6458 6459 64602) iASL Compiler/Disassembler and Tools: 6461 6462Disassembler: fixed a problem with the automatic resource tag generation 6463support. Fixes a problem where the resource tags are inadvertently not 6464constructed if the table being disassembled contains external references 6465to 6466control methods. Moved the actual construction of the tags to after the 6467final 6468namespace is constructed (after 2nd parse is invoked due to external 6469control 6470method references.) ACPICA BZ 941. 6471 6472Table Compiler: Make all "generic" operators caseless. These are the 6473operators 6474like UINT8, String, etc. Making these caseless improves ease-of-use. 6475ACPICA BZ 6476934. 6477 6478---------------------------------------- 647923 November 2011. Summary of changes for version 20111123: 6480 64810) ACPI 5.0 Support: 6482 6483This release contains full support for the ACPI 5.0 specification, as 6484summarized below. 6485 6486Reduced Hardware Support: 6487------------------------- 6488 6489This support allows for ACPI systems without the usual ACPI hardware. 6490This 6491support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 6492will 6493not attempt to initialize or use any of the usual ACPI hardware. Note, 6494when 6495this flag is set, all of the following ACPI hardware is assumed to be not 6496present and is not initialized or accessed: 6497 6498 General Purpose Events (GPEs) 6499 Fixed Events (PM1a/PM1b and PM Control) 6500 Power Management Timer and Console Buttons (power/sleep) 6501 Real-time Clock Alarm 6502 Global Lock 6503 System Control Interrupt (SCI) 6504 The FACS is assumed to be non-existent 6505 6506ACPI Tables: 6507------------ 6508 6509All new tables and updates to existing tables are fully supported in the 6510ACPICA headers (for use by device drivers), the disassembler, and the 6511iASL 6512Data Table Compiler. ACPI 5.0 defines these new tables: 6513 6514 BGRT /* Boot Graphics Resource Table */ 6515 DRTM /* Dynamic Root of Trust for Measurement table */ 6516 FPDT /* Firmware Performance Data Table */ 6517 GTDT /* Generic Timer Description Table */ 6518 MPST /* Memory Power State Table */ 6519 PCCT /* Platform Communications Channel Table */ 6520 PMTT /* Platform Memory Topology Table */ 6521 RASF /* RAS Feature table */ 6522 6523Operation Regions/SpaceIDs: 6524--------------------------- 6525 6526All new operation regions are fully supported by the iASL compiler, the 6527disassembler, and the ACPICA runtime code (for dispatch to region 6528handlers.) 6529The new operation region Space IDs are: 6530 6531 GeneralPurposeIo 6532 GenericSerialBus 6533 6534Resource Descriptors: 6535--------------------- 6536 6537All new ASL resource descriptors are fully supported by the iASL 6538compiler, 6539the 6540ASL/AML disassembler, and the ACPICA runtime Resource Manager code 6541(including 6542all new predefined resource tags). New descriptors are: 6543 6544 FixedDma 6545 GpioIo 6546 GpioInt 6547 I2cSerialBus 6548 SpiSerialBus 6549 UartSerialBus 6550 6551ASL/AML Operators, New and Modified: 6552------------------------------------ 6553 6554One new operator is added, the Connection operator, which is used to 6555associate 6556a GeneralPurposeIo or GenericSerialBus resource descriptor with 6557individual 6558field objects within an operation region. Several new protocols are 6559associated 6560with the AccessAs operator. All are fully supported by the iASL compiler, 6561disassembler, and runtime ACPICA AML interpreter: 6562 6563 Connection // Declare Field Connection 6564attributes 6565 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 6566 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes 6567Protocol 6568 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 6569 RawDataBuffer // Data type for Vendor Data 6570fields 6571 6572Predefined ASL/AML Objects: 6573--------------------------- 6574 6575All new predefined objects/control-methods are supported by the iASL 6576compiler 6577and the ACPICA runtime validation/repair (arguments and return values.) 6578New 6579predefined names include the following: 6580 6581Standard Predefined Names (Objects or Control Methods): 6582 _AEI, _CLS, _CPC, _CWS, _DEP, 6583 _DLM, _EVT, _GCP, _CRT, _GWS, 6584 _HRV, _PRE, _PSE, _SRT, _SUB. 6585 6586Resource Tags (Names used to access individual fields within resource 6587descriptors): 6588 _DBT, _DPL, _DRS, _END, _FLC, 6589 _IOR, _LIN, _MOD, _PAR, _PHA, 6590 _PIN, _PPI, _POL, _RXL, _SLV, 6591 _SPE, _STB, _TXL, _VEN. 6592 6593ACPICA External Interfaces: 6594--------------------------- 6595 6596Several new interfaces have been defined for use by ACPI-related device 6597drivers and other host OS services: 6598 6599AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 6600to 6601acquire and release AML mutexes that are defined in the DSDT/SSDT tables 6602provided by the BIOS. They are intended to be used in conjunction with 6603the 6604ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 6605mutual exclusion with the AML code/interpreter. 6606 6607AcpiGetEventResources: Returns the (formatted) resource descriptors as 6608defined 6609by the ACPI 5.0 _AEI object (ACPI Event Information). This object 6610provides 6611resource descriptors associated with hardware-reduced platform events, 6612similar 6613to the AcpiGetCurrentResources interface. 6614 6615Operation Region Handlers: For General Purpose IO and Generic Serial Bus 6616operation regions, information about the Connection() object and any 6617optional 6618length information is passed to the region handler within the Context 6619parameter. 6620 6621AcpiBufferToResource: This interface converts a raw AML buffer containing 6622a 6623resource template or resource descriptor to the ACPI_RESOURCE internal 6624format 6625suitable for use by device drivers. Can be used by an operation region 6626handler 6627to convert the Connection() buffer object into a ACPI_RESOURCE. 6628 6629Miscellaneous/Tools/TestSuites: 6630------------------------------- 6631 6632Support for extended _HID names (Four alpha characters instead of three). 6633Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 6634Support for ACPI 5.0 features in the ASLTS test suite. 6635Fully updated documentation (ACPICA and iASL reference documents.) 6636 6637ACPI Table Definition Language: 6638------------------------------- 6639 6640Support for this language was implemented and released as a subsystem of 6641the 6642iASL compiler in 2010. (See the iASL compiler User Guide.) 6643 6644 6645Non-ACPI 5.0 changes for this release: 6646-------------------------------------- 6647 66481) ACPICA Core Subsystem: 6649 6650Fix a problem with operation region declarations where a failure can 6651occur 6652if 6653the region name and an argument that evaluates to an object (such as the 6654region address) are in different namespace scopes. Lin Ming, ACPICA BZ 6655937. 6656 6657Do not abort an ACPI table load if an invalid space ID is found within. 6658This 6659will be caught later if the offending method is executed. ACPICA BZ 925. 6660 6661Fixed an issue with the FFixedHW space ID where the ID was not always 6662recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 6663 6664Fixed a problem with the 32-bit generation of the unix-specific OSL 6665(osunixxf.c). Lin Ming, ACPICA BZ 936. 6666 6667Several changes made to enable generation with the GCC 4.6 compiler. 6668ACPICA BZ 6669935. 6670 6671New error messages: Unsupported I/O requests (not 8/16/32 bit), and 6672Index/Bank 6673field registers out-of-range. 6674 66752) iASL Compiler/Disassembler and Tools: 6676 6677iASL: Implemented the __PATH__ operator, which returns the full pathname 6678of 6679the current source file. 6680 6681AcpiHelp: Automatically display expanded keyword information for all ASL 6682operators. 6683 6684Debugger: Add "Template" command to disassemble/dump resource template 6685buffers. 6686 6687Added a new master script to generate and execute the ASLTS test suite. 6688Automatically handles 32- and 64-bit generation. See tests/aslts.sh 6689 6690iASL: Fix problem with listing generation during processing of the 6691Switch() 6692operator where AML listing was disabled until the entire Switch block was 6693completed. 6694 6695iASL: Improve support for semicolon statement terminators. Fix "invalid 6696character" message for some cases when the semicolon is used. Semicolons 6697are 6698now allowed after every <Term> grammar element. ACPICA BZ 927. 6699 6700iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 6701923. 6702 6703Disassembler: Fix problem with disassembly of the DataTableRegion 6704operator 6705where an inadvertent "Unhandled deferred opcode" message could be 6706generated. 6707 67083) Example Code and Data Size 6709 6710These are the sizes for the OS-independent acpica.lib produced by the 6711Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 6712includes the debug output trace mechanism and has a much larger code and 6713data 6714size. 6715 6716 Previous Release: 6717 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6718 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6719 Current Release: 6720 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 6721 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 6722 6723---------------------------------------- 672422 September 2011. Summary of changes for version 20110922: 6725 67260) ACPI 5.0 News: 6727 6728Support for ACPI 5.0 in ACPICA has been underway for several months and 6729will 6730be released at the same time that ACPI 5.0 is officially released. 6731 6732The ACPI 5.0 specification is on track for release in the next few 6733months. 6734 67351) ACPICA Core Subsystem: 6736 6737Fixed a problem where the maximum sleep time for the Sleep() operator was 6738intended to be limited to two seconds, but was inadvertently limited to 673920 6740seconds instead. 6741 6742Linux and Unix makefiles: Added header file dependencies to ensure 6743correct 6744generation of ACPICA core code and utilities. Also simplified the 6745makefiles 6746considerably through the use of the vpath variable to specify search 6747paths. 6748ACPICA BZ 924. 6749 67502) iASL Compiler/Disassembler and Tools: 6751 6752iASL: Implemented support to check the access length for all fields 6753created to 6754access named Resource Descriptor fields. For example, if a resource field 6755is 6756defined to be two bits, a warning is issued if a CreateXxxxField() is 6757used 6758with an incorrect bit length. This is implemented for all current 6759resource 6760descriptor names. ACPICA BZ 930. 6761 6762Disassembler: Fixed a byte ordering problem with the output of 24-bit and 676356- 6764bit integers. 6765 6766iASL: Fixed a couple of issues associated with variable-length package 6767objects. 1) properly handle constants like One, Ones, Zero -- do not make 6768a 6769VAR_PACKAGE when these are used as a package length. 2) Allow the 6770VAR_PACKAGE 6771opcode (in addition to PACKAGE) when validating object types for 6772predefined 6773names. 6774 6775iASL: Emit statistics for all output files (instead of just the ASL input 6776and 6777AML output). Includes listings, hex files, etc. 6778 6779iASL: Added -G option to the table compiler to allow the compilation of 6780custom 6781ACPI tables. The only part of a table that is required is the standard 678236- 6783byte 6784ACPI header. 6785 6786AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 6787headers), 6788which also adds correct 64-bit support. Also, now all output filenames 6789are 6790completely lower case. 6791 6792AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 6793loading table files. A warning is issued for any such tables. The only 6794exception is an FADT. This also fixes a possible fault when attempting to 6795load 6796non-AML tables. ACPICA BZ 932. 6797 6798AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where 6799a 6800missing table terminator could cause a fault when using the -p option. 6801 6802AcpiSrc: Fixed a possible divide-by-zero fault when generating file 6803statistics. 6804 68053) Example Code and Data Size 6806 6807These are the sizes for the OS-independent acpica.lib produced by the 6808Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 6809includes the debug output trace mechanism and has a much larger code and 6810data 6811size. 6812 6813 Previous Release (VC 9.0): 6814 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6815 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6816 Current Release (VC 9.0): 6817 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6818 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6819 6820 6821---------------------------------------- 682223 June 2011. Summary of changes for version 20110623: 6823 68241) ACPI CA Core Subsystem: 6825 6826Updated the predefined name repair mechanism to not attempt repair of a 6827_TSS 6828return object if a _PSS object is present. We can only sort the _TSS 6829return 6830package if there is no _PSS within the same scope. This is because if 6831_PSS 6832is 6833present, the ACPI specification dictates that the _TSS Power Dissipation 6834field 6835is to be ignored, and therefore some BIOSs leave garbage values in the 6836_TSS 6837Power field(s). In this case, it is best to just return the _TSS package 6838as- 6839is. Reported by, and fixed with assistance from Fenghua Yu. 6840 6841Added an option to globally disable the control method return value 6842validation 6843and repair. This runtime option can be used to disable return value 6844repair 6845if 6846this is causing a problem on a particular machine. Also added an option 6847to 6848AcpiExec (-dr) to set this disable flag. 6849 6850All makefiles and project files: Major changes to improve generation of 6851ACPICA 6852tools. ACPICA BZ 912: 6853 Reduce default optimization levels to improve compatibility 6854 For Linux, add strict-aliasing=0 for gcc 4 6855 Cleanup and simplify use of command line defines 6856 Cleanup multithread library support 6857 Improve usage messages 6858 6859Linux-specific header: update handling of THREAD_ID and pthread. For the 686032- 6861bit case, improve casting to eliminate possible warnings, especially with 6862the 6863acpica tools. 6864 6865Example Code and Data Size: These are the sizes for the OS-independent 6866acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6867debug 6868version of the code includes the debug output trace mechanism and has a 6869much 6870larger code and data size. 6871 6872 Previous Release (VC 9.0): 6873 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 6874 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6875 Current Release (VC 9.0): 6876 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 6877 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6878 68792) iASL Compiler/Disassembler and Tools: 6880 6881With this release, a new utility named "acpihelp" has been added to the 6882ACPICA 6883package. This utility summarizes the ACPI specification chapters for the 6884ASL 6885and AML languages. It generates under Linux/Unix as well as Windows, and 6886provides the following functionality: 6887 Find/display ASL operator(s) -- with description and syntax. 6888 Find/display ASL keyword(s) -- with exact spelling and descriptions. 6889 Find/display ACPI predefined name(s) -- with description, number 6890 of arguments, and the return value data type. 6891 Find/display AML opcode name(s) -- with opcode, arguments, and 6892grammar. 6893 Decode/display AML opcode -- with opcode name, arguments, and 6894grammar. 6895 6896Service Layers: Make multi-thread support configurable. Conditionally 6897compile 6898the multi-thread support so that threading libraries will not be linked 6899if 6900not 6901necessary. The only tool that requires multi-thread support is AcpiExec. 6902 6903iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 6904of 6905Bison appear to want the interface to yyerror to be a const char * (or at 6906least this is a problem when generating iASL on some systems.) ACPICA BZ 6907923 6908Pierre Lejeune. 6909 6910Tools: Fix for systems where O_BINARY is not defined. Only used for 6911Windows 6912versions of the tools. 6913 6914---------------------------------------- 691527 May 2011. Summary of changes for version 20110527: 6916 69171) ACPI CA Core Subsystem: 6918 6919ASL Load() operator: Reinstate most restrictions on the incoming ACPI 6920table 6921signature. Now, only allow SSDT, OEMx, and a null signature. History: 6922 1) Originally, we checked the table signature for "SSDT" or "PSDT". 6923 (PSDT is now obsolete.) 6924 2) We added support for OEMx tables, signature "OEM" plus a fourth 6925 "don't care" character. 6926 3) Valid tables were encountered with a null signature, so we just 6927 gave up on validating the signature, (05/2008). 6928 4) We encountered non-AML tables such as the MADT, which caused 6929 interpreter errors and kernel faults. So now, we once again allow 6930 only SSDT, OEMx, and now, also a null signature. (05/2011). 6931 6932Added the missing _TDL predefined name to the global name list in order 6933to 6934enable validation. Affects both the core ACPICA code and the iASL 6935compiler. 6936 6937Example Code and Data Size: These are the sizes for the OS-independent 6938acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6939debug 6940version of the code includes the debug output trace mechanism and has a 6941much 6942larger code and data size. 6943 6944 Previous Release (VC 9.0): 6945 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 6946 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 6947 Current Release (VC 9.0): 6948 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 6949 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 6950 69512) iASL Compiler/Disassembler and Tools: 6952 6953Debugger/AcpiExec: Implemented support for "complex" method arguments on 6954the 6955debugger command line. This adds support beyond simple integers -- 6956including 6957Strings, Buffers, and Packages. Includes support for nested packages. 6958Increased the default command line buffer size to accommodate these 6959arguments. 6960See the ACPICA reference for details and syntax. ACPICA BZ 917. 6961 6962Debugger/AcpiExec: Implemented support for "default" method arguments for 6963the 6964Execute/Debug command. Now, the debugger will always invoke a control 6965method 6966with the required number of arguments -- even if the command line 6967specifies 6968none or insufficient arguments. It uses default integer values for any 6969missing 6970arguments. Also fixes a bug where only six method arguments maximum were 6971supported instead of the required seven. 6972 6973Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 6974and 6975also return status in order to prevent buffer overruns. See the ACPICA 6976reference for details and syntax. ACPICA BZ 921 6977 6978iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 6979makefiles to simplify support for the two different but similar parser 6980generators, bison and yacc. 6981 6982Updated the generic unix makefile for gcc 4. The default gcc version is 6983now 6984expected to be 4 or greater, since options specific to gcc 4 are used. 6985 6986---------------------------------------- 698713 April 2011. Summary of changes for version 20110413: 6988 69891) ACPI CA Core Subsystem: 6990 6991Implemented support to execute a so-called "orphan" _REG method under the 6992EC 6993device. This change will force the execution of a _REG method underneath 6994the 6995EC 6996device even if there is no corresponding operation region of type 6997EmbeddedControl. Fixes a problem seen on some machines and apparently is 6998compatible with Windows behavior. ACPICA BZ 875. 6999 7000Added more predefined methods that are eligible for automatic NULL 7001package 7002element removal. This change adds another group of predefined names to 7003the 7004list 7005of names that can be repaired by having NULL package elements dynamically 7006removed. This group are those methods that return a single variable- 7007length 7008package containing simple data types such as integers, buffers, strings. 7009This 7010includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 7011_PSL, 7012_Sx, 7013and _TZD. ACPICA BZ 914. 7014 7015Split and segregated all internal global lock functions to a new file, 7016evglock.c. 7017 7018Updated internal address SpaceID for DataTable regions. Moved this 7019internal 7020space 7021id in preparation for ACPI 5.0 changes that will include some new space 7022IDs. 7023This 7024change should not affect user/host code. 7025 7026Example Code and Data Size: These are the sizes for the OS-independent 7027acpica.lib 7028produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 7029version of 7030the code includes the debug output trace mechanism and has a much larger 7031code 7032and 7033data size. 7034 7035 Previous Release (VC 9.0): 7036 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 7037 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 7038 Current Release (VC 9.0): 7039 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 7040 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 7041 70422) iASL Compiler/Disassembler and Tools: 7043 7044iASL/DTC: Major update for new grammar features. Allow generic data types 7045in 7046custom ACPI tables. Field names are now optional. Any line can be split 7047to 7048multiple lines using the continuation char (\). Large buffers now use 7049line- 7050continuation character(s) and no colon on the continuation lines. See the 7051grammar 7052update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 7053Moore. 7054 7055iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 7056statements. 7057Since the parser stuffs a "zero" as the return value for these statements 7058(due 7059to 7060the underlying AML grammar), they were seen as "return with value" by the 7061iASL 7062semantic checking. They are now seen correctly as "null" return 7063statements. 7064 7065iASL: Check if a_REG declaration has a corresponding Operation Region. 7066Adds a 7067check for each _REG to ensure that there is in fact a corresponding 7068operation 7069region declaration in the same scope. If not, the _REG method is not very 7070useful 7071since it probably won't be executed. ACPICA BZ 915. 7072 7073iASL/DTC: Finish support for expression evaluation. Added a new 7074expression 7075parser 7076that implements c-style operator precedence and parenthesization. ACPICA 7077bugzilla 7078908. 7079 7080Disassembler/DTC: Remove support for () and <> style comments in data 7081tables. 7082Now 7083that DTC has full expression support, we don't want to have comment 7084strings 7085that 7086start with a parentheses or a less-than symbol. Now, only the standard /* 7087and 7088// 7089comments are supported, as well as the bracket [] comments. 7090 7091AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 7092"unusual" 7093headers in the acpidump file. Update the header validation to support 7094these 7095tables. Problem introduced in previous AcpiXtract version in the change 7096to 7097support "wrong checksum" error messages emitted by acpidump utility. 7098 7099iASL: Add a * option to generate all template files (as a synonym for 7100ALL) 7101as 7102in 7103"iasl -T *" or "iasl -T ALL". 7104 7105iASL/DTC: Do not abort compiler on fatal errors. We do not want to 7106completely 7107abort the compiler on "fatal" errors, simply should abort the current 7108compile. 7109This allows multiple compiles with a single (possibly wildcard) compiler 7110invocation. 7111 7112---------------------------------------- 711316 March 2011. Summary of changes for version 20110316: 7114 71151) ACPI CA Core Subsystem: 7116 7117Fixed a problem caused by a _PRW method appearing at the namespace root 7118scope 7119during the setup of wake GPEs. A fault could occur if a _PRW directly 7120under 7121the 7122root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 7123 7124Implemented support for "spurious" Global Lock interrupts. On some 7125systems, a 7126global lock interrupt can occur without the pending flag being set. Upon 7127a 7128GL 7129interrupt, we now ensure that a thread is actually waiting for the lock 7130before 7131signaling GL availability. Rafael Wysocki, Bob Moore. 7132 7133Example Code and Data Size: These are the sizes for the OS-independent 7134acpica.lib 7135produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 7136version of 7137the code includes the debug output trace mechanism and has a much larger 7138code 7139and 7140data size. 7141 7142 Previous Release (VC 9.0): 7143 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 7144 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 7145 Current Release (VC 9.0): 7146 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 7147 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 7148 71492) iASL Compiler/Disassembler and Tools: 7150 7151Implemented full support for the "SLIC" ACPI table. Includes support in 7152the 7153header files, disassembler, table compiler, and template generator. Bob 7154Moore, 7155Lin Ming. 7156 7157AcpiXtract: Correctly handle embedded comments and messages from 7158AcpiDump. 7159Apparently some or all versions of acpidump will occasionally emit a 7160comment 7161like 7162"Wrong checksum", etc., into the dump file. This was causing problems for 7163AcpiXtract. ACPICA BZ 905. 7164 7165iASL: Fix the Linux makefile by removing an inadvertent double file 7166inclusion. 7167ACPICA BZ 913. 7168 7169AcpiExec: Update installation of operation region handlers. Install one 7170handler 7171for a user-defined address space. This is used by the ASL test suite 7172(ASLTS). 7173 7174---------------------------------------- 717511 February 2011. Summary of changes for version 20110211: 7176 71771) ACPI CA Core Subsystem: 7178 7179Added a mechanism to defer _REG methods for some early-installed 7180handlers. 7181Most user handlers should be installed before call to 7182AcpiEnableSubsystem. 7183However, Event handlers and region handlers should be installed after 7184AcpiInitializeObjects. Override handlers for the "default" regions should 7185be 7186installed early, however. This change executes all _REG methods for the 7187default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 7188chicken/egg issues between them. ACPICA BZ 848. 7189 7190Implemented an optimization for GPE detection. This optimization will 7191simply 7192ignore GPE registers that contain no enabled GPEs -- there is no need to 7193read the register since this information is available internally. This 7194becomes more important on machines with a large GPE space. ACPICA 7195bugzilla 7196884. Lin Ming. Suggestion from Joe Liu. 7197 7198Removed all use of the highly unreliable FADT revision field. The 7199revision 7200number in the FADT has been found to be completely unreliable and cannot 7201be 7202trusted. Only the actual table length can be used to infer the version. 7203This 7204change updates the ACPICA core and the disassembler so that both no 7205longer 7206even look at the FADT version and instead depend solely upon the FADT 7207length. 7208 7209Fix an unresolved name issue for the no-debug and no-error-message source 7210generation cases. The _AcpiModuleName was left undefined in these cases, 7211but 7212it is actually needed as a parameter to some interfaces. Define 7213_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 7214 7215Split several large files (makefiles and project files updated) 7216 utglobal.c -> utdecode.c 7217 dbcomds.c -> dbmethod.c dbnames.c 7218 dsopcode.c -> dsargs.c dscontrol.c 7219 dsload.c -> dsload2.c 7220 aslanalyze.c -> aslbtypes.c aslwalks.c 7221 7222Example Code and Data Size: These are the sizes for the OS-independent 7223acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7224debug version of the code includes the debug output trace mechanism and 7225has 7226a much larger code and data size. 7227 7228 Previous Release (VC 9.0): 7229 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 7230 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 7231 Current Release (VC 9.0): 7232 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 7233 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 7234 72352) iASL Compiler/Disassembler and Tools: 7236 7237iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 7238These are useful C-style macros with the standard definitions. ACPICA 7239bugzilla 898. 7240 7241iASL/DTC: Added support for integer expressions and labels. Support for 7242full 7243expressions for all integer fields in all ACPI tables. Support for labels 7244in 7245"generic" portions of tables such as UEFI. See the iASL reference manual. 7246 7247Debugger: Added a command to display the status of global handlers. The 7248"handlers" command will display op region, fixed event, and miscellaneous 7249global handlers. installation status -- and for op regions, whether 7250default 7251or user-installed handler will be used. 7252 7253iASL: Warn if reserved method incorrectly returns a value. Many 7254predefined 7255names are defined such that they do not return a value. If implemented as 7256a 7257method, issue a warning if such a name explicitly returns a value. ACPICA 7258Bugzilla 855. 7259 7260iASL: Added detection of GPE method name conflicts. Detects a conflict 7261where 7262there are two GPE methods of the form _Lxy and _Exy in the same scope. 7263(For 7264example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 7265 7266iASL/DTC: Fixed a couple input scanner issues with comments and line 7267numbers. Comment remover could get confused and miss a comment ending. 7268Fixed 7269a problem with line counter maintenance. 7270 7271iASL/DTC: Reduced the severity of some errors from fatal to error. There 7272is 7273no need to abort on simple errors within a field definition. 7274 7275Debugger: Simplified the output of the help command. All help output now 7276in 7277a single screen, instead of help subcommands. ACPICA Bugzilla 897. 7278 7279---------------------------------------- 728012 January 2011. Summary of changes for version 20110112: 7281 72821) ACPI CA Core Subsystem: 7283 7284Fixed a race condition between method execution and namespace walks that 7285can 7286possibly cause a fault. The problem was apparently introduced in version 728720100528 as a result of a performance optimization that reduces the 7288number 7289of 7290namespace walks upon method exit by using the delete_namespace_subtree 7291function instead of the delete_namespace_by_owner function used 7292previously. 7293Bug is a missing namespace lock in the delete_namespace_subtree function. 7294dana.myers@oracle.com 7295 7296Fixed several issues and a possible fault with the automatic "serialized" 7297method support. History: This support changes a method to "serialized" on 7298the 7299fly if the method generates an AE_ALREADY_EXISTS error, indicating the 7300possibility that it cannot handle reentrancy. This fix repairs a couple 7301of 7302issues seen in the field, especially on machines with many cores: 7303 7304 1) Delete method children only upon the exit of the last thread, 7305 so as to not delete objects out from under other running threads 7306 (and possibly causing a fault.) 7307 2) Set the "serialized" bit for the method only upon the exit of the 7308 Last thread, so as to not cause deadlock when running threads 7309 attempt to exit. 7310 3) Cleanup the use of the AML "MethodFlags" and internal method flags 7311 so that there is no longer any confusion between the two. 7312 7313 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 7314 7315Debugger: Now lock the namespace for duration of a namespace dump. 7316Prevents 7317issues if the namespace is changing dynamically underneath the debugger. 7318Especially affects temporary namespace nodes, since the debugger displays 7319these also. 7320 7321Updated the ordering of include files. The ACPICA headers should appear 7322before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 7323set 7324any necessary compiler-specific defines, etc. Affects the ACPI-related 7325tools 7326and utilities. 7327 7328Updated all ACPICA copyrights and signons to 2011. Added the 2011 7329copyright 7330to all module headers and signons, including the Linux header. This 7331affects 7332virtually every file in the ACPICA core subsystem, iASL compiler, and all 7333utilities. 7334 7335Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 7336project files for VC++ 6.0 are now obsolete. New project files can be 7337found 7338under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 7339details. 7340 7341Example Code and Data Size: These are the sizes for the OS-independent 7342acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7343debug version of the code includes the debug output trace mechanism and 7344has a 7345much larger code and data size. 7346 7347 Previous Release (VC 6.0): 7348 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 7349 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 7350 Current Release (VC 9.0): 7351 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 7352 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 7353 73542) iASL Compiler/Disassembler and Tools: 7355 7356iASL: Added generic data types to the Data Table compiler. Add "generic" 7357data 7358types such as UINT32, String, Unicode, etc., to simplify the generation 7359of 7360platform-defined tables such as UEFI. Lin Ming. 7361 7362iASL: Added listing support for the Data Table Compiler. Adds listing 7363support 7364(-l) to display actual binary output for each line of input code. 7365 7366---------------------------------------- 736709 December 2010. Summary of changes for version 20101209: 7368 73691) ACPI CA Core Subsystem: 7370 7371Completed the major overhaul of the GPE support code that was begun in 7372July 73732010. Major features include: removal of _PRW execution in ACPICA (host 7374executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 7375changes to existing interfaces, simplification of GPE handler operation, 7376and 7377a handful of new interfaces: 7378 7379 AcpiUpdateAllGpes 7380 AcpiFinishGpe 7381 AcpiSetupGpeForWake 7382 AcpiSetGpeWakeMask 7383 One new file, evxfgpe.c to consolidate all external GPE interfaces. 7384 7385See the ACPICA Programmer Reference for full details and programming 7386information. See the new section 4.4 "General Purpose Event (GPE) 7387Support" 7388for a full overview, and section 8.7 "ACPI General Purpose Event 7389Management" 7390for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin 7391Ming, 7392Bob Moore, Rafael Wysocki. 7393 7394Implemented a new GPE feature for Windows compatibility, the "Implicit 7395Wake 7396GPE Notify". This feature will automatically issue a Notify(2) on a 7397device 7398when a Wake GPE is received if there is no corresponding GPE method or 7399handler. ACPICA BZ 870. 7400 7401Fixed a problem with the Scope() operator during table parse and load 7402phase. 7403During load phase (table load or method execution), the scope operator 7404should 7405not enter the target into the namespace. Instead, it should open a new 7406scope 7407at the target location. Linux BZ 19462, ACPICA BZ 882. 7408 7409Example Code and Data Size: These are the sizes for the OS-independent 7410acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7411debug version of the code includes the debug output trace mechanism and 7412has a 7413much larger code and data size. 7414 7415 Previous Release: 7416 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 7417 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 7418 Current Release: 7419 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 7420 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 7421 74222) iASL Compiler/Disassembler and Tools: 7423 7424iASL: Relax the alphanumeric restriction on _CID strings. These strings 7425are 7426"bus-specific" per the ACPI specification, and therefore any characters 7427are 7428acceptable. The only checks that can be performed are for a null string 7429and 7430perhaps for a leading asterisk. ACPICA BZ 886. 7431 7432iASL: Fixed a problem where a syntax error that caused a premature EOF 7433condition on the source file emitted a very confusing error message. The 7434premature EOF is now detected correctly. ACPICA BZ 891. 7435 7436Disassembler: Decode the AccessSize within a Generic Address Structure 7437(byte 7438access, word access, etc.) Note, this field does not allow arbitrary bit 7439access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 7440 7441New: AcpiNames utility - Example namespace dump utility. Shows an example 7442of 7443ACPICA configuration for a minimal namespace dump utility. Uses table and 7444namespace managers, but no AML interpreter. Does not add any 7445functionality 7446over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 7447partition and configure ACPICA. ACPICA BZ 883. 7448 7449AML Debugger: Increased the debugger buffer size for method return 7450objects. 7451Was 4K, increased to 16K. Also enhanced error messages for debugger 7452method 7453execution, including the buffer overflow case. 7454 7455---------------------------------------- 745613 October 2010. Summary of changes for version 20101013: 7457 74581) ACPI CA Core Subsystem: 7459 7460Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 7461now 7462clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 7463HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 7464 7465Changed the type of the predefined namespace object _TZ from ThermalZone 7466to 7467Device. This was found to be confusing to the host software that 7468processes 7469the various thermal zones, since _TZ is not really a ThermalZone. 7470However, 7471a 7472Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 7473Zhang. 7474 7475Added Windows Vista SP2 to the list of supported _OSI strings. The actual 7476string is "Windows 2006 SP2". 7477 7478Eliminated duplicate code in AcpiUtExecute* functions. Now that the 7479nsrepair 7480code automatically repairs _HID-related strings, this type of code is no 7481longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 7482878. 7483 7484Example Code and Data Size: These are the sizes for the OS-independent 7485acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7486debug version of the code includes the debug output trace mechanism and 7487has a 7488much larger code and data size. 7489 7490 Previous Release: 7491 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 7492 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 7493 Current Release: 7494 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 7495 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 7496 74972) iASL Compiler/Disassembler and Tools: 7498 7499iASL: Implemented additional compile-time validation for _HID strings. 7500The 7501non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the 7502length 7503of 7504the string must be exactly seven or eight characters. For both _HID and 7505_CID 7506strings, all characters must be alphanumeric. ACPICA BZ 874. 7507 7508iASL: Allow certain "null" resource descriptors. Some BIOS code creates 7509descriptors that are mostly or all zeros, with the expectation that they 7510will 7511be filled in at runtime. iASL now allows this as long as there is a 7512"resource 7513tag" (name) associated with the descriptor, which gives the ASL a handle 7514needed to modify the descriptor. ACPICA BZ 873. 7515 7516Added single-thread support to the generic Unix application OSL. 7517Primarily 7518for iASL support, this change removes the use of semaphores in the 7519single- 7520threaded ACPICA tools/applications - increasing performance. The 7521_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 7522option. ACPICA BZ 879. 7523 7524AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 7525support 7526for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 7527 7528iASL: Moved all compiler messages to a new file, aslmessages.h. 7529 7530---------------------------------------- 753115 September 2010. Summary of changes for version 20100915: 7532 75331) ACPI CA Core Subsystem: 7534 7535Removed the AcpiOsDerivePciId OSL interface. The various host 7536implementations 7537of this function were not OS-dependent and are now obsolete and can be 7538removed from all host OSLs. This function has been replaced by 7539AcpiHwDerivePciId, which is now part of the ACPICA core code. 7540AcpiHwDerivePciId has been implemented without recursion. Adds one new 7541module, hwpci.c. ACPICA BZ 857. 7542 7543Implemented a dynamic repair for _HID and _CID strings. The following 7544problems are now repaired at runtime: 1) Remove a leading asterisk in the 7545string, and 2) the entire string is uppercased. Both repairs are in 7546accordance with the ACPI specification and will simplify host driver 7547code. 7548ACPICA BZ 871. 7549 7550The ACPI_THREAD_ID type is no longer configurable, internally it is now 7551always UINT64. This simplifies the ACPICA code, especially any printf 7552output. 7553UINT64 is the only common data type for all thread_id types across all 7554operating systems. It is now up to the host OSL to cast the native 7555thread_id 7556type to UINT64 before returning the value to ACPICA (via 7557AcpiOsGetThreadId). 7558Lin Ming, Bob Moore. 7559 7560Added the ACPI_INLINE type to enhance the ACPICA configuration. The 7561"inline" 7562keyword is not standard across compilers, and this type allows inline to 7563be 7564configured on a per-compiler basis. Lin Ming. 7565 7566Made the system global AcpiGbl_SystemAwakeAndRunning publicly 7567available. 7568Added an extern for this boolean in acpixf.h. Some hosts utilize this 7569value 7570during suspend/restore operations. ACPICA BZ 869. 7571 7572All code that implements error/warning messages with the "ACPI:" prefix 7573has 7574been moved to a new module, utxferror.c. 7575 7576The UINT64_OVERLAY was moved to utmath.c, which is the only module where 7577it 7578is used. ACPICA BZ 829. Lin Ming, Bob Moore. 7579 7580Example Code and Data Size: These are the sizes for the OS-independent 7581acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7582debug version of the code includes the debug output trace mechanism and 7583has a 7584much larger code and data size. 7585 7586 Previous Release: 7587 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 7588 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 7589 Current Release: 7590 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 7591 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 7592 75932) iASL Compiler/Disassembler and Tools: 7594 7595iASL/Disassembler: Write ACPI errors to stderr instead of the output 7596file. 7597This keeps the output files free of random error messages that may 7598originate 7599from within the namespace/interpreter code. Used this opportunity to 7600merge 7601all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 7602866. Lin Ming, Bob Moore. 7603 7604Tools: update some printfs for ansi warnings on size_t. Handle width 7605change 7606of size_t on 32-bit versus 64-bit generations. Lin Ming. 7607 7608---------------------------------------- 760906 August 2010. Summary of changes for version 20100806: 7610 76111) ACPI CA Core Subsystem: 7612 7613Designed and implemented a new host interface to the _OSI support code. 7614This 7615will allow the host to dynamically add or remove multiple _OSI strings, 7616as 7617well as install an optional handler that is called for each _OSI 7618invocation. 7619Also added a new AML debugger command, 'osi' to display and modify the 7620global 7621_OSI string table, and test support in the AcpiExec utility. See the 7622ACPICA 7623reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 7624New Functions: 7625 AcpiInstallInterface - Add an _OSI string. 7626 AcpiRemoveInterface - Delete an _OSI string. 7627 AcpiInstallInterfaceHandler - Install optional _OSI handler. 7628Obsolete Functions: 7629 AcpiOsValidateInterface - no longer used. 7630New Files: 7631 source/components/utilities/utosi.c 7632 7633Re-introduced the support to enable multi-byte transfers for Embedded 7634Controller (EC) operation regions. A reported problem was found to be a 7635bug 7636in the host OS, not in the multi-byte support. Previously, the maximum 7637data 7638size passed to the EC operation region handler was a single byte. There 7639are 7640often EC Fields larger than one byte that need to be transferred, and it 7641is 7642useful for the EC driver to lock these as a single transaction. This 7643change 7644enables single transfers larger than 8 bits. This effectively changes the 7645access to the EC space from ByteAcc to AnyAcc, and will probably require 7646changes to the host OS Embedded Controller driver to enable 16/32/64/256- 7647bit 7648transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 7649 7650Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 7651prototype in acpiosxf.h had the output value pointer as a (void *). 7652It should be a (UINT64 *). This may affect some host OSL code. 7653 7654Fixed a couple problems with the recently modified Linux makefiles for 7655iASL 7656and AcpiExec. These new makefiles place the generated object files in the 7657local directory so that there can be no collisions between the files that 7658are 7659shared between them that are compiled with different options. 7660 7661Example Code and Data Size: These are the sizes for the OS-independent 7662acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7663debug version of the code includes the debug output trace mechanism and 7664has a 7665much larger code and data size. 7666 7667 Previous Release: 7668 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7669 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 7670 Current Release: 7671 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 7672 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 7673 76742) iASL Compiler/Disassembler and Tools: 7675 7676iASL/Disassembler: Added a new option (-da, "disassemble all") to load 7677the 7678namespace from and disassemble an entire group of AML files. Useful for 7679loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 7680and 7681disassembling with one simple command. ACPICA BZ 865. Lin Ming. 7682 7683iASL: Allow multiple invocations of -e option. This change allows 7684multiple 7685uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 7686834. 7687Lin Ming. 7688 7689---------------------------------------- 769002 July 2010. Summary of changes for version 20100702: 7691 76921) ACPI CA Core Subsystem: 7693 7694Implemented several updates to the recently added GPE reference count 7695support. The model for "wake" GPEs is changing to give the host OS 7696complete 7697control of these GPEs. Eventually, the ACPICA core will not execute any 7698_PRW 7699methods, since the host already must execute them. Also, additional 7700changes 7701were made to help ensure that the reference counts are kept in proper 7702synchronization with reality. Rafael J. Wysocki. 7703 77041) Ensure that GPEs are not enabled twice during initialization. 77052) Ensure that GPE enable masks stay in sync with the reference count. 77063) Do not inadvertently enable GPEs when writing GPE registers. 77074) Remove the internal wake reference counter and add new AcpiGpeWakeup 7708interface. This interface will set or clear individual GPEs for wakeup. 77095) Remove GpeType argument from AcpiEnable and AcpiDisable. These 7710interfaces 7711are now used for "runtime" GPEs only. 7712 7713Changed the behavior of the GPE install/remove handler interfaces. The 7714GPE 7715is 7716no longer disabled during this process, as it was found to cause problems 7717on 7718some machines. Rafael J. Wysocki. 7719 7720Reverted a change introduced in version 20100528 to enable Embedded 7721Controller multi-byte transfers. This change was found to cause problems 7722with 7723Index Fields and possibly Bank Fields. It will be reintroduced when these 7724problems have been resolved. 7725 7726Fixed a problem with references to Alias objects within Package Objects. 7727A 7728reference to an Alias within the definition of a Package was not always 7729resolved properly. Aliases to objects like Processors, Thermal zones, 7730etc. 7731were resolved to the actual object instead of a reference to the object 7732as 7733it 7734should be. Package objects are only allowed to contain integer, string, 7735buffer, package, and reference objects. Redhat bugzilla 608648. 7736 7737Example Code and Data Size: These are the sizes for the OS-independent 7738acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7739debug version of the code includes the debug output trace mechanism and 7740has a 7741much larger code and data size. 7742 7743 Previous Release: 7744 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7745 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 7746 Current Release: 7747 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7748 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 7749 77502) iASL Compiler/Disassembler and Tools: 7751 7752iASL: Implemented a new compiler subsystem to allow definition and 7753compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 7754These 7755are called "ACPI Data Tables", and the new compiler is the "Data Table 7756Compiler". This compiler is intended to simplify the existing error-prone 7757process of creating these tables for the BIOS, as well as allowing the 7758disassembly, modification, recompilation, and override of existing ACPI 7759data 7760tables. See the iASL User Guide for detailed information. 7761 7762iASL: Implemented a new Template Generator option in support of the new 7763Data 7764Table Compiler. This option will create examples of all known ACPI tables 7765that can be used as the basis for table development. See the iASL 7766documentation and the -T option. 7767 7768Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 7769Descriptor Table). 7770 7771Updated the Linux makefiles for iASL and AcpiExec to place the generated 7772object files in the local directory so that there can be no collisions 7773between the shared files between them that are generated with different 7774options. 7775 7776Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. 7777Use 7778the #define __APPLE__ to enable this support. 7779 7780---------------------------------------- 778128 May 2010. Summary of changes for version 20100528: 7782 7783Note: The ACPI 4.0a specification was released on April 5, 2010 and is 7784available at www.acpi.info. This is primarily an errata release. 7785 77861) ACPI CA Core Subsystem: 7787 7788Undefined ACPI tables: We are looking for the definitions for the 7789following 7790ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 7791 7792Implemented support to enable multi-byte transfers for Embedded 7793Controller 7794(EC) operation regions. Previously, the maximum data size passed to the 7795EC 7796operation region handler was a single byte. There are often EC Fields 7797larger 7798than one byte that need to be transferred, and it is useful for the EC 7799driver 7800to lock these as a single transaction. This change enables single 7801transfers 7802larger than 8 bits. This effectively changes the access to the EC space 7803from 7804ByteAcc to AnyAcc, and will probably require changes to the host OS 7805Embedded 7806Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 7807bit 7808transfers. Alexey Starikovskiy, Lin Ming 7809 7810Implemented a performance enhancement for namespace search and access. 7811This 7812change enhances the performance of namespace searches and walks by adding 7813a 7814backpointer to the parent in each namespace node. On large namespaces, 7815this 7816change can improve overall ACPI performance by up to 9X. Adding a pointer 7817to 7818each namespace node increases the overall size of the internal namespace 7819by 7820about 5%, since each namespace entry usually consists of both a namespace 7821node and an ACPI operand object. However, this is the first growth of the 7822namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 7823 7824Implemented a performance optimization that reduces the number of 7825namespace 7826walks. On control method exit, only walk the namespace if the method is 7827known 7828to have created namespace objects outside of its local scope. Previously, 7829the 7830entire namespace was traversed on each control method exit. This change 7831can 7832improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 7833Moore. 7834 7835Added support to truncate I/O addresses to 16 bits for Windows 7836compatibility. 7837Some ASL code has been seen in the field that inadvertently has bits set 7838above bit 15. This feature is optional and is enabled if the BIOS 7839requests 7840any Windows OSI strings. It can also be enabled by the host OS. Matthew 7841Garrett, Bob Moore. 7842 7843Added support to limit the maximum time for the ASL Sleep() operator. To 7844prevent accidental deep sleeps, limit the maximum time that Sleep() will 7845actually sleep. Configurable, the default maximum is two seconds. ACPICA 7846bugzilla 854. 7847 7848Added run-time validation support for the _WDG and_WED Microsoft 7849predefined 7850methods. These objects are defined by "Windows Instrumentation", and are 7851not 7852part of the ACPI spec. ACPICA BZ 860. 7853 7854Expanded all statistic counters used during namespace and device 7855initialization from 16 to 32 bits in order to support very large 7856namespaces. 7857 7858Replaced all instances of %d in printf format specifiers with %u since 7859nearly 7860all integers in ACPICA are unsigned. 7861 7862Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 7863returned 7864as AE_NO_HANDLER. 7865 7866Example Code and Data Size: These are the sizes for the OS-independent 7867acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7868debug version of the code includes the debug output trace mechanism and 7869has a 7870much larger code and data size. 7871 7872 Previous Release: 7873 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 7874 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 7875 Current Release: 7876 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 7877 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 7878 78792) iASL Compiler/Disassembler and Tools: 7880 7881iASL: Added compiler support for the _WDG and_WED Microsoft predefined 7882methods. These objects are defined by "Windows Instrumentation", and are 7883not 7884part of the ACPI spec. ACPICA BZ 860. 7885 7886AcpiExec: added option to disable the memory tracking mechanism. The -dt 7887option will disable the tracking mechanism, which improves performance 7888considerably. 7889 7890AcpiExec: Restructured the command line options into -d (disable) and -e 7891(enable) options. 7892 7893---------------------------------------- 789428 April 2010. Summary of changes for version 20100428: 7895 78961) ACPI CA Core Subsystem: 7897 7898Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 7899including FADT-based and GPE Block Devices, execute any _PRW methods in 7900the 7901new table, and process any _Lxx/_Exx GPE methods in the new table. Any 7902runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 7903immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 7904Devices. Provides compatibility with other ACPI implementations. Two new 7905files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 7906Moore. 7907 7908Fixed a regression introduced in version 20100331 within the table 7909manager 7910where initial table loading could fail. This was introduced in the fix 7911for 7912AcpiReallocateRootTable. Also, renamed some of fields in the table 7913manager 7914data structures to clarify their meaning and use. 7915 7916Fixed a possible allocation overrun during internal object copy in 7917AcpiUtCopySimpleObject. The original code did not correctly handle the 7918case 7919where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 7920847. 7921 7922Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 7923possible access beyond end-of-allocation. Also, now fully validate 7924descriptor 7925(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 7926 7927Example Code and Data Size: These are the sizes for the OS-independent 7928acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7929debug version of the code includes the debug output trace mechanism and 7930has a 7931much larger code and data size. 7932 7933 Previous Release: 7934 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 7935 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 7936 Current Release: 7937 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 7938 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 7939 79402) iASL Compiler/Disassembler and Tools: 7941 7942iASL: Implemented Min/Max/Len/Gran validation for address resource 7943descriptors. This change implements validation for the address fields 7944that 7945are common to all address-type resource descriptors. These checks are 7946implemented: Checks for valid Min/Max, length within the Min/Max window, 7947valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as 7948per 7949table 6-40 in the ACPI 4.0a specification. Also split the large 7950aslrestype1.c 7951and aslrestype2.c files into five new files. ACPICA BZ 840. 7952 7953iASL: Added support for the _Wxx predefined names. This support was 7954missing 7955and these names were not recognized by the compiler as valid predefined 7956names. ACPICA BZ 851. 7957 7958iASL: Added an error for all predefined names that are defined to return 7959no 7960value and thus must be implemented as Control Methods. These include all 7961of 7962the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 7963names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 7964 7965iASL: Implemented the -ts option to emit hex AML data in ASL format, as 7966an 7967ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 7968be 7969dynamically loaded via the Load() operator. Also cleaned up output for 7970the 7971- 7972ta and -tc options. ACPICA BZ 853. 7973 7974Tests: Added a new file with examples of extended iASL error checking. 7975Demonstrates the advanced error checking ability of the iASL compiler. 7976Available at tests/misc/badcode.asl. 7977 7978---------------------------------------- 797931 March 2010. Summary of changes for version 20100331: 7980 79811) ACPI CA Core Subsystem: 7982 7983Completed a major update for the GPE support in order to improve support 7984for 7985shared GPEs and to simplify both host OS and ACPICA code. Added a 7986reference 7987count mechanism to support shared GPEs that require multiple device 7988drivers. 7989Several external interfaces have changed. One external interface has been 7990removed. One new external interface was added. Most of the GPE external 7991interfaces now use the GPE spinlock instead of the events mutex (and the 7992Flags parameter for many GPE interfaces has been removed.) See the 7993updated 7994ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 7995Rafael 7996Wysocki. ACPICA BZ 831. 7997 7998Changed: 7999 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 8000Removed: 8001 AcpiSetGpeType 8002New: 8003 AcpiSetGpe 8004 8005Implemented write support for DataTable operation regions. These regions 8006are 8007defined via the DataTableRegion() operator. Previously, only read support 8008was 8009implemented. The ACPI specification allows DataTableRegions to be 8010read/write, 8011however. 8012 8013Implemented a new subsystem option to force a copy of the DSDT to local 8014memory. Optionally copy the entire DSDT to local memory (instead of 8015simply 8016mapping it.) There are some (albeit very rare) BIOSs that corrupt or 8017replace 8018the original DSDT, creating the need for this option. Default is FALSE, 8019do 8020not copy the DSDT. 8021 8022Implemented detection of a corrupted or replaced DSDT. This change adds 8023support to detect a DSDT that has been corrupted and/or replaced from 8024outside 8025the OS (by firmware). This is typically catastrophic for the system, but 8026has 8027been seen on some machines. Once this problem has been detected, the DSDT 8028copy option can be enabled via system configuration. Lin Ming, Bob Moore. 8029 8030Fixed two problems with AcpiReallocateRootTable during the root table 8031copy. 8032When copying the root table to the new allocation, the length used was 8033incorrect. The new size was used instead of the current table size, 8034meaning 8035too much data was copied. Also, the count of available slots for ACPI 8036tables 8037was not set correctly. Alexey Starikovskiy, Bob Moore. 8038 8039Example Code and Data Size: These are the sizes for the OS-independent 8040acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8041debug version of the code includes the debug output trace mechanism and 8042has a 8043much larger code and data size. 8044 8045 Previous Release: 8046 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 8047 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 8048 Current Release: 8049 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 8050 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 8051 80522) iASL Compiler/Disassembler and Tools: 8053 8054iASL: Implement limited typechecking for values returned from predefined 8055control methods. The type of any returned static (unnamed) object is now 8056validated. For example, Return(1). ACPICA BZ 786. 8057 8058iASL: Fixed a predefined name object verification regression. Fixes a 8059problem 8060introduced in version 20100304. An error is incorrectly generated if a 8061predefined name is declared as a static named object with a value defined 8062using the keywords "Zero", "One", or "Ones". Lin Ming. 8063 8064iASL: Added Windows 7 support for the -g option (get local ACPI tables) 8065by 8066reducing the requested registry access rights. ACPICA BZ 842. 8067 8068Disassembler: fixed a possible fault when generating External() 8069statements. 8070Introduced in commit ae7d6fd: Properly handle externals with parent- 8071prefix 8072(carat). Fixes a string length allocation calculation. Lin Ming. 8073 8074---------------------------------------- 807504 March 2010. Summary of changes for version 20100304: 8076 80771) ACPI CA Core Subsystem: 8078 8079Fixed a possible problem with the AML Mutex handling function 8080AcpiExReleaseMutex where the function could fault under the very rare 8081condition when the interpreter has blocked, the interpreter lock is 8082released, 8083the interpreter is then reentered via the same thread, and attempts to 8084acquire an AML mutex that was previously acquired. FreeBSD report 140979. 8085Lin 8086Ming. 8087 8088Implemented additional configuration support for the AML "Debug Object". 8089Output from the debug object can now be enabled via a global variable, 8090AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 8091debugging. 8092This debug output is now available in the release version of ACPICA 8093instead 8094of just the debug version. Also, the entire debug output module can now 8095be 8096configured out of the ACPICA build if desired. One new file added, 8097executer/exdebug.c. Lin Ming, Bob Moore. 8098 8099Added header support for the ACPI MCHI table (Management Controller Host 8100Interface Table). This table was added in ACPI 4.0, but the defining 8101document 8102has only recently become available. 8103 8104Standardized output of integer values for ACPICA warnings/errors. Always 8105use 81060x prefix for hex output, always use %u for unsigned integer decimal 8107output. 8108Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 8109400 8110invocations.) These invocations were converted from the original 8111ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 8112 8113Example Code and Data Size: These are the sizes for the OS-independent 8114acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8115debug version of the code includes the debug output trace mechanism and 8116has a 8117much larger code and data size. 8118 8119 Previous Release: 8120 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 8121 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 8122 Current Release: 8123 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 8124 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 8125 81262) iASL Compiler/Disassembler and Tools: 8127 8128iASL: Implemented typechecking support for static (non-control method) 8129predefined named objects that are declared with the Name() operator. For 8130example, the type of this object is now validated to be of type Integer: 8131Name(_BBN, 1). This change migrates the compiler to using the core 8132predefined 8133name table instead of maintaining a local version. Added a new file, 8134aslpredef.c. ACPICA BZ 832. 8135 8136Disassembler: Added support for the ACPI 4.0 MCHI table. 8137 8138---------------------------------------- 813921 January 2010. Summary of changes for version 20100121: 8140 81411) ACPI CA Core Subsystem: 8142 8143Added the 2010 copyright to all module headers and signons. This affects 8144virtually every file in the ACPICA core subsystem, the iASL compiler, the 8145tools/utilities, and the test suites. 8146 8147Implemented a change to the AcpiGetDevices interface to eliminate 8148unnecessary 8149invocations of the _STA method. In the case where a specific _HID is 8150requested, do not run _STA until a _HID match is found. This eliminates 8151potentially dozens of _STA calls during a search for a particular 8152device/HID, 8153which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 8154 8155Implemented an additional repair for predefined method return values. 8156Attempt 8157to repair unexpected NULL elements within returned Package objects. 8158Create 8159an 8160Integer of value zero, a NULL String, or a zero-length Buffer as 8161appropriate. 8162ACPICA BZ 818. Lin Ming, Bob Moore. 8163 8164Removed the obsolete ACPI_INTEGER data type. This type was introduced as 8165the 8166code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 8167(with 816864-bit AML integers). It is now obsolete and this change removes it from 8169the 8170ACPICA code base, replaced by UINT64. The original typedef has been 8171retained 8172for now for compatibility with existing device driver code. ACPICA BZ 8173824. 8174 8175Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field 8176in 8177the parse tree object. 8178 8179Added additional warning options for the gcc-4 generation. Updated the 8180source 8181accordingly. This includes some code restructuring to eliminate 8182unreachable 8183code, elimination of some gotos, elimination of unused return values, 8184some 8185additional casting, and removal of redundant declarations. 8186 8187Example Code and Data Size: These are the sizes for the OS-independent 8188acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8189debug version of the code includes the debug output trace mechanism and 8190has a 8191much larger code and data size. 8192 8193 Previous Release: 8194 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 8195 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 8196 Current Release: 8197 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 8198 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 8199 82002) iASL Compiler/Disassembler and Tools: 8201 8202No functional changes for this release. 8203 8204---------------------------------------- 820514 December 2009. Summary of changes for version 20091214: 8206 82071) ACPI CA Core Subsystem: 8208 8209Enhanced automatic data type conversions for predefined name repairs. 8210This 8211change expands the automatic repairs/conversions for predefined name 8212return 8213values to make Integers, Strings, and Buffers fully interchangeable. 8214Also, 8215a 8216Buffer can be converted to a Package of Integers if necessary. The 8217nsrepair.c 8218module was completely restructured. Lin Ming, Bob Moore. 8219 8220Implemented automatic removal of null package elements during predefined 8221name 8222repairs. This change will automatically remove embedded and trailing NULL 8223package elements from returned package objects that are defined to 8224contain 8225a 8226variable number of sub-packages. The driver is then presented with a 8227package 8228with no null elements to deal with. ACPICA BZ 819. 8229 8230Implemented a repair for the predefined _FDE and _GTM names. The expected 8231return value for both names is a Buffer of 5 DWORDs. This repair fixes 8232two 8233possible problems (both seen in the field), where a package of integers 8234is 8235returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 8236Kim. 8237 8238Implemented additional module-level code support. This change will 8239properly 8240execute module-level code that is not at the root of the namespace (under 8241a 8242Device object, etc.). Now executes the code within the current scope 8243instead 8244of the root. ACPICA BZ 762. Lin Ming. 8245 8246Fixed possible mutex acquisition errors when running _REG methods. Fixes 8247a 8248problem where mutex errors can occur when running a _REG method that is 8249in 8250the same scope as a method-defined operation region or an operation 8251region 8252under a module-level IF block. This type of code is rare, so the problem 8253has 8254not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 8255 8256Fixed a possible memory leak during module-level code execution. An 8257object 8258could be leaked for each block of executed module-level code if the 8259interpreter slack mode is enabled This change deletes any implicitly 8260returned 8261object from the module-level code block. Lin Ming. 8262 8263Removed messages for successful predefined repair(s). The repair 8264mechanism 8265was considered too wordy. Now, messages are only unconditionally emitted 8266if 8267the return object cannot be repaired. Existing messages for successful 8268repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 8269827. 8270 8271Example Code and Data Size: These are the sizes for the OS-independent 8272acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8273debug version of the code includes the debug output trace mechanism and 8274has a 8275much larger code and data size. 8276 8277 Previous Release: 8278 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 8279 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 8280 Current Release: 8281 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 8282 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 8283 82842) iASL Compiler/Disassembler and Tools: 8285 8286iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 8287files 8288were no longer automatically removed at the termination of the compile. 8289 8290acpiexec: Implemented the -f option to specify default region fill value. 8291This option specifies the value used to initialize buffers that simulate 8292operation regions. Default value is zero. Useful for debugging problems 8293that 8294depend on a specific initial value for a region or field. 8295 8296---------------------------------------- 829712 November 2009. Summary of changes for version 20091112: 8298 82991) ACPI CA Core Subsystem: 8300 8301Implemented a post-order callback to AcpiWalkNamespace. The existing 8302interface only has a pre-order callback. This change adds an additional 8303parameter for a post-order callback which will be more useful for bus 8304scans. 8305ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 8306 8307Modified the behavior of the operation region memory mapping cache for 8308SystemMemory. Ensure that the memory mappings created for operation 8309regions 8310do not cross 4K page boundaries. Crossing a page boundary while mapping 8311regions can cause kernel warnings on some hosts if the pages have 8312different 8313attributes. Such regions are probably BIOS bugs, and this is the 8314workaround. 8315Linux BZ 14445. Lin Ming. 8316 8317Implemented an automatic repair for predefined methods that must return 8318sorted lists. This change will repair (by sorting) packages returned by 8319_ALR, 8320_PSS, and _TSS. Drivers can now assume that the packages are correctly 8321sorted 8322and do not contain NULL package elements. Adds one new file, 8323namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 8324 8325Fixed a possible fault during predefined name validation if a return 8326Package 8327object contains NULL elements. Also adds a warning if a NULL element is 8328followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 8329may 8330include repair or removal of all such NULL elements where possible. 8331 8332Implemented additional module-level executable AML code support. This 8333change 8334will execute module-level code that is not at the root of the namespace 8335(under a Device object, etc.) at table load time. Module-level executable 8336AML 8337code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 8338 8339Implemented a new internal function to create Integer objects. This 8340function 8341simplifies miscellaneous object creation code. ACPICA BZ 823. 8342 8343Reduced the severity of predefined repair messages, Warning to Info. 8344Since 8345the object was successfully repaired, a warning is too severe. Reduced to 8346an 8347info message for now. These messages may eventually be changed to debug- 8348only. 8349ACPICA BZ 812. 8350 8351Example Code and Data Size: These are the sizes for the OS-independent 8352acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8353debug version of the code includes the debug output trace mechanism and 8354has a 8355much larger code and data size. 8356 8357 Previous Release: 8358 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 8359 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 8360 Current Release: 8361 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 8362 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 8363 83642) iASL Compiler/Disassembler and Tools: 8365 8366iASL: Implemented Switch() with While(1) so that Break works correctly. 8367This 8368change correctly implements the Switch operator with a surrounding 8369While(1) 8370so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 8371 8372iASL: Added a message if a package initializer list is shorter than 8373package 8374length. Adds a new remark for a Package() declaration if an initializer 8375list 8376exists, but is shorter than the declared length of the package. Although 8377technically legal, this is probably a coding error and it is seen in the 8378field. ACPICA BZ 815. Lin Ming, Bob Moore. 8379 8380iASL: Fixed a problem where the compiler could fault after the maximum 8381number 8382of errors was reached (200). 8383 8384acpixtract: Fixed a possible warning for pointer cast if the compiler 8385warning 8386level set very high. 8387 8388---------------------------------------- 838913 October 2009. Summary of changes for version 20091013: 8390 83911) ACPI CA Core Subsystem: 8392 8393Fixed a problem where an Operation Region _REG method could be executed 8394more 8395than once. If a custom address space handler is installed by the host 8396before 8397the "initialize operation regions" phase of the ACPICA initialization, 8398any 8399_REG methods for that address space could be executed twice. This change 8400fixes the problem. ACPICA BZ 427. Lin Ming. 8401 8402Fixed a possible memory leak for the Scope() ASL operator. When the exact 8403invocation of "Scope(\)" is executed (change scope to root), one internal 8404operand object was leaked. Lin Ming. 8405 8406Implemented a run-time repair for the _MAT predefined method. If the _MAT 8407return value is defined as a Field object in the AML, and the field 8408size is less than or equal to the default width of an integer (32 or 840964),_MAT 8410can incorrectly return an Integer instead of a Buffer. ACPICA now 8411automatically repairs this problem. ACPICA BZ 810. 8412 8413Implemented a run-time repair for the _BIF and _BIX predefined methods. 8414The 8415"OEM Information" field is often incorrectly returned as an Integer with 8416value zero if the field is not supported by the platform. This is due to 8417an 8418ambiguity in the ACPI specification. The field should always be a string. 8419ACPICA now automatically repairs this problem by returning a NULL string 8420within the returned Package. ACPICA BZ 807. 8421 8422Example Code and Data Size: These are the sizes for the OS-independent 8423acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8424debug version of the code includes the debug output trace mechanism and 8425has a 8426much larger code and data size. 8427 8428 Previous Release: 8429 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 8430 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 8431 Current Release: 8432 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 8433 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 8434 84352) iASL Compiler/Disassembler and Tools: 8436 8437Disassembler: Fixed a problem where references to external symbols that 8438contained one or more parent-prefixes (carats) were not handled 8439correctly, 8440possibly causing a fault. ACPICA BZ 806. Lin Ming. 8441 8442Disassembler: Restructured the code so that all functions that handle 8443external symbols are in a single module. One new file is added, 8444common/dmextern.c. 8445 8446AML Debugger: Added a max count argument for the Batch command (which 8447executes multiple predefined methods within the namespace.) 8448 8449iASL: Updated the compiler documentation (User Reference.) Available at 8450http://www.acpica.org/documentation/. ACPICA BZ 750. 8451 8452AcpiXtract: Updated for Lint and other formatting changes. Close all open 8453files. 8454 8455---------------------------------------- 845603 September 2009. Summary of changes for version 20090903: 8457 84581) ACPI CA Core Subsystem: 8459 8460For Windows Vista compatibility, added the automatic execution of an _INI 8461method located at the namespace root (\_INI). This method is executed at 8462table load time. This support is in addition to the automatic execution 8463of 8464\_SB._INI. Lin Ming. 8465 8466Fixed a possible memory leak in the interpreter for AML package objects 8467if 8468the package initializer list is longer than the defined size of the 8469package. 8470This apparently can only happen if the BIOS changes the package size on 8471the 8472fly (seen in a _PSS object), as ASL compilers do not allow this. The 8473interpreter will truncate the package to the defined size (and issue an 8474error 8475message), but previously could leave the extra objects undeleted if they 8476were 8477pre-created during the argument processing (such is the case if the 8478package 8479consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 8480 8481Fixed a problem seen when a Buffer or String is stored to itself via ASL. 8482This has been reported in the field. Previously, ACPICA would zero out 8483the 8484buffer/string. Now, the operation is treated as a noop. Provides Windows 8485compatibility. ACPICA BZ 803. Lin Ming. 8486 8487Removed an extraneous error message for ASL constructs of the form 8488Store(LocalX,LocalX) when LocalX is uninitialized. These curious 8489statements 8490are seen in many BIOSs and are once again treated as NOOPs and no error 8491is 8492emitted when they are encountered. ACPICA BZ 785. 8493 8494Fixed an extraneous warning message if a _DSM reserved method returns a 8495Package object. _DSM can return any type of object, so validation on the 8496return type cannot be performed. ACPICA BZ 802. 8497 8498Example Code and Data Size: These are the sizes for the OS-independent 8499acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8500debug version of the code includes the debug output trace mechanism and 8501has a 8502much larger code and data size. 8503 8504 Previous Release: 8505 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 8506 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 8507 Current Release: 8508 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 8509 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 8510 85112) iASL Compiler/Disassembler and Tools: 8512 8513iASL: Fixed a problem with the use of the Alias operator and Resource 8514Templates. The correct alias is now constructed and no error is emitted. 8515ACPICA BZ 738. 8516 8517iASL: Implemented the -I option to specify additional search directories 8518for 8519include files. Allows multiple additional search paths for include files. 8520Directories are searched in the order specified on the command line 8521(after 8522the local directory is searched.) ACPICA BZ 800. 8523 8524iASL: Fixed a problem where the full pathname for include files was not 8525emitted for warnings/errors. This caused the IDE support to not work 8526properly. ACPICA BZ 765. 8527 8528iASL: Implemented the -@ option to specify a Windows-style response file 8529containing additional command line options. ACPICA BZ 801. 8530 8531AcpiExec: Added support to load multiple AML files simultaneously (such 8532as 8533a 8534DSDT and multiple SSDTs). Also added support for wildcards within the AML 8535pathname. These features allow all machine tables to be easily loaded and 8536debugged together. ACPICA BZ 804. 8537 8538Disassembler: Added missing support for disassembly of HEST table Error 8539Bank 8540subtables. 8541 8542---------------------------------------- 854330 July 2009. Summary of changes for version 20090730: 8544 8545The ACPI 4.0 implementation for ACPICA is complete with this release. 8546 85471) ACPI CA Core Subsystem: 8548 8549ACPI 4.0: Added header file support for all new and changed ACPI tables. 8550Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are 8551new 8552for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 8553BERT, 8554EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 8555There 8556have been some ACPI 4.0 changes to other existing tables. Split the large 8557actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 8558 8559ACPI 4.0: Implemented predefined name validation for all new names. There 8560are 856131 new names in ACPI 4.0. The predefined validation module was split into 8562two 8563files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 8564 8565Implemented support for so-called "module-level executable code". This is 8566executable AML code that exists outside of any control method and is 8567intended 8568to be executed at table load time. Although illegal since ACPI 2.0, this 8569type 8570of code still exists and is apparently still being created. Blocks of 8571this 8572code are now detected and executed as intended. Currently, the code 8573blocks 8574must exist under either an If, Else, or While construct; these are the 8575typical cases seen in the field. ACPICA BZ 762. Lin Ming. 8576 8577Implemented an automatic dynamic repair for predefined names that return 8578nested Package objects. This applies to predefined names that are defined 8579to 8580return a variable-length Package of sub-packages. If the number of sub- 8581packages is one, BIOS code is occasionally seen that creates a simple 8582single 8583package with no sub-packages. This code attempts to fix the problem by 8584wrapping a new package object around the existing package. These methods 8585can 8586be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA 8587BZ 8588790. 8589 8590Fixed a regression introduced in 20090625 for the AcpiGetDevices 8591interface. 8592The _HID/_CID matching was broken and no longer matched IDs correctly. 8593ACPICA 8594BZ 793. 8595 8596Fixed a problem with AcpiReset where the reset would silently fail if the 8597register was one of the protected I/O ports. AcpiReset now bypasses the 8598port 8599validation mechanism. This may eventually be driven into the 8600AcpiRead/Write 8601interfaces. 8602 8603Fixed a regression related to the recent update of the AcpiRead/Write 8604interfaces. A sleep/suspend could fail if the optional PM2 Control 8605register 8606does not exist during an attempt to write the Bus Master Arbitration bit. 8607(However, some hosts already delete the code that writes this bit, and 8608the 8609code may in fact be obsolete at this date.) ACPICA BZ 799. 8610 8611Fixed a problem where AcpiTerminate could fault if inadvertently called 8612twice 8613in succession. ACPICA BZ 795. 8614 8615Example Code and Data Size: These are the sizes for the OS-independent 8616acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8617debug version of the code includes the debug output trace mechanism and 8618has a 8619much larger code and data size. 8620 8621 Previous Release: 8622 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 8623 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 8624 Current Release: 8625 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 8626 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 8627 86282) iASL Compiler/Disassembler and Tools: 8629 8630ACPI 4.0: Implemented disassembler support for all new ACPI tables and 8631changes to existing tables. ACPICA BZ 775. 8632 8633---------------------------------------- 863425 June 2009. Summary of changes for version 20090625: 8635 8636The ACPI 4.0 Specification was released on June 16 and is available at 8637www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 8638continue for the next few releases. 8639 86401) ACPI CA Core Subsystem: 8641 8642ACPI 4.0: Implemented interpreter support for the IPMI operation region 8643address space. Includes support for bi-directional data buffers and an 8644IPMI 8645address space handler (to be installed by an IPMI device driver.) ACPICA 8646BZ 8647773. Lin Ming. 8648 8649ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. 8650Includes 8651support in both the header files and the disassembler. 8652 8653Completed a major update for the AcpiGetObjectInfo external interface. 8654Changes include: 8655 - Support for variable, unlimited length HID, UID, and CID strings. 8656 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 8657etc.) 8658 - Call the _SxW power methods on behalf of a device object. 8659 - Determine if a device is a PCI root bridge. 8660 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 8661These changes will require an update to all callers of this interface. 8662See 8663the updated ACPICA Programmer Reference for details. One new source file 8664has 8665been added - utilities/utids.c. ACPICA BZ 368, 780. 8666 8667Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 8668transfers. The Value parameter has been extended from 32 bits to 64 bits 8669in 8670order to support new ACPI 4.0 tables. These changes will require an 8671update 8672to 8673all callers of these interfaces. See the ACPICA Programmer Reference for 8674details. ACPICA BZ 768. 8675 8676Fixed several problems with AcpiAttachData. The handler was not invoked 8677when 8678the host node was deleted. The data sub-object was not automatically 8679deleted 8680when the host node was deleted. The interface to the handler had an 8681unused 8682parameter, this was removed. ACPICA BZ 778. 8683 8684Enhanced the function that dumps ACPI table headers. All non-printable 8685characters in the string fields are now replaced with '?' (Signature, 8686OemId, 8687OemTableId, and CompilerId.) ACPI tables with non-printable characters in 8688these fields are occasionally seen in the field. ACPICA BZ 788. 8689 8690Fixed a problem with predefined method repair code where the code that 8691attempts to repair/convert an object of incorrect type is only executed 8692on 8693the first time the predefined method is called. The mechanism that 8694disables 8695warnings on subsequent calls was interfering with the repair mechanism. 8696ACPICA BZ 781. 8697 8698Fixed a possible memory leak in the predefined validation/repair code 8699when 8700a 8701buffer is automatically converted to an expected string object. 8702 8703Removed obsolete 16-bit files from the distribution and from the current 8704git 8705tree head. ACPICA BZ 776. 8706 8707Example Code and Data Size: These are the sizes for the OS-independent 8708acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8709debug version of the code includes the debug output trace mechanism and 8710has a 8711much larger code and data size. 8712 8713 Previous Release: 8714 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 8715 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 8716 Current Release: 8717 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 8718 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 8719 87202) iASL Compiler/Disassembler and Tools: 8721 8722ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 8723operation region keyword. ACPICA BZ 771, 772. Lin Ming. 8724 8725ACPI 4.0: iASL - implemented compile-time validation support for all new 8726predefined names and control methods (31 total). ACPICA BZ 769. 8727 8728---------------------------------------- 872921 May 2009. Summary of changes for version 20090521: 8730 87311) ACPI CA Core Subsystem: 8732 8733Disabled the preservation of the SCI enable bit in the PM1 control 8734register. 8735The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification 8736to 8737be 8738a "preserved" bit - "OSPM always preserves this bit position", section 87394.7.3.2.1. However, some machines fail if this bit is in fact preserved 8740because the bit needs to be explicitly set by the OS as a workaround. No 8741machines fail if the bit is not preserved. Therefore, ACPICA no longer 8742attempts to preserve this bit. 8743 8744Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 8745incorrectly formed _PRT package could cause a fault. Added validation to 8746ensure that each package element is actually a sub-package. 8747 8748Implemented a new interface to install or override a single control 8749method, 8750AcpiInstallMethod. This interface is useful when debugging in order to 8751repair 8752an existing method or to install a missing method without having to 8753override 8754the entire ACPI table. See the ACPICA Programmer Reference for use and 8755examples. Lin Ming, Bob Moore. 8756 8757Fixed several reference count issues with the DdbHandle object that is 8758created from a Load or LoadTable operator. Prevent premature deletion of 8759the 8760object. Also, mark the object as invalid once the table has been 8761unloaded. 8762This is needed because the handle itself may not be deleted after the 8763table 8764unload, depending on whether it has been stored in a named object by the 8765caller. Lin Ming. 8766 8767Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 8768mutexes of the same sync level are acquired but then not released in 8769strict 8770opposite order, the internally maintained Current Sync Level becomes 8771confused 8772and can cause subsequent execution errors. ACPICA BZ 471. 8773 8774Changed the allowable release order for ASL mutex objects. The ACPI 4.0 8775specification has been changed to make the SyncLevel for mutex objects 8776more 8777useful. When releasing a mutex, the SyncLevel of the mutex must now be 8778the 8779same as the current sync level. This makes more sense than the previous 8780rule 8781(SyncLevel less than or equal). This change updates the code to match the 8782specification. 8783 8784Fixed a problem with the local version of the AcpiOsPurgeCache function. 8785The 8786(local) cache must be locked during all cache object deletions. Andrew 8787Baumann. 8788 8789Updated the Load operator to use operation region interfaces. This 8790replaces 8791direct memory mapping with region access calls. Now, all region accesses 8792go 8793through the installed region handler as they should. 8794 8795Simplified and optimized the NsGetNextNode function. Reduced parameter 8796count 8797and reduced code for this frequently used function. 8798 8799Example Code and Data Size: These are the sizes for the OS-independent 8800acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8801debug version of the code includes the debug output trace mechanism and 8802has a 8803much larger code and data size. 8804 8805 Previous Release: 8806 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 8807 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 8808 Current Release: 8809 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 8810 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 8811 88122) iASL Compiler/Disassembler and Tools: 8813 8814Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 8815problems 8816with sub-table disassembly and handling invalid sub-tables. Attempt 8817recovery 8818after an invalid sub-table ID. 8819 8820---------------------------------------- 882122 April 2009. Summary of changes for version 20090422: 8822 88231) ACPI CA Core Subsystem: 8824 8825Fixed a compatibility issue with the recently released I/O port 8826protection 8827mechanism. For windows compatibility, 1) On a port protection violation, 8828simply ignore the request and do not return an exception (allow the 8829control 8830method to continue execution.) 2) If only part of the request overlaps a 8831protected port, read/write the individual ports that are not protected. 8832Linux 8833BZ 13036. Lin Ming 8834 8835Enhanced the execution of the ASL/AML BreakPoint operator so that it 8836actually 8837breaks into the AML debugger if the debugger is present. This matches the 8838ACPI-defined behavior. 8839 8840Fixed several possible warnings related to the use of the configurable 8841ACPI_THREAD_ID. This type can now be configured as either an integer or a 8842pointer with no warnings. Also fixes several warnings in printf-like 8843statements for the 64-bit build when the type is configured as a pointer. 8844ACPICA BZ 766, 767. 8845 8846Fixed a number of possible warnings when compiling with gcc 4+ (depending 8847on 8848warning options.) Examples include printf formats, aliasing, unused 8849globals, 8850missing prototypes, missing switch default statements, use of non-ANSI 8851library functions, use of non-ANSI constructs. See generate/unix/Makefile 8852for 8853a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 8854 8855Example Code and Data Size: These are the sizes for the OS-independent 8856acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8857debug version of the code includes the debug output trace mechanism and 8858has a 8859much larger code and data size. 8860 8861 Previous Release: 8862 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 8863 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 8864 Current Release: 8865 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 8866 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 8867 88682) iASL Compiler/Disassembler and Tools: 8869 8870iASL: Fixed a generation warning from Bison 2.3 and fixed several 8871warnings 8872on 8873the 64-bit build. 8874 8875iASL: Fixed a problem where the Unix/Linux versions of the compiler could 8876not 8877correctly digest Windows/DOS formatted files (with CR/LF). 8878 8879iASL: Added a new option for "quiet mode" (-va) that produces only the 8880compilation summary, not individual errors and warnings. Useful for large 8881batch compilations. 8882 8883AcpiExec: Implemented a new option (-z) to enable a forced 8884semaphore/mutex 8885timeout that can be used to detect hang conditions during execution of 8886AML 8887code (includes both internal semaphores and AML-defined mutexes and 8888events.) 8889 8890Added new makefiles for the generation of acpica in a generic unix-like 8891environment. These makefiles are intended to generate the acpica tools 8892and 8893utilities from the original acpica git source tree structure. 8894 8895Test Suites: Updated and cleaned up the documentation files. Updated the 8896copyrights to 2009, affecting all source files. Use the new version of 8897iASL 8898with quiet mode. Increased the number of available semaphores in the 8899Windows 8900OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 8901added 8902an alternate implementation of the semaphore timeout to allow aslts to 8903execute fully on Cygwin. 8904 8905---------------------------------------- 890620 March 2009. Summary of changes for version 20090320: 8907 89081) ACPI CA Core Subsystem: 8909 8910Fixed a possible race condition between AcpiWalkNamespace and dynamic 8911table 8912unloads. Added a reader/writer locking mechanism to allow multiple 8913concurrent 8914namespace walks (readers), but block a dynamic table unload until it can 8915gain 8916exclusive write access to the namespace. This fixes a problem where a 8917table 8918unload could (possibly catastrophically) delete the portion of the 8919namespace 8920that is currently being examined by a walk. Adds a new file, utlock.c, 8921that 8922implements the reader/writer lock mechanism. ACPICA BZ 749. 8923 8924Fixed a regression introduced in version 20090220 where a change to the 8925FADT 8926handling could cause the ACPICA subsystem to access non-existent I/O 8927ports. 8928 8929Modified the handling of FADT register and table (FACS/DSDT) addresses. 8930The 8931FADT can contain both 32-bit and 64-bit versions of these addresses. 8932Previously, the 64-bit versions were favored, meaning that if both 32 and 893364 8934versions were valid, but not equal, the 64-bit version was used. This was 8935found to cause some machines to fail. Now, in this case, the 32-bit 8936version 8937is used instead. This now matches the Windows behavior. 8938 8939Implemented a new mechanism to protect certain I/O ports. Provides 8940Microsoft 8941compatibility and protects the standard PC I/O ports from access via AML 8942code. Adds a new file, hwvalid.c 8943 8944Fixed a possible extraneous warning message from the FADT support. The 8945message warns of a 32/64 length mismatch between the legacy and GAS 8946definitions for a register. 8947 8948Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 8949is 8950made obsolete by the port protection mechanism above. It was previously 8951used 8952to validate the entire address range of an operation region, which could 8953be 8954incorrect if the range included illegal ports, but fields within the 8955operation region did not actually access those ports. Validation is now 8956performed on a per-field basis instead of the entire region. 8957 8958Modified the handling of the PM1 Status Register ignored bit (bit 11.) 8959Ignored bits must be "preserved" according to the ACPI spec. Usually, 8960this 8961means a read/modify/write when writing to the register. However, for 8962status 8963registers, writing a one means clear the event. Writing a zero means 8964preserve 8965the event (do not clear.) This behavior is clarified in the ACPI 4.0 8966spec, 8967and the ACPICA code now simply always writes a zero to the ignored bit. 8968 8969Modified the handling of ignored bits for the PM1 A/B Control Registers. 8970As 8971per the ACPI specification, for the control registers, preserve 8972(read/modify/write) all bits that are defined as either reserved or 8973ignored. 8974 8975Updated the handling of write-only bits in the PM1 A/B Control Registers. 8976When reading the register, zero the write-only bits as per the ACPI spec. 8977ACPICA BZ 443. Lin Ming. 8978 8979Removed "Linux" from the list of supported _OSI strings. Linux no longer 8980wants to reply true to this request. The Windows strings are the only 8981paths 8982through the AML that are tested and known to work properly. 8983 8984 Previous Release: 8985 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 8986 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 8987 Current Release: 8988 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 8989 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 8990 89912) iASL Compiler/Disassembler and Tools: 8992 8993Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 8994and 8995aetables.c 8996 8997---------------------------------------- 899820 February 2009. Summary of changes for version 20090220: 8999 90001) ACPI CA Core Subsystem: 9001 9002Optimized the ACPI register locking. Removed locking for reads from the 9003ACPI 9004bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock 9005is 9006not required when reading the single-bit registers. The 9007AcpiGetRegisterUnlocked function is no longer needed and has been 9008removed. 9009This will improve performance for reads on these registers. ACPICA BZ 9010760. 9011 9012Fixed the parameter validation for AcpiRead/Write. Now return 9013AE_BAD_PARAMETER if the input register pointer is null, and 9014AE_BAD_ADDRESS 9015if 9016the register has an address of zero. Previously, these cases simply 9017returned 9018AE_OK. For optional registers such as PM1B status/enable/control, the 9019caller 9020should check for a valid register address before calling. ACPICA BZ 748. 9021 9022Renamed the external ACPI bit register access functions. Renamed 9023AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 9024functions. The new names are AcpiReadBitRegister and 9025AcpiWriteBitRegister. 9026Also, restructured the code for these functions by simplifying the code 9027path 9028and condensing duplicate code to reduce code size. 9029 9030Added new functions to transparently handle the possibly split PM1 A/B 9031registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two 9032functions 9033now handle the split registers for PM1 Status, Enable, and Control. 9034ACPICA 9035BZ 9036746. 9037 9038Added a function to handle the PM1 control registers, 9039AcpiHwWritePm1Control. 9040This function writes both of the PM1 control registers (A/B). These 9041registers 9042are different than the PM1 A/B status and enable registers in that 9043different 9044values can be written to the A/B registers. Most notably, the SLP_TYP 9045bits 9046can be different, as per the values returned from the _Sx predefined 9047methods. 9048 9049Removed an extra register write within AcpiHwClearAcpiStatus. This 9050function 9051was writing an optional PM1B status register twice. The existing call to 9052the 9053low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 9054A/B 9055register. ACPICA BZ 751. 9056 9057Split out the PM1 Status registers from the FADT. Added new globals for 9058these 9059registers (A/B), similar to the way the PM1 Enable registers are handled. 9060Instead of overloading the FADT Event Register blocks. This makes the 9061code 9062clearer and less prone to error. 9063 9064Fixed the warning message for when the platform contains too many ACPI 9065tables 9066for the default size of the global root table data structure. The 9067calculation 9068for the truncation value was incorrect. 9069 9070Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 9071obsolete macro, since it is now a simple reference to ->common.type. 9072There 9073were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 9074 9075Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 9076TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 9077simply SLEEP_TYPE. ACPICA BZ 754. 9078 9079Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 9080function is only needed on 64-bit host operating systems and is thus not 9081included for 32-bit hosts. 9082 9083Debug output: print the input and result for invocations of the _OSI 9084reserved 9085control method via the ACPI_LV_INFO debug level. Also, reduced some of 9086the 9087verbosity of this debug level. Len Brown. 9088 9089Example Code and Data Size: These are the sizes for the OS-independent 9090acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9091debug version of the code includes the debug output trace mechanism and 9092has a 9093much larger code and data size. 9094 9095 Previous Release: 9096 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 9097 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 9098 Current Release: 9099 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 9100 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 9101 91022) iASL Compiler/Disassembler and Tools: 9103 9104Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 9105various legal performance profiles. 9106 9107---------------------------------------- 910823 January 2009. Summary of changes for version 20090123: 9109 91101) ACPI CA Core Subsystem: 9111 9112Added the 2009 copyright to all module headers and signons. This affects 9113virtually every file in the ACPICA core subsystem, the iASL compiler, and 9114the tools/utilities. 9115 9116Implemented a change to allow the host to override any ACPI table, 9117including 9118dynamically loaded tables. Previously, only the DSDT could be replaced by 9119the 9120host. With this change, the AcpiOsTableOverride interface is called for 9121each 9122table found in the RSDT/XSDT during ACPICA initialization, and also 9123whenever 9124a table is dynamically loaded via the AML Load operator. 9125 9126Updated FADT flag definitions, especially the Boot Architecture flags. 9127 9128Debugger: For the Find command, automatically pad the input ACPI name 9129with 9130underscores if the name is shorter than 4 characters. This enables a 9131match 9132with the actual namespace entry which is itself padded with underscores. 9133 9134Example Code and Data Size: These are the sizes for the OS-independent 9135acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9136debug version of the code includes the debug output trace mechanism and 9137has a 9138much larger code and data size. 9139 9140 Previous Release: 9141 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 9142 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 9143 Current Release: 9144 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 9145 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 9146 91472) iASL Compiler/Disassembler and Tools: 9148 9149Fix build error under Bison-2.4. 9150 9151Disassembler: Enhanced FADT support. Added decoding of the Boot 9152Architecture 9153flags. Now decode all flags, regardless of the FADT version. Flag output 9154includes the FADT version which first defined each flag. 9155 9156The iASL -g option now dumps the RSDT to a file (in addition to the FADT 9157and 9158DSDT). Windows only. 9159 9160---------------------------------------- 916104 December 2008. Summary of changes for version 20081204: 9162 91631) ACPI CA Core Subsystem: 9164 9165The ACPICA Programmer Reference has been completely updated and revamped 9166for 9167this release. This includes updates to the external interfaces, OSL 9168interfaces, the overview sections, and the debugger reference. 9169 9170Several new ACPICA interfaces have been implemented and documented in the 9171programmer reference: 9172AcpiReset - Writes the reset value to the FADT-defined reset register. 9173AcpiDisableAllGpes - Disable all available GPEs. 9174AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 9175AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 9176AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 9177AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 9178AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 9179 9180Most of the public ACPI hardware-related interfaces have been moved to a 9181new 9182file, components/hardware/hwxface.c 9183 9184Enhanced the FADT parsing and low-level ACPI register access: The ACPI 9185register lengths within the FADT are now used, and the low level ACPI 9186register access no longer hardcodes the ACPI register lengths. Given that 9187there may be some risk in actually trusting the FADT register lengths, a 9188run- 9189time option was added to fall back to the default hardcoded lengths if 9190the 9191FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 9192option is set to true for now, and a warning is issued if a suspicious 9193FADT 9194register length is overridden with the default value. 9195 9196Fixed a reference count issue in NsRepairObject. This problem was 9197introduced 9198in version 20081031 as part of a fix to repair Buffer objects within 9199Packages. Lin Ming. 9200 9201Added semaphore support to the Linux/Unix application OS-services layer 9202(OSL). ACPICA BZ 448. Lin Ming. 9203 9204Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 9205will 9206be implemented in the OSL, or will binary semaphores be used instead. 9207 9208Example Code and Data Size: These are the sizes for the OS-independent 9209acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9210debug version of the code includes the debug output trace mechanism and 9211has a 9212much larger code and data size. 9213 9214 Previous Release: 9215 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 9216 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 9217 Current Release: 9218 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 9219 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 9220 92212) iASL Compiler/Disassembler and Tools: 9222 9223iASL: Completed the '-e' option to include additional ACPI tables in 9224order 9225to 9226aid with disassembly and External statement generation. ACPICA BZ 742. 9227Lin 9228Ming. 9229 9230iASL: Removed the "named object in while loop" error. The compiler cannot 9231determine how many times a loop will execute. ACPICA BZ 730. 9232 9233Disassembler: Implemented support for FADT revision 2 (MS extension). 9234ACPICA 9235BZ 743. 9236 9237Disassembler: Updates for several ACPI data tables (HEST, EINJ, and 9238MCFG). 9239 9240---------------------------------------- 924131 October 2008. Summary of changes for version 20081031: 9242 92431) ACPI CA Core Subsystem: 9244 9245Restructured the ACPICA header files into public/private. acpi.h now 9246includes 9247only the "public" acpica headers. All other acpica headers are "private" 9248and 9249should not be included by acpica users. One new file, accommon.h is used 9250to 9251include the commonly used private headers for acpica code generation. 9252Future 9253plans include moving all private headers to a new subdirectory. 9254 9255Implemented an automatic Buffer->String return value conversion for 9256predefined ACPI methods. For these methods (such as _BIF), added 9257automatic 9258conversion for return objects that are required to be a String, but a 9259Buffer 9260was found instead. This can happen when reading string battery data from 9261an 9262operation region, because it used to be difficult to convert the data 9263from 9264buffer to string from within the ASL. Ensures that the host OS is 9265provided 9266with a valid null-terminated string. Linux BZ 11822. 9267 9268Updated the FACS waking vector interfaces. Split 9269AcpiSetFirmwareWakingVector 9270into two: one for the 32-bit vector, another for the 64-bit vector. This 9271is 9272required because the host OS must setup the wake much differently for 9273each 9274vector (real vs. protected mode, etc.) and the interface itself should 9275not 9276be 9277deciding which vector to use. Also, eliminated the 9278GetFirmwareWakingVector 9279interface, as it served no purpose (only the firmware reads the vector, 9280OS 9281only writes the vector.) ACPICA BZ 731. 9282 9283Implemented a mechanism to escape infinite AML While() loops. Added a 9284loop 9285counter to force exit from AML While loops if the count becomes too 9286large. 9287This can occur in poorly written AML when the hardware does not respond 9288within a while loop and the loop does not implement a timeout. The 9289maximum 9290loop count is configurable. A new exception code is returned when a loop 9291is 9292broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 9293 9294Optimized the execution of AML While loops. Previously, a control state 9295object was allocated and freed for each execution of the loop. The 9296optimization is to simply reuse the control state for each iteration. 9297This 9298speeds up the raw loop execution time by about 5%. 9299 9300Enhanced the implicit return mechanism. For Windows compatibility, return 9301an 9302implicit integer of value zero for methods that contain no executable 9303code. 9304Such methods are seen in the field as stubs (presumably), and can cause 9305drivers to fail if they expect a return value. Lin Ming. 9306 9307Allow multiple backslashes as root prefixes in namepaths. In a fully 9308qualified namepath, allow multiple backslash prefixes. This can happen 9309(and 9310is seen in the field) because of the use of a double-backslash in strings 9311(since backslash is the escape character) causing confusion. ACPICA BZ 9312739 9313Lin Ming. 9314 9315Emit a warning if two different FACS or DSDT tables are discovered in the 9316FADT. Checks if there are two valid but different addresses for the FACS 9317and 9318DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 9319 9320Consolidated the method argument count validation code. Merged the code 9321that 9322validates control method argument counts into the predefined validation 9323module. Eliminates possible multiple warnings for incorrect argument 9324counts. 9325 9326Implemented ACPICA example code. Includes code for ACPICA initialization, 9327handler installation, and calling a control method. Available at 9328source/tools/examples. 9329 9330Added a global pointer for FACS table to simplify internal FACS access. 9331Use 9332the global pointer instead of using AcpiGetTableByIndex for each FACS 9333access. 9334This simplifies the code for the Global Lock and the Firmware Waking 9335Vector(s). 9336 9337Example Code and Data Size: These are the sizes for the OS-independent 9338acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9339debug version of the code includes the debug output trace mechanism and 9340has a 9341much larger code and data size. 9342 9343 Previous Release: 9344 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 9345 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 9346 Current Release: 9347 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 9348 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 9349 93502) iASL Compiler/Disassembler and Tools: 9351 9352iASL: Improved disassembly of external method calls. Added the -e option 9353to 9354allow the inclusion of additional ACPI tables to help with the 9355disassembly 9356of 9357method invocations and the generation of external declarations during the 9358disassembly. Certain external method invocations cannot be disassembled 9359properly without the actual declaration of the method. Use the -e option 9360to 9361include the table where the external method(s) are actually declared. 9362Most 9363useful for disassembling SSDTs that make method calls back to the master 9364DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 9365-d 9366-e dsdt.aml ssdt1.aml 9367 9368iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 9369problem where the use of an alias within a namepath would result in a not 9370found error or cause the compiler to fault. Also now allows forward 9371references from the Alias operator itself. ACPICA BZ 738. 9372 9373---------------------------------------- 937426 September 2008. Summary of changes for version 20080926: 9375 93761) ACPI CA Core Subsystem: 9377 9378Designed and implemented a mechanism to validate predefined ACPI methods 9379and 9380objects. This code validates the predefined ACPI objects (objects whose 9381names 9382start with underscore) that appear in the namespace, at the time they are 9383evaluated. The argument count and the type of the returned object are 9384validated against the ACPI specification. The purpose of this validation 9385is 9386to detect problems with the BIOS-implemented predefined ACPI objects 9387before 9388the results are returned to the ACPI-related drivers. Future enhancements 9389may 9390include actual repair of incorrect return objects where possible. Two new 9391files are nspredef.c and acpredef.h. 9392 9393Fixed a fault in the AML parser if a memory allocation fails during the 9394Op 9395completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 9396 9397Fixed an issue with implicit return compatibility. This change improves 9398the 9399implicit return mechanism to be more compatible with the MS interpreter. 9400Lin 9401Ming, ACPICA BZ 349. 9402 9403Implemented support for zero-length buffer-to-string conversions. Allow 9404zero 9405length strings during interpreter buffer-to-string conversions. For 9406example, 9407during the ToDecimalString and ToHexString operators, as well as implicit 9408conversions. Fiodor Suietov, ACPICA BZ 585. 9409 9410Fixed two possible memory leaks in the error exit paths of 9411AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions 9412are 9413similar in that they use a stack of state objects in order to eliminate 9414recursion. The stack must be fully unwound and deallocated if an error 9415occurs. Lin Ming. ACPICA BZ 383. 9416 9417Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 9418global 9419ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 9420Moore ACPICA BZ 442. 9421 9422Removed the obsolete version number in module headers. Removed the 9423"$Revision" number that appeared in each module header. This version 9424number 9425was useful under SourceSafe and CVS, but has no meaning under git. It is 9426not 9427only incorrect, it could also be misleading. 9428 9429Example Code and Data Size: These are the sizes for the OS-independent 9430acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9431debug version of the code includes the debug output trace mechanism and 9432has a 9433much larger code and data size. 9434 9435 Previous Release: 9436 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 9437 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 9438 Current Release: 9439 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 9440 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 9441 9442---------------------------------------- 944329 August 2008. Summary of changes for version 20080829: 9444 94451) ACPI CA Core Subsystem: 9446 9447Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 9448Reference. Changes include the elimination of cheating on the Object 9449field 9450for the DdbHandle subtype, addition of a reference class field to 9451differentiate the various reference types (instead of an AML opcode), and 9452the 9453cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 9454 9455Reduce an error to a warning for an incorrect method argument count. 9456Previously aborted with an error if too few arguments were passed to a 9457control method via the external ACPICA interface. Now issue a warning 9458instead 9459and continue. Handles the case where the method inadvertently declares 9460too 9461many arguments, but does not actually use the extra ones. Applies mainly 9462to 9463the predefined methods. Lin Ming. Linux BZ 11032. 9464 9465Disallow the evaluation of named object types with no intrinsic value. 9466Return 9467AE_TYPE for objects that have no value and therefore evaluation is 9468undefined: 9469Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 9470of 9471these types were allowed, but an exception would be generated at some 9472point 9473during the evaluation. Now, the error is generated up front. 9474 9475Fixed a possible memory leak in the AcpiNsGetExternalPathname function 9476(nsnames.c). Fixes a leak in the error exit path. 9477 9478Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 9479debug 9480levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 9481ACPI_EXCEPTION 9482interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 9483ACPI_LV_EVENTS. 9484 9485Removed obsolete and/or unused exception codes from the acexcep.h header. 9486There is the possibility that certain device drivers may be affected if 9487they 9488use any of these exceptions. 9489 9490The ACPICA documentation has been added to the public git source tree, 9491under 9492acpica/documents. Included are the ACPICA programmer reference, the iASL 9493compiler reference, and the changes.txt release logfile. 9494 9495Example Code and Data Size: These are the sizes for the OS-independent 9496acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9497debug version of the code includes the debug output trace mechanism and 9498has a 9499much larger code and data size. 9500 9501 Previous Release: 9502 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 9503 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 9504 Current Release: 9505 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 9506 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 9507 95082) iASL Compiler/Disassembler and Tools: 9509 9510Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 9511defines _SCP with 3 arguments. Previous versions defined it with only 1 9512argument. iASL now allows both definitions. 9513 9514iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for 9515zero- 9516length subtables when disassembling ACPI tables. Also fixed a couple of 9517errors where a full 16-bit table type field was not extracted from the 9518input 9519properly. 9520 9521acpisrc: Improve comment counting mechanism for generating source code 9522statistics. Count first and last lines of multi-line comments as 9523whitespace, 9524not comment lines. Handle Linux legal header in addition to standard 9525acpica 9526header. 9527 9528---------------------------------------- 9529 953029 July 2008. Summary of changes for version 20080729: 9531 95321) ACPI CA Core Subsystem: 9533 9534Fix a possible deadlock in the GPE dispatch. Remove call to 9535AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 9536attempt 9537to acquire the GPE lock but can deadlock since the GPE lock is already 9538held 9539at dispatch time. This code was introduced in version 20060831 as a 9540response 9541to Linux BZ 6881 and has since been removed from Linux. 9542 9543Add a function to dereference returned reference objects. Examines the 9544return 9545object from a call to AcpiEvaluateObject. Any Index or RefOf references 9546are 9547automatically dereferenced in an attempt to return something useful 9548(these 9549reference types cannot be converted into an external ACPI_OBJECT.) 9550Provides 9551MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 9552 9553x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 9554subtables for the MADT and one new subtable for the SRAT. Includes 9555disassembler and AcpiSrc support. Data from the Intel 64 Architecture 9556x2APIC 9557Specification, June 2008. 9558 9559Additional error checking for pathname utilities. Add error check after 9560all 9561calls to AcpiNsGetPathnameLength. Add status return from 9562AcpiNsBuildExternalPath and check after all calls. Add parameter 9563validation 9564to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 9565 9566Return status from the global init function AcpiUtGlobalInitialize. This 9567is 9568used by both the kernel subsystem and the utilities such as iASL 9569compiler. 9570The function could possibly fail when the caches are initialized. Yang 9571Yi. 9572 9573Add a function to decode reference object types to strings. Created for 9574improved error messages. 9575 9576Improve object conversion error messages. Better error messages during 9577object 9578conversion from internal to the external ACPI_OBJECT. Used for external 9579calls 9580to AcpiEvaluateObject. 9581 9582Example Code and Data Size: These are the sizes for the OS-independent 9583acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9584debug version of the code includes the debug output trace mechanism and 9585has a 9586much larger code and data size. 9587 9588 Previous Release: 9589 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 9590 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 9591 Current Release: 9592 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 9593 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 9594 95952) iASL Compiler/Disassembler and Tools: 9596 9597Debugger: fix a possible hang when evaluating non-methods. Fixes a 9598problem 9599introduced in version 20080701. If the object being evaluated (via 9600execute 9601command) is not a method, the debugger can hang while trying to obtain 9602non- 9603existent parameters. 9604 9605iASL: relax error for using reserved "_T_x" identifiers. These names can 9606appear in a disassembled ASL file if they were emitted by the original 9607compiler. Instead of issuing an error or warning and forcing the user to 9608manually change these names, issue a remark instead. 9609 9610iASL: error if named object created in while loop. Emit an error if any 9611named 9612object is created within a While loop. If allowed, this code will 9613generate 9614a 9615run-time error on the second iteration of the loop when an attempt is 9616made 9617to 9618create the same named object twice. ACPICA bugzilla 730. 9619 9620iASL: Support absolute pathnames for include files. Add support for 9621absolute 9622pathnames within the Include operator. previously, only relative 9623pathnames 9624were supported. 9625 9626iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 9627Descriptor. 9628The ACPI spec requires one interrupt minimum. BZ 423 9629 9630iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 9631Handles the case for the Interrupt Resource Descriptor where 9632the ResourceSource argument is omitted but ResourceSourceIndex 9633is present. Now leave room for the Index. BZ 426 9634 9635iASL: Prevent error message if CondRefOf target does not exist. Fixes 9636cases 9637where an error message is emitted if the target does not exist. BZ 516 9638 9639iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 9640(get ACPI tables on Windows). This was apparently broken in version 964120070919. 9642 9643AcpiXtract: Handle EOF while extracting data. Correctly handle the case 9644where 9645the EOF happens immediately after the last table in the input file. Print 9646completion message. Previously, no message was displayed in this case. 9647 9648---------------------------------------- 964901 July 2008. Summary of changes for version 20080701: 9650 96510) Git source tree / acpica.org 9652 9653Fixed a problem where a git-clone from http would not transfer the entire 9654source tree. 9655 96561) ACPI CA Core Subsystem: 9657 9658Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 9659enable bit. Now performs a read-change-write of the enable register 9660instead 9661of simply writing out the cached enable mask. This will prevent 9662inadvertent 9663enabling of GPEs if a rogue GPE is received during initialization (before 9664GPE 9665handlers are installed.) 9666 9667Implemented a copy for dynamically loaded tables. Previously, dynamically 9668loaded tables were simply mapped - but on some machines this memory is 9669corrupted after suspend. Now copy the table to a local buffer. For the 9670OpRegion case, added checksum verify. Use the table length from the table 9671header, not the region length. For the Buffer case, use the table length 9672also. Dennis Noordsij, Bob Moore. BZ 10734 9673 9674Fixed a problem where the same ACPI table could not be dynamically loaded 9675and 9676unloaded more than once. Without this change, a table cannot be loaded 9677again 9678once it has been loaded/unloaded one time. The current mechanism does not 9679unregister a table upon an unload. During a load, if the same table is 9680found, 9681this no longer returns an exception. BZ 722 9682 9683Fixed a problem where the wrong descriptor length was calculated for the 9684EndTag descriptor in 64-bit mode. The "minimal" descriptors such as 9685EndTag 9686are calculated as 12 bytes long, but the actual length in the internal 9687descriptor is 16 because of the round-up to 8 on the 64-bit build. 9688Reported 9689by Linn Crosetto. BZ 728 9690 9691Fixed a possible memory leak in the Unload operator. The DdbHandle 9692returned 9693by Load() did not have its reference count decremented during unload, 9694leading 9695to a memory leak. Lin Ming. BZ 727 9696 9697Fixed a possible memory leak when deleting thermal/processor objects. Any 9698associated notify handlers (and objects) were not being deleted. Fiodor 9699Suietov. BZ 506 9700 9701Fixed the ordering of the ASCII names in the global mutex table to match 9702the 9703actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 9704only. 9705Vegard Nossum. BZ 726 9706 9707Enhanced the AcpiGetObjectInfo interface to return the number of required 9708arguments if the object is a control method. Added this call to the 9709debugger 9710so the proper number of default arguments are passed to a method. This 9711prevents a warning when executing methods from AcpiExec. 9712 9713Added a check for an invalid handle in AcpiGetObjectInfo. Return 9714AE_BAD_PARAMETER if input handle is invalid. BZ 474 9715 9716Fixed an extraneous warning from exconfig.c on the 64-bit build. 9717 9718Example Code and Data Size: These are the sizes for the OS-independent 9719acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9720debug version of the code includes the debug output trace mechanism and 9721has a 9722much larger code and data size. 9723 9724 Previous Release: 9725 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 9726 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 9727 Current Release: 9728 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 9729 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 9730 97312) iASL Compiler/Disassembler and Tools: 9732 9733iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 9734resource descriptor names. 9735 9736iASL: Detect invalid ASCII characters in input (windows version). Removed 9737the 9738"-CF" flag from the flex compile, enables correct detection of non-ASCII 9739characters in the input. BZ 441 9740 9741iASL: Eliminate warning when result of LoadTable is not used. Eliminate 9742the 9743"result of operation not used" warning when the DDB handle returned from 9744LoadTable is not used. The warning is not needed. BZ 590 9745 9746AcpiExec: Add support for dynamic table load/unload. Now calls _CFG 9747method 9748to 9749pass address of table to the AML. Added option to disable OpRegion 9750simulation 9751to allow creation of an OpRegion with a real address that was passed to 9752_CFG. 9753All of this allows testing of the Load and Unload operators from 9754AcpiExec. 9755 9756Debugger: update tables command for unloaded tables. Handle unloaded 9757tables 9758and use the standard table header output routine. 9759 9760---------------------------------------- 976109 June 2008. Summary of changes for version 20080609: 9762 97631) ACPI CA Core Subsystem: 9764 9765Implemented a workaround for reversed _PRT entries. A significant number 9766of 9767BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 9768change dynamically detects and repairs this problem. Provides 9769compatibility 9770with MS ACPI. BZ 6859 9771 9772Simplified the internal ACPI hardware interfaces to eliminate the locking 9773flag parameter from Register Read/Write. Added a new external interface, 9774AcpiGetRegisterUnlocked. 9775 9776Fixed a problem where the invocation of a GPE control method could hang. 9777This 9778was a regression introduced in 20080514. The new method argument count 9779validation mechanism can enter an infinite loop when a GPE method is 9780dispatched. Problem fixed by removing the obsolete code that passed GPE 9781block 9782information to the notify handler via the control method parameter 9783pointer. 9784 9785Fixed a problem where the _SST execution status was incorrectly returned 9786to 9787the caller of AcpiEnterSleepStatePrep. This was a regression introduced 9788in 978920080514. _SST is optional and a NOT_FOUND exception should never be 9790returned. BZ 716 9791 9792Fixed a problem where a deleted object could be accessed from within the 9793AML 9794parser. This was a regression introduced in version 20080123 as a fix for 9795the 9796Unload operator. Lin Ming. BZ 10669 9797 9798Cleaned up the debug operand dump mechanism. Eliminated unnecessary 9799operands 9800and eliminated the use of a negative index in a loop. Operands are now 9801displayed in the correct order, not backwards. This also fixes a 9802regression 9803introduced in 20080514 on 64-bit systems where the elimination of 9804ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 9805715 9806 9807Fixed a possible memory leak in EvPciConfigRegionSetup where the error 9808exit 9809path did not delete a locally allocated structure. 9810 9811Updated definitions for the DMAR and SRAT tables to synchronize with the 9812current specifications. Includes disassembler support. 9813 9814Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 9815loop termination value was used. Loop terminated on iteration early, 9816missing 9817one mutex. Linn Crosetto 9818 9819Example Code and Data Size: These are the sizes for the OS-independent 9820acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9821debug version of the code includes the debug output trace mechanism and 9822has a 9823much larger code and data size. 9824 9825 Previous Release: 9826 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 9827 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 9828 Current Release: 9829 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 9830 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 9831 98322) iASL Compiler/Disassembler and Tools: 9833 9834Disassembler: Implemented support for EisaId() within _CID objects. Now 9835disassemble integer _CID objects back to EisaId invocations, including 9836multiple integers within _CID packages. Includes single-step support for 9837debugger also. 9838 9839Disassembler: Added support for DMAR and SRAT table definition changes. 9840 9841---------------------------------------- 984214 May 2008. Summary of changes for version 20080514: 9843 98441) ACPI CA Core Subsystem: 9845 9846Fixed a problem where GPEs were enabled too early during the ACPICA 9847initialization. This could lead to "handler not installed" errors on some 9848machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 9849This 9850ensures that all operation regions and devices throughout the namespace 9851have 9852been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 9853 9854Implemented a change to the enter sleep code. Moved execution of the _GTS 9855method to just before setting sleep enable bit. The execution was moved 9856from 9857AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 9858immediately before the SLP_EN bit is set, as per the ACPI specification. 9859Luming Yu, BZ 1653. 9860 9861Implemented a fix to disable unknown GPEs (2nd version). Now always 9862disable 9863the GPE, even if ACPICA thinks that that it is already disabled. It is 9864possible that the AML or some other code has enabled the GPE unbeknownst 9865to 9866the ACPICA code. 9867 9868Fixed a problem with the Field operator where zero-length fields would 9869return 9870an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 9871ASL 9872field declarations in Field(), BankField(), and IndexField(). BZ 10606. 9873 9874Implemented a fix for the Load operator, now load the table at the 9875namespace 9876root. This reverts a change introduced in version 20071019. The table is 9877now 9878loaded at the namespace root even though this goes against the ACPI 9879specification. This provides compatibility with other ACPI 9880implementations. 9881The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 9882Ming. 9883 9884Fixed a problem where ACPICA would not Load() tables with unusual 9885signatures. 9886Now ignore ACPI table signature for Load() operator. Only "SSDT" is 9887acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 9888Therefore, signature validation is worthless. Apparently MS ACPI accepts 9889such 9890signatures, ACPICA must be compatible. BZ 10454. 9891 9892Fixed a possible negative array index in AcpiUtValidateException. Added 9893NULL 9894fields to the exception string arrays to eliminate a -1 subtraction on 9895the 9896SubStatus field. 9897 9898Updated the debug tracking macros to reduce overall code and data size. 9899Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 9900instead of pointers to static strings. Jan Beulich and Bob Moore. 9901 9902Implemented argument count checking in control method invocation via 9903AcpiEvaluateObject. Now emit an error if too few arguments, warning if 9904too 9905many. This applies only to extern programmatic control method execution, 9906not 9907method-to-method calls within the AML. Lin Ming. 9908 9909Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 9910no 9911longer needed, especially with the removal of 16-bit support. It was 9912replaced 9913mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 9914bit 9915on 991632/64-bit platforms is required. 9917 9918Added the C const qualifier for appropriate string constants -- mostly 9919MODULE_NAME and printf format strings. Jan Beulich. 9920 9921Example Code and Data Size: These are the sizes for the OS-independent 9922acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9923debug version of the code includes the debug output trace mechanism and 9924has a 9925much larger code and data size. 9926 9927 Previous Release: 9928 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 9929 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 9930 Current Release: 9931 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 9932 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 9933 99342) iASL Compiler/Disassembler and Tools: 9935 9936Implemented ACPI table revision ID validation in the disassembler. Zero 9937is 9938always invalid. For DSDTs, the ID controls the interpreter integer width. 99391 9940means 32-bit and this is unusual. 2 or greater is 64-bit. 9941 9942---------------------------------------- 994321 March 2008. Summary of changes for version 20080321: 9944 99451) ACPI CA Core Subsystem: 9946 9947Implemented an additional change to the GPE support in order to suppress 9948spurious or stray GPEs. The AcpiEvDisableGpe function will now 9949permanently 9950disable incoming GPEs that are neither enabled nor disabled -- meaning 9951that 9952the GPE is unknown to the system. This should prevent future interrupt 9953floods 9954from that GPE. BZ 6217 (Zhang Rui) 9955 9956Fixed a problem where NULL package elements were not returned to the 9957AcpiEvaluateObject interface correctly. The element was simply ignored 9958instead of returning a NULL ACPI_OBJECT package element, potentially 9959causing 9960a buffer overflow and/or confusing the caller who expected a fixed number 9961of 9962elements. BZ 10132 (Lin Ming, Bob Moore) 9963 9964Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 9965Dword, 9966Qword), Field, BankField, and IndexField operators when invoked from 9967inside 9968an executing control method. In this case, these operators created 9969namespace 9970nodes that were incorrectly left marked as permanent nodes instead of 9971temporary nodes. This could cause a problem if there is race condition 9972between an exiting control method and a running namespace walk. (Reported 9973by 9974Linn Crosetto) 9975 9976Fixed a problem where the CreateField and CreateXXXField operators would 9977incorrectly allow duplicate names (the name of the field) with no 9978exception 9979generated. 9980 9981Implemented several changes for Notify handling. Added support for new 9982Notify 9983values (ACPI 2.0+) and improved the Notify debug output. Notify on 9984PowerResource objects is no longer allowed, as per the ACPI 9985specification. 9986(Bob Moore, Zhang Rui) 9987 9988All Reference Objects returned via the AcpiEvaluateObject interface are 9989now 9990marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 9991for 9992NULL objects - either NULL package elements or unresolved named 9993references. 9994 9995Fixed a problem where an extraneous debug message was produced for 9996package 9997objects (when debugging enabled). The message "Package List length larger 9998than NumElements count" is now produced in the correct case, and is now 9999an 10000error message rather than a debug message. Added a debug message for the 10001opposite case, where NumElements is larger than the Package List (the 10002package 10003will be padded out with NULL elements as per the ACPI spec.) 10004 10005Implemented several improvements for the output of the ASL "Debug" object 10006to 10007clarify and keep all data for a given object on one output line. 10008 10009Fixed two size calculation issues with the variable-length Start 10010Dependent 10011resource descriptor. 10012 10013Example Code and Data Size: These are the sizes for the OS-independent 10014acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10015debug version of the code includes the debug output trace mechanism and 10016has 10017a much larger code and data size. 10018 10019 Previous Release: 10020 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 10021 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 10022 Current Release: 10023 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 10024 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 10025 100262) iASL Compiler/Disassembler and Tools: 10027 10028Fixed a problem with the use of the Switch operator where execution of 10029the 10030containing method by multiple concurrent threads could cause an 10031AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 10032actual Switch opcode, it must be simulated with local named temporary 10033variables and if/else pairs. The solution chosen was to mark any method 10034that 10035uses Switch as Serialized, thus preventing multiple thread entries. BZ 10036469. 10037 10038---------------------------------------- 1003913 February 2008. Summary of changes for version 20080213: 10040 100411) ACPI CA Core Subsystem: 10042 10043Implemented another MS compatibility design change for GPE/Notify 10044handling. 10045GPEs are now cleared/enabled asynchronously to allow all pending notifies 10046to 10047complete first. It is expected that the OSL will queue the enable request 10048behind all pending notify requests (may require changes to the local host 10049OSL 10050in AcpiOsExecute). Alexey Starikovskiy. 10051 10052Fixed a problem where buffer and package objects passed as arguments to a 10053control method via the external AcpiEvaluateObject interface could cause 10054an 10055AE_AML_INTERNAL exception depending on the order and type of operators 10056executed by the target control method. 10057 10058Fixed a problem where resource descriptor size optimization could cause a 10059problem when a _CRS resource template is passed to a _SRS method. The 10060_SRS 10061resource template must use the same descriptors (with the same size) as 10062returned from _CRS. This change affects the following resource 10063descriptors: 10064IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 100659487) 10066 10067Fixed a problem where a CopyObject to RegionField, BankField, and 10068IndexField 10069objects did not perform an implicit conversion as it should. These types 10070must 10071retain their initial type permanently as per the ACPI specification. 10072However, 10073a CopyObject to all other object types should not perform an implicit 10074conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 10075 10076Fixed a problem with the AcpiGetDevices interface where the mechanism to 10077match device CIDs did not examine the entire list of available CIDs, but 10078instead aborted on the first non-matching CID. Andrew Patterson. 10079 10080Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 10081was 10082inadvertently changed to return a 16-bit value instead of a 32-bit value, 10083truncating the upper dword of a 64-bit value. This macro is only used to 10084display debug output, so no incorrect calculations were made. Also, 10085reimplemented the macro so that a 64-bit shift is not performed by 10086inefficient compilers. 10087 10088Added missing va_end statements that should correspond with each va_start 10089statement. 10090 10091Example Code and Data Size: These are the sizes for the OS-independent 10092acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10093debug version of the code includes the debug output trace mechanism and 10094has 10095a much larger code and data size. 10096 10097 Previous Release: 10098 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 10099 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 10100 Current Release: 10101 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 10102 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 10103 101042) iASL Compiler/Disassembler and Tools: 10105 10106Implemented full disassembler support for the following new ACPI tables: 10107BERT, EINJ, and ERST. Implemented partial disassembler support for the 10108complicated HEST table. These tables support the Windows Hardware Error 10109Architecture (WHEA). 10110 10111---------------------------------------- 1011223 January 2008. Summary of changes for version 20080123: 10113 101141) ACPI CA Core Subsystem: 10115 10116Added the 2008 copyright to all module headers and signons. This affects 10117virtually every file in the ACPICA core subsystem, the iASL compiler, and 10118the tools/utilities. 10119 10120Fixed a problem with the SizeOf operator when used with Package and 10121Buffer 10122objects. These objects have deferred execution for some arguments, and 10123the 10124execution is now completed before the SizeOf is executed. This problem 10125caused 10126unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 10127BZ 101289558 10129 10130Implemented an enhancement to the interpreter "slack mode". In the 10131absence 10132of 10133an explicit return or an implicitly returned object from the last 10134executed 10135opcode, a control method will now implicitly return an integer of value 0 10136for 10137Microsoft compatibility. (Lin Ming) BZ 392 10138 10139Fixed a problem with the Load operator where an exception was not 10140returned 10141in 10142the case where the table is already loaded. (Lin Ming) BZ 463 10143 10144Implemented support for the use of DDBHandles as an Indexed Reference, as 10145per 10146the ACPI spec. (Lin Ming) BZ 486 10147 10148Implemented support for UserTerm (Method invocation) for the Unload 10149operator 10150as per the ACPI spec. (Lin Ming) BZ 580 10151 10152Fixed a problem with the LoadTable operator where the OemId and 10153OemTableId 10154input strings could cause unexpected failures if they were shorter than 10155the 10156maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 10157 10158Implemented support for UserTerm (Method invocation) for the Unload 10159operator 10160as per the ACPI spec. (Lin Ming) BZ 580 10161 10162Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 10163HEST, 10164IBFT, UEFI, WDAT. Disassembler support is forthcoming. 10165 10166Example Code and Data Size: These are the sizes for the OS-independent 10167acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10168debug version of the code includes the debug output trace mechanism and 10169has 10170a much larger code and data size. 10171 10172 Previous Release: 10173 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 10174 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 10175 Current Release: 10176 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 10177 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 10178 101792) iASL Compiler/Disassembler and Tools: 10180 10181Implemented support in the disassembler for checksum validation on 10182incoming 10183binary DSDTs and SSDTs. If incorrect, a message is displayed within the 10184table 10185header dump at the start of the disassembly. 10186 10187Implemented additional debugging information in the namespace listing 10188file 10189created during compilation. In addition to the namespace hierarchy, the 10190full 10191pathname to each namespace object is displayed. 10192 10193Fixed a problem with the disassembler where invalid ACPI tables could 10194cause 10195faults or infinite loops. 10196 10197Fixed an unexpected parse error when using the optional "parameter types" 10198list in a control method declaration. (Lin Ming) BZ 397 10199 10200Fixed a problem where two External declarations with the same name did 10201not 10202cause an error (Lin Ming) BZ 509 10203 10204Implemented support for full TermArgs (adding Argx, Localx and method 10205invocation) for the ParameterData parameter to the LoadTable operator. 10206(Lin 10207Ming) BZ 583,587 10208 10209---------------------------------------- 1021019 December 2007. Summary of changes for version 20071219: 10211 102121) ACPI CA Core Subsystem: 10213 10214Implemented full support for deferred execution for the TermArg string 10215arguments for DataTableRegion. This enables forward references and full 10216operand resolution for the three string arguments. Similar to 10217OperationRegion 10218deferred argument execution.) Lin Ming. BZ 430 10219 10220Implemented full argument resolution support for the BankValue argument 10221to 10222BankField. Previously, only constants were supported, now any TermArg may 10223be 10224used. Lin Ming BZ 387, 393 10225 10226Fixed a problem with AcpiGetDevices where the search of a branch of the 10227device tree could be terminated prematurely. In accordance with the ACPI 10228specification, the search down the current branch is terminated if a 10229device 10230is both not present and not functional (instead of just not present.) 10231Yakui 10232Zhao. 10233 10234Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 10235if 10236the underlying AML code changed the GPE enable registers. Now, any 10237unknown 10238incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 10239disabled 10240instead of simply ignored. Rui Zhang. 10241 10242Fixed a problem with Index Fields where the Index register was 10243incorrectly 10244limited to a maximum of 32 bits. Now any size may be used. 10245 10246Fixed a couple memory leaks associated with "implicit return" objects 10247when 10248the AML Interpreter slack mode is enabled. Lin Ming BZ 349 10249 10250Example Code and Data Size: These are the sizes for the OS-independent 10251acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10252debug version of the code includes the debug output trace mechanism and 10253has 10254a much larger code and data size. 10255 10256 Previous Release: 10257 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 10258 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 10259 Current Release: 10260 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 10261 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 10262 10263---------------------------------------- 1026414 November 2007. Summary of changes for version 20071114: 10265 102661) ACPI CA Core Subsystem: 10267 10268Implemented event counters for each of the Fixed Events, the ACPI SCI 10269(interrupt) itself, and control methods executed. Named 10270AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 10271These 10272should be useful for debugging and statistics. 10273 10274Implemented a new external interface, AcpiGetStatistics, to retrieve the 10275contents of the various event counters. Returns the current values for 10276AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 10277AcpiMethodCount. The interface can be expanded in the future if new 10278counters 10279are added. Device drivers should use this interface rather than access 10280the 10281counters directly. 10282 10283Fixed a problem with the FromBCD and ToBCD operators. With some 10284compilers, 10285the ShortDivide function worked incorrectly, causing problems with the 10286BCD 10287functions with large input values. A truncation from 64-bit to 32-bit 10288inadvertently occurred. Internal BZ 435. Lin Ming 10289 10290Fixed a problem with Index references passed as method arguments. 10291References 10292passed as arguments to control methods were dereferenced immediately 10293(before 10294control was passed to the called method). The references are now 10295correctly 10296passed directly to the called method. BZ 5389. Lin Ming 10297 10298Fixed a problem with CopyObject used in conjunction with the Index 10299operator. 10300The reference was incorrectly dereferenced before the copy. The reference 10301is 10302now correctly copied. BZ 5391. Lin Ming 10303 10304Fixed a problem with Control Method references within Package objects. 10305These 10306references are now correctly generated. This completes the package 10307construction overhaul that began in version 20071019. 10308 10309Example Code and Data Size: These are the sizes for the OS-independent 10310acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10311debug version of the code includes the debug output trace mechanism and 10312has 10313a much larger code and data size. 10314 10315 Previous Release: 10316 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 10317 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 10318 Current Release: 10319 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 10320 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 10321 10322 103232) iASL Compiler/Disassembler and Tools: 10324 10325The AcpiExec utility now installs handlers for all of the predefined 10326Operation Region types. New types supported are: PCI_Config, CMOS, and 10327PCIBARTarget. 10328 10329Fixed a problem with the 64-bit version of AcpiExec where the extended 10330(64- 10331bit) address fields for the DSDT and FACS within the FADT were not being 10332used, causing truncation of the upper 32-bits of these addresses. Lin 10333Ming 10334and Bob Moore 10335 10336---------------------------------------- 1033719 October 2007. Summary of changes for version 20071019: 10338 103391) ACPI CA Core Subsystem: 10340 10341Fixed a problem with the Alias operator when the target of the alias is a 10342named ASL operator that opens a new scope -- Scope, Device, 10343PowerResource, 10344Processor, and ThermalZone. In these cases, any children of the original 10345operator could not be accessed via the alias, potentially causing 10346unexpected 10347AE_NOT_FOUND exceptions. (BZ 9067) 10348 10349Fixed a problem with the Package operator where all named references were 10350created as object references and left otherwise unresolved. According to 10351the 10352ACPI specification, a Package can only contain Data Objects or references 10353to 10354control methods. The implication is that named references to Data Objects 10355(Integer, Buffer, String, Package, BufferField, Field) should be resolved 10356immediately upon package creation. This is the approach taken with this 10357change. References to all other named objects (Methods, Devices, Scopes, 10358etc.) are all now properly created as reference objects. (BZ 5328) 10359 10360Reverted a change to Notify handling that was introduced in version 1036120070508. This version changed the Notify handling from asynchronous to 10362fully synchronous (Device driver Notify handling with respect to the 10363Notify 10364ASL operator). It was found that this change caused more problems than it 10365solved and was removed by most users. 10366 10367Fixed a problem with the Increment and Decrement operators where the type 10368of 10369the target object could be unexpectedly and incorrectly changed. (BZ 353) 10370Lin Ming. 10371 10372Fixed a problem with the Load and LoadTable operators where the table 10373location within the namespace was ignored. Instead, the table was always 10374loaded into the root or current scope. Lin Ming. 10375 10376Fixed a problem with the Load operator when loading a table from a buffer 10377object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 10378 10379Fixed a problem with the Debug object where a store of a DdbHandle 10380reference 10381object to the Debug object could cause a fault. 10382 10383Added a table checksum verification for the Load operator, in the case 10384where 10385the load is from a buffer. (BZ 578). 10386 10387Implemented additional parameter validation for the LoadTable operator. 10388The 10389length of the input strings SignatureString, OemIdString, and OemTableId 10390are 10391now checked for maximum lengths. (BZ 582) Lin Ming. 10392 10393Example Code and Data Size: These are the sizes for the OS-independent 10394acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10395debug version of the code includes the debug output trace mechanism and 10396has 10397a much larger code and data size. 10398 10399 Previous Release: 10400 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 10401 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 10402 Current Release: 10403 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 10404 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 10405 10406 104072) iASL Compiler/Disassembler: 10408 10409Fixed a problem where if a single file was specified and the file did not 10410exist, no error message was emitted. (Introduced with wildcard support in 10411version 20070917.) 10412 10413---------------------------------------- 1041419 September 2007. Summary of changes for version 20070919: 10415 104161) ACPI CA Core Subsystem: 10417 10418Designed and implemented new external interfaces to install and remove 10419handlers for ACPI table-related events. Current events that are defined 10420are 10421LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 10422they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 10423AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 10424 10425Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 10426(acpi_serialized option on Linux) could cause some systems to hang during 10427initialization. (Bob Moore) BZ 8171 10428 10429Fixed a problem where objects of certain types (Device, ThermalZone, 10430Processor, PowerResource) can be not found if they are declared and 10431referenced from within the same control method (Lin Ming) BZ 341 10432 10433Example Code and Data Size: These are the sizes for the OS-independent 10434acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10435debug version of the code includes the debug output trace mechanism and 10436has 10437a much larger code and data size. 10438 10439 Previous Release: 10440 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 10441 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 10442 Current Release: 10443 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 10444 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 10445 10446 104472) iASL Compiler/Disassembler: 10448 10449Implemented support to allow multiple files to be compiled/disassembled 10450in 10451a 10452single invocation. This includes command line wildcard support for both 10453the 10454Windows and Unix versions of the compiler. This feature simplifies the 10455disassembly and compilation of multiple ACPI tables in a single 10456directory. 10457 10458---------------------------------------- 1045908 May 2007. Summary of changes for version 20070508: 10460 104611) ACPI CA Core Subsystem: 10462 10463Implemented a Microsoft compatibility design change for the handling of 10464the 10465Notify AML operator. Previously, notify handlers were dispatched and 10466executed completely asynchronously in a deferred thread. The new design 10467still executes the notify handlers in a different thread, but the 10468original 10469thread that executed the Notify() now waits at a synchronization point 10470for 10471the notify handler to complete. Some machines depend on a synchronous 10472Notify 10473operator in order to operate correctly. 10474 10475Implemented support to allow Package objects to be passed as method 10476arguments to the external AcpiEvaluateObject interface. Previously, this 10477would return the AE_NOT_IMPLEMENTED exception. This feature had not been 10478implemented since there were no reserved control methods that required it 10479until recently. 10480 10481Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 10482that 10483contained invalid non-zero values in reserved fields could cause later 10484failures because these fields have meaning in later revisions of the 10485FADT. 10486For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 10487fields 10488are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 10489 10490Fixed a problem where the Global Lock handle was not properly updated if 10491a 10492thread that acquired the Global Lock via executing AML code then 10493attempted 10494to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 10495Joe 10496Liu. 10497 10498Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 10499could be corrupted if the interrupt being removed was at the head of the 10500list. Reported by Linn Crosetto. 10501 10502Example Code and Data Size: These are the sizes for the OS-independent 10503acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10504debug version of the code includes the debug output trace mechanism and 10505has 10506a much larger code and data size. 10507 10508 Previous Release: 10509 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10510 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 10511 Current Release: 10512 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 10513 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 10514 10515---------------------------------------- 1051620 March 2007. Summary of changes for version 20070320: 10517 105181) ACPI CA Core Subsystem: 10519 10520Implemented a change to the order of interpretation and evaluation of AML 10521operand objects within the AML interpreter. The interpreter now evaluates 10522operands in the order that they appear in the AML stream (and the 10523corresponding ASL code), instead of in the reverse order (after the 10524entire 10525operand list has been parsed). The previous behavior caused several 10526subtle 10527incompatibilities with the Microsoft AML interpreter as well as being 10528somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 10529 10530Implemented a change to the ACPI Global Lock support. All interfaces to 10531the 10532global lock now allow the same thread to acquire the lock multiple times. 10533This affects the AcpiAcquireGlobalLock external interface to the global 10534lock 10535as well as the internal use of the global lock to support AML fields -- a 10536control method that is holding the global lock can now simultaneously 10537access 10538AML fields that require global lock protection. Previously, in both 10539cases, 10540this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 10541to 10542AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 10543Controller. There is no change to the behavior of the AML Acquire 10544operator, 10545as this can already be used to acquire a mutex multiple times by the same 10546thread. BZ 8066. With assistance from Alexey Starikovskiy. 10547 10548Fixed a problem where invalid objects could be referenced in the AML 10549Interpreter after error conditions. During operand evaluation, ensure 10550that 10551the internal "Return Object" field is cleared on error and only valid 10552pointers are stored there. Caused occasional access to deleted objects 10553that 10554resulted in "large reference count" warning messages. Valery Podrezov. 10555 10556Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 10557on 10558deeply nested control method invocations. BZ 7873, local BZ 487. Valery 10559Podrezov. 10560 10561Fixed an internal problem with the handling of result objects on the 10562interpreter result stack. BZ 7872. Valery Podrezov. 10563 10564Removed obsolete code that handled the case where AML_NAME_OP is the 10565target 10566of a reference (Reference.Opcode). This code was no longer necessary. BZ 105677874. Valery Podrezov. 10568 10569Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This 10570was 10571a 10572remnant from the previously discontinued 16-bit support. 10573 10574Example Code and Data Size: These are the sizes for the OS-independent 10575acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10576debug version of the code includes the debug output trace mechanism and 10577has 10578a much larger code and data size. 10579 10580 Previous Release: 10581 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10582 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 10583 Current Release: 10584 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10585 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 10586 10587---------------------------------------- 1058826 January 2007. Summary of changes for version 20070126: 10589 105901) ACPI CA Core Subsystem: 10591 10592Added the 2007 copyright to all module headers and signons. This affects 10593virtually every file in the ACPICA core subsystem, the iASL compiler, and 10594the utilities. 10595 10596Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 10597during a table load. A bad pointer was passed in the case where the DSDT 10598is 10599overridden, causing a fault in this case. 10600 10601Example Code and Data Size: These are the sizes for the OS-independent 10602acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10603debug version of the code includes the debug output trace mechanism and 10604has 10605a much larger code and data size. 10606 10607 Previous Release: 10608 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10609 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 10610 Current Release: 10611 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10612 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 10613 10614---------------------------------------- 1061515 December 2006. Summary of changes for version 20061215: 10616 106171) ACPI CA Core Subsystem: 10618 10619Support for 16-bit ACPICA has been completely removed since it is no 10620longer 10621necessary and it clutters the code. All 16-bit macros, types, and 10622conditional compiles have been removed, cleaning up and simplifying the 10623code 10624across the entire subsystem. DOS support is no longer needed since the 10625bootable Linux firmware kit is now available. 10626 10627The handler for the Global Lock is now removed during AcpiTerminate to 10628enable a clean subsystem restart, via the implementation of the 10629AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 10630HP) 10631 10632Implemented enhancements to the multithreading support within the 10633debugger 10634to enable improved multithreading debugging and evaluation of the 10635subsystem. 10636(Valery Podrezov) 10637 10638Debugger: Enhanced the Statistics/Memory command to emit the total 10639(maximum) 10640memory used during the execution, as well as the maximum memory consumed 10641by 10642each of the various object types. (Valery Podrezov) 10643 10644Example Code and Data Size: These are the sizes for the OS-independent 10645acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10646debug version of the code includes the debug output trace mechanism and 10647has 10648a much larger code and data size. 10649 10650 Previous Release: 10651 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 10652 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 10653 Current Release: 10654 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 10655 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 10656 10657 106582) iASL Compiler/Disassembler and Tools: 10659 10660AcpiExec: Implemented a new option (-m) to display full memory use 10661statistics upon subsystem/program termination. (Valery Podrezov) 10662 10663---------------------------------------- 1066409 November 2006. Summary of changes for version 20061109: 10665 106661) ACPI CA Core Subsystem: 10667 10668Optimized the Load ASL operator in the case where the source operand is 10669an 10670operation region. Simply map the operation region memory, instead of 10671performing a bytewise read. (Region must be of type SystemMemory, see 10672below.) 10673 10674Fixed the Load ASL operator for the case where the source operand is a 10675region field. A buffer object is also allowed as the source operand. BZ 10676480 10677 10678Fixed a problem where the Load ASL operator allowed the source operand to 10679be 10680an operation region of any type. It is now restricted to regions of type 10681SystemMemory, as per the ACPI specification. BZ 481 10682 10683Additional cleanup and optimizations for the new Table Manager code. 10684 10685AcpiEnable will now fail if all of the required ACPI tables are not 10686loaded 10687(FADT, FACS, DSDT). BZ 477 10688 10689Added #pragma pack(8/4) to acobject.h to ensure that the structures in 10690this 10691header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 10692manually optimized to be aligned and will not work if it is byte-packed. 10693 10694Example Code and Data Size: These are the sizes for the OS-independent 10695acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10696debug version of the code includes the debug output trace mechanism and 10697has 10698a much larger code and data size. 10699 10700 Previous Release: 10701 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 10702 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 10703 Current Release: 10704 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 10705 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 10706 10707 107082) iASL Compiler/Disassembler and Tools: 10709 10710Fixed a problem where the presence of the _OSI predefined control method 10711within complex expressions could cause an internal compiler error. 10712 10713AcpiExec: Implemented full region support for multiple address spaces. 10714SpaceId is now part of the REGION object. BZ 429 10715 10716---------------------------------------- 1071711 October 2006. Summary of changes for version 20061011: 10718 107191) ACPI CA Core Subsystem: 10720 10721Completed an AML interpreter performance enhancement for control method 10722execution. Previously a 2-pass parse/execution, control methods are now 10723completely parsed and executed in a single pass. This improves overall 10724interpreter performance by ~25%, reduces code size, and reduces CPU stack 10725use. (Valery Podrezov + interpreter changes in version 20051202 that 10726eliminated namespace loading during the pass one parse.) 10727 10728Implemented _CID support for PCI Root Bridge detection. If the _HID does 10729not 10730match the predefined PCI Root Bridge IDs, the _CID list (if present) is 10731now 10732obtained and also checked for an ID match. 10733 10734Implemented additional support for the PCI _ADR execution: upsearch until 10735a 10736device scope is found before executing _ADR. This allows PCI_Config 10737operation regions to be declared locally within control methods 10738underneath 10739PCI device objects. 10740 10741Fixed a problem with a possible race condition between threads executing 10742AcpiWalkNamespace and the AML interpreter. This condition was removed by 10743modifying AcpiWalkNamespace to (by default) ignore all temporary 10744namespace 10745entries created during any concurrent control method execution. An 10746additional namespace race condition is known to exist between 10747AcpiWalkNamespace and the Load/Unload ASL operators and is still under 10748investigation. 10749 10750Restructured the AML ParseLoop function, breaking it into several 10751subfunctions in order to reduce CPU stack use and improve 10752maintainability. 10753(Mikhail Kouzmich) 10754 10755AcpiGetHandle: Fix for parameter validation to detect invalid 10756combinations 10757of prefix handle and pathname. BZ 478 10758 10759Example Code and Data Size: These are the sizes for the OS-independent 10760acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10761debug version of the code includes the debug output trace mechanism and 10762has 10763a much larger code and data size. 10764 10765 Previous Release: 10766 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10767 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 10768 Current Release: 10769 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 10770 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 10771 107722) iASL Compiler/Disassembler and Tools: 10773 10774Ported the -g option (get local ACPI tables) to the new ACPICA Table 10775Manager 10776to restore original behavior. 10777 10778---------------------------------------- 1077927 September 2006. Summary of changes for version 20060927: 10780 107811) ACPI CA Core Subsystem: 10782 10783Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 10784These functions now use a spinlock for mutual exclusion and the interrupt 10785level indication flag is not needed. 10786 10787Fixed a problem with the Global Lock where the lock could appear to be 10788obtained before it is actually obtained. The global lock semaphore was 10789inadvertently created with one unit instead of zero units. (BZ 464) 10790Fiodor 10791Suietov. 10792 10793Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 10794during 10795a read from a buffer or region field. (BZ 458) Fiodor Suietov. 10796 10797Example Code and Data Size: These are the sizes for the OS-independent 10798acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10799debug version of the code includes the debug output trace mechanism and 10800has 10801a much larger code and data size. 10802 10803 Previous Release: 10804 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10805 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 10806 Current Release: 10807 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10808 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 10809 10810 108112) iASL Compiler/Disassembler and Tools: 10812 10813Fixed a compilation problem with the pre-defined Resource Descriptor 10814field 10815names where an "object does not exist" error could be incorrectly 10816generated 10817if the parent ResourceTemplate pathname places the template within a 10818different namespace scope than the current scope. (BZ 7212) 10819 10820Fixed a problem where the compiler could hang after syntax errors 10821detected 10822in an ElseIf construct. (BZ 453) 10823 10824Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 10825operator. An incorrect output filename was produced when this parameter 10826was 10827a null string (""). Now, the original input filename is used as the AML 10828output filename, with an ".aml" extension. 10829 10830Implemented a generic batch command mode for the AcpiExec utility 10831(execute 10832any AML debugger command) (Valery Podrezov). 10833 10834---------------------------------------- 1083512 September 2006. Summary of changes for version 20060912: 10836 108371) ACPI CA Core Subsystem: 10838 10839Enhanced the implementation of the "serialized mode" of the interpreter 10840(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 10841specified, instead of creating a serialization semaphore per control 10842method, 10843the interpreter lock is simply no longer released before a blocking 10844operation during control method execution. This effectively makes the AML 10845Interpreter single-threaded. The overhead of a semaphore per-method is 10846eliminated. 10847 10848Fixed a regression where an error was no longer emitted if a control 10849method 10850attempts to create 2 objects of the same name. This once again returns 10851AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 10852that 10853will dynamically serialize the control method to possible prevent future 10854errors. (BZ 440) 10855 10856Integrated a fix for a problem with PCI Express HID detection in the PCI 10857Config Space setup procedure. (BZ 7145) 10858 10859Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 10860AcpiHwInitialize function - the FADT registers are now validated when the 10861table is loaded. 10862 10863Added two new warnings during FADT verification - 1) if the FADT is 10864larger 10865than the largest known FADT version, and 2) if there is a mismatch 10866between 10867a 1086832-bit block address and the 64-bit X counterpart (when both are non- 10869zero.) 10870 10871Example Code and Data Size: These are the sizes for the OS-independent 10872acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10873debug version of the code includes the debug output trace mechanism and 10874has 10875a much larger code and data size. 10876 10877 Previous Release: 10878 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 10879 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 10880 Current Release: 10881 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 10882 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 10883 10884 108852) iASL Compiler/Disassembler and Tools: 10886 10887Fixed a problem with the implementation of the Switch() operator where 10888the 10889temporary variable was declared too close to the actual Switch, instead 10890of 10891at method level. This could cause a problem if the Switch() operator is 10892within a while loop, causing an error on the second iteration. (BZ 460) 10893 10894Disassembler - fix for error emitted for unknown type for target of scope 10895operator. Now, ignore it and continue. 10896 10897Disassembly of an FADT now verifies the input FADT and reports any errors 10898found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 10899 10900Disassembly of raw data buffers with byte initialization data now 10901prefixes 10902each output line with the current buffer offset. 10903 10904Disassembly of ASF! table now includes all variable-length data fields at 10905the end of some of the subtables. 10906 10907The disassembler now emits a comment if a buffer appears to be a 10908ResourceTemplate, but cannot be disassembled as such because the EndTag 10909does 10910not appear at the very end of the buffer. 10911 10912AcpiExec - Added the "-t" command line option to enable the serialized 10913mode 10914of the AML interpreter. 10915 10916---------------------------------------- 1091731 August 2006. Summary of changes for version 20060831: 10918 109191) ACPI CA Core Subsystem: 10920 10921Miscellaneous fixes for the Table Manager: 10922- Correctly initialize internal common FADT for all 64-bit "X" fields 10923- Fixed a couple table mapping issues during table load 10924- Fixed a couple alignment issues for IA64 10925- Initialize input array to zero in AcpiInitializeTables 10926- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 10927AcpiGetTableByIndex 10928 10929Change for GPE support: when a "wake" GPE is received, all wake GPEs are 10930now 10931immediately disabled to prevent the waking GPE from firing again and to 10932prevent other wake GPEs from interrupting the wake process. 10933 10934Added the AcpiGpeCount global that tracks the number of processed GPEs, 10935to 10936be used for debugging systems with a large number of ACPI interrupts. 10937 10938Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 10939both the ACPICA headers and the disassembler. 10940 10941Example Code and Data Size: These are the sizes for the OS-independent 10942acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10943debug version of the code includes the debug output trace mechanism and 10944has 10945a much larger code and data size. 10946 10947 Previous Release: 10948 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 10949 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 10950 Current Release: 10951 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 10952 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 10953 10954 109552) iASL Compiler/Disassembler and Tools: 10956 10957Disassembler support for the DMAR ACPI table. 10958 10959---------------------------------------- 1096023 August 2006. Summary of changes for version 20060823: 10961 109621) ACPI CA Core Subsystem: 10963 10964The Table Manager component has been completely redesigned and 10965reimplemented. The new design is much simpler, and reduces the overall 10966code 10967and data size of the kernel-resident ACPICA by approximately 5%. Also, it 10968is 10969now possible to obtain the ACPI tables very early during kernel 10970initialization, even before dynamic memory management is initialized. 10971(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 10972 10973Obsolete ACPICA interfaces: 10974 10975- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 10976init 10977time). 10978- AcpiLoadTable: Not needed. 10979- AcpiUnloadTable: Not needed. 10980 10981New ACPICA interfaces: 10982 10983- AcpiInitializeTables: Must be called before the table manager can be 10984used. 10985- AcpiReallocateRootTable: Used to transfer the root table to dynamically 10986allocated memory after it becomes available. 10987- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI 10988tables 10989in the RSDT/XSDT. 10990 10991Other ACPICA changes: 10992 10993- AcpiGetTableHeader returns the actual mapped table header, not a copy. 10994Use 10995AcpiOsUnmapMemory to free this mapping. 10996- AcpiGetTable returns the actual mapped table. The mapping is managed 10997internally and must not be deleted by the caller. Use of this interface 10998causes no additional dynamic memory allocation. 10999- AcpiFindRootPointer: Support for physical addressing has been 11000eliminated, 11001it appeared to be unused. 11002- The interface to AcpiOsMapMemory has changed to be consistent with the 11003other allocation interfaces. 11004- The interface to AcpiOsGetRootPointer has changed to eliminate 11005unnecessary 11006parameters. 11007- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 1100864- 11009bit platforms. Was previously 64 bits on all platforms. 11010- The interface to the ACPI Global Lock acquire/release macros have 11011changed 11012slightly since ACPICA no longer keeps a local copy of the FACS with a 11013constructed pointer to the actual global lock. 11014 11015Porting to the new table manager: 11016 11017- AcpiInitializeTables: Must be called once, and can be called anytime 11018during the OS initialization process. It allows the host to specify an 11019area 11020of memory to be used to store the internal version of the RSDT/XSDT (root 11021table). This allows the host to access ACPI tables before memory 11022management 11023is initialized and running. 11024- AcpiReallocateRootTable: Can be called after memory management is 11025running 11026to copy the root table to a dynamically allocated array, freeing up the 11027scratch memory specified in the call to AcpiInitializeTables. 11028- AcpiSubsystemInitialize: This existing interface is independent of the 11029Table Manager, and does not have to be called before the Table Manager 11030can 11031be used, it only must be called before the rest of ACPICA can be used. 11032- ACPI Tables: Some changes have been made to the names and structure of 11033the 11034actbl.h and actbl1.h header files and may require changes to existing 11035code. 11036For example, bitfields have been completely removed because of their lack 11037of 11038portability across C compilers. 11039- Update interfaces to the Global Lock acquire/release macros if local 11040versions are used. (see acwin.h) 11041 11042Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 11043 11044New files: tbfind.c 11045 11046Example Code and Data Size: These are the sizes for the OS-independent 11047acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11048debug version of the code includes the debug output trace mechanism and 11049has 11050a much larger code and data size. 11051 11052 Previous Release: 11053 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 11054 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 11055 Current Release: 11056 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 11057 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 11058 11059 110602) iASL Compiler/Disassembler and Tools: 11061 11062No changes for this release. 11063 11064---------------------------------------- 1106521 July 2006. Summary of changes for version 20060721: 11066 110671) ACPI CA Core Subsystem: 11068 11069The full source code for the ASL test suite used to validate the iASL 11070compiler and the ACPICA core subsystem is being released with the ACPICA 11071source for the first time. The source is contained in a separate package 11072and 11073consists of over 1100 files that exercise all ASL/AML operators. The 11074package 11075should appear on the Intel/ACPI web site shortly. (Valery Podrezov, 11076Fiodor 11077Suietov) 11078 11079Completed a new design and implementation for support of the ACPI Global 11080Lock. On the OS side, the global lock is now treated as a standard AML 11081mutex. Previously, multiple OS threads could "acquire" the global lock 11082simultaneously. However, this could cause the BIOS to be starved out of 11083the 11084lock - especially in cases such as the Embedded Controller driver where 11085there is a tight coupling between the OS and the BIOS. 11086 11087Implemented an optimization for the ACPI Global Lock interrupt mechanism. 11088The Global Lock interrupt handler no longer queues the execution of a 11089separate thread to signal the global lock semaphore. Instead, the 11090semaphore 11091is signaled directly from the interrupt handler. 11092 11093Implemented support within the AML interpreter for package objects that 11094contain a larger AML length (package list length) than the package 11095element 11096count. In this case, the length of the package is truncated to match the 11097package element count. Some BIOS code apparently modifies the package 11098length 11099on the fly, and this change supports this behavior. Provides 11100compatibility 11101with the MS AML interpreter. (With assistance from Fiodor Suietov) 11102 11103Implemented a temporary fix for the BankValue parameter of a Bank Field 11104to 11105support all constant values, now including the Zero and One opcodes. 11106Evaluation of this parameter must eventually be converted to a full 11107TermArg 11108evaluation. A not-implemented error is now returned (temporarily) for 11109non- 11110constant values for this parameter. 11111 11112Fixed problem reports (Fiodor Suietov) integrated: 11113- Fix for premature object deletion after CopyObject on Operation Region 11114(BZ 11115350) 11116 11117Example Code and Data Size: These are the sizes for the OS-independent 11118acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11119debug version of the code includes the debug output trace mechanism and 11120has 11121a much larger code and data size. 11122 11123 Previous Release: 11124 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 11125 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 11126 Current Release: 11127 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 11128 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 11129 11130 111312) iASL Compiler/Disassembler and Tools: 11132 11133No changes for this release. 11134 11135---------------------------------------- 1113607 July 2006. Summary of changes for version 20060707: 11137 111381) ACPI CA Core Subsystem: 11139 11140Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 11141that do not allow the initialization of address pointers within packed 11142structures - even though the hardware itself may support misaligned 11143transfers. Some of the debug data structures are packed by default to 11144minimize size. 11145 11146Added an error message for the case where AcpiOsGetThreadId() returns 11147zero. 11148A non-zero value is required by the core ACPICA code to ensure the proper 11149operation of AML mutexes and recursive control methods. 11150 11151The DSDT is now the only ACPI table that determines whether the AML 11152interpreter is in 32-bit or 64-bit mode. Not really a functional change, 11153but 11154the hooks for per-table 32/64 switching have been removed from the code. 11155A 11156clarification to the ACPI specification is forthcoming in ACPI 3.0B. 11157 11158Fixed a possible leak of an OwnerID in the error path of 11159AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 11160deletion to a single place in AcpiTbUninstallTable to correct possible 11161leaks 11162when using the AcpiTbDeleteTablesByType interface (with assistance from 11163Lance Ortiz.) 11164 11165Fixed a problem with Serialized control methods where the semaphore 11166associated with the method could be over-signaled after multiple method 11167invocations. 11168 11169Fixed two issues with the locking of the internal namespace data 11170structure. 11171Both the Unload() operator and AcpiUnloadTable interface now lock the 11172namespace during the namespace deletion associated with the table unload 11173(with assistance from Linn Crosetto.) 11174 11175Fixed problem reports (Valery Podrezov) integrated: 11176- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 11177 11178Fixed problem reports (Fiodor Suietov) integrated: 11179- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 11180- On Address Space handler deletion, needless deactivation call (BZ 374) 11181- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 11182375) 11183- Possible memory leak, Notify sub-objects of Processor, Power, 11184ThermalZone 11185(BZ 376) 11186- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 11187- Minimum Length of RSDT should be validated (BZ 379) 11188- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 11189Handler (BZ (380) 11190- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 11191loaded 11192(BZ 381) 11193 11194Example Code and Data Size: These are the sizes for the OS-independent 11195acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11196debug version of the code includes the debug output trace mechanism and 11197has 11198a much larger code and data size. 11199 11200 Previous Release: 11201 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 11202 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 11203 Current Release: 11204 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 11205 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 11206 11207 112082) iASL Compiler/Disassembler and Tools: 11209 11210Fixed problem reports: 11211Compiler segfault when ASL contains a long (>1024) String declaration (BZ 11212436) 11213 11214---------------------------------------- 1121523 June 2006. Summary of changes for version 20060623: 11216 112171) ACPI CA Core Subsystem: 11218 11219Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 11220allows the type to be customized to the host OS for improved efficiency 11221(since a spinlock is usually a very small object.) 11222 11223Implemented support for "ignored" bits in the ACPI registers. According 11224to 11225the ACPI specification, these bits should be preserved when writing the 11226registers via a read/modify/write cycle. There are 3 bits preserved in 11227this 11228manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 11229 11230Implemented the initial deployment of new OSL mutex interfaces. Since 11231some 11232host operating systems have separate mutex and semaphore objects, this 11233feature was requested. The base code now uses mutexes (and the new mutex 11234interfaces) wherever a binary semaphore was used previously. However, for 11235the current release, the mutex interfaces are defined as macros to map 11236them 11237to the existing semaphore interfaces. Therefore, no OSL changes are 11238required 11239at this time. (See acpiosxf.h) 11240 11241Fixed several problems with the support for the control method SyncLevel 11242parameter. The SyncLevel now works according to the ACPI specification 11243and 11244in concert with the Mutex SyncLevel parameter, since the current 11245SyncLevel 11246is a property of the executing thread. Mutual exclusion for control 11247methods 11248is now implemented with a mutex instead of a semaphore. 11249 11250Fixed three instances of the use of the C shift operator in the bitfield 11251support code (exfldio.c) to avoid the use of a shift value larger than 11252the 11253target data width. The behavior of C compilers is undefined in this case 11254and 11255can cause unpredictable results, and therefore the case must be detected 11256and 11257avoided. (Fiodor Suietov) 11258 11259Added an info message whenever an SSDT or OEM table is loaded dynamically 11260via the Load() or LoadTable() ASL operators. This should improve 11261debugging 11262capability since it will show exactly what tables have been loaded 11263(beyond 11264the tables present in the RSDT/XSDT.) 11265 11266Example Code and Data Size: These are the sizes for the OS-independent 11267acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11268debug version of the code includes the debug output trace mechanism and 11269has 11270a much larger code and data size. 11271 11272 Previous Release: 11273 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 11274 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 11275 Current Release: 11276 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 11277 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 11278 11279 112802) iASL Compiler/Disassembler and Tools: 11281 11282No changes for this release. 11283 11284---------------------------------------- 1128508 June 2006. Summary of changes for version 20060608: 11286 112871) ACPI CA Core Subsystem: 11288 11289Converted the locking mutex used for the ACPI hardware to a spinlock. 11290This 11291change should eliminate all problems caused by attempting to acquire a 11292semaphore at interrupt level, and it means that all ACPICA external 11293interfaces that directly access the ACPI hardware can be safely called 11294from 11295interrupt level. OSL code that implements the semaphore interfaces should 11296be 11297able to eliminate any workarounds for being called at interrupt level. 11298 11299Fixed a regression introduced in 20060526 where the ACPI device 11300initialization could be prematurely aborted with an AE_NOT_FOUND if a 11301device 11302did not have an optional _INI method. 11303 11304Fixed an IndexField issue where a write to the Data Register should be 11305limited in size to the AccessSize (width) of the IndexField itself. (BZ 11306433, 11307Fiodor Suietov) 11308 11309Fixed problem reports (Valery Podrezov) integrated: 11310- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 11311 11312Fixed problem reports (Fiodor Suietov) integrated: 11313- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 11314 11315Removed four global mutexes that were obsolete and were no longer being 11316used. 11317 11318Example Code and Data Size: These are the sizes for the OS-independent 11319acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11320debug version of the code includes the debug output trace mechanism and 11321has 11322a much larger code and data size. 11323 11324 Previous Release: 11325 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 11326 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 11327 Current Release: 11328 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 11329 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 11330 11331 113322) iASL Compiler/Disassembler and Tools: 11333 11334Fixed a fault when using -g option (get tables from registry) on Windows 11335machines. 11336 11337Fixed problem reports integrated: 11338- Generate error if CreateField NumBits parameter is zero. (BZ 405) 11339- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 11340Suietov) 11341- Global table revision override (-r) is ignored (BZ 413) 11342 11343---------------------------------------- 1134426 May 2006. Summary of changes for version 20060526: 11345 113461) ACPI CA Core Subsystem: 11347 11348Restructured, flattened, and simplified the internal interfaces for 11349namespace object evaluation - resulting in smaller code, less CPU stack 11350use, 11351and fewer interfaces. (With assistance from Mikhail Kouzmich) 11352 11353Fixed a problem with the CopyObject operator where the first parameter 11354was 11355not typed correctly for the parser, interpreter, compiler, and 11356disassembler. 11357Caused various errors and unexpected behavior. 11358 11359Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 11360produced incorrect results with some C compilers. Since the behavior of C 11361compilers when the shift value is larger than the datatype width is 11362apparently not well defined, the interpreter now detects this condition 11363and 11364simply returns zero as expected in all such cases. (BZ 395) 11365 11366Fixed problem reports (Valery Podrezov) integrated: 11367- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 11368- Allow interpreter to handle nested method declarations (BZ 5361) 11369 11370Fixed problem reports (Fiodor Suietov) integrated: 11371- AcpiTerminate doesn't free debug memory allocation list objects (BZ 11372355) 11373- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 11374356) 11375- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 11376- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 11377- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 11378- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 11379- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 11380- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 11381- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 11382365) 11383- Status of the Global Initialization Handler call not used (BZ 366) 11384- Incorrect object parameter to Global Initialization Handler (BZ 367) 11385 11386Example Code and Data Size: These are the sizes for the OS-independent 11387acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11388debug version of the code includes the debug output trace mechanism and 11389has 11390a much larger code and data size. 11391 11392 Previous Release: 11393 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 11394 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 11395 Current Release: 11396 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 11397 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 11398 11399 114002) iASL Compiler/Disassembler and Tools: 11401 11402Modified the parser to allow the names IO, DMA, and IRQ to be used as 11403namespace identifiers with no collision with existing resource descriptor 11404macro names. This provides compatibility with other ASL compilers and is 11405most useful for disassembly/recompilation of existing tables without 11406parse 11407errors. (With assistance from Thomas Renninger) 11408 11409Disassembler: fixed an incorrect disassembly problem with the 11410DataTableRegion and CopyObject operators. Fixed a possible fault during 11411disassembly of some Alias operators. 11412 11413---------------------------------------- 1141412 May 2006. Summary of changes for version 20060512: 11415 114161) ACPI CA Core Subsystem: 11417 11418Replaced the AcpiOsQueueForExecution interface with a new interface named 11419AcpiOsExecute. The major difference is that the new interface does not 11420have 11421a Priority parameter, this appeared to be useless and has been replaced 11422by 11423a 11424Type parameter. The Type tells the host what type of execution is being 11425requested, such as global lock handler, notify handler, GPE handler, etc. 11426This allows the host to queue and execute the request as appropriate for 11427the 11428request type, possibly using different work queues and different 11429priorities 11430for the various request types. This enables fixes for multithreading 11431deadlock problems such as BZ #5534, and will require changes to all 11432existing 11433OS interface layers. (Alexey Starikovskiy and Bob Moore) 11434 11435Fixed a possible memory leak associated with the support for the so- 11436called 11437"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 11438Suietov) 11439 11440Fixed a problem with the Load() operator where a table load from an 11441operation region could overwrite an internal table buffer by up to 7 11442bytes 11443and cause alignment faults on IPF systems. (With assistance from Luming 11444Yu) 11445 11446Example Code and Data Size: These are the sizes for the OS-independent 11447acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11448debug version of the code includes the debug output trace mechanism and 11449has 11450a much larger code and data size. 11451 11452 Previous Release: 11453 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 11454 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 11455 Current Release: 11456 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 11457 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 11458 11459 11460 114612) iASL Compiler/Disassembler and Tools: 11462 11463Disassembler: Implemented support to cross reference the internal 11464namespace 11465and automatically generate ASL External() statements for symbols not 11466defined 11467within the current table being disassembled. This will simplify the 11468disassembly and recompilation of interdependent tables such as SSDTs 11469since 11470these statements will no longer have to be added manually. 11471 11472Disassembler: Implemented experimental support to automatically detect 11473invocations of external control methods and generate appropriate 11474External() 11475statements. This is problematic because the AML cannot be correctly 11476parsed 11477until the number of arguments for each control method is known. 11478Currently, 11479standalone method invocations and invocations as the source operand of a 11480Store() statement are supported. 11481 11482Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 11483LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 11484LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 11485more readable and likely closer to the original ASL source. 11486 11487---------------------------------------- 1148821 April 2006. Summary of changes for version 20060421: 11489 114901) ACPI CA Core Subsystem: 11491 11492Removed a device initialization optimization introduced in 20051216 where 11493the _STA method was not run unless an _INI was also present for the same 11494device. This optimization could cause problems because it could allow 11495_INI 11496methods to be run within a not-present device subtree. (If a not-present 11497device had no _INI, _STA would not be run, the not-present status would 11498not 11499be discovered, and the children of the device would be incorrectly 11500traversed.) 11501 11502Implemented a new _STA optimization where namespace subtrees that do not 11503contain _INI are identified and ignored during device initialization. 11504Selectively running _STA can significantly improve boot time on large 11505machines (with assistance from Len Brown.) 11506 11507Implemented support for the device initialization case where the returned 11508_STA flags indicate a device not-present but functioning. In this case, 11509_INI 11510is not run, but the device children are examined for presence, as per the 11511ACPI specification. 11512 11513Implemented an additional change to the IndexField support in order to 11514conform to MS behavior. The value written to the Index Register is not 11515simply a byte offset, it is a byte offset in units of the access width of 11516the parent Index Field. (Fiodor Suietov) 11517 11518Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 11519interface is called during the creation of all AML operation regions, and 11520allows the host OS to exert control over what addresses it will allow the 11521AML code to access. Operation Regions whose addresses are disallowed will 11522cause a runtime exception when they are actually accessed (will not 11523affect 11524or abort table loading.) See oswinxf or osunixxf for an example 11525implementation. 11526 11527Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 11528interface allows the host OS to match the various "optional" 11529interface/behavior strings for the _OSI predefined control method as 11530appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 11531for an example implementation. 11532 11533Restructured and corrected various problems in the exception handling 11534code 11535paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 11536(with assistance from Takayoshi Kochi.) 11537 11538Modified the Linux source converter to ignore quoted string literals 11539while 11540converting identifiers from mixed to lower case. This will correct 11541problems 11542with the disassembler and other areas where such strings must not be 11543modified. 11544 11545The ACPI_FUNCTION_* macros no longer require quotes around the function 11546name. This allows the Linux source converter to convert the names, now 11547that 11548the converter ignores quoted strings. 11549 11550Example Code and Data Size: These are the sizes for the OS-independent 11551acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11552debug version of the code includes the debug output trace mechanism and 11553has 11554a much larger code and data size. 11555 11556 Previous Release: 11557 11558 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 11559 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 11560 Current Release: 11561 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 11562 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 11563 11564 115652) iASL Compiler/Disassembler and Tools: 11566 11567Implemented 3 new warnings for iASL, and implemented multiple warning 11568levels 11569(w2 flag). 11570 115711) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 11572not 11573WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 11574check for the possible timeout, a warning is issued. 11575 115762) Useless operators: If an ASL operator does not specify an optional 11577target 11578operand and it also does not use the function return value from the 11579operator, a warning is issued since the operator effectively does 11580nothing. 11581 115823) Unreferenced objects: If a namespace object is created, but never 11583referenced, a warning is issued. This is a warning level 2 since there 11584are 11585cases where this is ok, such as when a secondary table is loaded that 11586uses 11587the unreferenced objects. Even so, care is taken to only flag objects 11588that 11589don't look like they will ever be used. For example, the reserved methods 11590(starting with an underscore) are usually not referenced because it is 11591expected that the OS will invoke them. 11592 11593---------------------------------------- 1159431 March 2006. Summary of changes for version 20060331: 11595 115961) ACPI CA Core Subsystem: 11597 11598Implemented header file support for the following additional ACPI tables: 11599ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 11600support, 11601all current and known ACPI tables are now defined in the ACPICA headers 11602and 11603are available for use by device drivers and other software. 11604 11605Implemented support to allow tables that contain ACPI names with invalid 11606characters to be loaded. Previously, this would cause the table load to 11607fail, but since there are several known cases of such tables on existing 11608machines, this change was made to enable ACPI support for them. Also, 11609this 11610matches the behavior of the Microsoft ACPI implementation. 11611 11612Fixed a couple regressions introduced during the memory optimization in 11613the 1161420060317 release. The namespace node definition required additional 11615reorganization and an internal datatype that had been changed to 8-bit 11616was 11617restored to 32-bit. (Valery Podrezov) 11618 11619Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 11620could be passed through to AcpiOsReleaseObject which is unexpected. Such 11621null pointers are now trapped and ignored, matching the behavior of the 11622previous implementation before the deployment of AcpiOsReleaseObject. 11623(Valery Podrezov, Fiodor Suietov) 11624 11625Fixed a memory mapping leak during the deletion of a SystemMemory 11626operation 11627region where a cached memory mapping was not deleted. This became a 11628noticeable problem for operation regions that are defined within 11629frequently 11630used control methods. (Dana Meyers) 11631 11632Reorganized the ACPI table header files into two main files: one for the 11633ACPI tables consumed by the ACPICA core, and another for the 11634miscellaneous 11635ACPI tables that are consumed by the drivers and other software. The 11636various 11637FADT definitions were merged into one common section and three different 11638tables (ACPI 1.0, 1.0+, and 2.0) 11639 11640Example Code and Data Size: These are the sizes for the OS-independent 11641acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11642debug version of the code includes the debug output trace mechanism and 11643has 11644a much larger code and data size. 11645 11646 Previous Release: 11647 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 11648 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 11649 Current Release: 11650 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 11651 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 11652 11653 116542) iASL Compiler/Disassembler and Tools: 11655 11656Disassembler: Implemented support to decode and format all non-AML ACPI 11657tables (tables other than DSDTs and SSDTs.) This includes the new tables 11658added to the ACPICA headers, therefore all current and known ACPI tables 11659are 11660supported. 11661 11662Disassembler: The change to allow ACPI names with invalid characters also 11663enables the disassembly of such tables. Invalid characters within names 11664are 11665changed to '*' to make the name printable; the iASL compiler will still 11666generate an error for such names, however, since this is an invalid ACPI 11667character. 11668 11669Implemented an option for AcpiXtract (-a) to extract all tables found in 11670the 11671input file. The default invocation extracts only the DSDTs and SSDTs. 11672 11673Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 11674makefile for the AcpiXtract utility. 11675 11676---------------------------------------- 1167717 March 2006. Summary of changes for version 20060317: 11678 116791) ACPI CA Core Subsystem: 11680 11681Implemented the use of a cache object for all internal namespace nodes. 11682Since there are about 1000 static nodes in a typical system, this will 11683decrease memory use for cache implementations that minimize per- 11684allocation 11685overhead (such as a slab allocator.) 11686 11687Removed the reference count mechanism for internal namespace nodes, since 11688it 11689was deemed unnecessary. This reduces the size of each namespace node by 11690about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit 11691case, 11692and 32 bytes for the 64-bit case. 11693 11694Optimized several internal data structures to reduce object size on 64- 11695bit 11696platforms by packing data within the 64-bit alignment. This includes the 11697frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 11698instances corresponding to the namespace objects. 11699 11700Added two new strings for the predefined _OSI method: "Windows 2001.1 11701SP1" 11702and "Windows 2006". 11703 11704Split the allocation tracking mechanism out to a separate file, from 11705utalloc.c to uttrack.c. This mechanism appears to be only useful for 11706application-level code. Kernels may wish to not include uttrack.c in 11707distributions. 11708 11709Removed all remnants of the obsolete ACPI_REPORT_* macros and the 11710associated 11711code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 11712macros.) 11713 11714Code and Data Size: These are the sizes for the acpica.lib produced by 11715the 11716Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 11717ACPI 11718driver or OSPM code. The debug version of the code includes the debug 11719output 11720trace mechanism and has a much larger code and data size. Note that these 11721values will vary depending on the efficiency of the compiler and the 11722compiler options used during generation. 11723 11724 Previous Release: 11725 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11726 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 11727 Current Release: 11728 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 11729 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 11730 11731 117322) iASL Compiler/Disassembler and Tools: 11733 11734Implemented an ANSI C version of the acpixtract utility. This version 11735will 11736automatically extract the DSDT and all SSDTs from the input acpidump text 11737file and dump the binary output to separate files. It can also display a 11738summary of the input file including the headers for each table found and 11739will extract any single ACPI table, with any signature. (See 11740source/tools/acpixtract) 11741 11742---------------------------------------- 1174310 March 2006. Summary of changes for version 20060310: 11744 117451) ACPI CA Core Subsystem: 11746 11747Tagged all external interfaces to the subsystem with the new 11748ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to 11749assist 11750kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 11751macro. The default definition is NULL. 11752 11753Added the ACPI_THREAD_ID type for the return value from 11754AcpiOsGetThreadId. 11755This allows the host to define this as necessary to simplify kernel 11756integration. The default definition is ACPI_NATIVE_UINT. 11757 11758Fixed two interpreter problems related to error processing, the deletion 11759of 11760objects, and placing invalid pointers onto the internal operator result 11761stack. BZ 6028, 6151 (Valery Podrezov) 11762 11763Increased the reference count threshold where a warning is emitted for 11764large 11765reference counts in order to eliminate unnecessary warnings on systems 11766with 11767large namespaces (especially 64-bit.) Increased the value from 0x400 to 117680x800. 11769 11770Due to universal disagreement as to the meaning of the 'c' in the 11771calloc() 11772function, the ACPI_MEM_CALLOCATE macro has been renamed to 11773ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 11774ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 11775ACPI_FREE. 11776 11777Code and Data Size: These are the sizes for the acpica.lib produced by 11778the 11779Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 11780ACPI 11781driver or OSPM code. The debug version of the code includes the debug 11782output 11783trace mechanism and has a much larger code and data size. Note that these 11784values will vary depending on the efficiency of the compiler and the 11785compiler options used during generation. 11786 11787 Previous Release: 11788 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 11789 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 11790 Current Release: 11791 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11792 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 11793 11794 117952) iASL Compiler/Disassembler: 11796 11797Disassembler: implemented support for symbolic resource descriptor 11798references. If a CreateXxxxField operator references a fixed offset 11799within 11800a 11801resource descriptor, a name is assigned to the descriptor and the offset 11802is 11803translated to the appropriate resource tag and pathname. The addition of 11804this support brings the disassembled code very close to the original ASL 11805source code and helps eliminate run-time errors when the disassembled 11806code 11807is modified (and recompiled) in such a way as to invalidate the original 11808fixed offsets. 11809 11810Implemented support for a Descriptor Name as the last parameter to the 11811ASL 11812Register() macro. This parameter was inadvertently left out of the ACPI 11813specification, and will be added for ACPI 3.0b. 11814 11815Fixed a problem where the use of the "_OSI" string (versus the full path 11816"\_OSI") caused an internal compiler error. ("No back ptr to op") 11817 11818Fixed a problem with the error message that occurs when an invalid string 11819is 11820used for a _HID object (such as one with an embedded asterisk: 11821"*PNP010A".) 11822The correct message is now displayed. 11823 11824---------------------------------------- 1182517 February 2006. Summary of changes for version 20060217: 11826 118271) ACPI CA Core Subsystem: 11828 11829Implemented a change to the IndexField support to match the behavior of 11830the 11831Microsoft AML interpreter. The value written to the Index register is now 11832a 11833byte offset, no longer an index based upon the width of the Data 11834register. 11835This should fix IndexField problems seen on some machines where the Data 11836register is not exactly one byte wide. The ACPI specification will be 11837clarified on this point. 11838 11839Fixed a problem where several resource descriptor types could overrun the 11840internal descriptor buffer due to size miscalculation: VendorShort, 11841VendorLong, and Interrupt. This was noticed on IA64 machines, but could 11842affect all platforms. 11843 11844Fixed a problem where individual resource descriptors were misaligned 11845within 11846the internal buffer, causing alignment faults on IA64 platforms. 11847 11848Code and Data Size: These are the sizes for the acpica.lib produced by 11849the 11850Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 11851ACPI 11852driver or OSPM code. The debug version of the code includes the debug 11853output 11854trace mechanism and has a much larger code and data size. Note that these 11855values will vary depending on the efficiency of the compiler and the 11856compiler options used during generation. 11857 11858 Previous Release: 11859 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11860 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 11861 Current Release: 11862 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 11863 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 11864 11865 118662) iASL Compiler/Disassembler: 11867 11868Implemented support for new reserved names: _WDG and _WED are Microsoft 11869extensions for Windows Instrumentation Management, _TDL is a new ACPI- 11870defined method (Throttling Depth Limit.) 11871 11872Fixed a problem where a zero-length VendorShort or VendorLong resource 11873descriptor was incorrectly emitted as a descriptor of length one. 11874 11875---------------------------------------- 1187610 February 2006. Summary of changes for version 20060210: 11877 118781) ACPI CA Core Subsystem: 11879 11880Removed a couple of extraneous ACPI_ERROR messages that appeared during 11881normal execution. These became apparent after the conversion from 11882ACPI_DEBUG_PRINT. 11883 11884Fixed a problem where the CreateField operator could hang if the BitIndex 11885or 11886NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 11887 11888Fixed a problem where a DeRefOf operation on a buffer object incorrectly 11889failed with an exception. This also fixes a couple of related RefOf and 11890DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 11891 11892Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 11893of 11894AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 11895BZ 118965480) 11897 11898Implemented a memory cleanup at the end of the execution of each 11899iteration 11900of an AML While() loop, preventing the accumulation of outstanding 11901objects. 11902(Valery Podrezov, BZ 5427) 11903 11904Eliminated a chunk of duplicate code in the object resolution code. 11905(Valery 11906Podrezov, BZ 5336) 11907 11908Fixed several warnings during the 64-bit code generation. 11909 11910The AcpiSrc source code conversion tool now inserts one line of 11911whitespace 11912after an if() statement that is followed immediately by a comment, 11913improving 11914readability of the Linux code. 11915 11916Code and Data Size: The current and previous library sizes for the core 11917subsystem are shown below. These are the code and data sizes for the 11918acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11919These 11920values do not include any ACPI driver or OSPM code. The debug version of 11921the 11922code includes the debug output trace mechanism and has a much larger code 11923and data size. Note that these values will vary depending on the 11924efficiency 11925of the compiler and the compiler options used during generation. 11926 11927 Previous Release: 11928 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 11929 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 11930 Current Release: 11931 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 11932 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 11933 11934 119352) iASL Compiler/Disassembler: 11936 11937Fixed a problem with the disassembly of a BankField operator with a 11938complex 11939expression for the BankValue parameter. 11940 11941---------------------------------------- 1194227 January 2006. Summary of changes for version 20060127: 11943 119441) ACPI CA Core Subsystem: 11945 11946Implemented support in the Resource Manager to allow unresolved 11947namestring 11948references within resource package objects for the _PRT method. This 11949support 11950is in addition to the previously implemented unresolved reference support 11951within the AML parser. If the interpreter slack mode is enabled, these 11952unresolved references will be passed through to the caller as a NULL 11953package 11954entry. 11955 11956Implemented and deployed new macros and functions for error and warning 11957messages across the subsystem. These macros are simpler and generate less 11958code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 11959ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 11960macros remain defined to allow ACPI drivers time to migrate to the new 11961macros. 11962 11963Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of 11964the 11965Acquire/Release Lock OSL interfaces. 11966 11967Fixed a problem where Alias ASL operators are sometimes not correctly 11968resolved, in both the interpreter and the iASL compiler. 11969 11970Fixed several problems with the implementation of the 11971ConcatenateResTemplate 11972ASL operator. As per the ACPI specification, zero length buffers are now 11973treated as a single EndTag. One-length buffers always cause a fatal 11974exception. Non-zero length buffers that do not end with a full 2-byte 11975EndTag 11976cause a fatal exception. 11977 11978Fixed a possible structure overwrite in the AcpiGetObjectInfo external 11979interface. (With assistance from Thomas Renninger) 11980 11981Code and Data Size: The current and previous library sizes for the core 11982subsystem are shown below. These are the code and data sizes for the 11983acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 11984These 11985values do not include any ACPI driver or OSPM code. The debug version of 11986the 11987code includes the debug output trace mechanism and has a much larger code 11988and data size. Note that these values will vary depending on the 11989efficiency 11990of the compiler and the compiler options used during generation. 11991 11992 Previous Release: 11993 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 11994 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 11995 Current Release: 11996 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 11997 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 11998 11999 120002) iASL Compiler/Disassembler: 12001 12002Fixed an internal error that was generated for any forward references to 12003ASL 12004Alias objects. 12005 12006---------------------------------------- 1200713 January 2006. Summary of changes for version 20060113: 12008 120091) ACPI CA Core Subsystem: 12010 12011Added 2006 copyright to all module headers and signons. This affects 12012virtually every file in the ACPICA core subsystem, iASL compiler, and the 12013utilities. 12014 12015Enhanced the ACPICA error reporting in order to simplify user migration 12016to 12017the non-debug version of ACPICA. Replaced all instances of the 12018ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN 12019debug 12020levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 12021respectively. This preserves all error and warning messages in the non- 12022debug 12023version of the ACPICA code (this has been referred to as the "debug lite" 12024option.) Over 200 cases were converted to create a total of over 380 12025error/warning messages across the ACPICA code. This increases the code 12026and 12027data size of the default non-debug version of the code somewhat (about 1202813K), 12029but all error/warning reporting may be disabled if desired (and code 12030eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 12031configuration option. The size of the debug version of ACPICA remains 12032about 12033the same. 12034 12035Fixed a memory leak within the AML Debugger "Set" command. One object was 12036not properly deleted for every successful invocation of the command. 12037 12038Code and Data Size: The current and previous library sizes for the core 12039subsystem are shown below. These are the code and data sizes for the 12040acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12041These 12042values do not include any ACPI driver or OSPM code. The debug version of 12043the 12044code includes the debug output trace mechanism and has a much larger code 12045and data size. Note that these values will vary depending on the 12046efficiency 12047of the compiler and the compiler options used during generation. 12048 12049 Previous Release: 12050 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 12051 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 12052 Current Release: 12053 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 12054 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 12055 12056 120572) iASL Compiler/Disassembler: 12058 12059The compiler now officially supports the ACPI 3.0a specification that was 12060released on December 30, 2005. (Specification is available at 12061www.acpi.info) 12062 12063---------------------------------------- 1206416 December 2005. Summary of changes for version 20051216: 12065 120661) ACPI CA Core Subsystem: 12067 12068Implemented optional support to allow unresolved names within ASL Package 12069objects. A null object is inserted in the package when a named reference 12070cannot be located in the current namespace. Enabled via the interpreter 12071slack flag, this should eliminate AE_NOT_FOUND exceptions seen on 12072machines 12073that contain such code. 12074 12075Implemented an optimization to the initialization sequence that can 12076improve 12077boot time. During ACPI device initialization, the _STA method is now run 12078if 12079and only if the _INI method exists. The _STA method is used to determine 12080if 12081the device is present; An _INI can only be run if _STA returns present, 12082but 12083it is a waste of time to run the _STA method if the _INI does not exist. 12084(Prototype and assistance from Dong Wei) 12085 12086Implemented use of the C99 uintptr_t for the pointer casting macros if it 12087is 12088available in the current compiler. Otherwise, the default (void *) cast 12089is 12090used as before. 12091 12092Fixed some possible memory leaks found within the execution path of the 12093Break, Continue, If, and CreateField operators. (Valery Podrezov) 12094 12095Fixed a problem introduced in the 20051202 release where an exception is 12096generated during method execution if a control method attempts to declare 12097another method. 12098 12099Moved resource descriptor string constants that are used by both the AML 12100disassembler and AML debugger to the common utilities directory so that 12101these components are independent. 12102 12103Implemented support in the AcpiExec utility (-e switch) to globally 12104ignore 12105exceptions during control method execution (method is not aborted.) 12106 12107Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 12108generation. 12109 12110Code and Data Size: The current and previous library sizes for the core 12111subsystem are shown below. These are the code and data sizes for the 12112acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12113These 12114values do not include any ACPI driver or OSPM code. The debug version of 12115the 12116code includes the debug output trace mechanism and has a much larger code 12117and data size. Note that these values will vary depending on the 12118efficiency 12119of the compiler and the compiler options used during generation. 12120 12121 Previous Release: 12122 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 12123 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 12124 Current Release: 12125 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 12126 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 12127 12128 121292) iASL Compiler/Disassembler: 12130 12131Fixed a problem where a CPU stack overflow fault could occur if a 12132recursive 12133method call was made from within a Return statement. 12134 12135---------------------------------------- 1213602 December 2005. Summary of changes for version 20051202: 12137 121381) ACPI CA Core Subsystem: 12139 12140Modified the parsing of control methods to no longer create namespace 12141objects during the first pass of the parse. Objects are now created only 12142during the execute phase, at the moment the namespace creation operator 12143is 12144encountered in the AML (Name, OperationRegion, CreateByteField, etc.) 12145This 12146should eliminate ALREADY_EXISTS exceptions seen on some machines where 12147reentrant control methods are protected by an AML mutex. The mutex will 12148now 12149correctly block multiple threads from attempting to create the same 12150object 12151more than once. 12152 12153Increased the number of available Owner Ids for namespace object tracking 12154from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 12155on 12156some machines with a large number of ACPI tables (either static or 12157dynamic). 12158 12159Fixed a problem with the AcpiExec utility where a fault could occur when 12160the 12161-b switch (batch mode) is used. 12162 12163Enhanced the namespace dump routine to output the owner ID for each 12164namespace object. 12165 12166Code and Data Size: The current and previous library sizes for the core 12167subsystem are shown below. These are the code and data sizes for the 12168acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12169These 12170values do not include any ACPI driver or OSPM code. The debug version of 12171the 12172code includes the debug output trace mechanism and has a much larger code 12173and data size. Note that these values will vary depending on the 12174efficiency 12175of the compiler and the compiler options used during generation. 12176 12177 Previous Release: 12178 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 12179 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 12180 Current Release: 12181 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 12182 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 12183 12184 121852) iASL Compiler/Disassembler: 12186 12187Fixed a parse error during compilation of certain Switch/Case constructs. 12188To 12189simplify the parse, the grammar now allows for multiple Default 12190statements 12191and this error is now detected and flagged during the analysis phase. 12192 12193Disassembler: The disassembly now includes the contents of the original 12194table header within a comment at the start of the file. This includes the 12195name and version of the original ASL compiler. 12196 12197---------------------------------------- 1219817 November 2005. Summary of changes for version 20051117: 12199 122001) ACPI CA Core Subsystem: 12201 12202Fixed a problem in the AML parser where the method thread count could be 12203decremented below zero if any errors occurred during the method parse 12204phase. 12205This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 12206machines. 12207This also fixed a related regression with the mechanism that detects and 12208corrects methods that cannot properly handle reentrancy (related to the 12209deployment of the new OwnerId mechanism.) 12210 12211Eliminated the pre-parsing of control methods (to detect errors) during 12212table load. Related to the problem above, this was causing unwind issues 12213if 12214any errors occurred during the parse, and it seemed to be overkill. A 12215table 12216load should not be aborted if there are problems with any single control 12217method, thus rendering this feature rather pointless. 12218 12219Fixed a problem with the new table-driven resource manager where an 12220internal 12221buffer overflow could occur for small resource templates. 12222 12223Implemented a new external interface, AcpiGetVendorResource. This 12224interface 12225will find and return a vendor-defined resource descriptor within a _CRS 12226or 12227_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 12228Helgaas. 12229 12230Removed the length limit (200) on string objects as per the upcoming ACPI 122313.0A specification. This affects the following areas of the interpreter: 122321) 12233any implicit conversion of a Buffer to a String, 2) a String object 12234result 12235of the ASL Concatenate operator, 3) the String object result of the ASL 12236ToString operator. 12237 12238Fixed a problem in the Windows OS interface layer (OSL) where a 12239WAIT_FOREVER 12240on a semaphore object would incorrectly timeout. This allows the 12241multithreading features of the AcpiExec utility to work properly under 12242Windows. 12243 12244Updated the Linux makefiles for the iASL compiler and AcpiExec to include 12245the recently added file named "utresrc.c". 12246 12247Code and Data Size: The current and previous library sizes for the core 12248subsystem are shown below. These are the code and data sizes for the 12249acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12250These 12251values do not include any ACPI driver or OSPM code. The debug version of 12252the 12253code includes the debug output trace mechanism and has a much larger code 12254and data size. Note that these values will vary depending on the 12255efficiency 12256of the compiler and the compiler options used during generation. 12257 12258 Previous Release: 12259 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 12260 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 12261 Current Release: 12262 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 12263 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 12264 12265 122662) iASL Compiler/Disassembler: 12267 12268Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 12269specification. For the iASL compiler, this means that string literals 12270within 12271the source ASL can be of any length. 12272 12273Enhanced the listing output to dump the AML code for resource descriptors 12274immediately after the ASL code for each descriptor, instead of in a block 12275at 12276the end of the entire resource template. 12277 12278Enhanced the compiler debug output to dump the entire original parse tree 12279constructed during the parse phase, before any transforms are applied to 12280the 12281tree. The transformed tree is dumped also. 12282 12283---------------------------------------- 1228402 November 2005. Summary of changes for version 20051102: 12285 122861) ACPI CA Core Subsystem: 12287 12288Modified the subsystem initialization sequence to improve GPE support. 12289The 12290GPE initialization has been split into two parts in order to defer 12291execution 12292of the _PRW methods (Power Resources for Wake) until after the hardware 12293is 12294fully initialized and the SCI handler is installed. This allows the _PRW 12295methods to access fields protected by the Global Lock. This will fix 12296systems 12297where a NO_GLOBAL_LOCK exception has been seen during initialization. 12298 12299Converted the ACPI internal object disassemble and display code within 12300the 12301AML debugger to fully table-driven operation, reducing code size and 12302increasing maintainability. 12303 12304Fixed a regression with the ConcatenateResTemplate() ASL operator 12305introduced 12306in the 20051021 release. 12307 12308Implemented support for "local" internal ACPI object types within the 12309debugger "Object" command and the AcpiWalkNamespace external interfaces. 12310These local types include RegionFields, BankFields, IndexFields, Alias, 12311and 12312reference objects. 12313 12314Moved common AML resource handling code into a new file, "utresrc.c". 12315This 12316code is shared by both the Resource Manager and the AML Debugger. 12317 12318Code and Data Size: The current and previous library sizes for the core 12319subsystem are shown below. These are the code and data sizes for the 12320acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12321These 12322values do not include any ACPI driver or OSPM code. The debug version of 12323the 12324code includes the debug output trace mechanism and has a much larger code 12325and data size. Note that these values will vary depending on the 12326efficiency 12327of the compiler and the compiler options used during generation. 12328 12329 Previous Release: 12330 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 12331 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 12332 Current Release: 12333 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 12334 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 12335 12336 123372) iASL Compiler/Disassembler: 12338 12339Fixed a problem with very large initializer lists (more than 4000 12340elements) 12341for both Buffer and Package objects where the parse stack could overflow. 12342 12343Enhanced the pre-compile source code scan for non-ASCII characters to 12344ignore 12345characters within comment fields. The scan is now always performed and is 12346no 12347longer optional, detecting invalid characters within a source file 12348immediately rather than during the parse phase or later. 12349 12350Enhanced the ASL grammar definition to force early reductions on all 12351list- 12352style grammar elements so that the overall parse stack usage is greatly 12353reduced. This should improve performance and reduce the possibility of 12354parse 12355stack overflow. 12356 12357Eliminated all reduce/reduce conflicts in the iASL parser generation. 12358Also, 12359with the addition of a %expected statement, the compiler generates from 12360source with no warnings. 12361 12362Fixed a possible segment fault in the disassembler if the input filename 12363does not contain a "dot" extension (Thomas Renninger). 12364 12365---------------------------------------- 1236621 October 2005. Summary of changes for version 20051021: 12367 123681) ACPI CA Core Subsystem: 12369 12370Implemented support for the EM64T and other x86-64 processors. This 12371essentially entails recognizing that these processors support non-aligned 12372memory transfers. Previously, all 64-bit processors were assumed to lack 12373hardware support for non-aligned transfers. 12374 12375Completed conversion of the Resource Manager to nearly full table-driven 12376operation. Specifically, the resource conversion code (convert AML to 12377internal format and the reverse) and the debug code to dump internal 12378resource descriptors are fully table-driven, reducing code and data size 12379and 12380improving maintainability. 12381 12382The OSL interfaces for Acquire and Release Lock now use a 64-bit flag 12383word 12384on 64-bit processors instead of a fixed 32-bit word. (With assistance 12385from 12386Alexey Starikovskiy) 12387 12388Implemented support within the resource conversion code for the Type- 12389Specific byte within the various ACPI 3.0 *WordSpace macros. 12390 12391Fixed some issues within the resource conversion code for the type- 12392specific 12393flags for both Memory and I/O address resource descriptors. For Memory, 12394implemented support for the MTP and TTP flags. For I/O, split the TRS and 12395TTP flags into two separate fields. 12396 12397Code and Data Size: The current and previous library sizes for the core 12398subsystem are shown below. These are the code and data sizes for the 12399acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12400These 12401values do not include any ACPI driver or OSPM code. The debug version of 12402the 12403code includes the debug output trace mechanism and has a much larger code 12404and data size. Note that these values will vary depending on the 12405efficiency 12406of the compiler and the compiler options used during generation. 12407 12408 Previous Release: 12409 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 12410 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 12411 Current Release: 12412 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 12413 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 12414 12415 12416 124172) iASL Compiler/Disassembler: 12418 12419Relaxed a compiler restriction that disallowed a ResourceIndex byte if 12420the 12421corresponding ResourceSource string was not also present in a resource 12422descriptor declaration. This restriction caused problems with existing 12423AML/ASL code that includes the Index byte without the string. When such 12424AML 12425was disassembled, it could not be compiled without modification. Further, 12426the modified code created a resource template with a different size than 12427the 12428original, breaking code that used fixed offsets into the resource 12429template 12430buffer. 12431 12432Removed a recent feature of the disassembler to ignore a lone 12433ResourceIndex 12434byte. This byte is now emitted if present so that the exact AML can be 12435reproduced when the disassembled code is recompiled. 12436 12437Improved comments and text alignment for the resource descriptor code 12438emitted by the disassembler. 12439 12440Implemented disassembler support for the ACPI 3.0 AccessSize field within 12441a 12442Register() resource descriptor. 12443 12444---------------------------------------- 1244530 September 2005. Summary of changes for version 20050930: 12446 124471) ACPI CA Core Subsystem: 12448 12449Completed a major overhaul of the Resource Manager code - specifically, 12450optimizations in the area of the AML/internal resource conversion code. 12451The 12452code has been optimized to simplify and eliminate duplicated code, CPU 12453stack 12454use has been decreased by optimizing function parameters and local 12455variables, and naming conventions across the manager have been 12456standardized 12457for clarity and ease of maintenance (this includes function, parameter, 12458variable, and struct/typedef names.) The update may force changes in some 12459driver code, depending on how resources are handled by the host OS. 12460 12461All Resource Manager dispatch and information tables have been moved to a 12462single location for clarity and ease of maintenance. One new file was 12463created, named "rsinfo.c". 12464 12465The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 12466guarantee that the argument is not evaluated twice, making them less 12467prone 12468to macro side-effects. However, since there exists the possibility of 12469additional stack use if a particular compiler cannot optimize them (such 12470as 12471in the debug generation case), the original macros are optionally 12472available. 12473Note that some invocations of the return_VALUE macro may now cause size 12474mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 12475to 12476eliminate these. (From Randy Dunlap) 12477 12478Implemented a new mechanism to enable debug tracing for individual 12479control 12480methods. A new external interface, AcpiDebugTrace, is provided to enable 12481this mechanism. The intent is to allow the host OS to easily enable and 12482disable tracing for problematic control methods. This interface can be 12483easily exposed to a user or debugger interface if desired. See the file 12484psxface.c for details. 12485 12486AcpiUtCallocate will now return a valid pointer if a length of zero is 12487specified - a length of one is used and a warning is issued. This matches 12488the behavior of AcpiUtAllocate. 12489 12490Code and Data Size: The current and previous library sizes for the core 12491subsystem are shown below. These are the code and data sizes for the 12492acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12493These 12494values do not include any ACPI driver or OSPM code. The debug version of 12495the 12496code includes the debug output trace mechanism and has a much larger code 12497and data size. Note that these values will vary depending on the 12498efficiency 12499of the compiler and the compiler options used during generation. 12500 12501 Previous Release: 12502 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 12503 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 12504 Current Release: 12505 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 12506 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 12507 12508 125092) iASL Compiler/Disassembler: 12510 12511A remark is issued if the effective compile-time length of a package or 12512buffer is zero. Previously, this was a warning. 12513 12514---------------------------------------- 1251516 September 2005. Summary of changes for version 20050916: 12516 125171) ACPI CA Core Subsystem: 12518 12519Fixed a problem within the Resource Manager where support for the Generic 12520Register descriptor was not fully implemented. This descriptor is now 12521fully 12522recognized, parsed, disassembled, and displayed. 12523 12524Completely restructured the Resource Manager code to utilize table-driven 12525dispatch and lookup, eliminating many of the large switch() statements. 12526This 12527reduces overall subsystem code size and code complexity. Affects the 12528resource parsing and construction, disassembly, and debug dump output. 12529 12530Cleaned up and restructured the debug dump output for all resource 12531descriptors. Improved readability of the output and reduced code size. 12532 12533Fixed a problem where changes to internal data structures caused the 12534optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 12535 12536Code and Data Size: The current and previous library sizes for the core 12537subsystem are shown below. These are the code and data sizes for the 12538acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12539These 12540values do not include any ACPI driver or OSPM code. The debug version of 12541the 12542code includes the debug output trace mechanism and has a much larger code 12543and data size. Note that these values will vary depending on the 12544efficiency 12545of the compiler and the compiler options used during generation. 12546 12547 Previous Release: 12548 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 12549 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 12550 Current Release: 12551 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 12552 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 12553 12554 125552) iASL Compiler/Disassembler: 12556 12557Updated the disassembler to automatically insert an EndDependentFn() 12558macro 12559into the ASL stream if this macro is missing in the original AML code, 12560simplifying compilation of the resulting ASL module. 12561 12562Fixed a problem in the disassembler where a disassembled ResourceSource 12563string (within a large resource descriptor) was not surrounded by quotes 12564and 12565not followed by a comma, causing errors when the resulting ASL module was 12566compiled. Also, escape sequences within a ResourceSource string are now 12567handled correctly (especially "\\") 12568 12569---------------------------------------- 1257002 September 2005. Summary of changes for version 20050902: 12571 125721) ACPI CA Core Subsystem: 12573 12574Fixed a problem with the internal Owner ID allocation and deallocation 12575mechanisms for control method execution and recursive method invocation. 12576This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 12577messages seen on some systems. Recursive method invocation depth is 12578currently limited to 255. (Alexey Starikovskiy) 12579 12580Completely eliminated all vestiges of support for the "module-level 12581executable code" until this support is fully implemented and debugged. 12582This 12583should eliminate the NO_RETURN_VALUE exceptions seen during table load on 12584some systems that invoke this support. 12585 12586Fixed a problem within the resource manager code where the transaction 12587flags 12588for a 64-bit address descriptor were handled incorrectly in the type- 12589specific flag byte. 12590 12591Consolidated duplicate code within the address descriptor resource 12592manager 12593code, reducing overall subsystem code size. 12594 12595Fixed a fault when using the AML debugger "disassemble" command to 12596disassemble individual control methods. 12597 12598Removed references to the "release_current" directory within the Unix 12599release package. 12600 12601Code and Data Size: The current and previous core subsystem library sizes 12602are shown below. These are the code and data sizes for the acpica.lib 12603produced by the Microsoft Visual C++ 6.0 compiler. These values do not 12604include any ACPI driver or OSPM code. The debug version of the code 12605includes 12606the debug output trace mechanism and has a much larger code and data 12607size. 12608Note that these values will vary depending on the efficiency of the 12609compiler 12610and the compiler options used during generation. 12611 12612 Previous Release: 12613 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 12614 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 12615 Current Release: 12616 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 12617 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 12618 12619 126202) iASL Compiler/Disassembler: 12621 12622Implemented an error check for illegal duplicate values in the interrupt 12623and 12624dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 12625Interrupt(). 12626 12627Implemented error checking for the Irq() and IrqNoFlags() macros to 12628detect 12629too many values in the interrupt list (16 max) and invalid values in the 12630list (range 0 - 15) 12631 12632The maximum length string literal within an ASL file is now restricted to 12633200 characters as per the ACPI specification. 12634 12635Fixed a fault when using the -ln option (generate namespace listing). 12636 12637Implemented an error check to determine if a DescriptorName within a 12638resource descriptor has already been used within the current scope. 12639 12640---------------------------------------- 1264115 August 2005. Summary of changes for version 20050815: 12642 126431) ACPI CA Core Subsystem: 12644 12645Implemented a full bytewise compare to determine if a table load request 12646is 12647attempting to load a duplicate table. The compare is performed if the 12648table 12649signatures and table lengths match. This will allow different tables with 12650the same OEM Table ID and revision to be loaded - probably against the 12651ACPI 12652specification, but discovered in the field nonetheless. 12653 12654Added the changes.txt logfile to each of the zipped release packages. 12655 12656Code and Data Size: Current and previous core subsystem library sizes are 12657shown below. These are the code and data sizes for the acpica.lib 12658produced 12659by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12660any ACPI driver or OSPM code. The debug version of the code includes the 12661debug output trace mechanism and has a much larger code and data size. 12662Note 12663that these values will vary depending on the efficiency of the compiler 12664and 12665the compiler options used during generation. 12666 12667 Previous Release: 12668 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 12669 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 12670 Current Release: 12671 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 12672 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 12673 12674 126752) iASL Compiler/Disassembler: 12676 12677Fixed a problem where incorrect AML code could be generated for Package 12678objects if optimization is disabled (via the -oa switch). 12679 12680Fixed a problem with where incorrect AML code is generated for variable- 12681length packages when the package length is not specified and the number 12682of 12683initializer values is greater than 255. 12684 12685 12686---------------------------------------- 1268729 July 2005. Summary of changes for version 20050729: 12688 126891) ACPI CA Core Subsystem: 12690 12691Implemented support to ignore an attempt to install/load a particular 12692ACPI 12693table more than once. Apparently there exists BIOS code that repeatedly 12694attempts to load the same SSDT upon certain events. With assistance from 12695Venkatesh Pallipadi. 12696 12697Restructured the main interface to the AML parser in order to correctly 12698handle all exceptional conditions. This will prevent leakage of the 12699OwnerId 12700resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 12701some 12702machines. With assistance from Alexey Starikovskiy. 12703 12704Support for "module level code" has been disabled in this version due to 12705a 12706number of issues that have appeared on various machines. The support can 12707be 12708enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 12709compilation. When the issues are fully resolved, the code will be enabled 12710by 12711default again. 12712 12713Modified the internal functions for debug print support to define the 12714FunctionName parameter as a (const char *) for compatibility with 12715compiler 12716built-in macros such as __FUNCTION__, etc. 12717 12718Linted the entire ACPICA source tree for both 32-bit and 64-bit. 12719 12720Implemented support to display an object count summary for the AML 12721Debugger 12722commands Object and Methods. 12723 12724Code and Data Size: Current and previous core subsystem library sizes are 12725shown below. These are the code and data sizes for the acpica.lib 12726produced 12727by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12728any ACPI driver or OSPM code. The debug version of the code includes the 12729debug output trace mechanism and has a much larger code and data size. 12730Note 12731that these values will vary depending on the efficiency of the compiler 12732and 12733the compiler options used during generation. 12734 12735 Previous Release: 12736 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 12737 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 12738 Current Release: 12739 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 12740 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 12741 12742 127432) iASL Compiler/Disassembler: 12744 12745Fixed a regression that appeared in the 20050708 version of the compiler 12746where an error message was inadvertently emitted for invocations of the 12747_OSI 12748reserved control method. 12749 12750---------------------------------------- 1275108 July 2005. Summary of changes for version 20050708: 12752 127531) ACPI CA Core Subsystem: 12754 12755The use of the CPU stack in the debug version of the subsystem has been 12756considerably reduced. Previously, a debug structure was declared in every 12757function that used the debug macros. This structure has been removed in 12758favor of declaring the individual elements as parameters to the debug 12759functions. This reduces the cumulative stack use during nested execution 12760of 12761ACPI function calls at the cost of a small increase in the code size of 12762the 12763debug version of the subsystem. With assistance from Alexey Starikovskiy 12764and 12765Len Brown. 12766 12767Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 12768headers to define a macro that will return the current function name at 12769runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 12770by 12771the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 12772compiler-dependent header, the function name is saved on the CPU stack 12773(one 12774pointer per function.) This mechanism is used because apparently there 12775exists no standard ANSI-C defined macro that that returns the function 12776name. 12777 12778Redesigned and reimplemented the "Owner ID" mechanism used to track 12779namespace objects created/deleted by ACPI tables and control method 12780execution. A bitmap is now used to allocate and free the IDs, thus 12781solving 12782the wraparound problem present in the previous implementation. The size 12783of 12784the namespace node descriptor was reduced by 2 bytes as a result (Alexey 12785Starikovskiy). 12786 12787Removed the UINT32_BIT and UINT16_BIT types that were used for the 12788bitfield 12789flag definitions within the headers for the predefined ACPI tables. These 12790have been replaced by UINT8_BIT in order to increase the code portability 12791of 12792the subsystem. If the use of UINT8 remains a problem, we may be forced to 12793eliminate bitfields entirely because of a lack of portability. 12794 12795Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 12796This 12797is a frequently used function and this improvement increases the 12798performance 12799of the entire subsystem (Alexey Starikovskiy). 12800 12801Fixed several possible memory leaks and the inverse - premature object 12802deletion (Alexey Starikovskiy). 12803 12804Code and Data Size: Current and previous core subsystem library sizes are 12805shown below. These are the code and data sizes for the acpica.lib 12806produced 12807by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12808any ACPI driver or OSPM code. The debug version of the code includes the 12809debug output trace mechanism and has a much larger code and data size. 12810Note 12811that these values will vary depending on the efficiency of the compiler 12812and 12813the compiler options used during generation. 12814 12815 Previous Release: 12816 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 12817 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 12818 Current Release: 12819 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 12820 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 12821 12822---------------------------------------- 1282324 June 2005. Summary of changes for version 20050624: 12824 128251) ACPI CA Core Subsystem: 12826 12827Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 12828the host-defined cache object. This allows the OSL implementation to 12829define 12830and type this object in any manner desired, simplifying the OSL 12831implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 12832Linux, and should be defined in the OS-specific header file for other 12833operating systems as required. 12834 12835Changed the interface to AcpiOsAcquireObject to directly return the 12836requested object as the function return (instead of ACPI_STATUS.) This 12837change was made for performance reasons, since this is the purpose of the 12838interface in the first place. AcpiOsAcquireObject is now similar to the 12839AcpiOsAllocate interface. 12840 12841Implemented a new AML debugger command named Businfo. This command 12842displays 12843information about all devices that have an associate _PRT object. The 12844_ADR, 12845_HID, _UID, and _CID are displayed for these devices. 12846 12847Modified the initialization sequence in AcpiInitializeSubsystem to call 12848the 12849OSL interface AcpiOslInitialize first, before any local initialization. 12850This 12851change was required because the global initialization now calls OSL 12852interfaces. 12853 12854Enhanced the Dump command to display the entire contents of Package 12855objects 12856(including all sub-objects and their values.) 12857 12858Restructured the code base to split some files because of size and/or 12859because the code logically belonged in a separate file. New files are 12860listed 12861below. All makefiles and project files included in the ACPI CA release 12862have 12863been updated. 12864 utilities/utcache.c /* Local cache interfaces */ 12865 utilities/utmutex.c /* Local mutex support */ 12866 utilities/utstate.c /* State object support */ 12867 interpreter/parser/psloop.c /* Main AML parse loop */ 12868 12869Code and Data Size: Current and previous core subsystem library sizes are 12870shown below. These are the code and data sizes for the acpica.lib 12871produced 12872by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12873any ACPI driver or OSPM code. The debug version of the code includes the 12874debug output trace mechanism and has a much larger code and data size. 12875Note 12876that these values will vary depending on the efficiency of the compiler 12877and 12878the compiler options used during generation. 12879 12880 Previous Release: 12881 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 12882 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 12883 Current Release: 12884 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 12885 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 12886 12887 128882) iASL Compiler/Disassembler: 12889 12890Fixed a regression introduced in version 20050513 where the use of a 12891Package 12892object within a Case() statement caused a compile time exception. The 12893original behavior has been restored (a Match() operator is emitted.) 12894 12895---------------------------------------- 1289617 June 2005. Summary of changes for version 20050617: 12897 128981) ACPI CA Core Subsystem: 12899 12900Moved the object cache operations into the OS interface layer (OSL) to 12901allow 12902the host OS to handle these operations if desired (for example, the Linux 12903OSL will invoke the slab allocator). This support is optional; the 12904compile 12905time define ACPI_USE_LOCAL_CACHE may be used to utilize the original 12906cache 12907code in the ACPI CA core. The new OSL interfaces are shown below. See 12908utalloc.c for an example implementation, and acpiosxf.h for the exact 12909interface definitions. With assistance from Alexey Starikovskiy. 12910 AcpiOsCreateCache 12911 AcpiOsDeleteCache 12912 AcpiOsPurgeCache 12913 AcpiOsAcquireObject 12914 AcpiOsReleaseObject 12915 12916Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 12917return 12918and restore a flags parameter. This fits better with many OS lock models. 12919Note: the current execution state (interrupt handler or not) is no longer 12920passed to these interfaces. If necessary, the OSL must determine this 12921state 12922by itself, a simple and fast operation. With assistance from Alexey 12923Starikovskiy. 12924 12925Fixed a problem in the ACPI table handling where a valid XSDT was assumed 12926present if the revision of the RSDP was 2 or greater. According to the 12927ACPI 12928specification, the XSDT is optional in all cases, and the table manager 12929therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 12930Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs 12931contain 12932only the RSDT. 12933 12934Fixed an interpreter problem with the Mid() operator in the case of an 12935input 12936string where the resulting output string is of zero length. It now 12937correctly 12938returns a valid, null terminated string object instead of a string object 12939with a null pointer. 12940 12941Fixed a problem with the control method argument handling to allow a 12942store 12943to an Arg object that already contains an object of type Device. The 12944Device 12945object is now correctly overwritten. Previously, an error was returned. 12946 12947 12948Enhanced the debugger Find command to emit object values in addition to 12949the 12950found object pathnames. The output format is the same as the dump 12951namespace 12952command. 12953 12954Enhanced the debugger Set command. It now has the ability to set the 12955value 12956of any Named integer object in the namespace (Previously, only method 12957locals 12958and args could be set.) 12959 12960Code and Data Size: Current and previous core subsystem library sizes are 12961shown below. These are the code and data sizes for the acpica.lib 12962produced 12963by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12964any ACPI driver or OSPM code. The debug version of the code includes the 12965debug output trace mechanism and has a much larger code and data size. 12966Note 12967that these values will vary depending on the efficiency of the compiler 12968and 12969the compiler options used during generation. 12970 12971 Previous Release: 12972 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 12973 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 12974 Current Release: 12975 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 12976 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 12977 12978 129792) iASL Compiler/Disassembler: 12980 12981Fixed a regression in the disassembler where if/else/while constructs 12982were 12983output incorrectly. This problem was introduced in the previous release 12984(20050526). This problem also affected the single-step disassembly in the 12985debugger. 12986 12987Fixed a problem where compiling the reserved _OSI method would randomly 12988(but 12989rarely) produce compile errors. 12990 12991Enhanced the disassembler to emit compilable code in the face of 12992incorrect 12993AML resource descriptors. If the optional ResourceSourceIndex is present, 12994but the ResourceSource is not, do not emit the ResourceSourceIndex in the 12995disassembly. Otherwise, the resulting code cannot be compiled without 12996errors. 12997 12998---------------------------------------- 1299926 May 2005. Summary of changes for version 20050526: 13000 130011) ACPI CA Core Subsystem: 13002 13003Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 13004the module level (not within a control method.) These opcodes are 13005executed 13006exactly once at the time the table is loaded. This type of code was legal 13007up 13008until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 13009in 13010order to provide backwards compatibility with earlier BIOS 13011implementations. 13012This eliminates the "Encountered executable code at module level" warning 13013that was previously generated upon detection of such code. 13014 13015Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 13016inadvertently be generated during the lookup of namespace objects in the 13017second pass parse of ACPI tables and control methods. It appears that 13018this 13019problem could occur during the resolution of forward references to 13020namespace 13021objects. 13022 13023Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 13024corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 13025allows the deadlock detection debug code to be compiled out in the normal 13026case, improving mutex performance (and overall subsystem performance) 13027considerably. 13028 13029Implemented a handful of miscellaneous fixes for possible memory leaks on 13030error conditions and error handling control paths. These fixes were 13031suggested by FreeBSD and the Coverity Prevent source code analysis tool. 13032 13033Added a check for a null RSDT pointer in AcpiGetFirmwareTable 13034(tbxfroot.c) 13035to prevent a fault in this error case. 13036 13037Code and Data Size: Current and previous core subsystem library sizes are 13038shown below. These are the code and data sizes for the acpica.lib 13039produced 13040by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13041any ACPI driver or OSPM code. The debug version of the code includes the 13042debug output trace mechanism and has a much larger code and data size. 13043Note 13044that these values will vary depending on the efficiency of the compiler 13045and 13046the compiler options used during generation. 13047 13048 Previous Release: 13049 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13050 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13051 Current Release: 13052 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 13053 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 13054 13055 130562) iASL Compiler/Disassembler: 13057 13058Implemented support to allow Type 1 and Type 2 ASL operators to appear at 13059the module level (not within a control method.) These operators will be 13060executed once at the time the table is loaded. This type of code was 13061legal 13062up until the release of ACPI 2.0B (2002) and is now supported by the iASL 13063compiler in order to provide backwards compatibility with earlier BIOS 13064ASL 13065code. 13066 13067The ACPI integer width (specified via the table revision ID or the -r 13068override, 32 or 64 bits) is now used internally during compile-time 13069constant 13070folding to ensure that constants are truncated to 32 bits if necessary. 13071Previously, the revision ID value was only emitted in the AML table 13072header. 13073 13074An error message is now generated for the Mutex and Method operators if 13075the 13076SyncLevel parameter is outside the legal range of 0 through 15. 13077 13078Fixed a problem with the Method operator ParameterTypes list handling 13079(ACPI 130803.0). Previously, more than 2 types or 2 arguments generated a syntax 13081error. 13082The actual underlying implementation of method argument typechecking is 13083still under development, however. 13084 13085---------------------------------------- 1308613 May 2005. Summary of changes for version 20050513: 13087 130881) ACPI CA Core Subsystem: 13089 13090Implemented support for PCI Express root bridges -- added support for 13091device 13092PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 13093 13094The interpreter now automatically truncates incoming 64-bit constants to 1309532 13096bits if currently executing out of a 32-bit ACPI table (Revision < 2). 13097This 13098also affects the iASL compiler constant folding. (Note: as per below, the 13099iASL compiler no longer allows 64-bit constants within 32-bit tables.) 13100 13101Fixed a problem where string and buffer objects with "static" pointers 13102(pointers to initialization data within an ACPI table) were not handled 13103consistently. The internal object copy operation now always copies the 13104data 13105to a newly allocated buffer, regardless of whether the source object is 13106static or not. 13107 13108Fixed a problem with the FromBCD operator where an implicit result 13109conversion was improperly performed while storing the result to the 13110target 13111operand. Since this is an "explicit conversion" operator, the implicit 13112conversion should never be performed on the output. 13113 13114Fixed a problem with the CopyObject operator where a copy to an existing 13115named object did not always completely overwrite the existing object 13116stored 13117at name. Specifically, a buffer-to-buffer copy did not delete the 13118existing 13119buffer. 13120 13121Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces 13122and 13123structs for consistency. 13124 13125Code and Data Size: Current and previous core subsystem library sizes are 13126shown below. These are the code and data sizes for the acpica.lib 13127produced 13128by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13129any ACPI driver or OSPM code. The debug version of the code includes the 13130debug output trace mechanism and has a much larger code and data size. 13131Note 13132that these values will vary depending on the efficiency of the compiler 13133and 13134the compiler options used during generation. 13135 13136 Previous Release: 13137 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13138 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13139 Current Release: (Same sizes) 13140 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13141 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13142 13143 131442) iASL Compiler/Disassembler: 13145 13146The compiler now emits a warning if an attempt is made to generate a 64- 13147bit 13148integer constant from within a 32-bit ACPI table (Revision < 2). The 13149integer 13150is truncated to 32 bits. 13151 13152Fixed a problem with large package objects: if the static length of the 13153package is greater than 255, the "variable length package" opcode is 13154emitted. Previously, this caused an error. This requires an update to the 13155ACPI spec, since it currently (incorrectly) states that packages larger 13156than 13157255 elements are not allowed. 13158 13159The disassembler now correctly handles variable length packages and 13160packages 13161larger than 255 elements. 13162 13163---------------------------------------- 1316408 April 2005. Summary of changes for version 20050408: 13165 131661) ACPI CA Core Subsystem: 13167 13168Fixed three cases in the interpreter where an "index" argument to an ASL 13169function was still (internally) 32 bits instead of the required 64 bits. 13170This was the Index argument to the Index, Mid, and Match operators. 13171 13172The "strupr" function is now permanently local (AcpiUtStrupr), since this 13173is 13174not a POSIX-defined function and not present in most kernel-level C 13175libraries. All references to the C library strupr function have been 13176removed 13177from the headers. 13178 13179Completed the deployment of static functions/prototypes. All prototypes 13180with 13181the static attribute have been moved from the headers to the owning C 13182file. 13183 13184Implemented an extract option (-e) for the AcpiBin utility (AML binary 13185utility). This option allows the utility to extract individual ACPI 13186tables 13187from the output of AcpiDmp. It provides the same functionality of the 13188acpixtract.pl perl script without the worry of setting the correct perl 13189options. AcpiBin runs on Windows and has not yet been generated/validated 13190in 13191the Linux/Unix environment (but should be soon). 13192 13193Updated and fixed the table dump option for AcpiBin (-d). This option 13194converts a single ACPI table to a hex/ascii file, similar to the output 13195of 13196AcpiDmp. 13197 13198Code and Data Size: Current and previous core subsystem library sizes are 13199shown below. These are the code and data sizes for the acpica.lib 13200produced 13201by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13202any ACPI driver or OSPM code. The debug version of the code includes the 13203debug output trace mechanism and has a much larger code and data size. 13204Note 13205that these values will vary depending on the efficiency of the compiler 13206and 13207the compiler options used during generation. 13208 13209 Previous Release: 13210 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 13211 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 13212 Current Release: 13213 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13214 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13215 13216 132172) iASL Compiler/Disassembler: 13218 13219Disassembler fix: Added a check to ensure that the table length found in 13220the 13221ACPI table header within the input file is not longer than the actual 13222input 13223file size. This indicates some kind of file or table corruption. 13224 13225---------------------------------------- 1322629 March 2005. Summary of changes for version 20050329: 13227 132281) ACPI CA Core Subsystem: 13229 13230An error is now generated if an attempt is made to create a Buffer Field 13231of 13232length zero (A CreateField with a length operand of zero.) 13233 13234The interpreter now issues a warning whenever executable code at the 13235module 13236level is detected during ACPI table load. This will give some idea of the 13237prevalence of this type of code. 13238 13239Implemented support for references to named objects (other than control 13240methods) within package objects. 13241 13242Enhanced package object output for the debug object. Package objects are 13243now 13244completely dumped, showing all elements. 13245 13246Enhanced miscellaneous object output for the debug object. Any object can 13247now be written to the debug object (for example, a device object can be 13248written, and the type of the object will be displayed.) 13249 13250The "static" qualifier has been added to all local functions across both 13251the 13252core subsystem and the iASL compiler. 13253 13254The number of "long" lines (> 80 chars) within the source has been 13255significantly reduced, by about 1/3. 13256 13257Cleaned up all header files to ensure that all CA/iASL functions are 13258prototyped (even static functions) and the formatting is consistent. 13259 13260Two new header files have been added, acopcode.h and acnames.h. 13261 13262Removed several obsolete functions that were no longer used. 13263 13264Code and Data Size: Current and previous core subsystem library sizes are 13265shown below. These are the code and data sizes for the acpica.lib 13266produced 13267by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13268any ACPI driver or OSPM code. The debug version of the code includes the 13269debug output trace mechanism and has a much larger code and data size. 13270Note 13271that these values will vary depending on the efficiency of the compiler 13272and 13273the compiler options used during generation. 13274 13275 Previous Release: 13276 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13277 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 13278 Current Release: 13279 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 13280 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 13281 13282 13283 132842) iASL Compiler/Disassembler: 13285 13286Fixed a problem with the resource descriptor generation/support. For the 13287ResourceSourceIndex and the ResourceSource fields, both must be present, 13288or 13289both must be not present - can't have one without the other. 13290 13291The compiler now returns non-zero from the main procedure if any errors 13292have 13293occurred during the compilation. 13294 13295 13296---------------------------------------- 1329709 March 2005. Summary of changes for version 20050309: 13298 132991) ACPI CA Core Subsystem: 13300 13301The string-to-buffer implicit conversion code has been modified again 13302after 13303a change to the ACPI specification. In order to match the behavior of 13304the 13305other major ACPI implementation, the target buffer is no longer truncated 13306if 13307the source string is smaller than an existing target buffer. This change 13308requires an update to the ACPI spec, and should eliminate the recent 13309AE_AML_BUFFER_LIMIT issues. 13310 13311The "implicit return" support was rewritten to a new algorithm that 13312solves 13313the general case. Rather than attempt to determine when a method is about 13314to 13315exit, the result of every ASL operator is saved momentarily until the 13316very 13317next ASL operator is executed. Therefore, no matter how the method exits, 13318there will always be a saved implicit return value. This feature is only 13319enabled with the AcpiGbl_EnableInterpreterSlack flag, and should 13320eliminate 13321AE_AML_NO_RETURN_VALUE errors when enabled. 13322 13323Implemented implicit conversion support for the predicate (operand) of 13324the 13325If, Else, and While operators. String and Buffer arguments are 13326automatically 13327converted to Integers. 13328 13329Changed the string-to-integer conversion behavior to match the new ACPI 13330errata: "If no integer object exists, a new integer is created. The ASCII 13331string is interpreted as a hexadecimal constant. Each string character is 13332interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 13333with the first character as the most significant digit, and ending with 13334the 13335first non-hexadecimal character or end-of-string." This means that the 13336first 13337non-hex character terminates the conversion and this is the code that was 13338changed. 13339 13340Fixed a problem where the ObjectType operator would fail (fault) when 13341used 13342on an Index of a Package which pointed to a null package element. The 13343operator now properly returns zero (Uninitialized) in this case. 13344 13345Fixed a problem where the While operator used excessive memory by not 13346properly popping the result stack during execution. There was no memory 13347leak 13348after execution, however. (Code provided by Valery Podrezov.) 13349 13350Fixed a problem where references to control methods within Package 13351objects 13352caused the method to be invoked, instead of producing a reference object 13353pointing to the method. 13354 13355Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) 13356to 13357improve performance and reduce code size. (Code provided by Alexey 13358Starikovskiy.) 13359 13360Code and Data Size: Current and previous core subsystem library sizes are 13361shown below. These are the code and data sizes for the acpica.lib 13362produced 13363by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13364any ACPI driver or OSPM code. The debug version of the code includes the 13365debug output trace mechanism and has a much larger code and data size. 13366Note 13367that these values will vary depending on the efficiency of the compiler 13368and 13369the compiler options used during generation. 13370 13371 Previous Release: 13372 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13373 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 13374 Current Release: 13375 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13376 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 13377 13378 133792) iASL Compiler/Disassembler: 13380 13381Fixed a problem with the Return operator with no arguments. Since the AML 13382grammar for the byte encoding requires an operand for the Return opcode, 13383the 13384compiler now emits a Return(Zero) for this case. An ACPI specification 13385update has been written for this case. 13386 13387For tables other than the DSDT, namepath optimization is automatically 13388disabled. This is because SSDTs can be loaded anywhere in the namespace, 13389the 13390compiler has no knowledge of where, and thus cannot optimize namepaths. 13391 13392Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 13393inadvertently omitted from the ACPI specification, and will require an 13394update to the spec. 13395 13396The source file scan for ASCII characters is now optional (-a). This 13397change 13398was made because some vendors place non-ascii characters within comments. 13399However, the scan is simply a brute-force byte compare to ensure all 13400characters in the file are in the range 0x00 to 0x7F. 13401 13402Fixed a problem with the CondRefOf operator where the compiler was 13403inappropriately checking for the existence of the target. Since the point 13404of 13405the operator is to check for the existence of the target at run-time, the 13406compiler no longer checks for the target existence. 13407 13408Fixed a problem where errors generated from the internal AML interpreter 13409during constant folding were not handled properly, causing a fault. 13410 13411Fixed a problem with overly aggressive range checking for the Stall 13412operator. The valid range (max 255) is now only checked if the operand is 13413of 13414type Integer. All other operand types cannot be statically checked. 13415 13416Fixed a problem where control method references within the RefOf, 13417DeRefOf, 13418and ObjectType operators were not treated properly. They are now treated 13419as 13420actual references, not method invocations. 13421 13422Fixed and enhanced the "list namespace" option (-ln). This option was 13423broken 13424a number of releases ago. 13425 13426Improved error handling for the Field, IndexField, and BankField 13427operators. 13428The compiler now cleanly reports and recovers from errors in the field 13429component (FieldUnit) list. 13430 13431Fixed a disassembler problem where the optional ResourceDescriptor fields 13432TRS and TTP were not always handled correctly. 13433 13434Disassembler - Comments in output now use "//" instead of "/*" 13435 13436---------------------------------------- 1343728 February 2005. Summary of changes for version 20050228: 13438 134391) ACPI CA Core Subsystem: 13440 13441Fixed a problem where the result of an Index() operator (an object 13442reference) must increment the reference count on the target object for 13443the 13444life of the object reference. 13445 13446Implemented AML Interpreter and Debugger support for the new ACPI 3.0 13447Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 13448WordSpace 13449resource descriptors. 13450 13451Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 13452Space Descriptor" string, indicating interpreter support for the 13453descriptors 13454above. 13455 13456Implemented header support for the new ACPI 3.0 FADT flag bits. 13457 13458Implemented header support for the new ACPI 3.0 PCI Express bits for the 13459PM1 13460status/enable registers. 13461 13462Updated header support for the MADT processor local Apic struct and MADT 13463platform interrupt source struct for new ACPI 3.0 fields. 13464 13465Implemented header support for the SRAT and SLIT ACPI tables. 13466 13467Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 13468flag 13469at runtime. 13470 13471Code and Data Size: Current and previous core subsystem library sizes are 13472shown below. These are the code and data sizes for the acpica.lib 13473produced 13474by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13475any ACPI driver or OSPM code. The debug version of the code includes the 13476debug output trace mechanism and has a much larger code and data size. 13477Note 13478that these values will vary depending on the efficiency of the compiler 13479and 13480the compiler options used during generation. 13481 13482 Previous Release: 13483 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 13484 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 13485 Current Release: 13486 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13487 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 13488 13489 134902) iASL Compiler/Disassembler: 13491 13492Fixed a problem with the internal 64-bit String-to-integer conversion 13493with 13494strings less than two characters long. 13495 13496Fixed a problem with constant folding where the result of the Index() 13497operator can not be considered a constant. This means that Index() cannot 13498be 13499a type3 opcode and this will require an update to the ACPI specification. 13500 13501Disassembler: Implemented support for the TTP, MTP, and TRS resource 13502descriptor fields. These fields were inadvertently ignored and not output 13503in 13504the disassembly of the resource descriptor. 13505 13506 13507 ---------------------------------------- 1350811 February 2005. Summary of changes for version 20050211: 13509 135101) ACPI CA Core Subsystem: 13511 13512Implemented ACPI 3.0 support for implicit conversion within the Match() 13513operator. MatchObjects can now be of type integer, buffer, or string 13514instead 13515of just type integer. Package elements are implicitly converted to the 13516type 13517of the MatchObject. This change aligns the behavior of Match() with the 13518behavior of the other logical operators (LLess(), etc.) It also requires 13519an 13520errata change to the ACPI specification as this support was intended for 13521ACPI 3.0, but was inadvertently omitted. 13522 13523Fixed a problem with the internal implicit "to buffer" conversion. 13524Strings 13525that are converted to buffers will cause buffer truncation if the string 13526is 13527smaller than the target buffer. Integers that are converted to buffers 13528will 13529not cause buffer truncation, only zero extension (both as per the ACPI 13530spec.) The problem was introduced when code was added to truncate the 13531buffer, but this should not be performed in all cases, only the string 13532case. 13533 13534Fixed a problem with the Buffer and Package operators where the 13535interpreter 13536would get confused if two such operators were used as operands to an ASL 13537operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 13538stack was not being popped after the execution of these operators, 13539resulting 13540in an AE_NO_RETURN_VALUE exception. 13541 13542Fixed a problem with constructs of the form Store(Index(...),...). The 13543reference object returned from Index was inadvertently resolved to an 13544actual 13545value. This problem was introduced in version 20050114 when the behavior 13546of 13547Store() was modified to restrict the object types that can be used as the 13548source operand (to match the ACPI specification.) 13549 13550Reduced excessive stack use within the AcpiGetObjectInfo procedure. 13551 13552Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 13553 13554Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 13555 13556Code and Data Size: Current and previous core subsystem library sizes are 13557shown below. These are the code and data sizes for the acpica.lib 13558produced 13559by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13560any ACPI driver or OSPM code. The debug version of the code includes the 13561debug output trace mechanism and has a much larger code and data size. 13562Note 13563that these values will vary depending on the efficiency of the compiler 13564and 13565the compiler options used during generation. 13566 13567 Previous Release: 13568 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 13569 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 13570 Current Release: 13571 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 13572 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 13573 13574 135752) iASL Compiler/Disassembler: 13576 13577Fixed a code generation problem in the constant folding optimization code 13578where incorrect code was generated if a constant was reduced to a buffer 13579object (i.e., a reduced type 5 opcode.) 13580 13581Fixed a typechecking problem for the ToBuffer operator. Caused by an 13582incorrect return type in the internal opcode information table. 13583 13584---------------------------------------- 1358525 January 2005. Summary of changes for version 20050125: 13586 135871) ACPI CA Core Subsystem: 13588 13589Fixed a recently introduced problem with the Global Lock where the 13590underlying semaphore was not created. This problem was introduced in 13591version 20050114, and caused an AE_AML_NO_OPERAND exception during an 13592Acquire() operation on _GL. 13593 13594The local object cache is now optional, and is disabled by default. Both 13595AcpiExec and the iASL compiler enable the cache because they run in user 13596mode and this enhances their performance. #define 13597ACPI_ENABLE_OBJECT_CACHE 13598to enable the local cache. 13599 13600Fixed an issue in the internal function AcpiUtEvaluateObject concerning 13601the 13602optional "implicit return" support where an error was returned if no 13603return 13604object was expected, but one was implicitly returned. AE_OK is now 13605returned 13606in this case and the implicitly returned object is deleted. 13607AcpiUtEvaluateObject is only occasionally used, and only to execute 13608reserved 13609methods such as _STA and _INI where the return type is known up front. 13610 13611Fixed a few issues with the internal convert-to-integer code. It now 13612returns 13613an error if an attempt is made to convert a null string, a string of only 13614blanks/tabs, or a zero-length buffer. This affects both implicit 13615conversion 13616and explicit conversion via the ToInteger() operator. 13617 13618The internal debug code in AcpiUtAcquireMutex has been commented out. It 13619is 13620not needed for normal operation and should increase the performance of 13621the 13622entire subsystem. The code remains in case it is needed for debug 13623purposes 13624again. 13625 13626The AcpiExec source and makefile are included in the Unix/Linux package 13627for 13628the first time. 13629 13630Code and Data Size: Current and previous core subsystem library sizes are 13631shown below. These are the code and data sizes for the acpica.lib 13632produced 13633by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13634any ACPI driver or OSPM code. The debug version of the code includes the 13635debug output trace mechanism and has a much larger code and data size. 13636Note 13637that these values will vary depending on the efficiency of the compiler 13638and 13639the compiler options used during generation. 13640 13641 Previous Release: 13642 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 13643 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 13644 Current Release: 13645 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 13646 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 13647 136482) iASL Compiler/Disassembler: 13649 13650Switch/Case support: A warning is now issued if the type of the Switch 13651value 13652cannot be determined at compile time. For example, Switch(Arg0) will 13653generate the warning, and the type is assumed to be an integer. As per 13654the 13655ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 13656the 13657warning. 13658 13659Switch/Case support: Implemented support for buffer and string objects as 13660the switch value. This is an ACPI 3.0 feature, now that LEqual supports 13661buffers and strings. 13662 13663Switch/Case support: The emitted code for the LEqual() comparisons now 13664uses 13665the switch value as the first operand, not the second. The case value is 13666now 13667the second operand, and this allows the case value to be implicitly 13668converted to the type of the switch value, not the other way around. 13669 13670Switch/Case support: Temporary variables are now emitted immediately 13671within 13672the control method, not at the global level. This means that there are 13673now 1367436 temps available per-method, not 36 temps per-module as was the case 13675with 13676the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 13677 13678---------------------------------------- 1367914 January 2005. Summary of changes for version 20050114: 13680 13681Added 2005 copyright to all module headers. This affects every module in 13682the core subsystem, iASL compiler, and the utilities. 13683 136841) ACPI CA Core Subsystem: 13685 13686Fixed an issue with the String-to-Buffer conversion code where the string 13687null terminator was not included in the buffer after conversion, but 13688there 13689is existing ASL that assumes the string null terminator is included. This 13690is 13691the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 13692introduced in the previous version when the code was updated to correctly 13693set the converted buffer size as per the ACPI specification. The ACPI 13694spec 13695is ambiguous and will be updated to specify that the null terminator must 13696be 13697included in the converted buffer. This also affects the ToBuffer() ASL 13698operator. 13699 13700Fixed a problem with the Mid() ASL/AML operator where it did not work 13701correctly on Buffer objects. Newly created sub-buffers were not being 13702marked 13703as initialized. 13704 13705 13706Fixed a problem in AcpiTbFindTable where incorrect string compares were 13707performed on the OemId and OemTableId table header fields. These fields 13708are 13709not null terminated, so strncmp is now used instead of strcmp. 13710 13711Implemented a restriction on the Store() ASL/AML operator to align the 13712behavior with the ACPI specification. Previously, any object could be 13713used 13714as the source operand. Now, the only objects that may be used are 13715Integers, 13716Buffers, Strings, Packages, Object References, and DDB Handles. If 13717necessary, the original behavior can be restored by enabling the 13718EnableInterpreterSlack flag. 13719 13720Enhanced the optional "implicit return" support to allow an implicit 13721return 13722value from methods that are invoked externally via the AcpiEvaluateObject 13723interface. This enables implicit returns from the _STA and _INI methods, 13724for example. 13725 13726Changed the Revision() ASL/AML operator to return the current version of 13727the 13728AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 13729returned 13730the supported ACPI version (This is the function of the _REV method). 13731 13732Updated the _REV predefined method to return the currently supported 13733version 13734of ACPI, now 3. 13735 13736Implemented batch mode option for the AcpiExec utility (-b). 13737 13738Code and Data Size: Current and previous core subsystem library sizes are 13739shown below. These are the code and data sizes for the acpica.lib 13740produced 13741by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13742any ACPI driver or OSPM code. The debug version of the code includes the 13743debug output trace mechanism and has a much larger code and data size. 13744Note 13745that these values will vary depending on the efficiency of the compiler 13746and 13747the compiler options used during generation. 13748 13749 Previous Release: 13750 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13751 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 13752 Current Release: 13753 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 13754 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 13755 13756---------------------------------------- 1375710 December 2004. Summary of changes for version 20041210: 13758 13759ACPI 3.0 support is nearing completion in both the iASL compiler and the 13760ACPI CA core subsystem. 13761 137621) ACPI CA Core Subsystem: 13763 13764Fixed a problem in the ToDecimalString operator where the resulting 13765string 13766length was incorrectly calculated. The length is now calculated exactly, 13767eliminating incorrect AE_STRING_LIMIT exceptions. 13768 13769Fixed a problem in the ToHexString operator to allow a maximum 200 13770character 13771string to be produced. 13772 13773Fixed a problem in the internal string-to-buffer and buffer-to-buffer 13774copy 13775routine where the length of the resulting buffer was not truncated to the 13776new size (if the target buffer already existed). 13777 13778Code and Data Size: Current and previous core subsystem library sizes are 13779shown below. These are the code and data sizes for the acpica.lib 13780produced 13781by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13782any ACPI driver or OSPM code. The debug version of the code includes the 13783debug output trace mechanism and has a much larger code and data size. 13784Note 13785that these values will vary depending on the efficiency of the compiler 13786and 13787the compiler options used during generation. 13788 13789 Previous Release: 13790 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13791 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 13792 Current Release: 13793 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13794 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 13795 13796 137972) iASL Compiler/Disassembler: 13798 13799Implemented the new ACPI 3.0 resource template macros - DWordSpace, 13800ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 13801Includes support in the disassembler. 13802 13803Implemented support for the new (ACPI 3.0) parameter to the Register 13804macro, 13805AccessSize. 13806 13807Fixed a problem where the _HE resource name for the Interrupt macro was 13808referencing bit 0 instead of bit 1. 13809 13810Implemented check for maximum 255 interrupts in the Interrupt macro. 13811 13812Fixed a problem with the predefined resource descriptor names where 13813incorrect AML code was generated if the offset within the resource buffer 13814was 0 or 1. The optimizer shortened the AML code to a single byte opcode 13815but did not update the surrounding package lengths. 13816 13817Changes to the Dma macro: All channels within the channel list must be 13818in 13819the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 13820optional (default is BusMaster). 13821 13822Implemented check for maximum 7 data bytes for the VendorShort macro. 13823 13824The ReadWrite parameter is now optional for the Memory32 and similar 13825macros. 13826 13827---------------------------------------- 1382803 December 2004. Summary of changes for version 20041203: 13829 138301) ACPI CA Core Subsystem: 13831 13832The low-level field insertion/extraction code (exfldio) has been 13833completely 13834rewritten to eliminate unnecessary complexity, bugs, and boundary 13835conditions. 13836 13837Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 13838ToDecimalString 13839operators where the input operand could be inadvertently deleted if no 13840conversion was necessary (e.g., if the input to ToInteger was an Integer 13841object.) 13842 13843Fixed a problem with the ToDecimalString and ToHexString where an 13844incorrect 13845exception code was returned if the resulting string would be > 200 chars. 13846AE_STRING_LIMIT is now returned. 13847 13848Fixed a problem with the Concatenate operator where AE_OK was always 13849returned, even if the operation failed. 13850 13851Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 13852semaphores to be allocated. 13853 13854Code and Data Size: Current and previous core subsystem library sizes are 13855shown below. These are the code and data sizes for the acpica.lib 13856produced 13857by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13858any ACPI driver or OSPM code. The debug version of the code includes the 13859debug output trace mechanism and has a much larger code and data size. 13860Note 13861that these values will vary depending on the efficiency of the compiler 13862and 13863the compiler options used during generation. 13864 13865 Previous Release: 13866 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13867 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13868 Current Release: 13869 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 13870 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 13871 13872 138732) iASL Compiler/Disassembler: 13874 13875Fixed typechecking for the ObjectType and SizeOf operators. Problem was 13876recently introduced in 20041119. 13877 13878Fixed a problem with the ToUUID macro where the upper nybble of each 13879buffer 13880byte was inadvertently set to zero. 13881 13882---------------------------------------- 1388319 November 2004. Summary of changes for version 20041119: 13884 138851) ACPI CA Core Subsystem: 13886 13887Fixed a problem in the internal ConvertToInteger routine where new 13888integers 13889were not truncated to 32 bits for 32-bit ACPI tables. This routine 13890converts 13891buffers and strings to integers. 13892 13893Implemented support to store a value to an Index() on a String object. 13894This 13895is an ACPI 2.0 feature that had not yet been implemented. 13896 13897Implemented new behavior for storing objects to individual package 13898elements 13899(via the Index() operator). The previous behavior was to invoke the 13900implicit 13901conversion rules if an object was already present at the index. The new 13902behavior is to simply delete any existing object and directly store the 13903new 13904object. Although the ACPI specification seems unclear on this subject, 13905other 13906ACPI implementations behave in this manner. (This is the root of the 13907AE_BAD_HEX_CONSTANT issue.) 13908 13909Modified the RSDP memory scan mechanism to support the extended checksum 13910for 13911ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 13912RSDP signature is found with a valid checksum. 13913 13914Code and Data Size: Current and previous core subsystem library sizes are 13915shown below. These are the code and data sizes for the acpica.lib 13916produced 13917by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13918any ACPI driver or OSPM code. The debug version of the code includes the 13919debug output trace mechanism and has a much larger code and data size. 13920Note 13921that these values will vary depending on the efficiency of the compiler 13922and 13923the compiler options used during generation. 13924 13925 Previous Release: 13926 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13927 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13928 Current Release: 13929 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13930 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13931 13932 139332) iASL Compiler/Disassembler: 13934 13935Fixed a missing semicolon in the aslcompiler.y file. 13936 13937---------------------------------------- 1393805 November 2004. Summary of changes for version 20041105: 13939 139401) ACPI CA Core Subsystem: 13941 13942Implemented support for FADT revision 2. This was an interim table 13943(between 13944ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 13945 13946Implemented optional support to allow uninitialized LocalX and ArgX 13947variables in a control method. The variables are initialized to an 13948Integer 13949object with a value of zero. This support is enabled by setting the 13950AcpiGbl_EnableInterpreterSlack flag to TRUE. 13951 13952Implemented support for Integer objects for the SizeOf operator. Either 139534 13954or 8 is returned, depending on the current integer size (32-bit or 64- 13955bit, 13956depending on the parent table revision). 13957 13958Fixed a problem in the implementation of the SizeOf and ObjectType 13959operators 13960where the operand was resolved to a value too early, causing incorrect 13961return values for some objects. 13962 13963Fixed some possible memory leaks during exceptional conditions. 13964 13965Code and Data Size: Current and previous core subsystem library sizes are 13966shown below. These are the code and data sizes for the acpica.lib 13967produced 13968by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13969any ACPI driver or OSPM code. The debug version of the code includes the 13970debug output trace mechanism and has a much larger code and data size. 13971Note 13972that these values will vary depending on the efficiency of the compiler 13973and 13974the compiler options used during generation. 13975 13976 Previous Release: 13977 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 13978 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 13979 Current Release: 13980 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 13981 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 13982 13983 139842) iASL Compiler/Disassembler: 13985 13986Implemented support for all ACPI 3.0 reserved names and methods. 13987 13988Implemented all ACPI 3.0 grammar elements in the front-end, including 13989support for semicolons. 13990 13991Implemented the ACPI 3.0 Function() and ToUUID() macros 13992 13993Fixed a problem in the disassembler where a Scope() operator would not be 13994emitted properly if the target of the scope was in another table. 13995 13996---------------------------------------- 1399715 October 2004. Summary of changes for version 20041015: 13998 13999Note: ACPI CA is currently undergoing an in-depth and complete formal 14000evaluation to test/verify the following areas. Other suggestions are 14001welcome. This will result in an increase in the frequency of releases and 14002the number of bug fixes in the next few months. 14003 - Functional tests for all ASL/AML operators 14004 - All implicit/explicit type conversions 14005 - Bit fields and operation regions 14006 - 64-bit math support and 32-bit-only "truncated" math support 14007 - Exceptional conditions, both compiler and interpreter 14008 - Dynamic object deletion and memory leaks 14009 - ACPI 3.0 support when implemented 14010 - External interfaces to the ACPI subsystem 14011 14012 140131) ACPI CA Core Subsystem: 14014 14015Fixed two alignment issues on 64-bit platforms - within debug statements 14016in 14017AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 14018Address 14019field within the non-aligned ACPI generic address structure. 14020 14021Fixed a problem in the Increment and Decrement operators where incorrect 14022operand resolution could result in the inadvertent modification of the 14023original integer when the integer is passed into another method as an 14024argument and the arg is then incremented/decremented. 14025 14026Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 14027bit 14028BCD number were truncated during conversion. 14029 14030Fixed a problem in the ToDecimal operator where the length of the 14031resulting 14032string could be set incorrectly too long if the input operand was a 14033Buffer 14034object. 14035 14036Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 14037(0) 14038within a buffer would prematurely terminate a compare between buffer 14039objects. 14040 14041Added a check for string overflow (>200 characters as per the ACPI 14042specification) during the Concatenate operator with two string operands. 14043 14044Code and Data Size: Current and previous core subsystem library sizes are 14045shown below. These are the code and data sizes for the acpica.lib 14046produced 14047by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14048any ACPI driver or OSPM code. The debug version of the code includes the 14049debug output trace mechanism and has a much larger code and data size. 14050Note 14051that these values will vary depending on the efficiency of the compiler 14052and 14053the compiler options used during generation. 14054 14055 Previous Release: 14056 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 14057 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 14058 Current Release: 14059 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 14060 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 14061 14062 14063 140642) iASL Compiler/Disassembler: 14065 14066Allow the use of the ObjectType operator on uninitialized Locals and Args 14067(returns 0 as per the ACPI specification). 14068 14069Fixed a problem where the compiler would fault if there was a syntax 14070error 14071in the FieldName of all of the various CreateXXXField operators. 14072 14073Disallow the use of lower case letters within the EISAID macro, as per 14074the 14075ACPI specification. All EISAID strings must be of the form "UUUNNNN" 14076Where 14077U is an uppercase letter and N is a hex digit. 14078 14079 14080---------------------------------------- 1408106 October 2004. Summary of changes for version 20041006: 14082 140831) ACPI CA Core Subsystem: 14084 14085Implemented support for the ACPI 3.0 Timer operator. This ASL function 14086implements a 64-bit timer with 100 nanosecond granularity. 14087 14088Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 14089implement the ACPI 3.0 Timer operator. This allows the host OS to 14090implement 14091the timer with the best clock available. Also, it keeps the core 14092subsystem 14093out of the clock handling business, since the host OS (usually) performs 14094this function. 14095 14096Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 14097functions use a 64-bit address which is part of the packed ACPI Generic 14098Address Structure. Since the structure is non-aligned, the alignment 14099macros 14100are now used to extract the address to a local variable before use. 14101 14102Fixed a problem where the ToInteger operator assumed all input strings 14103were 14104hexadecimal. The operator now handles both decimal strings and hex 14105strings 14106(prefixed with "0x"). 14107 14108Fixed a problem where the string length in the string object created as a 14109result of the internal ConvertToString procedure could be incorrect. This 14110potentially affected all implicit conversions and also the 14111ToDecimalString 14112and ToHexString operators. 14113 14114Fixed two problems in the ToString operator. If the length parameter was 14115zero, an incorrect string object was created and the value of the input 14116length parameter was inadvertently changed from zero to Ones. 14117 14118Fixed a problem where the optional ResourceSource string in the 14119ExtendedIRQ 14120resource macro was ignored. 14121 14122Simplified the interfaces to the internal division functions, reducing 14123code 14124size and complexity. 14125 14126Code and Data Size: Current and previous core subsystem library sizes are 14127shown below. These are the code and data sizes for the acpica.lib 14128produced 14129by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14130any ACPI driver or OSPM code. The debug version of the code includes the 14131debug output trace mechanism and has a much larger code and data size. 14132Note 14133that these values will vary depending on the efficiency of the compiler 14134and 14135the compiler options used during generation. 14136 14137 Previous Release: 14138 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 14139 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 14140 Current Release: 14141 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 14142 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 14143 14144 141452) iASL Compiler/Disassembler: 14146 14147Implemented support for the ACPI 3.0 Timer operator. 14148 14149Fixed a problem where the Default() operator was inadvertently ignored in 14150a 14151Switch/Case block. This was a problem in the translation of the Switch 14152statement to If...Else pairs. 14153 14154Added support to allow a standalone Return operator, with no parentheses 14155(or 14156operands). 14157 14158Fixed a problem with code generation for the ElseIf operator where the 14159translated Else...If parse tree was improperly constructed leading to the 14160loss of some code. 14161 14162---------------------------------------- 1416322 September 2004. Summary of changes for version 20040922: 14164 141651) ACPI CA Core Subsystem: 14166 14167Fixed a problem with the implementation of the LNot() operator where 14168"Ones" 14169was not returned for the TRUE case. Changed the code to return Ones 14170instead 14171of (!Arg) which was usually 1. This change affects iASL constant folding 14172for 14173this operator also. 14174 14175Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was 14176not 14177initialized properly -- Now zero the entire buffer in this case where the 14178buffer already exists. 14179 14180Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 14181Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 14182related code considerably. This will require changes/updates to all OS 14183interface layers (OSLs.) 14184 14185Implemented a new external interface, AcpiInstallExceptionHandler, to 14186allow 14187a system exception handler to be installed. This handler is invoked upon 14188any 14189run-time exception that occurs during control method execution. 14190 14191Added support for the DSDT in AcpiTbFindTable. This allows the 14192DataTableRegion() operator to access the local copy of the DSDT. 14193 14194Code and Data Size: Current and previous core subsystem library sizes are 14195shown below. These are the code and data sizes for the acpica.lib 14196produced 14197by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14198any ACPI driver or OSPM code. The debug version of the code includes the 14199debug output trace mechanism and has a much larger code and data size. 14200Note 14201that these values will vary depending on the efficiency of the compiler 14202and 14203the compiler options used during generation. 14204 14205 Previous Release: 14206 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 14207 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 14208 Current Release: 14209 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 14210 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 14211 14212 142132) iASL Compiler/Disassembler: 14214 14215Fixed a problem with constant folding and the LNot operator. LNot was 14216returning 1 in the TRUE case, not Ones as per the ACPI specification. 14217This 14218could result in the generation of an incorrect folded/reduced constant. 14219 14220End-Of-File is now allowed within a "//"-style comment. A parse error no 14221longer occurs if such a comment is at the very end of the input ASL 14222source 14223file. 14224 14225Implemented the "-r" option to override the Revision in the table header. 14226The initial use of this option will be to simplify the evaluation of the 14227AML 14228interpreter by allowing a single ASL source module to be compiled for 14229either 1423032-bit or 64-bit integers. 14231 14232 14233---------------------------------------- 1423427 August 2004. Summary of changes for version 20040827: 14235 142361) ACPI CA Core Subsystem: 14237 14238- Implemented support for implicit object conversion in the non-numeric 14239logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, 14240and 14241LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 14242the second operand is implicitly converted on the fly to match the type 14243of 14244the first operand. For example: 14245 14246 LEqual (Source1, Source2) 14247 14248Source1 and Source2 must each evaluate to an integer, a string, or a 14249buffer. 14250The data type of Source1 dictates the required type of Source2. Source2 14251is 14252implicitly converted if necessary to match the type of Source1. 14253 14254- Updated and corrected the behavior of the string conversion support. 14255The 14256rules concerning conversion of buffers to strings (according to the ACPI 14257specification) are as follows: 14258 14259ToDecimalString - explicit byte-wise conversion of buffer to string of 14260decimal values (0-255) separated by commas. ToHexString - explicit byte- 14261wise 14262conversion of buffer to string of hex values (0-FF) separated by commas. 14263ToString - explicit byte-wise conversion of buffer to string. Byte-by- 14264byte 14265copy with no transform except NULL terminated. Any other implicit buffer- 14266to- 14267string conversion - byte-wise conversion of buffer to string of hex 14268values 14269(0-FF) separated by spaces. 14270 14271- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 14272 14273- Fixed a problem in AcpiNsGetPathnameLength where the returned length 14274was 14275one byte too short in the case of a node in the root scope. This could 14276cause a fault during debug output. 14277 14278- Code and Data Size: Current and previous core subsystem library sizes 14279are 14280shown below. These are the code and data sizes for the acpica.lib 14281produced 14282by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14283any ACPI driver or OSPM code. The debug version of the code includes the 14284debug output trace mechanism and has a much larger code and data size. 14285Note 14286that these values will vary depending on the efficiency of the compiler 14287and 14288the compiler options used during generation. 14289 14290 Previous Release: 14291 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 14292 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 14293 Current Release: 14294 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 14295 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 14296 14297 142982) iASL Compiler/Disassembler: 14299 14300- Fixed a Linux generation error. 14301 14302 14303---------------------------------------- 1430416 August 2004. Summary of changes for version 20040816: 14305 143061) ACPI CA Core Subsystem: 14307 14308Designed and implemented support within the AML interpreter for the so- 14309called "implicit return". This support returns the result of the last 14310ASL 14311operation within a control method, in the absence of an explicit Return() 14312operator. A few machines depend on this behavior, even though it is not 14313explicitly supported by the ASL language. It is optional support that 14314can 14315be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 14316 14317Removed support for the PCI_Config address space from the internal low 14318level 14319hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 14320support was not used internally, and would not work correctly anyway 14321because 14322the PCI bus number and segment number were not supported. There are 14323separate interfaces for PCI configuration space access because of the 14324unique 14325interface. 14326 14327Code and Data Size: Current and previous core subsystem library sizes are 14328shown below. These are the code and data sizes for the acpica.lib 14329produced 14330by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14331any ACPI driver or OSPM code. The debug version of the code includes the 14332debug output trace mechanism and has a much larger code and data size. 14333Note 14334that these values will vary depending on the efficiency of the compiler 14335and 14336the compiler options used during generation. 14337 14338 Previous Release: 14339 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 14340 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 14341 Current Release: 14342 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 14343 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 14344 14345 143462) iASL Compiler/Disassembler: 14347 14348Fixed a problem where constants in ASL expressions at the root level (not 14349within a control method) could be inadvertently truncated during code 14350generation. This problem was introduced in the 20040715 release. 14351 14352 14353---------------------------------------- 1435415 July 2004. Summary of changes for version 20040715: 14355 143561) ACPI CA Core Subsystem: 14357 14358Restructured the internal HW GPE interfaces to pass/track the current 14359state 14360of interrupts (enabled/disabled) in order to avoid possible deadlock and 14361increase flexibility of the interfaces. 14362 14363Implemented a "lexicographical compare" for String and Buffer objects 14364within 14365the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual - 14366- 14367as per further clarification to the ACPI specification. Behavior is 14368similar 14369to C library "strcmp". 14370 14371Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 14372external function. In the 32-bit non-debug case, the stack use has been 14373reduced from 168 bytes to 32 bytes. 14374 14375Deployed a new run-time configuration flag, 14376AcpiGbl_EnableInterpreterSlack, 14377whose purpose is to allow the AML interpreter to forgive certain bad AML 14378constructs. Default setting is FALSE. 14379 14380Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 14381IO 14382support code. If enabled, it allows field access to go beyond the end of 14383a 14384region definition if the field is within the region length rounded up to 14385the 14386next access width boundary (a common coding error.) 14387 14388Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 14389ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 14390these 14391symbols are lowercase by the latest version of the AcpiSrc tool. 14392 14393The prototypes for the PCI interfaces in acpiosxf.h have been updated to 14394rename "Register" to simply "Reg" to prevent certain compilers from 14395complaining. 14396 14397Code and Data Size: Current and previous core subsystem library sizes are 14398shown below. These are the code and data sizes for the acpica.lib 14399produced 14400by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14401any ACPI driver or OSPM code. The debug version of the code includes the 14402debug output trace mechanism and has a much larger code and data size. 14403Note 14404that these values will vary depending on the efficiency of the compiler 14405and 14406the compiler options used during generation. 14407 14408 Previous Release: 14409 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 14410 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 14411 Current Release: 14412 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 14413 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 14414 14415 144162) iASL Compiler/Disassembler: 14417 14418Implemented full support for Package objects within the Case() operator. 14419Note: The Break() operator is currently not supported within Case blocks 14420(TermLists) as there is some question about backward compatibility with 14421ACPI 144221.0 interpreters. 14423 14424 14425Fixed a problem where complex terms were not supported properly within 14426the 14427Switch() operator. 14428 14429Eliminated extraneous warning for compiler-emitted reserved names of the 14430form "_T_x". (Used in Switch/Case operators.) 14431 14432Eliminated optimization messages for "_T_x" objects and small constants 14433within the DefinitionBlock operator. 14434 14435 14436---------------------------------------- 1443715 June 2004. Summary of changes for version 20040615: 14438 144391) ACPI CA Core Subsystem: 14440 14441Implemented support for Buffer and String objects (as per ACPI 2.0) for 14442the 14443following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 14444LLessEqual. 14445 14446All directory names in the entire source package are lower case, as they 14447were in earlier releases. 14448 14449Implemented "Disassemble" command in the AML debugger that will 14450disassemble 14451a single control method. 14452 14453Code and Data Size: Current and previous core subsystem library sizes are 14454shown below. These are the code and data sizes for the acpica.lib 14455produced 14456by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14457any ACPI driver or OSPM code. The debug version of the code includes the 14458debug output trace mechanism and has a much larger code and data size. 14459Note 14460that these values will vary depending on the efficiency of the compiler 14461and 14462the compiler options used during generation. 14463 14464 Previous Release: 14465 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 14466 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 14467 14468 Current Release: 14469 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 14470 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 14471 14472 144732) iASL Compiler/Disassembler: 14474 14475Implemented support for Buffer and String objects (as per ACPI 2.0) for 14476the 14477following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 14478LLessEqual. 14479 14480All directory names in the entire source package are lower case, as they 14481were in earlier releases. 14482 14483Fixed a fault when using the -g or -d<nofilename> options if the FADT was 14484not found. 14485 14486Fixed an issue with the Windows version of the compiler where later 14487versions 14488of Windows place the FADT in the registry under the name "FADT" and not 14489"FACP" as earlier versions did. This applies when using the -g or - 14490d<nofilename> options. The compiler now looks for both strings as 14491necessary. 14492 14493Fixed a problem with compiler namepath optimization where a namepath 14494within 14495the Scope() operator could not be optimized if the namepath was a subpath 14496of 14497the current scope path. 14498 14499---------------------------------------- 1450027 May 2004. Summary of changes for version 20040527: 14501 145021) ACPI CA Core Subsystem: 14503 14504Completed a new design and implementation for EBDA (Extended BIOS Data 14505Area) 14506support in the RSDP scan code. The original code improperly scanned for 14507the 14508EBDA by simply scanning from memory location 0 to 0x400. The correct 14509method 14510is to first obtain the EBDA pointer from within the BIOS data area, then 14511scan 1K of memory starting at the EBDA pointer. There appear to be few 14512if 14513any machines that place the RSDP in the EBDA, however. 14514 14515Integrated a fix for a possible fault during evaluation of BufferField 14516arguments. Obsolete code that was causing the problem was removed. 14517 14518Found and fixed a problem in the Field Support Code where data could be 14519corrupted on a bit field read that starts on an aligned boundary but does 14520not end on an aligned boundary. Merged the read/write "datum length" 14521calculation code into a common procedure. 14522 14523Rolled in a couple of changes to the FreeBSD-specific header. 14524 14525 14526Code and Data Size: Current and previous core subsystem library sizes are 14527shown below. These are the code and data sizes for the acpica.lib 14528produced 14529by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14530any ACPI driver or OSPM code. The debug version of the code includes the 14531debug output trace mechanism and has a much larger code and data size. 14532Note 14533that these values will vary depending on the efficiency of the compiler 14534and 14535the compiler options used during generation. 14536 14537 Previous Release: 14538 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 14539 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 14540 Current Release: 14541 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 14542 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 14543 14544 145452) iASL Compiler/Disassembler: 14546 14547Fixed a generation warning produced by some overly-verbose compilers for 14548a 1454964-bit constant. 14550 14551---------------------------------------- 1455214 May 2004. Summary of changes for version 20040514: 14553 145541) ACPI CA Core Subsystem: 14555 14556Fixed a problem where hardware GPE enable bits sometimes not set properly 14557during and after GPE method execution. Result of 04/27 changes. 14558 14559Removed extra "clear all GPEs" when sleeping/waking. 14560 14561Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 14562AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 14563to 14564the new AcpiEv* calls as appropriate. 14565 14566ACPI_OS_NAME was removed from the OS-specific headers. The default name 14567is 14568now "Microsoft Windows NT" for maximum compatibility. However this can 14569be 14570changed by modifying the acconfig.h file. 14571 14572Allow a single invocation of AcpiInstallNotifyHandler for a handler that 14573traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 14574 14575Run _INI methods on ThermalZone objects. This is against the ACPI 14576specification, but there is apparently ASL code in the field that has 14577these 14578_INI methods, and apparently "other" AML interpreters execute them. 14579 14580Performed a full 16/32/64 bit lint that resulted in some small changes. 14581 14582Added a sleep simulation command to the AML debugger to test sleep code. 14583 14584Code and Data Size: Current and previous core subsystem library sizes are 14585shown below. These are the code and data sizes for the acpica.lib 14586produced 14587by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14588any ACPI driver or OSPM code. The debug version of the code includes the 14589debug output trace mechanism and has a much larger code and data size. 14590Note 14591that these values will vary depending on the efficiency of the compiler 14592and 14593the compiler options used during generation. 14594 14595 Previous Release: 14596 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 14597 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 14598 Current Release: 14599 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 14600 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 14601 14602---------------------------------------- 1460327 April 2004. Summary of changes for version 20040427: 14604 146051) ACPI CA Core Subsystem: 14606 14607Completed a major overhaul of the GPE handling within ACPI CA. There are 14608now three types of GPEs: wake-only, runtime-only, and combination 14609wake/run. 14610The only GPEs allowed to be combination wake/run are for button-style 14611devices such as a control-method power button, control-method sleep 14612button, 14613or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 14614not 14615referenced by any _PRW methods are marked for "runtime" and hardware 14616enabled. Any GPE that is referenced by a _PRW method is marked for 14617"wake" 14618(and disabled at runtime). However, at sleep time, only those GPEs that 14619have been specifically enabled for wake via the AcpiEnableGpe interface 14620will 14621actually be hardware enabled. 14622 14623A new external interface has been added, AcpiSetGpeType(), that is meant 14624to 14625be used by device drivers to force a GPE to a particular type. It will 14626be 14627especially useful for the drivers for the button devices mentioned above. 14628 14629Completed restructuring of the ACPI CA initialization sequence so that 14630default operation region handlers are installed before GPEs are 14631initialized 14632and the _PRW methods are executed. This will prevent errors when the 14633_PRW 14634methods attempt to access system memory or I/O space. 14635 14636GPE enable/disable no longer reads the GPE enable register. We now keep 14637the 14638enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 14639thus no longer depend on the hardware to maintain these bits. 14640 14641Always clear the wake status and fixed/GPE status bits before sleep, even 14642for state S5. 14643 14644Improved the AML debugger output for displaying the GPE blocks and their 14645current status. 14646 14647Added new strings for the _OSI method, of the form "Windows 2001 SPx" 14648where 14649x = 0,1,2,3,4. 14650 14651Fixed a problem where the physical address was incorrectly calculated 14652when 14653the Load() operator was used to directly load from an Operation Region 14654(vs. 14655loading from a Field object.) Also added check for minimum table length 14656for 14657this case. 14658 14659Fix for multiple mutex acquisition. Restore original thread SyncLevel on 14660mutex release. 14661 14662Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 14663consistency with the other fields returned. 14664 14665Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 14666structure for each GPE in the system, so the size of this structure is 14667important. 14668 14669CPU stack requirement reduction: Cleaned up the method execution and 14670object 14671evaluation paths so that now a parameter structure is passed, instead of 14672copying the various method parameters over and over again. 14673 14674In evregion.c: Correctly exit and reenter the interpreter region if and 14675only if dispatching an operation region request to a user-installed 14676handler. 14677Do not exit/reenter when dispatching to a default handler (e.g., default 14678system memory or I/O handlers) 14679 14680 14681Notes for updating drivers for the new GPE support. The following 14682changes 14683must be made to ACPI-related device drivers that are attached to one or 14684more 14685GPEs: (This information will be added to the ACPI CA Programmer 14686Reference.) 14687 146881) AcpiInstallGpeHandler no longer automatically enables the GPE, you 14689must 14690explicitly call AcpiEnableGpe. 146912) There is a new interface called AcpiSetGpeType. This should be called 14692before enabling the GPE. Also, this interface will automatically disable 14693the GPE if it is currently enabled. 146943) AcpiEnableGpe no longer supports a GPE type flag. 14695 14696Specific drivers that must be changed: 146971) EC driver: 14698 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 14699AeGpeHandler, NULL); 14700 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 14701 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 14702 147032) Button Drivers (Power, Lid, Sleep): 14704Run _PRW method under parent device 14705If _PRW exists: /* This is a control-method button */ 14706 Extract GPE number and possibly GpeDevice 14707 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 14708 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 14709 14710For all other devices that have _PRWs, we automatically set the GPE type 14711to 14712ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. 14713This 14714must be done on a selective basis, usually requiring some kind of user 14715app 14716to allow the user to pick the wake devices. 14717 14718 14719Code and Data Size: Current and previous core subsystem library sizes are 14720shown below. These are the code and data sizes for the acpica.lib 14721produced 14722by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14723any ACPI driver or OSPM code. The debug version of the code includes the 14724debug output trace mechanism and has a much larger code and data size. 14725Note 14726that these values will vary depending on the efficiency of the compiler 14727and 14728the compiler options used during generation. 14729 14730 Previous Release: 14731 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 14732 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 14733 Current Release: 14734 14735 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 14736 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 14737 14738 14739 14740---------------------------------------- 1474102 April 2004. Summary of changes for version 20040402: 14742 147431) ACPI CA Core Subsystem: 14744 14745Fixed an interpreter problem where an indirect store through an ArgX 14746parameter was incorrectly applying the "implicit conversion rules" during 14747the store. From the ACPI specification: "If the target is a method local 14748or 14749argument (LocalX or ArgX), no conversion is performed and the result is 14750stored directly to the target". The new behavior is to disable implicit 14751conversion during ALL stores to an ArgX. 14752 14753Changed the behavior of the _PRW method scan to ignore any and all errors 14754returned by a given _PRW. This prevents the scan from aborting from the 14755failure of any single _PRW. 14756 14757Moved the runtime configuration parameters from the global init procedure 14758to 14759static variables in acglobal.h. This will allow the host to override the 14760default values easily. 14761 14762Code and Data Size: Current and previous core subsystem library sizes are 14763shown below. These are the code and data sizes for the acpica.lib 14764produced 14765by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14766any ACPI driver or OSPM code. The debug version of the code includes the 14767debug output trace mechanism and has a much larger code and data size. 14768Note 14769that these values will vary depending on the efficiency of the compiler 14770and 14771the compiler options used during generation. 14772 14773 Previous Release: 14774 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 14775 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 14776 Current Release: 14777 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 14778 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 14779 14780 147812) iASL Compiler/Disassembler: 14782 14783iASL now fully disassembles SSDTs. However, External() statements are 14784not 14785generated automatically for unresolved symbols at this time. This is a 14786planned feature for future implementation. 14787 14788Fixed a scoping problem in the disassembler that occurs when the type of 14789the 14790target of a Scope() operator is overridden. This problem caused an 14791incorrectly nested internal namespace to be constructed. 14792 14793Any warnings or errors that are emitted during disassembly are now 14794commented 14795out automatically so that the resulting file can be recompiled without 14796any 14797hand editing. 14798 14799---------------------------------------- 1480026 March 2004. Summary of changes for version 20040326: 14801 148021) ACPI CA Core Subsystem: 14803 14804Implemented support for "wake" GPEs via interaction between GPEs and the 14805_PRW methods. Every GPE that is pointed to by one or more _PRWs is 14806identified as a WAKE GPE and by default will no longer be enabled at 14807runtime. Previously, we were blindly enabling all GPEs with a 14808corresponding 14809_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 14810We 14811believe this has been the cause of thousands of "spurious" GPEs on some 14812systems. 14813 14814This new GPE behavior is can be reverted to the original behavior (enable 14815ALL GPEs at runtime) via a runtime flag. 14816 14817Fixed a problem where aliased control methods could not access objects 14818properly. The proper scope within the namespace was not initialized 14819(transferred to the target of the aliased method) before executing the 14820target method. 14821 14822Fixed a potential race condition on internal object deletion on the 14823return 14824object in AcpiEvaluateObject. 14825 14826Integrated a fix for resource descriptors where both _MEM and _MTP were 14827being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 14828wide, 0x0F instead of 0x03.) 14829 14830Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, 14831preventing 14832a 14833fault in some cases. 14834 14835Updated Notify() values for debug statements in evmisc.c 14836 14837Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 14838 14839Code and Data Size: Current and previous core subsystem library sizes are 14840shown below. These are the code and data sizes for the acpica.lib 14841produced 14842by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14843any ACPI driver or OSPM code. The debug version of the code includes the 14844debug output trace mechanism and has a much larger code and data size. 14845Note 14846that these values will vary depending on the efficiency of the compiler 14847and 14848the compiler options used during generation. 14849 14850 Previous Release: 14851 14852 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 14853 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 14854 Current Release: 14855 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 14856 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 14857 14858---------------------------------------- 1485911 March 2004. Summary of changes for version 20040311: 14860 148611) ACPI CA Core Subsystem: 14862 14863Fixed a problem where errors occurring during the parse phase of control 14864method execution did not abort cleanly. For example, objects created and 14865installed in the namespace were not deleted. This caused all subsequent 14866invocations of the method to return the AE_ALREADY_EXISTS exception. 14867 14868Implemented a mechanism to force a control method to "Serialized" 14869execution 14870if the method attempts to create namespace objects. (The root of the 14871AE_ALREADY_EXISTS problem.) 14872 14873Implemented support for the predefined _OSI "internal" control method. 14874Initial supported strings are "Linux", "Windows 2000", "Windows 2001", 14875and 14876"Windows 2001.1", and can be easily upgraded for new strings as 14877necessary. 14878This feature will allow "other" operating systems to execute the fully 14879tested, "Windows" code path through the ASL code 14880 14881Global Lock Support: Now allows multiple acquires and releases with any 14882internal thread. Removed concept of "owning thread" for this special 14883mutex. 14884 14885Fixed two functions that were inappropriately declaring large objects on 14886the 14887CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 14888during 14889method execution considerably. 14890 14891Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 14892S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 14893 14894Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 14895defined on the machine. 14896 14897Implemented two runtime options: One to force all control method 14898execution 14899to "Serialized" to mimic Windows behavior, another to disable _OSI 14900support 14901if it causes problems on a given machine. 14902 14903Code and Data Size: Current and previous core subsystem library sizes are 14904shown below. These are the code and data sizes for the acpica.lib 14905produced 14906by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14907any ACPI driver or OSPM code. The debug version of the code includes the 14908debug output trace mechanism and has a much larger code and data size. 14909Note 14910that these values will vary depending on the efficiency of the compiler 14911and 14912the compiler options used during generation. 14913 14914 Previous Release: 14915 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 14916 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 14917 Current Release: 14918 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 14919 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 14920 149212) iASL Compiler/Disassembler: 14922 14923Fixed an array size problem for FreeBSD that would cause the compiler to 14924fault. 14925 14926---------------------------------------- 1492720 February 2004. Summary of changes for version 20040220: 14928 14929 149301) ACPI CA Core Subsystem: 14931 14932Implemented execution of _SxD methods for Device objects in the 14933GetObjectInfo interface. 14934 14935Fixed calls to _SST method to pass the correct arguments. 14936 14937Added a call to _SST on wake to restore to "working" state. 14938 14939Check for End-Of-Buffer failure case in the WalkResources interface. 14940 14941Integrated fix for 64-bit alignment issue in acglobal.h by moving two 14942structures to the beginning of the file. 14943 14944After wake, clear GPE status register(s) before enabling GPEs. 14945 14946After wake, clear/enable power button. (Perhaps we should clear/enable 14947all 14948fixed events upon wake.) 14949 14950Fixed a couple of possible memory leaks in the Namespace manager. 14951 14952Integrated latest acnetbsd.h file. 14953 14954---------------------------------------- 1495511 February 2004. Summary of changes for version 20040211: 14956 14957 149581) ACPI CA Core Subsystem: 14959 14960Completed investigation and implementation of the call-by-reference 14961mechanism for control method arguments. 14962 14963Fixed a problem where a store of an object into an indexed package could 14964fail if the store occurs within a different method than the method that 14965created the package. 14966 14967Fixed a problem where the ToDecimal operator could return incorrect 14968results. 14969 14970Fixed a problem where the CopyObject operator could fail on some of the 14971more 14972obscure objects (e.g., Reference objects.) 14973 14974Improved the output of the Debug object to display buffer, package, and 14975index objects. 14976 14977Fixed a problem where constructs of the form "RefOf (ArgX)" did not 14978return 14979the expected result. 14980 14981Added permanent ACPI_REPORT_ERROR macros for all instances of the 14982ACPI_AML_INTERNAL exception. 14983 14984Integrated latest version of acfreebsd.h 14985 14986---------------------------------------- 1498716 January 2004. Summary of changes for version 20040116: 14988 14989The purpose of this release is primarily to update the copyright years in 14990each module, thus causing a huge number of diffs. There are a few small 14991functional changes, however. 14992 149931) ACPI CA Core Subsystem: 14994 14995Improved error messages when there is a problem finding one or more of 14996the 14997required base ACPI tables 14998 14999Reintroduced the definition of APIC_HEADER in actbl.h 15000 15001Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 15002 15003Removed extraneous reference to NewObj in dsmthdat.c 15004 150052) iASL compiler 15006 15007Fixed a problem introduced in December that disabled the correct 15008disassembly 15009of Resource Templates 15010 15011 15012---------------------------------------- 1501303 December 2003. Summary of changes for version 20031203: 15014 150151) ACPI CA Core Subsystem: 15016 15017Changed the initialization of Operation Regions during subsystem 15018init to perform two entire walks of the ACPI namespace; The first 15019to initialize the regions themselves, the second to execute the 15020_REG methods. This fixed some interdependencies across _REG 15021methods found on some machines. 15022 15023Fixed a problem where a Store(Local0, Local1) could simply update 15024the object reference count, and not create a new copy of the 15025object if the Local1 is uninitialized. 15026 15027Implemented support for the _SST reserved method during sleep 15028transitions. 15029 15030Implemented support to clear the SLP_TYP and SLP_EN bits when 15031waking up, this is apparently required by some machines. 15032 15033When sleeping, clear the wake status only if SleepState is not S5. 15034 15035Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 15036pointer arithmetic advanced a string pointer too far. 15037 15038Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 15039could be returned if the requested table has not been loaded. 15040 15041Within the support for IRQ resources, restructured the handling of 15042the active and edge/level bits. 15043 15044Fixed a few problems in AcpiPsxExecute() where memory could be 15045leaked under certain error conditions. 15046 15047Improved error messages for the cases where the ACPI mode could 15048not be entered. 15049 15050Code and Data Size: Current and previous core subsystem library 15051sizes are shown below. These are the code and data sizes for the 15052acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15053these values do not include any ACPI driver or OSPM code. The 15054debug version of the code includes the debug output trace 15055mechanism and has a much larger code and data size. Note that 15056these values will vary depending on the efficiency of the compiler 15057and the compiler options used during generation. 15058 15059 Previous Release (20031029): 15060 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 15061 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 15062 Current Release: 15063 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 15064 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 15065 150662) iASL Compiler/Disassembler: 15067 15068Implemented a fix for the iASL disassembler where a bad index was 15069generated. This was most noticeable on 64-bit platforms 15070 15071 15072---------------------------------------- 1507329 October 2003. Summary of changes for version 20031029: 15074 150751) ACPI CA Core Subsystem: 15076 15077 15078Fixed a problem where a level-triggered GPE with an associated 15079_Lxx control method was incorrectly cleared twice. 15080 15081Fixed a problem with the Field support code where an access can 15082occur beyond the end-of-region if the field is non-aligned but 15083extends to the very end of the parent region (resulted in an 15084AE_AML_REGION_LIMIT exception.) 15085 15086Fixed a problem with ACPI Fixed Events where an RT Clock handler 15087would not get invoked on an RTC event. The RTC event bitmasks for 15088the PM1 registers were not being initialized properly. 15089 15090Implemented support for executing _STA and _INI methods for 15091Processor objects. Although this is currently not part of the 15092ACPI specification, there is existing ASL code that depends on the 15093init-time execution of these methods. 15094 15095Implemented and deployed a GetDescriptorName function to decode 15096the various types of internal descriptors. Guards against null 15097descriptors during debug output also. 15098 15099Implemented and deployed a GetNodeName function to extract the 4- 15100character namespace node name. This function simplifies the debug 15101and error output, as well as guarding against null pointers during 15102output. 15103 15104Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 15105simplify the debug and error output of 64-bit integers. This 15106macro replaces the HIDWORD and LODWORD macros for dumping these 15107integers. 15108 15109Updated the implementation of the Stall() operator to only call 15110AcpiOsStall(), and also return an error if the operand is larger 15111than 255. This preserves the required behavior of not 15112relinquishing the processor, as would happen if AcpiOsSleep() was 15113called for "long stalls". 15114 15115Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 15116initialized are now treated as NOOPs. 15117 15118Cleaned up a handful of warnings during 64-bit generation. 15119 15120Fixed a reported error where and incorrect GPE number was passed 15121to the GPE dispatch handler. This value is only used for error 15122output, however. Used this opportunity to clean up and streamline 15123the GPE dispatch code. 15124 15125Code and Data Size: Current and previous core subsystem library 15126sizes are shown below. These are the code and data sizes for the 15127acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15128these values do not include any ACPI driver or OSPM code. The 15129 15130debug version of the code includes the debug output trace 15131mechanism and has a much larger code and data size. Note that 15132these values will vary depending on the efficiency of the compiler 15133and the compiler options used during generation. 15134 15135 Previous Release (20031002): 15136 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 15137 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 15138 Current Release: 15139 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 15140 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 15141 15142 151432) iASL Compiler/Disassembler: 15144 15145Updated the iASL compiler to return an error if the operand to the 15146Stall() operator is larger than 255. 15147 15148 15149---------------------------------------- 1515002 October 2003. Summary of changes for version 20031002: 15151 15152 151531) ACPI CA Core Subsystem: 15154 15155Fixed a problem with Index Fields where the index was not 15156incremented for fields that require multiple writes to the 15157index/data registers (Fields that are wider than the data 15158register.) 15159 15160Fixed a problem with all Field objects where a write could go 15161beyond the end-of-field if the field was larger than the access 15162granularity and therefore required multiple writes to complete the 15163request. An extra write beyond the end of the field could happen 15164inadvertently. 15165 15166Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 15167would incorrectly be returned if the width of the Data Register 15168was larger than the specified field access width. 15169 15170Completed fixes for LoadTable() and Unload() and verified their 15171operation. Implemented full support for the "DdbHandle" object 15172throughout the ACPI CA subsystem. 15173 15174Implemented full support for the MADT and ECDT tables in the ACPI 15175CA header files. Even though these tables are not directly 15176consumed by ACPI CA, the header definitions are useful for ACPI 15177device drivers. 15178 15179Integrated resource descriptor fixes posted to the Linux ACPI 15180list. This included checks for minimum descriptor length, and 15181support for trailing NULL strings within descriptors that have 15182optional string elements. 15183 15184Code and Data Size: Current and previous core subsystem library 15185sizes are shown below. These are the code and data sizes for the 15186acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15187these values do not include any ACPI driver or OSPM code. The 15188debug version of the code includes the debug output trace 15189mechanism and has a much larger code and data size. Note that 15190these values will vary depending on the efficiency of the compiler 15191and the compiler options used during generation. 15192 15193 Previous Release (20030918): 15194 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 15195 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 15196 Current Release: 15197 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 15198 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 15199 15200 152012) iASL Compiler: 15202 15203Implemented detection of non-ASCII characters within the input 15204source ASL file. This catches attempts to compile binary (AML) 15205files early in the compile, with an informative error message. 15206 15207Fixed a problem where the disassembler would fault if the output 15208filename could not be generated or if the output file could not be 15209opened. 15210 15211---------------------------------------- 1521218 September 2003. Summary of changes for version 20030918: 15213 15214 152151) ACPI CA Core Subsystem: 15216 15217Found and fixed a longstanding problem with the late execution of 15218the various deferred AML opcodes (such as Operation Regions, 15219Buffer Fields, Buffers, and Packages). If the name string 15220specified for the name of the new object placed the object in a 15221scope other than the current scope, the initialization/execution 15222of the opcode failed. The solution to this problem was to 15223implement a mechanism where the late execution of such opcodes 15224does not attempt to lookup/create the name a second time in an 15225incorrect scope. This fixes the "region size computed 15226incorrectly" problem. 15227 15228Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 15229Global Lock AE_BAD_PARAMETER error. 15230 15231Fixed several 64-bit issues with prototypes, casting and data 15232types. 15233 15234Removed duplicate prototype from acdisasm.h 15235 15236Fixed an issue involving EC Operation Region Detach (Shaohua Li) 15237 15238Code and Data Size: Current and previous core subsystem library 15239sizes are shown below. These are the code and data sizes for the 15240acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15241these values do not include any ACPI driver or OSPM code. The 15242debug version of the code includes the debug output trace 15243mechanism and has a much larger code and data size. Note that 15244these values will vary depending on the efficiency of the compiler 15245and the compiler options used during generation. 15246 15247 Previous Release: 15248 15249 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 15250 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 15251 Current Release: 15252 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 15253 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 15254 15255 152562) Linux: 15257 15258Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 15259correct sleep time in seconds. 15260 15261---------------------------------------- 1526214 July 2003. Summary of changes for version 20030619: 15263 152641) ACPI CA Core Subsystem: 15265 15266Parse SSDTs in order discovered, as opposed to reverse order 15267(Hrvoje Habjanic) 15268 15269Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 15270Klausner, 15271 Nate Lawson) 15272 15273 152742) Linux: 15275 15276Dynamically allocate SDT list (suggested by Andi Kleen) 15277 15278proc function return value cleanups (Andi Kleen) 15279 15280Correctly handle NMI watchdog during long stalls (Andrew Morton) 15281 15282Make it so acpismp=force works (reported by Andrew Morton) 15283 15284 15285---------------------------------------- 1528619 June 2003. Summary of changes for version 20030619: 15287 152881) ACPI CA Core Subsystem: 15289 15290Fix To/FromBCD, eliminating the need for an arch-specific #define. 15291 15292Do not acquire a semaphore in the S5 shutdown path. 15293 15294Fix ex_digits_needed for 0. (Takayoshi Kochi) 15295 15296Fix sleep/stall code reversal. (Andi Kleen) 15297 15298Revert a change having to do with control method calling 15299semantics. 15300 153012) Linux: 15302 15303acpiphp update (Takayoshi Kochi) 15304 15305Export acpi_disabled for sonypi (Stelian Pop) 15306 15307Mention acpismp=force in config help 15308 15309Re-add acpitable.c and acpismp=force. This improves backwards 15310 15311compatibility and also cleans up the code to a significant degree. 15312 15313Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 15314 15315---------------------------------------- 1531622 May 2003. Summary of changes for version 20030522: 15317 153181) ACPI CA Core Subsystem: 15319 15320Found and fixed a reported problem where an AE_NOT_FOUND error 15321occurred occasionally during _BST evaluation. This turned out to 15322be an Owner ID allocation issue where a called method did not get 15323a new ID assigned to it. Eventually, (after 64k calls), the Owner 15324ID UINT16 would wraparound so that the ID would be the same as the 15325caller's and the called method would delete the caller's 15326namespace. 15327 15328Implemented extended error reporting for control methods that are 15329aborted due to a run-time exception. Output includes the exact 15330AML instruction that caused the method abort, a dump of the method 15331locals and arguments at the time of the abort, and a trace of all 15332nested control method calls. 15333 15334Modified the interpreter to allow the creation of buffers of zero 15335length from the AML code. Implemented new code to ensure that no 15336attempt is made to actually allocate a memory buffer (of length 15337zero) - instead, a simple buffer object with a NULL buffer pointer 15338and length zero is created. A warning is no longer issued when 15339the AML attempts to create a zero-length buffer. 15340 15341Implemented a workaround for the "leading asterisk issue" in 15342_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 15343asterisk is automatically removed if present in any HID, UID, or 15344CID strings. The iASL compiler will still flag this asterisk as 15345an error, however. 15346 15347Implemented full support for _CID methods that return a package of 15348multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 15349now additionally returns a device _CID list if present. This 15350required a change to the external interface in order to pass an 15351ACPI_BUFFER object as a parameter since the _CID list is of 15352variable length. 15353 15354Fixed a problem with the new AE_SAME_HANDLER exception where 15355handler initialization code did not know about this exception. 15356 15357Code and Data Size: Current and previous core subsystem library 15358sizes are shown below. These are the code and data sizes for the 15359acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15360these values do not include any ACPI driver or OSPM code. The 15361debug version of the code includes the debug output trace 15362mechanism and has a much larger code and data size. Note that 15363these values will vary depending on the efficiency of the compiler 15364and the compiler options used during generation. 15365 15366 Previous Release (20030509): 15367 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 15368 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 15369 Current Release: 15370 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 15371 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 15372 15373 153742) Linux: 15375 15376Fixed a bug in which we would reinitialize the ACPI interrupt 15377after it was already working, thus disabling all ACPI and the IRQs 15378for any other device sharing the interrupt. (Thanks to Stian 15379Jordet) 15380 15381Toshiba driver update (John Belmonte) 15382 15383Return only 0 or 1 for our interrupt handler status (Andrew 15384Morton) 15385 15386 153873) iASL Compiler: 15388 15389Fixed a reported problem where multiple (nested) ElseIf() 15390statements were not handled correctly by the compiler, resulting 15391in incorrect warnings and incorrect AML code. This was a problem 15392in both the ASL parser and the code generator. 15393 15394 153954) Documentation: 15396 15397Added changes to existing interfaces, new exception codes, and new 15398text concerning reference count object management versus garbage 15399collection. 15400 15401---------------------------------------- 1540209 May 2003. Summary of changes for version 20030509. 15403 15404 154051) ACPI CA Core Subsystem: 15406 15407Changed the subsystem initialization sequence to hold off 15408installation of address space handlers until the hardware has been 15409initialized and the system has entered ACPI mode. This is because 15410the installation of space handlers can cause _REG methods to be 15411run. Previously, the _REG methods could potentially be run before 15412ACPI mode was enabled. 15413 15414Fixed some memory leak issues related to address space handler and 15415notify handler installation. There were some problems with the 15416reference count mechanism caused by the fact that the handler 15417objects are shared across several namespace objects. 15418 15419Fixed a reported problem where reference counts within the 15420namespace were not properly updated when named objects created by 15421method execution were deleted. 15422 15423Fixed a reported problem where multiple SSDTs caused a deletion 15424issue during subsystem termination. Restructured the table data 15425structures to simplify the linked lists and the related code. 15426 15427Fixed a problem where the table ID associated with secondary 15428tables (SSDTs) was not being propagated into the namespace objects 15429created by those tables. This would only present a problem for 15430tables that are unloaded at run-time, however. 15431 15432Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 15433type as the length parameter (instead of UINT32). 15434 15435Solved a long-standing problem where an ALREADY_EXISTS error 15436appears on various systems. This problem could happen when there 15437are multiple PCI_Config operation regions under a single PCI root 15438bus. This doesn't happen very frequently, but there are some 15439systems that do this in the ASL. 15440 15441Fixed a reported problem where the internal DeleteNode function 15442was incorrectly handling the case where a namespace node was the 15443first in the parent's child list, and had additional peers (not 15444the only child, but first in the list of children.) 15445 15446Code and Data Size: Current core subsystem library sizes are shown 15447below. These are the code and data sizes for the acpica.lib 15448produced by the Microsoft Visual C++ 6.0 compiler, and these 15449values do not include any ACPI driver or OSPM code. The debug 15450version of the code includes the debug output trace mechanism and 15451has a much larger code and data size. Note that these values will 15452vary depending on the efficiency of the compiler and the compiler 15453options used during generation. 15454 15455 Previous Release 15456 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 15457 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 15458 Current Release: 15459 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 15460 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 15461 15462 154632) Linux: 15464 15465Allow ":" in OS override string (Ducrot Bruno) 15466 15467Kobject fix (Greg KH) 15468 15469 154703 iASL Compiler/Disassembler: 15471 15472Fixed a problem in the generation of the C source code files (AML 15473is emitted in C source statements for BIOS inclusion) where the 15474Ascii dump that appears within a C comment at the end of each line 15475could cause a compile time error if the AML sequence happens to 15476have an open comment or close comment sequence embedded. 15477 15478 15479---------------------------------------- 1548024 April 2003. Summary of changes for version 20030424. 15481 15482 154831) ACPI CA Core Subsystem: 15484 15485Support for big-endian systems has been implemented. Most of the 15486support has been invisibly added behind big-endian versions of the 15487ACPI_MOVE_* macros. 15488 15489Fixed a problem in AcpiHwDisableGpeBlock() and 15490AcpiHwClearGpeBlock() where an incorrect offset was passed to the 15491low level hardware write routine. The offset parameter was 15492actually eliminated from the low level read/write routines because 15493they had become obsolete. 15494 15495Fixed a problem where a handler object was deleted twice during 15496the removal of a fixed event handler. 15497 15498 154992) Linux: 15500 15501A fix for SMP systems with link devices was contributed by 15502 15503Compaq's Dan Zink. 15504 15505(2.5) Return whether we handled the interrupt in our IRQ handler. 15506(Linux ISRs no longer return void, so we can propagate the handler 15507return value from the ACPI CA core back to the OS.) 15508 15509 15510 155113) Documentation: 15512 15513The ACPI CA Programmer Reference has been updated to reflect new 15514interfaces and changes to existing interfaces. 15515 15516---------------------------------------- 1551728 March 2003. Summary of changes for version 20030328. 15518 155191) ACPI CA Core Subsystem: 15520 15521The GPE Block Device support has been completed. New interfaces 15522are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 15523interfaces (enable, disable, clear, getstatus) have been split 15524into separate interfaces for Fixed Events and General Purpose 15525Events (GPEs) in order to support GPE Block Devices properly. 15526 15527Fixed a problem where the error message "Failed to acquire 15528semaphore" would appear during operations on the embedded 15529controller (EC). 15530 15531Code and Data Size: Current core subsystem library sizes are shown 15532below. These are the code and data sizes for the acpica.lib 15533produced by the Microsoft Visual C++ 6.0 compiler, and these 15534values do not include any ACPI driver or OSPM code. The debug 15535version of the code includes the debug output trace mechanism and 15536has a much larger code and data size. Note that these values will 15537vary depending on the efficiency of the compiler and the compiler 15538options used during generation. 15539 15540 Previous Release 15541 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 15542 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 15543 Current Release: 15544 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 15545 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 15546 15547 15548---------------------------------------- 1554928 February 2003. Summary of changes for version 20030228. 15550 15551 155521) ACPI CA Core Subsystem: 15553 15554The GPE handling and dispatch code has been completely overhauled 15555in preparation for support of GPE Block Devices (ID ACPI0006). 15556This affects internal data structures and code only; there should 15557be no differences visible externally. One new file has been 15558added, evgpeblk.c 15559 15560The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 15561fields that are used to determine the GPE block lengths. The 15562REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 15563structures are ignored. This is per the ACPI specification but it 15564isn't very clear. The full 256 Block 0/1 GPEs are now supported 15565(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 15566 15567In the SCI interrupt handler, removed the read of the PM1_CONTROL 15568register to look at the SCI_EN bit. On some machines, this read 15569causes an SMI event and greatly slows down SCI events. (This may 15570in fact be the cause of slow battery status response on some 15571systems.) 15572 15573Fixed a problem where a store of a NULL string to a package object 15574could cause the premature deletion of the object. This was seen 15575during execution of the battery _BIF method on some systems, 15576resulting in no battery data being returned. 15577 15578Added AcpiWalkResources interface to simplify parsing of resource 15579lists. 15580 15581Code and Data Size: Current core subsystem library sizes are shown 15582below. These are the code and data sizes for the acpica.lib 15583produced by the Microsoft Visual C++ 6.0 compiler, and these 15584values do not include any ACPI driver or OSPM code. The debug 15585version of the code includes the debug output trace mechanism and 15586has a much larger code and data size. Note that these values will 15587vary depending on the efficiency of the compiler and the compiler 15588options used during generation. 15589 15590 Previous Release 15591 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 15592 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 15593 Current Release: 15594 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 15595 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 15596 15597 155982) Linux 15599 15600S3 fixes (Ole Rohne) 15601 15602Update ACPI PHP driver with to use new acpi_walk_resource API 15603(Bjorn Helgaas) 15604 15605Add S4BIOS support (Pavel Machek) 15606 15607Map in entire table before performing checksum (John Stultz) 15608 15609Expand the mem= cmdline to allow the specification of reserved and 15610ACPI DATA blocks (Pavel Machek) 15611 15612Never use ACPI on VISWS 15613 15614Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 15615 15616Revert a change that allowed P_BLK lengths to be 4 or 5. This is 15617causing us to think that some systems support C2 when they really 15618don't. 15619 15620Do not count processor objects for non-present CPUs (Thanks to 15621Dominik Brodowski) 15622 15623 156243) iASL Compiler: 15625 15626Fixed a problem where ASL include files could not be found and 15627opened. 15628 15629Added support for the _PDC reserved name. 15630 15631 15632---------------------------------------- 1563322 January 2003. Summary of changes for version 20030122. 15634 15635 156361) ACPI CA Core Subsystem: 15637 15638Added a check for constructs of the form: Store (Local0, Local0) 15639where Local0 is not initialized. Apparently, some BIOS 15640programmers believe that this is a NOOP. Since this store doesn't 15641do anything anyway, the new prototype behavior will ignore this 15642error. This is a case where we can relax the strict checking in 15643the interpreter in the name of compatibility. 15644 15645 156462) Linux 15647 15648The AcpiSrc Source Conversion Utility has been released with the 15649Linux package for the first time. This is the utility that is 15650used to convert the ACPI CA base source code to the Linux version. 15651 15652(Both) Handle P_BLK lengths shorter than 6 more gracefully 15653 15654(Both) Move more headers to include/acpi, and delete an unused 15655header. 15656 15657(Both) Move drivers/acpi/include directory to include/acpi 15658 15659(Both) Boot functions don't use cmdline, so don't pass it around 15660 15661(Both) Remove include of unused header (Adrian Bunk) 15662 15663(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 15664the 15665former now also includes the latter, acpiphp.h only needs the one, 15666now. 15667 15668(2.5) Make it possible to select method of bios restoring after S3 15669resume. [=> no more ugly ifdefs] (Pavel Machek) 15670 15671(2.5) Make proc write interfaces work (Pavel Machek) 15672 15673(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 15674 15675(2.5) Break out ACPI Perf code into its own module, under cpufreq 15676(Dominik Brodowski) 15677 15678(2.4) S4BIOS support (Ducrot Bruno) 15679 15680(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 15681Visinoni) 15682 15683 156843) iASL Compiler: 15685 15686Added support to disassemble SSDT and PSDTs. 15687 15688Implemented support to obtain SSDTs from the Windows registry if 15689available. 15690 15691 15692---------------------------------------- 1569309 January 2003. Summary of changes for version 20030109. 15694 156951) ACPI CA Core Subsystem: 15696 15697Changed the behavior of the internal Buffer-to-String conversion 15698function. The current ACPI specification states that the contents 15699of the buffer are "converted to a string of two-character 15700hexadecimal numbers, each separated by a space". Unfortunately, 15701this definition is not backwards compatible with existing ACPI 1.0 15702implementations (although the behavior was not defined in the ACPI 157031.0 specification). The new behavior simply copies data from the 15704buffer to the string until a null character is found or the end of 15705the buffer is reached. The new String object is always null 15706terminated. This problem was seen during the generation of _BIF 15707battery data where incorrect strings were returned for battery 15708type, etc. This will also require an errata to the ACPI 15709specification. 15710 15711Renamed all instances of NATIVE_UINT and NATIVE_INT to 15712ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 15713 15714Copyright in all module headers (both Linux and non-Linux) has be 15715updated to 2003. 15716 15717Code and Data Size: Current core subsystem library sizes are shown 15718below. These are the code and data sizes for the acpica.lib 15719produced by the Microsoft Visual C++ 6.0 compiler, and these 15720values do not include any ACPI driver or OSPM code. The debug 15721version of the code includes the debug output trace mechanism and 15722has a much larger code and data size. Note that these values will 15723vary depending on the efficiency of the compiler and the compiler 15724options used during generation. 15725 15726 Previous Release 15727 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 15728 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 15729 Current Release: 15730 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 15731 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 15732 15733 157342) Linux 15735 15736Fixed an oops on module insertion/removal (Matthew Tippett) 15737 15738(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 15739 15740(2.5) Replace pr_debug (Randy Dunlap) 15741 15742(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 15743 15744(Both) Eliminate spawning of thread from timer callback, in favor 15745of schedule_work() 15746 15747(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 15748 15749(Both) Added define for Fixed Function HW region (Matthew Wilcox) 15750 15751(Both) Add missing statics to button.c (Pavel Machek) 15752 15753Several changes have been made to the source code translation 15754utility that generates the Linux Code in order to make the code 15755more "Linux-like": 15756 15757All typedefs on structs and unions have been removed in keeping 15758with the Linux coding style. 15759 15760Removed the non-Linux SourceSafe module revision number from each 15761module header. 15762 15763Completed major overhaul of symbols to be lowercase for linux. 15764Doubled the number of symbols that are lowercase. 15765 15766Fixed a problem where identifiers within procedure headers and 15767within quotes were not fully lower cased (they were left with a 15768starting capital.) 15769 15770Some C macros whose only purpose is to allow the generation of 16- 15771bit code are now completely removed in the Linux code, increasing 15772readability and maintainability. 15773 15774---------------------------------------- 15775 1577612 December 2002. Summary of changes for version 20021212. 15777 15778 157791) ACPI CA Core Subsystem: 15780 15781Fixed a problem where the creation of a zero-length AML Buffer 15782would cause a fault. 15783 15784Fixed a problem where a Buffer object that pointed to a static AML 15785buffer (in an ACPI table) could inadvertently be deleted, causing 15786memory corruption. 15787 15788Fixed a problem where a user buffer (passed in to the external 15789ACPI CA interfaces) could be overwritten if the buffer was too 15790small to complete the operation, causing memory corruption. 15791 15792Fixed a problem in the Buffer-to-String conversion code where a 15793string of length one was always returned, regardless of the size 15794of the input Buffer object. 15795 15796Removed the NATIVE_CHAR data type across the entire source due to 15797lack of need and lack of consistent use. 15798 15799Code and Data Size: Current core subsystem library sizes are shown 15800below. These are the code and data sizes for the acpica.lib 15801produced by the Microsoft Visual C++ 6.0 compiler, and these 15802values do not include any ACPI driver or OSPM code. The debug 15803version of the code includes the debug output trace mechanism and 15804has a much larger code and data size. Note that these values will 15805vary depending on the efficiency of the compiler and the compiler 15806options used during generation. 15807 15808 Previous Release 15809 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 15810 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 15811 Current Release: 15812 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 15813 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 15814 15815 15816---------------------------------------- 1581705 December 2002. Summary of changes for version 20021205. 15818 158191) ACPI CA Core Subsystem: 15820 15821Fixed a problem where a store to a String or Buffer object could 15822cause corruption of the DSDT if the object type being stored was 15823the same as the target object type and the length of the object 15824being stored was equal to or smaller than the original (existing) 15825target object. This was seen to cause corruption of battery _BIF 15826buffers if the _BIF method modified the buffer on the fly. 15827 15828Fixed a problem where an internal error was generated if a control 15829method invocation was used in an OperationRegion, Buffer, or 15830Package declaration. This was caused by the deferred parsing of 15831the control method and thus the deferred creation of the internal 15832method object. The solution to this problem was to create the 15833internal method object at the moment the method is encountered in 15834the first pass - so that subsequent references to the method will 15835able to obtain the required parameter count and thus properly 15836parse the method invocation. This problem presented itself as an 15837AE_AML_INTERNAL during the pass 1 parse phase during table load. 15838 15839Fixed a problem where the internal String object copy routine did 15840not always allocate sufficient memory for the target String object 15841and caused memory corruption. This problem was seen to cause 15842"Allocation already present in list!" errors as memory allocation 15843became corrupted. 15844 15845Implemented a new function for the evaluation of namespace objects 15846that allows the specification of the allowable return object 15847types. This simplifies a lot of code that checks for a return 15848object of one or more specific objects returned from the 15849evaluation (such as _STA, etc.) This may become and external 15850function if it would be useful to ACPI-related drivers. 15851 15852Completed another round of prefixing #defines with "ACPI_" for 15853clarity. 15854 15855Completed additional code restructuring to allow more modular 15856linking for iASL compiler and AcpiExec. Several files were split 15857creating new files. New files: nsparse.c dsinit.c evgpe.c 15858 15859Implemented an abort mechanism to terminate an executing control 15860method via the AML debugger. This feature is useful for debugging 15861control methods that depend (wait) for specific hardware 15862responses. 15863 15864Code and Data Size: Current core subsystem library sizes are shown 15865below. These are the code and data sizes for the acpica.lib 15866produced by the Microsoft Visual C++ 6.0 compiler, and these 15867values do not include any ACPI driver or OSPM code. The debug 15868version of the code includes the debug output trace mechanism and 15869has a much larger code and data size. Note that these values will 15870vary depending on the efficiency of the compiler and the compiler 15871options used during generation. 15872 15873 Previous Release 15874 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 15875 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 15876 Current Release: 15877 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 15878 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 15879 15880 158812) iASL Compiler/Disassembler 15882 15883Fixed a compiler code generation problem for "Interrupt" Resource 15884Descriptors. If specified in the ASL, the optional "Resource 15885Source Index" and "Resource Source" fields were not inserted into 15886the correct location within the AML resource descriptor, creating 15887an invalid descriptor. 15888 15889Fixed a disassembler problem for "Interrupt" resource descriptors. 15890The optional "Resource Source Index" and "Resource Source" fields 15891were ignored. 15892 15893 15894---------------------------------------- 1589522 November 2002. Summary of changes for version 20021122. 15896 15897 158981) ACPI CA Core Subsystem: 15899 15900Fixed a reported problem where an object stored to a Method Local 15901or Arg was not copied to a new object during the store - the 15902object pointer was simply copied to the Local/Arg. This caused 15903all subsequent operations on the Local/Arg to also affect the 15904original source of the store operation. 15905 15906Fixed a problem where a store operation to a Method Local or Arg 15907was not completed properly if the Local/Arg contained a reference 15908(from RefOf) to a named field. The general-purpose store-to- 15909namespace-node code is now used so that this case is handled 15910automatically. 15911 15912Fixed a problem where the internal object copy routine would cause 15913a protection fault if the object being copied was a Package and 15914contained either 1) a NULL package element or 2) a nested sub- 15915package. 15916 15917Fixed a problem with the GPE initialization that resulted from an 15918ambiguity in the ACPI specification. One section of the 15919specification states that both the address and length of the GPE 15920block must be zero if the block is not supported. Another section 15921implies that only the address need be zero if the block is not 15922supported. The code has been changed so that both the address and 15923the length must be non-zero to indicate a valid GPE block (i.e., 15924if either the address or the length is zero, the GPE block is 15925invalid.) 15926 15927Code and Data Size: Current core subsystem library sizes are shown 15928below. These are the code and data sizes for the acpica.lib 15929produced by the Microsoft Visual C++ 6.0 compiler, and these 15930values do not include any ACPI driver or OSPM code. The debug 15931version of the code includes the debug output trace mechanism and 15932has a much larger code and data size. Note that these values will 15933vary depending on the efficiency of the compiler and the compiler 15934options used during generation. 15935 15936 Previous Release 15937 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 15938 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 15939 Current Release: 15940 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 15941 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 15942 15943 159442) Linux 15945 15946Cleaned up EC driver. Exported an external EC read/write 15947interface. By going through this, other drivers (most notably 15948sonypi) will be able to serialize access to the EC. 15949 15950 159513) iASL Compiler/Disassembler 15952 15953Implemented support to optionally generate include files for both 15954ASM and C (the -i switch). This simplifies BIOS development by 15955automatically creating include files that contain external 15956declarations for the symbols that are created within the 15957 15958(optionally generated) ASM and C AML source files. 15959 15960 15961---------------------------------------- 1596215 November 2002. Summary of changes for version 20021115. 15963 159641) ACPI CA Core Subsystem: 15965 15966Fixed a memory leak problem where an error during resolution of 15967 15968method arguments during a method invocation from another method 15969failed to cleanup properly by deleting all successfully resolved 15970argument objects. 15971 15972Fixed a problem where the target of the Index() operator was not 15973correctly constructed if the source object was a package. This 15974problem has not been detected because the use of a target operand 15975with Index() is very rare. 15976 15977Fixed a problem with the Index() operator where an attempt was 15978made to delete the operand objects twice. 15979 15980Fixed a problem where an attempt was made to delete an operand 15981twice during execution of the CondRefOf() operator if the target 15982did not exist. 15983 15984Implemented the first of perhaps several internal create object 15985functions that create and initialize a specific object type. This 15986consolidates duplicated code wherever the object is created, thus 15987shrinking the size of the subsystem. 15988 15989Implemented improved debug/error messages for errors that occur 15990during nested method invocations. All executing method pathnames 15991are displayed (with the error) as the call stack is unwound - thus 15992simplifying debug. 15993 15994Fixed a problem introduced in the 10/02 release that caused 15995premature deletion of a buffer object if a buffer was used as an 15996ASL operand where an integer operand is required (Thus causing an 15997implicit object conversion from Buffer to Integer.) The change in 15998the 10/02 release was attempting to fix a memory leak (albeit 15999incorrectly.) 16000 16001Code and Data Size: Current core subsystem library sizes are shown 16002below. These are the code and data sizes for the acpica.lib 16003produced by the Microsoft Visual C++ 6.0 compiler, and these 16004values do not include any ACPI driver or OSPM code. The debug 16005version of the code includes the debug output trace mechanism and 16006has a much larger code and data size. Note that these values will 16007vary depending on the efficiency of the compiler and the compiler 16008options used during generation. 16009 16010 Previous Release 16011 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 16012 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 16013 Current Release: 16014 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 16015 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 16016 16017 160182) Linux 16019 16020Changed the implementation of the ACPI semaphores to use down() 16021instead of down_interruptable(). It is important that the 16022execution of ACPI control methods not be interrupted by signals. 16023Methods must run to completion, or the system may be left in an 16024unknown/unstable state. 16025 16026Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 16027(Shawn Starr) 16028 16029 160303) iASL Compiler/Disassembler 16031 16032 16033Changed the default location of output files. All output files 16034are now placed in the current directory by default instead of in 16035the directory of the source file. This change may affect some 16036existing makefiles, but it brings the behavior of the compiler in 16037line with other similar tools. The location of the output files 16038can be overridden with the -p command line switch. 16039 16040 16041---------------------------------------- 1604211 November 2002. Summary of changes for version 20021111. 16043 16044 160450) ACPI Specification 2.0B is released and is now available at: 16046http://www.acpi.info/index.html 16047 16048 160491) ACPI CA Core Subsystem: 16050 16051Implemented support for the ACPI 2.0 SMBus Operation Regions. 16052This includes the early detection and handoff of the request to 16053the SMBus region handler (avoiding all of the complex field 16054support code), and support for the bidirectional return packet 16055from an SMBus write operation. This paves the way for the 16056development of SMBus drivers in each host operating system. 16057 16058Fixed a problem where the semaphore WAIT_FOREVER constant was 16059defined as 32 bits, but must be 16 bits according to the ACPI 16060specification. This had the side effect of causing ASL 16061Mutex/Event timeouts even though the ASL code requested a wait 16062forever. Changed all internal references to the ACPI timeout 16063parameter to 16 bits to prevent future problems. Changed the name 16064of WAIT_FOREVER to ACPI_WAIT_FOREVER. 16065 16066Code and Data Size: Current core subsystem library sizes are shown 16067below. These are the code and data sizes for the acpica.lib 16068produced by the Microsoft Visual C++ 6.0 compiler, and these 16069values do not include any ACPI driver or OSPM code. The debug 16070version of the code includes the debug output trace mechanism and 16071has a much larger code and data size. Note that these values will 16072vary depending on the efficiency of the compiler and the compiler 16073options used during generation. 16074 16075 Previous Release 16076 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 16077 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 16078 Current Release: 16079 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 16080 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 16081 16082 160832) Linux 16084 16085Module loading/unloading fixes (John Cagle) 16086 16087 160883) iASL Compiler/Disassembler 16089 16090Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 16091 16092Implemented support for the disassembly of all SMBus protocol 16093keywords (SMBQuick, SMBWord, etc.) 16094 16095---------------------------------------- 1609601 November 2002. Summary of changes for version 20021101. 16097 16098 160991) ACPI CA Core Subsystem: 16100 16101Fixed a problem where platforms that have a GPE1 block but no GPE0 16102block were not handled correctly. This resulted in a "GPE 16103overlap" error message. GPE0 is no longer required. 16104 16105Removed code added in the previous release that inserted nodes 16106into the namespace in alphabetical order. This caused some side- 16107effects on various machines. The root cause of the problem is 16108still under investigation since in theory, the internal ordering 16109of the namespace nodes should not matter. 16110 16111 16112Enhanced error reporting for the case where a named object is not 16113found during control method execution. The full ACPI namepath 16114(name reference) of the object that was not found is displayed in 16115this case. 16116 16117Note: as a result of the overhaul of the namespace object types in 16118the previous release, the namespace nodes for the predefined 16119scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 16120instead of ACPI_TYPE_ANY. This simplifies the namespace 16121management code but may affect code that walks the namespace tree 16122looking for specific object types. 16123 16124Code and Data Size: Current core subsystem library sizes are shown 16125below. These are the code and data sizes for the acpica.lib 16126produced by the Microsoft Visual C++ 6.0 compiler, and these 16127values do not include any ACPI driver or OSPM code. The debug 16128version of the code includes the debug output trace mechanism and 16129has a much larger code and data size. Note that these values will 16130vary depending on the efficiency of the compiler and the compiler 16131options used during generation. 16132 16133 Previous Release 16134 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 16135 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 16136 Current Release: 16137 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 16138 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 16139 16140 161412) Linux 16142 16143Fixed a problem introduced in the previous release where the 16144Processor and Thermal objects were not recognized and installed in 16145/proc. This was related to the scope type change described above. 16146 16147 161483) iASL Compiler/Disassembler 16149 16150Implemented the -g option to get all of the required ACPI tables 16151from the registry and save them to files (Windows version of the 16152compiler only.) The required tables are the FADT, FACS, and DSDT. 16153 16154Added ACPI table checksum validation during table disassembly in 16155order to catch corrupted tables. 16156 16157 16158---------------------------------------- 1615922 October 2002. Summary of changes for version 20021022. 16160 161611) ACPI CA Core Subsystem: 16162 16163Implemented a restriction on the Scope operator that the target 16164must already exist in the namespace at the time the operator is 16165encountered (during table load or method execution). In other 16166words, forward references are not allowed and Scope() cannot 16167create a new object. This changes the previous behavior where the 16168interpreter would create the name if not found. This new behavior 16169correctly enables the search-to-root algorithm during namespace 16170lookup of the target name. Because of this upsearch, this fixes 16171the known Compaq _SB_.OKEC problem and makes both the AML 16172interpreter and iASL compiler compatible with other ACPI 16173implementations. 16174 16175Completed a major overhaul of the internal ACPI object types for 16176the ACPI Namespace and the associated operand objects. Many of 16177these types had become obsolete with the introduction of the two- 16178pass namespace load. This cleanup simplifies the code and makes 16179the entire namespace load mechanism much clearer and easier to 16180understand. 16181 16182Improved debug output for tracking scope opening/closing to help 16183diagnose scoping issues. The old scope name as well as the new 16184scope name are displayed. Also improved error messages for 16185problems with ASL Mutex objects and error messages for GPE 16186problems. 16187 16188Cleaned up the namespace dump code, removed obsolete code. 16189 16190All string output (for all namespace/object dumps) now uses the 16191common ACPI string output procedure which handles escapes properly 16192and does not emit non-printable characters. 16193 16194Fixed some issues with constants in the 64-bit version of the 16195local C library (utclib.c) 16196 16197 161982) Linux 16199 16200EC Driver: No longer attempts to acquire the Global Lock at 16201interrupt level. 16202 16203 162043) iASL Compiler/Disassembler 16205 16206Implemented ACPI 2.0B grammar change that disallows all Type 1 and 162072 opcodes outside of a control method. This means that the 16208"executable" operators (versus the "namespace" operators) cannot 16209be used at the table level; they can only be used within a control 16210method. 16211 16212Implemented the restriction on the Scope() operator where the 16213target must already exist in the namespace at the time the 16214operator is encountered (during ASL compilation). In other words, 16215forward references are not allowed and Scope() cannot create a new 16216object. This makes the iASL compiler compatible with other ACPI 16217implementations and makes the Scope() implementation adhere to the 16218ACPI specification. 16219 16220Fixed a problem where namepath optimization for the Alias operator 16221was optimizing the wrong path (of the two namepaths.) This caused 16222a "Missing alias link" error message. 16223 16224Fixed a problem where an "unknown reserved name" warning could be 16225incorrectly generated for names like "_SB" when the trailing 16226underscore is not used in the original ASL. 16227 16228Fixed a problem where the reserved name check did not handle 16229NamePaths with multiple NameSegs correctly. The first nameseg of 16230the NamePath was examined instead of the last NameSeg. 16231 16232 16233---------------------------------------- 16234 1623502 October 2002. Summary of changes for this release. 16236 16237 162381) ACPI CA Core Subsystem version 20021002: 16239 16240Fixed a problem where a store/copy of a string to an existing 16241string did not always set the string length properly in the String 16242object. 16243 16244Fixed a reported problem with the ToString operator where the 16245behavior was identical to the ToHexString operator instead of just 16246simply converting a raw buffer to a string data type. 16247 16248Fixed a problem where CopyObject and the other "explicit" 16249conversion operators were not updating the internal namespace node 16250type as part of the store operation. 16251 16252Fixed a memory leak during implicit source operand conversion 16253where the original object was not deleted if it was converted to a 16254new object of a different type. 16255 16256Enhanced error messages for all problems associated with namespace 16257lookups. Common procedure generates and prints the lookup name as 16258well as the formatted status. 16259 16260Completed implementation of a new design for the Alias support 16261within the namespace. The existing design did not handle the case 16262where a new object was assigned to one of the two names due to the 16263use of an explicit conversion operator, resulting in the two names 16264pointing to two different objects. The new design simply points 16265the Alias name to the original name node - not to the object. 16266This results in a level of indirection that must be handled in the 16267name resolution mechanism. 16268 16269Code and Data Size: Current core subsystem library sizes are shown 16270below. These are the code and data sizes for the acpica.lib 16271produced by the Microsoft Visual C++ 6.0 compiler, and these 16272values do not include any ACPI driver or OSPM code. The debug 16273version of the code includes the debug output trace mechanism and 16274has a larger code and data size. Note that these values will vary 16275depending on the efficiency of the compiler and the compiler 16276options used during generation. 16277 16278 Previous Release 16279 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 16280 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 16281 Current Release: 16282 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 16283 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 16284 16285 162862) Linux 16287 16288Initialize thermal driver's timer before it is used. (Knut 16289Neumann) 16290 16291Allow handling negative celsius values. (Kochi Takayoshi) 16292 16293Fix thermal management and make trip points. R/W (Pavel Machek) 16294 16295Fix /proc/acpi/sleep. (P. Christeas) 16296 16297IA64 fixes. (David Mosberger) 16298 16299Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 16300 16301Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 16302Brodowski) 16303 16304 163053) iASL Compiler/Disassembler 16306 16307Clarified some warning/error messages. 16308 16309 16310---------------------------------------- 1631118 September 2002. Summary of changes for this release. 16312 16313 163141) ACPI CA Core Subsystem version 20020918: 16315 16316Fixed a reported problem with reference chaining (via the Index() 16317and RefOf() operators) in the ObjectType() and SizeOf() operators. 16318The definition of these operators includes the dereferencing of 16319all chained references to return information on the base object. 16320 16321Fixed a problem with stores to indexed package elements - the 16322existing code would not complete the store if an "implicit 16323conversion" was not performed. In other words, if the existing 16324object (package element) was to be replaced completely, the code 16325didn't handle this case. 16326 16327Relaxed typechecking on the ASL "Scope" operator to allow the 16328target name to refer to an object of type Integer, String, or 16329Buffer, in addition to the scoping object types (Device, 16330predefined Scopes, Processor, PowerResource, and ThermalZone.) 16331This allows existing AML code that has workarounds for a bug in 16332Windows to function properly. A warning is issued, however. This 16333affects both the AML interpreter and the iASL compiler. Below is 16334an example of this type of ASL code: 16335 16336 Name(DEB,0x00) 16337 Scope(DEB) 16338 { 16339 16340Fixed some reported problems with 64-bit integer support in the 16341local implementation of C library functions (clib.c) 16342 16343 163442) Linux 16345 16346Use ACPI fix map region instead of IOAPIC region, since it is 16347undefined in non-SMP. 16348 16349Ensure that the SCI has the proper polarity and trigger, even on 16350systems that do not have an interrupt override entry in the MADT. 16351 163522.5 big driver reorganization (Pat Mochel) 16353 16354Use early table mapping code from acpitable.c (Andi Kleen) 16355 16356New blacklist entries (Andi Kleen) 16357 16358Blacklist improvements. Split blacklist code out into a separate 16359file. Move checking the blacklist to very early. Previously, we 16360would use ACPI tables, and then halfway through init, check the 16361blacklist -- too late. Now, it's early enough to completely fall- 16362back to non-ACPI. 16363 16364 163653) iASL Compiler/Disassembler version 20020918: 16366 16367Fixed a problem where the typechecking code didn't know that an 16368alias could point to a method. In other words, aliases were not 16369being dereferenced during typechecking. 16370 16371 16372---------------------------------------- 1637329 August 2002. Summary of changes for this release. 16374 163751) ACPI CA Core Subsystem Version 20020829: 16376 16377If the target of a Scope() operator already exists, it must be an 16378object type that actually opens a scope -- such as a Device, 16379Method, Scope, etc. This is a fatal runtime error. Similar error 16380check has been added to the iASL compiler also. 16381 16382Tightened up the namespace load to disallow multiple names in the 16383same scope. This previously was allowed if both objects were of 16384the same type. (i.e., a lookup was the same as entering a new 16385name). 16386 16387 163882) Linux 16389 16390Ensure that the ACPI interrupt has the proper trigger and 16391polarity. 16392 16393local_irq_disable is extraneous. (Matthew Wilcox) 16394 16395Make "acpi=off" actually do what it says, and not use the ACPI 16396interpreter *or* the tables. 16397 16398Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 16399Takayoshi) 16400 16401 164023) iASL Compiler/Disassembler Version 20020829: 16403 16404Implemented namepath optimization for name declarations. For 16405example, a declaration like "Method (\_SB_.ABCD)" would get 16406optimized to "Method (ABCD)" if the declaration is within the 16407\_SB_ scope. This optimization is in addition to the named 16408reference path optimization first released in the previous 16409version. This would seem to complete all possible optimizations 16410for namepaths within the ASL/AML. 16411 16412If the target of a Scope() operator already exists, it must be an 16413object type that actually opens a scope -- such as a Device, 16414Method, Scope, etc. 16415 16416Implemented a check and warning for unreachable code in the same 16417block below a Return() statement. 16418 16419Fixed a problem where the listing file was not generated if the 16420compiler aborted if the maximum error count was exceeded (200). 16421 16422Fixed a problem where the typechecking of method return values was 16423broken. This includes the check for a return value when the 16424method is invoked as a TermArg (a return value is expected.) 16425 16426Fixed a reported problem where EOF conditions during a quoted 16427string or comment caused a fault. 16428 16429 16430---------------------------------------- 1643115 August 2002. Summary of changes for this release. 16432 164331) ACPI CA Core Subsystem Version 20020815: 16434 16435Fixed a reported problem where a Store to a method argument that 16436contains a reference did not perform the indirect store correctly. 16437This problem was created during the conversion to the new 16438reference object model - the indirect store to a method argument 16439code was not updated to reflect the new model. 16440 16441Reworked the ACPI mode change code to better conform to ACPI 2.0, 16442handle corner cases, and improve code legibility (Kochi Takayoshi) 16443 16444Fixed a problem with the pathname parsing for the carat (^) 16445prefix. The heavy use of the carat operator by the new namepath 16446optimization in the iASL compiler uncovered a problem with the AML 16447interpreter handling of this prefix. In the case where one or 16448more carats precede a single nameseg, the nameseg was treated as 16449standalone and the search rule (to root) was inadvertently 16450applied. This could cause both the iASL compiler and the 16451interpreter to find the wrong object or to miss the error that 16452should occur if the object does not exist at that exact pathname. 16453 16454Found and fixed the problem where the HP Pavilion DSDT would not 16455load. This was a relatively minor tweak to the table loading code 16456(a problem caused by the unexpected encounter with a method 16457invocation not within a control method), but it does not solve the 16458overall issue of the execution of AML code at the table level. 16459This investigation is still ongoing. 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: 69.1K Code, 8.2K Data, 77.3K Total 16472 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 16473 Current Release: 16474 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 16475 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 16476 16477 164782) Linux 16479 16480Remove redundant slab.h include (Brad Hards) 16481 16482Fix several bugs in thermal.c (Herbert Nachtnebel) 16483 16484Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 16485 16486Change acpi_system_suspend to use updated irq functions (Pavel 16487Machek) 16488 16489Export acpi_get_firmware_table (Matthew Wilcox) 16490 16491Use proper root proc entry for ACPI (Kochi Takayoshi) 16492 16493Fix early-boot table parsing (Bjorn Helgaas) 16494 16495 164963) iASL Compiler/Disassembler 16497 16498Reworked the compiler options to make them more consistent and to 16499use two-letter options where appropriate. We were running out of 16500sensible letters. This may break some makefiles, so check the 16501current options list by invoking the compiler with no parameters. 16502 16503Completed the design and implementation of the ASL namepath 16504optimization option for the compiler. This option optimizes all 16505references to named objects to the shortest possible path. The 16506first attempt tries to utilize a single nameseg (4 characters) and 16507the "search-to-root" algorithm used by the interpreter. If that 16508cannot be used (because either the name is not in the search path 16509or there is a conflict with another object with the same name), 16510the pathname is optimized using the carat prefix (usually a 16511shorter string than specifying the entire path from the root.) 16512 16513Implemented support to obtain the DSDT from the Windows registry 16514(when the disassembly option is specified with no input file). 16515Added this code as the implementation for AcpiOsTableOverride in 16516the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 16517utility) to scan memory for the DSDT to the AcpiOsTableOverride 16518function in the DOS OSL to make the disassembler truly OS 16519independent. 16520 16521Implemented a new option to disassemble and compile in one step. 16522When used without an input filename, this option will grab the 16523DSDT from the local machine, disassemble it, and compile it in one 16524step. 16525 16526Added a warning message for invalid escapes (a backslash followed 16527by any character other than the allowable escapes). This catches 16528the quoted string error "\_SB_" (which should be "\\_SB_" ). 16529 16530Also, there are numerous instances in the ACPI specification where 16531this error occurs. 16532 16533Added a compiler option to disable all optimizations. This is 16534basically the "compatibility mode" because by using this option, 16535the AML code will come out exactly the same as other ASL 16536compilers. 16537 16538Added error messages for incorrectly ordered dependent resource 16539functions. This includes: missing EndDependentFn macro at end of 16540dependent resource list, nested dependent function macros (both 16541start and end), and missing StartDependentFn macro. These are 16542common errors that should be caught at compile time. 16543 16544Implemented _OSI support for the disassembler and compiler. _OSI 16545must be included in the namespace for proper disassembly (because 16546the disassembler must know the number of arguments.) 16547 16548Added an "optimization" message type that is optional (off by 16549default). This message is used for all optimizations - including 16550constant folding, integer optimization, and namepath optimization. 16551 16552---------------------------------------- 1655325 July 2002. Summary of changes for this release. 16554 16555 165561) ACPI CA Core Subsystem Version 20020725: 16557 16558The AML Disassembler has been enhanced to produce compilable ASL 16559code and has been integrated into the iASL compiler (see below) as 16560well as the single-step disassembly for the AML debugger and the 16561disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 16562resource templates and macros are fully supported. The 16563disassembler has been tested on over 30 different AML files, 16564producing identical AML when the resulting disassembled ASL file 16565is recompiled with the same ASL compiler. 16566 16567Modified the Resource Manager to allow zero interrupts and zero 16568dma channels during the GetCurrentResources call. This was 16569causing problems on some platforms. 16570 16571Added the AcpiOsRedirectOutput interface to the OSL to simplify 16572output redirection for the AcpiOsPrintf and AcpiOsVprintf 16573interfaces. 16574 16575Code and Data Size: Current core subsystem library sizes are shown 16576below. These are the code and data sizes for the acpica.lib 16577produced by the Microsoft Visual C++ 6.0 compiler, and these 16578values do not include any ACPI driver or OSPM code. The debug 16579version of the code includes the debug output trace mechanism and 16580has a larger code and data size. Note that these values will vary 16581depending on the efficiency of the compiler and the compiler 16582options used during generation. 16583 16584 Previous Release 16585 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 16586 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 16587 Current Release: 16588 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 16589 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 16590 16591 165922) Linux 16593 16594Fixed a panic in the EC driver (Dominik Brodowski) 16595 16596Implemented checksum of the R/XSDT itself during Linux table scan 16597(Richard Schaal) 16598 16599 166003) iASL compiler 16601 16602The AML disassembler is integrated into the compiler. The "-d" 16603option invokes the disassembler to completely disassemble an 16604input AML file, producing as output a text ASL file with the 16605extension ".dsl" (to avoid name collisions with existing .asl 16606source files.) A future enhancement will allow the disassembler 16607to obtain the BIOS DSDT from the registry under Windows. 16608 16609Fixed a problem with the VendorShort and VendorLong resource 16610descriptors where an invalid AML sequence was created. 16611 16612Implemented a fix for BufferData term in the ASL parser. It was 16613inadvertently defined twice, allowing invalid syntax to pass and 16614causing reduction conflicts. 16615 16616Fixed a problem where the Ones opcode could get converted to a 16617value of zero if "Ones" was used where a byte, word or dword value 16618was expected. The 64-bit value is now truncated to the correct 16619size with the correct value. 16620 16621 16622 16623---------------------------------------- 1662402 July 2002. Summary of changes for this release. 16625 16626 166271) ACPI CA Core Subsystem Version 20020702: 16628 16629The Table Manager code has been restructured to add several new 16630features. Tables that are not required by the core subsystem 16631(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 16632validated in any way and are returned from AcpiGetFirmwareTable if 16633requested. The AcpiOsTableOverride interface is now called for 16634each table that is loaded by the subsystem in order to allow the 16635host to override any table it chooses. Previously, only the DSDT 16636could be overridden. Added one new files, tbrsdt.c and 16637tbgetall.c. 16638 16639Fixed a problem with the conversion of internal package objects to 16640external objects (when a package is returned from a control 16641method.) The return buffer length was set to zero instead of the 16642proper length of the package object. 16643 16644Fixed a reported problem with the use of the RefOf and DeRefOf 16645operators when passing reference arguments to control methods. A 16646new type of Reference object is used internally for references 16647produced by the RefOf operator. 16648 16649Added additional error messages in the Resource Manager to explain 16650AE_BAD_DATA errors when they occur during resource parsing. 16651 16652Split the AcpiEnableSubsystem into two primitives to enable a 16653finer granularity initialization sequence. These two calls should 16654be called in this order: AcpiEnableSubsystem (flags), 16655AcpiInitializeObjects (flags). The flags parameter remains the 16656same. 16657 16658 166592) Linux 16660 16661Updated the ACPI utilities module to understand the new style of 16662fully resolved package objects that are now returned from the core 16663subsystem. This eliminates errors of the form: 16664 16665 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 16666 acpi_utils-0430 [145] acpi_evaluate_reference: 16667 Invalid element in package (not a device reference) 16668 16669The method evaluation utility uses the new buffer allocation 16670scheme instead of calling AcpiEvaluate Object twice. 16671 16672Added support for ECDT. This allows the use of the Embedded 16673 16674Controller before the namespace has been fully initialized, which 16675is necessary for ACPI 2.0 support, and for some laptops to 16676initialize properly. (Laptops using ECDT are still rare, so only 16677limited testing was performed of the added functionality.) 16678 16679Fixed memory leaks in the EC driver. 16680 16681Eliminated a brittle code structure in acpi_bus_init(). 16682 16683Eliminated the acpi_evaluate() helper function in utils.c. It is 16684no longer needed since acpi_evaluate_object can optionally 16685allocate memory for the return object. 16686 16687Implemented fix for keyboard hang when getting battery readings on 16688some systems (Stephen White) 16689 16690PCI IRQ routing update (Dominik Brodowski) 16691 16692Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 16693support 16694 16695---------------------------------------- 1669611 June 2002. Summary of changes for this release. 16697 16698 166991) ACPI CA Core Subsystem Version 20020611: 16700 16701Fixed a reported problem where constants such as Zero and One 16702appearing within _PRT packages were not handled correctly within 16703the resource manager code. Originally reported against the ASL 16704compiler because the code generator now optimizes integers to 16705their minimal AML representation (i.e. AML constants if possible.) 16706The _PRT code now handles all AML constant opcodes correctly 16707(Zero, One, Ones, Revision). 16708 16709Fixed a problem with the Concatenate operator in the AML 16710interpreter where a buffer result object was incorrectly marked as 16711not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 16712 16713All package sub-objects are now fully resolved before they are 16714returned from the external ACPI interfaces. This means that name 16715strings are resolved to object handles, and constant operators 16716(Zero, One, Ones, Revision) are resolved to Integers. 16717 16718Implemented immediate resolution of the AML Constant opcodes 16719(Zero, One, Ones, Revision) to Integer objects upon detection 16720within the AML stream. This has simplified and reduced the 16721generated code size of the subsystem by eliminating about 10 16722switch statements for these constants (which previously were 16723contained in Reference objects.) The complicating issues are that 16724the Zero opcode is used as a "placeholder" for unspecified 16725optional target operands and stores to constants are defined to be 16726no-ops. 16727 16728Code and Data Size: Current core subsystem library sizes are shown 16729below. These are the code and data sizes for the acpica.lib 16730produced by the Microsoft Visual C++ 6.0 compiler, and these 16731values do not include any ACPI driver or OSPM code. The debug 16732version of the code includes the debug output trace mechanism and 16733has a larger code and data size. Note that these values will vary 16734depending on the efficiency of the compiler and the compiler 16735options used during generation. 16736 16737 Previous Release 16738 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 16739 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 16740 Current Release: 16741 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 16742 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 16743 16744 167452) Linux 16746 16747 16748Added preliminary support for obtaining _TRA data for PCI root 16749bridges (Bjorn Helgaas). 16750 16751 167523) iASL Compiler Version X2046: 16753 16754Fixed a problem where the "_DDN" reserved name was defined to be a 16755control method with one argument. There are no arguments, and 16756_DDN does not have to be a control method. 16757 16758Fixed a problem with the Linux version of the compiler where the 16759source lines printed with error messages were the wrong lines. 16760This turned out to be the "LF versus CR/LF" difference between 16761Windows and Unix. This appears to be the longstanding issue 16762concerning listing output and error messages. 16763 16764Fixed a problem with the Linux version of compiler where opcode 16765names within error messages were wrong. This was caused by a 16766slight difference in the output of the Flex tool on Linux versus 16767Windows. 16768 16769Fixed a problem with the Linux compiler where the hex output files 16770contained some garbage data caused by an internal buffer overrun. 16771 16772 16773---------------------------------------- 1677417 May 2002. Summary of changes for this release. 16775 16776 167771) ACPI CA Core Subsystem Version 20020517: 16778 16779Implemented a workaround to an BIOS bug discovered on the HP 16780OmniBook where the FADT revision number and the table size are 16781inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 16782behavior is to fallback to using only the ACPI 1.0 fields of the 16783FADT if the table is too small to be a ACPI 2.0 table as claimed 16784by the revision number. Although this is a BIOS bug, this is a 16785case where the workaround is simple enough and with no side 16786effects, so it seemed prudent to add it. A warning message is 16787issued, however. 16788 16789Implemented minimum size checks for the fixed-length ACPI tables - 16790- the FADT and FACS, as well as consistency checks between the 16791revision number and the table size. 16792 16793Fixed a reported problem in the table override support where the 16794new table pointer was incorrectly treated as a physical address 16795instead of a logical address. 16796 16797Eliminated the use of the AE_AML_ERROR exception and replaced it 16798with more descriptive codes. 16799 16800Fixed a problem where an exception would occur if an ASL Field was 16801defined with no named Field Units underneath it (used by some 16802index fields). 16803 16804Code and Data Size: Current core subsystem library sizes are shown 16805below. These are the code and data sizes for the acpica.lib 16806produced by the Microsoft Visual C++ 6.0 compiler, and these 16807values do not include any ACPI driver or OSPM code. The debug 16808version of the code includes the debug output trace mechanism and 16809has a larger code and data size. Note that these values will vary 16810depending on the efficiency of the compiler and the compiler 16811options used during generation. 16812 16813 Previous Release 16814 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 16815 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 16816 Current Release: 16817 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 16818 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 16819 16820 16821 168222) Linux 16823 16824Much work done on ACPI init (MADT and PCI IRQ routing support). 16825(Paul D. and Dominik Brodowski) 16826 16827Fix PCI IRQ-related panic on boot (Sam Revitch) 16828 16829Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 16830 16831Fix "MHz" typo (Dominik Brodowski) 16832 16833Fix RTC year 2000 issue (Dominik Brodowski) 16834 16835Preclude multiple button proc entries (Eric Brunet) 16836 16837Moved arch-specific code out of include/platform/aclinux.h 16838 168393) iASL Compiler Version X2044: 16840 16841Implemented error checking for the string used in the EISAID macro 16842(Usually used in the definition of the _HID object.) The code now 16843strictly enforces the PnP format - exactly 7 characters, 3 16844uppercase letters and 4 hex digits. 16845 16846If a raw string is used in the definition of the _HID object 16847(instead of the EISAID macro), the string must contain all 16848alphanumeric characters (e.g., "*PNP0011" is not allowed because 16849of the asterisk.) 16850 16851Implemented checking for invalid use of ACPI reserved names for 16852most of the name creation operators (Name, Device, Event, Mutex, 16853OperationRegion, PowerResource, Processor, and ThermalZone.) 16854Previously, this check was only performed for control methods. 16855 16856Implemented an additional check on the Name operator to emit an 16857error if a reserved name that must be implemented in ASL as a 16858control method is used. We know that a reserved name must be a 16859method if it is defined with input arguments. 16860 16861The warning emitted when a namespace object reference is not found 16862during the cross reference phase has been changed into an error. 16863The "External" directive should be used for names defined in other 16864modules. 16865 16866 168674) Tools and Utilities 16868 16869The 16-bit tools (adump16 and aexec16) have been regenerated and 16870tested. 16871 16872Fixed a problem with the output of both acpidump and adump16 where 16873the indentation of closing parentheses and brackets was not 16874 16875aligned properly with the parent block. 16876 16877 16878---------------------------------------- 1687903 May 2002. Summary of changes for this release. 16880 16881 168821) ACPI CA Core Subsystem Version 20020503: 16883 16884Added support a new OSL interface that allows the host operating 16885 16886system software to override the DSDT found in the firmware - 16887AcpiOsTableOverride. With this interface, the OSL can examine the 16888version of the firmware DSDT and replace it with a different one 16889if desired. 16890 16891Added new external interfaces for accessing ACPI registers from 16892device drivers and other system software - AcpiGetRegister and 16893AcpiSetRegister. This was simply an externalization of the 16894existing AcpiHwBitRegister interfaces. 16895 16896Fixed a regression introduced in the previous build where the 16897ASL/AML CreateField operator always returned an error, 16898"destination must be a NS Node". 16899 16900Extended the maximum time (before failure) to successfully enable 16901ACPI mode to 3 seconds. 16902 16903Code and Data Size: Current core subsystem library sizes are shown 16904below. These are the code and data sizes for the acpica.lib 16905produced by the Microsoft Visual C++ 6.0 compiler, and these 16906values do not include any ACPI driver or OSPM code. The debug 16907version of the code includes the debug output trace mechanism and 16908has a larger code and data size. Note that these values will vary 16909depending on the efficiency of the compiler and the compiler 16910options used during generation. 16911 16912 Previous Release 16913 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 16914 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 16915 Current Release: 16916 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 16917 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 16918 16919 169202) Linux 16921 16922Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 16923free. While 3 out of 4 of our in-house systems work fine, the last 16924one still hangs when testing the LAPIC timer. 16925 16926Renamed many files in 2.5 kernel release to omit "acpi_" from the 16927name. 16928 16929Added warning on boot for Presario 711FR. 16930 16931Sleep improvements (Pavel Machek) 16932 16933ACPI can now be built without CONFIG_PCI enabled. 16934 16935IA64: Fixed memory map functions (JI Lee) 16936 16937 169383) iASL Compiler Version X2043: 16939 16940Added support to allow the compiler to be integrated into the MS 16941VC++ development environment for one-button compilation of single 16942files or entire projects -- with error-to-source-line mapping. 16943 16944Implemented support for compile-time constant folding for the 16945Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 16946specification. This allows the ASL writer to use expressions 16947instead of Integer/Buffer/String constants in terms that must 16948evaluate to constants at compile time and will also simplify the 16949emitted AML in any such sub-expressions that can be folded 16950(evaluated at compile-time.) This increases the size of the 16951compiler significantly because a portion of the ACPI CA AML 16952interpreter is included within the compiler in order to pre- 16953evaluate constant expressions. 16954 16955 16956Fixed a problem with the "Unicode" ASL macro that caused the 16957compiler to fault. (This macro is used in conjunction with the 16958_STR reserved name.) 16959 16960Implemented an AML opcode optimization to use the Zero, One, and 16961Ones opcodes where possible to further reduce the size of integer 16962constants and thus reduce the overall size of the generated AML 16963code. 16964 16965Implemented error checking for new reserved terms for ACPI version 169662.0A. 16967 16968Implemented the -qr option to display the current list of ACPI 16969reserved names known to the compiler. 16970 16971Implemented the -qc option to display the current list of ASL 16972operators that are allowed within constant expressions and can 16973therefore be folded at compile time if the operands are constants. 16974 16975 169764) Documentation 16977 16978Updated the Programmer's Reference for new interfaces, data types, 16979and memory allocation model options. 16980 16981Updated the iASL Compiler User Reference to apply new format and 16982add information about new features and options. 16983 16984---------------------------------------- 1698519 April 2002. Summary of changes for this release. 16986 169871) ACPI CA Core Subsystem Version 20020419: 16988 16989The source code base for the Core Subsystem has been completely 16990cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 16991versions. The Lint option files used are included in the 16992/acpi/generate/lint directory. 16993 16994Implemented enhanced status/error checking across the entire 16995Hardware manager subsystem. Any hardware errors (reported from 16996the OSL) are now bubbled up and will abort a running control 16997method. 16998 16999 17000Fixed a problem where the per-ACPI-table integer width (32 or 64) 17001was stored only with control method nodes, causing a fault when 17002non-control method code was executed during table loading. The 17003solution implemented uses a global variable to indicate table 17004width across the entire ACPI subsystem. Therefore, ACPI CA does 17005not support mixed integer widths across different ACPI tables 17006(DSDT, SSDT). 17007 17008Fixed a problem where NULL extended fields (X fields) in an ACPI 170092.0 ACPI FADT caused the table load to fail. Although the 17010existing ACPI specification is a bit fuzzy on this topic, the new 17011behavior is to fall back on a ACPI 1.0 field if the corresponding 17012ACPI 2.0 X field is zero (even though the table revision indicates 17013a full ACPI 2.0 table.) The ACPI specification will be updated to 17014clarify this issue. 17015 17016Fixed a problem with the SystemMemory operation region handler 17017where memory was always accessed byte-wise even if the AML- 17018specified access width was larger than a byte. This caused 17019problems on systems with memory-mapped I/O. Memory is now 17020accessed with the width specified. On systems that do not support 17021non-aligned transfers, a check is made to guarantee proper address 17022alignment before proceeding in order to avoid an AML-caused 17023alignment fault within the kernel. 17024 17025 17026Fixed a problem with the ExtendedIrq resource where only one byte 17027of the 4-byte Irq field was extracted. 17028 17029Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 17030function was out of date and required a rewrite. 17031 17032Code and Data Size: Current core subsystem library sizes are shown 17033below. These are the code and data sizes for the acpica.lib 17034produced by the Microsoft Visual C++ 6.0 compiler, and these 17035values do not include any ACPI driver or OSPM code. The debug 17036version of the code includes the debug output trace mechanism and 17037has a larger code and data size. Note that these values will vary 17038depending on the efficiency of the compiler and the compiler 17039options used during generation. 17040 17041 Previous Release 17042 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 17043 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 17044 Current Release: 17045 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 17046 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 17047 17048 170492) Linux 17050 17051PCI IRQ routing fixes (Dominik Brodowski) 17052 17053 170543) iASL Compiler Version X2042: 17055 17056Implemented an additional compile-time error check for a field 17057unit whose size + minimum access width would cause a run-time 17058access beyond the end-of-region. Previously, only the field size 17059itself was checked. 17060 17061The Core subsystem and iASL compiler now share a common parse 17062object in preparation for compile-time evaluation of the type 170633/4/5 ASL operators. 17064 17065 17066---------------------------------------- 17067Summary of changes for this release: 03_29_02 17068 170691) ACPI CA Core Subsystem Version 20020329: 17070 17071Implemented support for late evaluation of TermArg operands to 17072Buffer and Package objects. This allows complex expressions to be 17073used in the declarations of these object types. 17074 17075Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 170761.0, if the field was larger than 32 bits, it was returned as a 17077buffer - otherwise it was returned as an integer. In ACPI 2.0, 17078the field is returned as a buffer only if the field is larger than 1707964 bits. The TableRevision is now considered when making this 17080conversion to avoid incompatibility with existing ASL code. 17081 17082Implemented logical addressing for AcpiOsGetRootPointer. This 17083allows an RSDP with either a logical or physical address. With 17084this support, the host OS can now override all ACPI tables with 17085one logical RSDP. Includes implementation of "typed" pointer 17086support to allow a common data type for both physical and logical 17087pointers internally. This required a change to the 17088AcpiOsGetRootPointer interface. 17089 17090Implemented the use of ACPI 2.0 Generic Address Structures for all 17091GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 17092mapped I/O for these ACPI features. 17093 17094Initialization now ignores not only non-required tables (All 17095tables other than the FADT, FACS, DSDT, and SSDTs), but also does 17096not validate the table headers of unrecognized tables. 17097 17098Fixed a problem where a notify handler could only be 17099installed/removed on an object of type Device. All "notify" 17100 17101objects are now supported -- Devices, Processor, Power, and 17102Thermal. 17103 17104Removed most verbosity from the ACPI_DB_INFO debug level. Only 17105critical information is returned when this debug level is enabled. 17106 17107Code and Data Size: Current core subsystem library sizes are shown 17108below. These are the code and data sizes for the acpica.lib 17109produced by the Microsoft Visual C++ 6.0 compiler, and these 17110values do not include any ACPI driver or OSPM code. The debug 17111version of the code includes the debug output trace mechanism and 17112has a larger code and data size. Note that these values will vary 17113depending on the efficiency of the compiler and the compiler 17114options used during generation. 17115 17116 Previous Release 17117 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 17118 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 17119 Current Release: 17120 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 17121 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 17122 17123 171242) Linux: 17125 17126The processor driver (acpi_processor.c) now fully supports ACPI 171272.0-based processor performance control (e.g. Intel(R) 17128SpeedStep(TM) technology) Note that older laptops that only have 17129the Intel "applet" interface are not supported through this. The 17130'limit' and 'performance' interface (/proc) are fully functional. 17131[Note that basic policy for controlling performance state 17132transitions will be included in the next version of ospmd.] The 17133idle handler was modified to more aggressively use C2, and PIIX4 17134errata handling underwent a complete overhaul (big thanks to 17135Dominik Brodowski). 17136 17137Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 17138based devices in the ACPI namespace are now dynamically bound 17139(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 17140This allows, among other things, ACPI to resolve bus numbers for 17141subordinate PCI bridges. 17142 17143Enhanced PCI IRQ routing to get the proper bus number for _PRT 17144entries defined underneath PCI bridges. 17145 17146Added IBM 600E to bad bios list due to invalid _ADR value for 17147PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 17148 17149In the process of adding full MADT support (e.g. IOAPIC) for IA32 17150(acpi.c, mpparse.c) -- stay tuned. 17151 17152Added back visual differentiation between fixed-feature and 17153control-method buttons in dmesg. Buttons are also subtyped (e.g. 17154button/power/PWRF) to simplify button identification. 17155 17156We no longer use -Wno-unused when compiling debug. Please ignore 17157any "_THIS_MODULE defined but not used" messages. 17158 17159Can now shut down the system using "magic sysrq" key. 17160 17161 171623) iASL Compiler version 2041: 17163 17164Fixed a problem where conversion errors for hex/octal/decimal 17165constants were not reported. 17166 17167Implemented a fix for the General Register template Address field. 17168This field was 8 bits when it should be 64. 17169 17170Fixed a problem where errors/warnings were no longer being emitted 17171within the listing output file. 17172 17173Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 17174exactly 4 characters, alphanumeric only. 17175 17176 17177 17178 17179---------------------------------------- 17180Summary of changes for this release: 03_08_02 17181 17182 171831) ACPI CA Core Subsystem Version 20020308: 17184 17185Fixed a problem with AML Fields where the use of the "AccessAny" 17186keyword could cause an interpreter error due to attempting to read 17187or write beyond the end of the parent Operation Region. 17188 17189Fixed a problem in the SystemMemory Operation Region handler where 17190an attempt was made to map memory beyond the end of the region. 17191This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 17192errors on some Linux systems. 17193 17194Fixed a problem where the interpreter/namespace "search to root" 17195algorithm was not functioning for some object types. Relaxed the 17196internal restriction on the search to allow upsearches for all 17197external object types as well as most internal types. 17198 17199 172002) Linux: 17201 17202We now use safe_halt() macro versus individual calls to sti | hlt. 17203 17204Writing to the processor limit interface should now work. "echo 1" 17205will increase the limit, 2 will decrease, and 0 will reset to the 17206 17207default. 17208 17209 172103) ASL compiler: 17211 17212Fixed segfault on Linux version. 17213 17214 17215---------------------------------------- 17216Summary of changes for this release: 02_25_02 17217 172181) ACPI CA Core Subsystem: 17219 17220 17221Fixed a problem where the GPE bit masks were not initialized 17222properly, causing erratic GPE behavior. 17223 17224Implemented limited support for multiple calling conventions. The 17225code can be generated with either the VPL (variable parameter 17226list, or "C") convention, or the FPL (fixed parameter list, or 17227"Pascal") convention. The core subsystem is about 3.4% smaller 17228when generated with FPL. 17229 17230 172312) Linux 17232 17233Re-add some /proc/acpi/event functionality that was lost during 17234the rewrite 17235 17236Resolved issue with /proc events for fixed-feature buttons showing 17237up as the system device. 17238 17239Fixed checks on C2/C3 latencies to be inclusive of maximum values. 17240 17241Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 17242 17243Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 17244 17245Fixed limit interface & usage to fix bugs with passive cooling 17246hysterisis. 17247 17248Restructured PRT support. 17249 17250 17251---------------------------------------- 17252Summary of changes for this label: 02_14_02 17253 17254 172551) ACPI CA Core Subsystem: 17256 17257Implemented support in AcpiLoadTable to allow loading of FACS and 17258FADT tables. 17259 17260Support for the now-obsolete interim 0.71 64-bit ACPI tables has 17261been removed. All 64-bit platforms should be migrated to the ACPI 172622.0 tables. The actbl71.h header has been removed from the source 17263tree. 17264 17265All C macros defined within the subsystem have been prefixed with 17266"ACPI_" to avoid collision with other system include files. 17267 17268Removed the return value for the two AcpiOsPrint interfaces, since 17269it is never used and causes lint warnings for ignoring the return 17270value. 17271 17272Added error checking to all internal mutex acquire and release 17273calls. Although a failure from one of these interfaces is 17274probably a fatal system error, these checks will cause the 17275immediate abort of the currently executing method or interface. 17276 17277Fixed a problem where the AcpiSetCurrentResources interface could 17278fault. This was a side effect of the deployment of the new memory 17279allocation model. 17280 17281Fixed a couple of problems with the Global Lock support introduced 17282in the last major build. The "common" (1.0/2.0) internal FACS was 17283being overwritten with the FACS signature and clobbering the 17284Global Lock pointer. Also, the actual firmware FACS was being 17285unmapped after construction of the "common" FACS, preventing 17286access to the actual Global Lock field within it. The "common" 17287internal FACS is no longer installed as an actual ACPI table; it 17288is used simply as a global. 17289 17290Code and Data Size: Current core subsystem library sizes are shown 17291below. These are the code and data sizes for the acpica.lib 17292produced by the Microsoft Visual C++ 6.0 compiler, and these 17293values do not include any ACPI driver or OSPM code. The debug 17294version of the code includes the debug output trace mechanism and 17295has a larger code and data size. Note that these values will vary 17296depending on the efficiency of the compiler and the compiler 17297options used during generation. 17298 17299 Previous Release (02_07_01) 17300 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 17301 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 17302 Current Release: 17303 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 17304 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 17305 17306 173072) Linux 17308 17309Updated Linux-specific code for core macro and OSL interface 17310changes described above. 17311 17312Improved /proc/acpi/event. It now can be opened only once and has 17313proper poll functionality. 17314 17315Fixed and restructured power management (acpi_bus). 17316 17317Only create /proc "view by type" when devices of that class exist. 17318 17319Fixed "charging/discharging" bug (and others) in acpi_battery. 17320 17321Improved thermal zone code. 17322 17323 173243) ASL Compiler, version X2039: 17325 17326 17327Implemented the new compiler restriction on ASL String hex/octal 17328escapes to non-null, ASCII values. An error results if an invalid 17329value is used. (This will require an ACPI 2.0 specification 17330change.) 17331 17332AML object labels that are output to the optional C and ASM source 17333are now prefixed with both the ACPI table signature and table ID 17334to help guarantee uniqueness within a large BIOS project. 17335 17336 17337---------------------------------------- 17338Summary of changes for this label: 02_01_02 17339 173401) ACPI CA Core Subsystem: 17341 17342ACPI 2.0 support is complete in the entire Core Subsystem and the 17343ASL compiler. All new ACPI 2.0 operators are implemented and all 17344other changes for ACPI 2.0 support are complete. With 17345simultaneous code and data optimizations throughout the subsystem, 17346ACPI 2.0 support has been implemented with almost no additional 17347cost in terms of code and data size. 17348 17349Implemented a new mechanism for allocation of return buffers. If 17350the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 17351be allocated on behalf of the caller. Consolidated all return 17352buffer validation and allocation to a common procedure. Return 17353buffers will be allocated via the primary OSL allocation interface 17354since it appears that a separate pool is not needed by most users. 17355If a separate pool is required for these buffers, the caller can 17356still use the original mechanism and pre-allocate the buffer(s). 17357 17358Implemented support for string operands within the DerefOf 17359operator. 17360 17361Restructured the Hardware and Event managers to be table driven, 17362simplifying the source code and reducing the amount of generated 17363code. 17364 17365Split the common read/write low-level ACPI register bitfield 17366procedure into a separate read and write, simplifying the code 17367considerably. 17368 17369Obsoleted the AcpiOsCallocate OSL interface. This interface was 17370used only a handful of times and didn't have enough critical mass 17371for a separate interface. Replaced with a common calloc procedure 17372in the core. 17373 17374Fixed a reported problem with the GPE number mapping mechanism 17375that allows GPE1 numbers to be non-contiguous with GPE0. 17376Reorganized the GPE information and shrunk a large array that was 17377originally large enough to hold info for all possible GPEs (256) 17378to simply large enough to hold all GPEs up to the largest GPE 17379number on the machine. 17380 17381Fixed a reported problem with resource structure alignment on 64- 17382bit platforms. 17383 17384Changed the AcpiEnableEvent and AcpiDisableEvent external 17385interfaces to not require any flags for the common case of 17386enabling/disabling a GPE. 17387 17388Implemented support to allow a "Notify" on a Processor object. 17389 17390Most TBDs in comments within the source code have been resolved 17391and eliminated. 17392 17393 17394Fixed a problem in the interpreter where a standalone parent 17395prefix (^) was not handled correctly in the interpreter and 17396debugger. 17397 17398Removed obsolete and unnecessary GPE save/restore code. 17399 17400Implemented Field support in the ASL Load operator. This allows a 17401table to be loaded from a named field, in addition to loading a 17402table directly from an Operation Region. 17403 17404Implemented timeout and handle support in the external Global Lock 17405interfaces. 17406 17407Fixed a problem in the AcpiDump utility where pathnames were no 17408longer being generated correctly during the dump of named objects. 17409 17410Modified the AML debugger to give a full display of if/while 17411predicates instead of just one AML opcode at a time. (The 17412predicate can have several nested ASL statements.) The old method 17413was confusing during single stepping. 17414 17415Code and Data Size: Current core subsystem library sizes are shown 17416below. These are the code and data sizes for the acpica.lib 17417produced by the Microsoft Visual C++ 6.0 compiler, and these 17418values do not include any ACPI driver or OSPM code. The debug 17419version of the code includes the debug output trace mechanism and 17420has a larger code and data size. Note that these values will vary 17421depending on the efficiency of the compiler and the compiler 17422options used during generation. 17423 17424 Previous Release (12_18_01) 17425 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 17426 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 17427 Current Release: 17428 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 17429 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 17430 174312) Linux 17432 17433 Implemented fix for PIIX reverse throttling errata (Processor 17434driver) 17435 17436Added new Limit interface (Processor and Thermal drivers) 17437 17438New thermal policy (Thermal driver) 17439 17440Many updates to /proc 17441 17442Battery "low" event support (Battery driver) 17443 17444Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 17445 17446IA32 - IA64 initialization unification, no longer experimental 17447 17448Menuconfig options redesigned 17449 174503) ASL Compiler, version X2037: 17451 17452Implemented several new output features to simplify integration of 17453AML code into firmware: 1) Output the AML in C source code with 17454labels for each named ASL object. The original ASL source code 17455is interleaved as C comments. 2) Output the AML in ASM source code 17456with labels and interleaved ASL source. 3) Output the AML in 17457raw hex table form, in either C or ASM. 17458 17459Implemented support for optional string parameters to the 17460LoadTable operator. 17461 17462Completed support for embedded escape sequences within string 17463literals. The compiler now supports all single character escapes 17464as well as the Octal and Hex escapes. Note: the insertion of a 17465null byte into a string literal (via the hex/octal escape) causes 17466the string to be immediately terminated. A warning is issued. 17467 17468Fixed a problem where incorrect AML was generated for the case 17469where an ASL namepath consists of a single parent prefix ( 17470 17471) with no trailing name segments. 17472 17473The compiler has been successfully generated with a 64-bit C 17474compiler. 17475 17476 17477 17478 17479---------------------------------------- 17480Summary of changes for this label: 12_18_01 17481 174821) Linux 17483 17484Enhanced blacklist with reason and severity fields. Any table's 17485signature may now be used to identify a blacklisted system. 17486 17487Call _PIC control method to inform the firmware which interrupt 17488model the OS is using. Turn on any disabled link devices. 17489 17490Cleaned up busmgr /proc error handling (Andreas Dilger) 17491 17492 2) ACPI CA Core Subsystem: 17493 17494Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 17495while loop) 17496 17497Completed implementation of the ACPI 2.0 "Continue", 17498"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 17499operators. All new ACPI 2.0 operators are now implemented in both 17500the ASL compiler and the AML interpreter. The only remaining ACPI 175012.0 task is support for the String data type in the DerefOf 17502operator. Fixed a problem with AcquireMutex where the status code 17503was lost if the caller had to actually wait for the mutex. 17504 17505Increased the maximum ASL Field size from 64K bits to 4G bits. 17506 17507Completed implementation of the external Global Lock interfaces -- 17508AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 17509Handler parameters were added. 17510 17511Completed another pass at removing warnings and issues when 17512compiling with 64-bit compilers. The code now compiles cleanly 17513with the Intel 64-bit C/C++ compiler. Most notably, the pointer 17514add and subtract (diff) macros have changed considerably. 17515 17516 17517Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1751864-bit platforms, 32-bits on all others. This type is used 17519wherever memory allocation and/or the C sizeof() operator is used, 17520and affects the OSL memory allocation interfaces AcpiOsAllocate 17521and AcpiOsCallocate. 17522 17523Implemented sticky user breakpoints in the AML debugger. 17524 17525Code and Data Size: Current core subsystem library sizes are shown 17526below. These are the code and data sizes for the acpica.lib 17527produced by the Microsoft Visual C++ 6.0 compiler, and these 17528values do not include any ACPI driver or OSPM code. The debug 17529version of the code includes the debug output trace mechanism and 17530has a larger code and data size. Note that these values will vary 17531depending on the efficiency of the compiler and the compiler 17532options used during generation. 17533 17534 Previous Release (12_05_01) 17535 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 17536 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 17537 Current Release: 17538 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 17539 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 17540 17541 3) ASL Compiler, version X2034: 17542 17543Now checks for (and generates an error if detected) the use of a 17544Break or Continue statement without an enclosing While statement. 17545 17546 17547Successfully generated the compiler with the Intel 64-bit C 17548compiler. 17549 17550 ---------------------------------------- 17551Summary of changes for this label: 12_05_01 17552 17553 1) ACPI CA Core Subsystem: 17554 17555The ACPI 2.0 CopyObject operator is fully implemented. This 17556operator creates a new copy of an object (and is also used to 17557bypass the "implicit conversion" mechanism of the Store operator.) 17558 17559The ACPI 2.0 semantics for the SizeOf operator are fully 17560implemented. The change is that performing a SizeOf on a 17561reference object causes an automatic dereference of the object to 17562tha actual value before the size is evaluated. This behavior was 17563undefined in ACPI 1.0. 17564 17565The ACPI 2.0 semantics for the Extended IRQ resource descriptor 17566have been implemented. The interrupt polarity and mode are now 17567independently set. 17568 17569Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 17570appearing in Package objects were not properly converted to 17571integers when the internal Package was converted to an external 17572object (via the AcpiEvaluateObject interface.) 17573 17574Fixed a problem with the namespace object deletion mechanism for 17575objects created by control methods. There were two parts to this 17576problem: 1) Objects created during the initialization phase method 17577parse were not being deleted, and 2) The object owner ID mechanism 17578to track objects was broken. 17579 17580Fixed a problem where the use of the ASL Scope operator within a 17581control method would result in an invalid opcode exception. 17582 17583Fixed a problem introduced in the previous label where the buffer 17584length required for the _PRT structure was not being returned 17585correctly. 17586 17587Code and Data Size: Current core subsystem library sizes are shown 17588below. These are the code and data sizes for the acpica.lib 17589produced by the Microsoft Visual C++ 6.0 compiler, and these 17590values do not include any ACPI driver or OSPM code. The debug 17591version of the code includes the debug output trace mechanism and 17592has a larger code and data size. Note that these values will vary 17593depending on the efficiency of the compiler and the compiler 17594options used during generation. 17595 17596 Previous Release (11_20_01) 17597 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 17598 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 17599 17600 Current Release: 17601 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 17602 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 17603 17604 2) Linux: 17605 17606Updated all files to apply cleanly against 2.4.16. 17607 17608Added basic PCI Interrupt Routing Table (PRT) support for IA32 17609(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 17610version supports both static and dynamic PRT entries, but dynamic 17611entries are treated as if they were static (not yet 17612reconfigurable). Architecture- specific code to use this data is 17613absent on IA32 but should be available shortly. 17614 17615Changed the initialization sequence to start the ACPI interpreter 17616(acpi_init) prior to initialization of the PCI driver (pci_init) 17617in init/main.c. This ordering is required to support PRT and 17618facilitate other (future) enhancement. A side effect is that the 17619ACPI bus driver and certain device drivers can no longer be loaded 17620as modules. 17621 17622Modified the 'make menuconfig' options to allow PCI Interrupt 17623Routing support to be included without the ACPI Bus and other 17624device drivers. 17625 17626 3) ASL Compiler, version X2033: 17627 17628Fixed some issues with the use of the new CopyObject and 17629DataTableRegion operators. Both are fully functional. 17630 17631 ---------------------------------------- 17632Summary of changes for this label: 11_20_01 17633 17634 20 November 2001. Summary of changes for this release. 17635 17636 1) ACPI CA Core Subsystem: 17637 17638Updated Index support to match ACPI 2.0 semantics. Storing a 17639Integer, String, or Buffer to an Index of a Buffer will store only 17640the least-significant byte of the source to the Indexed buffer 17641byte. Multiple writes are not performed. 17642 17643Fixed a problem where the access type used in an AccessAs ASL 17644operator was not recorded correctly into the field object. 17645 17646Fixed a problem where ASL Event objects were created in a 17647signalled state. Events are now created in an unsignalled state. 17648 17649The internal object cache is now purged after table loading and 17650initialization to reduce the use of dynamic kernel memory -- on 17651the assumption that object use is greatest during the parse phase 17652of the entire table (versus the run-time use of individual control 17653methods.) 17654 17655ACPI 2.0 variable-length packages are now fully operational. 17656 17657Code and Data Size: Code and Data optimizations have permitted new 17658feature development with an actual reduction in the library size. 17659Current core subsystem library sizes are shown below. These are 17660the code and data sizes for the acpica.lib produced by the 17661Microsoft Visual C++ 6.0 compiler, and these values do not include 17662any ACPI driver or OSPM code. The debug version of the code 17663includes the debug output trace mechanism and has a larger code 17664and data size. Note that these values will vary depending on the 17665efficiency of the compiler and the compiler options used during 17666generation. 17667 17668 Previous Release (11_09_01): 17669 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 17670 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 17671 17672 Current Release: 17673 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 17674 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 17675 17676 2) Linux: 17677 17678Enhanced the ACPI boot-time initialization code to allow the use 17679of Local APIC tables for processor enumeration on IA-32, and to 17680pave the way for a fully MPS-free boot (on SMP systems) in the 17681near future. This functionality replaces 17682arch/i386/kernel/acpitables.c, which was introduced in an earlier 176832.4.15-preX release. To enable this feature you must add 17684"acpi_boot=on" to the kernel command line -- see the help entry 17685for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 17686the works... 17687 17688Restructured the configuration options to allow boot-time table 17689parsing support without inclusion of the ACPI Interpreter (and 17690other) code. 17691 17692NOTE: This release does not include fixes for the reported events, 17693power-down, and thermal passive cooling issues (coming soon). 17694 17695 3) ASL Compiler: 17696 17697Added additional typechecking for Fields within restricted access 17698Operation Regions. All fields within EC and CMOS regions must be 17699declared with ByteAcc. All fields within SMBus regions must be 17700declared with the BufferAcc access type. 17701 17702Fixed a problem where the listing file output of control methods 17703no longer interleaved the actual AML code with the ASL source 17704code. 17705 17706 17707 17708 17709---------------------------------------- 17710Summary of changes for this label: 11_09_01 17711 177121) ACPI CA Core Subsystem: 17713 17714Implemented ACPI 2.0-defined support for writes to fields with a 17715Buffer, String, or Integer source operand that is smaller than the 17716target field. In these cases, the source operand is zero-extended 17717to fill the target field. 17718 17719Fixed a problem where a Field starting bit offset (within the 17720parent operation region) was calculated incorrectly if the 17721 17722alignment of the field differed from the access width. This 17723affected CreateWordField, CreateDwordField, CreateQwordField, and 17724possibly other fields that use the "AccessAny" keyword. 17725 17726Fixed a problem introduced in the 11_02_01 release where indirect 17727stores through method arguments did not operate correctly. 17728 177292) Linux: 17730 17731Implemented boot-time ACPI table parsing support 17732(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 17733facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 17734legacy BIOS interfaces (e.g. MPS) for the configuration of system 17735processors, memory, and interrupts during setup_arch(). Note that 17736this patch does not include the required architecture-specific 17737changes required to apply this information -- subsequent patches 17738will be posted for both IA32 and IA64 to achieve this. 17739 17740Added low-level sleep support for IA32 platforms, courtesy of Pat 17741Mochel. This allows IA32 systems to transition to/from various 17742sleeping states (e.g. S1, S3), although the lack of a centralized 17743driver model and power-manageable drivers will prevent its 17744(successful) use on most systems. 17745 17746Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 17747submenu, unified IA32 and IA64 options, added new "Boot using ACPI 17748tables" option, etc. 17749 17750Increased the default timeout for the EC driver from 1ms to 10ms 17751(1000 cycles of 10us) to try to address AE_TIME errors during EC 17752transactions. 17753 17754 ---------------------------------------- 17755Summary of changes for this label: 11_02_01 17756 177571) ACPI CA Core Subsystem: 17758 17759ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 17760(QWordAcc keyword). All ACPI 2.0 64-bit support is now 17761implemented. 17762 17763OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 17764changes to support ACPI 2.0 Qword field access. Read/Write 17765PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 17766accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 17767the value parameter for the address space handler interface is now 17768an ACPI_INTEGER. OSL implementations of these interfaces must now 17769handle the case where the Width parameter is 64. 17770 17771Index Fields: Fixed a problem where unaligned bit assembly and 17772disassembly for IndexFields was not supported correctly. 17773 17774Index and Bank Fields: Nested Index and Bank Fields are now 17775supported. During field access, a check is performed to ensure 17776that the value written to an Index or Bank register is not out of 17777the range of the register. The Index (or Bank) register is 17778written before each access to the field data. Future support will 17779include allowing individual IndexFields to be wider than the 17780DataRegister width. 17781 17782Fields: Fixed a problem where the AML interpreter was incorrectly 17783attempting to write beyond the end of a Field/OpRegion. This was 17784a boundary case that occurred when a DWORD field was written to a 17785BYTE access OpRegion, forcing multiple writes and causing the 17786interpreter to write one datum too many. 17787 17788Fields: Fixed a problem with Field/OpRegion access where the 17789starting bit address of a field was incorrectly calculated if the 17790current access type was wider than a byte (WordAcc, DwordAcc, or 17791QwordAcc). 17792 17793Fields: Fixed a problem where forward references to individual 17794FieldUnits (individual Field names within a Field definition) were 17795not resolved during the AML table load. 17796 17797Fields: Fixed a problem where forward references from a Field 17798definition to the parent Operation Region definition were not 17799resolved during the AML table load. 17800 17801Fields: Duplicate FieldUnit names within a scope are now detected 17802during AML table load. 17803 17804Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 17805returned an incorrect name for the root node. 17806 17807Code and Data Size: Code and Data optimizations have permitted new 17808feature development with an actual reduction in the library size. 17809Current core subsystem library sizes are shown below. These are 17810the code and data sizes for the acpica.lib produced by the 17811Microsoft Visual C++ 6.0 compiler, and these values do not include 17812any ACPI driver or OSPM code. The debug version of the code 17813includes the debug output trace mechanism and has a larger code 17814and data size. Note that these values will vary depending on the 17815efficiency of the compiler and the compiler options used during 17816generation. 17817 17818 Previous Release (10_18_01): 17819 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 17820 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 17821 17822 Current Release: 17823 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 17824 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 17825 17826 2) Linux: 17827 17828Improved /proc processor output (Pavel Machek) Re-added 17829MODULE_LICENSE("GPL") to all modules. 17830 17831 3) ASL Compiler version X2030: 17832 17833Duplicate FieldUnit names within a scope are now detected and 17834flagged as errors. 17835 17836 4) Documentation: 17837 17838Programmer Reference updated to reflect OSL and address space 17839handler interface changes described above. 17840 17841---------------------------------------- 17842Summary of changes for this label: 10_18_01 17843 17844ACPI CA Core Subsystem: 17845 17846Fixed a problem with the internal object reference count mechanism 17847that occasionally caused premature object deletion. This resolves 17848all of the outstanding problem reports where an object is deleted 17849in the middle of an interpreter evaluation. Although this problem 17850only showed up in rather obscure cases, the solution to the 17851problem involved an adjustment of all reference counts involving 17852objects attached to namespace nodes. 17853 17854Fixed a problem with Field support in the interpreter where 17855writing to an aligned field whose length is an exact multiple (2 17856or greater) of the field access granularity would cause an attempt 17857to write beyond the end of the field. 17858 17859The top level AML opcode execution functions within the 17860interpreter have been renamed with a more meaningful and 17861consistent naming convention. The modules exmonad.c and 17862exdyadic.c were eliminated. New modules are exoparg1.c, 17863exoparg2.c, exoparg3.c, and exoparg6.c. 17864 17865Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 17866 17867Fixed a problem where the AML debugger was causing some internal 17868objects to not be deleted during subsystem termination. 17869 17870Fixed a problem with the external AcpiEvaluateObject interface 17871where the subsystem would fault if the named object to be 17872evaluated referred to a constant such as Zero, Ones, etc. 17873 17874Fixed a problem with IndexFields and BankFields where the 17875subsystem would fault if the index, data, or bank registers were 17876not defined in the same scope as the field itself. 17877 17878Added printf format string checking for compilers that support 17879this feature. Corrected more than 50 instances of issues with 17880format specifiers within invocations of ACPI_DEBUG_PRINT 17881throughout the core subsystem code. 17882 17883The ASL "Revision" operator now returns the ACPI support level 17884implemented in the core - the value "2" since the ACPI 2.0 support 17885is more than 50% implemented. 17886 17887Enhanced the output of the AML debugger "dump namespace" command 17888to output in a more human-readable form. 17889 17890Current core subsystem library code sizes are shown below. These 17891 17892are the code and data sizes for the acpica.lib produced by the 17893Microsoft Visual C++ 6.0 compiler, and these values do not include 17894any ACPI driver or OSPM code. The debug version of the code 17895includes the full debug trace mechanism -- leading to a much 17896 17897larger code and data size. Note that these values will vary 17898depending on the efficiency of the compiler and the compiler 17899options used during generation. 17900 17901 Previous Label (09_20_01): 17902 Non-Debug Version: 65K Code, 5K Data, 70K Total 17903 Debug Version: 138K Code, 58K Data, 196K Total 17904 17905 This Label: 17906 17907 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 17908 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 17909 17910Linux: 17911 17912Implemented a "Bad BIOS Blacklist" to track machines that have 17913known ASL/AML problems. 17914 17915Enhanced the /proc interface for the thermal zone driver and added 17916support for _HOT (the critical suspend trip point). The 'info' 17917file now includes threshold/policy information, and allows setting 17918of _SCP (cooling preference) and _TZP (polling frequency) values 17919to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 17920frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 17921preference to the passive/quiet mode (if supported by the ASL). 17922 17923Implemented a workaround for a gcc bug that resuted in an OOPs 17924when loading the control method battery driver. 17925 17926 ---------------------------------------- 17927Summary of changes for this label: 09_20_01 17928 17929 ACPI CA Core Subsystem: 17930 17931The AcpiEnableEvent and AcpiDisableEvent interfaces have been 17932modified to allow individual GPE levels to be flagged as wake- 17933enabled (i.e., these GPEs are to remain enabled when the platform 17934sleeps.) 17935 17936The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 17937support wake-enabled GPEs. This means that upon entering the 17938sleep state, all GPEs that are not wake-enabled are disabled. 17939When leaving the sleep state, these GPEs are re-enabled. 17940 17941A local double-precision divide/modulo module has been added to 17942enhance portability to OS kernels where a 64-bit math library is 17943not available. The new module is "utmath.c". 17944 17945Several optimizations have been made to reduce the use of CPU 17946stack. Originally over 2K, the maximum stack usage is now below 179472K at 1860 bytes (1.82k) 17948 17949Fixed a problem with the AcpiGetFirmwareTable interface where the 17950root table pointer was not mapped into a logical address properly. 17951 17952Fixed a problem where a NULL pointer was being dereferenced in the 17953interpreter code for the ASL Notify operator. 17954 17955Fixed a problem where the use of the ASL Revision operator 17956returned an error. This operator now returns the current version 17957of the ACPI CA core subsystem. 17958 17959Fixed a problem where objects passed as control method parameters 17960to AcpiEvaluateObject were always deleted at method termination. 17961However, these objects may end up being stored into the namespace 17962by the called method. The object reference count mechanism was 17963applied to these objects instead of a force delete. 17964 17965Fixed a problem where static strings or buffers (contained in the 17966AML code) that are declared as package elements within the ASL 17967code could cause a fault because the interpreter would attempt to 17968delete them. These objects are now marked with the "static 17969object" flag to prevent any attempt to delete them. 17970 17971Implemented an interpreter optimization to use operands directly 17972from the state object instead of extracting the operands to local 17973variables. This reduces stack use and code size, and improves 17974performance. 17975 17976The module exxface.c was eliminated as it was an unnecessary extra 17977layer of code. 17978 17979Current core subsystem library code sizes are shown below. These 17980are the code and data sizes for the acpica.lib produced by the 17981Microsoft Visual C++ 6.0 compiler, and these values do not include 17982any ACPI driver or OSPM code. The debug version of the code 17983includes the full debug trace mechanism -- leading to a much 17984larger code and data size. Note that these values will vary 17985depending on the efficiency of the compiler and the compiler 17986options used during generation. 17987 17988 Non-Debug Version: 65K Code, 5K Data, 70K Total 17989(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 17990Total (Previously 195K) 17991 17992Linux: 17993 17994Support for ACPI 2.0 64-bit integers has been added. All ACPI 17995Integer objects are now 64 bits wide 17996 17997All Acpi data types and structures are now in lower case. Only 17998Acpi macros are upper case for differentiation. 17999 18000 Documentation: 18001 18002Changes to the external interfaces as described above. 18003 18004 ---------------------------------------- 18005Summary of changes for this label: 08_31_01 18006 18007 ACPI CA Core Subsystem: 18008 18009A bug with interpreter implementation of the ASL Divide operator 18010was found and fixed. The implicit function return value (not the 18011explicit store operands) was returning the remainder instead of 18012the quotient. This was a longstanding bug and it fixes several 18013known outstanding issues on various platforms. 18014 18015The ACPI_DEBUG_PRINT and function trace entry/exit macros have 18016been further optimized for size. There are 700 invocations of the 18017DEBUG_PRINT macro alone, so each optimization reduces the size of 18018the debug version of the subsystem significantly. 18019 18020A stack trace mechanism has been implemented. The maximum stack 18021usage is about 2K on 32-bit platforms. The debugger command "stat 18022stack" will display the current maximum stack usage. 18023 18024All public symbols and global variables within the subsystem are 18025now prefixed with the string "Acpi". This keeps all of the 18026symbols grouped together in a kernel map, and avoids conflicts 18027with other kernel subsystems. 18028 18029Most of the internal fixed lookup tables have been moved into the 18030code segment via the const operator. 18031 18032Several enhancements have been made to the interpreter to both 18033reduce the code size and improve performance. 18034 18035Current core subsystem library code sizes are shown below. These 18036are the code and data sizes for the acpica.lib produced by the 18037Microsoft Visual C++ 6.0 compiler, and these values do not include 18038any ACPI driver or OSPM code. The debug version of the code 18039includes the full debug trace mechanism which contains over 700 18040invocations of the DEBUG_PRINT macro, 500 function entry macro 18041invocations, and over 900 function exit macro invocations -- 18042leading to a much larger code and data size. Note that these 18043values will vary depending on the efficiency of the compiler and 18044the compiler options used during generation. 18045 18046 Non-Debug Version: 64K Code, 5K Data, 69K Total 18047Debug Version: 137K Code, 58K Data, 195K Total 18048 18049 Linux: 18050 18051Implemented wbinvd() macro, pending a kernel-wide definition. 18052 18053Fixed /proc/acpi/event to handle poll() and short reads. 18054 18055 ASL Compiler, version X2026: 18056 18057Fixed a problem introduced in the previous label where the AML 18058 18059code emitted for package objects produced packages with zero 18060length. 18061 18062 ---------------------------------------- 18063Summary of changes for this label: 08_16_01 18064 18065ACPI CA Core Subsystem: 18066 18067The following ACPI 2.0 ASL operators have been implemented in the 18068AML interpreter (These are already supported by the Intel ASL 18069compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 18070ToBuffer. Support for 64-bit AML constants is implemented in the 18071AML parser, debugger, and disassembler. 18072 18073The internal memory tracking mechanism (leak detection code) has 18074been upgraded to reduce the memory overhead (a separate tracking 18075block is no longer allocated for each memory allocation), and now 18076supports all of the internal object caches. 18077 18078The data structures and code for the internal object caches have 18079been coelesced and optimized so that there is a single cache and 18080memory list data structure and a single group of functions that 18081implement generic cache management. This has reduced the code 18082size in both the debug and release versions of the subsystem. 18083 18084The DEBUG_PRINT macro(s) have been optimized for size and replaced 18085by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 18086different, because it generates a single call to an internal 18087function. This results in a savings of about 90 bytes per 18088invocation, resulting in an overall code and data savings of about 1808916% in the debug version of the subsystem. 18090 18091 Linux: 18092 18093Fixed C3 disk corruption problems and re-enabled C3 on supporting 18094machines. 18095 18096Integrated low-level sleep code by Patrick Mochel. 18097 18098Further tweaked source code Linuxization. 18099 18100Other minor fixes. 18101 18102 ASL Compiler: 18103 18104Support for ACPI 2.0 variable length packages is fixed/completed. 18105 18106Fixed a problem where the optional length parameter for the ACPI 181072.0 ToString operator. 18108 18109Fixed multiple extraneous error messages when a syntax error is 18110detected within the declaration line of a control method. 18111 18112 ---------------------------------------- 18113Summary of changes for this label: 07_17_01 18114 18115ACPI CA Core Subsystem: 18116 18117Added a new interface named AcpiGetFirmwareTable to obtain any 18118ACPI table via the ACPI signature. The interface can be called at 18119any time during kernel initialization, even before the kernel 18120virtual memory manager is initialized and paging is enabled. This 18121allows kernel subsystems to obtain ACPI tables very early, even 18122before the ACPI CA subsystem is initialized. 18123 18124Fixed a problem where Fields defined with the AnyAcc attribute 18125could be resolved to the incorrect address under the following 18126conditions: 1) the field width is larger than 8 bits and 2) the 18127parent operation region is not defined on a DWORD boundary. 18128 18129Fixed a problem where the interpreter is not being locked during 18130namespace initialization (during execution of the _INI control 18131methods), causing an error when an attempt is made to release it 18132later. 18133 18134ACPI 2.0 support in the AML Interpreter has begun and will be 18135ongoing throughout the rest of this year. In this label, The Mod 18136operator is implemented. 18137 18138Added a new data type to contain full PCI addresses named 18139ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 18140and Function values. 18141 18142 Linux: 18143 18144Enhanced the Linux version of the source code to change most 18145capitalized ACPI type names to lowercase. For example, all 18146instances of ACPI_STATUS are changed to acpi_status. This will 18147result in a large diff, but the change is strictly cosmetic and 18148aligns the CA code closer to the Linux coding standard. 18149 18150OSL Interfaces: 18151 18152The interfaces to the PCI configuration space have been changed to 18153add the PCI Segment number and to split the single 32-bit combined 18154DeviceFunction field into two 16-bit fields. This was 18155accomplished by moving the four values that define an address in 18156PCI configuration space (segment, bus, device, and function) to 18157the new ACPI_PCI_ID structure. 18158 18159The changes to the PCI configuration space interfaces led to a 18160reexamination of the complete set of address space access 18161interfaces for PCI, I/O, and Memory. The previously existing 18 18162interfaces have proven difficult to maintain (any small change 18163must be propagated across at least 6 interfaces) and do not easily 18164allow for future expansion to 64 bits if necessary. Also, on some 18165systems, it would not be appropriate to demultiplex the access 18166width (8, 16, 32,or 64) before calling the OSL if the 18167corresponding native OS interfaces contain a similar access width 18168parameter. For these reasons, the 18 address space interfaces 18169have been replaced by these 6 new ones: 18170 18171AcpiOsReadPciConfiguration 18172AcpiOsWritePciConfiguration 18173AcpiOsReadMemory 18174AcpiOsWriteMemory 18175AcpiOsReadPort 18176AcpiOsWritePort 18177 18178Added a new interface named AcpiOsGetRootPointer to allow the OSL 18179to perform the platform and/or OS-specific actions necessary to 18180obtain the ACPI RSDP table pointer. On IA-32 platforms, this 18181interface will simply call down to the CA core to perform the low- 18182memory search for the table. On IA-64, the RSDP is obtained from 18183EFI. Migrating this interface to the OSL allows the CA core to 18184 18185remain OS and platform independent. 18186 18187Added a new interface named AcpiOsSignal to provide a generic 18188"function code and pointer" interface for various miscellaneous 18189signals and notifications that must be made to the host OS. The 18190first such signals are intended to support the ASL Fatal and 18191Breakpoint operators. In the latter case, the AcpiOsBreakpoint 18192interface has been obsoleted. 18193 18194The definition of the AcpiFormatException interface has been 18195changed to simplify its use. The caller no longer must supply a 18196buffer to the call; A pointer to a const string is now returned 18197directly. This allows the call to be easily used in printf 18198statements, etc. since the caller does not have to manage a local 18199buffer. 18200 18201 18202 ASL Compiler, Version X2025: 18203 18204The ACPI 2.0 Switch/Case/Default operators have been implemented 18205and are fully functional. They will work with all ACPI 1.0 18206interpreters, since the operators are simply translated to If/Else 18207pairs. 18208 18209The ACPI 2.0 ElseIf operator is implemented and will also work 18210with 1.0 interpreters, for the same reason. 18211 18212Implemented support for ACPI 2.0 variable-length packages. These 18213packages have a separate opcode, and their size is determined by 18214the interpreter at run-time. 18215 18216Documentation The ACPI CA Programmer Reference has been updated to 18217reflect the new interfaces and changes to existing interfaces. 18218 18219 ------------------------------------------ 18220Summary of changes for this label: 06_15_01 18221 18222 ACPI CA Core Subsystem: 18223 18224Fixed a problem where a DWORD-accessed field within a Buffer 18225object would get its byte address inadvertently rounded down to 18226the nearest DWORD. Buffers are always Byte-accessible. 18227 18228 ASL Compiler, version X2024: 18229 18230Fixed a problem where the Switch() operator would either fault or 18231hang the compiler. Note however, that the AML code for this ACPI 182322.0 operator is not yet implemented. 18233 18234Compiler uses the new AcpiOsGetTimer interface to obtain compile 18235timings. 18236 18237Implementation of the CreateField operator automatically converts 18238a reference to a named field within a resource descriptor from a 18239byte offset to a bit offset if required. 18240 18241Added some missing named fields from the resource descriptor 18242support. These are the names that are automatically created by the 18243compiler to reference fields within a descriptor. They are only 18244valid at compile time and are not passed through to the AML 18245interpreter. 18246 18247Resource descriptor named fields are now typed as Integers and 18248subject to compile-time typechecking when used in expressions. 18249 18250 ------------------------------------------ 18251Summary of changes for this label: 05_18_01 18252 18253 ACPI CA Core Subsystem: 18254 18255Fixed a couple of problems in the Field support code where bits 18256from adjacent fields could be returned along with the proper field 18257bits. Restructured the field support code to improve performance, 18258readability and maintainability. 18259 18260New DEBUG_PRINTP macro automatically inserts the procedure name 18261into the output, saving hundreds of copies of procedure name 18262strings within the source, shrinking the memory footprint of the 18263debug version of the core subsystem. 18264 18265 Source Code Structure: 18266 18267The source code directory tree was restructured to reflect the 18268current organization of the component architecture. Some files 18269and directories have been moved and/or renamed. 18270 18271 Linux: 18272 18273Fixed leaking kacpidpc processes. 18274 18275Fixed queueing event data even when /proc/acpi/event is not 18276opened. 18277 18278 ASL Compiler, version X2020: 18279 18280Memory allocation performance enhancement - over 24X compile time 18281improvement on large ASL files. Parse nodes and namestring 18282buffers are now allocated from a large internal compiler buffer. 18283 18284The temporary .SRC file is deleted unless the "-s" option is 18285specified 18286 18287The "-d" debug output option now sends all output to the .DBG file 18288instead of the console. 18289 18290"External" second parameter is now optional 18291 18292"ElseIf" syntax now properly allows the predicate 18293 18294Last operand to "Load" now recognized as a Target operand 18295 18296Debug object can now be used anywhere as a normal object. 18297 18298ResourceTemplate now returns an object of type BUFFER 18299 18300EISAID now returns an object of type INTEGER 18301 18302"Index" now works with a STRING operand 18303 18304"LoadTable" now accepts optional parameters 18305 18306"ToString" length parameter is now optional 18307 18308"Interrupt (ResourceType," parse error fixed. 18309 18310"Register" with a user-defined region space parse error fixed 18311 18312Escaped backslash at the end of a string ("\\") scan/parse error 18313fixed 18314 18315"Revision" is now an object of type INTEGER. 18316 18317 18318 18319------------------------------------------ 18320Summary of changes for this label: 05_02_01 18321 18322Linux: 18323 18324/proc/acpi/event now blocks properly. 18325 18326Removed /proc/sys/acpi. You can still dump your DSDT from 18327/proc/acpi/dsdt. 18328 18329 ACPI CA Core Subsystem: 18330 18331Fixed a problem introduced in the previous label where some of the 18332"small" resource descriptor types were not recognized. 18333 18334Improved error messages for the case where an ASL Field is outside 18335the range of the parent operation region. 18336 18337 ASL Compiler, version X2018: 18338 18339 18340Added error detection for ASL Fields that extend beyond the length 18341of the parent operation region (only if the length of the region 18342is known at compile time.) This includes fields that have a 18343minimum access width that is smaller than the parent region, and 18344individual field units that are partially or entirely beyond the 18345extent of the parent. 18346 18347 18348 18349------------------------------------------ 18350Summary of changes for this label: 04_27_01 18351 18352 ACPI CA Core Subsystem: 18353 18354Fixed a problem where the namespace mutex could be released at the 18355wrong time during execution of AcpiRemoveAddressSpaceHandler. 18356 18357Added optional thread ID output for debug traces, to simplify 18358debugging of multiple threads. Added context switch notification 18359when the debug code realizes that a different thread is now 18360executing ACPI code. 18361 18362Some additional external data types have been prefixed with the 18363string "ACPI_" for consistency. This may effect existing code. 18364The data types affected are the external callback typedefs - e.g., 18365 18366WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 18367 18368 Linux: 18369 18370Fixed an issue with the OSL semaphore implementation where a 18371thread was waking up with an error from receiving a SIGCHLD 18372signal. 18373 18374Linux version of ACPI CA now uses the system C library for string 18375manipulation routines instead of a local implementation. 18376 18377Cleaned up comments and removed TBDs. 18378 18379 ASL Compiler, version X2017: 18380 18381Enhanced error detection and reporting for all file I/O 18382operations. 18383 18384 Documentation: 18385 18386Programmer Reference updated to version 1.06. 18387 18388 18389 18390------------------------------------------ 18391Summary of changes for this label: 04_13_01 18392 18393 ACPI CA Core Subsystem: 18394 18395Restructured support for BufferFields and RegionFields. 18396BankFields support is now fully operational. All known 32-bit 18397limitations on field sizes have been removed. Both BufferFields 18398and (Operation) RegionFields are now supported by the same field 18399management code. 18400 18401Resource support now supports QWORD address and IO resources. The 1840216/32/64 bit address structures and the Extended IRQ structure 18403have been changed to properly handle Source Resource strings. 18404 18405A ThreadId of -1 is now used to indicate a "mutex not acquired" 18406condition internally and must never be returned by AcpiOsThreadId. 18407This reserved value was changed from 0 since Unix systems allow a 18408thread ID of 0. 18409 18410Linux: 18411 18412Driver code reorganized to enhance portability 18413 18414Added a kernel configuration option to control ACPI_DEBUG 18415 18416Fixed the EC driver to honor _GLK. 18417 18418ASL Compiler, version X2016: 18419 18420Fixed support for the "FixedHw" keyword. Previously, the FixedHw 18421address space was set to 0, not 0x7f as it should be. 18422 18423 ------------------------------------------ 18424Summary of changes for this label: 03_13_01 18425 18426 ACPI CA Core Subsystem: 18427 18428During ACPI initialization, the _SB_._INI method is now run if 18429present. 18430 18431Notify handler fix - notifies are deferred until the parent method 18432completes execution. This fixes the "mutex already acquired" 18433issue seen occasionally. 18434 18435Part of the "implicit conversion" rules in ACPI 2.0 have been 18436found to cause compatibility problems with existing ASL/AML. The 18437convert "result-to-target-type" implementation has been removed 18438for stores to method Args and Locals. Source operand conversion 18439is still fully implemented. Possible changes to ACPI 2.0 18440specification pending. 18441 18442Fix to AcpiRsCalculatePciRoutingTableLength to return correct 18443length. 18444 18445Fix for compiler warnings for 64-bit compiles. 18446 18447 Linux: 18448 18449/proc output aligned for easier parsing. 18450 18451Release-version compile problem fixed. 18452 18453New kernel configuration options documented in Configure.help. 18454 18455IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 18456context" message. 18457 18458 OSPM: 18459 18460Power resource driver integrated with bus manager. 18461 18462Fixed kernel fault during active cooling for thermal zones. 18463 18464Source Code: 18465 18466The source code tree has been restructured. 18467 18468 18469 18470------------------------------------------ 18471Summary of changes for this label: 03_02_01 18472 18473 Linux OS Services Layer (OSL): 18474 18475Major revision of all Linux-specific code. 18476 18477Modularized all ACPI-specific drivers. 18478 18479Added new thermal zone and power resource drivers. 18480 18481Revamped /proc interface (new functionality is under /proc/acpi). 18482 18483New kernel configuration options. 18484 18485 Linux known issues: 18486 18487New kernel configuration options not documented in Configure.help 18488yet. 18489 18490 18491Module dependencies not currently implemented. If used, they 18492should be loaded in this order: busmgr, power, ec, system, 18493processor, battery, ac_adapter, button, thermal. 18494 18495Modules will not load if CONFIG_MODVERSION is set. 18496 18497IBM 600E - entering S5 may reboot instead of shutting down. 18498 18499IBM 600E - Sleep button may generate "Invalid <NULL> context" 18500message. 18501 18502Some systems may fail with "execution mutex already acquired" 18503message. 18504 18505 ACPI CA Core Subsystem: 18506 18507Added a new OSL Interface, AcpiOsGetThreadId. This was required 18508for the deadlock detection code. Defined to return a non-zero, 32- 18509bit thread ID for the currently executing thread. May be a non- 18510zero constant integer on single-thread systems. 18511 18512Implemented deadlock detection for internal subsystem mutexes. We 18513may add conditional compilation for this code (debug only) later. 18514 18515ASL/AML Mutex object semantics are now fully supported. This 18516includes multiple acquires/releases by owner and support for the 18517 18518Mutex SyncLevel parameter. 18519 18520A new "Force Release" mechanism automatically frees all ASL 18521Mutexes that have been acquired but not released when a thread 18522exits the interpreter. This forces conformance to the ACPI spec 18523("All mutexes must be released when an invocation exits") and 18524prevents deadlocked ASL threads. This mechanism can be expanded 18525(later) to monitor other resource acquisitions if OEM ASL code 18526continues to misbehave (which it will). 18527 18528Several new ACPI exception codes have been added for the Mutex 18529support. 18530 18531Recursive method calls are now allowed and supported (the ACPI 18532spec does in fact allow recursive method calls.) The number of 18533recursive calls is subject to the restrictions imposed by the 18534SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 18535parameter. 18536 18537Implemented support for the SyncLevel parameter for control 18538methods (ACPI 2.0 feature) 18539 18540Fixed a deadlock problem when multiple threads attempted to use 18541the interpreter. 18542 18543Fixed a problem where the string length of a String package 18544element was not always set in a package returned from 18545AcpiEvaluateObject. 18546 18547Fixed a problem where the length of a String package element was 18548not always included in the length of the overall package returned 18549from AcpiEvaluateObject. 18550 18551Added external interfaces (Acpi*) to the ACPI debug memory 18552manager. This manager keeps a list of all outstanding 18553allocations, and can therefore detect memory leaks and attempts to 18554free memory blocks more than once. Useful for code such as the 18555power manager, etc. May not be appropriate for device drivers. 18556Performance with the debug code enabled is slow. 18557 18558The ACPI Global Lock is now an optional hardware element. 18559 18560 ASL Compiler Version X2015: 18561 18562Integrated changes to allow the compiler to be generated on 18563multiple platforms. 18564 18565Linux makefile added to generate the compiler on Linux 18566 18567 Source Code: 18568 18569All platform-specific headers have been moved to their own 18570subdirectory, Include/Platform. 18571 18572New source file added, Interpreter/ammutex.c 18573 18574New header file, Include/acstruct.h 18575 18576 Documentation: 18577 18578The programmer reference has been updated for the following new 18579interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 18580 18581 ------------------------------------------ 18582Summary of changes for this label: 02_08_01 18583 18584Core ACPI CA Subsystem: Fixed a problem where an error was 18585incorrectly returned if the return resource buffer was larger than 18586the actual data (in the resource interfaces). 18587 18588References to named objects within packages are resolved to the 18589 18590full pathname string before packages are returned directly (via 18591the AcpiEvaluateObject interface) or indirectly via the resource 18592interfaces. 18593 18594Linux OS Services Layer (OSL): 18595 18596Improved /proc battery interface. 18597 18598 18599Added C-state debugging output and other miscellaneous fixes. 18600 18601ASL Compiler Version X2014: 18602 18603All defined method arguments can now be used as local variables, 18604including the ones that are not actually passed in as parameters. 18605The compiler tracks initialization of the arguments and issues an 18606exception if they are used without prior assignment (just like 18607locals). 18608 18609The -o option now specifies a filename prefix that is used for all 18610output files, including the AML output file. Otherwise, the 18611default behavior is as follows: 1) the AML goes to the file 18612specified in the DSDT. 2) all other output files use the input 18613source filename as the base. 18614 18615 ------------------------------------------ 18616Summary of changes for this label: 01_25_01 18617 18618Core ACPI CA Subsystem: Restructured the implementation of object 18619store support within the interpreter. This includes support for 18620the Store operator as well as any ASL operators that include a 18621target operand. 18622 18623Partially implemented support for Implicit Result-to-Target 18624conversion. This is when a result object is converted on the fly 18625to the type of an existing target object. Completion of this 18626support is pending further analysis of the ACPI specification 18627concerning this matter. 18628 18629CPU-specific code has been removed from the subsystem (hardware 18630directory). 18631 18632New Power Management Timer functions added 18633 18634Linux OS Services Layer (OSL): Moved system state transition code 18635to the core, fixed it, and modified Linux OSL accordingly. 18636 18637Fixed C2 and C3 latency calculations. 18638 18639 18640We no longer use the compilation date for the version message on 18641initialization, but retrieve the version from AcpiGetSystemInfo(). 18642 18643Incorporated for fix Sony VAIO machines. 18644 18645Documentation: The Programmer Reference has been updated and 18646reformatted. 18647 18648 18649ASL Compiler: Version X2013: Fixed a problem where the line 18650numbering and error reporting could get out of sync in the 18651presence of multiple include files. 18652 18653 ------------------------------------------ 18654Summary of changes for this label: 01_15_01 18655 18656Core ACPI CA Subsystem: 18657 18658Implemented support for type conversions in the execution of the 18659ASL Concatenate operator (The second operand is converted to 18660match the type of the first operand before concatenation.) 18661 18662Support for implicit source operand conversion is partially 18663implemented. The ASL source operand types Integer, Buffer, and 18664String are freely interchangeable for most ASL operators and are 18665converted by the interpreter on the fly as required. Implicit 18666Target operand conversion (where the result is converted to the 18667target type before storing) is not yet implemented. 18668 18669Support for 32-bit and 64-bit BCD integers is implemented. 18670 18671Problem fixed where a field read on an aligned field could cause a 18672read past the end of the field. 18673 18674New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 18675does not return a value, but the caller expects one. (The ASL 18676compiler flags this as a warning.) 18677 18678ASL Compiler: 18679 18680Version X2011: 186811. Static typechecking of all operands is implemented. This 18682prevents the use of invalid objects (such as using a Package where 18683an Integer is required) at compile time instead of at interpreter 18684run-time. 186852. The ASL source line is printed with ALL errors and warnings. 186863. Bug fix for source EOF without final linefeed. 186874. Debug option is split into a parse trace and a namespace trace. 186885. Namespace output option (-n) includes initial values for 18689integers and strings. 186906. Parse-only option added for quick syntax checking. 186917. Compiler checks for duplicate ACPI name declarations 18692 18693Version X2012: 186941. Relaxed typechecking to allow interchangeability between 18695strings, integers, and buffers. These types are now converted by 18696the interpreter at runtime. 186972. Compiler reports time taken by each internal subsystem in the 18698debug output file. 18699 18700 18701 ------------------------------------------ 18702Summary of changes for this label: 12_14_00 18703 18704ASL Compiler: 18705 18706This is the first official release of the compiler. Since the 18707compiler requires elements of the Core Subsystem, this label 18708synchronizes everything. 18709 18710------------------------------------------ 18711Summary of changes for this label: 12_08_00 18712 18713 18714Fixed a problem where named references within the ASL definition 18715of both OperationRegions and CreateXXXFields did not work 18716properly. The symptom was an AE_AML_OPERAND_TYPE during 18717initialization of the region/field. This is similar (but not 18718related internally) to the problem that was fixed in the last 18719label. 18720 18721Implemented both 32-bit and 64-bit support for the BCD ASL 18722functions ToBCD and FromBCD. 18723 18724Updated all legal headers to include "2000" in the copyright 18725years. 18726 18727 ------------------------------------------ 18728Summary of changes for this label: 12_01_00 18729 18730Fixed a problem where method invocations within the ASL definition 18731of both OperationRegions and CreateXXXFields did not work 18732properly. The symptom was an AE_AML_OPERAND_TYPE during 18733initialization of the region/field: 18734 18735 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 18736[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 18737(0x3005) 18738 18739Fixed a problem where operators with more than one nested 18740subexpression would fail. The symptoms were varied, by mostly 18741AE_AML_OPERAND_TYPE errors. This was actually a rather serious 18742problem that has gone unnoticed until now. 18743 18744 Subtract (Add (1,2), Multiply (3,4)) 18745 18746Fixed a problem where AcpiGetHandle didn't quite get fixed in the 18747previous build (The prefix part of a relative path was handled 18748incorrectly). 18749 18750Fixed a problem where Operation Region initialization failed if 18751the operation region name was a "namepath" instead of a simple 18752"nameseg". Symptom was an AE_NO_OPERAND error. 18753 18754Fixed a problem where an assignment to a local variable via the 18755indirect RefOf mechanism only worked for the first such 18756assignment. Subsequent assignments were ignored. 18757 18758 ------------------------------------------ 18759Summary of changes for this label: 11_15_00 18760 18761ACPI 2.0 table support with backwards support for ACPI 1.0 and the 187620.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 18763the AML interpreter does NOT have support for the new 2.0 ASL 18764grammar terms at this time. 18765 18766All ACPI hardware access is via the GAS structures in the ACPI 2.0 18767FADT. 18768 18769All physical memory addresses across all platforms are now 64 bits 18770wide. Logical address width remains dependent on the platform 18771(i.e., "void *"). 18772 18773AcpiOsMapMemory interface changed to a 64-bit physical address. 18774 18775The AML interpreter integer size is now 64 bits, as per the ACPI 187762.0 specification. 18777 18778For backwards compatibility with ACPI 1.0, ACPI tables with a 18779revision number less than 2 use 32-bit integers only. 18780 18781Fixed a problem where the evaluation of OpRegion operands did not 18782always resolve them to numbers properly. 18783 18784------------------------------------------ 18785Summary of changes for this label: 10_20_00 18786 18787Fix for CBN_._STA issue. This fix will allow correct access to 18788CBN_ OpRegions when the _STA returns 0x8. 18789 18790Support to convert ACPI constants (Ones, Zeros, One) to actual 18791values before a package object is returned 18792 18793Fix for method call as predicate to if/while construct causing 18794incorrect if/while behavior 18795 18796Fix for Else block package lengths sometimes calculated wrong (if 18797block > 63 bytes) 18798 18799Fix for Processor object length field, was always zero 18800 18801Table load abort if FACP sanity check fails 18802 18803Fix for problem with Scope(name) if name already exists 18804 18805Warning emitted if a named object referenced cannot be found 18806(resolved) during method execution. 18807 18808 18809 18810 18811 18812------------------------------------------ 18813Summary of changes for this label: 9_29_00 18814 18815New table initialization interfaces: AcpiInitializeSubsystem no 18816longer has any parameters AcpiFindRootPointer - Find the RSDP (if 18817necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 18818>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 18819AcpiLoadTables 18820 18821Note: These interface changes require changes to all existing OSDs 18822 18823The PCI_Config default address space handler is always installed 18824at the root namespace object. 18825 18826------------------------------------------- 18827Summary of changes for this label: 09_15_00 18828 18829The new initialization architecture is implemented. New 18830interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 18831AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 18832 18833(Namespace is automatically loaded when a table is loaded) 18834 18835The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1883652 bytes to 32 bytes. There is usually one of these for every 18837namespace object, so the memory savings is significant. 18838 18839Implemented just-in-time evaluation of the CreateField operators. 18840 18841Bug fixes for IA-64 support have been integrated. 18842 18843Additional code review comments have been implemented 18844 18845The so-called "third pass parse" has been replaced by a final walk 18846through the namespace to initialize all operation regions (address 18847spaces) and fields that have not yet been initialized during the 18848execution of the various _INI and REG methods. 18849 18850New file - namespace/nsinit.c 18851 18852------------------------------------------- 18853Summary of changes for this label: 09_01_00 18854 18855Namespace manager data structures have been reworked to change the 18856primary object from a table to a single object. This has 18857resulted in dynamic memory savings of 3X within the namespace and 188582X overall in the ACPI CA subsystem. 18859 18860Fixed problem where the call to AcpiEvFindPciRootBuses was 18861inadvertently left commented out. 18862 18863Reduced the warning count when generating the source with the GCC 18864compiler. 18865 18866Revision numbers added to each module header showing the 18867SourceSafe version of the file. Please refer to this version 18868number when giving us feedback or comments on individual modules. 18869 18870The main object types within the subsystem have been renamed to 18871clarify their purpose: 18872 18873ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 18874ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 18875ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 18876 18877NOTE: no changes to the initialization sequence are included in 18878this label. 18879 18880------------------------------------------- 18881Summary of changes for this label: 08_23_00 18882 18883Fixed problem where TerminateControlMethod was being called 18884multiple times per method 18885 18886Fixed debugger problem where single stepping caused a semaphore to 18887be oversignalled 18888 18889Improved performance through additional parse object caching - 18890added ACPI_EXTENDED_OP type 18891 18892------------------------------------------- 18893Summary of changes for this label: 08_10_00 18894 18895Parser/Interpreter integration: Eliminated the creation of 18896complete parse trees for ACPI tables and control methods. 18897Instead, parse subtrees are created and then deleted as soon as 18898they are processed (Either entered into the namespace or executed 18899by the interpreter). This reduces the use of dynamic kernel 18900memory significantly. (about 10X) 18901 18902Exception codes broken into classes and renumbered. Be sure to 18903recompile all code that includes acexcep.h. Hopefully we won't 18904have to renumber the codes again now that they are split into 18905classes (environment, programmer, AML code, ACPI table, and 18906internal). 18907 18908Fixed some additional alignment issues in the Resource Manager 18909subcomponent 18910 18911Implemented semaphore tracking in the AcpiExec utility, and fixed 18912several places where mutexes/semaphores were being unlocked 18913without a corresponding lock operation. There are no known 18914semaphore or mutex "leaks" at this time. 18915 18916Fixed the case where an ASL Return operator is used to return an 18917unnamed package. 18918 18919------------------------------------------- 18920Summary of changes for this label: 07_28_00 18921 18922Fixed a problem with the way addresses were calculated in 18923AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 18924manifested itself when a Field was created with WordAccess or 18925DwordAccess, but the field unit defined within the Field was less 18926 18927than a Word or Dword. 18928 18929Fixed a problem in AmlDumpOperands() module's loop to pull 18930operands off of the operand stack to display information. The 18931problem manifested itself as a TLB error on 64-bit systems when 18932accessing an operand stack with two or more operands. 18933 18934Fixed a problem with the PCI configuration space handlers where 18935context was getting confused between accesses. This required a 18936change to the generic address space handler and address space 18937setup definitions. Handlers now get both a global handler context 18938(this is the one passed in by the user when executing 18939AcpiInstallAddressSpaceHandler() and a specific region context 18940that is unique to each region (For example, the _ADR, _SEG and 18941_BBN values associated with a specific region). The generic 18942function definitions have changed to the following: 18943 18944typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 18945UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 18946*HandlerContext, // This used to be void *Context void 18947*RegionContext); // This is an additional parameter 18948 18949typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 18950RegionHandle, UINT32 Function, void *HandlerContext, void 18951**RegionContext); // This used to be **ReturnContext 18952 18953------------------------------------------- 18954Summary of changes for this label: 07_21_00 18955 18956Major file consolidation and rename. All files within the 18957interpreter have been renamed as well as most header files. This 18958was done to prevent collisions with existing files in the host 18959OSs -- filenames such as "config.h" and "global.h" seem to be 18960quite common. The VC project files have been updated. All 18961makefiles will require modification. 18962 18963The parser/interpreter integration continues in Phase 5 with the 18964implementation of a complete 2-pass parse (the AML is parsed 18965twice) for each table; This avoids the construction of a huge 18966parse tree and therefore reduces the amount of dynamic memory 18967required by the subsystem. Greater use of the parse object cache 18968means that performance is unaffected. 18969 18970Many comments from the two code reviews have been rolled in. 18971 18972The 64-bit alignment support is complete. 18973 18974------------------------------------------- 18975Summary of changes for this label: 06_30_00 18976 18977With a nod and a tip of the hat to the technology of yesteryear, 18978we've added support in the source code for 80 column output 18979devices. The code is now mostly constrained to 80 columns or 18980less to support environments and editors that 1) cannot display 18981or print more than 80 characters on a single line, and 2) cannot 18982disable line wrapping. 18983 18984A major restructuring of the namespace data structure has been 18985completed. The result is 1) cleaner and more 18986understandable/maintainable code, and 2) a significant reduction 18987in the dynamic memory requirement for each named ACPI object 18988(almost half). 18989 18990------------------------------------------- 18991Summary of changes for this label: 06_23_00 18992 18993Linux support has been added. In order to obtain approval to get 18994the ACPI CA subsystem into the Linux kernel, we've had to make 18995quite a few changes to the base subsystem that will affect all 18996users (all the changes are generic and OS- independent). The 18997effects of these global changes have been somewhat far reaching. 18998Files have been merged and/or renamed and interfaces have been 18999renamed. The major changes are described below. 19000 19001Osd* interfaces renamed to AcpiOs* to eliminate namespace 19002pollution/confusion within our target kernels. All OSD 19003interfaces must be modified to match the new naming convention. 19004 19005Files merged across the subsystem. A number of the smaller source 19006and header files have been merged to reduce the file count and 19007increase the density of the existing files. There are too many 19008to list here. In general, makefiles that call out individual 19009files will require rebuilding. 19010 19011Interpreter files renamed. All interpreter files now have the 19012prefix am* instead of ie* and is*. 19013 19014Header files renamed: The acapi.h file is now acpixf.h. The 19015acpiosd.h file is now acpiosxf.h. We are removing references to 19016the acronym "API" since it is somewhat windowsy. The new name is 19017"external interface" or xface or xf in the filenames.j 19018 19019 19020All manifest constants have been forced to upper case (some were 19021mixed case.) Also, the string "ACPI_" has been prepended to many 19022(not all) of the constants, typedefs, and structs. 19023 19024The globals "DebugLevel" and "DebugLayer" have been renamed 19025"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 19026 19027All other globals within the subsystem are now prefixed with 19028"AcpiGbl_" Internal procedures within the subsystem are now 19029prefixed with "Acpi" (with only a few exceptions). The original 19030two-letter abbreviation for the subcomponent remains after "Acpi" 19031- for example, CmCallocate became AcpiCmCallocate. 19032 19033Added a source code translation/conversion utility. Used to 19034generate the Linux source code, it can be modified to generate 19035other types of source as well. Can also be used to cleanup 19036existing source by removing extraneous spaces and blank lines. 19037Found in tools/acpisrc/* 19038 19039OsdUnMapMemory was renamed to OsdUnmapMemory and then 19040AcpiOsUnmapMemory. (UnMap became Unmap). 19041 19042A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 19043When set to one, this indicates that the caller wants to use the 19044 19045semaphore as a mutex, not a counting semaphore. ACPI CA uses 19046both types. However, implementers of this call may want to use 19047different OS primitives depending on the type of semaphore 19048requested. For example, some operating systems provide separate 19049 19050"mutex" and "semaphore" interfaces - where the mutex interface is 19051much faster because it doesn't have all the overhead of a full 19052semaphore implementation. 19053 19054Fixed a deadlock problem where a method that accesses the PCI 19055address space can block forever if it is the first access to the 19056space. 19057 19058------------------------------------------- 19059Summary of changes for this label: 06_02_00 19060 19061Support for environments that cannot handle unaligned data 19062accesses (e.g. firmware and OS environments devoid of alignment 19063handler technology namely SAL/EFI and the IA-64 Linux kernel) has 19064been added (via configurable macros) in these three areas: - 19065Transfer of data from the raw AML byte stream is done via byte 19066moves instead of word/dword/qword moves. - External objects are 19067aligned within the user buffer, including package elements (sub- 19068objects). - Conversion of name strings to UINT32 Acpi Names is now 19069done byte-wise. 19070 19071The Store operator was modified to mimic Microsoft's 19072implementation when storing to a Buffer Field. 19073 19074Added a check of the BM_STS bit before entering C3. 19075 19076The methods subdirectory has been obsoleted and removed. A new 19077file, cmeval.c subsumes the functionality. 19078 19079A 16-bit (DOS) version of AcpiExec has been developed. The 19080makefile is under the acpiexec directory. 19081